:root {
  --primary: #c1272d; --primary-dark: #8e1b20; --green: #006233; --gold: #d4a017;
  --bg: #f7f1e8; --surface: #fff; --ink: #141414; --muted: #5b6270; --line: #e7dfd3;
  --shadow: 0 18px 48px rgb(48 26 14 / 0.16);
  --radius: 24px;
}
:root[data-theme='dark'] {
  --primary: #e5484d; --bg: #121214; --surface: #1c1c1e; --ink: #f5f1ea; --muted: #a1a7b3; --line: #2e2e31;
  --shadow: 0 18px 48px rgb(0 0 0 / 0.5);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 'Plus Jakarta Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 60%, transparent); outline-offset: 2px; }
.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

header.top { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(10px); background: color-mix(in srgb, var(--bg) 88%, transparent); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; text-decoration: none; }
.brand .wordmark { font: 900 26px/1 'Archivo', system-ui, sans-serif; letter-spacing: -1px; color: #0b5a3e; }
.brand .wordmark b { font-weight: 900; color: var(--primary); }
:root[data-theme='dark'] .brand .wordmark { color: #f7f1e8; }
:root[data-theme='dark'] .brand .wordmark b { color: #f2c230; }
.brand .mark { width: 36px; height: 36px; border-radius: 12px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); display: grid; place-items: center; color: #fff; }
.top nav { margin-inline-start: auto; display: flex; gap: 20px; align-items: center; font-weight: 600; font-size: 14px; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--ink); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 700 14px/1 inherit; cursor: pointer; text-decoration: none; transition: transform .2s cubic-bezier(.34,1.56,.64,1), background .2s; }
.btn:active { transform: scale(.96); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-dark); }

.hero { position: relative; padding: 72px 0 40px; text-align: center; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 80% at 50% 0, color-mix(in srgb, var(--primary) 16%, transparent), transparent 70%); pointer-events: none; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: 13px; color: var(--muted); }
.hero h1 { font-size: clamp(36px, 6vw, 68px); line-height: 1.05; letter-spacing: -0.03em; margin: 20px auto 16px; max-width: 16ch; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero p.lead { max-width: 60ch; margin: 0 auto 28px; font-size: 18px; color: var(--muted); }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---- stage ---- */
.stage-wrap { padding: 24px 0 72px; }
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: center; margin-bottom: 28px; }
.seg { display: inline-flex; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; gap: 2px; }
.seg button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font: 700 13px/1 inherit; cursor: pointer; }
.seg button[aria-pressed='true'] { background: var(--primary); color: #fff; }
.select { min-height: 48px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 700 14px inherit; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; background: color-mix(in srgb, var(--green) 14%, var(--surface)); color: var(--green); font-weight: 700; font-size: 13px; }
:root[data-theme='dark'] .live-pill { color: #5cd39a; }
.live-pill i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.live-pill.flash { outline: 2px solid var(--gold); }

.tabs { display: none; justify-content: center; margin-bottom: 20px; }
.stage { display: grid; grid-template-columns: 400px 1fr; gap: 40px; align-items: center; }
.stage > section { min-width: 0; }
.caption { text-align: center; font-weight: 700; color: var(--muted); font-size: 14px; margin: 14px 0 0; }

.phone { position: relative; width: 390px; margin-inline: auto; padding: 12px; border-radius: 56px; background: #1b1a19; box-shadow: var(--shadow), inset 0 0 0 2px #3a3735; }
.phone .screen { position: relative; border-radius: 44px; overflow: hidden; background: var(--bg); height: 780px; padding-top: 34px; box-sizing: border-box; }
.phone .notch { position: absolute; z-index: 3; top: 10px; left: 50%; transform: translateX(-50%); width: 96px; height: 26px; border-radius: 20px; background: #000; pointer-events: none; }
.phone iframe { width: 100%; height: 100%; border: 0; display: block; }

.browser { border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.browser .bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: color-mix(in srgb, var(--ink) 5%, var(--surface)); border-bottom: 1px solid var(--line); }
.browser .dots { display: flex; gap: 7px; }
.browser .dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.browser .dots i:nth-child(2) { background: #febc2e; }
.browser .dots i:nth-child(3) { background: #28c840; }
.browser .url { flex: 1; text-align: center; font-size: 12px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
.browser .viewport { position: relative; overflow: hidden; background: var(--bg); }
.browser iframe { position: absolute; top: 0; inset-inline-start: 0; width: 1280px; height: 800px; border: 0; transform-origin: 0 0; }

/* ---- things to try ---- */
section.block { padding: 72px 0; }
section.block h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.02em; margin: 0 0 12px; }
section.block p.sub { color: var(--muted); max-width: 62ch; margin: 0 0 32px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: 0 6px 18px rgb(48 26 14 / .08); display: flex; flex-direction: column; gap: 10px; }
.card .num { width: 36px; height: 36px; border-radius: 12px; background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary); display: grid; place-items: center; font-weight: 800; }
.card h3 { margin: 0; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; flex: 1; }
.card .btn { align-self: flex-start; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.feature { padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); }
.feature b { display: block; margin-bottom: 4px; }
.feature span { color: var(--muted); font-size: 15px; }
.notice { margin-top: 32px; padding: 20px 24px; border-radius: var(--radius); background: color-mix(in srgb, var(--gold) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--gold) 40%, var(--line)); font-size: 15px; }
footer { padding: 40px 0 56px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }

body.embed header.top, body.embed .hero, body.embed section.block, body.embed footer { display: none; }
body.embed .stage-wrap { padding: 16px 0; }

@media (max-width: 1100px) { .stage { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .tabs { display: flex; }
  .stage > section[hidden-mobile='true'] { display: none; }
  .top nav a:not(.btn) { display: none; }
  .phone { width: min(390px, 100%); }
  .phone .screen { height: min(780px, 78vh); }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
