/* REAOS landing, v3 (local test copy): rechat.ai-style layout.
   White page, very large tightly tracked black headlines, pill buttons,
   hairline dividers, a black demo panel and a black closing band.
   Self-hosted Hanken Grotesk stands in for the source's proprietary face
   (CSP font-src 'self'). Single accent: the iMessage blue the app uses for sent
   bubbles (#007AFF, pressed #0062CC). */

@font-face { font-family: "Hanken Grotesk"; font-weight: 400; font-style: normal; font-display: swap; src: url("/static/landing/fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 500; font-style: normal; font-display: swap; src: url("/static/landing/fonts/hanken-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 700; font-style: normal; font-display: swap; src: url("/static/landing/fonts/hanken-grotesk-latin-700-normal.woff2") format("woff2"); }

:root {
  --ink: #000;
  --ink-2: #333;
  --ink-3: #595959;
  --line: #c9c9c9;
  --gray: #ebebeb;
  --sky: #007AFF;
  --sky-soft: #e6f1ff;
  --blue: #007AFF;
  --blue-press: #0062CC;
  --blue-wash: #E5F0FF;
  --blue-line: #B3D4FF;
  --body: "Hanken Grotesk", "Helvetica Neue", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 5vw, 80px);
  --max: 1280px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; color: var(--ink); background: #fff; font: 400 1.0625rem/1.5 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; min-height: 100vh; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 30; background: #000; color: #fff; padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ------------------------------------------------------------ header */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,0.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-inner { max-width: 1440px; height: 72px; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.9rem/1 var(--body); letter-spacing: -0.07em; }
.nav-brand img { height: 35px; width: auto; }
.phone-name b, b.os { font: inherit; color: var(--blue); }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nl { padding: 10px 14px; text-decoration: none; font-weight: 500; font-size: 1.02rem; }
.nl:hover { text-decoration: underline; text-underline-offset: 5px; }
.nav-links .pill { min-height: 44px; padding: 0 20px; font-size: 0.95rem; }
.nav-links .pill-dark { margin-left: 8px; }
@media (max-width: 860px) { .nl { display: none; } }
@media (max-width: 520px) { .nav-links .pill-dark { display: none; } .nav-brand { font-size: 1.6rem; } }

/* ------------------------------------------------------------ buttons */
.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent; font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer; transition: transform 0.2s var(--ease), background 0.2s, color 0.2s; }
.pill:active { transform: scale(0.98); }
.pill-lg { min-height: 56px; padding: 0 34px; font-size: 1.05rem; }
.pill-dark { background: var(--blue); color: #fff; }
.pill-dark:hover { background: var(--blue-press); }
.pill-line { background: transparent; color: var(--blue-press); border-color: var(--blue); }
.pill-line:hover { background: var(--blue); color: #fff; }
.pill-white { background: #fff; color: #000; }
.pill-white:hover { background: var(--blue); color: #fff; }
.pill-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.pill-ghost:hover { background: #fff; color: #000; }

/* ------------------------------------------------------------ type */
.h2 { font: 700 clamp(2.4rem, 5.2vw, 4rem)/1.08 var(--body); letter-spacing: -0.055em; text-wrap: balance; }
.lede { margin-top: 20px; max-width: 44rem; font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.45; color: var(--ink-2); }
.center { text-align: center; margin-inline: auto; }

section { padding-inline: var(--gutter); }
section > * { max-width: var(--max); margin-inline: auto; }

/* ------------------------------------------------------------ hero */
.hero { padding-block: clamp(36px, 5vw, 64px) clamp(48px, 6vw, 96px); text-align: center; display: flex; flex-direction: column; align-items: center; }
.badge { padding: 8px 18px; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 600; font-size: 0.95rem; }
.hero-title { margin-top: 22px; font: 500 clamp(2.7rem, 6.2vw, 4.9rem)/1.06 var(--body); letter-spacing: -0.06em; animation: rise 0.8s var(--ease) both; }
.hero-kicker { margin-top: 20px; font-size: clamp(1rem, 1.6vw, 1.2rem); color: var(--ink-3); animation: rise 0.8s 0.04s var(--ease) both; }
.hero-kicker strong { color: var(--ink); font-weight: 700; }
.hero-lede { margin-top: 22px; max-width: 48rem; text-wrap: balance; font-size: clamp(1.1rem, 1.8vw, 1.4rem); line-height: 1.4; animation: rise 0.8s 0.08s var(--ease) both; }
.cta { margin-top: 26px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; animation: rise 0.8s 0.16s var(--ease) both; }
.hero-note { margin-top: 8px; max-width: 34rem; font-size: 0.95rem; color: var(--ink-3); }
@keyframes rise { from { transform: translateY(22px); } to { transform: none; } }

.hero-art { margin-top: clamp(20px, 3vw, 40px); margin-inline: 0; width: min(calc((100vw - 24px) * 0.7), 1050px); max-width: none; overflow: hidden; }
.hero-art img { width: 100%; height: auto; mix-blend-mode: multiply; }
@media (max-width: 700px) { .hero-art { width: calc(100vw - 24px); } .hero-art img { width: 105%; max-width: none; margin-left: -2.5%; } }
.stage { position: relative; margin-top: clamp(40px, 5vw, 64px); display: grid; place-items: center; width: 100%; }
.stage .phone { transform: translate3d(calc(var(--mx, 0) * 8px), calc(var(--my, 0) * 6px), 0); transition: transform 0.4s var(--ease); }
.tick { position: absolute; display: grid; gap: 1px; padding: 12px 18px 13px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 40px -16px rgba(0,0,0,0.25); font-size: 0.85rem; line-height: 1.25; font-weight: 500; color: var(--ink-2); text-align: left; }
.tick b { font: 700 1.6rem/1.1 var(--body); letter-spacing: -0.05em; color: #000; }
.tick-1 { top: 14%; left: calc(50% - 360px); } .tick-2 { bottom: 18%; right: calc(50% - 360px); }
@media (max-width: 1000px) { .tick { display: none; } }

/* ------------------------------------------------------------ the phone */
.phone { position: relative; width: min(318px, 82vw); height: 650px; padding: 9px; border-radius: 56px; background: #0b0b0b; box-shadow: 0 0 0 2px #c9c9c9, 0 0 0 3px #8d8d8d, 0 40px 80px -24px rgba(0,0,0,0.45); }
.phone-screen { position: relative; display: flex; flex-direction: column; height: 100%; border-radius: 47px; overflow: hidden; background: #fff; color: #000; }
.phone-island { position: absolute; top: 10px; left: 50%; width: 86px; height: 25px; margin-left: -43px; background: #000; border-radius: 999px; z-index: 1; }
.phone-top { height: 50px; padding: 15px 26px 0; display: flex; justify-content: space-between; align-items: flex-start; font-size: 0.76rem; font-weight: 700; }
.phone-name { position: absolute; left: 0; right: 0; top: 50px; display: flex; justify-content: center; align-items: center; gap: 6px; font: 700 0.95rem/1 var(--body); letter-spacing: -0.04em; }
.phone-name img { border-radius: 5px; }
.phone-bat { width: 20px; height: 10px; border-radius: 3px; background: #000; margin-top: 2px; }
.chat { flex: 1; min-height: 0; margin-top: 30px; padding: 8px 12px 10px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; overflow: hidden; }
.phone-compose { margin: 4px 12px 16px; height: 44px; padding: 0 6px 0 18px; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-3); font-size: 0.92rem; }
.phone-compose i { width: 32px; height: 32px; border-radius: 50%; background: var(--blue); position: relative; }
.phone-compose i::after { content: ""; position: absolute; left: 11px; top: 10px; width: 8px; height: 8px; border-left: 2.5px solid #fff; border-top: 2.5px solid #fff; transform: rotate(45deg) translate(2px, 2px); }

.b { max-width: 88%; padding: 9px 13px; border-radius: 18px; font-size: 0.85rem; line-height: 1.35; animation: pop 0.35s var(--ease) both; }
@keyframes pop { from { transform: translateY(8px) scale(0.97); opacity: 0; } to { transform: none; opacity: 1; } }
.b.me { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 6px; }
.b.ai { align-self: flex-start; background: var(--gray); color: #000; border-bottom-left-radius: 6px; }
.b.card { width: 94%; max-width: 94%; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 11px 12px; display: grid; gap: 7px; }
.b.card > strong { font-size: 0.88rem; }
.b.card small { font-size: 0.75rem; line-height: 1.35; color: var(--ink-2); }
.row { display: flex; gap: 8px; align-items: baseline; font-size: 0.79rem; line-height: 1.3; }
.tag { flex: none; padding: 2px 8px; border-radius: 999px; font-size: 0.68rem; font-weight: 700; background: oklch(0.94 0.07 82); color: oklch(0.38 0.09 65); }
.tag.ok { background: oklch(0.93 0.07 155); color: oklch(0.34 0.08 155); }
.tag.plain { background: var(--gray); color: var(--ink-2); }
.meter { height: 6px; border-radius: 999px; background: var(--gray); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: inherit; background: #000; }
.meter i.low { background: oklch(0.74 0.14 65); }
.undo { justify-self: start; font-size: 0.78rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.pill-action { justify-self: stretch; text-align: center; padding: 9px 12px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 0.82rem; font-weight: 700; }
.score-top { display: flex; align-items: center; gap: 10px; }
.ring { --p: 50; position: relative; flex: none; width: 52px; height: 52px; border-radius: 50%; background: conic-gradient(#000 calc(var(--p) * 1%), var(--gray) 0); display: grid; place-items: center; }
.ring::before { content: ""; position: absolute; inset: 6px; background: #fff; border-radius: 50%; }
.ring b { position: relative; font-size: 0.82rem; }
.score-head { display: grid; gap: 1px; }
.score-head strong { font-size: 0.88rem; }
.factor { display: grid; gap: 3px; }
.f-label { display: flex; justify-content: space-between; gap: 8px; font-size: 0.75rem; }
.f-label em { font-style: normal; color: var(--ink-2); }
.typing { display: flex; gap: 4px; padding: 12px 14px; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: #8a8a8a; animation: blink 1s infinite; }
.typing span:nth-child(2) { animation-delay: 0.15s; } .typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 0%, 60%, 100% { opacity: 0.3; } 30% { opacity: 1; } }

/* ------------------------------------------------------------ tools (four columns) */
.tools { padding-block: clamp(56px, 8vw, 128px); }
.tools .lede { max-width: 44rem; }
.cols { margin-top: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols article { padding: 18px 32px 18px; border-left: 1px solid var(--line); border-top: 4px solid var(--blue); }
.cols article:first-child { border-left: 0; padding-left: 0; }
.cols article:first-child { padding-left: 12px; }
.cols h3 { font: 700 1.5rem/1.2 var(--body); letter-spacing: -0.04em; }
.cols p { margin-top: 12px; color: var(--ink-2); font-size: 1.08rem; }
@media (max-width: 900px) { .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; } .cols article:nth-child(odd) { border-left: 0; padding-left: 0; } }
@media (max-width: 520px) { .cols { grid-template-columns: minmax(0, 1fr); } .cols article { border-left: 0; padding: 0 0 22px; border-bottom: 1px solid var(--line); } .cols article:last-child { border-bottom: 0; } }

/* ------------------------------------------------------------ app screens */
.appshow { padding-block: clamp(56px, 8vw, 112px); background: var(--gray); }
.appshow > .lede, .appshow > .app-caption { max-width: var(--max); padding-right: max(0px, calc(100% - 44rem)); }
.app-note { margin-top: 8px; font-size: 0.9rem; color: var(--ink-3); }

/* The whole-app demo. Without data-live (no script, reduced motion) the screens stack. */
.ap-stage { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); background: #F4F7FD; color: #131A1D; font: 400 15px/1.35 var(--body); }
.ap-stage[data-live] { height: clamp(560px, 46vw, 640px); overflow: hidden; }
.ap-rail { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 12px 8px; background: #EEF3FC; border-right: 1px solid #E1E8F5; }
.ap-nav { display: grid; justify-items: center; gap: 3px; padding: 9px 2px; border-radius: 18px; font-size: 11.5px; color: #4A555C; transition: background 0.3s, color 0.3s; }
.ap-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ap-nav.cur { background: #fff; color: var(--blue-press); font-weight: 700; }
.ap-main { position: relative; min-width: 0; }
.ap-scene { padding: 20px clamp(14px, 2.4vw, 28px); }
.ap-scene > * { max-width: none; margin-inline: 0; }
.ap-nav[data-nav="overview"] svg { stroke-width: 3.4; }
.ap-stage:not([data-live]) .ap-scene + .ap-scene { border-top: 1px solid #E1E8F5; }
.ap-stage[data-live] .ap-scene { position: absolute; inset: 0; overflow: hidden; opacity: 0; visibility: hidden; transition: opacity 0.35s, visibility 0.35s; }
.ap-stage[data-live] .ap-scene.cur { opacity: 1; visibility: visible; }
.ap-stage[data-live] [data-at] { opacity: 0; transform: translateY(10px); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }
.ap-stage[data-live] [data-at].on { opacity: 1; transform: none; }
.ap-title { font: 700 clamp(1.3rem, 2vw, 1.6rem)/1.15 var(--body); letter-spacing: -0.03em; margin-bottom: 12px; }
.ap-title small { font: 400 0.85rem/1 var(--body); letter-spacing: 0; color: #5F6B73; }
.ap-card { padding: 14px 16px; border-radius: 20px; background: #fff; box-shadow: 0 6px 24px rgba(40, 60, 110, 0.10); }
.ap-card h4 { font: 700 12px/1.2 var(--body); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px; }
.c-blue { color: var(--blue-press); } .c-green { color: #1D6B3A; } .c-purple { color: #7A2FA8; }
.ap-pill { justify-self: start; width: fit-content; padding: 3px 10px; border-radius: 999px; background: var(--blue-wash); color: var(--blue-press); font-size: 11.5px; font-weight: 700; }
.ap-brief { display: grid; gap: 4px; margin-bottom: 12px; }
.ap-brief b { font: 700 clamp(1.1rem, 1.7vw, 1.35rem)/1.2 var(--body); letter-spacing: -0.03em; }
.ap-brief small, .ap-task small, .ap-app small, .ap-row small { font-size: 12.5px; color: #5F6B73; }
.ap-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.ap-stack { display: grid; gap: 12px; min-width: 0; }
.ap-task { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; padding: 8px 0; }
.ap-task + .ap-task { border-top: 1px solid #E8ECF3; }
.ap-task span, .ap-app span, .ap-row span { display: grid; min-width: 0; }
.ap-task i { width: 20px; height: 20px; border: 1.5px solid #5F6B73; border-radius: 50%; transition: background 0.25s, border-color 0.25s; }
.ap-task.sel i { background: var(--blue); border-color: var(--blue); }
.ap-task.sel span { opacity: 0.5; text-decoration: line-through; transition: opacity 0.25s; }
.ap-app { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; }
.ap-score { flex: none; padding: 4px 10px; border-radius: 999px; background: #E7F4EC; color: #1D6B3A; font: 700 15px/1.1 var(--body); font-variant-numeric: tabular-nums; }
.ap-mid { background: #FFF3DC; color: #7A5200; }
.ap-fine { display: block; margin-top: 4px; font-size: 11.5px; color: #5F6B73; }
.ap-line { font-size: 14px; }
[data-scene="marketing"], [data-scene="crm"] { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(14px, 2.4vw, 28px); align-items: start; }
.ap-left { position: relative; min-width: 0; }
.ap-rows { padding-block: 6px; }
.ap-row { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 12px; transition: background 0.25s; }
.ap-row + .ap-row { border-top: 1px solid #EEF1F6; }
.ap-row.sel { background: var(--blue-wash); }
.ap-row em, .ap-who em { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 12px; background: #E5F0FF; color: var(--blue-press); font: 700 12px/1 var(--body); font-style: normal; }
.ap-sheet { margin-top: 12px; }
.ap-right { min-width: 0; display: grid; gap: 12px; justify-items: center; align-content: start; }
.ap-stage .flyer { width: min(100%, 300px); }
.fl-rest { display: grid; }
.fl-rest .fl-stats { margin-inline: 16px; }
.ap-done { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.ap-ready { padding: 4px 11px; border-radius: 999px; background: #E7F4EC; color: #1D6B3A; font-size: 12.5px; font-weight: 700; }
.ap-done .mk-btn { flex: none; height: 38px; padding: 0 18px; font-size: 14px; }
.ap-detail { justify-items: stretch; }
.ap-who { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.ap-who b { font: 700 1.1rem/1.2 var(--body); letter-spacing: -0.02em; }
.ap-kv { display: grid; padding: 5px 0; font-size: 14px; overflow-wrap: anywhere; }
.ap-kv span { font-size: 11.5px; font-weight: 700; color: #5F6B73; }
.ap-ai { padding-block: 4px; }
.ap-ai i { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; color: #fff; font: 800 0.8125rem/1 var(--body); font-style: normal; letter-spacing: 0.02em; background: linear-gradient(180deg, #4DA3FF 0%, #007AFF 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 0 0 4px #fff, 0 10px 24px rgba(0, 122, 255, 0.4); transition: box-shadow 0.3s; }
.ap-ai.cur { background: transparent; }
.ap-ai.cur i { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 0 0 4px var(--blue-wash), 0 10px 24px rgba(0, 122, 255, 0.5); }
.ap-pane { display: flex; flex-direction: column; background: #fff; }
.ap-stage:not([data-live]) .ap-pane { min-height: 340px; border-top: 1px solid #E1E8F5; }
.ap-stage:not([data-live]) .ap-pane .typing, .ap-stage:not([data-live]) .ap-pane-close { display: none; }
.ap-stage[data-live] .ap-pane { position: absolute; z-index: 2; top: 0; right: 0; bottom: 0; width: min(46%, 430px); border-left: 1px solid #E1E8F5; box-shadow: -18px 0 40px -24px rgba(40, 60, 110, 0.35); transform: translateX(105%); visibility: hidden; transition: transform 0.45s var(--ease), visibility 0.45s; }
.ap-stage[data-live] .ap-pane.open { transform: none; visibility: visible; }
.ap-stage[data-live] .ap-pane [data-p]:not(.on) { display: none; }
.ap-pane-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid #E8ECF3; font-size: 1.05rem; }
.ap-pane-close { position: relative; width: 28px; height: 28px; }
.ap-pane-close::before, .ap-pane-close::after { content: ""; position: absolute; left: 6px; right: 6px; top: 13px; height: 2px; border-radius: 2px; background: #131A1D; transform: rotate(45deg); }
.ap-pane-close::after { transform: rotate(-45deg); }
.ap-pane-body { flex: 1; min-height: 0; padding: 14px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; overflow: hidden; }
.ap-pane-compose { display: flex; align-items: center; justify-content: space-between; margin: 0 12px 12px; padding: 6px 6px 6px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.9rem; color: #5F6B73; }
.ap-pane-compose i { width: 30px; height: 30px; border-radius: 50%; background: var(--blue); }
.ap-cursor { display: none; position: absolute; left: 0; top: 0; z-index: 3; width: 24px; height: 24px; border-radius: 50%; background: rgba(0, 122, 255, 0.35); border: 2px solid #fff; box-shadow: 0 2px 10px rgba(19, 26, 29, 0.35); opacity: 0; pointer-events: none; transition: transform 0.6s var(--ease), opacity 0.3s; }
.ap-stage[data-live] .ap-cursor { display: block; }
.ap-cursor.show { opacity: 1; }
.ap-cursor.press { background: rgba(0, 122, 255, 0.75); }
@media (max-width: 720px) {
  .ap-stage { grid-template-columns: minmax(0, 1fr); }
  .ap-stage[data-live] { height: 780px; grid-template-rows: minmax(0, 1fr) 64px; }
  .ap-rail { order: 2; flex-direction: row; justify-content: space-around; padding: 6px; border-right: 0; border-top: 1px solid #E1E8F5; }
  .ap-nav { flex: 1; padding: 5px 0; }
  .ap-rail { position: relative; z-index: 3; background: #fff; }
  .ap-ai { flex: 0 0 64px; padding: 0; }
  .ap-ai i { margin-top: -24px; }
  .ap-stage[data-live] .ap-pane { width: 100%; border-left: 0; }
  .ap-tiles, [data-scene="marketing"], [data-scene="crm"] { grid-template-columns: minmax(0, 1fr); }
  .ap-stage[data-live] .ap-right { position: absolute; inset: 0; padding: 18px 14px; background: #F4F7FD; }
  .ap-stage[data-live] .ap-right:not(.on) { visibility: hidden; }
  .ap-stage .flyer { width: min(100%, 290px); }
}
@media (max-width: 360px) { .ap-stage[data-live] { height: 840px; } }
.frame { margin-top: clamp(24px, 3vw, 40px); background: #fff; border: 1px solid #000; border-radius: 12px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0,0,0,0.45); }
.frame-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--line); }
.frame-bar i { width: 11px; height: 11px; border-radius: 50%; background: #000; }
.frame-bar i:nth-child(2) { background: #8a8a8a; } .frame-bar i:nth-child(3) { background: var(--blue); }
.frame-bar span { margin-left: 14px; padding: 4px 16px; border-radius: 999px; background: var(--gray); font-size: 0.82rem; font-weight: 500; }
.app-caption { margin-top: 20px; max-width: 44rem; font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.4; color: var(--ink-2); }

/* ------------------------------------------------------------ demo (black panel) */
.demo { padding-block: clamp(56px, 8vw, 112px); background: #fff; }
.demo-panel { margin-top: clamp(24px, 3vw, 40px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(28px, 5vw, 80px); align-items: center; padding: clamp(28px, 5vw, 72px); background: #0a0a0a; color: #fff; border-radius: 4px; }
.demo-panel > * { margin-inline: 0; min-width: 0; }
.demo-caption { min-height: 3.4em; max-width: 30rem; font-size: clamp(1.15rem, 1.8vw, 1.5rem); line-height: 1.35; color: #fff; letter-spacing: -0.02em; }
.demo-stage { display: grid; place-items: center; }
.demo-stage .phone { box-shadow: 0 0 0 2px #3a3a3a, 0 0 0 3px #1a1a1a; }
@media (max-width: 900px) { .demo-panel { grid-template-columns: minmax(0, 1fr); } .demo-stage { order: 2; } }
/* Stacked, the phone is sized by the panel, not the viewport, so it can never overhang the black box. */
@media (max-width: 900px) { .demo-stage { width: 100%; } .demo-stage .phone { width: min(318px, 100%); } }
@media (max-width: 480px) { .demo-panel { padding-inline: 14px; } .demo-copy { padding-inline: 6px; } }

/* ------------------------------------------------------------ savings */
.benefits { padding-block: clamp(56px, 8vw, 128px); }
.sec-head { margin-bottom: clamp(28px, 4vw, 56px); }
.sec-head .sub { margin-top: 20px; max-width: 40rem; font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: var(--ink-2); }
.impact { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 32px); align-items: stretch; }
.panel { border-radius: 4px; padding: clamp(22px, 3vw, 36px); background: var(--blue-wash); border: 1px solid var(--blue-line); }
.panel-money { background: #0a0a0a; color: #fff; border-color: #0a0a0a; }
.panel h3 { font: 700 1.1rem/1 var(--body); letter-spacing: -0.02em; color: var(--ink-3); }
.panel-money h3 { color: #c4c4c4; }
.panel .big { margin-top: 14px; font: 700 clamp(2.1rem, 4vw, 3.1rem)/1.05 var(--body); letter-spacing: -0.055em; text-wrap: balance; }
.panel .big-sub { margin-top: 10px; color: var(--ink-2); }
.panel-money .big-sub { color: #c9c9c9; }
.vs { margin-top: 18px; display: grid; gap: 22px; }
.vs-label { display: block; font-size: 0.95rem; color: #c9c9c9; }
.vs-num { margin: 4px 0 10px; font: 700 clamp(2.1rem, 4vw, 3.1rem)/1.05 var(--body); letter-spacing: -0.055em; font-variant-numeric: tabular-nums; }
.vs-num small { font-size: 0.42em; font-weight: 500; letter-spacing: -0.02em; color: #c9c9c9; }
.vs-us { color: #5AA9FF; }
.panel-money .big-sub { margin-top: 20px; }
.panel-energy { display: flex; flex-direction: column; justify-content: center; }
.bar { display: flex; height: 12px; border-radius: 999px; background: #262626; overflow: hidden; }
.bar i { display: block; height: 100%; }
.fill-lo { width: 44%; background: #8c8c8c; }
.fill-hi { width: 56%; background: repeating-linear-gradient(135deg, #8c8c8c 0 3px, #4d4d4d 3px 6px); }
.fill-us { width: 2.4%; min-width: 10px; background: var(--blue); border-radius: 999px; }
.fade-row { margin-top: 18px; display: flex; align-items: center; gap: 14px; min-height: 44px; }
.many { display: flex; flex-wrap: wrap; gap: 6px; max-width: 150px; }
.many i { width: 18px; height: 18px; border-radius: 50%; background: #bdbdbd; animation: pop 0.3s var(--ease) both; }
.arrow { flex: none; width: 34px; height: 2px; background: #000; position: relative; }
.arrow::after { content: ""; position: absolute; right: 0; top: -4px; width: 9px; height: 9px; border-top: 2px solid #000; border-right: 2px solid #000; transform: rotate(45deg); }
.one { flex: none; width: 40px; height: 40px; border-radius: 50%; background: #000; box-shadow: 0 0 0 6px var(--blue-line); }

.sources { margin-top: 24px; padding: 18px 24px; border: 1px solid var(--line); border-radius: 4px; font-size: 0.92rem; color: var(--ink-2); }
.sources summary { cursor: pointer; font-weight: 700; color: #000; width: fit-content; }
.sources p { margin-top: 10px; max-width: 46rem; }
.sources ul { margin-top: 10px; display: grid; gap: 4px; }
.sources a { text-underline-offset: 3px; }
@media (max-width: 920px) { .impact { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------ pricing */
.pricing { padding-block: clamp(56px, 8vw, 112px); background: var(--gray); }
.plans { margin-top: clamp(32px, 4vw, 56px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 980px; }
.plan { position: relative; padding: clamp(26px, 3.4vw, 44px); display: grid; align-content: start; gap: 12px; border: 1px solid #000; border-radius: 4px; background: #fff; color: #000; transition: background 0.25s, border-color 0.25s, color 0.25s; }
.plan h3 { font: 700 1.3rem/1 var(--body); letter-spacing: -0.03em; }
.price { font: 700 clamp(3.2rem, 7vw, 5rem)/1 var(--body); letter-spacing: -0.07em; }
.price span { font: 500 1.05rem/1 var(--body); letter-spacing: 0; color: var(--ink-2); }
.plan p:last-child { color: var(--ink-2); max-width: 26rem; }
/* Both plans stay white. A mouse turns the one under it blue; on a phone a light runs around each edge. */
@media (hover: hover) and (pointer: fine) {
  .plan:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
  .plan:hover .price span, .plan:hover p:last-child, .plan:hover b.os { color: #fff; }
}
@property --plan-run { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes plan-run { to { --plan-run: 360deg; } }
@media (hover: none), (max-width: 720px) {
  .plan { border-color: var(--line); border-radius: 12px; }
  .plan::before { content: ""; position: absolute; inset: -1px; padding: 2.5px; border-radius: inherit; pointer-events: none; background: conic-gradient(from var(--plan-run), transparent 0 62%, var(--blue-line) 76%, var(--blue) 94%, transparent 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: plan-run 3.2s linear infinite; }
  .plan + .plan::before { animation-delay: -1.6s; }
}
@media (hover: none) and (prefers-reduced-motion: reduce), (max-width: 720px) and (prefers-reduced-motion: reduce) {
  .plan::before { animation: none; background: var(--blue); }
}
@media (max-width: 700px) { .plans { grid-template-columns: minmax(0, 1fr); } }



/* ------------------------------------------------------------ closing band + footer */
.final { padding-block: clamp(96px, 14vw, 200px); background: #000; color: #fff; text-align: center; }
.final > * { margin-inline: auto; }
.final .cta { justify-content: center; }
.final-title { font: 700 clamp(2.8rem, 7vw, 5.4rem)/1.05 var(--body); letter-spacing: -0.06em; }
.final-sub { margin-top: 22px; max-width: 34rem; color: #e6e6e6; font-size: clamp(1.1rem, 1.7vw, 1.4rem); }

.foot { padding: 40px var(--gutter) 48px; display: flex; flex-wrap: wrap; gap: 14px 32px; justify-content: space-between; align-items: center; max-width: 1440px; margin: 0 auto; font-size: 0.95rem; color: var(--ink-2); }
.foot-brand { font: 700 1.5rem/1 var(--body); letter-spacing: -0.07em; color: #000; }
.foot-brand { display: flex; align-items: center; }
.foot-brand img { height: 26px; width: auto; }
.foot-brand span { font: 400 0.92rem/1 var(--body); letter-spacing: 0; margin-left: 12px; color: var(--ink-2); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot a { text-underline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; }
}

/* ------------------------------------------------------------ Marketing screen with a finished flyer
   Not shown on the page (hidden). It is what the Marketing phone in
   tri-phones.webp was captured from, at 390 px wide, so sizes are in px. */
.mk { width: 390px; min-height: 790px; position: relative; display: flex; flex-direction: column; background: #F4F7FD; color: #131A1D; font: 400 15px/1.35 var(--body); }
.mk[hidden] { display: none; }
.mk-head { padding: 26px 20px 14px; background: #EEF3FC; border-bottom: 1px solid #E1E8F5; }
.mk-head h3 { font: 700 24px/1.15 var(--body); letter-spacing: -0.03em; }
.mk-head p { margin-top: 2px; font-size: 13px; color: #5F6B73; }
.mk-body { flex: 1; padding: 18px 16px; }
.mk-card { padding: 16px; border-radius: 22px; background: #fff; box-shadow: 0 6px 24px rgba(40, 60, 110, 0.10); }
.mk-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.mk-card-head b { font: 700 17px/1.2 var(--body); letter-spacing: -0.02em; }
.mk-card-head span { padding: 3px 10px; border-radius: 999px; background: #E7F4EC; color: #1D6B3A; font-size: 12px; font-weight: 600; }
.flyer { width: 312px; margin: 0 auto; aspect-ratio: 8.5 / 11; display: flex; flex-direction: column; background: #fff; border: 1px solid #D9DEE8; box-shadow: 0 10px 26px -10px rgba(19, 26, 29, 0.35); }
.fl-photo { position: relative; flex: none; height: 41%; overflow: hidden; }
.fl-photo img { width: 100%; height: 100%; object-fit: cover; }
.fl-tag { position: absolute; left: 10px; top: 10px; padding: 3px 9px; border-radius: 999px; background: var(--blue); color: #fff; font: 600 10px/1.3 var(--body); letter-spacing: 0.02em; }
.fl-main { padding: 12px 16px 0; }
.fl-price { font: 700 28px/1 var(--body); letter-spacing: -0.04em; color: var(--blue); }
.fl-addr { margin-top: 8px; display: grid; }
.fl-addr b { font: 700 16px/1.2 var(--body); letter-spacing: -0.02em; }
.fl-addr span { font-size: 12px; color: #5F6B73; }
.fl-stats { margin-top: 10px; display: flex; gap: 0; border-top: 1px solid #E3E7EE; border-bottom: 1px solid #E3E7EE; }
.fl-stats span { flex: 1; padding: 7px 0; font-size: 11px; color: #5F6B73; text-align: center; }
.fl-stats span + span { border-left: 1px solid #E3E7EE; }
.fl-stats b { font: 700 14px/1 var(--body); color: #131A1D; }
.fl-agent { margin: 12px 16px 0; display: grid; }
.fl-agent b { font: 700 13px/1.2 var(--body); }
.fl-agent span { font-size: 11px; color: #5F6B73; }
.fl-legal { margin: auto 16px 9px; font-size: 7px; line-height: 1.35; color: #8A949B; }
.mk-actions { margin-top: 14px; display: flex; gap: 10px; }
.mk-btn { flex: 1; display: grid; place-items: center; height: 44px; border-radius: 999px; background: var(--blue); color: #fff; font: 600 15px/1 var(--body); }
.mk-btn.mk-line { background: #fff; color: var(--blue-press); box-shadow: inset 0 0 0 1.5px var(--blue); }
.mk-tabs { margin: 0 12px 14px; height: 62px; padding: 0 8px; display: flex; align-items: center; justify-content: space-around; border-radius: 26px; background: #fff; box-shadow: 0 6px 24px rgba(40, 60, 110, 0.12); font-size: 11px; font-weight: 500; color: #5F6B73; }
.mk-tabs .on { color: var(--blue); font-weight: 700; }
.mk-tabs i { width: 46px; height: 46px; margin-top: -22px; display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: #fff; font: 700 15px/1 var(--body); font-style: normal; box-shadow: 0 6px 16px rgba(0, 122, 255, 0.4); }
