/* Ghost Watch marketing site. Same family look as the app (apps/web/src/app.css), Ghost Inspector and Ghost Agent
   Labs: forest green, emerald actions, mint accents, Manrope, rounded cards. Every color comes from these tokens. */
@font-face { font-family: "Manrope"; src: url("/assets/manrope.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --night: #09211a; --night-2: #0d2b22; --night-3: #133a2e; --line-dark: #1d4a3b;
  --emerald: #1d9e75; --emerald-deep: #0f6e56; --mint: #5dcaa5; --mint-bright: #66e0be;
  --mint-wash: #e1f5ee; --mint-wash-2: #f1faf6; --cream: #f0f3eb;
  --ink: #14201b; --body: #2b3138; --slate: #5c6370; --rule: #d9efe7; --field: #c9ddd5;
  --on-dark: #f4fbf8; --on-dark-2: #c4e2d6; --on-dark-3: #9cc4b4;
  --bad: #8a1f1f; --bad-soft: #fdeeee; --good: #0b6a4c; --good-soft: #e3f4ec; --warn: #7d5300; --warn-soft: #fbf0d9;
  --radius: 24px; --radius-sm: 14px;
  --shadow: 0 24px 60px rgba(9, 33, 26, 0.10);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--body); background: #fbfdfc; line-height: 1.6; font-size: 17px; -webkit-font-smoothing: antialiased; }
a { color: var(--emerald-deep); }
img, svg { max-width: 100%; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { color: var(--ink); letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
p + p { margin-top: 1em; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--emerald-deep); margin-bottom: 12px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 20; }
:focus-visible { outline: 3px solid var(--mint-bright); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

/* Header */
.site-header { background: var(--night); position: relative; z-index: 5; }
.nav { display: flex; align-items: center; gap: 24px; padding-top: 20px; padding-bottom: 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--mint-bright); font-weight: 700; font-size: 19px; text-decoration: none; }
.brand b { color: #fff; font-weight: 700; }
.site-header nav { margin-left: auto; }
.nav-links { display: flex; gap: 6px; }
.nav-links a, .menu-links a { color: var(--on-dark-2); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 14px; border-radius: 999px; }
.nav-links a:hover, .menu-links a:hover { color: #fff; background: var(--night-3); }
.nav-links a[aria-current="page"], .menu-links a[aria-current="page"] { color: #fff; background: var(--night-3); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; color: var(--on-dark); font-weight: 700; font-size: 15px; padding: 8px 14px; border: 1px solid var(--line-dark); border-radius: 999px; }
.menu summary::-webkit-details-marker { display: none; }
.menu-links { position: absolute; right: 0; top: calc(100% + 8px); background: var(--night-2); border: 1px solid var(--line-dark); border-radius: 16px; padding: 8px; display: grid; min-width: 200px; box-shadow: 0 20px 40px rgba(0,0,0,0.35); }
.nav-cta { color: var(--night); background: var(--mint-bright); text-decoration: none; font-weight: 700; font-size: 15px; padding: 10px 18px; border-radius: 999px; white-space: nowrap; }
.nav-cta:hover { background: #fff; }
.menu-links .menu-cta:hover { background: #fff; color: var(--night); }
.menu-links .menu-cta { display: none; color: var(--night); background: var(--mint-bright); text-align: center; margin-top: 6px; }

/* Buttons */
.btn { display: inline-block; font: inherit; font-weight: 700; font-size: 17px; color: #fff; background: var(--emerald-deep); border: 0; border-radius: 999px; padding: 14px 26px; cursor: pointer; text-decoration: none; text-align: center; }
.btn:hover { background: var(--night); }
.btn.light { background: var(--mint-bright); color: var(--night); }
.btn.light:hover { background: #fff; }
.btn.ghost { background: transparent; color: var(--on-dark); box-shadow: inset 0 0 0 1.5px var(--line-dark); }
.btn.ghost:hover { background: var(--night-3); }
.btn.ghost-light { background: transparent; color: var(--emerald-deep); box-shadow: inset 0 0 0 1.5px var(--emerald-deep); }
.btn.ghost-light:hover { background: var(--mint-wash); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: wait; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero */
.hero { background: var(--night); color: var(--on-dark-2); padding: 40px 0 96px; position: relative; overflow: hidden; border-radius: 0 0 40px 40px; }
.hero::before { content: ""; position: absolute; right: -200px; top: -160px; width: 680px; height: 680px; border-radius: 50%; background: radial-gradient(circle, rgba(29,158,117,0.32) 0%, rgba(9,33,26,0) 70%); pointer-events: none; }
.hero .wrap { position: relative; }
.hero .eyebrow { color: var(--mint-bright); }
.hero h1 { color: var(--on-dark); font-size: clamp(36px, 4.8vw, 58px); letter-spacing: -0.035em; margin-bottom: 20px; }
.hero h1 span { color: var(--mint-bright); }
.hero .sub { font-size: 19px; max-width: 36em; margin-bottom: 28px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.hero.compact { padding-bottom: 72px; }
.hero.compact h1 { font-size: clamp(34px, 4.6vw, 54px); max-width: 18em; }
.points { list-style: none; display: grid; gap: 10px; margin-bottom: 28px; }
.points li, .ticks li { padding-left: 28px; position: relative; }
.points li { color: var(--on-dark); }
.points li::before, .ticks li::before { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--mint-bright); box-shadow: inset 0 0 0 4px var(--night); }
.ticks { list-style: none; display: grid; gap: 12px; }
.ticks.light li::before { background: var(--emerald); box-shadow: inset 0 0 0 4px #fff; }

/* Waitlist form */
.form-card { background: #fff; border-radius: var(--radius); padding: 30px; color: var(--body); box-shadow: 0 30px 80px rgba(0,0,0,0.35); }
.form-card h2 { font-size: 24px; margin-bottom: 6px; }
.form-card .lead { font-size: 15px; color: var(--slate); margin-bottom: 20px; }
.field { margin-bottom: 14px; }
label { display: block; font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
label .opt { font-weight: 500; color: var(--slate); }
input[type=email], input[type=url], input[type=text], input[type=number], select { width: 100%; font: inherit; font-size: 16px; color: var(--ink); padding: 12px 14px; border: 1.5px solid var(--field); border-radius: 12px; background: #fff; }
input:focus, select:focus { border-color: var(--emerald); outline: none; box-shadow: 0 0 0 3px rgba(29,158,117,0.25); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; font-weight: 500; color: var(--body); margin: 6px 0 18px; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--emerald); flex: none; }
.fine { font-size: 13px; color: var(--slate); margin-top: 12px; }
.hp { position: absolute; left: -9999px; }
.status { margin-top: 14px; padding: 12px 14px; border-radius: 12px; font-size: 15px; display: none; }
.status.ok { display: block; background: var(--mint-wash); color: var(--emerald-deep); font-weight: 600; }
.status.err { display: block; background: var(--bad-soft); color: var(--bad); }

/* Sections */
section.block { padding: 96px 0; }
section.alt { background: var(--mint-wash-2); }
section.cream { background: var(--cream); }
.section-head { max-width: 780px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 14px; }
.section-head p { font-size: 18px; }
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.split.flip > :first-child { order: 2; }
.split h2 { font-size: clamp(30px, 3.6vw, 42px); margin-bottom: 14px; }
.split p.big { font-size: 18px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--rule); border-radius: 20px; padding: 26px; }
.card h3 { font-size: 21px; margin-bottom: 8px; }
.card.dark { background: var(--night); border-color: var(--night); color: var(--on-dark-2); }
.card.dark h3 { color: var(--on-dark); }
.card .more { display: inline-block; margin-top: 14px; font-weight: 700; text-decoration: none; }
.card.dark .more { color: var(--mint-bright); }
.tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--mint-wash); color: var(--emerald-deep); margin-bottom: 14px; }
.card.dark .tag { background: var(--mint-bright); color: var(--night); }
.small-card { background: #fff; border-radius: 16px; padding: 20px; border: 1px solid var(--rule); }
.small-card h3 { font-size: 17px; margin-bottom: 4px; }
.small-card p { font-size: 15px; color: var(--slate); }

/* "Three tools in one" comparison */
.vs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.vs .card ul { list-style: none; display: grid; gap: 8px; margin-top: 12px; font-size: 15px; }
.vs .card li { display: flex; gap: 8px; }
.vs .yes::before { content: "✓"; color: var(--good); font-weight: 800; }
.vs .no::before { content: "✕"; color: var(--bad); font-weight: 800; }
.vs .card.dark .yes::before { color: var(--mint-bright); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { padding: 26px; border-radius: 20px; background: #fff; border: 1px solid var(--rule); }
.step::before { counter-increment: step; content: counter(step); display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--night); color: var(--mint-bright); font-weight: 800; margin-bottom: 14px; }
.step h3 { font-size: 19px; margin-bottom: 6px; }

/* The example alert, written line by line */
.alert { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); color: var(--body); }
.alert-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; font-size: 14px; color: var(--slate); }
.pill { background: var(--bad); color: #fff; font-weight: 700; font-size: 13px; padding: 4px 12px; border-radius: 999px; }
.pill.calm { background: var(--emerald-deep); }
.alert h3 { font-size: 22px; margin-bottom: 10px; }
.alert table, .table { width: 100%; border-collapse: collapse; font-size: 15px; margin-top: 16px; }
.alert th, .table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate); padding: 8px 6px; border-bottom: 1px solid var(--rule); }
.alert td, .table td { padding: 9px 6px; border-bottom: 1px solid var(--rule); font-variant-numeric: tabular-nums; }
.alert .worse { color: var(--bad); font-weight: 700; }
.alert .next { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: var(--mint-wash-2); border: 1px solid var(--rule); font-size: 15px; }
.alert .next b { color: var(--ink); }
.illus { font-size: 13px; color: var(--slate); margin-top: 12px; }
.writing > * { animation: write-in 0.6s ease-out both; }
.writing > :nth-child(2) { animation-delay: 0.5s; }
.writing > :nth-child(3) { animation-delay: 1.1s; }
.writing > :nth-child(4) { animation-delay: 1.7s; }
.writing > :nth-child(5) { animation-delay: 2.3s; }
.writing > :nth-child(6) { animation-delay: 2.8s; }
@keyframes write-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Radar mark behind the hero alert */
.radar { position: relative; }
.radar::after { content: ""; position: absolute; inset: -40px; border-radius: 50%; background: repeating-radial-gradient(circle, rgba(102,224,190,0.10) 0 1px, transparent 1px 70px); z-index: -1; pointer-events: none; }

.big { font-size: 18px; }
.hero-grid > div > h2 { font-size: clamp(30px, 3.6vw, 42px); margin-bottom: 14px; }
.hero-grid > div > p.big { margin-bottom: 18px; }
.ranked { list-style: none; display: grid; gap: 10px; margin-top: 4px; }
.ranked li { padding: 14px 16px; border: 1px solid var(--rule); border-radius: 14px; }
.ranked b { display: block; color: var(--ink); margin-top: 6px; }
.ranked small { color: var(--slate); font-size: 14px; }
.impact { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.impact.high { background: var(--bad-soft); color: var(--bad); }
.impact.med { background: var(--warn-soft); color: var(--warn); }
.split .ticks { margin-top: 18px; }

/* Simulated AI assistant answer */
.chat { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; color: var(--body); }
.chat-q { background: var(--night); color: var(--on-dark); padding: 18px 22px; font-weight: 600; }
.chat-q span { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mint-bright); margin-bottom: 4px; }
.chat-a { padding: 20px 22px; display: grid; gap: 12px; }
.pick { display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; align-items: start; padding: 12px; border-radius: 14px; border: 1px solid var(--rule); }
.pick .rank { width: 32px; height: 32px; border-radius: 50%; background: var(--mint-wash); color: var(--emerald-deep); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.pick b { color: var(--ink); display: block; }
.pick small { color: var(--slate); font-size: 14px; }
.pick .badge { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.badge.you { background: var(--good-soft); color: var(--good); }
.badge.rival { background: var(--bad-soft); color: var(--bad); }
.badge.missing { background: var(--warn-soft); color: var(--warn); }
.chat .illus { padding: 0 22px 18px; }

/* Ghost family band */
.family-band { background: var(--night); color: var(--on-dark-2); border-radius: 28px; padding: 44px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.family-band h2 { color: var(--on-dark); font-size: clamp(28px, 3vw, 36px); margin-bottom: 12px; }
.family-band .eyebrow { color: var(--mint-bright); }
.family-list { display: grid; gap: 12px; }
.family-list a { display: block; padding: 18px 20px; border-radius: 18px; background: var(--night-2); border: 1px solid var(--line-dark); color: var(--on-dark); text-decoration: none; }
.family-list a:hover { border-color: var(--mint); }
.family-list b { display: block; font-size: 18px; }
.family-list span { color: var(--on-dark-3); font-size: 15px; }
.family-list .here { padding: 18px 20px; border-radius: 18px; background: var(--emerald-deep); color: #fff; }
.family-list .here span { color: var(--mint-wash); }

/* Principle band (dark) */
.open { background: var(--night); color: var(--on-dark-2); border-radius: 28px; padding: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.open h2 { color: var(--on-dark); font-size: clamp(28px, 3vw, 34px); margin-bottom: 12px; }
.open .eyebrow { color: var(--mint-bright); }
.open a { color: var(--mint-bright); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--rule); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--emerald); box-shadow: var(--shadow); position: relative; }
.plan .flag { position: absolute; top: -13px; left: 24px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; background: var(--emerald-deep); color: #fff; padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
.plan h3 { font-size: 22px; }
.plan .price { font-size: 40px; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; margin: 8px 0 2px; }
.plan .price small { font-size: 16px; font-weight: 600; color: var(--slate); letter-spacing: 0; }
.plan .for { color: var(--slate); font-size: 15px; margin-bottom: 16px; }
.plan ul { list-style: none; display: grid; gap: 8px; font-size: 15px; margin-bottom: 22px; }
.plan li { padding-left: 22px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--good); font-weight: 800; }
.plan .btn { margin-top: auto; font-size: 16px; padding: 12px 20px; }
.note { background: var(--warn-soft); color: var(--warn); border-radius: 14px; padding: 14px 18px; font-size: 15px; font-weight: 600; margin-bottom: 28px; }
.compare-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--rule); border-radius: 20px; padding: 8px 18px; }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 12px 8px; border-bottom: 1px solid var(--rule); text-align: left; }
.compare thead th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate); }
.compare tbody th { font-weight: 600; color: var(--ink); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }

/* Plan finder */
.finder { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 32px; }
.finder fieldset { border: 0; display: grid; gap: 16px; }
.finder legend { font-weight: 800; color: var(--ink); font-size: 20px; margin-bottom: 8px; }
.finder .check { margin: 0; }
.result { align-self: start; background: var(--night); color: var(--on-dark-2); border-radius: 20px; padding: 28px; }
.result .eyebrow { color: var(--mint-bright); }
.result h3 { color: var(--on-dark); font-size: 30px; margin-bottom: 6px; }
.result .price { color: var(--mint-bright); font-size: 22px; font-weight: 800; margin-bottom: 12px; }
.result ul { margin: 12px 0 0 18px; display: grid; gap: 6px; }

/* Long-form text (privacy, trust details) */
.prose { max-width: 760px; }
.prose h2 { font-size: 28px; margin: 48px 0 12px; }
.prose h3 { font-size: 20px; margin: 28px 0 8px; }
.prose ul { margin: 12px 0 0 22px; display: grid; gap: 8px; }
.prose p + ul, .prose ul + p { margin-top: 12px; }
.prose code { font-size: 15px; background: var(--mint-wash); padding: 2px 6px; border-radius: 6px; }
.prose table { margin-top: 16px; }

/* FAQ */
.faq { max-width: 840px; }
details:not(.menu) { border-bottom: 1px solid var(--rule); padding: 18px 0; }
details:not(.menu) summary { font-weight: 700; color: var(--ink); font-size: 18px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details:not(.menu) summary::-webkit-details-marker { display: none; }
details:not(.menu) summary::after { content: "+"; color: var(--emerald-deep); font-size: 22px; line-height: 1; }
details[open]:not(.menu) summary::after { content: "−"; }
details:not(.menu) p { margin-top: 10px; }

.final { text-align: center; }
.final h2 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 14px; }
.final p { font-size: 18px; margin-bottom: 26px; }
.final .btn-row { justify-content: center; }

/* Footer */
.site-footer { background: var(--night); color: var(--on-dark-2); padding: 56px 0 36px; font-size: 15px; margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr) 1.4fr; gap: 28px; }
.foot-grid p { margin-top: 12px; }
.site-footer h2 { color: var(--on-dark); font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: var(--on-dark-2); }
.site-footer a:hover { color: #fff; }
.site-footer .family span { display: block; color: var(--on-dark-3); font-size: 14px; }
.legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 14px; color: var(--on-dark-3); }


/* Guides */
.hero .eyebrow a { color: var(--mint-bright); text-decoration: none; }
.hero .eyebrow a:hover { text-decoration: underline; }
.byline { font-size: 15px; color: var(--on-dark-3); }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
.article .prose { max-width: 720px; font-size: 18px; }
.article .prose > h2:first-of-type, .article .prose .takeaways + h2 { margin-top: 32px; }
.article .prose p { margin-top: 1em; }
.article .prose h2 + p, .article .prose h3 + p { margin-top: 0; }
.article .prose blockquote { margin: 20px 0; padding: 16px 20px; border-left: 4px solid var(--emerald); background: var(--mint-wash-2); border-radius: 0 14px 14px 0; }
.article .prose .callout { margin: 24px 0; padding: 18px 20px; border-radius: 16px; background: var(--cream); }
.article .prose .callout b { color: var(--ink); }
.article .prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.article .prose th, .article .prose td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.article .prose thead th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate); }
.table-wrap { overflow-x: auto; margin-top: 16px; }
.takeaways, .terms, .sources { border-radius: 18px; padding: 22px 24px; margin-top: 32px; }
.takeaways { background: var(--mint-wash); margin-top: 0; }
.terms { background: var(--mint-wash-2); border: 1px solid var(--rule); }
.sources { border: 1px solid var(--rule); font-size: 15px; }
.prose .takeaways h2, .prose .terms h2, .prose .sources h2 { font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 10px; color: var(--emerald-deep); }
.sources ol { margin: 0 0 0 20px; display: grid; gap: 6px; }
.article-side { position: sticky; top: 24px; display: grid; gap: 20px; }
.toc { border: 1px solid var(--rule); border-radius: 18px; padding: 20px; background: #fff; }
.toc h2 { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate); margin-bottom: 10px; }
.toc ol { list-style: none; display: grid; gap: 8px; font-size: 15px; }
.toc a { text-decoration: none; color: var(--body); }
.toc a:hover { color: var(--emerald-deep); text-decoration: underline; }
.side-cta { background: var(--night); color: var(--on-dark-2); border-radius: 18px; padding: 22px; font-size: 15px; }
.side-cta .eyebrow { color: var(--mint-bright); margin-bottom: 6px; }
.side-cta p + .btn { margin-top: 16px; font-size: 15px; padding: 11px 18px; }
.guide-section + .guide-section { margin-top: 64px; }
.guide-section > h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 6px; }
.guide-section > p { color: var(--slate); margin-bottom: 22px; max-width: 640px; }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.guide-card { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--rule); border-radius: 20px; padding: 24px; text-decoration: none; color: var(--body); }
.guide-card:hover { border-color: var(--emerald); box-shadow: var(--shadow); }
.guide-card .tag { align-self: flex-start; margin-bottom: 4px; }
.guide-card b { color: var(--ink); font-size: 19px; line-height: 1.25; letter-spacing: -0.01em; }
.guide-card span:not(.tag) { font-size: 15px; color: var(--slate); }
.guide-card small { margin-top: auto; padding-top: 8px; font-size: 13px; font-weight: 700; color: var(--emerald-deep); }

/* Glossary */
.glossary { display: grid; gap: 14px; max-width: 860px; }
.glossary .term { background: #fff; border: 1px solid var(--rule); border-radius: 18px; padding: 20px 22px; scroll-margin-top: 24px; }
.glossary .term:target { border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(29,158,117,0.25); }
.glossary dt { font-weight: 800; color: var(--ink); font-size: 19px; margin-bottom: 6px; }
.glossary dd p + p { margin-top: 8px; }
.glossary .see { font-size: 15px; }
.glossary code { font-size: 15px; background: var(--mint-wash); padding: 1px 6px; border-radius: 6px; }

/* Comparisons */
.checked { font-size: 14px; color: var(--slate); margin-top: 14px; }
.compare td.yes, .compare td.no, .compare td.part { font-weight: 600; }
.compare td.yes::before { content: "✓ "; color: var(--good); font-weight: 800; }
.compare td.no::before { content: "✕ "; color: var(--bad); font-weight: 800; }
.compare td.part::before { content: "◐ "; color: var(--warn); font-weight: 800; }
.compare th[scope="col"].us { color: var(--emerald-deep); }
.fair { background: var(--mint-wash-2); border: 1px solid var(--rule); border-radius: 20px; padding: 26px; }
.fair h3 { font-size: 20px; margin-bottom: 8px; }
.links-list { list-style: none; display: grid; gap: 12px; }
.links-list a { display: block; padding: 18px 20px; border: 1px solid var(--rule); border-radius: 16px; background: #fff; text-decoration: none; }
.links-list a:hover { border-color: var(--emerald); }
.links-list b { display: block; color: var(--ink); font-size: 18px; }
.links-list span { color: var(--slate); font-size: 15px; }

@media (max-width: 980px) {
  .article-grid { grid-template-columns: 1fr; }
  .article-side { position: static; }
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .cards.four { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-grid, .split, .open, .family-band, .finder { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .cards, .cards.two, .steps, .vs { grid-template-columns: 1fr; }
  .hero-grid { gap: 36px; }
  section.block { padding: 64px 0; }
  .open, .family-band { padding: 30px; }
  .nav-links { display: none; }
  .menu { display: block; }
  .nav { gap: 12px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .plans, .cards.four, .foot-grid, .guide-grid { grid-template-columns: 1fr; }
  .article .prose { font-size: 17px; }
  .form-card, .finder { padding: 22px; }
  .nav-cta { display: none; }
  .menu-links .menu-cta { display: block; }
  .brand { font-size: 17px; }
  body { font-size: 16px; }
  .hero { padding-top: 24px; border-radius: 0 0 28px 28px; }
  .pick { grid-template-columns: 28px 1fr; }
  .pick .badge { grid-column: 2; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .writing > * { animation: none; }
}
.hero a.on-dark { color: var(--mint-bright); }
.steps.one-col { grid-template-columns: 1fr; }
.steps.one-col .step { background: var(--night-2); border-color: var(--line-dark); color: var(--on-dark-2); }
.steps.one-col .step h3 { color: var(--on-dark); }
.steps.one-col .step::before { background: var(--mint-bright); color: var(--night); }
