/* The homepage's design system. Every variant in the design test shares this file and the markup in
   index.html; a theme (themes/<id>/theme.css) only sets the tokens below and adds its own decoration.
   See themes/README.md for the contract. Guides and the other pages keep /styles.css. */

:root {
  /* Surfaces */
  --bg: #faf8f5;
  --bg-alt: #f1ede6;
  --surface: #ffffff;
  --surface-2: #f5f2ec;
  --ink: #1c1a17;
  --ink-2: #5e5a53;
  --rule: color-mix(in srgb, var(--ink) 14%, transparent);
  --accent: #1c1a17;
  --on-accent: #faf8f5;
  --link: var(--ink);
  --error-ink: #b3261e;           /* form errors */
  --on-state: #141414;            /* text on a state or agent colour (the voice steps' numbers) */
  /* Dark bands (the .dark sections) */
  --band: #14120f;
  --band-ink: #f4efe6;
  --band-ink-2: #b4ada1;
  --band-surface: #221f1a;
  --band-rule: color-mix(in srgb, var(--band-ink) 16%, transparent);
  --band-accent: var(--accent);   /* buttons inside dark bands */
  --band-on-accent: var(--on-accent);
  /* Hero */
  --hero-bg: var(--bg);
  --hero-ink: var(--ink);
  --hero-ink-2: var(--ink-2);
  /* Ambient's own colours: agents and states. Themes may retune them for contrast, never swap their meaning. */
  --claude: #d97757;
  --codex: #10a37f;
  --gemini: #4f8df7;
  --waiting: #f5a524;
  --done: #3fb950;
  --error: #f85149;
  /* Type */
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --font-label: var(--font-mono);
  --display-weight: 400;
  --display-style: normal;
  --display-transform: none;
  --display-tracking: -0.02em;
  --display-leading: 1.04;
  --h1-size: clamp(44px, 7.2vw, 104px);
  --h2-size: clamp(34px, 4.6vw, 58px);
  --h3-size: 23px;
  --body-size: 17px;
  --body-leading: 1.55;
  --label-size: 12px;
  --label-tracking: 0.16em;
  --label-transform: uppercase;
  --label-weight: 500;
  --label-color: var(--ink-2);
  /* Shape */
  --radius: 6px;
  --radius-sm: 4px;
  --radius-btn: 4px;
  --border: 1px solid var(--rule);
  --card-shadow: none;
  --btn-shadow: none;
  /* Texture: background layers painted over --bg (grain, ruled paper, halftone). */
  --texture: none;                /* layers with position/size are fine: it's used as background: var(--texture), var(--bg) */
  --band-texture: none;
  /* Layout */
  --wrap: 1120px;
  --gutter: 22px;
  --section-pad: 120px;
  --hero-pad: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.32, 1.28, 0.5, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* A variant other than the default loads its stylesheet first; the loader lifts this when it's in. */
html.theming body { visibility: hidden; }
body {
  margin: 0; font-family: var(--font-body); font-size: var(--body-size); line-height: var(--body-leading);
  color: var(--ink); background: var(--texture), var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
code, kbd { font-family: var(--font-mono); font-size: 0.88em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }
.hidden { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Type roles */
h1, h2 {
  font-family: var(--font-display); font-weight: var(--display-weight); font-style: var(--display-style);
  text-transform: var(--display-transform); letter-spacing: var(--display-tracking); line-height: var(--display-leading);
  text-wrap: balance;
}
h1 { font-size: var(--h1-size); margin: 0 0 24px; }
h2 { font-size: var(--h2-size); margin: 0 0 18px; }
h3 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--h3-size); line-height: 1.15; margin: 0 0 8px; }
.kicker {
  font-family: var(--font-label); font-size: var(--label-size); letter-spacing: var(--label-tracking);
  text-transform: var(--label-transform); font-weight: var(--label-weight); color: var(--label-color); margin: 0 0 18px;
}
.section-lede { font-size: clamp(18px, 1.9vw, 21px); color: var(--ink-2); max-width: 680px; margin: 0 0 56px; line-height: 1.5; }
.center .section-lede { margin-left: auto; margin-right: auto; }
p.body { color: var(--ink-2); font-size: 18px; margin: 0 0 18px; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: var(--border); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { flex: none; display: flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--font-display); font-size: 22px; text-decoration: none; }
.brand img { width: 24px; height: 24px; border-radius: 6px; }
.nav-links { display: flex; gap: 18px; min-width: 0; margin-left: auto; font-family: var(--font-label); font-size: 13px; letter-spacing: 0.04em; }
.nav-links a { color: var(--ink-2); text-decoration: none; white-space: nowrap; }
@media (max-width: 1180px) { .nav-links a.wide { display: none; } }
.nav-links a:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px;
  font-family: var(--font-label); font-size: 15px; font-weight: 600; letter-spacing: 0.04em;
  border: 0; border-radius: var(--radius-btn); cursor: pointer; padding: 14px 26px;
  background: var(--accent); color: var(--on-accent); box-shadow: var(--btn-shadow); text-decoration: none;
  transition: transform 0.2s var(--ease), filter 0.2s var(--ease);
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn.small { min-height: 36px; padding: 8px 16px; font-size: 13px; }
.link-btn { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.copy-code { font: inherit; color: inherit; background: var(--surface-2); border: var(--border); border-radius: var(--radius-sm); padding: 5px 8px 5px 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; max-width: 100%; }
.copy-code code { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.copy-code span { font-family: var(--font-label); font-size: 12px; font-weight: 600; min-width: 46px; text-align: left; }

/* Hero. html[data-hero] picks the arrangement of the theme's art (#motif) and the copy:
   stack (art above copy, centred), split (copy left, art right), under (copy above art). */
.hero { position: relative; overflow: hidden; background: var(--hero-texture, var(--texture)), var(--hero-bg); color: var(--hero-ink); padding: var(--hero-pad) 0 calc(var(--hero-pad) + 16px); }
.hero .wrap { position: relative; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-art { position: relative; min-height: 120px; }
.hero-art svg, .hero-art canvas { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.hero-copy .lede { font-size: clamp(19px, 2vw, 23px); line-height: 1.5; color: var(--hero-ink-2); max-width: 680px; margin: 0 0 32px; }
.hero .kicker { color: var(--hero-ink-2); }
.cta-row { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.trust { font-size: 15px; color: var(--hero-ink); margin: 24px 0 0; }
.fineprint { font-size: 14px; color: var(--hero-ink-2); margin: 12px 0 0; }
.hero .link-btn { color: var(--hero-ink); }

:where(html[data-hero="stack"]) .hero-grid, :where(html[data-hero="under"]) .hero-grid, :where(html:not([data-hero])) .hero-grid { text-align: center; }
:where(html[data-hero="stack"]) .hero-copy .lede, :where(html[data-hero="under"]) .hero-copy .lede, :where(html:not([data-hero])) .hero-copy .lede { margin-left: auto; margin-right: auto; }
:where(html[data-hero="stack"]) .cta-row, :where(html[data-hero="under"]) .cta-row, :where(html:not([data-hero])) .cta-row { justify-content: center; }
:where(html[data-hero="under"]) .hero-art { order: 2; }
:where(html[data-hero="split"]) .hero-grid { grid-template-columns: 1.05fr 1fr; text-align: left; }
:where(html[data-hero="split"]) .hero-art { order: 2; }
@media (max-width: 860px) {
  :where(html[data-hero="split"]) .hero-grid { grid-template-columns: 1fr; }
  :where(html[data-hero="split"]) .hero-art { order: -1; }
}

/* The product demo: a MacBook whose notch runs through Ambient's states. It stays a faithful picture of
   the app in every theme; themes may only change its frame (--device-*). */
.demo { margin: 0 auto 64px; overflow-x: clip; padding: 0 2%; }
.macbook { container-type: inline-size; position: relative; width: min(820px, 100%); margin: 0 auto; }
.lid { background: #0b0b0c; border-radius: 3.4cqw 3.4cqw 0.9cqw 0.9cqw; padding: 1.5cqw 1.5cqw 2.3cqw; box-shadow: inset 0 0 0 0.25cqw #2c2c2e, 0 0 0 0.3cqw var(--device-edge, #8e8e93), 0 3cqw 8cqw rgba(0, 0, 0, 0.35); }
.display { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 1.8cqw 1.8cqw 0.3cqw 0.3cqw; background: var(--device-wallpaper, linear-gradient(160deg, #1b2440 0%, #2c1f45 55%, #3a2230 100%)); }
.base { position: relative; width: 116%; margin-left: -8%; height: 2.4cqw; background: linear-gradient(#e8e8ed, #b7b8bd 35%, #6e6e73); border-radius: 0.3cqw 0.3cqw 8cqw 8cqw / 0.3cqw 0.3cqw 1.8cqw 1.8cqw; }
.base .scoop { position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 15cqw; height: 0.9cqw; background: linear-gradient(#8e8f94, #c7c8cc); border-radius: 0 0 1cqw 1cqw; }
.menubar { height: 3.9cqw; display: flex; align-items: center; gap: 2.2cqw; padding: 0 2cqw; font: 500 1.55cqw/1 -apple-system, BlinkMacSystemFont, sans-serif; color: rgba(255, 255, 255, 0.92); background: rgba(255, 255, 255, 0.08); }
.menubar .dim { color: rgba(255, 255, 255, 0.7); font-weight: 400; }
.menubar .right { margin-left: auto; display: flex; gap: 1.7cqw; align-items: center; }
.menubar .status-orb { width: 1.2cqw; height: 1.2cqw; border-radius: 50%; background: var(--state, var(--claude)); box-shadow: 0 0 1cqw var(--state, var(--claude)); transition: background 0.6s var(--ease); }
.island { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 36cqw; height: 3.9cqw; background: #000; color: #fff; font-family: -apple-system, BlinkMacSystemFont, sans-serif; border-radius: 0 0 1.7cqw 1.7cqw; overflow: hidden; transition: width 0.55s var(--spring), height 0.55s var(--spring), border-radius 0.55s var(--spring); }
.island.open { width: 56cqw; height: 13.5cqw; border-radius: 0 0 3.2cqw 3.2cqw; box-shadow: 0 2.2cqw 5cqw rgba(0, 0, 0, 0.5); }
.island .wings { position: absolute; inset: 0 0 auto 0; height: 3.9cqw; display: flex; align-items: center; justify-content: space-between; padding: 0 2cqw; transition: opacity 0.25s var(--ease); }
.island.open .wings { opacity: 0; }
.island .timer { font: 600 1.45cqw/1 -apple-system, sans-serif; color: var(--state, var(--claude)); font-variant-numeric: tabular-nums; }
.island .bloom { position: absolute; left: 0; right: 0; top: 3.9cqw; bottom: 0; display: flex; align-items: center; gap: 1.7cqw; padding: 0 2.9cqw; opacity: 0; transition: opacity 0.25s var(--ease); text-align: left; }
.island.open .bloom { opacity: 1; transition-delay: 0.18s; }
.island .orb { width: 1.45cqw; height: 1.45cqw; box-shadow: 0 0 1.2cqw var(--state, var(--claude)); }
.island .orb.big { width: 2.7cqw; height: 2.7cqw; }
.island .orb.check::after, .island .orb.bang::after { font-size: 1.6cqw; line-height: 2.7cqw; }
.bloom .title { display: flex; align-items: center; gap: 1cqw; font-weight: 600; font-size: 1.7cqw; }
.bloom .tag { font: 700 1.1cqw/1 -apple-system, sans-serif; letter-spacing: 0.06em; padding: 0.35cqw 0.7cqw; border-radius: 99px; }
.bloom .msg { font-size: 1.5cqw; color: rgba(255, 255, 255, 0.7); margin-top: 0.35cqw; }
.bloom .elapsed { margin-left: auto; font-size: 1.45cqw; color: rgba(255, 255, 255, 0.45); }
.term { position: absolute; left: 5.8cqw; top: 8.5cqw; width: 52cqw; text-align: left; border-radius: 1.4cqw; background: rgba(24, 24, 27, 0.94); border: 0.12cqw solid rgba(255, 255, 255, 0.1); box-shadow: 0 3cqw 6cqw rgba(0, 0, 0, 0.5); }
.term-bar { height: 3.4cqw; display: flex; align-items: center; gap: 0.85cqw; padding: 0 1.5cqw; font: 1.45cqw/1 -apple-system, sans-serif; color: rgba(255, 255, 255, 0.45); }
.term-bar i { width: 1.3cqw; height: 1.3cqw; border-radius: 50%; background: #ff5f57; display: block; }
.term-bar i:nth-child(2) { background: #febc2e; }
.term-bar i:nth-child(3) { background: #28c840; margin-right: 1cqw; }
.term pre { margin: 0; padding: 0.7cqw 1.9cqw 1.9cqw; font: 1.5cqw/1.65 ui-monospace, Menlo, monospace; color: rgba(255, 255, 255, 0.85); white-space: pre-wrap; }
.term .p { color: #3fb950; }
.term .c { color: #d97757; }
.island-caption { display: none; align-items: center; gap: 8px; margin: 22px 0 0; font-size: 15px; color: var(--ink-2); justify-content: center; }
.island-caption .dot { background: var(--state, var(--claude)); }

.orb { display: inline-block; position: relative; width: 12px; height: 12px; border-radius: 50%; background: var(--state, var(--claude)); box-shadow: 0 0 10px var(--state, var(--claude)); flex: none; transition: background 0.4s var(--ease); }
.orb.breathe { animation: breathe 3.2s ease-in-out infinite; }
.orb.pulse { animation: breathe 1.2s ease-in-out infinite; }
.orb.big { width: 22px; height: 22px; }
.orb.check::after, .orb.bang::after { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(0, 0, 0, 0.85); font: 900 13px/22px -apple-system, sans-serif; }
.orb.check::after { content: "✓"; }
.orb.bang::after { content: "!"; }
@keyframes breathe { 0%, 100% { transform: scale(0.9); } 50% { transform: scale(1.08); } }

/* Sections */
section { padding: var(--section-pad) 0; position: relative; }
.alt { background: var(--texture), var(--bg-alt); }
.dark { background: var(--band-texture), var(--band); color: var(--band-ink); --ink: var(--band-ink); --ink-2: var(--band-ink-2); --rule: var(--band-rule); --surface: var(--band-surface); --surface-2: var(--band-surface); --label-color: var(--band-ink-2); --link: var(--band-ink); --accent: var(--band-accent); --on-accent: var(--band-on-accent); }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card { background: var(--surface); border: var(--border); border-radius: var(--radius); box-shadow: var(--card-shadow); padding: 30px 26px; text-align: left; }
.card p { color: var(--ink-2); margin: 0; font-size: 15.5px; }
.card .orb { display: block; margin-bottom: 22px; }
.states .card { min-height: 200px; border-top: 4px solid var(--state); }
.split { display: grid; gap: 56px; grid-template-columns: 1fr 1fr; align-items: center; text-align: left; }
.dest { list-style: none; padding: 0; margin: 0; background: var(--surface); border: var(--border); border-radius: var(--radius); box-shadow: var(--card-shadow); overflow: hidden; }
.dest li { display: flex; align-items: center; gap: 14px; padding: 17px 22px; border-top: var(--border); font-size: 16px; }
.dest li:first-child { border-top: 0; }
.dest .where { margin-left: auto; color: var(--ink-2); font-family: var(--font-label); font-size: 13px; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; display: inline-block; }

/* Notification banners (a picture of macOS, so they keep the system look) */
.wallpaper { border-radius: var(--radius); padding: 28px; background: var(--device-wallpaper-light, linear-gradient(135deg, #9ec2f5, #f3c7d9)); border: var(--border); }
.banners { display: grid; gap: 12px; }
.banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 20px; background: rgba(255, 255, 255, 0.78); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12); color: #1d1d1f; font-family: -apple-system, BlinkMacSystemFont, sans-serif; text-align: left; }
.banner img { width: 36px; height: 36px; border-radius: 8px; }
.banner .b-title { font-weight: 600; font-size: 14px; display: flex; gap: 8px; }
.banner .b-title span { margin-left: auto; font-weight: 400; color: #6e6e73; font-size: 12px; }
.banner .b-sub { font-size: 13px; font-weight: 500; }
.banner .b-body { font-size: 13px; color: #6e6e73; }

/* Dock glow */
.dock-stage { position: relative; height: 300px; border-radius: var(--radius); overflow: hidden; background: var(--device-wallpaper, linear-gradient(160deg, #1b2440, #2c1f45 60%, #3a2230)); }
.dock-glow { position: absolute; left: 0; right: 0; bottom: 0; height: 170px; background: linear-gradient(to top, var(--dock, var(--claude)), transparent); opacity: 0.7; transition: background 0.8s var(--ease); animation: glow 3.2s ease-in-out infinite; }
.dock-pill { position: absolute; left: 50%; bottom: 22px; width: 380px; height: 50px; transform: translateX(-50%); border-radius: 30px; background: var(--dock, var(--claude)); filter: blur(20px); transition: background 0.8s var(--ease); animation: glow 3.2s ease-in-out infinite; }
@keyframes glow { 0%, 100% { opacity: 0.45; } 50% { opacity: 0.95; } }
.dock { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; gap: 10px; padding: 9px 12px; border-radius: 22px; background: rgba(255, 255, 255, 0.22); border: 1px solid rgba(255, 255, 255, 0.3); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.dock i, .dock img { width: 44px; height: 44px; border-radius: 11px; display: block; }
.chips { display: flex; gap: 8px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.chip { font-family: var(--font-label); font-size: 14px; min-height: 44px; padding: 8px 16px; border-radius: var(--radius-btn); border: var(--border); background: transparent; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--band, var(--bg)); }
.dark .chip[aria-pressed="true"] { background: var(--band-ink); color: var(--band); }

/* Window-edge glow, as in the app (GlowStyle). main.js sets data-edge on <html>. */
@property --edge { syntax: "<color>"; inherits: true; initial-value: #d97757; }
:root { transition: --edge 0.8s var(--ease); }
:root[data-edge="working"] { --edge: var(--claude); }
:root[data-edge="waiting"] { --edge: var(--waiting); }
:root[data-edge="done"] { --edge: var(--done); }
:root[data-edge="error"] { --edge: var(--error); }
.edge-glow { position: fixed; left: 0; right: 0; z-index: 19; pointer-events: none; opacity: 0; }
.edge-glow.bottom { bottom: 0; height: 90px; background: radial-gradient(ellipse 32% 70% at 50% 100%, color-mix(in srgb, var(--edge) 70%, transparent), transparent 72%); }
.edge-glow.top { top: 60px; height: 60px; background: radial-gradient(ellipse 26% 100% at 50% 0, color-mix(in srgb, var(--edge) 80%, transparent), transparent 75%); }
[data-edge] .edge-glow { opacity: var(--edge-strength, 0.45); }
[data-edge="waiting"] .edge-glow { animation: edge-waiting 0.6s ease-in-out infinite alternate; }
@keyframes edge-waiting { from { opacity: 0.2; } to { opacity: var(--edge-strength, 0.45); } }
@media print { .edge-glow { display: none; } }

/* Living wallpaper demo */
.scene-demo { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: #03040c; }
.scene-demo canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scene-notch { position: absolute; top: 0; left: 50%; width: 13%; height: 3.6%; transform: translateX(-50%); background: #000; border-radius: 0 0 10px 10px; z-index: 2; }
.scene-island { position: absolute; top: 0; left: 50%; width: 29%; height: 34%; z-index: 1; transform: translateX(-50%) scale(0.45, 0.106); transform-origin: top center; opacity: 0; background: rgba(24, 24, 28, 0.42); backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%); border: 1px solid rgba(255, 255, 255, 0.12); border-top: 0; border-radius: 0 0 22px 22px; transition: transform 0.42s var(--spring), opacity 0.2s var(--ease); }
.scene-demo.open .scene-island { transform: translateX(-50%) scale(1); opacity: 1; }
.scene-menu { position: absolute; inset: 13% 7% 10%; display: grid; gap: 7%; align-content: start; opacity: 0; transition: opacity 0.2s var(--ease); }
.scene-demo.open .scene-menu { opacity: 1; transition-delay: 0.18s; }
.scene-menu .row { display: flex; align-items: center; gap: 6%; }
.scene-menu .dot { width: 9px; height: 9px; }
.scene-menu .line { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.55); }
.scene-menu .line.w20 { width: 12%; margin-left: auto; background: rgba(255, 255, 255, 0.3); }
.scene-menu .w40 { width: 40%; } .scene-menu .w50 { width: 50%; } .scene-menu .w60 { width: 60%; } .scene-menu .w70 { width: 66%; }
.scene-controls { position: relative; display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: center; align-items: center; margin-top: 24px; }
.scene-controls .chips { margin-top: 0; }
.scene-controls button { position: relative; overflow: hidden; }
.scene-controls button.tapping { transform: scale(0.94); }
.tap-ripple { position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: rgba(255, 255, 255, 0.55); pointer-events: none; animation: tap-ripple 0.55s var(--ease) forwards; }
@keyframes tap-ripple { from { transform: scale(0); opacity: 0.9; } to { transform: scale(10); opacity: 0; } }
.tour-finger { position: absolute; left: 0; top: 0; width: 30px; height: 30px; margin: -15px 0 0 -15px; z-index: 3; pointer-events: none; border-radius: 50%; background: rgba(255, 255, 255, 0.28); border: 2px solid rgba(255, 255, 255, 0.85); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); opacity: 0; transition: transform 0.42s var(--ease), opacity 0.25s var(--ease), scale 0.15s var(--ease); }
.tour-finger.shown { opacity: 1; }
.tour-finger.press { scale: 0.78; }
.scene-hint { margin: 14px 0 0; font-size: 14px; color: var(--ink-2); }
.wallpaper-features { margin-top: 56px; grid-template-columns: repeat(4, 1fr); }

/* Voice */
.voice-tablist { display: none; }
.voice.tabs-on .voice-tablist { display: inline-flex; gap: 4px; padding: 4px; margin: 0 auto 36px; border: var(--border); border-radius: calc(var(--radius-btn) + 4px); background: var(--surface); }
.voice-tab { font-family: var(--font-label); font-size: 14px; min-height: 44px; padding: 8px 18px; border: 0; border-radius: var(--radius-btn); background: transparent; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.voice-tab[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.voice-panel { background: var(--surface); border: var(--border); border-radius: var(--radius); box-shadow: var(--card-shadow); padding: 44px; margin-top: 20px; }
.voice.tabs-on .voice-panel { margin-top: 0; min-height: 420px; }
.voice.tabs-on .voice-panel[hidden] { display: none; }
.voice-panel h3 { font-size: clamp(26px, 3.2vw, 36px); margin: 0 0 14px; }
.voice-steps { margin: 0 0 18px; padding: 0; list-style: none; counter-reset: step; }
.voice-steps li { counter-increment: step; position: relative; padding: 10px 0 10px 36px; border-top: var(--border); font-size: 16px; }
.voice-steps li::before { content: counter(step); position: absolute; left: 0; top: 11px; width: 24px; height: 24px; border-radius: 50%; font: 600 12px/24px var(--font-label); text-align: center; color: var(--on-state); background: var(--state); }
.voice-steps kbd { padding: 2px 7px; border-radius: var(--radius-sm); background: var(--surface-2); border: var(--border); }
.voice-note, .voice-where { color: var(--ink-2); font-size: 14px; margin: 0; }
.voice-where { margin-top: 28px; }
.voice-flow { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 40px 24px; border-radius: var(--radius); background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--state) 18%, transparent), transparent 70%), var(--surface-2); }
.voice-flow .end { font-family: var(--font-label); font-size: 14px; padding: 10px 18px; border-radius: var(--radius-btn); background: var(--surface); border: var(--border); }
.voice-flow .wave { display: flex; flex-direction: column; align-items: center; gap: 5px; height: 150px; justify-content: center; }
.voice-flow .wave i { display: block; height: 3px; width: 20px; border-radius: 3px; background: var(--state); animation: voice-wave 1.6s ease-in-out infinite; }
.voice-flow .wave i:nth-child(3n) { animation-duration: 1.1s; }
.voice-flow .wave i:nth-child(3n + 1) { animation-duration: 1.9s; }
.voice-flow .wave i:nth-child(2n) { animation-delay: -0.4s; }
.voice-flow .wave i:nth-child(4n) { animation-delay: -0.8s; }
@keyframes voice-wave { 0%, 100% { width: 14px; opacity: 0.35; } 50% { width: 92px; opacity: 1; } }

/* Agents, steps, privacy */
.agents .card { text-align: center; }
.agents .card .orb { margin: 0 auto 18px; width: 18px; height: 18px; }
.steps { list-style: none; padding: 0; margin: 0; }
.step { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin-bottom: 18px; border-radius: 50%; background: var(--ink); color: var(--bg); font: 600 15px/1 var(--font-label); }
.stat { font-family: var(--font-display); font-size: clamp(64px, 10vw, 128px); line-height: 1; margin: 0 0 6px; color: var(--accent); }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; text-align: left; }
.faq details { border-top: var(--border); padding: 20px 0; }
.faq details:last-child { border-bottom: var(--border); }
.faq summary { font-family: var(--font-display); font-size: 20px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; min-height: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-label); font-size: 22px; line-height: 1; color: var(--ink-2); transition: transform 0.2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--ink-2); margin: 12px 0 0; }

/* Guides */
.guide-list { list-style: none; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin: 40px auto 0; text-align: left; }
.guide-list a { display: block; height: 100%; background: var(--surface); border: var(--border); border-radius: var(--radius); padding: 24px; color: var(--ink); text-decoration: none; }
.guide-list a:hover { border-color: var(--ink); }
.guide-list strong { display: block; font-family: var(--font-display); font-weight: var(--display-weight); font-size: 20px; margin-bottom: 6px; }
.guide-list span { color: var(--ink-2); font-size: 15px; }
.guides-more { margin-top: 28px; }

/* Closing band */
.closing img { width: 96px; height: 96px; margin: 0 auto 24px; border-radius: 22px; }
.closing .fineprint { color: var(--band-ink-2); }

/* Footer */
footer { background: var(--bg); color: var(--ink-2); font-size: 13px; padding: 28px 0 44px; border-top: var(--border); }
footer .wrap { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--ink); }
footer .spacer { margin-left: auto; }

/* Download sheet */
dialog { border: var(--border); padding: 0; border-radius: var(--radius); width: min(440px, calc(100vw - 32px)); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); color: var(--ink); background: var(--texture), var(--bg); }
dialog::backdrop { background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
dialog[open] { animation: sheet-in 0.35s var(--spring); }
@keyframes sheet-in { from { transform: translateY(16px) scale(0.98); opacity: 0; } }
.sheet { padding: 32px 30px 28px; text-align: center; }
.sheet img.icon { width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 16px; }
.sheet h2 { font-size: 28px; margin: 0 0 8px; }
.sheet p.note { color: var(--ink-2); font-size: 14px; margin: 0 0 22px; }
.field { text-align: left; margin-bottom: 12px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin: 0 0 6px; }
.field input { width: 100%; font: inherit; font-size: 16px; min-height: 46px; padding: 11px 14px; border-radius: var(--radius-sm); border: var(--border); background: var(--surface); color: var(--ink); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.sheet .error { color: var(--error-ink); font-size: 13px; min-height: 18px; margin: 4px 0 0; text-align: left; }
.sheet .updates { border-top: var(--border); margin-top: 22px; padding-top: 20px; }
.sheet .optional { font-weight: 400; color: var(--ink-2); }
.sheet .inline { display: flex; gap: 8px; }
.sheet .inline input { flex: 1; min-width: 0; }
.sheet .inline .btn { flex: none; }
.sheet .legal { font-size: 12px; color: var(--ink-2); margin: 14px 0 0; }
.close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; font-size: 16px; }

@media (max-width: 960px) { .wallpaper-features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  :root { --section-pad: 76px; --hero-pad: 44px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .nav-links { display: none; }
  .nav .btn.small { margin-left: auto; min-height: 44px; }
  .dock i, .dock img { width: 32px; height: 32px; border-radius: 8px; }
  .dock-pill { width: 280px; }
  .island-caption { display: flex; }
  .scene-demo { aspect-ratio: 4 / 3; }
  .voice.tabs-on .voice-tablist { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .voice-panel { padding: 28px 22px; }
  .voice.tabs-on .voice-panel { min-height: 0; }
  .voice-flow .wave i:nth-child(n + 13) { display: none; }
  .copy-code code { font-size: 12px; }
  footer .spacer { margin-left: 0; }
}
@media (max-width: 520px) { .wallpaper-features { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
