/* re: web. Same semantic tokens as the app (HANDOFF.md). Dark is the default. */
:root {
  --bg: #0B0B0C; --surface: #151517; --border: #26262A; --divider: #1E1E21; --fill: #2E2E33;
  --text: #F2F2F0; --muted: #9A9AA2;
  --pri-bg: #E8FF59; --pri-fg: #0B0B0C; --sel-bg: #F2F2F0; --sel-fg: #0B0B0C; --hi: #E8FF59;
  --ok: #4ADE80; --ok-bg: #0F2417; --info: #60A5FA; --warn: #FB923C; --warn-bg: #2A1A0E;
  --shadow: 0 40px 80px rgba(0,0,0,.55);
  --dot: rgba(242,242,240,.09); --glow: rgba(232,255,89,.13); --glass: rgba(11,11,12,.72);
  /* Mockup surfaces stay dark in both themes, like the design. */
  --d-bg: #0B0B0C; --d-surface: #151517; --d-border: #26262A; --d-fill: #2E2E33; --d-text: #F2F2F0; --d-muted: #9A9AA2;
  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #F5F5F2; --surface: #FFFFFF; --border: #E6E6E1; --divider: #EEEEEA; --fill: #E4E4DF;
  --text: #111113; --muted: #6B6B72;
  --pri-bg: #111113; --pri-fg: #E8FF59; --sel-bg: #111113; --sel-fg: #FFFFFF; --hi: #111113;
  --ok: #15803D; --ok-bg: #DCFCE7; --info: #1D4ED8; --warn: #C2410C; --warn-bg: #FFEDD5;
  --shadow: 0 40px 80px rgba(17,17,19,.22);
  --dot: rgba(17,17,19,.10); --glow: rgba(17,17,19,.05); --glass: rgba(245,245,242,.78);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.mono { font-family: var(--mono); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 960px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--pri-bg); color: var(--pri-fg); padding: 8px 12px; border-radius: 8px; z-index: 10; }
:focus-visible { outline: 2px solid var(--hi); outline-offset: 2px; border-radius: 6px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: background-color .25s, border-color .25s, backdrop-filter .25s; }
.site-header.scrolled { background: var(--glass); border-bottom-color: var(--divider); -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px); }
.site-header .wrap { min-height: 72px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 12px; padding-bottom: 12px; }
.wordmark { text-decoration: none; font-size: 26px; font-weight: 700; letter-spacing: -0.05em; }
.wordmark .colon { color: var(--hi); }
:root[data-theme="light"] .wordmark .colon { color: inherit; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.nav a, .nav button { text-decoration: none; font: inherit; font-size: 15px; color: var(--muted); min-height: 44px; padding: 0 12px; display: flex; align-items: center; background: none; border: 0; cursor: pointer; border-radius: 10px; }
.nav a:hover, .nav button:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav .lang { font-family: var(--mono); font-size: 13px; }
.nav .lang b { color: var(--text); font-weight: 500; }
.btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 14px; font-size: 15px; font-weight: 600; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--pri-bg); color: var(--pri-fg); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.nav .btn-primary { background: var(--pri-bg); color: var(--pri-fg); margin-left: 8px; padding: 0 18px; font-weight: 600; }
#theme .i-moon, :root[data-theme="light"] #theme .i-sun { display: none; }
:root[data-theme="light"] #theme .i-moon { display: flex; }
#theme span { display: flex; transition: transform .4s cubic-bezier(.2,.7,.2,1); }
#theme:hover span { transform: rotate(-20deg); }
.btn { transition: transform .15s, box-shadow .2s, background-color .2s; }
.btn:active { transform: scale(.97); }
.btn-primary:hover { box-shadow: 0 0 0 4px color-mix(in srgb, var(--pri-bg) 22%, transparent); }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* Shared typography */
.kicker { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
h2.section { font-size: clamp(30px, 4vw, 44px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; }
.lede { font-size: 19px; line-height: 1.5; color: var(--muted); margin: 0; max-width: 560px; }
section { scroll-margin-top: 16px; }

/* Landing: hero (follows the theme; the phone stays a dark device) */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(var(--dot) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(ellipse 70% 65% at 70% 45%, #000 15%, transparent 72%); mask-image: radial-gradient(ellipse 70% 65% at 70% 45%, #000 15%, transparent 72%); }
.hero-bg::after { content: ''; position: absolute; width: 720px; height: 720px; right: -120px; top: -60px; border-radius: 50%; background: radial-gradient(circle, var(--glow), transparent 62%); animation: drift 14s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(-80px, 60px) scale(1.08); } }
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 56px; align-items: center; padding: 72px 0 88px; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.hero-copy > * { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; } .hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; } .hero-copy > :nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } }
.pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; color: var(--muted); border: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 60%, transparent); border-radius: 999px; padding: 6px 14px 6px 12px; }
.live { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.live::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--ok); animation: ping 1.8s cubic-bezier(0,0,.2,1) infinite; }
@keyframes ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }
.hero h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; }
.caret { display: inline-block; width: .09em; height: .82em; margin-left: .08em; vertical-align: -.04em; background: var(--hi); border-radius: 2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { position: relative; text-decoration: none; min-width: 196px; min-height: 60px; padding: 8px 18px 8px 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); display: flex; align-items: center; gap: 12px; color: var(--text); }
.store-ico { width: 32px; height: 32px; display: grid; place-items: center; flex: none; }
.store-t { display: flex; flex-direction: column; line-height: 1.2; }
.store small { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.store-t > span { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.store.is-soon { cursor: not-allowed; user-select: none; }
.store.is-soon .store-ico, .store.is-soon .store-t { opacity: .55; }
.store em { position: absolute; top: -9px; right: 10px; font-style: normal; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--pri-bg); color: var(--pri-fg); }
.disclaimer { font-size: 13px; color: var(--muted); }

/* Phone mockup */
.phone-wrap { display: flex; justify-content: center; perspective: 1200px; animation: rise 1s .2s cubic-bezier(.2,.7,.2,1) both; }
.phone { width: 300px; height: 600px; border-radius: 46px; border: 8px solid var(--d-fill); background: var(--d-bg); padding: 40px 16px 20px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,.04) inset; color: var(--d-text); font-size: 14px; position: relative; transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2,.7,.2,1); will-change: transform; }
.phone .team { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.phone .team i { width: 24px; height: 24px; border-radius: 6px; background: #E8FF59; color: #0B0B0C; display: grid; place-items: center; font-weight: 700; font-size: 11px; font-style: normal; }
.phone .title { display: flex; justify-content: space-between; align-items: center; }
.phone .title b { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.phone .title > span { font-family: var(--mono); font-size: 11px; background: var(--d-border); border-radius: 6px; padding: 4px 8px; }
.card-d { background: var(--d-surface); border: 1px solid var(--d-border); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.metric-row { display: flex; justify-content: space-between; align-items: flex-end; }
.metric-label { font-size: 11px; color: var(--d-muted); }
.metric { font-family: var(--mono); font-size: 26px; font-weight: 500; letter-spacing: -0.02em; }
.delta { font-family: var(--mono); font-size: 11px; color: #4ADE80; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 52px; }
.bars i { flex: 1; height: var(--h); border-radius: 2px; background: var(--d-fill); transform-origin: bottom; }
.js .phone .bars i { animation: grow .7s calc(.45s + var(--i) * 45ms) cubic-bezier(.2,.7,.2,1) both; }
@keyframes grow { from { transform: scaleY(0); } }
.js .phone .bars i:last-child { animation-name: grow, glowbar !important; animation-duration: .7s, 2.4s !important; animation-iteration-count: 1, infinite !important; animation-delay: 1.1s, 1.8s !important; }
@keyframes glowbar { 50% { box-shadow: 0 0 14px rgba(232,255,89,.65); } }
.island { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 20px; background: #000; display: flex; align-items: center; gap: 10px; padding: 0 10px; overflow: hidden; z-index: 2; transition: width .55s cubic-bezier(.3,1.3,.5,1), height .55s cubic-bezier(.3,1.3,.5,1), border-radius .55s, box-shadow .4s; }
.island > * { opacity: 0; transition: opacity .2s; }
.island .app-ico { width: 34px; height: 34px; font-size: 12px; border-radius: 9px; border: 1px solid #26262A; }
.island .isl-t { display: flex; flex-direction: column; min-width: 0; white-space: nowrap; }
.island .isl-t b { font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.island .isl-t small { font-size: 11px; color: var(--d-muted); }
.island.open { width: 252px; height: 58px; border-radius: 22px; box-shadow: 0 10px 30px rgba(0,0,0,.6), 0 0 0 1px #1E1E21; }
.island.open > * { opacity: 1; transition: opacity .3s .2s; }
.bars i:last-child { background: #E8FF59; }
.phone .team { margin-top: 8px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; border-top: 1px solid var(--d-border); padding-top: 10px; }
.stats small { display: block; font-size: 10px; color: var(--d-muted); }
.stats b { font-family: var(--mono); font-size: 14px; font-weight: 400; }
.stats b.warn { color: #FB923C; }
.phone .sec { font-size: 10px; color: var(--d-muted); text-transform: uppercase; letter-spacing: .06em; }
.alert-row { background: var(--d-surface); border: 1px solid var(--d-border); border-radius: 12px; padding: 10px; display: flex; gap: 10px; align-items: center; }
.alert-row .dot { width: 28px; height: 28px; border-radius: 8px; background: #2A1A0E; display: grid; place-items: center; flex: none; }
.alert-row .dot::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #FB923C; }
.alert-row b { display: block; font-size: 12px; font-weight: 500; }
.alert-row small { display: block; font-size: 11px; color: var(--d-muted); }
.phone .cta { margin-top: auto; background: #E8FF59; color: #0B0B0C; border-radius: 14px; min-height: 44px; display: grid; place-items: center; font-weight: 600; }

/* Landing: webhook stream */
.ticker { border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.ticker ul { list-style: none; margin: 0; padding: 0; display: flex; }
.ticker li { display: flex; align-items: center; gap: 10px; padding: 16px 28px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); white-space: nowrap; border-right: 1px solid var(--divider); }
.ticker time { opacity: .6; }
.ticker b { color: var(--text); font-weight: 500; }
.ticker em { font-style: normal; opacity: .6; }
.ticker li > i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.ticker i.ok { background: var(--ok); } .ticker i.info { background: var(--info); } .ticker i.warn { background: var(--warn); } .ticker i.hi { background: var(--hi); box-shadow: 0 0 8px var(--glow); }

/* Landing: features */
.block { padding: 96px 0; }
.block-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; max-width: 640px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.feature { position: relative; background: radial-gradient(420px circle at var(--mx, -999px) var(--my, -999px), color-mix(in srgb, var(--hi) 9%, transparent), transparent 45%), var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 12px; transition: border-color .25s, transform .3s cubic-bezier(.2,.7,.2,1); }
.feature:hover { border-color: color-mix(in srgb, var(--hi) 40%, var(--border)); transform: translateY(-2px); }
.feature .ico { transition: transform .4s cubic-bezier(.3,1.4,.5,1); }
.feature:hover .ico { transform: rotate(-8deg) scale(1.08); }
.feature .ico { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--pri-bg); color: var(--pri-fg); display: grid; place-items: center; }
.feature h3 { font-size: 20px; font-weight: 600; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
.feature .foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--divider); font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* Landing: push + widget */
.push { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.push-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 48px; align-items: center; padding: 96px 0; }
.push-copy { display: flex; flex-direction: column; gap: 16px; }
.push-demo { display: flex; flex-direction: column; gap: 16px; max-width: 420px; justify-self: center; width: 100%; }
.stack { display: flex; flex-direction: column; }
.n-slot { display: grid; grid-template-rows: 1fr; }
.n-slot > .notif { min-height: 0; overflow: hidden; margin-bottom: 10px; }
.n-slot:nth-child(2) > .notif { opacity: .75; } .n-slot:nth-child(3) > .notif { opacity: .45; }
.n-slot.enter { animation: slot .6s cubic-bezier(.2,.7,.2,1) both; }
.n-slot.enter > .notif { animation: pop .6s cubic-bezier(.3,1.3,.5,1) both; }
@keyframes slot { from { grid-template-rows: 0fr; } }
@keyframes pop { from { opacity: 0; transform: translateY(-16px) scale(.96); } }
.n-body { flex: 1; min-width: 0; }
.notif { display: flex; gap: 12px; align-items: flex-start; background: var(--bg); border: 1px solid var(--border); border-radius: 20px; padding: 14px; transition: opacity .4s; }
.flow { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.flow > span { border: 1px solid var(--border); background: var(--bg); border-radius: 999px; padding: 6px 12px; white-space: nowrap; }
.flow > span.mono { color: var(--text); }
.wire { position: relative; flex: 1; min-width: 24px; height: 1px; background: repeating-linear-gradient(90deg, var(--border) 0 4px, transparent 4px 8px); }
.wire b { position: absolute; top: -3px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--hi); box-shadow: 0 0 10px var(--hi); opacity: 0; }
.flow.go .wire:nth-of-type(1) b { animation: packet .55s ease-in both; }
.flow.go .wire:nth-of-type(2) b { animation: packet .55s .5s ease-in both; }
@keyframes packet { 0% { left: 0; opacity: 0; } 15%, 85% { opacity: 1; } 100% { left: calc(100% - 7px); opacity: 0; } }
.app-ico { width: 38px; height: 38px; border-radius: 9px; background: #0B0B0C; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; letter-spacing: -0.05em; flex: none; }
.app-ico i { color: #E8FF59; font-style: normal; }
.notif .top > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif .top { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 600; }
.notif .top small { font-weight: 400; color: var(--muted); font-size: 12px; }
.notif p { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.notif p b { font-family: var(--mono); color: var(--text); font-weight: 500; }
.widget { background: var(--bg); border: 1px solid var(--border); border-radius: 24px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.widget .bars i { background: var(--fill); }
.js .widget .bars i { transform: scaleY(0); transition: transform .7s calc(var(--i) * 45ms) cubic-bezier(.2,.7,.2,1); }
.js .push-demo.in .widget .bars i { transform: none; }
.widget .bars i:last-child { background: var(--hi); }
.widget .stats { border-color: var(--border); }
.widget .stats small, .widget .metric-label { color: var(--muted); }
.widget .stats b.warn { color: var(--warn); }

/* Landing: pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 16px; }
.plan { border-radius: 18px; padding: 32px; display: flex; flex-direction: column; gap: 20px; background: var(--surface); border: 1px solid var(--border); }
.plan.pro { background: #0B0B0C; color: #F2F2F0; border-color: #26262A; }
@property --a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.plan { background: radial-gradient(420px circle at var(--mx, -999px) var(--my, -999px), color-mix(in srgb, var(--hi) 7%, transparent), transparent 45%), var(--surface); }
.plan.pro { border: 1px solid transparent; background: radial-gradient(420px circle at var(--mx, -999px) var(--my, -999px), rgba(232,255,89,.08), transparent 45%) padding-box, linear-gradient(#0B0B0C, #0B0B0C) padding-box, conic-gradient(from var(--a), #26262A 0 62%, #E8FF59 80%, #26262A 96%) border-box; animation: orbit 6s linear infinite; }
@keyframes orbit { to { --a: 360deg; } }
.plan-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.plan h3 { font-size: 22px; font-weight: 600; }
.plan .tag { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.plan.pro .tag { color: #9A9AA2; }
.price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price b { font-family: var(--mono); font-size: 40px; font-weight: 500; letter-spacing: -0.03em; }
.price s, .price > span { font-family: var(--mono); font-size: 14px; color: var(--muted); }
.plan.pro .price s, .plan.pro .price > span { color: #9A9AA2; }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.plan li svg { flex: none; margin-top: 2px; color: var(--ok); }
.plan.pro li svg { color: #E8FF59; }
.plan .btn { margin-top: auto; }
.plan.pro .btn { background: #E8FF59; color: #0B0B0C; }
.note { margin-top: 20px; font-size: 14px; color: var(--muted); }

/* Landing: FAQ */
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 48px; }
.faq-side { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.faq-list > div { padding: 20px 0; border-bottom: 1px solid var(--divider); }
.faq-list > div:first-child { padding-top: 0; }
.faq-list h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.faq-list p { margin: 0; color: var(--muted); font-size: 15px; }

/* Footer (same structure as the other oprimo.dev product sites) */
.site-footer { border-top: 1px solid var(--divider); background: var(--surface); padding: 56px 0 32px; font-size: 14px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr .9fr 1.2fr 1.2fr; gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer-brand .wordmark { font-size: 24px; color: var(--text); }
.footer-brand p { margin: 10px 0 0; max-width: 34ch; line-height: 1.55; }
.footer-lang { display: inline-block; margin-top: 14px; font-size: 13px; }
.site-footer nav h2 { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer nav li { padding: 5px 0; }
.site-footer a { color: var(--text); text-decoration: none; opacity: .85; }
.site-footer a:hover, .site-footer a[aria-current="page"] { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.site-footer .blurb { display: block; font-size: 12.5px; color: var(--muted); }
.footer-rights { margin-top: 40px; }
.footer-social { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 16px !important; }
.footer-social a { display: inline-flex; min-height: 32px; align-items: center; }
.footer-rights p { margin: 0; padding-top: 20px; border-top: 1px solid var(--divider); font-size: 13px; }

/* Legal */
.doc-head { padding: 64px 0 40px; display: flex; flex-direction: column; gap: 12px; }
.doc-head h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 600; letter-spacing: -0.03em; }
.doc-head p { margin: 0; color: var(--muted); font-size: 14px; }
.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding-bottom: 96px; align-items: start; }
@media (max-width: 820px) { .doc { grid-template-columns: 1fr; gap: 32px; } }
.toc { position: sticky; top: 96px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px; }
@media (max-width: 820px) { .toc { position: static; } }
.toc ol { list-style: none; margin: 8px 0 0; padding: 0; }
.toc a { text-decoration: none; display: flex; gap: 10px; min-height: 36px; align-items: center; padding: 0 8px; border-radius: 10px; font-size: 14px; color: var(--muted); }
.toc a:hover { background: var(--fill); color: var(--text); }
.toc a > span:first-child, .doc h2 > span:first-child { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.doc article { max-width: 680px; }
.doc .intro { font-size: 17px; margin: 0 0 40px; }
.doc section { padding: 32px 0; border-top: 1px solid var(--divider); }
.doc h2 { font-size: 22px; font-weight: 600; display: flex; gap: 12px; align-items: baseline; margin-bottom: 12px; }
.doc p { color: var(--muted); margin: 0 0 12px; }
.doc p strong, .doc li strong { color: var(--text); font-weight: 500; }
.kv { list-style: none; margin: 16px 0 0; padding: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
.kv li { display: grid; grid-template-columns: minmax(140px, 200px) 1fr; gap: 8px 24px; padding: 14px 18px; border-bottom: 1px solid var(--divider); font-size: 15px; }
.kv li:last-child { border-bottom: 0; }
.kv li > span:first-child { font-weight: 500; }
.kv li > span:last-child { color: var(--muted); }
@media (max-width: 560px) { .kv li { grid-template-columns: 1fr; } }
.todo { font-family: var(--mono); font-size: .9em; background: var(--warn-bg); color: var(--warn); padding: 1px 6px; border-radius: 6px; }

/* Support */
.support-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 32px; padding: 64px 0 48px; align-items: end; }
.support-top h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 600; letter-spacing: -0.03em; margin-bottom: 24px; }
.search { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0 14px; min-height: 52px; color: var(--muted); }
.search input { flex: 1; border: 0; background: none; font: inherit; font-size: 16px; color: var(--text); outline: none; min-height: 48px; }
.search input::placeholder { color: var(--muted); }
.search:focus-within { border-color: var(--text); }
.status-card { text-decoration: none; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.status-card .row { display: flex; justify-content: space-between; gap: 12px; align-items: center; font-weight: 600; }
.status-card .ok { display: inline-flex; gap: 8px; align-items: center; font-weight: 500; color: var(--ok); font-size: 14px; }
.status-card .ok::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.status-card p { margin: 0; font-size: 14px; color: var(--muted); }
.faq-acc { border-top: 1px solid var(--divider); }
.faq-acc details { border-bottom: 1px solid var(--divider); }
.faq-acc summary { list-style: none; cursor: pointer; min-height: 60px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 17px; font-weight: 600; padding: 12px 0; }
.faq-acc summary::-webkit-details-marker { display: none; }
.faq-acc summary::after { content: '+'; flex: none; width: 28px; height: 28px; border-radius: 999px; background: var(--fill); display: grid; place-items: center; font-family: var(--mono); font-weight: 400; }
.faq-acc details[open] summary::after { content: '−'; background: var(--pri-bg); color: var(--pri-fg); }
.faq-acc details p { margin: 0 0 20px; color: var(--muted); max-width: 720px; }
.faq-empty { color: var(--muted); padding: 20px 0; }
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 32px; padding: 64px 0 96px; }
.contact p { color: var(--muted); margin: 12px 0; }
.contact .meta { font-family: var(--mono); font-size: 12px; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; display: inline-block; }
.contact-links { display: flex; flex-direction: column; gap: 12px; }
.contact-links a { text-decoration: none; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 18px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); font-weight: 500; }
.contact-links a.btn-primary { background: var(--pri-bg); color: var(--pri-fg); border-color: transparent; }
.contact-links small { margin-left: auto; color: inherit; opacity: .7; font-family: var(--mono); font-size: 12px; }
h2.sub { font-size: 24px; font-weight: 600; margin-bottom: 8px; }

/* Scroll reveal (only with JS, only with motion) */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .rv [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--d, 0s) cubic-bezier(.2,.7,.2,1), transform .8s var(--d, 0s) cubic-bezier(.2,.7,.2,1); }
  .rv [data-reveal].in { opacity: 1; transform: none; }
  .rv .feature[data-reveal].in:hover { transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .ticker-track { animation: none; }
}
@media (max-width: 560px) {
  .block, .push-grid { padding: 64px 0; }
  .hero-grid { padding: 48px 0 64px; }
  .wrap { padding: 0 16px; }
  .nav .btn-primary { margin-left: 0; }
  .nav-wide { display: none !important; }
  .site-header .wrap { flex-wrap: nowrap; }
  .nav { flex-wrap: nowrap; gap: 0; }
  .stores { flex-direction: column; }
  .store { width: 100%; }
}

/* Easter egg: every "re" in text (wrapped at build) shows in lime wherever lime is readable.
   --re follows the surface: lime on dark, olive on light or lime fills, white on black buttons with lime text. */
:root { --re: #E8FF59; }
:root[data-theme="light"] { --re: #5C6B00; }
:root[data-theme="light"] :is(.phone, .plan.pro) { --re: #E8FF59; }
:is(.btn-primary, .phone .cta, .store em, .contact-links a.btn-primary, .skip) { --re: #5C6B00; }
:root[data-theme="light"] :is(.btn-primary, .store em, .contact-links a.btn-primary, .skip) { --re: #FFFFFF; }
.plan.pro .btn, :root[data-theme="light"] .plan.pro .btn { --re: #5C6B00; }
.re { color: var(--re); }
