/* greenwick.app — one stylesheet for the whole site (ADR-063).
   Extends the original landing page's system: Archivo 450/600, the wick-green
   accent, hairline rules, near-flat cards, light + dark via token swap.
   Archivo is self-hosted (assets/fonts/, SIL OFL — license alongside): the
   site makes zero third-party requests, which the privacy policy promises. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/archivo-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #fafaf8;
  --bg-raise: rgba(250, 250, 248, 0.86);
  --ink: #17211c;
  --muted: #5c6a63;
  --accent: #1f6f54;
  --on-accent: #f6faf8;
  --accent-soft: rgba(31, 111, 84, 0.09);
  --rule: rgba(23, 33, 28, 0.14);
  --rule-soft: rgba(23, 33, 28, 0.08);
  --card: rgba(23, 33, 28, 0.025);
  --card-raise: #ffffff;
  --danger: #a3402f;
  --shadow: 0 18px 50px -24px rgba(23, 33, 28, 0.25);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101418;
    --bg-raise: rgba(16, 20, 24, 0.86);
    --ink: #dbe2e8;
    --muted: #8b98a5;
    --accent: #4cc38a;
    --on-accent: #0b1511;
    --accent-soft: rgba(76, 195, 138, 0.1);
    --rule: rgba(219, 226, 232, 0.16);
    --rule-soft: rgba(219, 226, 232, 0.09);
    --card: rgba(219, 226, 232, 0.035);
    --card-raise: #161c22;
    --danger: #d97e6d;
    --shadow: 0 18px 50px -24px rgba(0, 0, 0, 0.6);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Archivo", -apple-system, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  font-weight: 450;
  font-size: 15.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: var(--on-accent); }
a { color: var(--accent); text-decoration: none; }
p a, li a, td a { border-bottom: 1px solid var(--rule); padding-bottom: 1px; }
p a:hover, li a:hover, td a:hover { border-bottom-color: var(--accent); }
img, svg, video { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Navigation ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg-raise);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule-soft);
}
.nav-inner {
  max-width: 68rem; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 26px; height: 60px;
}
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); }
.brand-mark { width: 26px; height: 26px; flex: none; }
.brand-mark .stroke { stroke: var(--accent); }
.brand-mark .fill { fill: var(--accent); }
.brand-name { font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 20px; margin-left: auto; }
.nav-links a {
  color: var(--muted); font-size: 14.5px; padding: 4px 2px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--ink); }
body[data-page="features"] a[data-nav="features"],
body[data-page="how"]      a[data-nav="how"],
body[data-page="demo"]     a[data-nav="demo"],
body[data-page="pricing"]  a[data-nav="pricing"],
body[data-page="security"] a[data-nav="security"],
body[data-page="faq"]      a[data-nav="faq"],
body[data-page="roadmap"]  a[data-nav="roadmap"],
body[data-page="about"]    a[data-nav="about"] {
  color: var(--ink); border-bottom-color: var(--accent);
}
.nav-cta { flex: none; }
.nav-menu { display: none; position: relative; margin-left: auto; }
.nav-menu summary {
  list-style: none; cursor: pointer; display: flex; align-items: center;
  padding: 6px; border-radius: 8px; color: var(--ink);
}
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu[open] summary { background: var(--card); }
.menu-sheet {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 15rem;
  background: var(--card-raise); border: 1px solid var(--rule); border-radius: 14px;
  box-shadow: var(--shadow); padding: 8px; display: flex; flex-direction: column;
}
.menu-sheet a { color: var(--ink); font-size: 15px; padding: 10px 12px; border-radius: 8px; }
.menu-sheet a:hover { background: var(--card); }
.menu-sheet .menu-cta {
  margin-top: 6px; background: var(--accent); color: var(--on-accent);
  text-align: center; font-weight: 600;
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-menu { display: block; margin-left: 0; }
  .nav-cta { margin-left: auto; }
  .nav-inner { gap: 14px; padding: 0 16px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 15px;
  padding: 10px 20px; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; transition: filter 120ms ease, background 120ms ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--rule); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--card); }
.btn-lg { padding: 13px 26px; font-size: 16px; border-radius: 12px; }

/* ---------- Layout rhythm ---------- */
main { display: block; }
.section { padding: 72px 20px; }
.section + .section { padding-top: 8px; }
.section-alt { background: var(--card); border-top: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft); }
.section-alt + .section { padding-top: 72px; }
.wrap { max-width: 68rem; margin: 0 auto; }
.wrap-narrow { max-width: 46rem; margin: 0 auto; }
.section-head { text-align: center; max-width: 38rem; margin: 0 auto 44px; }
h1 { font-weight: 600; font-size: clamp(30px, 5.4vw, 44px); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 14px; }
h2 { font-weight: 600; font-size: clamp(23px, 3.4vw, 29px); letter-spacing: -0.015em; line-height: 1.2; margin: 0 0 10px; }
h3 { font-weight: 600; font-size: 16.5px; margin: 0 0 6px; }
.kicker {
  display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.sub { font-size: 16.5px; line-height: 1.65; color: var(--muted); margin: 0; }
.sub strong { color: var(--ink); font-weight: 600; }

/* ---------- Hero ---------- */
.hero { padding: 84px 20px 56px; text-align: center; }
.hero .wrap-narrow { max-width: 42rem; }
.hero-mark { width: 60px; height: 60px; margin: 0 auto 20px; display: block; }
.hero-mark .stroke { stroke: var(--accent); }
.hero-mark .fill { fill: var(--accent); }
.hero .sub { max-width: 36rem; margin: 0 auto; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.cta-note { font-size: 13.5px; color: var(--muted); margin-top: 14px; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.grid-pairs { grid-template-columns: repeat(auto-fit, minmax(min(24rem, 100%), 1fr)); }
.card {
  border: 1px solid var(--rule); background: var(--card);
  border-radius: 14px; padding: 20px 22px;
}
.card p { font-size: 14.5px; line-height: 1.58; color: var(--muted); margin: 0; }
.card p strong { color: var(--ink); }
.card .why { display: block; margin-top: 10px; font-size: 13.5px; color: var(--ink); }
.card .why::before { content: "Why it matters — "; color: var(--accent); font-weight: 600; }
.card-icon { width: 26px; height: 26px; margin-bottom: 12px; color: var(--accent); }

/* ---------- Stat strip ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 14px; text-align: center; }
.stat .num { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; display: block; }
.stat .lbl { font-size: 13.5px; color: var(--muted); }

/* ---------- Pipeline (home teaser) ---------- */
.flow { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.flow .step {
  border: 1px solid var(--rule); background: var(--card-raise); border-radius: 999px;
  padding: 7px 14px; font-size: 13.5px; font-weight: 600; white-space: nowrap;
}
.flow .step.accent { border-color: var(--accent); color: var(--accent); }
.flow .arrow { color: var(--muted); font-size: 13px; }

/* ---------- Pipeline (how-it-works stages) ---------- */
.stages { list-style: none; margin: 0; padding: 0; position: relative; }
.stages > li { position: relative; padding: 0 0 34px 58px; }
.stages > li:last-child { padding-bottom: 0; }
.stages > li::before {
  content: ""; position: absolute; left: 19px; top: 40px; bottom: -2px;
  width: 2px; background: var(--rule);
}
.stages > li:last-child::before { display: none; }
.stage-n {
  position: absolute; left: 0; top: 0;
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent);
  font-weight: 600; font-size: 15px; border: 1px solid var(--accent);
}
.stages h3 { font-size: 18px; margin-bottom: 6px; }
.stages p { color: var(--muted); font-size: 15px; margin: 0 0 8px; max-width: 40rem; }
.stages p strong { color: var(--ink); }
.agent-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.agent-chips span {
  font-size: 12.5px; font-weight: 600; padding: 4px 11px; border-radius: 999px;
  border: 1px solid var(--rule); color: var(--muted); background: var(--card-raise);
}
.agent-chips span.bull { border-color: var(--accent); color: var(--accent); }
.agent-chips span.bear { border-color: var(--danger); color: var(--danger); }

/* ---------- Comparison (one AI vs Greenwick) ---------- */
.vs { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); align-items: stretch; }
.vs .card { display: flex; flex-direction: column; }
.vs .card.win { border-color: var(--accent); }
.vs .vs-label { font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.vs .win .vs-label { color: var(--accent); }
.vs-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 14px; }
.vs-chain span { font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 7px; background: var(--card); border: 1px solid var(--rule-soft); }
.vs-chain .sep { border: 0; background: none; color: var(--muted); padding: 0 1px; font-weight: 450; }

/* ---------- Screenshots ---------- */
.shot { border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; background: var(--card-raise); box-shadow: var(--shadow); }
.shot-bar { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--rule-soft); }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--rule); }
.shot img, .shot video { display: block; width: 100%; }
.shot-caption { font-size: 13.5px; color: var(--muted); text-align: center; margin: 12px 0 0; }
.shot-placeholder {
  aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 14px; background: var(--card);
}

/* ---------- Pricing ---------- */
.plans { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); align-items: stretch; }
.plan { border: 1px solid var(--rule); background: var(--card); border-radius: 16px; padding: 26px 24px; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--accent); background: var(--accent-soft); }
.plan .name { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
.plan .price { font-size: 34px; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
.plan .price span { font-size: 15px; font-weight: 450; color: var(--muted); }
.plan .yearly { font-size: 13.5px; color: var(--muted); margin: 4px 0 14px; }
.plan .for { font-size: 14.5px; line-height: 1.5; margin: 0 0 14px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 18px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.plan li { padding: 5px 0 5px 22px; position: relative; }
.plan li::before {
  content: ""; position: absolute; left: 2px; top: 11px; width: 10px; height: 6px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.plan .plan-cta { margin-top: auto; }
.founders-note {
  font-size: 13.5px; line-height: 1.5; border: 1px dashed var(--accent); border-radius: 10px;
  padding: 10px 12px; margin: 0 0 16px;
}
.founders-note strong { color: var(--accent); }

.compare-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 14px; }
table.compare { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 14px; }
.compare th, .compare td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--rule-soft); }
.compare thead th { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: var(--card); }
.compare thead th:first-child { width: 42%; }
.compare tbody th { font-weight: 450; color: var(--ink); text-align: left; }
.compare td { text-align: center; color: var(--muted); }
.compare td .yes {
  display: inline-block; width: 11px; height: 7px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.compare td .no { color: var(--rule); }
.compare tbody tr.group th {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--accent); padding-top: 20px; background: transparent;
}
.compare tfoot td { text-align: center; padding: 16px; }

/* ---------- Notes / banners ---------- */
.note {
  border: 1px solid var(--rule); border-left: 3px solid var(--accent);
  background: var(--card); border-radius: 10px; padding: 14px 18px;
  font-size: 14.5px; line-height: 1.6; color: var(--muted);
}
.note strong { color: var(--ink); }
.banner {
  display: flex; gap: 12px; align-items: baseline; justify-content: center; flex-wrap: wrap;
  border: 1px dashed var(--accent); border-radius: 12px; background: var(--accent-soft);
  padding: 14px 18px; font-size: 14.5px; text-align: center;
}
.banner strong { color: var(--accent); }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
details.qa { border: 1px solid var(--rule); border-radius: 12px; background: var(--card); }
details.qa summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px;
  align-items: center; padding: 15px 18px; font-weight: 600; font-size: 15.5px;
}
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after {
  content: "+"; flex: none; font-size: 20px; font-weight: 450; color: var(--accent);
  transition: transform 140ms ease;
}
details.qa[open] summary::after { transform: rotate(45deg); }
details.qa .a { padding: 0 18px 16px; color: var(--muted); font-size: 14.8px; line-height: 1.65; }
details.qa .a p { margin: 0 0 10px; }
details.qa .a p:last-child { margin-bottom: 0; }
details.qa .a strong { color: var(--ink); }

/* ---------- Forms (beta) ---------- */
.form-card { border: 1px solid var(--rule); background: var(--card); border-radius: 16px; padding: 28px; }
.form-grid { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.field .hint { font-weight: 450; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  background: var(--card-raise); border: 1px solid var(--rule); border-radius: 10px;
  padding: 10px 12px;
}
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  border: 1px solid var(--rule); border-radius: 999px; padding: 7px 14px;
  font-size: 13.5px; font-weight: 450; margin: 0; background: var(--card-raise);
}
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label:has(input:checked) { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.chips label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 14px; font-size: 14.5px; min-height: 1.4em; }
.form-status.err { color: var(--danger); }
.form-status.ok { color: var(--accent); }
.form-success { text-align: center; padding: 34px 10px; }
.form-success h3 { font-size: 20px; }
.form-success p { color: var(--muted); }
[hidden] { display: none !important; }

/* ---------- Prose (legal, about) ---------- */
.prose { max-width: 44rem; margin: 0 auto; }
.prose h2 { font-size: 21px; margin: 34px 0 10px; }
.prose h3 { font-size: 16.5px; margin: 24px 0 8px; }
.prose p, .prose li { font-size: 15px; line-height: 1.7; color: var(--muted); }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--ink); }
.prose .updated { font-size: 13.5px; color: var(--muted); margin-bottom: 28px; }

/* ---------- Roadmap ---------- */
.road { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.road .card h3 { display: flex; align-items: center; gap: 8px; font-size: 14px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--accent); }
.road .card ul { list-style: none; margin: 12px 0 0; padding: 0; font-size: 14.5px; color: var(--muted); }
.road .card li { padding: 6px 0 6px 20px; position: relative; line-height: 1.5; }
.road .card li::before {
  content: ""; position: absolute; left: 2px; top: 13px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--accent);
}
.road .card.later li::before { background: var(--rule); }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; border-top: 1px solid var(--rule-soft); background: var(--card); padding: 64px 20px; }
.cta-band h2 { margin-bottom: 8px; }
.cta-band .sub { max-width: 32rem; margin: 0 auto 26px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--rule-soft); padding: 52px 20px 40px; }
.footer-inner { max-width: 68rem; margin: 0 auto; }
.footer-cols { display: grid; gap: 30px; grid-template-columns: 1.4fr 1fr 1fr 1fr; margin-bottom: 36px; }
@media (max-width: 760px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 430px) { .footer-cols { grid-template-columns: 1fr; } }
.footer-brand .brand-mark { width: 30px; height: 30px; }
.footer-brand p { font-size: 14px; color: var(--muted); line-height: 1.55; margin: 10px 0 0; }
.footer-col h3 { font-size: 12.5px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.footer-col a { display: block; color: var(--ink); font-size: 14px; padding: 4px 0; }
.footer-col a:hover { color: var(--accent); }
.footer-legal { border-top: 1px solid var(--rule-soft); padding-top: 22px; }
.footer-legal p { font-size: 12.5px; line-height: 1.7; color: var(--muted); max-width: 52rem; margin: 0 0 8px; }

/* ---------- Utilities (inline styles are CSP-blocked; use these) ---------- */
.center-link { text-align: center; margin-top: 26px; }
.mt-md { margin-top: 22px; }
.note.mt-md { margin-top: 24px; }
.mt-lg { margin-top: 26px; }
.mb-md { margin-bottom: 24px; }
.mb-lg { margin-bottom: 34px; }
.tight { margin-bottom: 6px; }
.cta-note.left { text-align: left; }

@media (max-width: 640px) {
  .section { padding: 56px 16px; }
  .hero { padding: 60px 16px 44px; }
  body { font-size: 15px; }
}
