:root {
  --bg: #f5f0eb;
  --surface: #ffffff;
  --ink: #14202e;
  --muted: #5b6573;
  --line: #e4ddd4;
  --brand: #097e92;
  --brand-ink: #ffffff;
  --brand-soft: #e3f1f3;
  --accent: #f2a541;
  --radius: 18px;
  --shadow: 0 1px 2px rgb(20 32 46 / 6%), 0 12px 32px rgb(20 32 46 / 8%);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1a24;
    --surface: #16232f;
    --ink: #edf1f4;
    --muted: #9aa7b3;
    --line: #253543;
    --brand: #2fb3c7;
    --brand-ink: #062027;
    --brand-soft: #123844;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 12px 32px rgb(0 0 0 / 35%);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); }
img, svg { max-width: 100%; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 19px; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.logo-mark { width: 30px; height: 30px; }
.logo small { font-weight: 600; color: var(--brand); }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--ink); }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-weight: 650; font-size: 16px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 35%, transparent); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.nav .btn { padding: 8px 16px; font-size: 15px; color: var(--brand-ink); }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 920px) { .hero .wrap { grid-template-columns: 1fr; gap: 40px; } .hero { padding-top: 40px; } }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); background: var(--brand-soft); padding: 6px 12px; border-radius: 999px; }
h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.04; letter-spacing: -0.03em; margin: 18px 0 18px; }
h1 em { font-style: normal; color: var(--brand); }
.lead { font-size: 20px; color: var(--muted); max-width: 34em; margin: 0 0 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.fineprint { font-size: 14px; color: var(--muted); margin-top: 16px; }

/* Before/after visual */
.hero .wrap > * { min-width: 0; }
.compare { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 14px; }
@media (max-width: 480px) { .compare { gap: 8px; } .arrow { font-size: 10px; } .post-img { padding: 12px; } .post-img b { font-size: 14px; } }
.post { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line); }
.post-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-size: 12px; font-weight: 650; }
.post-head i { width: 22px; height: 22px; border-radius: 50%; display: block; }
.post-img { aspect-ratio: 4/5; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; }
.post-img b { font-size: clamp(15px, 2vw, 20px); line-height: 1.15; letter-spacing: -0.01em; }
.post-img span { font-size: 11px; opacity: .85; }
.post-foot { padding: 8px 12px 12px; font-size: 11px; color: var(--muted); }
.src .post-head i { background: #c9b8a6; }
.src .post-img { background: #2b2b2b; color: #fff; }
.mine .post-head i { background: var(--brand); }
.mine .post-img { background: linear-gradient(160deg, #097e92, #0b5d6b); color: #fff; }
.mine .post-img .tag { align-self: flex-start; background: var(--accent); color: #1d1300; font-weight: 700; padding: 3px 8px; border-radius: 6px; font-size: 10px; }
.arrow { display: grid; place-items: center; gap: 6px; color: var(--brand); font-size: 12px; font-weight: 700; text-align: center; }
.arrow svg { width: 34px; height: 34px; }
.label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 8px 4px; }

/* Sections */
section { padding: 72px 0; }
.section-head { max-width: 680px; margin-bottom: 40px; }
h2 { font-size: clamp(30px, 4vw, 42px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 12px; }
.section-head p { color: var(--muted); font-size: 19px; margin: 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 800; margin-bottom: 16px; }
.step h3, .feature h3, .audience h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -0.01em; }
.step p, .feature p, .audience p { margin: 0; color: var(--muted); font-size: 16px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--surface); padding: 26px; }
.feature svg { width: 26px; height: 26px; color: var(--brand); margin-bottom: 12px; }

.principle { background: var(--ink); color: var(--bg); border-radius: 28px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .principle { grid-template-columns: 1fr; } }
.principle h2 { color: inherit; }
.principle p { opacity: .8; margin: 0; font-size: 18px; }
.principle ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.principle li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.principle li b { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; }
.yes b { background: #2fb3c7; color: #062027; }
.no b { background: #4a5663; color: #fff; }

.audiences { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 760px) { .audiences { grid-template-columns: 1fr; } }
.audience { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.audience .pill { display: inline-block; font-size: 12px; font-weight: 700; color: var(--brand); background: var(--brand-soft); padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }
.audience ul { margin: 14px 0 0; padding-left: 20px; color: var(--muted); font-size: 16px; }

.faq { max-width: 780px; }
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font-weight: 650; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--brand); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 10px 0 0; }

/* Waitlist */
.signup { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: clamp(28px, 5vw, 56px); box-shadow: var(--shadow); text-align: center; }
.signup p { color: var(--muted); max-width: 540px; margin: 0 auto 26px; }
.form { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 640px; margin: 0 auto; }
.form input[type="email"], .form select { flex: 1 1 220px; min-width: 0; padding: 13px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; }
.form input:focus, .form select:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.form .hp { position: absolute; left: -9999px; }
.consent { font-size: 13px; color: var(--muted); margin-top: 14px; }
.form-msg { min-height: 1.6em; margin-top: 12px; font-weight: 600; }
.form-msg.ok { color: var(--brand); }
.form-msg.err { color: #c2410c; }

footer { padding: 40px 0 56px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 28px; }
footer a { color: var(--muted); margin-left: 18px; }

/* Legal pages */
.legal { padding: 56px 0 80px; max-width: 760px; }
.legal h1 { font-size: 40px; }
.legal h2 { font-size: 22px; margin-top: 32px; }
.todo { background: #fff4d6; color: #5a4300; border-radius: 10px; padding: 12px 16px; font-size: 15px; }
