/* ============================================================
   Mostly Invoices — landing

   White ground, ink type, one saturated green reserved for the
   settled state. Paper (#faf6e8, the mostly apps value) is used
   only for the invoice card, so the thing that represents an
   actual invoice is the only warm surface on the page.
   ============================================================ */

:root {
  --page:       #FFFFFF;
  --page-alt:   #F7F8FA;
  --page-deep:  #EEF1F5;

  --ink:        #14161A;
  --ink-dim:    #545A64;
  --ink-faint:  #858C97;
  --line:       #E4E7EC;
  --line-hard:  #CFD5DD;

  --paper:      #faf6e8;   /* mostly apps paper — invoice surfaces only */
  --paper-2:    #F2ECD9;
  --paper-ink:  #1a1a1c;   /* mostly apps ink */
  --paper-dim:  #6B675C;
  --paper-line: #E4DCC4;

  --settled:    #0E7A57;
  --settled-hi: #12946A;
  --settled-lo: #E3F3EC;
  --blue:       #4A6CD8;   /* family accent */
  --coral:      #E85A3C;   /* family: the fourth dot, and nothing else */
  --due:        #A2681F;
  --due-lo:     #FAF0DC;

  --shell: 1140px;
  --r: 5px;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

/* `hidden` must beat any display a component sets on itself. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 28px; }

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip:focus { left: 12px; top: 12px; }

a { color: inherit; }
:focus-visible { outline: 2px solid var(--settled-hi); outline-offset: 3px; border-radius: 2px; }

/* ───────────────────────── masthead ───────────────────────── */

.masthead {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.masthead-inner { display: flex; align-items: center; gap: 24px; height: 64px; }

.wordmark {
  display: inline-flex; align-items: baseline; gap: 7px;
  font-family: var(--serif); font-size: 1.14rem; font-weight: 600;
  letter-spacing: -.015em; text-decoration: none; margin-right: auto; color: var(--ink);
}
.wordmark-mark { width: .74em; height: .74em; flex: none; color: var(--settled-hi); }

.masthead-nav { display: flex; align-items: center; gap: 26px; }
.masthead-nav a { text-decoration: none; font-size: .93rem; color: var(--ink-dim); }
.masthead-nav a:hover { color: var(--ink); }
@media (max-width: 820px) { .masthead-nav a:not(.btn) { display: none; } }

/* ───────────────────────── buttons ───────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-size: .96rem; font-weight: 600;
  padding: 13px 22px; border-radius: var(--r); border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.btn-sm { padding: 8px 15px; font-size: .88rem; }
.btn-lg { font-size: 1.06rem; padding: 15px 28px; font-family: var(--mono); letter-spacing: -.01em; }

.btn-solid { background: var(--settled); color: #fff; }
.btn-solid:hover { background: #0B6448; }

.btn-ghost { color: var(--ink); border-color: var(--line-hard); background: #fff; }
.btn-ghost:hover { border-color: var(--ink-faint); }

.btn-line { color: var(--ink); border-color: var(--line-hard); }
.btn-line:hover { border-color: var(--settled-hi); }

/* ───────────────────────── hero ───────────────────────── */

.hero { padding: 76px 0 88px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; z-index: 0;
  top: -40%; right: -12%; width: 68%; height: 140%;
  background: radial-gradient(closest-side, rgba(18,148,106,.10), rgba(18,148,106,0) 70%);
  pointer-events: none;
}
.hero > .shell { position: relative; z-index: 1; }

.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 64px; align-items: start; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 48px; } .hero { padding: 52px 0 64px; } }

.eyebrow {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--settled); margin: 0 0 22px;
}

.hero h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2.35rem, 4.8vw, 3.7rem); line-height: 1.06;
  letter-spacing: -.024em; margin: 0 0 22px; text-wrap: balance;
}

.lede { font-size: 1.1rem; line-height: 1.62; color: var(--ink-dim); margin: 0 0 30px; max-width: 34em; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { font-size: .86rem; color: var(--ink-faint); margin: 18px 0 0; }

/* ───────────────────────── the invoice (signature) ───────────────────────── */

.stage { position: relative; }

.invoice {
  position: relative; margin: 0;
  background: var(--paper); color: var(--paper-ink);
  border: 1px solid var(--paper-line); border-radius: 7px;
  padding: 26px 26px 22px;
  box-shadow: 0 1px 2px rgba(20,22,26,.05), 0 20px 44px -20px rgba(20,22,26,.22);
  transition: transform .5s cubic-bezier(.2,.7,.3,1), box-shadow .5s ease;
}
.invoice[data-state="paid"] {
  transform: translateY(-3px);
  box-shadow: 0 1px 2px rgba(14,122,87,.10), 0 22px 48px -20px rgba(14,122,87,.30);
}

.invoice-head { display: flex; align-items: flex-start; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--paper-line); }
.invoice-from { font-family: var(--serif); font-size: 1.16rem; font-weight: 600; margin: 0 0 3px; }
.invoice-meta { font-size: .83rem; color: var(--paper-dim); margin: 0; }

.tag {
  margin-left: auto; flex: none;
  font-family: var(--mono); font-size: .66rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 3px;
  transition: background .3s ease, color .3s ease;
}
.tag-due  { background: var(--due-lo); color: var(--due); }
.tag-paid { background: var(--settled-lo); color: var(--settled); }

.invoice-lines { list-style: none; margin: 0; padding: 14px 0 4px; }
.invoice-lines li { display: flex; justify-content: space-between; gap: 16px; font-size: .93rem; padding: 7px 0; color: var(--paper-dim); }
.invoice-lines li span:first-child { color: var(--paper-ink); }

.invoice-total { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 15px 0 18px; border-top: 1px solid var(--paper-line); margin-top: 8px; }
.invoice-total-label { font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: var(--paper-dim); }
.invoice-total-amount { font-family: var(--mono); font-size: 1.72rem; font-weight: 600; letter-spacing: -.02em; transition: color .3s ease; }
.invoice[data-state="paid"] .invoice-total-amount { color: var(--settled); }

.btn-take { width: 100%; background: var(--paper-ink); color: var(--paper); }
.btn-take:hover { background: #000; }
.invoice[data-state="paid"] .btn-take { background: var(--settled-lo); color: var(--settled); cursor: default; }

.invoice-methods { font-size: .78rem; color: var(--paper-dim); text-align: center; margin: 12px 0 0; }

/* Sits over the "balance due" label, never over a figure. */
.stamp {
  position: absolute; left: 22px; bottom: 104px;
  pointer-events: none; opacity: 0; transform: rotate(-11deg) scale(1.45);
  transition: opacity .26s ease, transform .34s cubic-bezier(.2,.9,.3,1);
}
.stamp span {
  display: block; font-family: var(--serif); font-size: 1.45rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase; color: var(--settled);
  border: 2.5px solid var(--settled); border-radius: 4px; padding: 2px 13px; opacity: .8;
}
.invoice[data-state="paid"] .stamp { opacity: 1; transform: rotate(-11deg) scale(1); }

/* The record that lands in the CRM. Animates its own height rather than
   reserving space — an empty reserved box reads as a layout bug. */
.receipt-wrap {
  display: grid; grid-template-rows: 0fr; margin-top: 0;
  transition: grid-template-rows .42s cubic-bezier(.2,.7,.3,1), margin-top .42s ease;
}
.receipt-wrap[data-shown] { grid-template-rows: 1fr; margin-top: 14px; }
.receipt { overflow: hidden; min-height: 0; }

.receipt-inner {
  background: var(--page-alt); border: 1px solid var(--line);
  border-radius: 6px; padding: 16px 20px;
  opacity: 0; transition: opacity .3s ease .16s;
}
.receipt-wrap[data-shown] .receipt-inner { opacity: 1; }

.receipt-head {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--settled); margin: 0 0 10px;
}
.receipt-rows { margin: 0; display: grid; gap: 7px; }
.receipt-rows > div { display: flex; justify-content: space-between; gap: 16px; font-size: .88rem; }
.receipt-rows dt { color: var(--ink-faint); margin: 0; }
.receipt-rows dd { color: var(--ink); margin: 0; text-align: right; }

.replay {
  display: block; margin: 14px auto 0; background: none; border: 0;
  font: inherit; font-size: .82rem; color: var(--ink-faint);
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.replay:hover { color: var(--ink-dim); }

/* ───────────────────────── bands ───────────────────────── */

.band { padding: 84px 0; border-top: 1px solid var(--line); }
.band-alt { background: var(--page-alt); }
@media (max-width: 720px) { .band { padding: 60px 0; } }

.section-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.15rem); line-height: 1.14;
  letter-spacing: -.018em; margin: 0 0 12px; text-wrap: balance;
}
.section-lede { font-size: 1.03rem; color: var(--ink-dim); margin: 0 0 34px; max-width: 40em; }

/* ways */
.ways { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
@media (max-width: 820px) { .ways { grid-template-columns: 1fr; } }

.way { padding: 26px 30px 30px 0; border-bottom: 1px solid var(--line); }
.way + .way { padding-left: 30px; border-left: 1px solid var(--line); }
@media (max-width: 820px) { .way + .way { padding-left: 0; border-left: 0; } }

.way h3 { font-family: var(--serif); font-size: 1.24rem; font-weight: 600; margin: 0 0 8px; }
.way p { margin: 0; color: var(--ink-dim); font-size: .97rem; }

/* ── vignettes ──────────────────────────────────────────────────────────
   Miniatures of the three surfaces, built from the same materials as the
   hero invoice so the section reads as the product rather than decoration. */

.vig {
  position: relative; height: 168px; margin-bottom: 20px;
  border-radius: 6px; background: var(--page-deep); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}

/* in person — a terminal. Stays dark: it is a physical device, not a page. */
.term { width: 116px; background: #14161A; border-radius: 9px; padding: 11px 10px 9px; text-align: center; }
.term-screen { background: var(--paper); border-radius: 4px; padding: 9px 7px 8px; }
.term-label { display: block; font-size: 7.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--paper-dim); }
.term-amt { display: block; font-size: 14px; font-weight: 700; color: var(--paper-ink); margin: 2px 0 4px; }
.term-prompt { display: block; font-size: 7px; color: var(--settled); font-weight: 600; }
.term-slot { height: 4px; width: 46px; margin: 9px auto 0; border-radius: 2px; background: #3A3F47; }

.wave { position: absolute; right: 30px; display: flex; gap: 4px; align-items: center; }
.wave i {
  display: block; width: 5px; height: 5px; border-radius: 50%;
  background: var(--settled-hi); opacity: .3; animation: pulse 1.8s ease-in-out infinite;
}
.wave i:nth-child(2) { animation-delay: .22s; width: 7px; height: 7px; }
.wave i:nth-child(3) { animation-delay: .44s; width: 9px; height: 9px; }
@keyframes pulse { 0%,100% { opacity: .22; } 50% { opacity: 1; } }

/* online — a compact checkout */
.ck { width: 150px; background: #fff; border: 1px solid var(--line-hard); border-radius: 6px; padding: 10px; }
.ck-wallets { display: flex; gap: 5px; margin-bottom: 7px; }
.ck-wallets span {
  flex: 1; text-align: center; font-size: 7px; font-weight: 700; padding: 5px 0;
  border-radius: 3px; background: var(--ink); color: #fff;
}
.ck-wallets span:last-child { background: none; color: var(--ink); border: 1px solid var(--line-hard); }
.ck-or { text-align: center; font-size: 6.5px; color: var(--ink-faint); margin-bottom: 6px; }
.ck-field {
  font-size: 7.5px; color: var(--ink-faint); padding: 5px 6px; border-radius: 3px;
  border: 1px solid var(--line-hard); background: #fff; margin-bottom: 5px;
}
.ck-row { display: flex; gap: 5px; }
.ck-row .ck-field { flex: 1; }
.ck-pay { text-align: center; font-size: 8px; font-weight: 700; padding: 6px 0; border-radius: 3px; background: var(--settled); color: #fff; margin-top: 2px; }

/* by invoice — the message the customer receives */
.mail { width: 152px; background: #fff; border: 1px solid var(--line-hard); border-radius: 6px; overflow: hidden; }
.mail-bar { display: flex; align-items: center; gap: 6px; padding: 6px 8px; background: var(--page-alt); border-bottom: 1px solid var(--line); }
.mail-from { font-size: 7px; font-weight: 700; color: var(--ink); }
.mail-chip {
  margin-left: auto; font-size: 6px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: 2px 5px; border-radius: 2px;
  background: var(--due-lo); color: var(--due);
}
.mail-body { padding: 10px 10px 11px; text-align: center; }
.mail-subj { display: block; font-size: 7.5px; color: var(--ink-faint); }
.mail-amt { display: block; font-size: 15px; font-weight: 700; color: var(--ink); margin: 3px 0 8px; }
.mail-cta { display: block; font-size: 8px; font-weight: 700; padding: 6px 0; border-radius: 3px; background: var(--settled); color: #fff; }

@media (max-width: 820px) { .vig { height: 150px; } }

/* what syncs */
.lands-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .lands-grid { grid-template-columns: 1fr; gap: 36px; } }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.ticks li { position: relative; padding-left: 28px; color: var(--ink-dim); font-size: 1rem; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .58em;
  width: 9px; height: 9px; border-radius: 2px; background: var(--settled-hi);
}

.pull { border-left: 2px solid var(--settled-hi); padding: 4px 0 4px 22px; }
.pull-quote { font-family: var(--serif); font-size: 1.42rem; font-weight: 600; letter-spacing: -.015em; margin: 0 0 8px; }
.pull-body { font-size: .95rem; color: var(--ink-dim); margin: 0; }

/* also */
.also-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
@media (max-width: 900px) { .also-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .also-grid { grid-template-columns: 1fr; } }
.also h3 { font-size: 1rem; font-weight: 650; margin: 0 0 5px; }
.also p { margin: 0; font-size: .93rem; color: var(--ink-dim); }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

.plan { position: relative; background: #fff; border: 1px solid var(--line-hard); border-radius: 7px; padding: 26px 24px 28px; }
.plan-featured { border-color: var(--settled-hi); box-shadow: 0 14px 34px -18px rgba(14,122,87,.30); }

.plan-flag {
  position: absolute; top: -10px; left: 24px;
  font-family: var(--mono); font-size: .64rem; letter-spacing: .12em;
  text-transform: uppercase; color: #fff; background: var(--settled);
  padding: 3px 9px; border-radius: 3px; margin: 0;
}
.plan-name { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; margin: 0 0 10px; }
.plan-price { margin: 0 0 18px; display: flex; align-items: baseline; gap: 6px; }
.plan-price .mono { font-size: 2.05rem; font-weight: 600; letter-spacing: -.03em; }
.plan-per { font-size: .88rem; color: var(--ink-faint); }

.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.plan li { font-size: .93rem; color: var(--ink-dim); padding-left: 18px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--line-hard); }
.plan-featured li strong { color: var(--ink); font-weight: 650; }
.plan-featured li:has(strong)::before { background: var(--settled-hi); }

.plans-note { font-size: .88rem; color: var(--ink-faint); margin: 20px 0 0; }

/* straight answers */
.straight { max-width: 780px; }
.qa { margin: 0; display: grid; border-top: 1px solid var(--line); }
.qa > div { padding: 20px 0; border-bottom: 1px solid var(--line); }
.qa dt { font-weight: 650; margin: 0 0 5px; font-size: 1rem; }
.qa dd { margin: 0; color: var(--ink-dim); font-size: .97rem; }

/* ───────────────────────── cta ───────────────────────── */

.cta { padding: 88px 0 96px; border-top: 1px solid var(--line); background: var(--page-alt); }
.cta-inner { max-width: 620px; text-align: center; }
.cta h2 { font-family: var(--serif); font-size: clamp(1.8rem, 3.4vw, 2.4rem); font-weight: 600; letter-spacing: -.02em; margin: 0 0 12px; }
.cta p { color: var(--ink-dim); margin: 0 0 28px; }
.cta-note { font-size: .86rem; color: var(--ink-faint); margin: 16px 0 0; }

/* ───────────────────────── footer ───────────────────────── */

.foot { padding: 34px 0 44px; border-top: 1px solid var(--line); }
.foot-inner { display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: baseline; }
.foot-mark { font-family: var(--serif); font-weight: 600; margin: 0; }
.foot-fine { font-size: .8rem; color: var(--ink-faint); margin: 0; max-width: 52em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
