/* Vastra — landing page. Brand: Vastra orange on warm paper, Playfair Display
   for voice, DM Sans for reading. Vastra is Sanskrit for woven cloth, so the
   art is warm horizons crossed by thread. */
:root {
  --orange: #E8622A;
  --orange-deep: #C4501E;
  --orange-ink: #B4461A;
  --orange-soft: rgba(232, 98, 42, .09);
  --orange-line: rgba(232, 98, 42, .22);
  --saffron: #F2A65A;
  --peach: #F8D3B4;
  --sand: #F2E6D6;
  --paper: #FAF8F5;
  --paper-2: #F3EDE4;
  --card: #FDFCFA;
  --ink: #1A1714;
  --ink-2: #4A4540;
  --ink-3: #6B6560;
  --line: #E4DED6;
  --night: #14110D;
  --night-2: #1E1A15;
  --on-night: #F0ECE6;
  --on-night-2: #B5AEA6;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --max: 1160px;
  --r: 18px;
  --shadow: 0 1px 2px rgba(60, 40, 20, .05), 0 10px 30px rgba(60, 40, 20, .07);
  --shadow-pop: 0 30px 80px -20px rgba(80, 40, 10, .28), 0 10px 30px rgba(60, 40, 20, .10);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }

/* ── type ── */
.eyebrow { font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--orange-ink); }
.display { font-family: var(--serif); font-weight: 500; letter-spacing: -.02em; line-height: 1.02; margin: 0; }
.display em { font-style: italic; color: var(--orange); font-weight: 500; }
h2.display { font-size: clamp(36px, 5.2vw, 64px); }
.lede { font-size: clamp(17px, 1.6vw, 19.5px); color: var(--ink-2); max-width: 60ch; margin: 18px 0 0; }
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head .display { margin-top: 14px; }
.center { text-align: center; margin-inline: auto; }
.center .lede { margin-inline: auto; }

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 24px; border-radius: 999px;
  font-weight: 600; font-size: 15.5px; border: 1px solid transparent;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
  cursor: pointer;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--ink); color: var(--paper); box-shadow: 0 10px 24px -10px rgba(26, 23, 20, .6); }
.btn-primary:hover { transform: translateY(-2px); background: #000; box-shadow: 0 16px 30px -12px rgba(26, 23, 20, .7); }
.btn-orange { background: var(--orange); color: #fff; box-shadow: 0 12px 28px -12px rgba(232, 98, 42, .8); }
.btn-orange:hover { transform: translateY(-2px); background: var(--orange-deep); }
.btn-ghost { background: rgba(255, 255, 255, .55); border-color: var(--line); color: var(--ink); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--orange-line); background: #fff; }
.btn-night { background: var(--on-night); color: var(--night); }
.btn-night:hover { transform: translateY(-2px); background: #fff; }

/* ── nav ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 245, .78);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 22px; font-weight: 600; }
.brand img { width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 4px 12px -4px rgba(232, 98, 42, .5); }
.nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a { padding: 8px 13px; border-radius: 999px; font-size: 14.5px; color: var(--ink-2); transition: background .2s, color .2s; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--ink); background: rgba(26, 23, 20, .05); }
.nav-cta { height: 40px; padding: 0 18px; font-size: 14px; }
.nav-toggle { display: none; background: none; border: 0; width: 42px; height: 42px; border-radius: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--ink); border-radius: 2px; transition: transform .25s; }

/* ── hero ── */
.hero { position: relative; padding: clamp(48px, 7vw, 88px) 0 0; isolation: isolate; }
.hero-art { position: absolute; inset: 0 0 auto; height: 100%; z-index: -1; overflow: hidden; pointer-events: none; }
.hero-art svg { position: absolute; left: 50%; top: 0; width: max(1600px, 120vw); transform: translateX(-50%); height: 100%; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .7); border: 1px solid var(--orange-line);
  font-size: 13.5px; color: var(--ink-2); box-shadow: var(--shadow);
}
.pill b { background: var(--orange); color: #fff; font-weight: 600; font-size: 12px; padding: 3px 10px; border-radius: 999px; }
.pill:hover { border-color: var(--orange); }
.hero-copy { text-align: center; max-width: 900px; margin: 0 auto; }
.hero h1 { font-size: clamp(46px, 8.4vw, 104px); margin-top: 26px; }
.hero .lede { margin-inline: auto; text-align: center; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.hero-meta { margin-top: 16px; font-size: 13.5px; color: var(--ink-3); }
.hero-meta span + span::before { content: "·"; margin: 0 8px; color: var(--line); }

.stage { position: relative; margin: clamp(48px, 7vw, 76px) auto 0; width: min(1080px, 100%); }
.window {
  position: relative; border-radius: 16px; overflow: hidden;
  background: #fff; box-shadow: var(--shadow-pop);
  border: 1px solid rgba(26, 23, 20, .08);
  transform: perspective(1800px) rotateX(5deg);
  transform-origin: 50% 100%;
  transition: transform 1s var(--ease);
}
.stage:hover .window { transform: perspective(1800px) rotateX(0deg); }
.window-bar { display: flex; align-items: center; gap: 8px; padding: 11px 14px; background: #F6F1EA; border-bottom: 1px solid var(--line); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #E4DCD2; }
.window-bar i:nth-child(1) { background: #F0866B; } .window-bar i:nth-child(2) { background: #F5C451; } .window-bar i:nth-child(3) { background: #7CC68A; }
.window-url { margin-left: 12px; flex: 1; max-width: 360px; padding: 5px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font: 500 12.5px var(--mono); color: var(--ink-3); }
/* The screenshot includes the Windows taskbar; crop it off the bottom. */
.window img { width: 100%; aspect-ratio: 16 / 8.6; object-fit: cover; object-position: top; }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 16px; background: rgba(253, 252, 250, .94);
  border: 1px solid var(--line); box-shadow: var(--shadow-pop); font-size: 14px;
  backdrop-filter: blur(10px); animation: bob 7s ease-in-out infinite;
}
.float-card small { display: block; color: var(--ink-3); font-size: 12px; }
.float-card .dot { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange); flex: none; }
.float-card .dot svg { width: 18px; height: 18px; }
.fc-1 { left: -38px; top: 22%; }
.fc-2 { right: -34px; top: 52%; animation-delay: -3.5s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* ── hero trailer ── */
.trailer-len { margin-left: auto; font: 500 12px var(--mono); color: var(--ink-3); }
.trailer-view { position: relative; aspect-ratio: 16 / 9; background: #F6EEE3; overflow: hidden; }
.trailer-view video { display: block; width: 100%; height: 100%; object-fit: cover; }
.trailer-view::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(60, 30, 10, .16));
  transition: opacity .6s var(--ease);
}
.trailer-play {
  position: absolute; left: 50%; bottom: clamp(18px, 4%, 34px); transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 14px; padding: 8px 22px 8px 8px; z-index: 2;
  border: 1px solid rgba(255, 255, 255, .7); border-radius: 999px; cursor: pointer;
  background: rgba(253, 252, 250, .82); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 18px 40px -16px rgba(80, 40, 10, .45), 0 2px 6px rgba(60, 40, 20, .08);
  transition: transform .3s var(--ease), opacity .4s var(--ease), box-shadow .3s var(--ease);
}
.trailer-play:hover { transform: translateX(-50%) translateY(-2px); box-shadow: 0 24px 50px -16px rgba(232, 98, 42, .55), 0 2px 6px rgba(60, 40, 20, .08); }
.tp-icon { position: relative; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: #fff; flex: none; }
.tp-icon svg { width: 20px; height: 20px; margin-left: 2px; }
.tp-icon::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid var(--orange-line); animation: tp-pulse 2.4s var(--ease) infinite; }
@keyframes tp-pulse { 0% { transform: scale(.85); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
.tp-text { text-align: left; line-height: 1.25; }
.tp-text b { display: block; font-size: 15px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.tp-text small { font-size: 12.5px; color: var(--ink-3); }
.trailer-ui {
  position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2;
  display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 14px;
  background: rgba(26, 23, 20, .55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff;
  opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.tu-btn { width: 32px; height: 32px; border: 0; border-radius: 9px; background: transparent; display: grid; place-items: center; cursor: pointer; flex: none; }
.tu-btn:hover { background: rgba(255, 255, 255, .14); }
.tu-btn svg { width: 18px; height: 18px; }
.tu-btn .i-play, .tu-btn .i-muted, .is-paused .tu-btn .i-pause, .is-muted .tu-btn .i-sound { display: none; }
.is-paused .tu-btn .i-play, .is-muted .tu-btn .i-muted { display: block; }
.tu-bar { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .25); cursor: pointer; position: relative; }
.tu-bar::before { content: ""; position: absolute; inset: -10px 0; }
.tu-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--orange); }
.tu-time { font: 500 12px var(--mono); min-width: 34px; text-align: right; opacity: .85; }
.trailer-end {
  position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; text-align: center; padding: 24px;
  background: rgba(250, 248, 245, .78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: te-in .6s var(--ease) both;
}
.trailer-end[hidden] { display: none; }
.trailer-end .display { font-size: clamp(28px, 4vw, 48px); }
.trailer-end .hero-actions { margin-top: 22px; }
@keyframes te-in { from { opacity: 0; } }
/* watching: the window straightens, the props step aside */
.stage.is-watching .window { transform: perspective(1800px) rotateX(0deg) scale(1.015); }
.stage.is-watching .float-card { opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .4s var(--ease), transform .4s var(--ease); }
.stage.is-watching .trailer-play { opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(10px); }
.stage.is-watching .trailer-view::after { opacity: 0; }
.stage.is-watching .trailer-ui { opacity: 1; transform: none; pointer-events: auto; }
.stage.is-watching.is-idle:not(.is-paused) .trailer-ui { opacity: 0; transform: translateY(8px); }
.stage.is-watching.is-idle:not(.is-paused) .trailer-view { cursor: none; }
.float-card { transition: opacity .4s var(--ease), transform .4s var(--ease); }
@media (max-width: 640px) {
  .trailer-play { bottom: 10px; padding: 5px 14px 5px 5px; gap: 9px; }
  .tp-icon { width: 32px; height: 32px; }
  .tp-icon svg { width: 15px; height: 15px; }
  .tp-text b { font-size: 13px; }
  .trailer-end .hero-actions { flex-direction: column; align-items: center; gap: 8px; margin-top: 14px; }
  .trailer-end .btn { height: 40px; padding: 0 16px; font-size: 14px; }
  .tp-text small { display: none; }
  .trailer-ui { left: 8px; right: 8px; bottom: 8px; gap: 6px; padding: 4px 8px; }
  .tu-time { display: none; }
}
@media (prefers-reduced-motion: reduce) { .tp-icon::before { animation: none; } }

/* ── marquee ── */
.marquee { margin-top: clamp(64px, 9vw, 110px); border-block: 1px solid var(--line); background: rgba(243, 237, 228, .55); overflow: hidden; }
.marquee-track { display: flex; gap: 46px; width: max-content; padding: 18px 0; animation: scroll 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 21px; font-style: italic; color: var(--ink-2); white-space: nowrap; }
.marquee-track span::before { content: "✦"; font-style: normal; color: var(--orange); font-size: 14px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ── features bento ── */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.tile {
  position: relative; overflow: hidden; border-radius: 24px;
  background: var(--card); border: 1px solid var(--line);
  padding: 28px; box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  display: flex; flex-direction: column;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); border-color: var(--orange-line); }
.tile h3 { font-family: var(--serif); font-weight: 500; font-size: 27px; margin: 14px 0 6px; letter-spacing: -.01em; }
.tile p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.tile .num { font: 500 12px var(--mono); color: var(--orange-ink); letter-spacing: .08em; }
.tile .shot { margin: 22px -28px -28px; border-top: 1px solid var(--line); background: var(--paper-2); }
.tile .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.t-wide { grid-column: span 4; } .t-tall { grid-column: span 2; } .t-third { grid-column: span 2; } .t-half { grid-column: span 3; }
.t-wide .shot { height: 290px; } .t-tall .shot { height: 290px; } .t-third .shot, .t-half .shot { height: 210px; }
.tile.ink { background: var(--night); border-color: var(--night); color: var(--on-night); }
.tile.ink p { color: var(--on-night-2); } .tile.ink .num { color: var(--saffron); }

/* ── helix (night) ── */
.night { background: var(--night); color: var(--on-night); overflow: hidden; }
.night .eyebrow { color: var(--saffron); }
.night .display em { color: var(--saffron); }
.night .lede { color: var(--on-night-2); }
.stars { position: absolute; inset: 0; pointer-events: none; opacity: .55; background-image:
  radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 72% 12%, #fff 50%, transparent 51%),
  radial-gradient(1.4px 1.4px at 38% 62%, #F2A65A 50%, transparent 51%), radial-gradient(1px 1px at 88% 44%, #fff 50%, transparent 51%),
  radial-gradient(1px 1px at 22% 86%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 58% 30%, #fff 50%, transparent 51%),
  radial-gradient(1px 1px at 93% 82%, #F2A65A 50%, transparent 51%), radial-gradient(1px 1px at 6% 52%, #fff 50%, transparent 51%);
  background-size: 640px 520px; }
.helix-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 6vw, 80px); align-items: center; position: relative; }
.helix-points { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 16px; }
.helix-points li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; color: var(--on-night-2); font-size: 15.5px; }
.helix-points b { display: block; color: var(--on-night); font-weight: 600; margin-bottom: 2px; }
.helix-points .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(242, 166, 90, .12); color: var(--saffron); }
.helix-points .ic svg { width: 17px; height: 17px; }
.agent {
  border-radius: 22px; background: linear-gradient(180deg, #221D17, #18140F);
  border: 1px solid #2E2820; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .8); overflow: hidden;
}
.agent-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid #2E2820; font-weight: 600; font-size: 14.5px; }
.agent-head .spark { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--orange); color: #fff; }
.agent-head .spark svg { width: 14px; height: 14px; }
.agent-head small { margin-left: auto; font: 500 11.5px var(--mono); color: var(--on-night-2); display: inline-flex; align-items: center; gap: 6px; }
.agent-head small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #6FCF8F; box-shadow: 0 0 0 4px rgba(111, 207, 143, .15); }
.agent-body { padding: 22px 20px 24px; }
.goal { padding: 14px 16px; border-radius: 14px; background: rgba(240, 236, 230, .06); border: 1px solid #2E2820; font-size: 15px; min-height: 52px; }
.goal .caret { display: inline-block; width: 2px; height: 1.1em; background: var(--saffron); vertical-align: -3px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.steps li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: var(--on-night-2); opacity: .35; transition: opacity .4s, color .4s; }
.steps li .st { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #4A4239; display: grid; place-items: center; flex: none; transition: all .4s; }
.steps li .st svg { width: 12px; height: 12px; opacity: 0; color: #fff; }
.steps li.on { opacity: 1; color: var(--on-night); }
.steps li.on .st { border-color: var(--saffron); box-shadow: 0 0 0 4px rgba(242, 166, 90, .14); }
.steps li.done { opacity: .9; }
.steps li.done .st { background: var(--orange); border-color: var(--orange); }
.steps li.done .st svg { opacity: 1; }
.steps code { font: 500 12px var(--mono); color: var(--saffron); margin-left: auto; opacity: .8; }
.approval { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: rgba(232, 98, 42, .1); border: 1px solid rgba(232, 98, 42, .35); display: flex; align-items: center; gap: 12px; font-size: 14px; opacity: 0; transform: translateY(8px); transition: all .5s var(--ease); }
.approval.show { opacity: 1; transform: none; }
.approval span { flex: 1; color: var(--on-night); }
.approval .a { padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: 13px; }
.approval .yes { background: var(--orange); color: #fff; } .approval .no { border: 1px solid #4A4239; color: var(--on-night-2); }

/* ── move in (3 cards) ── */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { border-radius: 24px; background: var(--card); border: 1px solid var(--line); padding: 30px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.card h3 { font-family: var(--serif); font-weight: 500; font-size: 26px; margin: 18px 0 8px; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.card .ic { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange); border: 1px solid var(--orange-line); }
.card .ic svg { width: 22px; height: 22px; }
.logos { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.logos span { font-size: 12.5px; font-weight: 600; color: var(--ink-2); padding: 6px 12px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line); }
.update-demo { margin-top: 20px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #1F7A4D; background: rgba(35, 128, 90, .1); border: 1px solid rgba(35, 128, 90, .25); }
.update-demo svg { width: 15px; height: 15px; }

/* ── themes ── */
.themes { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.picker { margin-top: 30px; display: grid; gap: 22px; }
.picker label { display: block; font: 600 12px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); transition: transform .2s; }
.swatch:hover { transform: scale(1.1); }
.swatch[aria-checked="true"] { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--ink); }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line); }
.seg button { border: 0; background: none; padding: 8px 18px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--ink-3); }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.mock {
  --a: #E8622A; --bg: #FBF7F1; --panel: #fff; --tx: #1A1714; --tx2: #6B6560; --ln: #ECE4DA;
  border-radius: 20px; overflow: hidden; background: var(--bg); border: 1px solid var(--ln);
  box-shadow: var(--shadow-pop); color: var(--tx); transition: background .5s, color .5s, border-color .5s;
}
.mock.dark { --bg: #17140F; --panel: #221D17; --tx: #F0ECE6; --tx2: #A69E95; --ln: #2E2820; }
.mock-top { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--ln); }
.mock-top i { width: 10px; height: 10px; border-radius: 50%; background: var(--ln); }
.mock-tab { margin-left: 10px; padding: 6px 14px; border-radius: 10px 10px 0 0; font-size: 12.5px; background: var(--panel); border: 1px solid var(--ln); border-bottom: 0; }
.mock-main { display: grid; grid-template-columns: 58px 1fr; min-height: 340px; }
.mock-side { border-right: 1px solid var(--ln); padding: 14px 0; display: grid; align-content: start; justify-items: center; gap: 12px; }
.mock-side b { width: 30px; height: 30px; border-radius: 10px; background: var(--ln); transition: background .4s; }
.mock-side b:first-child { background: var(--a); }
.mock-body { padding: 30px 28px; background: radial-gradient(120% 90% at 85% 0%, color-mix(in srgb, var(--a) 22%, transparent), transparent 60%); transition: background .5s; }
.mock-body h4 { font-family: var(--serif); font-weight: 500; font-size: 34px; margin: 0; letter-spacing: -.01em; }
.mock-body h4 em { color: var(--a); transition: color .4s; }
.mock-search { margin: 18px 0 22px; padding: 12px 16px; border-radius: 999px; background: var(--panel); border: 1px solid var(--ln); color: var(--tx2); font-size: 13.5px; }
.mock-widgets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mock-widgets > div { background: var(--panel); border: 1px solid var(--ln); border-radius: 14px; padding: 14px; font-size: 12px; color: var(--tx2); min-height: 92px; }
.mock-widgets strong { display: block; font-size: 22px; color: var(--tx); font-family: var(--serif); font-weight: 500; margin-top: 6px; }
.mock-widgets .bar { margin-top: 10px; height: 6px; border-radius: 6px; background: var(--ln); overflow: hidden; }
.mock-widgets .bar span { display: block; height: 100%; width: 62%; background: var(--a); transition: background .4s; }

/* ── changelog ── */
.release { display: grid; grid-template-columns: 280px 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.release-tag { position: sticky; top: 110px; }
.release-tag .v { font-family: var(--serif); font-size: 64px; line-height: 1; letter-spacing: -.02em; }
.release-tag .v em { color: var(--orange); font-style: italic; }
.release-tag p { color: var(--ink-3); font-size: 14.5px; margin: 12px 0 0; }
.notes { display: grid; gap: 2px; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: var(--line); }
.note { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 22px 26px; background: var(--card); }
.note .k { font: 600 11.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--orange-ink); padding-top: 4px; }
.note h4 { margin: 0 0 4px; font-size: 17px; font-weight: 600; }
.note p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* ── downloads ── */
.platforms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.plat { border-radius: 22px; background: var(--card); border: 1px solid var(--line); padding: 26px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.plat.primary { background: var(--ink); color: var(--paper); border-color: var(--ink); grid-column: span 2; }
.plat .os { display: flex; align-items: center; gap: 12px; }
.plat .os svg { width: 30px; height: 30px; }
.plat h3 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 26px; }
.plat .sub { font-size: 13.5px; color: var(--ink-3); }
.plat.primary .sub { color: var(--on-night-2); }
.plat ul { list-style: none; padding: 0; margin: 20px 0 22px; display: grid; gap: 8px; font-size: 14.5px; color: var(--ink-2); flex: 1; }
.plat.primary ul { color: var(--on-night-2); }
.plat li::before { content: "✓"; color: var(--orange); font-weight: 700; margin-right: 10px; }
.plat .btn { justify-content: center; }
.plat .soon { display: inline-flex; justify-content: center; padding: 12px; border-radius: 999px; border: 1px dashed var(--line); color: var(--ink-3); font-size: 14px; font-weight: 600; }
.plat .fine { font-size: 12.5px; color: var(--on-night-2); margin: 12px 0 0; }
.cmd { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--paper-2); border: 1px solid var(--line); font: 500 11.5px var(--mono); color: var(--ink-2); margin-bottom: 12px; }
.cmd code { flex: 1; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.cmd button { border: 0; background: var(--card); border-radius: 8px; padding: 5px 9px; cursor: pointer; font: 600 11px var(--sans); border: 1px solid var(--line); }

/* ── finale ── */
.finale { position: relative; overflow: hidden; text-align: center; padding: clamp(100px, 13vw, 170px) 0 clamp(140px, 18vw, 230px); isolation: isolate; }
.finale-art { position: absolute; inset: auto 0 0; height: 70%; z-index: -1; }
.finale-art svg { width: 100%; height: 100%; }
.finale h2 { font-size: clamp(44px, 7vw, 92px); }
.finale .hero-actions { margin-top: 30px; }

footer { background: var(--night); color: var(--on-night-2); padding: 56px 0 40px; font-size: 14.5px; }
.foot { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot .brand { color: var(--on-night); }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot a:hover { color: var(--on-night); }
.foot-base { margin-top: 36px; padding-top: 24px; border-top: 1px solid #2A251F; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.foot-base a { color: var(--saffron); }

/* ── art helpers ── */
.thread { fill: none; stroke-linecap: round; }
.thread.draw { stroke-dasharray: var(--len, 2400); stroke-dashoffset: var(--len, 2400); animation: draw 3.2s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.sun { animation: rise 2.4s var(--ease) both; }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } }

/* ── reveal (only when JS is on; content is visible without it) ── */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; } .js .reveal.d2 { transition-delay: .16s; } .js .reveal.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .thread.draw { stroke-dashoffset: 0; }
  .js .reveal { opacity: 1; transform: none; }
  .window { transform: none; }
}

/* ── responsive ── */
@media (max-width: 1080px) {
  .fc-1 { left: 10px; top: -28px; } .fc-2 { right: 10px; top: auto; bottom: -26px; }
  .platforms { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links { display: grid; position: absolute; top: 70px; left: 0; right: 0; padding: 12px 20px 20px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .nav.open .nav-links a { display: block; padding: 12px 10px; font-size: 16px; }
  .nav.open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .bento { grid-template-columns: 1fr 1fr; }
  .t-wide, .t-tall, .t-third, .t-half { grid-column: span 2; }
  .helix-grid, .themes, .release { grid-template-columns: 1fr; }
  .release-tag { position: static; }
  .trio { grid-template-columns: 1fr; }
  .window { transform: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .float-card { display: none; }
  .platforms { grid-template-columns: 1fr; }
  .plat.primary { grid-column: auto; }
  .note { grid-template-columns: 1fr; gap: 6px; }
  .mock-widgets { grid-template-columns: 1fr 1fr; }
  .mock-widgets > div:last-child { display: none; }
  .tile { padding: 22px; } .tile .shot { margin: 18px -22px -22px; }
  .btn { height: 50px; padding: 0 20px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ── document pages (changelog, privacy, terms) ── */
.doc-hero { position: relative; padding: clamp(64px, 9vw, 110px) 0 clamp(40px, 6vw, 64px); text-align: center; isolation: isolate; overflow: hidden; }
.doc-hero::before { content: ""; position: absolute; inset: -40% -10% auto; height: 120%; z-index: -1;
  background: radial-gradient(50% 60% at 50% 70%, rgba(248, 201, 160, .55), rgba(250, 248, 245, 0) 70%); }
.doc-hero h1 { font-size: clamp(44px, 7vw, 84px); margin-top: 16px; }
.doc-hero .lede { margin-inline: auto; }
.doc-meta { margin-top: 18px; font: 500 12.5px var(--mono); color: var(--ink-3); letter-spacing: .04em; }
.doc-layout { display: grid; grid-template-columns: 220px 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; padding-bottom: clamp(80px, 10vw, 120px); }
.toc { position: sticky; top: 100px; display: grid; gap: 2px; font-size: 14px; }
.toc b { font: 600 11.5px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.toc a { padding: 6px 12px; border-radius: 10px; color: var(--ink-2); border-left: 2px solid transparent; }
.toc a:hover { background: rgba(26, 23, 20, .04); color: var(--ink); }
.toc a.on { border-left-color: var(--orange); color: var(--ink); background: var(--orange-soft); }
.prose { max-width: 72ch; font-size: 16.5px; color: var(--ink-2); }
.prose h2 { font-family: var(--serif); font-weight: 500; font-size: 32px; letter-spacing: -.01em; color: var(--ink); margin: 56px 0 12px; scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; color: var(--ink); margin: 28px 0 6px; }
.prose p, .prose li { line-height: 1.75; }
.prose ul { padding-left: 1.1em; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--orange); }
.prose a { color: var(--orange-ink); text-decoration: underline; text-decoration-color: var(--orange-line); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--orange); }
.prose strong { color: var(--ink); }
.callout { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 20px 22px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); margin: 24px 0; }
.callout .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange); }
.callout .ic svg { width: 20px; height: 20px; }
.callout p { margin: 0; }
.data-table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14.5px; background: var(--card); border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.data-table th, .data-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { font: 600 12px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); background: var(--paper-2); }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td:first-child { color: var(--ink); font-weight: 600; white-space: nowrap; }

/* changelog timeline */
.timeline { position: relative; display: grid; gap: 22px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--orange), var(--line) 30%); border-radius: 2px; }
.release-card { position: relative; margin-left: 34px; padding: 28px 30px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); scroll-margin-top: 96px; }
.release-card::before { content: ""; position: absolute; left: -34px; top: 32px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 2px solid var(--orange); }
.release-card.latest::before { background: var(--orange); box-shadow: 0 0 0 6px var(--orange-soft); }
.release-card:target { border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft), var(--shadow-pop); }
.rc-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.rc-head h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 30px; letter-spacing: -.01em; color: var(--ink); }
.rc-head .ver { font: 600 13px var(--mono); color: var(--orange-ink); background: var(--orange-soft); border: 1px solid var(--orange-line); padding: 3px 10px; border-radius: 999px; }
.rc-head time { font-size: 13.5px; color: var(--ink-3); }
.rc-head .tag { font: 600 11px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--orange); padding: 3px 9px; border-radius: 999px; }
.rc-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.rc-list li { display: grid; grid-template-columns: 92px 1fr; gap: 14px; font-size: 15.5px; color: var(--ink-2); line-height: 1.6; }
.rc-list .k { font: 600 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; padding-top: 4px; }
.k.new { color: #1F7A4D; } .k.improved { color: var(--orange-ink); } .k.fixed { color: #3A62A8; } .k.security { color: #9A3B8C; }
.rc-list b { color: var(--ink); font-weight: 600; }

@media (max-width: 900px) {
  .doc-layout { grid-template-columns: 1fr; }
  .toc { position: static; grid-auto-flow: column; overflow-x: auto; padding-bottom: 6px; }
  .toc b { display: none; }
  .toc a { white-space: nowrap; border-left: 0; }
}
@media (max-width: 600px) {
  .release-card { padding: 22px 20px; margin-left: 26px; }
  .release-card::before { left: -27px; }
  .rc-list li { grid-template-columns: 1fr; gap: 2px; }
  .data-table { font-size: 13.5px; } .data-table td:first-child { white-space: normal; }
}

/* ── site nav with dropdown menus (shared by every page) ── */
.nav-links > li { position: relative; }
.nav-links .has-menu > button {
  display: inline-flex; align-items: center; gap: 5px; padding: 8px 13px; border-radius: 999px;
  border: 0; background: none; font: inherit; font-size: 14.5px; color: var(--ink-2); cursor: pointer;
}
.nav-links .has-menu > button svg { width: 12px; height: 12px; transition: transform .2s var(--ease); }
.nav-links .has-menu > button:hover, .nav-links .has-menu.open > button, .nav-links .has-menu > button[aria-current] { color: var(--ink); background: rgba(26, 23, 20, .05); }
.nav-links .has-menu.open > button svg { transform: rotate(180deg); }
.menu {
  position: absolute; top: calc(100% + 10px); left: 50%; width: 300px; padding: 8px;
  transform: translate(-50%, 6px); opacity: 0; visibility: hidden; pointer-events: none;
  border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-pop);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
  list-style: none; margin: 0; z-index: 60;
}
.menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.has-menu.open .menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
.menu a { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 12px; }
.menu a:hover, .menu a:focus-visible { background: var(--paper-2); }
.menu .mi { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange); border: 1px solid var(--orange-line); }
.menu .mi svg { width: 16px; height: 16px; }
.menu b { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.menu span span { display: block; font-size: 12.5px; color: var(--ink-3); line-height: 1.35; }
.menu .soon { display: inline-block; line-height: 1.5; font: 600 10px/1.5 var(--mono); letter-spacing: .06em; color: var(--orange-ink); background: var(--orange-soft); padding: 1px 6px; border-radius: 6px; margin-left: 6px; vertical-align: 1px; }
.nav-right { display: flex; align-items: center; gap: 8px; }

/* ── feature rows (features page) ── */
.f-row { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--line); }
.f-row:first-of-type { border-top: 0; }
.f-row.flip > :first-child { order: 2; }
.f-row .num { font: 500 12px var(--mono); color: var(--orange-ink); letter-spacing: .08em; }
.f-row h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; letter-spacing: -.015em; margin: 12px 0 12px; }
.f-row p { color: var(--ink-2); margin: 0 0 14px; }
.f-row ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.f-row li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--ink-2); font-size: 15.5px; }
.f-row li svg { width: 18px; height: 18px; color: var(--orange); margin-top: 3px; }
.shot-frame { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-pop); background: #fff; }
.shot-frame .bar { display: flex; gap: 7px; align-items: center; padding: 10px 12px; background: #F6F1EA; border-bottom: 1px solid var(--line); }
.shot-frame .bar i { width: 10px; height: 10px; border-radius: 50%; background: #E4DCD2; }
.shot-frame .bar i:nth-child(1) { background: #F0866B; } .shot-frame .bar i:nth-child(2) { background: #F5C451; } .shot-frame .bar i:nth-child(3) { background: #7CC68A; }
.shot-frame .bar span { margin-left: 8px; font: 500 11.5px var(--mono); color: var(--ink-3); }
.shot-frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }

/* ── shortcuts page ── */
.kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 28px; padding: 0 8px;
  border-radius: 8px; border: 1px solid var(--line); border-bottom-width: 3px; background: var(--card);
  font: 600 12.5px var(--mono); color: var(--ink); }
.kplus { margin: 0 4px; color: var(--ink-3); font-size: 12px; }
.kfilter { width: 100%; max-width: 440px; height: 48px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); padding: 0 16px; font: inherit; font-size: 15px; color: var(--ink); outline: none; box-shadow: var(--shadow); }
.kfilter:focus { border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
.kgroups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 28px; }
.kgroup { border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px 22px 12px; }
.kgroup h3 { font-family: var(--serif); font-weight: 500; font-size: 24px; margin: 16px 0 6px; }
.krow { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.krow:first-of-type { border-top: 0; }
.krow[hidden] { display: none; }
.kempty { margin-top: 24px; color: var(--ink-3); }

/* ── faq ── */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { border-radius: 16px; background: var(--card); border: 1px solid var(--line); padding: 4px 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 14px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--orange); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--ink-2); }
.steps-list { counter-reset: s; list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; }
.steps-list li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 14px; }
.steps-list li::before { content: counter(s); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange-ink); font: 600 13px var(--mono); border: 1px solid var(--orange-line); }
.steps-list b { color: var(--ink); }

@media (max-width: 900px) {
  .nav.open .nav-links .has-menu > button { pointer-events: none; padding: 16px 6px 4px; background: none; font: 600 11.5px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
  .nav.open .nav-links .has-menu > button svg { display: none; }
  .nav.open .nav-links > li:first-child > button { padding-top: 4px; }
  .nav.open .menu { position: static; opacity: 1; visibility: visible; pointer-events: auto; transform: none; width: auto; box-shadow: none; border: 0; padding: 0; background: none; }
  .nav.open .nav-links .menu a { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 7px 6px; font-size: 15px; }
  .nav.open .menu .mi { width: 28px; height: 28px; }
  .nav.open .nav-links { max-height: calc(100vh - 70px); overflow-y: auto; }
  .f-row, .kgroups { grid-template-columns: 1fr; }
  .f-row.flip > :first-child { order: 0; }
}

/* footer columns */
.foot-cols { display: flex; gap: clamp(28px, 6vw, 72px); flex-wrap: wrap; }
.foot-cols div { display: grid; gap: 8px; align-content: start; }
.foot-cols b { color: var(--on-night); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.nav-cta svg { width: 16px; height: 16px; }
.foot-cols .soon { font: 600 9.5px var(--mono); letter-spacing: .06em; color: var(--saffron); border: 1px solid rgba(242, 166, 90, .35); padding: 1px 5px; border-radius: 5px; margin-left: 4px; vertical-align: 1px; }

/* ── android (coming soon) ── */
.droid-hero { position: relative; overflow: hidden; isolation: isolate; padding: clamp(56px, 8vw, 100px) 0 clamp(60px, 9vw, 110px); }
.droid-hero::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(60% 70% at 78% 55%, rgba(248, 201, 160, .65), rgba(250, 248, 245, 0) 70%), radial-gradient(40% 50% at 10% 10%, rgba(242, 166, 90, .14), transparent 70%); }
.droid-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.droid-hero h1 { font-size: clamp(48px, 7.4vw, 96px); margin-top: 18px; }
.pill-soon { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--orange-line); box-shadow: var(--shadow); font: 600 12.5px var(--sans); color: var(--orange-ink); }
.pill-soon i { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(232, 98, 42, .5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(232, 98, 42, 0); } 100% { box-shadow: 0 0 0 0 rgba(232, 98, 42, 0); } }
.droid-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; font-size: 14.5px; color: var(--ink-2); }
.droid-facts span { display: inline-flex; align-items: center; gap: 8px; }
.droid-facts svg { width: 16px; height: 16px; color: var(--orange); }

.phone-stage { position: relative; display: grid; place-items: center; min-height: 600px; }
.phone-stage .loom { position: absolute; left: -30%; top: -10%; width: 160%; height: 120%; z-index: -1; pointer-events: none; }
.phone { position: relative; width: 300px; height: 610px; border-radius: 46px; padding: 11px; background: linear-gradient(160deg, #2A241D, #14110D); box-shadow: 0 50px 90px -30px rgba(80, 40, 10, .45), 0 0 0 1px rgba(0, 0, 0, .25), inset 0 0 0 2px #3A3229; transform: rotate(-4deg); }
.phone::before { content: ""; position: absolute; top: 22px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #0B0907; box-shadow: inset 0 0 0 2px #241E18; z-index: 3; }
.phone .scr { position: relative; height: 100%; border-radius: 36px; overflow: hidden; background: var(--paper); display: flex; flex-direction: column; }
.ph-status { display: flex; justify-content: space-between; padding: 14px 24px 0; font: 600 11.5px var(--sans); color: var(--ink); }
.ph-status span:last-child { display: inline-flex; gap: 4px; align-items: center; }
.ph-status svg { width: 14px; height: 14px; }
.ph-body { flex: 1; padding: 26px 18px 10px; display: flex; flex-direction: column; gap: 12px; }
.ph-greet { font-family: var(--serif); font-size: 27px; line-height: 1.1; letter-spacing: -.01em; }
.ph-greet em { color: var(--orange); }
.ph-date { font-size: 12px; color: var(--ink-3); margin-top: -6px; }
.ph-search { display: flex; align-items: center; gap: 8px; height: 42px; border-radius: 14px; padding: 0 12px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 13px; color: var(--ink-3); }
.ph-search svg { width: 15px; height: 15px; color: var(--orange); flex: none; }
.ph-search b { margin-left: auto; font: 600 10px var(--mono); color: var(--orange-ink); background: var(--orange-soft); padding: 3px 7px; border-radius: 6px; }
.ph-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ph-tile { border-radius: 16px; background: var(--card); border: 1px solid var(--line); padding: 12px; font-size: 11.5px; color: var(--ink-3); }
.ph-tile b { display: block; font: 500 22px var(--serif); color: var(--ink); margin-top: 4px; }
.ph-tile.warm { background: linear-gradient(150deg, #FBE1C8, #F6C89F); border-color: transparent; color: #7A3A14; }
.ph-tile.warm b { color: #3D1B08; }
.ph-tile svg { width: 100%; height: 26px; margin-top: 6px; }
.ph-helix { border-radius: 16px; padding: 12px 13px; background: var(--night); color: var(--on-night-2); font-size: 12px; display: grid; gap: 7px; }
.ph-helix .h { display: flex; align-items: center; gap: 7px; color: var(--on-night); font-weight: 600; font-size: 12.5px; }
.ph-helix .h i { width: 20px; height: 20px; border-radius: 7px; display: grid; place-items: center; background: var(--orange); color: #fff; }
.ph-helix .h i svg { width: 11px; height: 11px; }
.ph-helix .bar { height: 5px; border-radius: 5px; background: #2E2820; overflow: hidden; }
.ph-helix .bar span { display: block; height: 100%; width: 62%; border-radius: 5px; background: linear-gradient(90deg, var(--orange), var(--saffron)); animation: grow 3.6s var(--ease) infinite; }
@keyframes grow { from { width: 8%; } 70%, to { width: 88%; } }
.ph-nav { display: flex; justify-content: space-around; align-items: center; margin: 0 14px 14px; height: 50px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink-3); }
.ph-nav svg { width: 19px; height: 19px; }
.ph-nav .on { color: var(--orange); }
.ph-nav .tabs { min-width: 24px; height: 20px; border-radius: 6px; border: 1.8px solid currentColor; display: grid; place-items: center; font: 700 10px var(--sans); }
.float-note { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-pop); font-size: 13px; color: var(--ink-2); white-space: nowrap; animation: bob 6s ease-in-out infinite; z-index: 2; }
.float-note b { color: var(--ink); }
.float-note .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange); }
.float-note .ic svg { width: 16px; height: 16px; }
.float-note.n1 { left: -8%; top: 7%; }
.float-note.n2 { right: -6%; bottom: 20%; animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

.droid-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.droid-feat { position: relative; border-radius: 22px; background: var(--card); border: 1px solid var(--line); padding: 26px; box-shadow: var(--shadow); overflow: hidden; }
.droid-feat .ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange); border: 1px solid var(--orange-line); }
.droid-feat .ic svg { width: 22px; height: 22px; }
.droid-feat h3 { font-family: var(--serif); font-weight: 500; font-size: 24px; margin: 18px 0 8px; letter-spacing: -.01em; }
.droid-feat p { margin: 0; color: var(--ink-2); font-size: 15px; }

.roadmap { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.roadmap::before { content: ""; position: absolute; left: 12%; right: 12%; top: 21px; height: 2px; background: repeating-linear-gradient(90deg, var(--orange-line) 0 8px, transparent 8px 14px); }
.rm { position: relative; text-align: center; padding: 0 8px; }
.rm .dot { position: relative; width: 44px; height: 44px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 2px solid var(--line); color: var(--ink-3); font: 600 13px var(--mono); }
.rm.done .dot { background: var(--orange); border-color: var(--orange); color: #fff; }
.rm.done .dot svg { width: 18px; height: 18px; }
.rm.now .dot { border-color: var(--orange); color: var(--orange-ink); box-shadow: 0 0 0 6px var(--orange-soft); }
.rm h4 { margin: 0 0 4px; font-size: 16.5px; }
.rm p { margin: 0; font-size: 14px; color: var(--ink-3); }
.rm .when { display: inline-block; margin-top: 8px; font: 600 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--orange-ink); }

/* homepage android band */
.droid-band { position: relative; overflow: hidden; isolation: isolate; border-radius: 30px; background: var(--night); color: var(--on-night-2); display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 24px; padding: clamp(32px, 5vw, 56px); margin-top: 28px; }
.droid-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 80% at 85% 60%, rgba(232, 98, 42, .35), transparent 70%); }
.droid-band h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 4vw, 48px); line-height: 1.05; color: var(--on-night); margin: 14px 0 12px; letter-spacing: -.015em; }
.droid-band h3 em { color: var(--saffron); }
.droid-band p { margin: 0 0 22px; max-width: 48ch; }
.droid-band .pill-soon { background: rgba(255, 255, 255, .06); border-color: rgba(242, 166, 90, .35); color: var(--saffron); box-shadow: none; }
.droid-band .mini { position: relative; height: 260px; }
.droid-band .mini .phone { position: absolute; left: 50%; top: 0; margin-left: -110px; width: 220px; height: 440px; border-radius: 36px; padding: 8px; transform: rotate(6deg); }
.droid-band .mini .phone .scr { border-radius: 29px; }
.droid-band .mini .ph-body { padding: 20px 14px 8px; gap: 9px; }
.droid-band .mini .ph-greet { font-size: 21px; }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; }

@media (max-width: 900px) {
  .droid-grid, .droid-band { grid-template-columns: 1fr; }
  .droid-feats { grid-template-columns: 1fr 1fr; }
  .roadmap { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .roadmap::before { display: none; }
  .droid-band .mini { height: 220px; }
}
@media (max-width: 600px) {
  .droid-feats { grid-template-columns: 1fr; }
  .phone-stage { min-height: 0; }
  .phone { transform: none; }
  .float-note { display: none; }
}

/* ── download page ── */
.dl-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 36px; text-align: left; }
.dl-card { position: relative; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 18px 20px; display: grid; gap: 2px; transition: transform .2s var(--ease), border-color .2s; }
.dl-card:hover { transform: translateY(-3px); border-color: var(--orange-line); }
.dl-card svg { width: 24px; height: 24px; margin-bottom: 10px; }
.dl-card b { font-size: 16.5px; }
.dl-card span { font-size: 13px; color: var(--ink-3); }
.dl-card.you { border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft), var(--shadow); }
.dl-card .yt { position: absolute; top: 16px; right: 16px; display: none; font: 600 10px var(--mono); letter-spacing: .06em; color: #fff; background: var(--orange); padding: 3px 8px; border-radius: 999px; }
.dl-card .yt.soon { display: inline-block; color: var(--orange-ink); background: var(--orange-soft); }
.dl-card.you .yt.here { display: inline-block; }
.os-sec { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 5vw, 64px); padding: clamp(48px, 7vw, 80px) 0; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.os-sec .ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--ink); color: var(--paper); }
.os-sec .ico svg { width: 28px; height: 28px; }
.os-sec h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 4vw, 46px); margin: 18px 0 8px; letter-spacing: -.015em; }
.os-sec .os-head p { color: var(--ink-3); font-size: 14.5px; margin: 0; }
.dl-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.dl-actions .btn svg { width: 18px; height: 18px; }
.req { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 26px; }
.req div { border-radius: 14px; background: var(--paper-2); padding: 12px 14px; font-size: 13.5px; color: var(--ink-2); }
.req b { display: block; font: 600 11px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 3px; }
.os-sec h3 { font-size: 17px; margin: 28px 0 0; }
.os-sec .fine { font-size: 13.5px; color: var(--ink-3); margin-top: 14px; }
.os-sec .fine code, .steps-list code { font: 500 12.5px var(--mono); background: var(--paper-2); padding: 2px 6px; border-radius: 6px; }
.soon-box { border-radius: 20px; border: 1px dashed var(--orange-line); background: var(--orange-soft); padding: 22px 24px; color: var(--ink-2); }
.soon-box b { color: var(--ink); }
.soon-box p { margin: 0 0 14px; }
@media (max-width: 1080px) { .dl-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) {
  .os-sec { grid-template-columns: 1fr; }
  .req { grid-template-columns: 1fr; }
}
@media (max-width: 480px) { .dl-cards { grid-template-columns: 1fr; } }
/* grid children must be allowed to shrink below long commands */
.os-sec > *, .steps-list li > *, .plat, .droid-grid > *, .doc-layout > * { min-width: 0; }
.steps-list code, .os-sec .fine code, .faq code { overflow-wrap: anywhere; }
@media (max-width: 600px) { .data-table { display: block; overflow-x: auto; } }
