/*
  thankSnap marketing site - shared stylesheet.
  Used by index.html, privacy.html, and faq.html so the design tokens and
  nav/footer/button rules exist in exactly one place. See index.html's own
  header comment for the fuller rationale (why no JS, theming approach,
  etc.) - this file only covers the CSS itself.
*/

/* ============================================================
   DESIGN TOKENS
   Light palette is the source of truth (bare :root). The two
   blocks below only override what changes for dark mode - an
   explicit dark-mode choice (:root[data-theme="dark"]) wins over
   the OS default (@media prefers-color-scheme), and an explicit
   light choice wins over a dark OS default in the other direction.
   ============================================================ */
:root {
  --paper: #FFFFFF;        /* page background */
  --paper-sunk: #F5FAF8;   /* recessed section background (templates, closer) */
  --ink: #0E1A16;          /* primary text */
  --ink-soft: #4B6058;     /* secondary text */
  --ink-faint: #7C948A;    /* tertiary / label text */
  --line: #D3E4DD;         /* hairline borders, dashed dividers */
  --accent: #1D9E75;       /* brand green - buttons, links, highlights */
  --accent-deep: #0F6E56;  /* darker brand green - hover states, emphasis text */

  --watermark: rgba(15,110,86,0.05);       /* the giant faint checkmark behind the hero headline */
  --shadow: 0 18px 40px -22px rgba(14,26,22,0.28);  /* the tilted receipt card */
  --shadow-sm: 0 1px 0 rgba(14,26,22,0.06);         /* pricing cards */

  /* Fixed (never flips with theme) - the receipt is a photographed white
     paper artifact, not a themed UI surface, so its own ink/accent/line
     colors stay put regardless of the viewer's light/dark preference. */
  --receipt-ink: #0E1A16;
  --receipt-ink-soft: #4B6058;
  --receipt-ink-faint: #7C948A;
  --receipt-line: #D3E4DD;
  --receipt-accent: #1D9E75;
  --receipt-accent-deep: #0F6E56;
  --receipt-mint: #E1F5EE;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0B1512;
    --paper-sunk: #101E19;
    --ink: #EAF6F1;
    --ink-soft: #A9C4BA;
    --ink-faint: #6E8A80;
    --line: #23362E;
    --accent: #34C795;
    --accent-deep: #8FE9C4;

    --watermark: rgba(52,199,149,0.07);
    --shadow: 0 18px 40px -18px rgba(0,0,0,0.6);
    --shadow-sm: 0 1px 0 rgba(0,0,0,0.5);
  }
}
:root[data-theme="dark"] {
  --paper: #0B1512;
  --paper-sunk: #101E19;
  --ink: #EAF6F1;
  --ink-soft: #A9C4BA;
  --ink-faint: #6E8A80;
  --line: #23362E;
  --accent: #34C795;
  --accent-deep: #8FE9C4;

  --watermark: rgba(52,199,149,0.07);
  --shadow: 0 18px 40px -18px rgba(0,0,0,0.6);
  --shadow-sm: 0 1px 0 rgba(0,0,0,0.5);
}

/* ============================================================
   BASE
   ============================================================ */
* { box-sizing: border-box; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", system-ui, sans-serif;
  margin: 0;
}
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: "Bricolage Grotesque", system-ui, sans-serif; text-wrap: balance; margin: 0; font-weight: 700; }
/* Small uppercase mono label used above section headings (e.g. "PRICING") */
.label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.label::before { content: ""; width: 0.6em; height: 0.6em; border-radius: 50%; background: currentColor; }
/* Tabular figures for anything where digits need to line up (prices, counts) */
.num { font-family: "IBM Plex Mono", monospace; font-variant-numeric: tabular-nums; }

.wrap { max-width: 1020px; margin: 0 auto; padding-inline: max(16px, 5vw); }
section { padding-block: 56px; }
section.sunk { background: var(--paper-sunk); }
.section-head { max-width: 58ch; }
.section-head h2 { margin-top: 12px; font-size: clamp(1.6rem, 2.8vw, 2.1rem); line-height: 1.15; }
.section-head p { margin-top: 10px; color: var(--ink-soft); line-height: 1.55; }

/* ---------- Nav ---------- */
.nav { padding-block: 22px; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand-lockup { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo-mark { width: 30px; height: 30px; border-radius: 7px; display: block; }
.brand { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 700; font-size: 1.3rem; letter-spacing: -0.01em; }
.brand .accent { color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 22px; }
.btn {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  padding: 0.8em 1.5em;
  border-radius: 3px;
}
.btn-primary { background: var(--accent); color: #FFFFFF; }
.btn-primary:hover { background: var(--accent-deep); }
.btn-ghost { background: transparent; color: var(--ink-soft); font-size: 0.92rem; text-decoration: none; padding: 0.8em 0; }
.btn-ghost:hover { color: var(--accent-deep); }

/* ---------- Hero ---------- */
.hero { padding-block: 60px 68px; position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 52px; align-items: center; position: relative; z-index: 1; }
.hero h1 {
  margin-top: 16px;
  font-size: clamp(2.2rem, 4.6vw, 3.3rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
}
.hero h1 em { font-style: italic; color: var(--accent-deep); }
.hero p.lede { margin-top: 18px; font-size: 1.1rem; line-height: 1.55; color: var(--ink-soft); max-width: 40ch; }
.hero .btn-primary { margin-top: 28px; }

/* Giant decorative checkmark behind the headline, clipped by the hero's
   overflow:hidden. Purely atmospheric - hidden on phones where there's
   no room for it to read as anything but clutter. */
.mark {
  position: absolute;
  right: -50px;
  top: -90px;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 700;
  font-size: 24rem;
  line-height: 1;
  color: var(--watermark);
  user-select: none;
  z-index: 0;
}

/* ---- Receipt/survey mock card (fixed light palette, see --receipt-*
       tokens above) - a non-interactive illustration of what a buyer
       sees on the real Thank you page, tilted slightly for a
       "photographed object" feel rather than a flat screenshot. ---- */
.receipt {
  background: #FFFFFF;
  color: var(--receipt-ink);
  box-shadow: var(--shadow);
  max-width: 360px;
  margin-inline: auto;
  transform: rotate(-2.5deg);
  position: relative;
}
.receipt-top, .receipt-bottom { padding: 22px 24px; }
.receipt-top .order-no { font-family: "IBM Plex Mono", monospace; font-size: 0.85rem; color: var(--receipt-ink-faint); }
.receipt-top .order-line { display: flex; justify-content: space-between; margin-top: 10px; font-size: 0.95rem; }
.receipt-total {
  margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--receipt-line);
  display: flex; justify-content: space-between; font-weight: 700;
}
.receipt-divider { display: flex; align-items: center; gap: 10px; padding: 0 24px; }
.receipt-divider .rule { flex: 1; border-top: 1px dashed var(--receipt-line); }
.confirmed {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: "IBM Plex Mono", monospace; font-size: 0.7rem; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--receipt-accent-deep);
}
.confirmed .dot-mark {
  width: 16px; height: 16px; border-radius: 50%; background: var(--receipt-accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 0.62rem;
}
.receipt-bottom .ask { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 700; font-size: 1.05rem; }
.chip-row { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 0.82rem; padding: 0.5em 0.9em; border: 1px solid var(--receipt-line); color: var(--receipt-ink-soft); }
.chip.picked { border-color: var(--receipt-accent); background: var(--receipt-mint); color: var(--receipt-accent-deep); font-weight: 600; }
.receipt-caption { text-align: center; font-size: 0.8rem; color: var(--ink-faint); margin-top: 20px; }

/* ---------- How it works (3-step explanation) ---------- */
.steps { margin-top: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { border-top: 3px solid var(--accent); padding-top: 16px; }
.step .step-no { font-family: "IBM Plex Mono", monospace; font-size: 0.82rem; color: var(--accent-deep); }
.step h3 { font-size: 1.08rem; margin-top: 8px; }
.step p { margin-top: 8px; font-size: 0.93rem; color: var(--ink-soft); line-height: 1.55; }

/* ---------- Templates (the 4 built-in starting-point surveys) ---------- */
.stub-row { margin-top: 32px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stub { background: var(--paper); border: 1px solid var(--line); padding: 18px 20px 20px; }
.stub .stub-name {
  font-family: "IBM Plex Mono", monospace; font-size: 0.72rem; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--accent-deep);
}
.stub .stub-q { margin-top: 8px; font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 700; font-size: 1.02rem; line-height: 1.28; }
.stub .stub-opts {
  margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line);
  font-size: 0.83rem; color: var(--ink-soft); line-height: 1.55;
}

/* ---------- Pricing ---------- */
.price-row { margin-top: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.price-card { background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: 26px 24px; }
.price-card .tier-name { font-family: "IBM Plex Mono", monospace; font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-faint); }
.price-card .tier-price { margin-top: 10px; font-family: "IBM Plex Mono", monospace; font-variant-numeric: tabular-nums; font-size: 2.5rem; font-weight: 600; line-height: 1; }
.price-card .tier-price .per { font-size: 0.9rem; font-weight: 400; color: var(--ink-faint); }
.price-card .tier-cap { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 0.9rem; color: var(--ink-soft); }
.price-card .tier-cap b { color: var(--ink); font-family: "IBM Plex Mono", monospace; }

/* Feature checklist shared across every pricing tier */
.feature-list { margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 28px; }
.feature-list li {
  list-style: none; font-size: 0.92rem; color: var(--ink-soft);
  padding-left: 1.3em; position: relative; line-height: 1.5;
}
.feature-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent-deep); font-weight: 700; }

/* ---------- Closing CTA ---------- */
.closer { text-align: left; padding-block: 64px; }
.closer h2 { font-size: clamp(1.7rem, 3.2vw, 2.2rem); }
.closer p { margin-top: 12px; color: var(--ink-soft); max-width: 50ch; }
.closer .btn-primary { margin-top: 22px; }

footer { border-top: 1px solid var(--line); padding-block: 24px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px 10px; font-size: 0.82rem; color: var(--ink-faint); }
footer .footer-links { display: flex; gap: 18px; }
footer .footer-links a:hover { color: var(--ink-soft); }

/* ============================================================
   DOCUMENT PAGES (privacy, FAQ) - long-form reading content, as
   opposed to the marketing sections above. Narrower measure, more
   vertical rhythm between headings.
   ============================================================ */
.doc-hero { padding-block: 48px 8px; }
.doc-hero h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.doc-hero .label { margin-bottom: 14px; }
.doc-meta { margin-top: 14px; color: var(--ink-faint); font-size: 0.88rem; }

.doc { max-width: 720px; margin: 0 auto; padding-block: 24px 64px; }
.doc h2 { font-size: 1.25rem; margin-top: 40px; }
.doc h2:first-child { margin-top: 0; }
.doc p { margin-top: 14px; line-height: 1.65; color: var(--ink-soft); }
.doc ul, .doc ol { margin-top: 14px; padding-left: 1.3em; line-height: 1.65; color: var(--ink-soft); }
.doc li + li { margin-top: 6px; }
.doc strong { color: var(--ink); }
.doc a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 2px; }

/* FAQ items as native <details>/<summary> - no JS needed for expand/collapse */
.faq-list { max-width: 720px; margin: 32px auto 0; display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid var(--line); background: var(--paper); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: "IBM Plex Mono", monospace;
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--accent-deep);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "\2212"; } /* minus sign */
.faq-item p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--ink-soft);
  line-height: 1.6;
  font-size: 0.94rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .stub-row { grid-template-columns: repeat(2, 1fr); } /* 4 templates -> 2x2 */
}
@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; }   /* stack headline above the receipt card */
  .steps { grid-template-columns: 1fr; }
  .stub-row { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  .mark { display: none; }  /* no room for the watermark at phone width */
}
