/* Orbi website. Colours come from the app (Onboarding.swift `Setup`, RobotView.swift `OrbiLook`). */
:root {
  --base: #080d1a;          /* Setup.base  (0.03, 0.05, 0.10) */
  --navy: #0d1429;          /* orbiNavy    (0.05, 0.08, 0.16) */
  --card: rgba(13, 18, 33, .72); /* DashCard (0.05, 0.07, 0.13) @ .72 */
  --text: rgba(255, 255, 255, .94);
  --muted: rgba(255, 255, 255, .64);
  --faint: rgba(255, 255, 255, .10);
  --accent: #528fff;        /* Setup.accent (0.32, 0.56, 1.0) */
  --glow: #5cc7ff;          /* OrbiLook glow "Blue" (0.36, 0.78, 1.0) */
  --deep: #1a73ff;          /* its deep tone (0.10, 0.45, 1.0) */
  --gold: #f2c759;          /* study glasses rim (0.95, 0.78, 0.35) */
  --ok: #73d194;            /* Setup.ok */
  --warn: #fac25c;          /* Setup.warn */
  --red: #ff7373;
  --serif: "Newsreader", "New York", Georgia, serif;
  --sans: "IBM Plex Sans", -apple-system, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--base); color: var(--text);
  font: 400 17px/1.6 var(--sans); overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
code, kbd { font-family: var(--mono); font-size: .86em; }
kbd {
  display: inline-block; min-width: 1.6em; padding: 0 .35em; margin: 0 .08em; text-align: center;
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 5px; line-height: 1.5; color: var(--text);
}
q { quotes: "\201C" "\201D"; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 50; background: var(--accent); color: var(--base); padding: 8px 12px; border-radius: 6px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow { font: 600 11.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.eyebrow-gold { color: var(--gold); }
.keep-case { text-transform: none; }
h1 { font: 400 clamp(52px, 8.4vw, 116px)/.98 var(--serif); letter-spacing: -.02em; }
h2 { font: 400 clamp(34px, 4.6vw, 56px)/1.05 var(--serif); letter-spacing: -.012em; max-width: 16ch; }
h3 { font: 500 17px/1.35 var(--sans); }
.lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--muted); max-width: 34em; margin-top: 28px; }
.fine { margin-top: 22px; font-size: 13.5px; color: var(--muted); }
.tag { display: inline-block; font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--glow); border: 1px solid rgba(92, 199, 255, .45); border-radius: 4px; padding: 4px 6px; }
.tag-gold { color: var(--gold); border-color: rgba(242, 199, 89, .5); }
.ph { font-family: var(--mono); font-size: .9em; color: var(--warn); background: rgba(250, 194, 92, .1); padding: 0 .3em; border-radius: 3px; }

/* buttons: the app's PrimaryButton / SecondaryButton (8pt radius). Dark text on the accent for contrast. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15px/1 var(--sans); text-decoration: none; border-radius: 8px; padding: 14px 22px; border: 0; cursor: pointer;
  transition: background-color .15s, transform .15s;
}
.btn-primary { background: var(--accent); color: #050912; }
.btn-primary:hover { background: #6fa2ff; }
.btn-primary:active { transform: translateY(1px); }
.btn-small { padding: 10px 14px; font-size: 13.5px; }
.text-link { color: var(--muted); font-size: 15px; text-decoration: underline; text-decoration-color: rgba(255,255,255,.3); text-underline-offset: 4px; }
.text-link:hover { color: var(--text); }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(8, 13, 26, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--faint); }
.nav-inner { display: flex; align-items: center; gap: 32px; height: 60px; }
.wordmark { display: inline-flex; text-decoration: none; }
.wordmark img { display: block; height: 40px; width: auto; }
.nav nav { margin-left: auto; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { font-size: 14px; color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--text); }

/* hero */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 9vw, 120px) 0 clamp(72px, 14vw, 210px); isolation: isolate; }
.hero-art { position: absolute; inset: auto 0 0 0; height: min(78%, 720px); z-index: -1; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; opacity: .7;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 45%); mask-image: linear-gradient(to bottom, transparent 0%, #000 45%); }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(8,13,26,.85), rgba(8,13,26,.2) 60%, transparent), linear-gradient(to top, var(--base), transparent 35%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: 24px; }
.cta-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 36px; }
.hero-orbi { margin: 0; position: relative; justify-self: center; width: min(100%, 400px); padding-top: 110px; }
.orbi-hero { width: 100%; height: auto; overflow: visible; }
/* Orbo X in three stacked layers (back rings, sphere, front rings): the moving ring lights only repaint their own thin layer. */
.orbox-stack { position: relative; width: 100%; aspect-ratio: 140 / 150; }
.ox-layer { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; will-change: transform; }

.bubble {
  background: rgba(13, 20, 41, .95); border: 1px solid rgba(92, 199, 255, .55); border-radius: 13px;
  box-shadow: 0 0 16px rgba(26, 115, 255, .35); padding: 12px 14px; color: #fff;
  font: 500 14.5px/1.45 var(--sans);
}
.hero-bubble { position: absolute; top: 0; left: 4%; right: 4%; max-width: 320px; }
.hero-bubble .tag { margin-bottom: 8px; }

/* character carousel: Orbo X first, swipe or scroll to Orbi */
.carousel { position: relative; }
.carousel-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; border-radius: 12px; }
.carousel-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 10px; }
.car-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); background: transparent; color: var(--text); font: 16px/1 var(--sans); cursor: pointer; }
.car-btn:hover { border-color: rgba(255,255,255,.45); }
.car-btn:disabled { opacity: .3; cursor: default; }
.car-dots { display: flex; gap: 6px; }
.car-dot { border: 0; background: none; padding: 6px 8px; cursor: pointer; font: 500 12.5px/1 var(--mono); letter-spacing: .04em; color: var(--muted); border-bottom: 1px solid transparent; }
.car-dot[aria-current="true"] { color: var(--text); border-bottom-color: var(--glow); }

/* sections */
.section { padding: clamp(80px, 10vw, 140px) 0; position: relative; }
.section + .section { border-top: 1px solid var(--faint); }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); }

/* hairline rows (Onboarding `point` rows) */
.rows { border-bottom: 1px solid var(--faint); margin-left: clamp(0px, 16vw, 200px); }
.row { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 2fr); gap: 32px; padding: 24px 0; border-top: 1px solid var(--faint); }
.row h3 { font: 400 24px/1.25 var(--serif); }
.row h3 a { text-decoration: none; background-image: linear-gradient(var(--accent), var(--accent)); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .2s; }
.row h3 a:hover, .row h3 a:focus-visible { background-size: 100% 1px; }
.row p { color: var(--muted); max-width: 38em; }

/* dashboard */
.split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px; align-items: end; margin-bottom: 48px; }
.split .section-head { margin-bottom: 0; }
.dash-notes p { color: var(--muted); }
.mini-list { margin-top: 24px; border-top: 1px solid var(--faint); }
.mini-list div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--faint); font-size: 15px; }
.mini-list dt { color: var(--muted); }

.mock-frame { margin: 0; }
.mock-label { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }

.dash {
  position: relative; display: grid; grid-template-columns: 180px minmax(0, 1fr); overflow: hidden;
  border-radius: 14px; border: 1px solid rgba(255,255,255,.12); background: var(--base);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .55); font-size: 13px; line-height: 1.45; isolation: isolate;
}
.dash-bg { position: absolute; inset: 0; z-index: -1; background: url(assets/earth-horizon.jpg) center/cover; }
.dash-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top right, rgba(8,13,26,.6), rgba(8,13,26,.2)); }
.dash-side { border-right: 1px solid var(--faint); padding: 22px 12px; display: flex; flex-direction: column; }
.orbi-mini { width: 64px; margin: 0 auto 14px; overflow: visible; }
.dash-side li { padding: 7px 12px; border-radius: 8px; color: var(--muted); font-size: 13.5px; }
.dash-side li.on { background: rgba(255,255,255,.07); color: var(--text); font-weight: 600; }
.dash-side-foot { margin-top: auto; padding: 18px 12px 0; display: grid; gap: 4px; font-size: 11px; color: var(--muted); }
.dash-side-foot span:first-child { font-size: 12.5px; }
.dash-main { padding: 26px; min-width: 0; }
.dash-hello { font: 400 32px/1.15 var(--serif); }
.dash-sub { font-size: 14px; color: var(--muted); margin-top: 6px; }
.dash-meta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.dash-cols { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 14px; margin-top: 18px; }
.dash-left, .dash-right { display: grid; gap: 14px; align-content: start; min-width: 0; }
.dash-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.card { background: var(--card); border: 1px solid rgba(255,255,255,.07); border-radius: 14px; padding: 16px; min-width: 0; }
.card-title { font-weight: 600; font-size: 14px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: baseline; }
.opt { font: 400 10.5px var(--mono); color: var(--muted); letter-spacing: .04em; }
.card-text { font-size: 13.5px; line-height: 1.55; }
.card-note { font-size: 12px; color: var(--muted); margin-top: 8px; }
.card-outlook { position: relative; overflow: hidden; isolation: isolate; }
.card-outlook::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to right, rgba(8,13,26,.75), rgba(8,13,26,.1)), url(assets/mountain-sunrise.jpg) center 60%/cover; opacity: .55; }
.stats { display: flex; gap: 22px; margin-top: 12px; flex-wrap: wrap; }
.stats b { display: block; font-size: 20px; font-weight: 500; }
.stats span { font-size: 11px; color: var(--muted); }
.sched li, .tasks li { display: flex; align-items: center; gap: 12px; padding: 3px 0; min-width: 0; }
.sched .t { font: 12px var(--mono); color: var(--muted); width: 66px; flex: none; }
.sched .n, .tasks .n { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sched .p { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40%; }
.prio li { display: flex; gap: 12px; align-items: flex-start; padding: 3px 0; }
.prio .num { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; color: #fff; background: rgba(82, 143, 255, var(--k)); }
.prio b { display: block; font-weight: 500; }
.prio small { display: block; font-size: 11px; color: var(--muted); }
.tasks .ring { flex: none; width: 14px; height: 14px; border: 1.2px solid var(--muted); border-radius: 50%; }
.pill { font-size: 10.5px; font-weight: 500; padding: 2px 7px; border-radius: 4px; flex: none; }
.pill.high { color: var(--red); background: rgba(255,115,115,.18); }
.pill.med { color: var(--warn); background: rgba(250,194,92,.18); }
.pill.low { color: var(--ok); background: rgba(115,209,148,.18); }
.tasks .d { font-size: 11.5px; color: var(--muted); width: 80px; flex: none; }
.sleep-big { font-size: 30px; font-weight: 300; line-height: 1.1; }
.bar { height: 8px; border-radius: 4px; background: var(--faint); margin-top: 10px; overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 4px; background: linear-gradient(to right, rgba(82,143,255,.5), var(--accent)); }
.bar-ends { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 4px; }
.port { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 8px; border-bottom: 1px solid var(--faint); margin-bottom: 6px; color: var(--muted); font-size: 12.5px; }
.port b { font-size: 20px; font-weight: 500; }
.up { color: var(--ok); } .down { color: var(--red); }
.quotes li { display: flex; align-items: center; gap: 10px; padding: 2px 0; }
.quotes .sym { flex: 1; font-weight: 600; font-size: 12.5px; }
.quotes .sym small { display: block; font-weight: 400; font-size: 10.5px; color: var(--muted); }
.quotes svg { width: 64px; height: 20px; flex: none; }
.quotes b { width: 58px; text-align: right; font-weight: 500; font-size: 12.5px; }
.news li { padding: 4px 0; }
.news b { display: block; font-weight: 500; font-size: 12.5px; }
.news small { font-size: 10.5px; color: var(--muted); }
.dash-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.dash-actions span { font-size: 12.5px; font-weight: 500; padding: 7px 14px; border: 1px solid rgba(255,255,255,.22); border-radius: 8px; }

/* study */
.section-study { background: radial-gradient(60% 50% at 80% 40%, rgba(242,199,89,.05), transparent 70%); }
.study-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.study-copy > p { color: var(--muted); margin-top: 18px; max-width: 34em; }
.study-copy h2 { margin-bottom: 8px; }
.privacy-note { margin-top: 40px; border-top: 1px solid var(--faint); padding-top: 22px; }
.privacy-note h3 { margin-bottom: 12px; }
.privacy-note li { position: relative; padding: 10px 0 10px 18px; color: var(--muted); font-size: 15.5px; border-bottom: 1px solid var(--faint); }
.privacy-note li::before { content: ""; position: absolute; left: 0; top: 21px; width: 7px; height: 1px; background: var(--gold); }


/* demo recordings */
.demo { margin: 0; }
.demo-frame { border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 30px 90px rgba(0,0,0,.5); background: #000; }
.demo-frame { position: relative; }
.demo-video { display: block; width: 100%; height: auto; cursor: pointer; }
.demo-video:focus-visible { outline: 2px solid var(--glow); outline-offset: -2px; }
/* No player controls: the recording plays on its own. A small mark shows only while it's paused. */
.demo-paused { position: absolute; right: 14px; bottom: 14px; padding: 6px 10px; border-radius: 6px; background: rgba(8,13,26,.78); color: var(--text); font: 500 12px/1 var(--mono); pointer-events: none; opacity: 0; transition: opacity .2s; }
.demo-frame.is-paused .demo-paused { opacity: 1; }
.walk-demo { order: 1; }
/* The recordings get the full width (their on-screen text needs it); the words sit above. */
.study-grid, .walk-grid { grid-template-columns: minmax(0, 1fr) !important; row-gap: 48px; }
.study-copy, .walk-copy { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: clamp(32px, 6vw, 88px); align-items: start; }
.study-copy > *, .walk-copy > * { grid-column: 1; }
.study-copy > .privacy-note { grid-column: 2; grid-row: 1 / span 5; margin-top: 0; }
.walk-copy > .walk-text { grid-column: 2; grid-row: 1 / span 2; }
.walk-text p { color: var(--muted); max-width: 32em; }
.walk-text p + p { margin-top: 18px; }
.walk-copy { order: 0 !important; padding-top: 0 !important; grid-auto-flow: dense; }
.walk-demo { order: 1; }
.tag { white-space: nowrap; }
.demo .mock-label { flex-wrap: wrap; row-gap: 8px; }

/* worksheet walkthrough */
.section-walk { border-top: 1px solid var(--faint); }
.walk-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.walk-copy { order: 2; padding-top: 40px; }
.walk-copy > p:not(.eyebrow) { color: var(--muted); margin-top: 18px; max-width: 32em; }
.walk-copy h2 { max-width: 13ch; }
.nowrap { white-space: nowrap; }

/* moods */
.moods { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); border-top: 1px solid var(--faint); border-bottom: 1px solid var(--faint); }
.moods li { padding: 22px 6px 18px; text-align: center; border-left: 1px solid var(--faint); }
.moods li:first-child { border-left: 0; }
.moods svg { width: 100%; max-width: 92px; margin: 0 auto 10px; overflow: visible; }
.moods span { font-size: 14px; color: var(--muted); }

/* claude code */
.cc-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); }
.cc-head > p:not(.eyebrow) { color: var(--muted); margin-top: 22px; max-width: 30em; }
.orbi-armor { width: 200px; margin-top: 40px; overflow: visible; }
.cc-table { width: 100%; border-collapse: collapse; }
.cc-table th, .cc-table td { text-align: left; padding: 16px 0; border-bottom: 1px solid var(--faint); vertical-align: top; }
.cc-table thead th { font: 600 11.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 0; }
.cc-table tbody th { font: 400 20px/1.3 var(--serif); width: 42%; padding-right: 24px; }
.cc-table td { color: var(--muted); }
.keys { margin-top: 36px; display: grid; gap: 12px; }
.keys li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: baseline; color: var(--muted); }
.keys .key { font-family: var(--mono); font-size: 14px; color: var(--text); }

/* details */
.details-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 0 clamp(32px, 6vw, 88px); }
.details-grid .section-head { grid-row: span 2; }
.details-grid .rows { margin-left: 0; }
.rows-tight .row { grid-template-columns: minmax(150px, 1fr) minmax(0, 2.4fr); }
.rows-tight .row h3 { font-size: 21px; }
.swatches { display: flex; gap: 8px; margin-top: 12px; }
.swatches i { width: 16px; height: 16px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.controls { margin-top: 48px; }
.controls-title { font: 600 11.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.controls dl { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; border-top: 1px solid var(--faint); }
.controls dl div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--faint); font-size: 15px; }
.controls dt { font-family: var(--mono); font-size: 13.5px; }
.controls dd { color: var(--muted); }

/* privacy */
.privacy-fold summary { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; }
.privacy-fold summary::-webkit-details-marker { display: none; }
.fold-label { font: 400 clamp(22px, 2.2vw, 27px)/1.2 var(--serif); }
.fold-arrow { flex: none; width: 22px; height: 22px; color: var(--muted); transition: transform .3s cubic-bezier(.2, .8, .2, 1), color .2s; }
.privacy-fold summary:hover .fold-arrow { color: var(--glow); }
/* Closed: just the label and arrow, with no rule above or below. The rules come back when it's open. */
.section.section-privacy { padding: clamp(28px, 4vw, 44px) 0; }
.section + .section.section-privacy, .section-privacy + .section { border-top: 0; }
.section + .section.section-privacy:has(.privacy-fold[open]), .section-privacy:has(.privacy-fold[open]) + .section { border-top: 1px solid var(--faint); }
.section.section-privacy:has(.privacy-fold[open]) { padding: clamp(56px, 7vw, 96px) 0; }
.privacy-fold[open] .fold-arrow { transform: rotate(180deg); }
.privacy-fold[open] .privacy-grid { margin-top: clamp(32px, 4vw, 52px); animation: fold-open .4s ease-out; }
@keyframes fold-open { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.privacy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 6vw, 88px); margin-left: clamp(0px, 16vw, 200px); }
.pcol { border-top: 1px solid var(--faint); padding: 24px 0 40px; }
.pcol h3 { font: 400 23px/1.25 var(--serif); margin-bottom: 12px; }
.pcol p, .plain li { color: var(--muted); }
.plain li { padding: 6px 0 6px 18px; position: relative; }
.plain li::before { content: ""; position: absolute; left: 0; top: 19px; width: 7px; height: 1px; background: var(--accent); }
.pcol code { color: var(--text); }

/* beta */
.section-beta { overflow: hidden; isolation: isolate; padding-bottom: clamp(120px, 14vw, 200px); }
.beta-art { position: absolute; inset: 0; z-index: -1; }
.beta-art img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 70%; opacity: .6; }
.beta-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, var(--base) 0%, rgba(8,13,26,.55) 45%, rgba(8,13,26,.8) 100%), linear-gradient(to right, rgba(8,13,26,.85), transparent 70%); }
.beta-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: end; }
.beta-facts { margin-top: 36px; border-top: 1px solid rgba(255,255,255,.16); max-width: 520px; }
.beta-facts div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.beta-facts dt { color: var(--muted); }
.signup { background: rgba(8, 13, 26, .72); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 26px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.signup label { display: block; font-weight: 500; margin-bottom: 10px; }
.signup-row { display: flex; gap: 10px; flex-wrap: wrap; }
.signup input {
  flex: 1 1 220px; min-width: 0; font: 400 16px/1 var(--sans); color: var(--text); background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.28); border-radius: 8px; padding: 13px 14px;
}
.signup input::placeholder { color: rgba(255,255,255,.5); }
.signup input:focus-visible { outline: 2px solid var(--glow); outline-offset: 1px; }
.signup input[aria-invalid="true"] { border-color: var(--red); }
.signup .btn { flex: 1 1 auto; }
.signup-msg { margin-top: 12px; font-size: 14px; color: var(--muted); min-height: 1.6em; }
.signup-msg.err { color: #ff9a9a; }
.signup-msg.todo { color: var(--warn); }

/* footer */
.footer { border-top: 1px solid var(--faint); padding: 40px 0 56px; }
.footer-grid { display: grid; grid-template-columns: auto 1fr; gap: 20px 40px; align-items: center; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: flex-end; font-size: 14px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
/* Orbi, "Powered by" and the DC Ventures logo on one level. */
.footer-brand { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.powered { font-size: 13px; line-height: 1; color: var(--muted); position: relative; top: -2px; }
.dc-logo { height: 20px; width: auto; position: relative; top: -2px; }
.ph-link { font-family: var(--mono); font-size: 13px; }
.copy { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); }

/* Orbi animation (RobotView.swift timings) */
/* Glow without SVG filters: each glowing part has a wider, faint copy under it (.halo). Filters re-run on every
   animated frame; these don't. */
.halo, .halo * { stroke: #5cc7ff; stroke-width: 4px; stroke-opacity: .24; stroke-linejoin: round; stroke-linecap: round; }
/* Filled shapes (eyes, antenna tip) only need a thin rim, or they lose their shape. */
.halo[fill="#5cc7ff"], .halo [fill="#5cc7ff"], .halo[fill="#ffb840"] { stroke-width: 2px; stroke-opacity: .35; }
.halo-gold, .halo-gold * { stroke: #ffb840; }
/* The bob moves the whole drawing as one GPU layer instead of repainting the SVG. 3.5 of 150 units = 2.33%. */
.orbi { will-change: transform; animation: bob 3.14s ease-in-out infinite; }  /* sin(t * 2) * 3.5 */
.orbi-hero, .orbi-study, .orbi-armor { filter: drop-shadow(0 0 8px rgba(26, 115, 255, .35)); }
.orbi .tilt { transform-box: fill-box; transform-origin: center; animation: tilt 8.98s ease-in-out infinite; } /* sin(t * .7) * 5 */
/* Blinks run for 0.15 s every 4.3 s (main.js adds .blinking), so nothing ticks between blinks. */
.orbi .eye, .moods .eye, .orbox-stack .pupil { transform-box: fill-box; transform-origin: center; }
.blinking .eye, .blinking .pupil { animation: blink-once .15s linear; }
.orbi .tip { animation: pulse 2.09s ease-in-out infinite; }  /* .75 + .25 sin(3t) */
.moods li:hover .tip { animation: pulse 2.09s ease-in-out infinite; }
.orbi .thruster { animation: thrust 1.57s ease-in-out infinite; }       /* .75 + .25 sin(4t) */
.orbi .flame { transform-box: fill-box; transform-origin: top; animation: flicker .27s steps(1) infinite; }
.orbi-armor .chevron { animation: pulse 1.05s ease-in-out infinite; }
.thruster-hot { transform: translate(0, 44px) scale(1.3); }
/* Orbo X (OrboXLayer.swift): ring lights run, rings sway ±2.5° every ~7 s, strips breathe over π s, the eye ring turns 12°/s */
.orbox-stack .lights { animation: ring-run linear infinite; }
.orbox-stack .sway { transform-box: fill-box; transform-origin: center; animation: sway 6.98s ease-in-out infinite alternate; }
.orbox-stack .strip { animation: breathe 3.14s ease-in-out infinite alternate; }
.orbox-stack .eye-ring { transform-box: fill-box; transform-origin: center; animation: spin 30s linear infinite; }

.orbox-stack .ox-sphere { transform-box: fill-box; transform-origin: center; animation: lean 8.98s ease-in-out infinite; }
@keyframes ring-run { to { stroke-dashoffset: -40; } }
@keyframes sway { from { transform: rotate(-2.5deg); } to { transform: rotate(2.5deg); } }
@keyframes breathe { from { opacity: .3; } to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes lean { 0%, 100% { transform: rotate(2.5deg); } 50% { transform: rotate(-2.5deg); } }
@keyframes bob { 0%, 100% { transform: translate3d(0, 2.33%, 0); } 50% { transform: translate3d(0, -2.33%, 0); } }
@keyframes tilt { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
@keyframes blink-once { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.1); } }
@keyframes pulse { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
@keyframes thrust { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes flicker { 0% { transform: scaleY(1); } 25% { transform: scaleY(1.22); } 50% { transform: scaleY(.88); } 75% { transform: scaleY(1.12); } }

/* The three key functions */
.section-features { padding: clamp(64px, 8vw, 112px) 0; background: radial-gradient(70% 90% at 50% 0%, rgba(26, 115, 255, .10), transparent 70%); }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }
.features li { background: var(--card); border: 1px solid rgba(255, 255, 255, .09); border-radius: 16px; padding: clamp(24px, 3vw, 34px); }
.js .features li.reveal { transition: opacity .7s ease-out, transform .7s cubic-bezier(.2, .8, .2, 1), border-color .25s, background .25s; }
.js .features li.reveal.is-in:hover { transform: translateY(-5px); transition-delay: 0s; border-color: rgba(92, 199, 255, .45); }
.feature-num { display: block; font: 500 13px/1 var(--mono); color: var(--glow); margin-bottom: clamp(36px, 5vw, 64px); }
.features h2 { font-size: clamp(25px, 2.5vw, 32px); line-height: 1.15; margin-bottom: 12px; }
.features p { color: var(--muted); }

/* Across the page */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 30; background: var(--glow); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.nav-links a { position: relative; transition: color .2s; }
.nav-links a:hover, .nav-links a.is-here { color: var(--text); }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--glow); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.nav-links a.is-here::after { transform: scaleX(1); }
.btn { transition: transform .15s, box-shadow .2s, background .2s; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(82, 143, 255, .4); }
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease-out, transform .7s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .demo.reveal, .js .mock-frame.reveal { transform: translateY(40px) scale(.965); transition-duration: .9s; }
.js .demo.reveal.is-in, .js .mock-frame.reveal.is-in { transform: none; }
.hero-art img { transition: transform .4s ease-out; will-change: transform; }
.hero-orbi .carousel { cursor: pointer; }
.hero-bubble p { transition: opacity .2s; }
.mock-frame .dash { transition: transform .25s ease-out; transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); will-change: transform; }

/* Nothing animates while it's off screen (main.js adds .off). */
.off, .off * { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .privacy-fold[open] .privacy-grid { animation: none; }
  .fold-arrow { transition: none; }
  .orbi { animation: none; }
  .orbi *, .moods * { animation: none !important; }
  .carousel-track { scroll-behavior: auto; }
}

/* layout breakpoints */
@media (max-width: 1080px) {
  .dash { grid-template-columns: minmax(0, 1fr); }
  .dash-side { display: none; }
  .dash-cols { grid-template-columns: minmax(0, 1fr); }
  .dash-right { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .moods { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .moods li:nth-child(5) { border-left: 0; }
  .moods li:nth-child(n+5) { border-top: 1px solid var(--faint); }
}
@media (max-width: 900px) {
  .features { grid-template-columns: minmax(0, 1fr); }
  .feature-num { margin-bottom: 18px; }
  .nav-links { display: none; }
  .nav-inner .btn { margin-left: auto; }
  .walk-copy { order: 0; padding-top: 0; }
  .hero-grid, .split, .study-grid, .walk-grid, .cc-grid, .details-grid, .beta-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-orbi { width: min(100%, 340px); justify-self: start; margin-top: 24px; }
  .rows, .privacy-grid { margin-left: 0; }
  .details-grid .section-head { grid-row: auto; }
  .split { align-items: start; gap: 24px; }
  .orbi-armor { width: 150px; }
}
@media (max-width: 900px) {
  .study-copy, .walk-copy { grid-template-columns: minmax(0, 1fr); }
  .study-copy > .privacy-note, .walk-copy > .walk-text { grid-column: 1; grid-row: auto; }
  .study-copy > .privacy-note { margin-top: 32px; }
  .walk-text { margin-top: 18px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .row, .rows-tight .row { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 20px 0; }
  .privacy-grid, .controls dl { grid-template-columns: minmax(0, 1fr); }
  .dash-main { padding: 18px 14px; }
  .dash-hello { font-size: 26px; }
  .dash-pair { grid-template-columns: minmax(0, 1fr); }
  .sched .p { display: none; }
  .tasks .d { width: auto; }
  .cc-table tbody th { width: 46%; font-size: 18px; }
  .keys li, .controls dl div, .beta-facts div, .mini-list div { grid-template-columns: 110px 1fr; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-links { justify-content: flex-start; }
  .signup { padding: 20px; }
}
@media (max-width: 420px) {
  .moods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .moods li:nth-child(odd) { border-left: 0; }
  .moods li:nth-child(n+3) { border-top: 1px solid var(--faint); }
  .moods li:nth-child(5) { border-left: 0; }
  .hero-bubble { font-size: 13.5px; }
}
/* The dashboard mock's sidebar Orbo X: rings reach past the sphere, so it's drawn a little wider than the old mini Orbi. */
.dash-ox { width: 84px; margin: 0 auto 10px; }
