/* Yesroll — marketing site styles
   Single stylesheet, no external dependencies (Cloudflare Pages static host).
   Light palette on :root; dark redefines tokens only. */

:root {
  color-scheme: light dark;

  --paper:      #FBF9F4;
  --surface:    #FFFFFF;
  --surface-2:  #F3F0E8;
  --ink:        #14130F;
  --ink-2:      #3B382F;
  --muted:      #57534A;
  --line:       #E2DED2;
  --accent:     #0F7A55;
  --accent-ink: #0B5B3F;
  --accent-bg:  #E7F2EC;
  --warn:       #9A5B12;
  --warn-bg:    #FBF0DC;

  --radius:     16px;
  --radius-sm:  10px;
  --maxw:       1120px;
  --gutter:     clamp(1.25rem, 4vw, 2.5rem);

  --f-display: clamp(2.5rem, 7.2vw, 4.75rem);
  --f-h2:      clamp(1.75rem, 3.8vw, 2.75rem);
  --f-h3:      clamp(1.125rem, 1.8vw, 1.3rem);
  --f-lead:    clamp(1.075rem, 2.1vw, 1.375rem);

  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:      #0F0E0C;
    --surface:    #171613;
    --surface-2:  #1F1E19;
    --ink:        #F5F2EA;
    --ink-2:      #DBD6C9;
    --muted:      #A29C8C;
    --line:       #2E2C25;
    --accent:     #3FCB93;
    --accent-ink: #6FE0B2;
    --accent-bg:  #12261E;
    --warn:       #E8B769;
    --warn-bg:    #2A2114;
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: var(--f-display); letter-spacing: -0.045em; }
h2 { font-size: var(--f-h2); }
h3 { font-size: var(--f-h3); letter-spacing: -0.02em; }
p  { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

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

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: .75rem 1.25rem; border-radius: 0 0 var(--radius-sm) 0; font-weight: 600;
}
.skip:focus { left: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-tag {
  font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-ink); margin: 0 0 .875rem;
}
.lead { font-size: var(--f-lead); color: var(--ink-2); line-height: 1.5; max-width: 46ch; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 1rem;
  min-height: 64px; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: 1.1875rem; letter-spacing: -.04em;
  color: var(--ink); text-decoration: none; margin-right: auto;
}
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav { display: flex; align-items: center; gap: clamp(.75rem, 2vw, 1.5rem); flex-wrap: wrap; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: .9375rem; font-weight: 500; }
.nav a:hover { color: var(--accent-ink); }
@media (max-width: 33em) { .nav .nav-hide { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; padding: .6875rem 1.375rem;
  border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: .9375rem; letter-spacing: -.01em;
  text-decoration: none; cursor: pointer;
  transition: transform .12s ease, background-color .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #FFF; }
@media (prefers-color-scheme: dark) { .btn-primary { color: #06231A; } }
.btn-primary:hover { background: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-2); }

/* ---------- hero ---------- */
.hero { padding-block: clamp(3rem, 9vw, 6rem) clamp(2.5rem, 6vw, 4rem); }
.pill {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--accent-bg); color: var(--accent-ink);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  padding: .375rem .875rem; border-radius: 999px;
  font-size: .8125rem; font-weight: 600; letter-spacing: -.005em;
  margin-bottom: 1.5rem;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.hero h1 { max-width: 15ch; }
.hero .lead { margin-top: 1.25rem; max-width: 52ch; }
.hero-accent { color: var(--accent); }

.replaces {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-top: 2rem; padding: 0; list-style: none;
}
.replaces li {
  font-size: .8125rem; font-weight: 600; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: .3125rem .75rem;
  background: var(--surface);
}
.replaces li s { text-decoration-color: color-mix(in srgb, var(--accent) 70%, transparent); }

/* ---------- waitlist form ---------- */
.signup { margin-top: 2rem; max-width: 30rem; }
.signup-row { display: flex; gap: .625rem; flex-wrap: wrap; }
.signup label {
  display: block; font-size: .875rem; font-weight: 600; margin-bottom: .4375rem; color: var(--ink-2);
}
.signup input[type="email"] {
  flex: 1 1 15rem; min-width: 0; min-height: 46px;
  padding: .6875rem .9375rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink);
  font: inherit; font-size: .9375rem;
}
.signup input[type="email"]::placeholder { color: var(--muted); }
.signup input[type="email"]:focus-visible { border-color: var(--accent); }
.signup input[aria-invalid="true"] { border-color: #B4381F; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .8125rem; color: var(--muted); margin-top: .75rem; }
.form-msg { margin-top: .875rem; font-size: .9375rem; font-weight: 500; min-height: 1.4em; }
.form-msg[data-state="error"]   { color: #B4381F; }
.form-msg[data-state="success"] { color: var(--accent-ink); }
@media (prefers-color-scheme: dark) { .form-msg[data-state="error"] { color: #F0876B; } }

/* ---------- generic grid + cards ---------- */
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(1.25rem, 2.5vw, 1.75rem);
}
.card h3 { margin-bottom: .4375rem; }
.card p  { color: var(--muted); font-size: .9375rem; }
.card-icon {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  background: var(--accent-bg); color: var(--accent-ink);
  display: grid; place-items: center; font-size: 1.125rem; font-weight: 700;
  margin-bottom: .875rem;
}

/* ---------- cost comparison table ---------- */
.table-scroll { overflow-x: auto; margin-top: 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: .9375rem; }
caption { text-align: left; padding: 1rem 1.125rem .5rem; font-size: .875rem; color: var(--muted); }
th, td { padding: .875rem 1.125rem; text-align: left; border-bottom: 1px solid var(--line); }
thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; }
tbody tr:last-child td { border-bottom: 0; }
tfoot td { font-weight: 700; border-top: 2px solid var(--line); border-bottom: 0; background: var(--surface-2); }
.seat-yes { color: var(--warn); font-weight: 600; }
.seat-no  { color: var(--accent-ink); font-weight: 600; }

/* ---------- meter / USP ---------- */
.usp { background: var(--surface-2); border-block: 1px solid var(--line); }
.meter {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
}
.meter-value {
  font-family: var(--mono); font-size: clamp(2.25rem, 6.5vw, 3.5rem);
  font-weight: 700; letter-spacing: -.04em; color: var(--accent); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.meter-label { font-size: .8125rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); font-weight: 700; margin-top: .625rem; }
.meter-bar { height: 8px; border-radius: 999px; background: var(--surface-2); margin-top: 1.25rem; overflow: hidden; border: 1px solid var(--line); }
.meter-fill { height: 100%; width: 34%; background: var(--accent); border-radius: 999px; }
.checklist { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .75rem; }
.checklist li { display: flex; gap: .6875rem; align-items: flex-start; font-size: .9375rem; }
.checklist li::before {
  content: "✓"; color: var(--accent); font-weight: 700; flex: none;
  width: 22px; height: 22px; border-radius: 50%; background: var(--accent-bg);
  display: grid; place-items: center; font-size: .8125rem; margin-top: .1em;
}

/* ---------- mission / vision ---------- */
.mv { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); margin-top: 2rem; }
.mv article { border-left: 3px solid var(--accent); padding-left: 1.25rem; }
.mv h3 { color: var(--accent-ink); font-size: .8125rem; text-transform: uppercase; letter-spacing: .1em; }
.mv p { font-size: var(--f-lead); line-height: 1.45; color: var(--ink); letter-spacing: -.02em; }

/* ---------- pricing ---------- */
.plans { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); margin-top: 2rem; align-items: start; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.375rem, 2.5vw, 1.875rem); }
.plan.featured { border-color: var(--accent); border-width: 2px; }
.plan-name { font-size: .8125rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 700; color: var(--muted); }
.plan.featured .plan-name { color: var(--accent-ink); }
.price { font-size: clamp(2.25rem, 5vw, 3rem); font-weight: 700; letter-spacing: -.045em; margin: .5rem 0 .125rem; line-height: 1; }
.price span { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: -.01em; }
.plan ul { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .625rem; font-size: .9375rem; }
.plan ul li { display: flex; gap: .625rem; }
.plan ul li::before { content: "→"; color: var(--accent); flex: none; }

/* ---------- FAQ ---------- */
.faq { margin-top: 2rem; display: grid; gap: .75rem; }
details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 1rem 1.125rem;
}
details[open] { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 1.375rem; font-weight: 400; line-height: 1; flex: none; }
details[open] summary::after { content: "−"; }
details > p { margin-top: .875rem; color: var(--muted); font-size: .9375rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: clamp(2rem, 5vw, 3.5rem); text-align: center; }
.cta-band h2 { color: var(--paper); }
.cta-band p { color: color-mix(in srgb, var(--paper) 72%, transparent); max-width: 44ch; margin-inline: auto; }
.cta-band .btn-primary { margin-top: 1.5rem; }

/* ---------- notice ---------- */
.notice {
  background: var(--warn-bg); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent);
  color: var(--warn); border-radius: var(--radius-sm);
  padding: .875rem 1.125rem; font-size: .875rem; margin-top: 1.5rem;
}
.notice strong { color: var(--warn); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 3rem 2.5rem; margin-top: 2rem; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; padding: 0; margin: 0; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: .875rem; }
.footer-links a:hover { color: var(--accent-ink); text-decoration: underline; }
.copyright { color: var(--muted); font-size: .8125rem; margin-top: 2rem; }

/* ---------- legal / prose pages ---------- */
.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(1.25rem, 2.6vw, 1.625rem); margin-top: 2.5rem; }
.prose h2:first-of-type { margin-top: 1.5rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: .5rem; }
.page-head { padding-block: clamp(2.5rem, 6vw, 4rem) 0; }
