/* Layout concept: a Main Street shop window. Real posts are the merchandise; every page leads with
   proof (an actual feed) and reads top-to-bottom like walking past a storefront. */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --band: #f5f7fb;
  --hero-tint: #eef3fb;
  --ink: #0f1b2d;
  --muted: #4f5b6d;
  --line: #dfe5ef;
  --brand: #1a4c8b;
  --brand-strong: #123a6d;
  --brand-ink: #ffffff;
  --soft: #eaf0f9;
  --sun: #f2b43c;
  --sun-ink: #3a2a05;
  --soon: #5f44c9;
  --soon-soft: #f1edfd;
  --shadow: 0 1px 2px rgba(15, 27, 45, .05), 0 10px 30px rgba(15, 27, 45, .08);
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 14px;
  --max: 1180px;
  color-scheme: light;
}
/* Dark is opt-in only (demo toggle), so the site always opens on white. */
:root.theme-dark {
  --bg: #0c1420; --surface: #121c2b; --band: #0f1826; --hero-tint: #102036; --ink: #eaf0f8; --muted: #a3afc0; --line: #243246;
  --brand: #6fa4ef; --brand-strong: #93bcf5; --brand-ink: #071426; --soft: #16263d;
  --sun: #f2b43c; --sun-ink: #2a1e03; --soon: #a996ff; --soon-soft: #241d3d;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35); color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--surface); }
a { color: var(--brand); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 750; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 62ch; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.muted { color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-lg { display: flex; flex-direction: column; gap: 22px; }
section.band { padding-block: clamp(56px, 8vw, 96px); }
section.band.alt { background: var(--band); border-block: 1px solid var(--line); }
section.band.soft { background: var(--soft); }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin-bottom: 36px; }
.center { text-align: center; margin-left: auto; margin-right: auto; align-items: center; }

/* Demo bar */
.demo-bar { background: var(--ink); color: var(--bg); font-size: .82rem; }
.demo-bar .wrap { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding-block: 7px; }
.demo-bar b { color: var(--sun); letter-spacing: .08em; }
.demo-bar button, .demo-bar select { font: inherit; background: transparent; color: var(--bg); border: 1px solid color-mix(in srgb, var(--bg) 35%, transparent); border-radius: 999px; padding: 3px 10px; cursor: pointer; }
.demo-bar select option { color: #13241e; }
.demo-tools { display: flex; gap: 8px; flex-wrap: wrap; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 1.12rem; white-space: nowrap; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-size: .95rem; letter-spacing: -.04em; }
.nav { display: flex; gap: 4px; align-items: center; margin-left: auto; }
.nav > a, .nav summary { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .96rem; padding: 8px 12px; border-radius: 10px; cursor: pointer; list-style: none; }
.nav summary::-webkit-details-marker { display: none; }
.nav > a:hover, .nav summary:hover, .nav a.active { background: var(--soft); }
.nav details { position: relative; }
.nav .menu { position: absolute; top: calc(100% + 8px); left: 0; width: min(560px, 90vw); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.menu a { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 650; font-size: .95rem; }
.menu a span { font-weight: 400; color: var(--muted); font-size: .84rem; }
.menu a:hover { background: var(--soft); }
.header-cta { display: flex; gap: 8px; align-items: center; }
.site-header .menu-toggle { display: none; }
[hidden] { display: none !important; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; text-decoration: none; border-radius: 12px; padding: 12px 20px; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand-strong); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sun { background: var(--sun); color: var(--sun-ink); }
.btn-lg { padding: 15px 26px; font-size: 1.05rem; }
.btn-sm { padding: 8px 14px; font-size: .9rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.fineprint { font-size: .88rem; color: var(--muted); }

@media (max-width: 960px) {
  .site-header .wrap { flex-wrap: wrap; }
  .site-header .menu-toggle { display: inline-flex; margin-left: auto; order: 2; }
  .header-cta { order: 1; margin-left: auto; }
  .nav { order: 3; display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 12px; }
  .nav.open { display: flex; }
  .nav .menu { position: static; width: 100%; grid-template-columns: 1fr; box-shadow: none; }
  .header-cta .login { display: none; }
}

/* Hero */
.hero { padding-block: clamp(40px, 6vw, 72px) clamp(48px, 7vw, 88px); background: linear-gradient(180deg, var(--hero-tint), var(--bg) 85%); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.hero h1 em { font-style: normal; color: var(--brand); }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .92rem; color: var(--muted); }
.trust-row span::before { content: "✓ "; color: var(--brand); font-weight: 800; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* Industry picker + phone */
.picker { display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 0; }
.picker-bar { width: auto; max-width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; font-size: .95rem; color: var(--muted); }
.picker-label { font-weight: 500; }
.picker-select { position: relative; display: inline-flex; }
.picker-select::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.picker-select select { appearance: none; -webkit-appearance: none; font: inherit; font-weight: 700; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 36px 7px 14px; cursor: pointer; box-shadow: 0 1px 2px rgba(15, 27, 45, .05); }
.picker-select select:hover { border-color: var(--brand); }
.phone-nav { display: flex; align-items: center; justify-content: center; gap: 12px; }
.nav-btn { font: inherit; font-size: 1.3rem; line-height: 1; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.nav-btn:hover { border-color: var(--brand); color: var(--brand); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: .9rem; font-weight: 650; padding: 7px 13px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.phone { width: min(360px, 100%); margin: 0 auto; background: var(--ink); border-radius: 34px; padding: 12px; box-shadow: var(--shadow); }
.phone-screen { background: var(--surface); border-radius: 24px; overflow: hidden; }
.phone-top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--sun); color: var(--sun-ink); display: grid; place-items: center; font-weight: 800; font-size: .85rem; flex: none; }
.phone-top b { display: block; font-size: .9rem; line-height: 1.2; }
.phone-top small { color: var(--muted); font-size: .76rem; }
.phone-img { aspect-ratio: 1 / 1; width: 100%; object-fit: cover; display: block; background: var(--soft); }
.phone-cap { padding: 12px 14px 16px; font-size: .86rem; line-height: 1.45; white-space: pre-line; height: 7.6em; overflow: hidden; mask-image: linear-gradient(#000 70%, transparent); }
.phone-meta { display: flex; justify-content: space-between; align-items: center; padding: 0 14px 14px; font-size: .78rem; color: var(--muted); }
.approve { background: var(--brand); color: var(--brand-ink); border-radius: 999px; padding: 4px 10px; font-weight: 700; }
.feed-dots { display: flex; gap: 6px; justify-content: center; }
.feed-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.feed-dots i.on { background: var(--brand); }
.real-note { text-align: center; font-size: .82rem; color: var(--muted); }

/* Proof strip */
.proof { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.proof div { background: var(--surface); padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.proof b { font-family: var(--display); font-size: 1.9rem; line-height: 1; font-variant-numeric: tabular-nums; }
.proof span { color: var(--muted); font-size: .9rem; }
@media (max-width: 760px) { .proof { grid-template-columns: 1fr 1fr; } }

/* Cards / grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
a.card { text-decoration: none; color: var(--ink); transition: border-color .15s ease, transform .15s ease; }
a.card:hover { border-color: var(--brand); transform: translateY(-2px); }
.card .more { margin-top: auto; font-weight: 700; color: var(--brand); font-size: .95rem; }
.icon { width: 42px; height: 42px; border-radius: 12px; background: var(--soft); color: var(--brand); display: grid; place-items: center; font-weight: 800; font-family: var(--display); }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; width: fit-content; }
.badge-live { background: var(--soft); color: var(--brand); }
.badge-soon { background: var(--soon-soft); color: var(--soon); }
.badge-sun { background: var(--sun); color: var(--sun-ink); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.steps li { list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 8px; counter-increment: step; }
.steps li::before { content: counter(step); font-family: var(--display); font-weight: 800; font-size: 1.1rem; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; }
.steps { padding: 0; margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Split rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 60px); align-items: center; }
.split > * { min-width: 0; }
.split.flip > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }
.checks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.checks li { padding-left: 30px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 6px; background: var(--soft); color: var(--brand); font-weight: 800; font-size: .8rem; display: grid; place-items: center; margin-top: 3px; }

/* Wall of posts */
.wall { columns: 4 230px; column-gap: 14px; }
.post { break-inside: avoid; margin-bottom: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.post img { width: 100%; display: block; aspect-ratio: 1 / 1; object-fit: cover; background: var(--soft); }
.post p { padding: 12px 14px 6px; font-size: .84rem; line-height: 1.45; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.post small { display: block; padding: 0 14px 12px; color: var(--muted); font-size: .76rem; font-weight: 600; }
.wall-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }

/* Industries */
.ind-card { position: relative; overflow: hidden; padding: 0; }
.ind-card .ind-imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.ind-card .ind-imgs img { aspect-ratio: 1/1; object-fit: cover; width: 100%; display: block; }
.ind-card .ind-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; }

/* Comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.compare { width: 100%; border-collapse: collapse; min-width: 620px; font-size: .95rem; }
.compare th, .compare td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare thead th { font-family: var(--display); font-size: 1rem; background: var(--soft); }
.compare td.us, .compare th.us { background: color-mix(in srgb, var(--brand) 9%, var(--surface)); font-weight: 650; }
.compare tr:last-child td { border-bottom: 0; }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; } }
.price { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.price.featured { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.price .amount { font-family: var(--display); font-size: 2.8rem; font-weight: 800; line-height: 1; }
.price .amount small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.price .btn { margin-top: auto; }
.confirm-note { font-size: .8rem; color: var(--soon); font-weight: 700; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 10px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px; }
.faq summary { font-weight: 700; padding: 14px 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 1.3rem; line-height: 1; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { padding-bottom: 16px; color: var(--muted); }

/* CTA band */
.cta-band { background: var(--ink); color: var(--bg); border-radius: 22px; padding: clamp(30px, 5vw, 56px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: center; }
.cta-band h2 { color: var(--bg); }
.cta-band p { color: color-mix(in srgb, var(--bg) 75%, transparent); }
.cta-band .btn-ghost { color: var(--bg); border-color: color-mix(in srgb, var(--bg) 40%, transparent); }
@media (max-width: 820px) { .cta-band { grid-template-columns: 1fr; } }

/* Waitlist / forms */
.waitlist { display: flex; flex-wrap: wrap; gap: 10px; }
.waitlist input, .tool select, .tool input, .tool textarea { font: inherit; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); min-width: 0; flex: 1 1 220px; }
.form-msg { font-weight: 700; color: var(--brand); }

/* Page hero (inner pages) */
.page-hero { padding-block: clamp(40px, 6vw, 76px); background: linear-gradient(180deg, var(--hero-tint), var(--bg) 90%); }
.page-hero .split { align-items: center; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.soon-panel { background: var(--soon-soft); border: 1px solid color-mix(in srgb, var(--soon) 30%, transparent); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.callout { border-left: 4px solid var(--sun); background: var(--surface); padding: 16px 20px; border-radius: 0 12px 12px 0; }
.mini-feed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mini-feed img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 10px; display: block; }
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.mock-row { display: flex; gap: 12px; align-items: flex-start; }
.mock-row > div { min-width: 0; }
.stars { color: var(--sun); letter-spacing: 2px; }
.reply { background: var(--soft); border-radius: 12px; padding: 12px 14px; font-size: .92rem; }
.prose { max-width: 70ch; display: flex; flex-direction: column; gap: 16px; }
.prose h2 { margin-top: 18px; }
.prose ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding-block: 48px 110px; font-size: .92rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(6, 1fr); gap: 24px; }
.foot-grid h4 { margin: 0 0 10px; font-family: var(--display); font-size: .95rem; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.foot-grid a { color: var(--muted); text-decoration: none; }
.foot-grid a:hover { color: var(--brand); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* Sticky mobile CTA */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--surface); border-top: 1px solid var(--line); padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); display: none; gap: 10px; align-items: center; justify-content: space-between; }
.sticky-cta span { font-size: .85rem; color: var(--muted); }
@media (max-width: 760px) { .sticky-cta { display: flex; } .header-cta { display: none; } .demo-bar .wrap > span:first-child { display: none; } }

/* SEO review panel (demo only) */
.seo-panel { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 70; width: min(420px, calc(100vw - 32px)); max-height: 70vh; overflow: auto; background: var(--surface); border: 2px solid var(--sun); border-radius: 16px; box-shadow: var(--shadow); padding: 18px; font-size: .88rem; display: flex; flex-direction: column; gap: 10px; }
.seo-panel h4 { margin: 0; font-family: var(--display); }
.seo-panel dl { margin: 0; display: grid; grid-template-columns: 96px 1fr; gap: 6px 10px; }
.seo-panel dt { font-weight: 700; color: var(--muted); }
.seo-panel dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.loading { padding: 120px 0; text-align: center; color: var(--muted); }

/* Google review cards */
figure.review { margin: 0; }
.review blockquote { margin: 0; font-size: .98rem; line-height: 1.55; }
.review figcaption { margin-top: auto; font-size: .9rem; }

/* Phone view (demo only) */
.phone-view { position: fixed; inset: 0; z-index: 80; background: color-mix(in srgb, var(--ink) 70%, transparent); display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.phone-view-inner { display: flex; flex-direction: column; gap: 10px; align-items: center; max-height: 100%; }
.phone-view-bar { display: flex; gap: 12px; align-items: center; color: #fff; font-size: .9rem; }
.phone-view iframe { width: 390px; max-width: 100%; height: min(844px, calc(100vh - 110px)); border: 12px solid #0b1410; border-radius: 40px; background: #fff; }
.in-frame .demo-bar, .in-frame .seo-panel { display: none !important; }
@media (max-width: 760px) { #phone-toggle { display: none; } }

/* Right-most nav menu opens toward the left so it stays on screen */
@media (min-width: 961px) { .nav details:last-of-type .menu { left: auto; right: 0; } }

/* Light/dark switch in the header */
.theme-btn { order: 5; flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font-size: 1.1rem; line-height: 1; cursor: pointer; display: grid; place-items: center; margin-left: 4px; }
.theme-btn:hover { border-color: var(--brand); color: var(--brand); }
@media (max-width: 960px) { .theme-btn { order: 1; margin-left: auto; } .site-header .menu-toggle { margin-left: 8px; } .header-cta { margin-left: 8px; } }
@media (max-width: 480px) { .logo { font-size: 1rem; gap: 8px; } .logo-mark { width: 30px; height: 30px; font-size: .82rem; } .theme-btn { width: 34px; height: 34px; } .site-header .wrap { gap: 10px; } }

/* Brand logos (Business Toolkit identity guide) */
.logo-img { height: 38px; width: auto; display: block; }
.logo-dark { display: none; }
.theme-dark .logo-light { display: none; }
.theme-dark .logo-dark { display: block; }
.site-footer .logo-img { height: 34px; }
@media (max-width: 480px) { .logo-img { height: 30px; } }
.brand-band { display: flex; justify-content: center; }
.brand-band img { width: min(420px, 80%); height: auto; }
.cta-band .brand-mark { width: min(260px, 70%); height: auto; }

/* Hero launch splash: the logo opens the phone like an app, then gives way to real posts */
.phone-screen { position: relative; }
.phone-splash { position: absolute; inset: 0; z-index: 2; background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 28px; text-align: center; transition: opacity .6s ease, transform .6s ease; }
.phone-splash img { width: 88%; height: auto; }
.phone-splash p { color: var(--muted); font-size: .92rem; margin: 0; }
.phone-splash.gone { opacity: 0; transform: scale(.97); pointer-events: none; }
.theme-dark .phone-splash .splash-light { display: none; }
.phone-splash .splash-dark { display: none; }
.theme-dark .phone-splash .splash-dark { display: block; }

/* Brand polish: bigger header logo, roomier footer, larger launch logo */
.logo-img { height: 48px; }
@media (max-width: 480px) { .logo-img { height: 36px; } }
.site-footer .logo-img { height: 44px; }
.foot-grid { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 28px 24px; }
.foot-grid > .stack:first-child { grid-column: 1 / -1; max-width: 520px; }
.phone-splash img { width: 96%; }
.phone-splash { background: linear-gradient(180deg, var(--surface), var(--soft)); }

/* Header/footer use the stacked primary logo (same word size as the single line, ~30% narrower) */
.logo-img { height: 56px; }
@media (max-width: 480px) { .logo-img { height: 44px; } }
.site-footer .logo-img { height: 56px; }

/* Long button labels wrap on small phones instead of pushing the page sideways */
@media (max-width: 600px) { .btn { white-space: normal; text-align: center; max-width: 100%; } }
