/* Landing page styles. No inline styles anywhere, so the Content-Security-Policy stays strict.
   One self-hosted font (Figtree), no external requests. Mobile first. */
@font-face { font-family: "Figtree"; font-weight: 400; font-display: swap; src: url("/fonts/figtree-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 700; font-display: swap; src: url("/fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 600; font-display: swap; src: url("/fonts/figtree-latin-600-normal.woff2") format("woff2"); }

:root {
  --bg: #ffffff; --bg-soft: #f6faf7;
  --text: #0f1f17; --text-muted: #4b5f54; --border: #dce7e0;
  --green-600: #15803d; --green-700: #166534; --green-50: #ecf8f0;
  --flag-bg: #fef3c7; --flag-text: #92400e;
  --radius: 0.75rem; --radius-lg: 1rem;
  --shadow: 0 1px 2px rgb(15 31 23 / 0.05), 0 4px 16px rgb(15 31 23 / 0.04);
  --head: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --section-y: 3.5rem;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 1rem; -webkit-font-smoothing: antialiased; }
a { color: var(--green-600); }
a:hover { color: var(--green-700); }
:focus-visible { outline: 3px solid var(--green-600); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; letter-spacing: -0.015em; line-height: 1.15; margin: 0; }
.price, .scans, .per, .step-num { font-variant-numeric: tabular-nums; }
p { margin: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: 68.75rem; margin: 0 auto; padding-left: 1rem; padding-right: 1rem; }

/* Header */
header.site { background: var(--bg); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
header.site .container { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; min-height: 3.5rem; }
.brand { font-family: var(--head); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.015em; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
header.site nav { display: flex; align-items: center; gap: 0.5rem; }
header.site nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.75rem; text-decoration: none; color: var(--text); border-radius: 0.5rem; font-weight: 600; }
header.site nav a:hover { background: var(--green-50); }
header.site nav a.nav-link { display: none; }
header.site nav a.nav-cta { background: var(--green-600); color: #fff; padding: 0 1rem; }
header.site nav a.nav-cta:hover { background: var(--green-700); color: #fff; }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0.5rem 1.25rem; background: var(--green-600); color: #fff; border: 1px solid var(--green-600); border-radius: 0.5rem; text-decoration: none; font-weight: 600; font-size: 1rem; line-height: 1.25; text-align: center; cursor: pointer; font-family: inherit; }
.button:hover { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.button.secondary { background: var(--bg); color: var(--text); border-color: #9db3a5; }
.button.secondary:hover { background: var(--green-50); color: var(--text); border-color: var(--green-600); }
.actions { display: flex; flex-direction: column; gap: 0.75rem; }

/* Sections */
section { padding: var(--section-y) 0; scroll-margin-top: 4.5rem; }
section.soft { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.label { color: var(--green-600); font-size: 0.875rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.5rem; }
h2 { font-size: 1.75rem; }
.section-head { text-align: center; margin: 0 auto 2.5rem; max-width: 40rem; }
.section-head p:not(.label) { color: var(--text-muted); margin-top: 1rem; }

/* Hero */
.hero { text-align: center; padding-top: 3rem; padding-bottom: var(--section-y); }
.badge { display: inline-block; background: var(--green-50); color: var(--green-700); border: 1px solid #cfe9d7; border-radius: 999px; padding: 0.25rem 1rem; font-size: 0.9375rem; font-weight: 600; margin-bottom: 1.5rem; }
.hero h1 { font-size: clamp(2.125rem, 1.5rem + 2.6vw, 3.25rem); max-width: 20ch; margin: 0 auto 1rem; }
.hero .lead { font-size: 1.125rem; color: var(--text-muted); max-width: 36rem; margin: 0 auto; }
.hero .actions { max-width: 20rem; margin: 2rem auto 1rem; }
.already { font-size: 0.9375rem; margin: 0 auto 0.5rem; }
.already a { display: inline-block; padding: 0.25rem 0; font-weight: 600; }
.fineprint { color: var(--text-muted); font-size: 0.9375rem; max-width: 36rem; margin: 0 auto; }
.audience { color: var(--text-muted); font-size: 0.9375rem; margin: 0.5rem auto 0; }

/* Product mockup (fake data, HTML/CSS only) */
.mock { position: relative; margin: 3rem 0 0; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 1rem; text-align: left; }
.mock-tag { position: absolute; top: -0.75rem; right: 1rem; background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 0 0.75rem; font-size: 0.8125rem; font-weight: 600; color: var(--text-muted); line-height: 1.5rem; }
.mock-grid { display: grid; gap: 1rem; }
.receipt { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; display: flex; justify-content: center; }
.receipt-paper { width: 100%; max-width: 15rem; background: #fff; border: 1px solid var(--border); box-shadow: 0 1px 3px rgb(15 31 23 / 0.08); padding: 1rem; font-family: var(--mono); font-size: 0.75rem; line-height: 1.7; color: #33433a; }
.receipt-paper .r-title { text-align: center; font-weight: 700; letter-spacing: 0.08em; }
.receipt-paper .r-meta { text-align: center; color: var(--text-muted); border-bottom: 1px dashed #9db3a5; padding-bottom: 0.5rem; margin-bottom: 0.5rem; }
.receipt-paper .r-line { display: flex; justify-content: space-between; gap: 0.5rem; }
.receipt-paper .r-total { border-top: 1px dashed #9db3a5; margin-top: 0.5rem; padding-top: 0.5rem; font-weight: 700; }
.panel { min-width: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; }
.fake-btn { display: inline-flex; align-items: center; min-height: 2.25rem; padding: 0 1rem; background: var(--green-600); color: #fff; border-radius: 0.5rem; font-weight: 600; font-size: 0.9375rem; }
.tiny { font-size: 0.8125rem; color: var(--text-muted); }
.tabs { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--border); }
.tabs button { min-height: 2.5rem; padding: 0 0.75rem; background: transparent; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; font: inherit; font-size: 0.9375rem; font-weight: 600; color: var(--text-muted); cursor: pointer; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { color: var(--green-700); border-bottom-color: var(--green-600); }
.sheet { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
.sheet th, .sheet td { text-align: left; padding: 0.5rem 0.5rem; border-bottom: 1px solid var(--border); overflow-wrap: break-word; vertical-align: top; }
.sheet .nowrap { white-space: nowrap; }
.sheet th { color: var(--text-muted); font-weight: 600; background: var(--bg-soft); }
.sheet .num { text-align: right; font-variant-numeric: tabular-nums; }
.sheet td.flag { background: var(--flag-bg); color: var(--flag-text); font-weight: 600; }
.flag-note { display: inline-block; background: var(--flag-bg); color: var(--flag-text); border-radius: 0.5rem; padding: 0.125rem 0.5rem; font-size: 0.8125rem; font-weight: 600; }

/* Standalone pages (pricing) */
.page-hero { text-align: center; padding: 3rem 0 1.5rem; }
.page-hero h1 { font-size: clamp(2.125rem, 1.5rem + 2.6vw, 3.25rem); margin-bottom: 1rem; }
.page-hero .lead { font-size: 1.125rem; color: var(--text-muted); max-width: 36rem; margin: 0 auto; }
section.tight { padding-top: 1.5rem; }
h2.plain { max-width: 44rem; margin: 0 auto 1rem; }
.facts { max-width: 44rem; margin: 0 auto; padding-left: 1.25rem; color: var(--text-muted); }
.facts li { margin: 0.5rem 0; }

.contact-card { max-width: 32rem; margin: 0 auto; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; text-align: center; box-shadow: var(--shadow); }
.contact-card .label { margin-bottom: 0.25rem; }
.contact-mail { font-family: var(--head); font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; overflow-wrap: anywhere; }
.contact-mail a { display: inline-block; padding: 0.25rem 0; }
.contact-card .tiny { margin-top: 0.75rem; }

/* Legal pages: one readable column */
.legal { padding: 3rem 0 var(--section-y); }
.legal .container { max-width: 48rem; }
.legal h1 { font-size: clamp(2.125rem, 1.5rem + 2.6vw, 3rem); margin-bottom: 1rem; }
.legal h2 { font-size: 1.5rem; margin: 2.5rem 0 0.75rem; }
.legal .lead { font-size: 1.125rem; color: var(--text-muted); }
.legal p, .legal li { max-width: 65ch; }
.legal p { margin: 0 0 1rem; }
.legal ul { padding-left: 1.25rem; margin: 0 0 1rem; }
.legal li { margin: 0.375rem 0; }

/* Pain point */
.pain .container, .pain-body { max-width: 44rem; }
.pain h2 { margin-bottom: 1rem; }
.pain p:not(.label) { color: var(--text-muted); font-size: 1.0625rem; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.steps li { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow); }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--green-600); color: #fff; font-weight: 600; margin-bottom: 1rem; }
.steps h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.steps p { color: var(--text-muted); }
.tip { text-align: center; color: var(--text-muted); font-size: 0.9375rem; margin: 2rem auto 0; max-width: 40rem; }

/* Benefits */
.benefits { display: grid; gap: 3rem; }
.benefit { display: grid; gap: 1.5rem; align-items: center; }
.benefit h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.benefit p { color: var(--text-muted); max-width: 65ch; }
.benefit p + p { margin-top: 0.75rem; }
.benefit-visual { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; min-width: 0; }
.mini { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 0.75rem; font-size: 0.875rem; }
.mini strong { display: block; font-size: 0.8125rem; margin-bottom: 0.25rem; }
.mini span { color: var(--text-muted); }
.flow-arrow { display: block; text-align: center; color: var(--green-600); font-weight: 600; font-size: 0.8125rem; padding: 0.5rem 0; }
.kv { display: grid; grid-template-columns: 5rem 1fr; gap: 0.5rem 0.75rem; align-items: center; font-size: 0.875rem; }
.kv dt { color: var(--text-muted); }
.kv dd { margin: 0; }
.kv .empty { color: var(--text-muted); font-style: italic; }
.kv .flag { display: inline-block; background: var(--flag-bg); color: var(--flag-text); border-radius: 0.375rem; padding: 0 0.5rem; font-weight: 600; }
.joined { display: grid; gap: 0.75rem; }
.joined .sheet { background: #fff; border: 1px solid var(--border); border-radius: 0.5rem; }
.joined .cap { font-size: 0.8125rem; font-weight: 600; margin-bottom: 0.25rem; }
.link-more { display: inline-block; margin-top: 0.75rem; font-weight: 600; }

/* Pricing */
.cards { display: grid; gap: 1rem; }
.card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.card h3 { font-size: 1.25rem; }
.price { font-family: var(--head); font-size: 2.25rem; font-weight: 700; letter-spacing: -0.02em; margin: 0.25rem 0 1rem; }
.price small { font-family: var(--font); font-size: 1rem; font-weight: 400; color: var(--text-muted); letter-spacing: 0; }
.scans { font-size: 1.125rem; }
.scans strong { color: var(--green-700); font-weight: 600; }
.per { color: var(--text-muted); font-size: 0.9375rem; margin: 0.125rem 0 1rem; }
.ticks { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 0.5rem; }
.ticks li { position: relative; padding-left: 1.75rem; }
.ticks li::before { content: ""; position: absolute; left: 0.25rem; top: 0.4em; width: 0.4rem; height: 0.75rem; border-right: 2px solid var(--green-600); border-bottom: 2px solid var(--green-600); transform: rotate(45deg); }
.card .button { margin-top: auto; width: 100%; }
.card.free { background: var(--green-50); border-color: #bfe0c9; margin-top: 1rem; }
.free-line { font-family: var(--head); font-size: 1.375rem; font-weight: 700; color: var(--green-700); line-height: 1.2; margin-bottom: 0.75rem; }
.card.free .price { margin-bottom: 1rem; }
.pricing-notes { text-align: center; margin-top: 2rem; display: grid; gap: 0.5rem; color: var(--text-muted); }
.pricing-notes a { font-weight: 600; display: inline-block; padding: 0.25rem 0; }

/* FAQ */
.faq { max-width: 44rem; margin: 0 auto; }
details { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 1.25rem; margin: 0.5rem 0; }
summary { min-height: 3.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; font-weight: 600; list-style: none; padding: 0.5rem 0; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--green-600); flex: none; }
details[open] summary::after { content: "\2212"; }
details p { margin: 0 0 1rem; color: var(--text-muted); }

/* Final call to action: the only dark band */
.final { background: var(--green-700); color: #fff; text-align: center; }
.final h2 { max-width: 24ch; margin: 0 auto 1rem; }
.final p { color: var(--green-50); font-size: 1.125rem; }
.final .actions { max-width: 20rem; margin: 2rem auto 0; }
.final :focus-visible { outline-color: #fff; }
.final .button { background: #fff; color: var(--green-700); border-color: #fff; }
.final .button:hover { background: var(--green-50); color: var(--green-700); border-color: var(--green-50); }
.final .button.secondary { background: transparent; color: #fff; border-color: #fff; }
.final .button.secondary:hover { background: rgb(255 255 255 / 0.12); color: #fff; }

/* Footer */
footer.site { border-top: 1px solid var(--border); background: var(--bg); color: var(--text-muted); font-size: 0.9375rem; }
footer.site .container { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding-top: 1.5rem; padding-bottom: 1.5rem; text-align: center; }
footer.site nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 1.25rem; }
footer.site a { display: inline-block; padding: 0.6rem 0; color: var(--text-muted); }
footer.site a:hover { color: var(--green-700); }
footer.site p { font-weight: 600; color: var(--text); }

@media (min-width: 640px) {
  header.site nav a.nav-link { display: inline-flex; }
  .actions { flex-direction: row; justify-content: center; }
  .hero .actions, .final .actions { max-width: none; }
  footer.site .container { flex-direction: row; justify-content: space-between; text-align: left; }
}

@media (min-width: 768px) {
  :root { --section-y: 6rem; }
  .container { padding-left: 1.5rem; padding-right: 1.5rem; }
  .hero { padding-top: 5rem; }
  h2 { font-size: 2.25rem; }
  .hero .lead { font-size: 1.25rem; }
  .mock { padding: 1.5rem; }
  .mock-grid { grid-template-columns: 17rem 1fr; gap: 1.5rem; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .benefit { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .benefit:nth-child(even) .benefit-visual { order: -1; }
  .benefits { gap: 5rem; }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .card.free { margin-top: 1.5rem; }
  .card.free .ticks { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .card.free { flex-direction: row; align-items: center; gap: 2rem; padding: 1.5rem 2rem; }
  .card.free .free-head { flex: 0.8; }
  .card.free .price { margin: 0; }
  .card.free .ticks { flex: 1.6; margin: 0; }
  .card.free .button { margin: 0; width: auto; min-width: 11rem; }
}
