/* ==========================================================================
   offer.wasiullahqureshi.com — "paper ledger" theme
   Paper white, bookkeeper's green ink, ledger ruling + red margin line,
   rubber stamps, dot-leader price lists. Receipt = the signature.
   No external dependencies: system fonts only.
   ========================================================================== */

:root {
  --paper: #faf9f4;        /* page background */
  --paper-2: #ffffff;      /* cards / slips */
  --paper-3: #f2efe6;      /* alt sections */
  --ink: #22322b;          /* body text, green-black */
  --ink-strong: #14211b;   /* headings, footer bg */
  --muted: #6d7a70;
  --green: #17694a;        /* primary brand green */
  --green-2: #0e5a3d;      /* hover */
  --money: #0b7a45;        /* credit amounts only */
  --red: #b23a2c;          /* stamps, margin rule, badges */
  --rule: #c3d3e2;         /* pale blue ledger ruling */
  --line: #ddd9cc;         /* card borders */
  --line-2: #cfc9b6;       /* input borders */
  --font-display: Georgia, "Times New Roman", serif;
  --font-sans: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Cascadia Code", Consolas, "SF Mono", "JetBrains Mono", ui-monospace, monospace;
  --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(23, 105, 74, 0.18); }

img, svg { max-width: 100%; display: block; }

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2 { font-family: var(--font-display); color: var(--ink-strong); line-height: 1.12; letter-spacing: -0.01em; font-weight: 700; }
h3 { color: var(--ink-strong); line-height: 1.2; font-weight: 650; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin-bottom: 12px; }
h3 { font-size: 1.15rem; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1100px; margin-inline: auto; padding-inline: 24px; }
.wrap--narrow { max-width: 760px; }

.section { padding: 88px 0; }
.section--alt { background: var(--paper-3); border-block: 1px solid var(--line); }
.section__sub { color: var(--muted); max-width: 56ch; margin-bottom: 36px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--green);
  margin-bottom: 14px;
}

.accent { color: var(--green); font-style: italic; }
.accent .tot {
  font-style: normal;
  text-decoration: underline double var(--green);
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}
.mint { color: var(--money); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn--primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 1px 0 var(--green-2), 0 8px 20px rgba(23, 105, 74, 0.22);
}
.btn--primary:hover { background: var(--green-2); }

.btn--ghost {
  background: var(--paper-2);
  color: var(--ink-strong);
  border-color: var(--line-2);
}
.btn--ghost:hover { border-color: var(--green); color: var(--green); }

.btn--sm { padding: 9px 18px; font-size: 0.9rem; }
.btn--block { display: block; width: 100%; }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 244, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-strong);
  font-weight: 700;
}
.nav__brand:hover { text-decoration: none; }

.nav__mark {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: var(--green);
  color: #fff;
  border-radius: 7px;
  padding: 6px 8px;
  line-height: 1;
}

.nav__name { font-size: 0.98rem; }
.nav__name em { font-style: normal; color: var(--muted); font-weight: 500; }

.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links > a:not(.btn) { color: var(--muted); font-size: 0.95rem; font-weight: 500; white-space: nowrap; }
.nav__links > .btn { white-space: nowrap; }
.nav__links > a:not(.btn):hover { color: var(--ink-strong); text-decoration: none; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav__toggle span { width: 22px; height: 2px; background: var(--ink-strong); border-radius: 2px; transition: 0.2s; }

/* ---------- Hero: a ruled ledger sheet ---------- */

.hero {
  padding: 84px 0 96px;
  background:
    /* red margin line */
    linear-gradient(90deg, transparent 44px, rgba(178, 58, 44, 0.35) 44px, rgba(178, 58, 44, 0.35) 45px, transparent 45px),
    /* faint blue ruling */
    repeating-linear-gradient(to bottom, transparent 0 35px, rgba(120, 156, 190, 0.16) 35px 36px),
    var(--paper);
  border-bottom: 1px solid var(--line);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  border: 2px solid rgba(178, 58, 44, 0.55);
  border-radius: 5px;
  padding: 6px 12px;
  margin-bottom: 24px;
  background: var(--paper-2);
  transform: rotate(-1.2deg);
}
.pill__dot { display: none; }

.hero__sub { color: var(--muted); margin: 20px 0 30px; max-width: 52ch; }
.hero__sub strong { color: var(--ink-strong); }

.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__fine { color: var(--muted); font-size: 0.85rem; margin-top: 18px; }

/* ---------- Receipt (signature element) ---------- */

.receipt {
  position: relative;
  font-family: var(--font-mono);
  background:
    linear-gradient(90deg, transparent 22px, rgba(178, 58, 44, 0.4) 22px, rgba(178, 58, 44, 0.4) 23px, transparent 23px),
    var(--paper-2);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
  padding: 20px 22px 28px 38px;
  box-shadow: 0 14px 34px rgba(20, 33, 27, 0.14), 0 2px 6px rgba(20, 33, 27, 0.08);
  transform: rotate(1.2deg);
  color: var(--ink);
}

.receipt__head {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  border-bottom: 3px double var(--ink-strong);
  padding-bottom: 10px;
  margin-bottom: 4px;
}

.receipt__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.92rem;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule);
  animation: printRow 0.4s ease backwards;
}
.receipt__rows .receipt__row:nth-child(1) { animation-delay: 0.15s; }
.receipt__rows .receipt__row:nth-child(2) { animation-delay: 0.35s; }
.receipt__rows .receipt__row:nth-child(3) { animation-delay: 0.55s; }
.receipt__rows .receipt__row:nth-child(4) { animation-delay: 0.75s; }
.receipt__rows .receipt__row:nth-child(5) { animation-delay: 0.95s; }

.receipt__row--total {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink-strong);
  border-top: 3px double var(--ink-strong);
  border-bottom: 0;
  margin-top: -1px;
}
.receipt__row--note {
  border-bottom: 0;
  padding-top: 0;
  font-size: 0.78rem;
  color: var(--money);
}

.receipt__code {
  margin-top: 10px;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--muted);
  border-top: 1px solid var(--rule);
  padding-top: 14px;
}

.receipt__stamp {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-indent: 0.35em;
  color: var(--red);
  border: 3px double var(--red);
  border-radius: 7px;
  padding: 7px 16px;
  opacity: 0.4;
  mix-blend-mode: multiply;
  pointer-events: none;
  white-space: nowrap;
}

.receipt__tear {
  position: absolute;
  left: 0; right: 0; bottom: -9px;
  height: 9px;
  filter: drop-shadow(0 2px 2px rgba(20, 33, 27, 0.08));
  background:
    linear-gradient(-45deg, transparent 6px, var(--paper-2) 0) 0 0 / 13px 9px repeat-x,
    linear-gradient(45deg, transparent 6px, var(--paper-2) 0) 6.5px 0 / 13px 9px repeat-x;
}

@keyframes printRow {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 40px;
}

.step {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: 0 2px 8px rgba(20, 33, 27, 0.05);
}

.step__num {
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 7px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--green);
  border: 1px solid var(--green);
  background: rgba(23, 105, 74, 0.06);
  margin-bottom: 16px;
}

.step h3 { margin-bottom: 8px; font-size: 1.05rem; }
.step p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Pricing ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 40px;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 2px 10px rgba(20, 33, 27, 0.05);
}

.plan--featured {
  border: 1.5px solid var(--green);
  box-shadow: 0 14px 36px rgba(23, 105, 74, 0.14);
}

.plan__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%) rotate(-1.5deg);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  background: var(--paper-2);
  color: var(--red);
  border: 2px solid var(--red);
  border-radius: 5px;
  padding: 4px 10px;
  white-space: nowrap;
}

.plan__head h3 { font-family: var(--font-display); font-size: 1.35rem; margin-bottom: 6px; }
.plan__head p { color: var(--muted); font-size: 0.9rem; min-height: 3.4em; }

.plan__list {
  list-style: none;
  margin: 18px 0 22px;
  flex: 1;
}
.plan__list li {
  padding: 7px 0 7px 26px;
  font-size: 0.93rem;
  color: var(--ink);
  position: relative;
}
.plan__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}
.plan__list strong { color: var(--green); }

.plan__receipt {
  font-family: var(--font-mono);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 14px;
  margin-bottom: 18px;
  background: var(--paper);
}
.plan__receipt .receipt__row { animation: none; font-size: 0.86rem; }
.plan__receipt .receipt__row--total { font-size: 1rem; }

/* ---------- Honesty callout ---------- */

.honesty {
  margin-top: 34px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  background: #ecf3ec;
  border-radius: 8px;
  padding: 20px 24px;
}
.honesty p { color: var(--ink); font-size: 0.97rem; max-width: none; }
.honesty strong { color: var(--green); }

/* ---------- Add-ons: a price list with dot leaders ---------- */

.addons { margin-top: 56px; }

.addons__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 48px;
  margin-top: 8px;
}

.addon {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 11px 2px;
  font-size: 0.93rem;
}
.addon__name { color: var(--ink); }
.addon__leader {
  flex: 1;
  border-bottom: 2px dotted var(--line-2);
  transform: translateY(-4px);
  min-width: 24px;
}
.addon__price {
  font-family: var(--font-mono);
  color: var(--ink-strong);
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- Portfolio ---------- */

.work {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.site {
  display: block;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px 18px;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(20, 33, 27, 0.05);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.site:hover { text-decoration: none; border-color: var(--green); transform: translateY(-2px); }

.site__chrome { display: flex; gap: 5px; margin-bottom: 14px; }
.site__chrome i {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--line-2);
}
.site:hover .site__chrome i:first-child { background: var(--green); }

.site__domain {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--green);
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}
.site__type { display: block; color: var(--muted); font-size: 0.85rem; }

.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 44px;
  border-top: 1px solid var(--line);
  padding-top: 36px;
}
.trust__item strong { display: block; margin-bottom: 6px; color: var(--ink-strong); }
.trust__item span { color: var(--muted); font-size: 0.9rem; }

/* ---------- FAQ ---------- */

.faq {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-2);
  margin-top: 12px;
  overflow: hidden;
}
#faq h2 { margin-bottom: 20px; }

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 46px 18px 20px;
  font-weight: 600;
  color: var(--ink-strong);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--green);
  transition: transform 0.2s ease;
}
.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { padding: 0 20px 18px; color: var(--muted); font-size: 0.95rem; }

/* ---------- Ways to pay ---------- */

.pay {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  padding: 22px 24px;
  margin-bottom: 36px;
}
.pay__title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--green);
  margin-bottom: 14px;
}
.pay__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pay__col h4 { font-size: 0.92rem; color: var(--ink-strong); margin-bottom: 8px; }
.pay__col ul { list-style: none; }
.pay__col li {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 4px 0 4px 22px;
  position: relative;
}
.pay__col li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* ---------- Form ---------- */

.form { margin-top: 8px; }

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-strong);
  margin-bottom: 16px;
}
.form .opt { color: var(--muted); font-weight: 400; }

.form input,
.form select,
.form textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  background: var(--paper-2);
  border: 1px solid var(--line-2);
  border-radius: 9px;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  padding: 12px 14px;
}
.form input::placeholder,
.form textarea::placeholder { color: #a9a48f; }

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(23, 105, 74, 0.14);
}

.form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236d7a70' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.form select:invalid { color: #a9a48f; }
.form select option { color: var(--ink); background: var(--paper-2); }

.form textarea { resize: vertical; }

.form button { margin-top: 6px; }
.form__fine { text-align: center; color: var(--muted); font-size: 0.88rem; margin-top: 14px; }

.form-sent {
  border: 1px solid rgba(23, 105, 74, 0.4);
  background: #ecf3ec;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: 0.95rem;
}
.form-sent strong { color: var(--green); }

/* ---------- Footer ---------- */

.footer {
  padding: 48px 0 36px;
  background: var(--ink-strong);
  color: #e8ede9;
}

.footer .nav__brand { color: #fff; }
.footer .nav__name em { color: #9fb0a5; }

.footer__grid {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.footer__tag { color: #9fb0a5; font-size: 0.9rem; margin-top: 10px; }

.footer__links { display: flex; flex-direction: column; gap: 8px; }
.footer__links a { color: #b9c6bd; font-size: 0.9rem; }
.footer__links a:hover { color: #fff; }

.footer__legal {
  color: #85958a;
  font-size: 0.8rem;
  border-top: 1px solid rgba(232, 237, 233, 0.15);
  padding-top: 22px;
  line-height: 1.7;
}

/* ---------- WhatsApp float ---------- */

.wa {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 26px rgba(20, 33, 27, 0.3);
  transition: transform 0.15s ease;
}
.wa:hover { transform: scale(1.07); text-decoration: none; }

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .receipt__row { animation: none; }
  .btn, .site { transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .nav__name em { display: none; }
  .nav__links { gap: 16px; }

  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .receipt { max-width: 420px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .work { grid-template-columns: 1fr 1fr; }
  .trust { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 72px; }

  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 10px 24px 20px;
    display: none;
  }
  .nav__links.open { display: flex; }
  .nav__links > a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav__links > .btn { margin-top: 14px; }

  .steps { grid-template-columns: 1fr; }
  .addons__grid { grid-template-columns: 1fr; }
  .pay__cols { grid-template-columns: 1fr; }
  .work { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .receipt { transform: none; }
}
