/* casatorch.com homepage. Light and dark (follows the system, or the switch in the menu bar).
   Inter is served from casatorch.com (no Google Fonts request). SIL Open Font License: /assets/fonts/OFL.txt */
@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/inter-var.woff2) format("woff2"); }

:root {
  color-scheme: dark;
  --bg: #05070d; --bg2: #090d17; --elev: #0d121e; --card: rgba(255, 255, 255, .035); --card2: rgba(255, 255, 255, .06);
  --line: rgba(148, 170, 210, .14); --line2: rgba(148, 170, 210, .24);
  --text: #f4f7fc; --muted: #a3afc2; --faint: #7d899d;
  --sky: #38bdf8; --sky-t: #7dd3fc; --violet: #8b7bff; --violet-t: #8b7bff; --amber: #fbbf24; --amber-t: #fcd34d; --good: #34d399; --good-t: #6ee7b7; --bad: #fda4af;
  --btn-text: #04111c; --shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
  --glow1: rgba(56, 189, 248, .22); --glow2: rgba(139, 123, 255, .22); --glow3: rgba(251, 191, 36, .14);
  --nav: rgba(5, 7, 13, .72);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r: 22px; --max: 1200px; --gut: clamp(16px, 4vw, 40px);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #fbfbfd; --bg2: #f3f5f9; --elev: #ffffff; --card: #ffffff; --card2: #f3f5f9;
    --line: rgba(15, 23, 42, .09); --line2: rgba(15, 23, 42, .16);
    --text: #0b1220; --muted: #475569; --faint: #5b6678;
    --sky: #0ea5e9; --sky-t: #0369a1; --violet: #6d5cf6; --violet-t: #5b4ae0; --amber: #f59e0b; --amber-t: #92400e; --good: #059669; --good-t: #047857; --bad: #be123c;
    --shadow: 0 30px 70px -34px rgba(15, 23, 42, .35);
    --glow1: rgba(56, 189, 248, .20); --glow2: rgba(139, 123, 255, .16); --glow3: rgba(251, 191, 36, .16);
    --nav: rgba(251, 251, 253, .76);
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fbfbfd; --bg2: #f3f5f9; --elev: #ffffff; --card: #ffffff; --card2: #f3f5f9;
  --line: rgba(15, 23, 42, .09); --line2: rgba(15, 23, 42, .16);
  --text: #0b1220; --muted: #475569; --faint: #5b6678;
  --sky: #0ea5e9; --sky-t: #0369a1; --violet: #6d5cf6; --violet-t: #5b4ae0; --amber: #f59e0b; --amber-t: #92400e; --good: #059669; --good-t: #047857; --bad: #be123c;
  --shadow: 0 30px 70px -34px rgba(15, 23, 42, .35);
  --glow1: rgba(56, 189, 248, .20); --glow2: rgba(139, 123, 255, .16); --glow3: rgba(251, 191, 36, .16);
  --nav: rgba(251, 251, 253, .76);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; font-feature-settings: "cv11", "ss01"; }
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: var(--sky-t); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--elev); color: var(--text); border: 1px solid var(--line2); }
.skip:focus { top: 12px; }
code { font: .86em var(--mono); padding: 1px 6px; border-radius: 6px; background: var(--card2); border: 1px solid var(--line); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 30; background: var(--nav); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { max-width: var(--max); margin: 0 auto; height: 60px; padding: 0 var(--gut); display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: -.02em; font-size: 18px; }
.nav-links { display: flex; gap: 22px; margin: 0 auto; font-size: 14px; }
.nav-links a { color: var(--muted); text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-end { display: flex; align-items: center; gap: 10px; }
.insider { color: var(--muted); font-size: 14px; text-decoration: none; padding: 6px 4px; }
.insider:hover { color: var(--text); }
.theme-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.theme-btn:hover { color: var(--text); border-color: var(--line2); }
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .i-moon { display: none; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .theme-btn .i-sun { display: none; } :root:not([data-theme="dark"]) .theme-btn .i-moon { display: block; } }
:root[data-theme="light"] .theme-btn .i-sun { display: none; } :root[data-theme="light"] .theme-btn .i-moon { display: block; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer; font: 600 16px var(--font); letter-spacing: -.01em; color: var(--btn-text); text-decoration: none; white-space: nowrap;
  background: linear-gradient(135deg, #7dd3fc, #38bdf8 45%, #8b7bff); box-shadow: 0 10px 30px -12px rgba(56, 189, 248, .8), inset 0 1px 0 rgba(255, 255, 255, .4); transition: transform .15s, filter .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn:active { transform: none; }
.btn:disabled { opacity: .7; cursor: default; transform: none; }
.btn.sm { min-height: 36px; padding: 0 16px; font-size: 14px; }
/* consent.js (shared with the site.css pages) names its button "btn small": here .small is grey text, so keep the button's own look */
.btn.small { min-height: 36px; padding: 0 16px; font-size: 14px; color: var(--btn-text); }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line2); }
.btn.ghost:hover { background: var(--card2); }

/* ---------- hero ---------- */
.hero { position: relative; text-align: center; padding: clamp(56px, 9vw, 112px) var(--gut) 28px; isolation: isolate; }
.hero-glow { position: absolute; inset: -60px 0 auto; height: 900px; z-index: -1; pointer-events: none;
  background: radial-gradient(520px 320px at 50% 18%, var(--glow3), transparent 70%), radial-gradient(700px 420px at 28% 40%, var(--glow1), transparent 70%), radial-gradient(700px 420px at 74% 44%, var(--glow2), transparent 70%); filter: blur(10px); }
.hero-copy { max-width: 860px; margin: 0 auto; }
.newpill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; font-size: 14px; color: var(--muted); text-decoration: none; background: var(--card); border: 1px solid var(--line); transition: border-color .2s, color .2s; max-width: 100%; }
.newpill:hover { border-color: var(--line2); color: var(--text); }
.newpill .tag { padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #1a1203; background: linear-gradient(135deg, #fde68a, #fbbf24); }
.newpill i { font-style: normal; color: var(--faint); }
h1 { font-size: clamp(52px, 9.4vw, 112px); line-height: .95; letter-spacing: -.055em; font-weight: 800; margin: 26px 0 24px; }
.lit { background: linear-gradient(100deg, #fde68a 0%, #fbbf24 22%, #fb923c 42%, #f472b6 60%, #a78bfa 78%, #38bdf8 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 9s ease-in-out infinite alternate; padding-bottom: .06em; }
@keyframes shimmer { to { background-position: 100% 0; } }
.lede { font-size: clamp(18px, 2vw, 22px); line-height: 1.5; color: var(--muted); max-width: 680px; margin: 0 auto 30px; letter-spacing: -.01em; }
.join { display: flex; flex-wrap: wrap; gap: 10px; max-width: 520px; margin: 0 auto; justify-content: center; }
.join input[type=email] { flex: 1 1 240px; min-width: 0; height: 50px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line2); background: var(--elev); color: var(--text); font: 16px var(--font); outline: none; transition: border-color .2s, box-shadow .2s; }
.join input[type=email]::placeholder { color: var(--faint); }
.join input[type=email]:focus { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(56, 189, 248, .2); }
.join .btn { height: 50px; }
.form-note { flex-basis: 100%; margin: 6px 0 0; font-size: 13px; color: var(--faint); text-align: center; }
.form-note.ok { color: var(--good-t); } .form-note.bad { color: var(--bad); } .form-note a { color: var(--muted); }
.trust { list-style: none; padding: 0; margin: 26px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: 14px; color: var(--muted); }
.trust li::before { content: '✓'; color: var(--good); font-weight: 700; margin-right: 7px; }

/* The home hero: the product first. A headline, one line on what it is, early access, then the Home screen itself in a
   window (a phone below 640px). The window rises into place once; "reduce motion" shows it straight away. */
.hero-product { padding-top: clamp(22px, 2.6vw, 36px); padding-bottom: 0; overflow-x: clip; }
.hero-product .hero-glow { height: 1200px; }
.hero-product .hero-copy { max-width: 980px; }
.hero-title { font-size: clamp(44px, 6.4vw, 90px); line-height: 1.02; letter-spacing: -.052em; margin: 16px 0 12px; }
.hero-title .lit { display: inline-block; white-space: nowrap; }
.hero-sub { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.45; color: var(--muted); max-width: 640px; margin: 0 auto 22px; letter-spacing: -.012em; text-wrap: balance; }
.hero-product .join { max-width: 610px; }
.hero-product .form-note { font-size: 12.5px; margin-top: 2px; }
.hero-shot { --hs-bg: #0a0e17; --hs-bar: #0e131e; --hs-pill: rgba(255, 255, 255, .06); --hs-ink: #8d99ad; --hs-edge: rgba(255, 255, 255, .26); --hs-edge2: rgba(139, 123, 255, .42); --hs-drop: rgba(0, 0, 0, .7);
  position: relative; width: min(1120px, 100%); margin: clamp(26px, 2.6vw, 34px) auto 0; }
:root[data-theme="light"] .hero-shot { --hs-bg: #ffffff; --hs-bar: #f3f5f9; --hs-pill: rgba(15, 23, 42, .05); --hs-ink: #64748b; --hs-edge: rgba(15, 23, 42, .14); --hs-edge2: rgba(109, 92, 246, .32); --hs-drop: rgba(15, 23, 42, .28); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .hero-shot { --hs-bg: #ffffff; --hs-bar: #f3f5f9; --hs-pill: rgba(15, 23, 42, .05); --hs-ink: #64748b; --hs-edge: rgba(15, 23, 42, .14); --hs-edge2: rgba(109, 92, 246, .32); --hs-drop: rgba(15, 23, 42, .28); } }
.hero-shot::before { content: ''; position: absolute; z-index: -1; inset: 8% 2% -6%; pointer-events: none; filter: blur(48px);
  background: radial-gradient(46% 52% at 50% 46%, var(--glow2), transparent 72%), radial-gradient(34% 44% at 18% 34%, var(--glow1), transparent 72%), radial-gradient(34% 44% at 84% 62%, var(--glow3), transparent 72%); }
.hs-frame { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid transparent; transform-origin: 50% 0;
  background: linear-gradient(var(--hs-bg), var(--hs-bg)) padding-box, linear-gradient(165deg, var(--hs-edge), rgba(148, 170, 210, .08) 38%, var(--hs-edge2)) border-box;
  box-shadow: 0 60px 120px -48px var(--hs-drop), 0 24px 48px -28px var(--hs-drop);
  animation: heroRise 1.25s cubic-bezier(.16, .84, .24, 1) .12s both; }
.hs-bar { position: relative; display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 15px; background: var(--hs-bar); border-bottom: 1px solid var(--line); }
.hs-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.hs-bar i:nth-child(2) { background: #febc2e; } .hs-bar i:nth-child(3) { background: #28c840; }
.hs-url { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 6px; padding: 3px 16px; border-radius: 8px; background: var(--hs-pill); color: var(--hs-ink); font-size: 12.5px; font-weight: 550; letter-spacing: -.005em; white-space: nowrap; }
.hs-url svg { width: 11px; height: 11px; }
.hs-frame picture, .hs-frame img { display: block; width: 100%; height: auto; }
.hero-shot figcaption { margin: 14px 0 0; font-size: 12.5px; color: var(--faint); }
.hero-product .trust { margin-top: 22px; }
@keyframes heroRise { from { opacity: 0; transform: perspective(1800px) translateY(64px) rotateX(16deg) scale(.95); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
  .hero-product .newpill { display: none; }
  .hero-title { margin-top: 6px; }
  .hero-shot { width: min(292px, 80vw); margin-top: 34px; }
  .hero-shot::before { inset: 4% -30% 0; }
  .hs-frame { border-radius: 46px; padding: 8px; border: 0; background: #07090d; box-shadow: 0 0 0 1.5px #343a46, 0 0 0 3px #0b0d12, 0 40px 80px -30px var(--hs-drop); }
  .hs-frame img { border-radius: 38px; }
  .hs-bar { display: none; }
  .hero-shot figcaption { margin-top: 16px; }
}
.film-wrap { position: relative; padding: 24px 0 8px; }
.film-wrap .film-k { margin: clamp(64px, 7vw, 100px) 0 18px; text-align: center; }
.film-wrap::before { content: ''; position: absolute; left: 50%; top: 40%; width: min(1100px, 90vw); height: 60%; transform: translate(-50%, -50%); background: radial-gradient(closest-side, var(--glow2), transparent); filter: blur(40px); z-index: -1; pointer-events: none; }
.film-wrap #hero-video .hv-cap { color: var(--faint); }

/* ---------- brand strip ---------- */
.strip { max-width: var(--max); margin: 40px auto 0; padding: 26px var(--gut); text-align: center; }
.strip p { margin: 0; font-size: 13px; color: var(--faint); letter-spacing: .02em; }
.strip ul { list-style: none; padding: 0; margin: 14px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; }
.strip li { font-size: clamp(16px, 1.6vw, 19px); font-weight: 650; letter-spacing: -.02em; color: var(--muted); }
.strip li small { font-size: 11px; font-weight: 700; color: var(--violet-t); vertical-align: 2px; margin-left: 3px; }
.strip .strip-more a { color: var(--muted); }

/* ---------- sections ---------- */
.sec { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 10vw, 128px) var(--gut) 0; }
.sec.tight { padding-top: 28px; }
.head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.head.center, .center { text-align: center; margin-left: auto; margin-right: auto; }
.head p:last-child { color: var(--muted); font-size: clamp(17px, 1.6vw, 19px); margin: 0; }
.eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--sky-t); }
h2 { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.04; letter-spacing: -.045em; margin: 0 0 16px; font-weight: 750; text-wrap: balance; }
h3 { font-size: 21px; line-height: 1.2; letter-spacing: -.025em; margin: 0 0 10px; font-weight: 700; }
.fine { font-size: 12.5px; color: var(--faint); margin-top: 22px; line-height: 1.55; }
.small { font-size: 14px; color: var(--muted); }

.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; vertical-align: 2px; background: rgba(52, 211, 153, .14); color: var(--good-t); }
.pill.pro { background: rgba(139, 123, 255, .16); color: var(--violet-t); }
.pill.soon { background: rgba(251, 191, 36, .16); color: var(--amber-t); }

/* device frame for screenshots */
.device { margin: 0; position: relative; border-radius: var(--r); overflow: hidden; background: var(--elev); border: 1px solid var(--line2); box-shadow: var(--shadow), 0 0 0 6px var(--card); }
.device-bar { display: flex; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--card2); }
.device-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line2); }
.device figcaption { position: absolute; right: 12px; bottom: 12px; font-size: 12px; color: #c9d3e3; background: rgba(5, 8, 16, .66); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 4px 10px; border-radius: 999px; }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tile { position: relative; overflow: hidden; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); padding: clamp(22px, 2.6vw, 34px); display: flex; flex-direction: column; }
.tile p { color: var(--muted); margin: 0 0 12px; font-size: 16px; }
.tile p:last-child { margin-bottom: 0; }
.tile .kicker { font-size: 13px; font-weight: 650; color: var(--faint); letter-spacing: .02em; margin-bottom: 10px; }
.tile h3 { font-size: clamp(22px, 2.2vw, 28px); }
.tile picture img { border-radius: 14px; border: 1px solid var(--line); }
.t-3d { grid-column: span 4; }
.t-3d picture { margin-top: 18px; }
.t-ai { grid-column: span 2; background: radial-gradient(400px 260px at 100% 0, var(--glow2), transparent 70%), var(--card); }
.chat { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 18px; }
.chat .q { align-self: flex-end; max-width: 92%; padding: 9px 14px; border-radius: 18px 18px 4px 18px; font-size: 14.5px; color: #fff; background: linear-gradient(135deg, #38bdf8, #8b7bff); }
.chat .q:nth-child(2) { opacity: .85; }
.safe { margin-top: auto !important; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14.5px !important; }
.safe b { color: var(--text); }
.t-energy { grid-column: span 4; }
.t-energy picture { margin-top: auto; padding-top: 10px; }
.t-cam { grid-column: span 2; }
.chips { list-style: none; padding: 0; margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 14px; }
.chips li { padding: 6px 12px; border-radius: 999px; background: var(--card2); border: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.chips b { color: var(--text); margin-left: 6px; }
.t-cam .chips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.t-cam .chips li { display: flex; flex-direction: column-reverse; padding: 14px 16px; border-radius: 16px; }
.t-cam .chips b { margin-left: 0; font-size: 30px; line-height: 1.1; letter-spacing: -.02em; }
.t-ai .chat { margin: auto 0; padding: 18px 0; }
.t-ai .chat .q { font-size: 15.5px; padding: 11px 16px; }
.t-day { grid-column: span 3; background: radial-gradient(420px 260px at 0 100%, var(--glow3), transparent 70%), var(--card); }
.t-phone { grid-column: span 3; display: grid; grid-template-columns: 1fr 190px; gap: 22px; align-items: center; }
.t-phone .phone img { border-radius: 30px; border: 6px solid #10141e; box-shadow: var(--shadow); }
.tile b { color: var(--text); }

.rem { list-style: none; padding: 0; margin: auto 0 0; padding-top: 18px; display: grid; gap: 10px; }
.rem li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--card2); border: 1px solid var(--line); }
.rem .ri { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; font-size: 17px; background: rgba(251, 191, 36, .16); }
.rem b { display: block; font-size: 15px; } .rem small { display: block; color: var(--muted); font-size: 13px; }
.rem .done { margin-left: auto; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 650; color: var(--btn-text); background: linear-gradient(135deg, #7dd3fc, #38bdf8 45%, #8b7bff); }

/* ---------- setup (0.7.0) ---------- */
.setup-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 18px; align-items: start; }
.shot-card { margin: 0; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); padding: 14px; }
.shot-card img { border-radius: 12px; border: 1px solid var(--line); }
.shot-card figcaption { padding: 14px 6px 4px; color: var(--muted); font-size: 15.5px; }
.shot-card figcaption b { color: var(--text); display: block; font-size: 17px; margin-bottom: 4px; }
.s-resume { grid-column: 1; grid-row: 1 / span 2; } .s-fix { grid-column: 2; grid-row: 1; }
.setup-list { list-style: none; margin: 0; padding: 14px 4px 6px; display: grid; gap: 18px; grid-column: 2; grid-row: 2; align-self: start; }
.setup-list li { position: relative; padding-left: 30px; color: var(--muted); font-size: 15.5px; }
.setup-list li::before { content: ''; position: absolute; left: 2px; top: 5px; width: 15px; height: 15px; border-radius: 50%; background: radial-gradient(circle, var(--amber) 32%, transparent 38%), rgba(251, 191, 36, .16); box-shadow: 0 0 14px rgba(251, 191, 36, .45); }
.setup-list b { color: var(--text); }

/* ---------- health ---------- */
.band { position: relative; }
.band::before { content: ''; position: absolute; inset: 40px calc(50% - 50vw) -60px; z-index: -1; background: linear-gradient(180deg, transparent, var(--bg2) 18%, var(--bg2) 82%, transparent); pointer-events: none; }
.split { display: grid; grid-template-columns: .9fr 1.25fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.sub { color: var(--muted); font-size: 18px; margin: 0 0 26px; }
.facts { margin: 0; display: grid; gap: 18px; }
.facts div { display: grid; grid-template-columns: 92px 1fr; gap: 16px; align-items: baseline; padding-top: 16px; border-top: 1px solid var(--line); }
.facts dt { font-size: 26px; font-weight: 750; letter-spacing: -.04em; background: linear-gradient(120deg, var(--good), var(--sky)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.facts dd { margin: 0; color: var(--muted); font-size: 15.5px; }
.split .device figcaption { display: none; }
.heal { margin-top: 40px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.heal div { padding: 20px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.heal .ico { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-size: 17px; color: var(--good-t); background: rgba(52, 211, 153, .12); margin-bottom: 12px; }
.heal b { display: block; font-size: 15.5px; margin-bottom: 4px; }
.heal p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

/* ---------- private ---------- */
.sec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border-radius: var(--r); overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.lock { background: var(--bg); padding: clamp(22px, 2.6vw, 32px); }
.lock .k { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--good-t); margin-bottom: 10px; }
.lock b { display: block; font-size: clamp(20px, 2vw, 24px); letter-spacing: -.03em; margin-bottom: 8px; }
.lock p { margin: 0; color: var(--muted); font-size: 15px; }
.sec-foot { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: space-between; margin-top: 22px; padding: 22px 26px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.sec-foot p { margin: 0; color: var(--muted); max-width: 720px; }
.sec-foot b { color: var(--text); }

/* ---------- works with ---------- */
.legend { display: flex; gap: 22px; margin: -14px 0 22px; font-size: 14px; color: var(--muted); }
.legend span::before, .vg li::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.legend .built::before, .vg li.built::before { background: var(--good); }
.legend .viaha::before, .vg li.viaha::before { background: transparent; box-shadow: inset 0 0 0 2px var(--sky); }
.vendors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.vg { padding: 22px 24px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.vg h3 { font-size: 16px; margin-bottom: 12px; }
.vg ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; font-size: 15px; color: var(--muted); }

/* ---------- run ---------- */
.runs { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; }
.run-card { border-radius: var(--r); padding: clamp(26px, 3.4vw, 44px); background: var(--card); border: 1px solid var(--line); }
.run-card h2 { font-size: clamp(28px, 3.2vw, 40px); }
.run-card > p { color: var(--muted); }
.box-card { background: radial-gradient(500px 300px at 100% 0, var(--glow1), transparent 70%), var(--card); }
.row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hw { list-style: none; padding: 0; margin: 18px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hw li { padding: 12px 14px; border-radius: 14px; background: var(--card2); border: 1px solid var(--line); }
.hw b { display: block; font-size: 15px; } .hw span { font-size: 13px; color: var(--muted); }

/* ---------- plans ---------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 980px; margin: 0 auto; }
.plan { border-radius: var(--r); padding: clamp(26px, 3vw, 38px); background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; }
.plan.hot { border-color: transparent; background: linear-gradient(var(--elev), var(--elev)) padding-box, linear-gradient(135deg, #fbbf24, #38bdf8 55%, #8b7bff) border-box; border: 1.5px solid transparent; box-shadow: 0 30px 80px -40px rgba(139, 123, 255, .6); }
.plan h3 { font-size: 18px; color: var(--muted); font-weight: 650; }
.amount { font-size: 52px; font-weight: 750; letter-spacing: -.05em; line-height: 1.05; }
.amount small { font-size: 17px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.tagline { color: var(--muted); margin: 6px 0 18px; }
.ticks { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; font-size: 15.5px; color: var(--muted); }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--good); font-weight: 700; }
.ticks b { color: var(--text); }
.plan .btn { margin-top: auto; align-self: flex-start; }
.compare { max-width: 980px; margin: 22px auto 0; border-radius: 18px; border: 1px solid var(--line); background: var(--card); }
.compare summary { cursor: pointer; padding: 18px 22px; font-weight: 650; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.compare summary::-webkit-details-marker { display: none; }
.compare summary::after { content: '+'; font-size: 22px; color: var(--sky-t); transition: transform .2s; }
.compare[open] summary::after { transform: rotate(45deg); }
.tblwrap { overflow-x: auto; padding: 0 10px 12px; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 520px; }
.table th, .table td { text-align: left; padding: 11px 12px; border-top: 1px solid var(--line); color: var(--muted); }
.table th { color: var(--text); font-weight: 650; border-top: 0; }
.table td:nth-child(n+2), .table th:nth-child(n+2) { text-align: center; width: 92px; }
.table .yes { color: var(--good); font-weight: 700; } .table .no { color: var(--faint); }

/* ---------- steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps li { padding: 28px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.steps p { margin: 0; color: var(--muted); font-size: 15.5px; }
.n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; font-weight: 800; color: #1a1203; background: linear-gradient(135deg, #fde68a, #fbbf24 55%, #fb923c); margin-bottom: 16px; }

/* ---------- faq ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 2px; font-weight: 650; font-size: 18px; letter-spacing: -.015em; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--sky-t); font-size: 24px; line-height: 1; transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: -4px 0 20px; }

/* ---------- cta + footer ---------- */
.cta { position: relative; max-width: calc(var(--max) - 2 * var(--gut)); margin: clamp(80px, 10vw, 128px) auto 0; padding: clamp(48px, 7vw, 84px) var(--gut); text-align: center; border-radius: 32px; overflow: hidden; isolation: isolate; border: 1px solid var(--line); background: var(--card); }
.cta::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(500px 260px at 50% 0, var(--glow3), transparent 70%), radial-gradient(600px 300px at 20% 100%, var(--glow1), transparent 70%), radial-gradient(600px 300px at 80% 100%, var(--glow2), transparent 70%); }
.cta p { color: var(--muted); font-size: 18px; margin: 0 auto 26px; max-width: 560px; }
.foot { margin-top: 80px; border-top: 1px solid var(--line); }
.foot-in { max-width: var(--max); margin: 0 auto; padding: 40px var(--gut) 56px; display: grid; grid-template-columns: 2fr 1fr 1.4fr 1fr; gap: 24px; font-size: 14px; color: var(--muted); }
.foot-in div { display: flex; flex-direction: column; gap: 8px; }
.foot-in b { color: var(--text); font-weight: 650; }
.foot-in a { color: var(--muted); text-decoration: none; } .foot-in a:hover { color: var(--text); }
.foot-in p { margin: 4px 0 0; }
.copy { grid-column: 1 / -1; color: var(--faint); font-size: 13px; }

/* cookie notice (consent.js) */
.cookie-bar { position: fixed; z-index: 60; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(920px, calc(100% - 32px)); display: flex; align-items: center; gap: 18px; padding: 14px 16px 14px 20px; border-radius: 18px; background: var(--elev); border: 1px solid var(--line2); box-shadow: var(--shadow); color: var(--muted); font: 14px/1.5 var(--font); }
.cookie-bar p { margin: 0; flex: 1; } .cookie-bar b { color: var(--text); } .cookie-bar .btn { flex: none; min-height: 38px; }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
/* ---------- new in 0.8.0: tabs (home.js); without JavaScript every panel shows, one after another ---------- */
.newtabs { max-width: 1120px; margin: 0 auto; }
.nt-bar { display: flex; gap: 6px; justify-content: center; margin: 0 auto 26px; padding: 5px; width: fit-content; max-width: 100%; border-radius: 999px; background: var(--card); border: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.nt-bar::-webkit-scrollbar { display: none; }
.no-js .nt-bar { display: none; }
/* JavaScript on (home-theme.js sets html.js before the first paint): tabs from the start, only the first panel laid out,
   so the pictures in the other panels load when someone opens them, not with the page. */
.js .nt-bar { display: flex; }
.js .newtabs:not(.js-tabs) .np ~ .np { display: none; }
.nt-bar button { flex: none; min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: 600 15px var(--font); letter-spacing: -.01em; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s; }
.nt-bar button:hover { color: var(--text); }
.nt-bar button[aria-selected="true"] { color: var(--btn-text); background: linear-gradient(135deg, var(--sky-t), var(--violet)); }
:root[data-theme="light"] .nt-bar button[aria-selected="true"] { color: #fff; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .nt-bar button[aria-selected="true"] { color: #fff; } }
.np { display: grid; grid-template-columns: 1fr 1.05fr; grid-template-rows: auto auto auto auto 1fr; gap: 8px clamp(24px, 4vw, 56px); align-items: start; }
.np + .np { margin-top: 56px; }
.js-tabs .np + .np { margin-top: 0; }
.np[hidden] { display: none; }
.np:focus-visible { outline-offset: 8px; border-radius: 12px; }
.np.on { animation: npIn .45s cubic-bezier(.2, .7, .2, 1); }
@keyframes npIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.np-shot { grid-column: 1 / -1; order: -1; margin: 0 0 22px; border-radius: var(--r); overflow: hidden; background: var(--elev); border: 1px solid var(--line2); box-shadow: var(--shadow), 0 0 0 6px var(--card); }
.np-shot img { width: 100%; }
.np-apptests .np-shot, .np-shot.np-apptests { max-width: 820px; justify-self: center; width: 100%; }
.np-copy { display: contents; }
.np-copy .kicker { grid-column: 1; margin: 0; font-size: 13px; font-weight: 650; color: var(--faint); letter-spacing: .02em; }
.np-copy h3 { grid-column: 1; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.03em; margin: 0; }
.np-copy > p:not(.kicker) { grid-column: 1; color: var(--muted); margin: 4px 0 0; font-size: 16.5px; }
.np-list { grid-column: 2; grid-row: 2 / span 4; list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.np-list li { position: relative; padding-left: 26px; color: var(--muted); font-size: 15.5px; }
.np-list li::before { content: ''; position: absolute; left: 2px; top: 6px; width: 13px; height: 13px; border-radius: 50%; background: radial-gradient(circle, var(--sky) 32%, transparent 38%), rgba(56, 189, 248, .16); }
.np-list b { color: var(--text); }
@media (max-width: 780px) {
  .nt-bar { justify-content: flex-start; width: 100%; border-radius: 16px; }
  .nt-bar button { padding: 0 14px; font-size: 14px; }
  .np { grid-template-columns: 1fr; grid-template-rows: none; }
  .np-list { grid-column: 1; grid-row: auto; margin-top: 10px; }
  .np-shot { margin-bottom: 16px; box-shadow: var(--shadow); }
}
@media (prefers-reduced-motion: reduce) { .np.on { animation: none; } }

@media (max-width: 1080px) {
  .nav-links { display: none; } .nav-end { margin-left: auto; }
  .bento { grid-template-columns: 1fr 1fr; }
  .t-3d, .t-energy, .t-cam, .t-day, .t-phone { grid-column: span 2; } .t-ai { grid-column: span 2; }
  .heal { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .vendors { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 780px) {
  .setup-grid, .runs, .plans, .steps { grid-template-columns: 1fr; }
  .s-resume, .s-fix, .setup-list { grid-column: auto; grid-row: auto; }
  .sec-grid { grid-template-columns: 1fr; }
  .heal { grid-template-columns: 1fr 1fr; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-in > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .insider { display: none; }
  .t-phone { grid-template-columns: 1fr; } .t-phone .phone { max-width: 220px; margin: 0 auto; }
  .vendors { grid-template-columns: 1fr; } .vg ul { grid-template-columns: 1fr 1fr; gap: 7px 12px; font-size: 14px; }
  .heal { grid-template-columns: 1fr 1fr; gap: 10px; } .heal div { padding: 16px; } .heal div:last-child { grid-column: 1 / -1; }
  .hw { grid-template-columns: 1fr; }
  .device { box-shadow: var(--shadow); } .device-bar { padding: 9px 12px; } .device-bar i { width: 8px; height: 8px; }
  .device figcaption { position: static; display: block; background: none; color: var(--faint); padding: 8px 12px; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .cookie-bar { flex-direction: column; align-items: stretch; gap: 12px; bottom: 12px; }
  .newpill { font-size: 13px; text-align: left; }
  .cta { border-radius: 24px; margin-left: 16px; margin-right: 16px; }
}
@media print { .nav, .cookie-bar, #hero-video { display: none; } .reveal { opacity: 1; transform: none; } }

/* ---- Built for trust (#trust) ---- */
.tr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tr-card { position: relative; padding: clamp(22px, 2.4vw, 30px); border-radius: 20px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.tr-card::after { content: ''; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(56, 189, 248, .55), transparent); opacity: .7; }
.tr-ic { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--sky-t); background: rgba(56, 189, 248, .1); border: 1px solid rgba(56, 189, 248, .22); margin-bottom: 16px; }
.tr-ic svg { width: 22px; height: 22px; }
.tr-card .tr-k { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--good-t); margin-bottom: 8px; }
.tr-card h3 { margin: 0 0 8px; font-size: clamp(19px, 1.8vw, 22px); letter-spacing: -.025em; line-height: 1.25; }
.tr-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; word-break: keep-all; overflow-wrap: anywhere; }
.tr-more { margin: 22px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; }
.tr-more li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; font-size: 13.5px; color: var(--muted); background: var(--card); border: 1px solid var(--line); }
.tr-more li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--good); flex: none; }
.tr-foot { margin-top: 18px; text-align: center; }
@media (max-width: 1080px) { .tr-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .tr-grid { grid-template-columns: 1fr; gap: 10px; } .tr-card { padding: 20px; } .tr-more { justify-content: flex-start; } .tr-more li { font-size: 13px; } }
.table tr.grp th { text-align: left; width: auto; padding: 20px 12px 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sky-t); border-top: 0; }

/* 0.9.0: "Your home, from anywhere" - two phones on the page itself, no frame */
.device.bare { background: none; border: 0; box-shadow: none; border-radius: 0; overflow: visible; }
.device.bare img { width: 100%; height: auto; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .35)); }
#anywhere .facts div { grid-template-columns: 120px 1fr; }
#anywhere .facts dt { font-size: 22px; }
@media (max-width: 760px) { #anywhere .facts div { grid-template-columns: 1fr; } }

/* The tour film (#hero-video, under the hero on the home page). */
#hero-video { --hv-r: 22px; width: min(1120px, calc(100% - 32px)); margin: 8px auto 0; }
#hero-video .hv-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--hv-r); overflow: hidden; background: #070a12 url(/assets/tour/poster.webp) center / cover no-repeat; box-shadow: 0 0 0 1px rgba(148, 178, 230, .16), 0 40px 120px -30px rgba(0, 0, 0, .75), 0 0 140px -40px rgba(139, 123, 255, .55); }
#hero-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .6s ease; }
#hero-video video.on { opacity: 1; }
#hero-video .hv-play { position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border: 0; padding: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: #06101e; background: rgba(255, 255, 255, .94); box-shadow: 0 14px 40px rgba(0, 0, 0, .45); }
#hero-video .hv-play svg { width: 28px; height: 28px; margin-left: 4px; }
#hero-video .hv-play[hidden] { display: none; }
#hero-video .hv-play:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(56, 189, 248, .6); }
#hero-video .hv-cap { margin: 10px 4px 0; font: 13px/1.5 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: #8b97ab; text-align: center; }
@media (max-width: 560px) { #hero-video { --hv-r: 14px; width: calc(100% - 32px); } #hero-video .hv-play { width: 56px; height: 56px; } }
@media (prefers-reduced-motion: reduce) { #hero-video video { transition: none; } }

/* ---------- one page per topic (features, security, works-with, what's new, plans, faq) ---------- */
.nav-links a[aria-current="page"] { color: var(--text); font-weight: 600; }
.menu-btn { display: none; width: 36px; height: 36px; place-items: center; padding: 0; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.menu-btn:hover, .menu-btn[aria-expanded="true"] { color: var(--text); border-color: var(--line2); }
.menu-btn svg { width: 18px; height: 18px; }
@media (max-width: 1080px) {
  .menu-btn { display: grid; }
  .no-js .menu-btn { display: none; }
  .nav.open { background: var(--bg); border-bottom-color: var(--line); }
  .nav.open .nav-links { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: 4px var(--gut) 14px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open .nav-links a { padding: 13px 2px; font-size: 17px; color: var(--text); border-bottom: 1px solid var(--line); }
  .nav.open .nav-links a:last-child { border-bottom: 0; }
  .nav.open .nav-links a[aria-current="page"] { color: var(--sky-t); }
}
@media (max-width: 420px) { .nav-in { gap: 12px; } .nav-end { gap: 8px; } .nav-end .btn.sm { padding: 0 13px; } }
.page-hero { position: relative; text-align: center; max-width: 920px; margin: 0 auto; padding: clamp(48px, 7vw, 92px) var(--gut) 0; isolation: isolate; }
.page-hero .hero-glow { height: 620px; }
.page-hero h1 { font-size: clamp(38px, 6vw, 72px); line-height: 1.02; letter-spacing: -.045em; margin: 0 0 20px; }
.page-hero .lede { margin-bottom: 0; }
.page-hero + .sec { padding-top: clamp(44px, 6vw, 80px); }
.more-link { margin: 22px 0 0; font-size: 15px; } .more-link a { font-weight: 600; text-decoration: none; }
a.tr-card.go { display: block; color: inherit; text-decoration: none; transition: border-color .2s, transform .2s; }
a.tr-card.go:hover { border-color: var(--line2); transform: translateY(-2px); }
a.tr-card.go .go-more { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--sky-t); }
@media (prefers-reduced-motion: reduce) { a.tr-card.go:hover { transform: none; } }
/* social links (footer) */
.social { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0 -7px; }
.foot-in .social a { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; color: var(--muted); transition: color .2s, background-color .2s; }
.foot-in .social a:hover, .foot-in .social a:focus-visible { color: var(--text); background: var(--card2); }
.social svg { display: block; width: 18px; height: 18px; }
.tr-also { margin: 30px 0 0; text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--good-t); }
.tr-also + .tr-more { margin-top: 12px; }
@media (max-width: 620px) { .tr-also { text-align: left; } }
/* phones: the self-repair cards one per row, icon beside the words (two columns squeezed them to 2-3 words a line) */
@media (max-width: 440px) {
  .heal { grid-template-columns: 1fr; }
  .heal div { display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; align-items: start; }
  .heal .ico { grid-row: span 2; margin-bottom: 0; }
}
