/* Prompt-o-mato landing page */

:root {
  --bg: #fbfaf7;
  --bg-alt: #f3f1ec;
  --card: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --border: rgba(0, 0, 0, 0.08);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  --accent: #E5533D;
  --accent-ink: #ffffff;
  --accent-soft: rgba(229, 83, 61, 0.1);
  --green: #3FA34D;
  --soft-btn: rgba(0, 0, 0, 0.06);
  --soft-btn-hover: rgba(0, 0, 0, 0.1);
  --radius: 20px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-round: "SF Pro Rounded", ui-rounded, -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0d;
    --bg-alt: #121215;
    --card: #1a1a1e;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --border: rgba(255, 255, 255, 0.09);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.35);
    --accent: #F0644D;
    --accent-soft: rgba(240, 100, 77, 0.16);
    --soft-btn: rgba(255, 255, 255, 0.09);
    --soft-btn-hover: rgba(255, 255, 255, 0.14);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-round); letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
h2 { font-size: clamp(30px, 5vw, 48px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0; }
.nowrap { white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; justify-content: center; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 70%, transparent); outline-offset: 3px; border-radius: 8px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 760px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 17px/1 var(--font);
  padding: 15px 24px; border-radius: 999px; border: 0; cursor: pointer;
  text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:active { transform: scale(0.97); }
/* #C9412B keeps white text at 4.9:1 (WCAG AA); the brighter tomato red was 3.7:1 */
.btn-primary { background: #C9412B; color: #fff; box-shadow: 0 6px 20px rgba(201, 65, 43, 0.35); }
.btn-primary:hover { background: #B5381F; }
.btn-ghost { background: rgba(255, 255, 255, 0.1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.16); }
.btn-soft { background: var(--soft-btn); color: var(--text); }
.btn-soft:hover { background: var(--soft-btn-hover); }
.btn-small { font-size: 14px; padding: 9px 14px; }
.btn-block { width: 100%; }
.btn-ico { width: 18px; height: 18px; }

/* ---------- launch banner (LAUNCH ONLY, see script.js) ---------- */
.launch-banner {
  position: relative; z-index: 30;
  display: flex; align-items: center; justify-content: center;
  padding: 9px 48px;
  background: linear-gradient(90deg, #d8442f, #ec6a3a 55%, #f39a45);
  color: #fff; font-size: 14px; line-height: 1.4; text-align: center;
}
.launch-banner a { color: #fff; font-weight: 600; text-underline-offset: 3px; }
.launch-close {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: none; border: 0; color: #fff; cursor: pointer;
}
.launch-close:hover { background: rgba(255, 255, 255, 0.18); }
.launch-close svg { width: 14px; height: 14px; }
.was { text-decoration: line-through; opacity: 0.6; font-weight: 500; }
.launch-note {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 12px; font: 600 13px/1.2 var(--font);
  color: var(--accent);
}
.hero .launch-note { color: #ffb8aa; }
.launch-dot {
  width: 8px; height: 8px; border-radius: 50%; background: currentColor;
  box-shadow: 0 0 0 0 currentColor;
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 60%, transparent); } 100% { box-shadow: 0 0 0 8px transparent; } }

/* ---------- ripeness strip: ripens as you scroll ---------- */
.ripe-bar {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 45;
  pointer-events: none; opacity: 0; transition: opacity .3s ease;
}
.ripe-bar.on { opacity: 1; }
.ripe-fill {
  display: block; height: 100%;
  background: linear-gradient(90deg, #86B94A, #B3BE3F 25%, #E3A53A 50%, #EC7A3B 75%, #E5533D);
  clip-path: inset(0 calc((1 - var(--p, 0)) * 100%) 0 0);
}
.ripe-tip {
  position: absolute; top: -3px; left: 0;
  width: 22px; height: 22px;
  transform: translateX(calc(var(--p, 0) * (100vw - 24px)));
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 520px at 50% 92%, rgba(229, 83, 61, 0.22), transparent 70%),
    radial-gradient(700px 400px at 50% 0%, rgba(120, 70, 180, 0.16), transparent 70%),
    #050506;
  color: #f5f5f7;
  padding-bottom: clamp(48px, 7vw, 96px);
  overflow: hidden;
}
.site-nav {
  position: relative; z-index: 3;
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 24px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 17px/1 var(--font-round); letter-spacing: -0.01em; }
.brand img { border-radius: 7px; }
.nav-links { display: flex; gap: 28px; font-size: 14px; }
.nav-links a { color: #a1a1a6; text-decoration: none; transition: color .15s ease; }
.nav-links a:hover { color: #fff; }

.hero-content {
  position: relative; z-index: 2;
  text-align: center;
  padding: clamp(24px, 4vw, 52px) 24px clamp(36px, 4vw, 56px);
  max-width: 860px; margin: 0 auto;
}
.eyebrow {
  display: inline-block;
  font: 600 13px/1 var(--font);
  letter-spacing: 0.02em;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  color: #ffb8aa;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(40px, 6.4vw, 70px);
  font-weight: 800;
  letter-spacing: -0.035em;
  background: linear-gradient(180deg, #ffffff 30%, #ffd2c8 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.lede {
  margin: 22px auto 0; max-width: 640px;
  font-size: clamp(17px, 2.1vw, 20px);
  color: #c7c7cc;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; justify-content: center; }
.fine { margin-top: 16px; font-size: 13px; color: var(--muted); }
.hero .fine { color: #8e8e93; }

html.intro .hero-copy > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
html.intro .hero-copy > :nth-child(2) { animation-delay: .06s; }
html.intro .hero-copy > :nth-child(3) { animation-delay: .12s; }
html.intro .hero-copy > :nth-child(n+4) { animation-delay: .18s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ---------- the MacBook ----------
   Everything is sized from --w (the lid width), so the laptop scales as one object.
   The lid and the deck share one 3D space: the lid rotates on its bottom edge,
   the deck is a plane laid flat (rotateX 90deg) from the same hinge line. */
.macbook {
  --w: min(1040px, calc(100vw - 40px));
  --spring: cubic-bezier(.3, 1.35, .5, 1);
  position: relative; isolation: isolate;
  width: var(--w); margin: 0 auto;
}
.mb-glow {
  position: absolute; z-index: -1;
  left: -15%; right: -15%; top: 10%; bottom: -10%;
  background: radial-gradient(closest-side, rgba(229, 83, 61, 0.28), rgba(229, 83, 61, 0.08) 55%, transparent);
  pointer-events: none;
}
.mb-stage {
  position: relative;
  perspective: calc(var(--w) * 12);
  perspective-origin: 50% calc(var(--w) * -1);
  transform-style: preserve-3d;
  margin-bottom: calc(var(--w) * 0.12);
}
.mb-lid {
  position: relative;
  transform-origin: 50% 100%;
  transform-style: preserve-3d;
}
.mb-lid-front {
  position: relative;
  padding: calc(var(--w) * 0.0125) calc(var(--w) * 0.0125) calc(var(--w) * 0.024);
  border-radius: calc(var(--w) * 0.03) calc(var(--w) * 0.03) calc(var(--w) * 0.007) calc(var(--w) * 0.007);
  background: linear-gradient(180deg, #111113, #0a0a0b 40%);
  box-shadow:
    0 0 0 calc(var(--w) * 0.0022) #6d6e74,
    0 0 0 calc(var(--w) * 0.0042) #2b2b2f,
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  backface-visibility: hidden;
}
.mb-lid-back {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  border-radius: calc(var(--w) * 0.03) calc(var(--w) * 0.03) calc(var(--w) * 0.007) calc(var(--w) * 0.007);
  background: linear-gradient(180deg, #d5d7db, #a9abb1);
  transform: rotateX(180deg);
  backface-visibility: hidden;
}
.mb-lid-back svg { width: calc(var(--w) * 0.07); height: auto; color: rgba(255, 255, 255, 0.8); transform: scaleY(-1); }

.mb-hinge {
  position: absolute; left: 50%; top: calc(100% - var(--w) * 0.003);
  width: calc(var(--w) * 0.86); height: calc(var(--w) * 0.007);
  transform: translateX(-50%);
  border-radius: 0 0 calc(var(--w) * 0.006) calc(var(--w) * 0.006);
  background: linear-gradient(180deg, #3a3a3f, #111113);
}
.mb-base {
  position: absolute; left: 0; top: 100%;
  width: var(--w); height: calc(var(--w) * 0.69);
  transform-origin: 50% 0;
  transform: rotateX(90deg);
  transform-style: preserve-3d;
}
.mb-deck {
  position: absolute; inset: 0;
  border-radius: calc(var(--w) * 0.01) calc(var(--w) * 0.01) calc(var(--w) * 0.032) calc(var(--w) * 0.032);
  background:
    linear-gradient(180deg, #4b4c51 0, #8f9197 calc(var(--w) * 0.012), #c6c8cd calc(var(--w) * 0.05), #d8dade 55%, #cfd1d5 100%);
}
.mb-keys {
  position: absolute; left: 13%; right: 13%;
  top: calc(var(--w) * 0.045); height: calc(var(--w) * 0.29);
  border-radius: calc(var(--w) * 0.007);
  background-color: #29292c;
  background-image:
    linear-gradient(90deg, #121214 0 9%, transparent 9%),
    linear-gradient(180deg, #121214 0 13%, transparent 13%);
  background-size: calc(100% / 14.5) 100%, 100% calc(100% / 6);
  box-shadow: 0 0 0 calc(var(--w) * 0.003) #121214;
}
.mb-speaker {
  position: absolute; top: calc(var(--w) * 0.045); height: calc(var(--w) * 0.29); width: 8%;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.28) 32%, transparent 38%) 0 0 / calc(var(--w) * 0.007) calc(var(--w) * 0.007);
  opacity: 0.8;
}
.mb-speaker-l { left: 3%; }
.mb-speaker-r { right: 3%; }
.mb-trackpad {
  position: absolute; left: 30.5%; right: 30.5%;
  top: calc(var(--w) * 0.375); height: calc(var(--w) * 0.27);
  border-radius: calc(var(--w) * 0.014);
  background: linear-gradient(180deg, #dcdee2, #cfd2d6);
  box-shadow: inset 0 0 0 calc(var(--w) * 0.0018) rgba(0, 0, 0, 0.2), inset 0 calc(var(--w) * 0.003) 0 rgba(255, 255, 255, 0.55);
}
.mb-front {
  position: absolute; left: 0; right: 0; top: 100%;
  height: calc(var(--w) * 0.014);
  transform-origin: 50% 0;
  transform: rotateX(-90deg);
  border-radius:
    calc(var(--w) * 0.03) calc(var(--w) * 0.03) calc(var(--w) * 0.03) calc(var(--w) * 0.03) /
    calc(var(--w) * 0.004) calc(var(--w) * 0.004) calc(var(--w) * 0.011) calc(var(--w) * 0.011);
  background: linear-gradient(180deg, #eceef1 0%, #b4b6bb 35%, #808287 80%, #5e6065);
}
.mb-thumb {
  position: absolute; left: 50%; top: 0;
  width: calc(var(--w) * 0.11); height: 48%;
  transform: translateX(-50%);
  border-radius: 0 0 calc(var(--w) * 0.03) calc(var(--w) * 0.03) / 0 0 calc(var(--w) * 0.007) calc(var(--w) * 0.007);
  background: linear-gradient(180deg, #8d8f95, #b9bbc0);
}
.mb-shadow {
  position: relative; z-index: -1;
  width: calc(var(--w) * 1.16); height: calc(var(--w) * 0.07);
  margin: calc(var(--w) * -0.05) 0 0 calc(var(--w) * -0.08);
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.35) 60%, transparent);
}

/* Lid opens on load (html.intro is set in the head unless reduced motion) */
html.intro .mb-lid { animation: lid-open 1.9s cubic-bezier(.25, .8, .25, 1) .2s both; }
@keyframes lid-open {
  0% { transform: rotateX(-89deg); }
  72% { transform: rotateX(2deg); }
  100% { transform: rotateX(0deg); }
}
html.intro .screen::after { animation: screen-on 1s ease 1.1s both; }
/* Held closed until the laptop is on screen (script.js adds .lid-go) */
html.intro:not(.lid-go) .mb-lid, html.intro:not(.lid-go) .screen::after { animation-play-state: paused; }
@keyframes screen-on { from { opacity: 1; } to { opacity: 0; } }

/* ---------- the screen (sized in cqw so it scales like a picture) ---------- */
.screen {
  position: relative;
  aspect-ratio: 1.54;
  overflow: hidden;
  container: screen / inline-size;
  isolation: isolate;
  border-radius: calc(var(--w) * 0.017) calc(var(--w) * 0.017) calc(var(--w) * 0.003) calc(var(--w) * 0.003);
  background:
    radial-gradient(60% 60% at 14% 96%, rgba(255, 196, 140, 0.95), transparent 70%),
    radial-gradient(50% 55% at 92% 88%, rgba(255, 98, 92, 0.8), transparent 70%),
    radial-gradient(70% 55% at 66% 14%, rgba(160, 80, 210, 0.5), transparent 70%),
    linear-gradient(172deg, #1d0f35 0%, #4b1a56 30%, #a83358 58%, #ea6f50 80%, #ffbb86 100%);
}
.screen::before {
  /* soft dunes */
  content: ""; position: absolute; z-index: -1;
  left: -20%; right: -20%; bottom: -46%; height: 78%;
  border-radius: 50%;
  background: radial-gradient(60% 45% at 50% 18%, rgba(255, 220, 190, 0.45), rgba(255, 150, 120, 0.12) 60%, transparent 75%);
  box-shadow: 0 -2cqw 6cqw rgba(255, 180, 140, 0.12);
}
.screen::after {
  content: ""; position: absolute; inset: 0; z-index: 20;
  background: #000; opacity: 0; pointer-events: none;
}

.menubar, .island, .dock, .desk-tomato { --k: 1; --mk: 1; }
.menubar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3;
  height: calc(2.5cqw * var(--mk));
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.4cqw;
  font-size: calc(1.16cqw * var(--mk));
  color: #fff;
  background: rgba(24, 10, 34, 0.26);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  white-space: nowrap;
}
.menubar-left, .menubar-right { display: flex; align-items: center; gap: calc(1.55cqw * var(--mk)); }
.menubar-left span { opacity: 0.92; }
.menubar strong { font-weight: 700; }
.mb-apple { height: calc(1.3cqw * var(--mk)); width: auto; margin-right: .2cqw; }
.mb-glyph { height: calc(1.2cqw * var(--mk)); width: auto; }
.mb-tomato { height: calc(1.55cqw * var(--mk)); }
#clock { font-variant-numeric: tabular-nums; }

/* The island */
.island {
  position: absolute; top: 0; left: 50%; z-index: 5;
  width: calc(13.2cqw * var(--mk)); height: calc(2.5cqw * var(--mk));
  max-width: 96cqw;
  transform: translateX(-50%);
  background: #000;
  border-radius: 0 0 calc(1.1cqw * var(--mk)) calc(1.1cqw * var(--mk));
  overflow: hidden;
  transition:
    width .62s var(--spring),
    height .62s var(--spring),
    border-radius .62s var(--spring),
    box-shadow .4s ease;
}
.island.peek { width: calc(21cqw * var(--mk)); }
.island.open {
  width: calc(40cqw * var(--k));
  height: calc(8.6cqw * var(--k));
  border-radius: 0 0 calc(3cqw * var(--k)) calc(3cqw * var(--k));
  box-shadow: 0 1.6cqw 3.6cqw rgba(0, 0, 0, 0.45);
}
.cam {
  position: absolute; top: calc(1.25cqw * var(--mk)); left: 50%;
  width: calc(.6cqw * var(--mk)); height: calc(.6cqw * var(--mk));
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #3a4a6a, #0b0f18 60%);
}
.island-peek {
  position: absolute; left: 0; right: 0; top: 0;
  height: calc(2.5cqw * var(--mk));
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 calc(1.1cqw * var(--mk)) 0 calc(.7cqw * var(--mk));
  font: 600 calc(1.15cqw * var(--mk))/1 var(--font-round);
  color: #ff9d8c;
  font-variant-numeric: tabular-nums;
  opacity: 0;
  transition: opacity .2s ease;
}
.island.peek .island-peek { opacity: 1; transition-delay: .18s; }
.island-peek svg { width: calc(2cqw * var(--mk)); height: calc(2cqw * var(--mk)); }
.island-inner {
  position: absolute; left: 0; right: 0; bottom: 0;
  top: calc(2.5cqw * var(--mk));
  display: flex; align-items: center; gap: calc(1.2cqw * var(--k));
  padding: 0 calc(1.7cqw * var(--k)) calc(.5cqw * var(--k)) calc(1.4cqw * var(--k));
  opacity: 0;
  transform: translateY(-6px) scale(0.96);
  transition: opacity .18s ease, transform .18s ease;
}
.island.open .island-inner {
  opacity: 1; transform: none;
  transition: opacity .3s ease .22s, transform .45s var(--spring) .18s;
}
.island-face { flex: none; width: calc(4.8cqw * var(--k)); height: calc(4.8cqw * var(--k)); }
.island-face svg { width: 100%; height: 100%; }
.island-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; text-align: left; }
.island-text strong { font: 700 calc(1.48cqw * var(--k))/1.25 var(--font-round); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.island-text span { font-size: calc(1.22cqw * var(--k)); color: #a1a1a6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.island-btn {
  flex: none;
  font: 600 calc(1.2cqw * var(--k))/1 var(--font);
  padding: calc(.85cqw * var(--k)) calc(1.3cqw * var(--k)); border-radius: 999px;
  background: var(--accent); color: #fff;
}
.island-btn-blue { background: #0A84FF; }
.island-btn-green { background: #30D158; color: #04210c; }
.island-btn-soft { background: rgba(255, 255, 255, 0.14); }
.eq { flex: none; display: flex; align-items: flex-end; gap: calc(.3cqw * var(--k)); height: calc(2.2cqw * var(--k)); padding-right: .3cqw; }
.eq i { width: calc(.4cqw * var(--k)); height: 30%; background: #ff9d8c; border-radius: 2px; animation: eq 0.9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -0.3s; }
.eq i:nth-child(3) { animation-delay: -0.6s; }
.eq i:nth-child(4) { animation-delay: -0.15s; }
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }

/* The tomato on the desktop: peeks from the right edge like the app's edge mode */
.desk-tomato {
  position: absolute; z-index: 2;
  right: calc(-2.2cqw * var(--k)); top: 38%;
  width: calc(11cqw * var(--k));
}
.desk-tomato-btn {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer;
  transform: rotate(-14deg);
  transition: transform .45s var(--spring);
  animation: breathe 4.2s ease-in-out infinite;
}
.desk-tomato-btn:hover { transform: rotate(-20deg) translateX(-1.2cqw); }
.desk-tomato-btn.poked { animation: poke .55s var(--spring); }
.desk-tomato-btn svg { width: 100%; height: auto; filter: drop-shadow(0 1cqw 1.4cqw rgba(60, 0, 20, 0.45)); }
@keyframes breathe { 0%, 100% { translate: 0 0; } 50% { translate: 0 -0.5cqw; } }
@keyframes poke { 0% { scale: 1; } 30% { scale: 1.12 0.9; } 60% { scale: 0.95 1.06; } 100% { scale: 1; } }
.bubble {
  position: absolute; right: 88%; top: 2%;
  width: max-content; max-width: calc(24cqw * var(--k));
  padding: calc(.8cqw * var(--k)) calc(1.2cqw * var(--k));
  border-radius: calc(1.3cqw * var(--k)) calc(1.3cqw * var(--k)) calc(.3cqw * var(--k)) calc(1.3cqw * var(--k));
  background: rgba(255, 255, 255, 0.94); color: #1d1d1f;
  font: 600 calc(1.2cqw * var(--k))/1.3 var(--font-round);
  box-shadow: 0 .8cqw 2cqw rgba(40, 0, 20, 0.25);
  opacity: 0; transform: scale(0.7) translateY(0.6cqw); transform-origin: 100% 100%;
  transition: opacity .2s ease, transform .4s var(--spring);
  pointer-events: none;
}
.bubble.show { opacity: 1; transform: none; }
.desk-shadow { display: none; }

.dock {
  position: absolute; z-index: 2; left: 50%; bottom: .7cqw;
  transform: translateX(-50%);
  display: flex; gap: calc(.6cqw * var(--k));
  padding: calc(.55cqw * var(--k));
  border-radius: calc(1.6cqw * var(--k));
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), 0 1cqw 3cqw rgba(40, 0, 20, 0.25);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
}
.dock i, .dock img { display: block; width: calc(3.5cqw * var(--k)); height: calc(3.5cqw * var(--k)); border-radius: calc(.85cqw * var(--k)); }
.dock img { border-radius: calc(.85cqw * var(--k)); }
.dock .d1 { background: linear-gradient(90deg, #2f8ff0 50%, #e9f2fc 50%); }
.dock .d2 { background: radial-gradient(circle, #fff 0 18%, transparent 19%), radial-gradient(circle, #1f8bf5 0 62%, #e9f0f9 63%); }
.dock .d3 { background: radial-gradient(60% 50% at 50% 46%, #fff 0 60%, transparent 62%), linear-gradient(#5ee36f, #28c840); }
.dock .d4 { background: linear-gradient(160deg, #ff6b83, #fb2c4f); }
.dock .d5 { background: linear-gradient(#ff453a 0 30%, #fff 30%); }
.dock .d6 { background: linear-gradient(#ffd84d 0 26%, #fffbea 26%); }

@container screen (max-width: 760px) {
  .mb-hide2 { display: none; }
}
@container screen (max-width: 520px) {
  .mb-hide { display: none; }
  .menubar, .island { --mk: 1.6; }
  .island { --k: 1.75; }
  .menubar strong { display: none; }
  .dock { --k: 1.35; }
  .desk-tomato { --k: 1.35; }
  .menubar { padding: 0 2.6cqw; }
}
/* footer (the night footer, .dusk, is further down) */
.footer-inner { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { border-radius: 9px; }
.footer-brand div { display: flex; flex-direction: column; line-height: 1.3; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; }
.footer-links a, .linklike { color: var(--muted); text-decoration: none; }
.footer-links a:hover, .linklike:hover { color: var(--text); }
.linklike { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.footer-copy { width: 100%; }

/* consent banner */
.consent {
  position: fixed; z-index: 40;
  left: 50%; bottom: 16px; transform: translateX(-50%);
  width: min(560px, calc(100% - 24px));
  display: flex; gap: 14px; align-items: center;
  padding: 14px 14px 14px 18px;
  background: var(--card); color: var(--text);
  border: 1px solid var(--border); border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  font-size: 14px; line-height: 1.45;
}
.consent[hidden] { display: none; }
.consent-actions { display: flex; gap: 8px; flex: none; }

/* =====================================================================
   THE FIELD
   Two modes:
   - html.scenes (script.js, motion allowed): the page is a full-screen
     stage. Scenes swap in place, the world pans in parallax.
   - no .scenes (reduced motion or no JS): the same sections on a normal
     scrolling page over a still backdrop.
   The field is an illustration with its own daylight, so it does not
   follow the light/dark color scheme. Panels are frosted glass that
   switch tint with the time of day.
   ===================================================================== */

@keyframes t-blink { 0%, 94%, 100% { transform: scaleY(1); } 96.5% { transform: scaleY(0.1); } }
@keyframes dangle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

:root {
  --top: 72px;
  --spring: cubic-bezier(.3, 1.35, .5, 1);
  --ink-day: #1d1d1f;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
[tabindex="-1"]:focus { outline: none; }
[tabindex="-1"]:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 70%, transparent); }

/* frosted glass, light by day, smoked at dawn and dusk */
.glass {
  background: rgba(255, 255, 255, .6);
  -webkit-backdrop-filter: blur(22px) saturate(1.7); backdrop-filter: blur(22px) saturate(1.7);
  border: 1px solid rgba(255, 255, 255, .6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 18px 44px rgba(20, 30, 50, .14);
  color: #1d1d1f;
}
.scenes .scene[data-tone="light"] .glass {
  background: rgba(24, 18, 44, .4);
  border-color: rgba(255, 255, 255, .16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 18px 44px rgba(10, 5, 30, .25);
  color: #fff;
}
.btn-dark { background: #1d1d1f; color: #fff; box-shadow: 0 8px 22px rgba(0, 0, 0, .22); }
.btn-dark:hover { background: #333336; }

/* ---------- top bar: launch banner + nav ---------- */
.topbar { position: relative; z-index: 30; }
html:not(.scenes) .topbar { background: #050506; }
.scenes .topbar { position: fixed; top: 0; left: 0; right: 0; }
.field-nav { max-width: none; padding: 12px clamp(16px, 3vw, 36px); color: #fff; transition: color .5s ease; }
.field-nav .brand { padding: 6px 12px 6px 6px; border-radius: 999px; transition: background-color .5s ease; }
.field-nav .nav-links { padding: 9px 18px; border-radius: 999px; transition: background-color .5s ease; }
.field-nav .nav-links a { color: inherit; opacity: .78; }
.field-nav .nav-links a:hover { color: inherit; opacity: 1; }
.btn-nav { background: #fff; color: #1d1d1f; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); }
.btn-nav:hover { background: #f1f1f1; }
.scenes .field-nav .brand, .scenes .field-nav .nav-links {
  background: rgba(20, 14, 40, .3);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
}
html.scenes[data-tone="dark"] .field-nav { color: #1d1d1f; }
html.scenes[data-tone="dark"] .field-nav .brand,
html.scenes[data-tone="dark"] .field-nav .nav-links { background: rgba(255, 255, 255, .6); }
html.scenes[data-tone="dark"] .btn-nav { background: #1d1d1f; color: #fff; }
html.scenes[data-tone="dark"] .btn-nav:hover { background: #333; }

/* ---------- the scene index (right edge) ---------- */
.scene-index { position: fixed; z-index: 26; right: clamp(8px, 1.4vw, 22px); top: 50%; transform: translateY(-50%); }
.scene-index ol {
  list-style: none; margin: 0; padding: 8px 5px; display: flex; flex-direction: column; gap: 4px;
  border-radius: 999px; background: rgba(20, 14, 40, .28);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: background-color .5s ease;
}
html.scenes[data-tone="dark"] .scene-index ol, html:not(.scenes) .scene-index ol { background: rgba(255, 255, 255, .55); }
.scene-index a { position: relative; display: block; width: 24px; height: 24px; border-radius: 50%; }
.scene-index a::before {
  content: ""; position: absolute; inset: 8.5px; border-radius: 50%;
  background: rgba(255, 255, 255, .7);
  transition: transform .35s var(--spring), background-color .3s ease;
}
html.scenes[data-tone="dark"] .scene-index a::before, html:not(.scenes) .scene-index a::before { background: rgba(29, 29, 31, .35); }
.scene-index a:hover::before { transform: scale(1.35); }
.scene-index a[aria-current="true"]::before { background: #E5533D !important; transform: scale(1.6); }
.scene-index a:focus-visible { outline-offset: 0; border-radius: 50%; }
.si-label {
  position: absolute; right: calc(100% + 10px); top: 50%;
  transform: translate(6px, -50%); opacity: 0; pointer-events: none;
  white-space: nowrap; font: 600 12.5px/1 var(--font);
  padding: 7px 10px; border-radius: 8px; background: rgba(29, 29, 31, .9); color: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .2);
  transition: opacity .18s ease, transform .25s var(--spring);
}
.scene-index a:hover .si-label, .scene-index a:focus-visible .si-label { opacity: 1; transform: translate(0, -50%); }

/* ---------- stage and world ---------- */
.stage-wrap { position: relative; }
.scenes .stage-wrap { height: 100vh; height: 100dvh; overflow: clip; }
.stage { position: relative; z-index: 1; outline: none; }
.scenes .stage { height: 100%; overflow: clip; touch-action: none; }
html.scenes:not(.at-last), html.scenes:not(.at-last) body { overflow: hidden; }
html.scenes, html.scenes body { overscroll-behavior: none; }

.world { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: #0c0820; }
.scenes .world { position: absolute; }
.sky, .sky-l { position: absolute; inset: 0; }
.sky-l { opacity: 0; }
.sky-0 { opacity: 1; background: radial-gradient(70% 40% at 50% 100%, rgba(229, 83, 61, .28), transparent 70%), linear-gradient(180deg, #08060f 0%, #161028 42%, #2d1a3c 70%, #4f2a42 100%); }
.sky-1 { background: linear-gradient(180deg, #2a2c58 0%, #5f5384 34%, #c99088 72%, #efc6a2 100%); }
.sky-2 { background: linear-gradient(180deg, #86b4de 0%, #b9d4ea 55%, #f1e3d0 100%); }
.sky-3 { background: linear-gradient(180deg, #75abdd 0%, #afd0ec 58%, #e6efee 100%); }
.sky-4 { background: linear-gradient(180deg, #66a0da 0%, #a3c9ea 58%, #dfecf3 100%); }
.sky-5 { background: linear-gradient(180deg, #70a2d6 0%, #b3cfe7 55%, #efe3d0 100%); }
.sky-6 { background: linear-gradient(180deg, #7690c0 0%, #cfb19e 58%, #efcb9c 100%); }
.sky-7 { background: linear-gradient(180deg, #332d5e 0%, #7f5077 42%, #cf846c 74%, #efbb86 100%); }
html:not(.scenes) .sky-1, html:not(.scenes) .sky-2, html:not(.scenes) .sky-3 { opacity: 1; }

.stars { position: absolute; left: 0; top: 0; width: 100%; height: 62%; opacity: .8; }
.stars .tw, .dusk-stars .tw { animation: twinkle 3.2s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.moon {
  position: absolute; left: 74%; top: 13%;
  width: 6vh; height: 6vh; border-radius: 50%;
  box-shadow: inset -1.3vh -.6vh 0 0 #F3EEDC;
  transform: rotate(-18deg);
  filter: drop-shadow(0 0 1.2vh rgba(243, 238, 220, .45));
}
html:not(.scenes) .stars, html:not(.scenes) .moon { opacity: 0; }

.sun { position: absolute; left: 0; top: 0; width: 9vh; height: 9vh; margin: -4.5vh 0 0 -4.5vh; will-change: transform; }
.sun i { position: absolute; inset: 0; border-radius: 50%; }
.sun-glow { inset: -140% !important; background: radial-gradient(closest-side, rgba(255, 240, 200, .45), rgba(255, 228, 170, .14) 55%, transparent); }
.sun-disc { background: radial-gradient(circle at 42% 40%, #FFFBEA, #FFEBB0 60%, #FFDC8A); box-shadow: 0 0 3vh rgba(255, 226, 150, .55); }
.sun-warm { background: radial-gradient(circle at 42% 40%, #FFE0B8, #F7A777 60%, #E9805A); opacity: 0; }
html:not(.scenes) .sun { transform: translate(78vw, 20vh); }

.layer { position: absolute; left: 0; will-change: transform; }
.layer svg { display: block; height: 100%; max-width: none; }
.layer-clouds { top: 7vh; height: 26vh; opacity: .7; }
.layer-clouds svg { width: 468vh; }
.layer-hills { bottom: 15vh; height: 44vh; }
.layer-hills svg { width: 459.2vh; }
.layer-rows { bottom: 10vh; height: 22vh; }
.layer-rows svg { width: 440vh; }
.layer-props { bottom: 10vh; height: 22vh; width: 100vw; --pan: 50vw; }
.layer-soil { bottom: 0; height: 15vh; }
.layer-soil svg { width: 421.9vh; }
.tint { position: absolute; left: 0; right: 0; bottom: 0; top: 34%; opacity: 0; }
.tint-night { background: linear-gradient(180deg, rgba(14, 9, 40, 0), rgba(14, 9, 40, .7) 16%, rgba(8, 6, 26, .86)); }
.tint-gold { background: linear-gradient(180deg, rgba(255, 140, 60, 0), rgba(240, 120, 80, .16) 20%, rgba(90, 40, 80, .32)); }
html:not(.scenes) .layer-rows, html:not(.scenes) .layer-props, html:not(.scenes) .layer-soil, html:not(.scenes) .tint { display: none; }
html:not(.scenes) .layer-hills { bottom: 0; }
html.world-off .world *, html.world-off .world { animation-play-state: paused !important; }

/* ---------- scenes ---------- */
.scene { position: relative; color: var(--ink-day); }
.scenes .scene {
  position: absolute; inset: 0; overflow: clip;
  visibility: hidden; opacity: 0;
  transform: translate3d(var(--off, 30vw), 0, 0);
  transition: transform .85s cubic-bezier(.6, .05, .3, 1), opacity .45s ease, visibility 0s linear .85s;
}
.scenes .scene.is-active {
  visibility: visible; opacity: 1; transform: none;
  transition: transform .95s cubic-bezier(.2, .8, .25, 1), opacity .55s ease .08s, visibility 0s;
}
.scenes .scene.no-anim { transition: none !important; }
.scenes .scene:not(.is-active) * { animation-play-state: paused !important; }
.scenes .scene[data-tone="light"] { color: #fff; }

.scene-inner {
  position: relative; width: 100%;
  max-width: 1600px; margin: 0 auto;
  padding: 88px clamp(44px, 6vw, 96px) 120px clamp(20px, 5vw, 80px);
  display: flex; flex-direction: column;
}
.scenes .scene-inner {
  height: 100%;
  padding-top: calc(var(--top) + 2vh); padding-bottom: 3vh;
  overflow: clip;
}
/* Short or narrow screens: a scene may scroll inside itself, never clip. */
@media (max-width: 1100px), (max-height: 640px) {
  .scenes .scene-inner { overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; scrollbar-width: thin; }
  .scenes.at-last .scene.is-active .scene-inner { overscroll-behavior: auto; }
}
html:not(.scenes) .scene:not(.hero) { min-height: 100vh; }
html:not(.scenes) .scene:not(.hero)::after {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 120px;
  background: linear-gradient(180deg, #7E9A63 0 14px, #7F634C 14px, #57422F);
}

.scene-head { max-width: 600px; }
.scene-head .kicker { margin-bottom: 1.2vh; font: 600 clamp(14px, 1.2vw, 17px)/1.2 var(--font); letter-spacing: -.005em; color: #C9442F; }
.scenes .scene[data-tone="light"] .kicker { color: #FFC4B5; }
.scene-head h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, min(4vw, 6.6vh), 56px); font-weight: 700; letter-spacing: -.032em; line-height: 1.06;
  text-wrap: balance;
}
.scene-lede { margin-top: 1.6vh; max-width: 520px; font-size: clamp(15px, min(1.35vw, 2.3vh), 19px); line-height: 1.5; opacity: .8; }
.scenes .scene[data-tone="light"] .scene-head { text-shadow: 0 1px 18px rgba(20, 8, 40, .3); }

/* entrances: replay every time a scene comes in */
.scenes .scene.is-active .scene-head > * { animation: rise .7s cubic-bezier(.2, .8, .25, 1) both; }
.scenes .scene.is-active .scene-head > :nth-child(1) { animation-delay: .25s; }
.scenes .scene.is-active .scene-head > :nth-child(2) { animation-delay: .32s; }
.scenes .scene.is-active .scene-head > :nth-child(3) { animation-delay: .39s; }
.scenes .scene.is-active .scene-head > :nth-child(n+4) { animation-delay: .46s; }
.scenes .scene.is-active .enter { animation: pop-in .8s cubic-bezier(.25, 1.2, .4, 1) both; animation-delay: calc(var(--d, 0s) + .4s); }
@keyframes pop-in { from { opacity: 0; transform: translateY(28px) scale(.9); } }

/* walk hint (hero, FAQ) */
.walk-hint {
  position: absolute; left: 50%; bottom: 2.4vh; z-index: 3;
  transform: translateX(-50%);
  display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
  font: 500 12.5px/1 var(--font); letter-spacing: .02em; text-decoration: none;
  color: #fff; opacity: .75;
}
.walk-hint svg { width: 20px; height: 20px; animation: nudge-down 1.8s ease-in-out infinite; }
.walk-hint:hover { opacity: 1; }
@keyframes nudge-down { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
html:not(.scenes) .walk-hint-end { display: none; }
@media (max-height: 760px), (max-width: 1100px) { .walk-hint-end { display: none; } }

/* ---------- HOME (the hero, now standing in the field before dawn) ---------- */
.scenes .hero { background: transparent; padding: 0; color: #f5f5f7; }
.scenes .hero .mb-glow { opacity: .7; }
.hero-grid { position: relative; }
.scenes .hero-grid {
  height: 100%;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 3vw;
  max-width: 1760px; margin: 0 auto;
  padding: calc(var(--top) + 1vh) clamp(56px, 6vw, 100px) 6vh clamp(24px, 5vw, 88px);
  overflow: clip;
}
.scenes .hero-content { text-align: left; padding: 0; margin: 0; max-width: 680px; }
.scenes .hero h1 { font-size: clamp(36px, min(3.8vw, 7vh), 62px); text-wrap: balance; }
.scenes .hero .lede { margin-left: 0; font-size: clamp(16px, min(1.4vw, 2.4vh), 20px); }
.scenes .hero .cta-row { justify-content: flex-start; }
.scenes .hero .macbook { --w: min(1040px, 53vw, calc((100dvh - var(--top) - 9vh) / .84)); margin: 0; }
@media (max-width: 1200px) { .scenes .hero .macbook { --w: min(52vw, calc((100dvh - var(--top) - 9vh) / .84)); } }
.scenes .hero .fine { color: #b5b0c4; }
.hero .walk-hint { color: #fff; }
html:not(.scenes) .hero .walk-hint { display: none; }

/* ---------- LOOKS AFTER YOU: the cast in the field ---------- */
.care { position: relative; margin-top: auto; display: flex; flex-direction: column; padding-top: 2vh; }
.care-bubble {
  position: relative; align-self: flex-start;
  width: min(360px, 100%);
  margin-bottom: 2.2vh;
  padding: 14px 18px 15px;
  border-radius: 18px;
  transform: translateX(var(--bx, 0px));
  transition: transform .5s var(--spring);
  font-size: 14.5px; line-height: 1.45;
}
.care-bubble strong { display: block; font: 600 16px/1.25 var(--font); margin-bottom: 3px; }
.care-bubble span { opacity: .82; }
.care-bubble.pop strong, .care-bubble.pop span { animation: rise .35s ease both; }
.care-row { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; align-items: flex-end; gap: 1vw; }
.care-tom {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer;
  border-radius: 18px;
}
.care-tom svg { width: clamp(100px, min(13vw, 25vh), 250px); height: auto; overflow: visible; transition: transform .35s var(--spring); }
.care-tom:hover svg, .care-tom.is-on svg { transform: translateY(-6px); }
.care-name {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 13px/1 var(--font); padding: 7px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, .72); color: #1d1d1f;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: background-color .2s ease, color .2s ease;
}
.care-name .tag { font-size: 9.5px; padding: 3px 5px; }
.care-tom.is-on .care-name { background: #1d1d1f; color: #fff; }
.care-tom.is-on .care-name .tag { background: rgba(255, 255, 255, .2); color: #fff; }
.care-also { position: relative; z-index: 1; align-self: flex-start; display: inline-block; margin-top: 2.2vh; padding: 9px 14px; border-radius: 14px; font-size: 13px; line-height: 1.45; max-width: 760px; }

.care-tom .drops circle { animation: drip 1s linear infinite; }
.care-tom .drops circle:nth-child(2) { animation-delay: -.33s; }
.care-tom .drops circle:nth-child(3) { animation-delay: -.66s; }
@keyframes drip { 0% { transform: translateY(-8px); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(12px); opacity: 0; } }
.glass-fill { transform-box: fill-box; transform-origin: 50% 100%; animation: fill-up 4s ease-in-out infinite; }
@keyframes fill-up { 0% { transform: scaleY(.15); } 80%, 100% { transform: scaleY(1); } }
.can-pour { transform-box: view-box; transform-origin: 142px 18px; animation: pour 4s ease-in-out infinite; }
@keyframes pour { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-5deg); } }
.stretch { transform-box: fill-box; transform-origin: 50% 100%; animation: stretch 2.6s ease-in-out infinite; }
@keyframes stretch { 0%, 100% { transform: scale(1, 1); } 45%, 60% { transform: scale(.95, 1.08); } }
.swoosh { animation: swoosh 2.6s ease-in-out infinite; }
@keyframes swoosh { 0%, 30%, 100% { opacity: 0; } 50%, 60% { opacity: .85; } }
.ring circle { fill: #fff; opacity: .3; transition: opacity .25s ease, fill .25s ease; }
.ring circle.lit { opacity: 1; fill: #FFE08A; }
.cal-sign { transform-box: view-box; transform-origin: 128px 40px; animation: sign-swing 3.4s ease-in-out infinite; }
@keyframes sign-swing { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
.bop { transform-box: fill-box; transform-origin: 50% 100%; animation: bop 1s ease-in-out infinite; }
@keyframes bop { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg) translateY(-2px); } }
.notes .n1, .notes .n2 { animation: note-float 2.4s ease-out infinite; }
.notes .n2 { animation-delay: -1.2s; }
@keyframes note-float { 0% { transform: translate(0, 10px); opacity: 0; } 25% { opacity: .9; } 100% { transform: translate(6px, -22px); opacity: 0; } }
.ripe-stack .r2 { animation: ripe-2 7s ease-in-out infinite; }
.ripe-stack .r3 { animation: ripe-3 7s ease-in-out infinite; }
@keyframes ripe-2 { 0%, 25% { opacity: 0; } 38%, 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes ripe-3 { 0%, 55% { opacity: 0; } 68%, 92% { opacity: 1; } 100% { opacity: 0; } }
.streak { transform-box: fill-box; transform-origin: 50% 50%; animation: streak 7s ease-in-out infinite; }
@keyframes streak { 0%, 62% { opacity: 0; transform: scale(.7); } 70%, 92% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }

/* ---------- FOCUS: the YouTube mini game ---------- */
.focus-grid { display: grid; grid-template-columns: minmax(280px, .78fr) minmax(0, 1.3fr); gap: 3.4vw; align-items: center; }
.mini-steps { list-style: none; padding: 6px 18px; margin: 2.6vh 0 0; border-radius: 18px; }
.mini-steps li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 11px 0;
  font-size: clamp(13.5px, min(1.1vw, 1.95vh), 15.5px); line-height: 1.4;
}
.mini-steps li + li { border-top: 1px solid rgba(0, 0, 0, .08); }
.mini-steps strong { font-weight: 600; }
.mini-steps span { opacity: .9; }
.mini-steps b { flex: none; width: 22px; height: 22px; margin-top: -1px; border-radius: 50%; display: grid; place-items: center; background: #1d1d1f; color: #fff; font: 600 12px/1 var(--font); }

.game { --tw: clamp(96px, 16vh, 150px); --to: 22cqw; position: relative; container-type: inline-size; height: min(70vh, 600px); }
.g-board {
  position: absolute; right: 0; bottom: 20%; width: 70%;
  padding: 9px; border-radius: 16px;
  background: linear-gradient(180deg, #2c2c2e, #1c1c1e);
  box-shadow: 0 0 0 1px #48484a, 0 26px 50px rgba(20, 20, 30, .32);
}
.g-stand {
  position: absolute; z-index: -1; right: calc(35% - 7%); bottom: 2%; width: 14%; height: 19%;
  background: linear-gradient(90deg, #a9abb0, #e3e4e7 45%, #b9bbc0);
  clip-path: polygon(22% 0, 78% 0, 100% 100%, 0 100%);
}
.g-browser { border-radius: 8px; overflow: hidden; background: #fff; color: #1d1d1f; }
.g-tabs { display: flex; align-items: flex-end; gap: 2px; padding: 8px 8px 0; background: #ECECEE; overflow: hidden; }
.g-tabs .lights { display: flex; gap: 6px; padding: 0 10px 10px 4px; }
.g-tabs .lights span { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.g-tabs .lights span:nth-child(2) { background: #febc2e; }
.g-tabs .lights span:nth-child(3) { background: #28c840; }
.g-tab { display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: 1; white-space: nowrap; padding: 8px 12px; border-radius: 8px 8px 0 0; color: #6e6e73; max-width: 170px; overflow: hidden; transition: max-width .45s var(--spring), padding .45s ease, opacity .3s ease; }
.g-tab-work { background: #fff; color: #1d1d1f; }
.g-tab-yt { max-width: 0; padding-left: 0; padding-right: 0; opacity: 0; }
.yt-fav { flex: none; position: relative; display: inline-block; width: 15px; height: 11px; border-radius: 3px; background: #ff0033; }
.yt-fav::after { content: ""; position: absolute; left: 6px; top: 3px; border-left: 4px solid #fff; border-top: 2.5px solid transparent; border-bottom: 2.5px solid transparent; }
.g-url { padding: 8px 12px; border-bottom: 1px solid #eee; text-align: center; }
.g-url em { font-style: normal; font-size: 12px; color: #6e6e73; padding: 4px 12px; border-radius: 7px; background: #F2F2F4; display: inline-block; min-width: 50%; }
.g-view { position: relative; aspect-ratio: 16 / 8.2; overflow: hidden; }
.g-doc { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 9px; padding: 7% 10%; background: #fff; transition: opacity .4s ease; }
.g-doc b { font: 700 clamp(15px, 2.2cqw, 20px)/1.1 var(--font-display); margin-bottom: 4px; }
.g-doc > i { display: block; height: 7px; border-radius: 4px; background: #e8e8ed; }
.g-doc > i.short { width: 60%; }
.g-chart { margin-top: auto; display: flex; align-items: flex-end; gap: 10px; height: 36%; }
.g-chart i { flex: 1; border-radius: 4px 4px 0 0; background: #d9dde6; }
.g-chart i:nth-child(1) { height: 40%; } .g-chart i:nth-child(2) { height: 62%; } .g-chart i:nth-child(3) { height: 50%; } .g-chart i:nth-child(4) { height: 88%; background: #E5533D; }
.g-yt { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; text-align: center; font-size: 13px; color: #c7c7cc; background: linear-gradient(135deg, #2b3a55, #1b1f2e 60%, #301b2b); opacity: 0; transition: opacity .4s ease; }
.g-yt .play { width: 56px; height: 40px; border-radius: 11px; background: #ff0033; position: relative; }
.g-yt .play::after { content: ""; position: absolute; left: 22px; top: 11px; border-left: 15px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.yt-progress { position: absolute; left: 16px; right: 16px; bottom: 12px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.yt-progress i { display: block; height: 100%; width: 100%; border-radius: 2px; background: #ff0033; transform-origin: 0 50%; transform: scaleX(.04); }
.g-timer {
  position: absolute; left: 18px; top: -15px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .94); color: #1d1d1f; font: 500 12.5px/1 var(--font);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
}
.g-timer b { font: 600 13px/1 var(--font); font-variant-numeric: tabular-nums; color: #C73E29; }
.g-dot { width: 7px; height: 7px; border-radius: 50%; background: #30D158; animation: pulse 2s ease-out infinite; color: #30D158; }

.g-tomato { position: absolute; left: 0; bottom: 1%; width: var(--tw); z-index: 2; transition: transform 1.1s linear; }
.g-tomato svg { width: 100%; height: auto; overflow: visible; }
.g-tomato .g-phones { transition: opacity .3s ease; }
.game[data-state="work"] .g-tomato svg { animation: bop 1.4s ease-in-out infinite; transform-origin: 50% 100%; }
.game.marching .g-tomato svg { animation: march .3s ease-in-out infinite; }
@keyframes march { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-8px) rotate(3deg); } }
.game[data-state="march"] .g-tomato, .game[data-state="angry"] .g-tomato, .game[data-state="cheer"] .g-tomato { transform: translateX(var(--to)); }
.game[data-state="angry"] .g-tomato svg { animation: grumble 2.2s ease-in-out infinite; }
.game[data-state="cheer"] .g-tomato svg { animation: cheer .6s var(--spring) 3; }
@keyframes cheer { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-18px); } }
@keyframes grumble { 0%, 80%, 100% { transform: rotate(0); } 84% { transform: rotate(-7deg); } 88% { transform: rotate(7deg); } 92% { transform: rotate(-4deg); } 96% { transform: rotate(3deg); } }
.game:not([data-state="work"]) .g-phones { opacity: 0; }
.g-steam { position: absolute; left: 50%; top: -2%; width: 56%; height: 28%; transform: translateX(-50%); opacity: 0; transition: opacity .3s ease; }
.g-steam i { position: absolute; bottom: 0; width: 24%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .9); opacity: 0; }
.g-steam i:nth-child(1) { left: 0; } .g-steam i:nth-child(2) { left: 38%; animation-delay: -.4s !important; } .g-steam i:nth-child(3) { right: 0; animation-delay: -.8s !important; }
.game[data-state="march"] .g-steam, .game[data-state="angry"] .g-steam { opacity: 1; }
.game[data-state="march"] .g-steam i, .game[data-state="angry"] .g-steam i { animation: steam 1.2s ease-out infinite; }
@keyframes steam { 0% { transform: translateY(0) scale(.4); opacity: .9; } 100% { transform: translateY(-60%) scale(1.3); opacity: 0; } }

.g-bubble {
  position: absolute; z-index: 3;
  left: calc(var(--to) + var(--tw) * .6); bottom: calc(var(--tw) * .78);
  width: min(320px, 60cqw);
  padding: 16px 16px 14px; border-radius: 20px 20px 20px 6px;
  background: rgba(28, 28, 30, .92); color: #f5f5f7;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .3), inset 0 0 0 1px rgba(255, 255, 255, .08);
  transform-origin: 0 100%;
  opacity: 0; visibility: hidden; transform: scale(.7) translateY(16px);
  transition: opacity .25s ease, transform .5s var(--spring), visibility 0s linear .5s;
}
.game[data-state="angry"] .g-bubble, .game[data-state="cheer"] .g-bubble { opacity: 1; visibility: visible; transform: none; transition: opacity .25s ease, transform .5s var(--spring), visibility 0s; }
.g-bubble strong { font: 600 16px/1.25 var(--font); }
.g-bubble p { font-size: 14px; color: #c7c7cc; margin-top: 4px; min-height: 2.8em; }
.g-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.g-bubble .btn-soft { background: rgba(255, 255, 255, .13); color: #fff; }
.g-bubble .btn-soft:hover { background: rgba(255, 255, 255, .2); }
.game[data-state="cheer"] .g-actions { display: none; }
.g-bubble.bump { animation: bump .45s var(--spring); }
@keyframes bump { 0% { transform: scale(.94); } 100% { transform: scale(1); } }
.g-open { position: absolute; left: calc(var(--tw) + 2%); bottom: 4%; z-index: 2; transition: opacity .25s ease, transform .35s var(--spring); }
.g-open .yt-fav { width: 17px; height: 12px; }
.game:not([data-state="work"]) .g-open { opacity: 0; transform: scale(.85); pointer-events: none; visibility: hidden; }
.game:not([data-state="work"]):not([data-state="cheer"]) .g-doc { opacity: 0; }
.game:not([data-state="work"]):not([data-state="cheer"]) .g-yt { opacity: 1; }
.game:not([data-state="work"]):not([data-state="cheer"]) .g-tab-yt { max-width: 170px; padding: 8px 12px; opacity: 1; background: #fff; color: #1d1d1f; }
.game:not([data-state="work"]):not([data-state="cheer"]) .g-tab-work { background: transparent; color: #6e6e73; }
.game:not([data-state="work"]):not([data-state="cheer"]) .yt-progress i { transform: scaleX(1); transition: transform 40s linear; }
.game:not([data-state="work"]):not([data-state="cheer"]) .g-board { animation: jolt .45s ease; }
@keyframes jolt { 0%, 100% { transform: none; } 25% { transform: translateX(-4px); } 60% { transform: translateX(3px); } }

/* ---------- OUTFITS: a clothesline between two vine stakes ---------- */
.closet { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, .4fr); gap: 2vw; align-items: end; margin-top: 1vh; }
.line-wrap { --sag: 56px; position: relative; align-self: start; margin-top: 4vh; padding: 0 22px; height: calc(var(--sag) + clamp(150px, 25vh, 240px)); }
.stake { position: absolute; top: -12px; width: 10px; height: 100vh; border-radius: 4px 4px 0 0; background: linear-gradient(90deg, #6E5B42, #8C7556 45%, #6E5B42); }
.stake-l { left: 0; } .stake-r { right: 0; }
.rope { position: absolute; left: 5px; right: 5px; top: 0; height: calc(var(--sag) * 80 / 45); width: calc(100% - 10px); }
.hangers { list-style: none; margin: 0; padding: 0 2%; position: absolute; left: 5px; right: 5px; top: 0; display: flex; }
.hangers li {
  --t: calc((var(--i) + .5) / 7);
  flex: 1; display: flex; justify-content: center;
  margin-top: calc(var(--sag) * 80 / 45 * (10 + 140 * var(--t) * (1 - var(--t))) / 80 - 6px);
}
.hanger {
  display: flex; flex-direction: column; align-items: center;
  padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer;
  transform-origin: 50% 0;
  animation: swing 5s ease-in-out infinite; animation-delay: calc(var(--i) * -.7s);
  border-radius: 12px;
}
@keyframes swing { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); } }
.peg { width: 7px; height: 16px; border-radius: 2px; background: linear-gradient(90deg, #CDB28C, #B99A70); }
.hanger svg { width: clamp(52px, min(6vw, 10.5vh), 96px); height: clamp(40px, min(4.8vw, 8vh), 76px); margin-top: -2px; overflow: visible; transition: transform .35s var(--spring); filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .14)); }
.hanger:hover svg { transform: translateY(-3px) scale(1.06); }
.h-label {
  position: relative; z-index: 1;
  margin-top: 10px; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 6px 9px; border-radius: 10px;
  background: rgba(255, 255, 255, .7); color: #1d1d1f;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: background-color .2s ease, color .2s ease;
}
.h-label strong { font: 600 12.5px/1.2 var(--font); }
.h-label span { font-size: 11px; line-height: 1.25; opacity: .65; }
.hanger[aria-pressed="true"] .h-label { background: #1d1d1f; color: #fff; }
.hanger[aria-pressed="true"] svg { transform: translateY(-3px) scale(1.1); }

.model { margin: 0; position: relative; display: flex; flex-direction: column; align-items: center; align-self: end; perspective: 900px; }
.model-spin { width: clamp(170px, min(21vw, 36vh), 360px); }
.model-spin svg { width: 100%; height: auto; overflow: visible; }
.model-spin.spin { animation: spin .8s cubic-bezier(.3, 1.2, .5, 1); }
@keyframes spin { 0% { transform: rotateY(0) scale(1); } 45% { transform: rotateY(200deg) scale(.94); } 100% { transform: rotateY(360deg) scale(1); } }
.model figcaption {
  margin-top: 1.6vh; max-width: 290px; text-align: center;
  padding: 11px 15px; border-radius: 16px;
  font-size: 13.5px; line-height: 1.4;
}
.model figcaption strong { display: block; font: 600 15px/1.3 var(--font); }

/* ---------- AI: four stations ---------- */
.scene-ai .scene-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .85fr); grid-template-rows: auto 1fr; column-gap: 3.4vw; }
.ai-field { display: contents; }
.scene-ai .scene-head { grid-column: 1; grid-row: 1; }
.ai-board { grid-column: 2; grid-row: 1; align-self: start; position: relative; padding: 18px 20px; border-radius: 20px; }
.ai-board h3 { font: 600 19px/1.25 var(--font); letter-spacing: -.01em; }
.ai-board h3 span { display: block; font: 400 13px/1.35 var(--font); opacity: .65; margin-top: 2px; }
.ai-board dl { margin: 14px 0 0; display: grid; grid-template-columns: auto 1fr auto; gap: 8px; }
.ai-board dl div { padding: 9px 11px; border-radius: 12px; background: rgba(255, 255, 255, .6); }
.ai-board dt { font: 500 10.5px/1 var(--font); text-transform: uppercase; letter-spacing: .08em; opacity: .55; margin-bottom: 6px; }
.ai-board dd { margin: 0; font: 600 14px/1.3 var(--font); }
.ai-board > p { margin-top: 12px; font-size: 13.5px; line-height: 1.45; opacity: .85; }
.ai-board.swap h3, .ai-board.swap dd, .ai-board.swap > p { animation: rise .35s ease both; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.dot-green { background: #30B158; }
.dot-amber { background: #FF9F0A; }
.pill { display: inline-block; font: 600 11.5px/1 var(--font); padding: 5px 9px; border-radius: 999px; background: rgba(0, 0, 0, .07); }
.pill-pro { background: rgba(229, 83, 61, .14); color: #C73E29; }
.ai-trip { margin-top: 12px; display: flex; align-items: center; gap: 8px; font: 500 12px/1 var(--font); }
.ai-trip span:not(.trip-line) { padding: 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, .7); }
.trip-mac { color: #1f7a34; }
.trip-line { flex: 1; height: 3px; border-radius: 2px; position: relative; overflow: hidden; background: rgba(0, 0, 0, .08); }
.trip-line::before { content: ""; position: absolute; inset: 0 -40px 0 0; background: repeating-linear-gradient(90deg, #FF9F0A 0 10px, transparent 10px 20px); opacity: 0; transition: opacity .3s ease; }
.trip-cloud { opacity: .4; text-decoration: line-through; transition: opacity .3s ease; }
.ai-board[data-local="0"] .trip-line::before { opacity: 1; animation: march-ants 1s linear infinite; }
.ai-board[data-local="0"] .trip-cloud { opacity: 1; text-decoration: none; color: #A35E00; }
@keyframes march-ants { from { transform: translateX(-20px); } to { transform: translateX(0); } }

.stations { grid-column: 1 / -1; grid-row: 2; align-self: end; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.station {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; text-align: left;
  padding: 18px; border-radius: 20px; cursor: pointer; font: inherit;
  transition: transform .35s var(--spring), box-shadow .25s ease, background-color .25s ease;
}
.station:hover { transform: translateY(-3px); }
.station.is-on { background: rgba(255, 255, 255, .9); box-shadow: 0 0 0 2px #1d1d1f, 0 22px 50px rgba(20, 30, 50, .2); }
.st-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #1d1d1f; color: #fff; }
.st-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.st-ico circle { fill: currentColor; stroke: none; }
.st-ico rect, .st-ico path { fill: none; }
.st-ico-ai { background: linear-gradient(135deg, #FF8FB1, #FFB25B 35%, #7AB8FF 70%, #B07BFF); }
.st-ico-ai svg path { fill: #fff; stroke: none; }
.st-name { font: 600 16px/1.25 var(--font); letter-spacing: -.01em; }
.st-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; }
.st-tags em { font: 500 11.5px/1 var(--font); font-style: normal; padding: 5px 8px; border-radius: 999px; background: rgba(0, 0, 0, .06); color: #1d1d1f; }
.st-tags em.pro { background: rgba(229, 83, 61, .14); color: #C73E29; }

/* ---------- PRIVACY: a vault on this Mac ---------- */
.privacy-grid { display: grid; grid-template-columns: minmax(300px, .95fr) minmax(0, 1.05fr); gap: 3.4vw; align-items: center; }
.markers { list-style: none; padding: 4px 18px; margin: 2.4vh 0 0; border-radius: 18px; }
.markers li { position: relative; padding: 11px 0 11px 32px; }
.markers li + li { border-top: 1px solid rgba(0, 0, 0, .08); }
.markers li::before {
  content: ""; position: absolute; left: 0; top: 13px; width: 20px; height: 20px; border-radius: 50%;
  background: #30B158 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.6 2.5L13 6.5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat;
}
.markers strong { display: block; font: 600 15px/1.3 var(--font); }
.markers span { font-size: 13.5px; line-height: 1.4; opacity: .75; }
.honest { margin-top: 1.4vh; padding: 9px 14px; border-radius: 14px; font-size: 12.5px; line-height: 1.45; max-width: 560px; }

.vault-yard { display: flex; flex-direction: column; align-items: center; gap: 0; max-width: 460px; width: 100%; justify-self: center; }
.v-cloud { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.v-cloud-ico { width: 72px; height: 48px; overflow: visible; }
.v-cloud-ico path { fill: rgba(255, 255, 255, .85); stroke: none; }
.v-cloud-ico .nope { fill: none; stroke: #E5533D; stroke-width: 3; stroke-linecap: round; transition: opacity .3s ease; }
.v-cloud-label { font: 500 13px/1 var(--font); padding: 7px 11px; border-radius: 999px; background: rgba(255, 255, 255, .75); color: #1d1d1f; }
.v-cloud-label .byok-t { display: none; }
.v-trail { position: relative; height: 64px; width: 100%; display: flex; justify-content: center; }
.v-trail span { width: 2px; height: 100%; background: rgba(29, 29, 31, .15); position: relative; overflow: hidden; }
.v-trail span::before { content: ""; position: absolute; left: 0; right: 0; top: -20px; bottom: 0; background: repeating-linear-gradient(180deg, #FF9F0A 0 7px, transparent 7px 14px); opacity: 0; transition: opacity .3s ease; animation: trail-up .9s linear infinite; }
@keyframes trail-up { from { transform: translateY(14px); } to { transform: translateY(0); } }
.v-trail em { position: absolute; left: calc(50% + 14px); top: 50%; transform: translateY(-50%); width: 190px; font: 500 12px/1.35 var(--font); font-style: normal; color: #1d1d1f; opacity: 0; transition: opacity .3s ease; }
.vault { position: relative; width: 100%; border-radius: 22px; padding: 18px 20px 14px; }
.vault-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid rgba(0, 0, 0, .08); }
.vault-head strong { font: 600 16px/1.2 var(--font); flex: 1; }
.v-mac { width: 28px; height: 21px; fill: none; stroke: #1d1d1f; stroke-width: 1.8; stroke-linecap: round; }
.v-lock { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #30B158; }
.v-lock svg { width: 17px; height: 17px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; }
.v-shackle { animation: shackle 5s ease-in-out infinite; }
@keyframes shackle { 0%, 60%, 100% { transform: translateY(0); } 70%, 80% { transform: translateY(-2.5px); } }
.vault-rows { list-style: none; margin: 0; padding: 0; }
.vault-rows li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; font-size: 14px; }
.vault-rows li + li { border-top: 1px solid rgba(0, 0, 0, .06); }
.vault-rows em { font: 500 11.5px/1 var(--font); font-style: normal; padding: 5px 8px; border-radius: 999px; background: rgba(48, 177, 88, .14); color: #1E7A3A; }
.vault-peek { position: absolute; right: 22px; top: -30px; width: 54px; }
.vault-peek svg { width: 100%; height: auto; overflow: visible; }
.byok-btn {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 8px; border-radius: 999px; cursor: pointer;
  font: 500 13.5px/1 var(--font);
}
.switch { width: 38px; height: 22px; border-radius: 999px; background: rgba(120, 120, 128, .4); position: relative; transition: background-color .2s ease; }
.switch i { position: absolute; left: 2px; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .3s var(--spring); }
.byok-btn[aria-pressed="true"] .switch { background: #30D158; }
.byok-btn[aria-pressed="true"] .switch i { transform: translateX(16px); }
.vault-yard.is-byok .nope { opacity: 0; }
.vault-yard.is-byok .v-cloud-label .nope-t { display: none; }
.vault-yard.is-byok .v-cloud-label .byok-t { display: inline; }
.vault-yard.is-byok .v-trail span::before, .vault-yard.is-byok .v-trail em { opacity: 1; }

/* ---------- PRICING: a market stall ---------- */
.pricing-grid { display: grid; grid-template-columns: minmax(250px, .62fr) minmax(0, 1.38fr); gap: 3.4vw; align-items: center; }
.compare-note { margin-top: 2.4vh; padding: 11px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.5; max-width: 440px; }
.stall { position: relative; padding: 0 3%; }
.awning {
  position: relative; z-index: 2; height: clamp(26px, 4vh, 38px);
  border-radius: 10px 10px 0 0;
  background: repeating-linear-gradient(90deg, #C9533F 0 36px, #F4EDE3 36px 72px);
  box-shadow: 0 8px 18px rgba(80, 30, 10, .14);
}
.awning::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px;
  background:
    radial-gradient(circle 18px at 18px 0, #C9533F 17px, transparent 18px) 0 0 / 72px 12px repeat-x,
    radial-gradient(circle 18px at 18px 0, #F4EDE3 17px, transparent 18px) 36px 0 / 72px 12px repeat-x;
}
.stall-post { position: absolute; top: 14px; bottom: 30px; width: 8px; background: linear-gradient(90deg, #7E6448, #A08060 45%, #7E6448); border-radius: 3px; }
.stall-post-l { left: 3%; } .stall-post-r { right: 3%; }
.tags { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.1fr; gap: 3.5%; padding: 3.6vh 6% 0; align-items: start; }
.ptag {
  position: relative; border-radius: 22px; padding: 22px 22px 20px;
  background: rgba(255, 255, 255, .9); color: #1d1d1f;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 22px 50px rgba(40, 30, 20, .2);
  transform-origin: 50% -30px; animation: tag-sway 7s ease-in-out infinite;
  display: flex; flex-direction: column;
}
.ptag-pro { background: #fff; box-shadow: 0 0 0 2px #E5533D, 0 26px 60px rgba(150, 40, 20, .25); animation-delay: -3.5s; }
@keyframes tag-sway { 0%, 100% { transform: rotate(-.5deg); } 50% { transform: rotate(.5deg); } }
.ptag .string { position: absolute; left: 50%; bottom: 100%; width: 40%; height: calc(3.6vh + 2px); transform: translateX(-50%);
  background: linear-gradient(to top right, transparent calc(50% - 1px), rgba(90, 70, 50, .55) calc(50% - .5px), rgba(90, 70, 50, .55) calc(50% + .5px), transparent calc(50% + 1px)) left / 50% 100% no-repeat,
              linear-gradient(to top left, transparent calc(50% - 1px), rgba(90, 70, 50, .55) calc(50% - .5px), rgba(90, 70, 50, .55) calc(50% + .5px), transparent calc(50% + 1px)) right / 50% 100% no-repeat; }
.ptag h3 { font: 600 19px/1.2 var(--font); letter-spacing: -.01em; text-align: center; }
.plan-sub { margin-top: 3px; font-size: 13.5px; text-align: center; color: #6e6e73; }
.ribbon {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  font: 600 11px/1 var(--font); padding: 6px 11px; border-radius: 999px; white-space: nowrap;
  background: #E5533D; color: #fff; box-shadow: 0 6px 16px rgba(229, 83, 61, .3);
}
.price { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin-top: 10px; }
.price-now { font: 700 clamp(38px, min(4vw, 6.8vh), 54px)/1 var(--font-display); letter-spacing: -.035em; color: #1d1d1f; }
.price-unit { font: 500 15px/1 var(--font); color: #86868b; }
.price-was { font: 600 22px/1 var(--font-display); color: #a1a1a6; text-decoration: line-through; text-decoration-thickness: 2px; }
.ptag .launch-note { margin: 8px auto 0; color: #C73E29; font-weight: 500; }
.plan-facts { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.plan-facts li { font: 500 12px/1 var(--font); padding: 6px 9px; border-radius: 999px; background: #F2F2F4; color: #1d1d1f; }
.checks { list-style: none; padding: 14px 0 0; margin: 14px 0 16px; display: grid; gap: 7px; flex: 1; border-top: 1px solid rgba(0, 0, 0, .07); }
.checks li { position: relative; padding-left: 24px; font-size: clamp(13.5px, min(1.02vw, 1.85vh), 14.5px); line-height: 1.35; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 16px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4 9.5l3.2 3L14 5.5' fill='none' stroke='%23E5533D' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}
.checks li:has(strong) { padding-left: 0; }
.checks li:has(strong)::before { display: none; }
.checks strong { font-weight: 600; }
.ptag .btn { padding: 13px 18px; font-size: 15.5px; }
.ptag-free .btn-soft { background: #F2F2F4; color: #1d1d1f; }
.ptag-free .btn-soft:hover { background: #E8E8ED; }
.counter { position: relative; z-index: 0; margin-top: 2vh; height: clamp(36px, 6vh, 60px); border-radius: 8px; background: linear-gradient(180deg, #A98361, #8A6849); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .18), 0 12px 24px rgba(60, 30, 0, .2); }
.crates { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; }

/* ---------- FAQ: the signpost ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(250px, .7fr) minmax(0, 1.3fr); gap: 3.4vw; align-items: start; }
.scenes .faq-grid { padding-top: calc(var(--top) + 9vh); }
.faq-grid .scene-head { position: sticky; top: 0; }
.signpost { position: relative; }
.faq { position: relative; display: grid; gap: 8px; margin: 0; }
.faq details {
  position: relative; border-radius: 14px;
  background: rgba(24, 18, 44, .42);
  -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #fff;
  transition: background-color .25s ease;
}
html:not(.scenes) .faq details { background: rgba(255, 255, 255, .7); color: #1d1d1f; border-color: rgba(255, 255, 255, .6); }
.faq details[open] { background: rgba(24, 18, 44, .58); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 13px 48px 13px 18px;
  font: 600 clamp(14px, min(1.1vw, 2vh), 16px)/1.35 var(--font);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; opacity: .7;
  transform: rotate(45deg); transition: transform .35s var(--spring), margin .35s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details[open] summary { animation: board-flip .5s cubic-bezier(.3, 1.2, .5, 1); }
@keyframes board-flip { 0% { transform: perspective(600px) rotateX(0); } 50% { transform: perspective(600px) rotateX(70deg); } 100% { transform: perspective(600px) rotateX(0); } }
.faq-note { padding: 0 18px 15px; font-size: clamp(13.5px, min(1.02vw, 1.9vh), 15px); line-height: 1.55; opacity: .85; transform-origin: 50% 0; }
.faq details[open] .faq-note { animation: unfold .45s cubic-bezier(.3, 1.2, .5, 1); }
@keyframes unfold { from { opacity: 0; transform: perspective(700px) rotateX(-60deg); } }

/* ---------- FOOTER: the field at night ---------- */
.dusk {
  position: relative; z-index: 2; overflow: hidden;
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  color: #ECEAFF;
  background: linear-gradient(180deg, #2e2552 0%, #1d1940 30%, #131229 70%, #0d0c1d 100%);
}
.dusk-sky { position: absolute; inset: 0; pointer-events: none; }
.dusk-stars { position: absolute; left: 0; top: 0; width: 100%; height: 70%; opacity: .85; }
.dusk-moon { position: absolute; right: 12%; top: 9%; width: 8vh; height: 8vh; border-radius: 50%; box-shadow: inset -2vh -.8vh 0 0 #F3EEDC; transform: rotate(-20deg); filter: drop-shadow(0 0 2vh rgba(243, 238, 220, .45)); }
.flies i { position: absolute; left: var(--x); top: var(--y); width: 4px; height: 4px; border-radius: 50%; background: #FFF4B0; box-shadow: 0 0 10px 3px rgba(255, 236, 140, .5); animation: fly 6s ease-in-out infinite; animation-delay: var(--d); }
@keyframes fly { 0%, 100% { transform: translate(0, 0); opacity: .2; } 25% { opacity: 1; } 50% { transform: translate(24px, -18px); opacity: .5; } 75% { transform: translate(-14px, -30px); opacity: 1; } }
.dusk-hills { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 46%; }
.dusk.off * { animation-play-state: paused !important; }
.dusk-inner { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: clamp(96px, 16vh, 160px) 20px 0; }
.dusk-cta { position: relative; display: flex; flex-direction: column; align-items: center; }
.big-tom { width: clamp(110px, 16vh, 160px); margin-bottom: -10px; position: relative; z-index: 0; }
.big-tom svg { width: 100%; height: auto; overflow: visible; animation: peek-up 5s ease-in-out infinite; }
@keyframes peek-up { 0%, 100% { transform: translateY(6px); } 50% { transform: translateY(0); } }
.dusk-sign {
  position: relative; z-index: 1; max-width: 640px; text-align: center;
  padding: clamp(26px, 4.4vh, 40px) clamp(22px, 4vw, 48px);
  border-radius: 26px;
  background: linear-gradient(180deg, #342c60, #221e46);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .4);
}
.dusk-sign h2 { text-wrap: balance; font-family: var(--font-display); font-size: clamp(28px, 3.8vw, 44px); font-weight: 700; letter-spacing: -.032em; color: #fff; }
.dusk-sign p { margin-top: 12px; font-size: clamp(15px, 1.5vw, 18px); color: #C9C5E8; }
.dusk-sign .cta-row { margin-top: 24px; }
.dusk-sign .btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
.dusk-sign .btn-ghost:hover { background: rgba(255, 255, 255, .2); }
.dusk-ground { position: relative; z-index: 1; margin-top: 6px; padding: 30px 0 28px; background: rgba(10, 9, 22, .85); border-top: 1px solid rgba(255, 255, 255, .08); }
.dusk .footer-links a, .dusk .linklike { color: #B4B0D8; }
.dusk .footer-links a:hover, .dusk .linklike:hover { color: #fff; }
.dusk .footer-copy { color: #8a86b0; }
.dusk .footer-brand .small { color: #B4B0D8; }

/* confetti canvas */
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }

/* ---------- narrower and portrait screens ---------- */
@media (max-width: 1100px) {
  .focus-grid, .privacy-grid, .pricing-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 2.4vh; }
  .scene-head { max-width: 760px; }
  .game { height: auto; aspect-ratio: 16 / 10; max-height: 52vh; }
  .compare-note { display: none; }
  .g-stand, .stake, .sp-pole, .stall-post { display: none; }
  .g-board { bottom: 12%; }
  .faq details::before { display: none; }
  .signpost { padding-left: 0; }
}
@media (max-width: 999px), (max-aspect-ratio: 5/4) {
  .scenes .hero-grid { grid-template-columns: minmax(0, 1fr); justify-items: center; align-content: start; gap: 2vh; padding-left: 20px; padding-right: 48px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; }
  .scenes .hero-content { text-align: center; max-width: 720px; width: 100%; min-width: 0; }
  .scenes .hero .lede { margin-left: auto; }
  .scenes .hero .cta-row { justify-content: center; }
  .scenes .hero .macbook { --w: min(820px, calc(100vw - 40px)); }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .scene-inner { padding-left: 18px; padding-right: 40px; }
  .care-row { display: grid; grid-template-columns: repeat(3, 1fr); row-gap: 2vh; }
  .care-tom svg { width: min(27vw, 130px); }
  .care-bubble { width: 100%; transform: none; }
  .care-name { font-size: 12px; padding: 6px 9px; }
  .care-name .tag { display: none; }
  .care-also { font-size: 12.5px; }
  .closet { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .model { order: -1; align-self: center; flex-direction: row; gap: 12px; }
  .model-spin { width: min(30vw, 130px); }
  .model figcaption { text-align: left; margin-top: 0; font-size: 13px; }
  .line-wrap { --sag: 0px; height: auto; margin-top: 2vh; padding: 0; }
  .rope { display: none; }
  .hangers { position: relative; left: 0; right: 0; flex-wrap: wrap; justify-content: center; row-gap: 14px; padding: 0; }
  .hangers::before, .hangers::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: #F4EEE2; border-radius: 2px; }
  .hangers::before { top: 0; } .hangers::after { top: calc(50% + 7px); }
  .hangers li { flex: 0 0 25%; margin-top: 0; }
  .hanger svg { width: 54px; height: 42px; }
  .h-label { padding: 5px 6px; }
  .h-label strong { font-size: 11.5px; } .h-label span { font-size: 10.5px; }
  .scene-ai .scene-inner { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; row-gap: 2vh; }
  .ai-board { grid-column: 1; grid-row: 2; }
  .stations { grid-row: 3; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .station { padding: 14px; }
  .ai-board dl { grid-template-columns: 1fr 1fr; }
  .ai-board dl div:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .tags { grid-template-columns: minmax(0, 1fr); gap: 4vh; padding: 3.6vh 4% 0; }
  .ptag-pro { order: -1; }
  .counter { margin-top: 2vh; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .site-nav { padding: 12px 14px; }
  .hero-content { padding: 20px 16px 36px; }
  .macbook { --w: calc(100vw - 32px); }
  .cta-row .btn { width: 100%; }
  .scenes .hero .cta-row { flex-wrap: nowrap; gap: 8px; margin-top: 22px; }
  .scenes .hero .cta-row .btn { width: auto; flex: 1 1 auto; padding: 14px 14px; font-size: 15px; }
  .scenes .hero .btn-ico { display: none; }
  .scenes .hero .eyebrow { margin-bottom: 14px; }
  .scenes .hero .lede { margin-top: 14px; }
  .scenes .hero .macbook { --w: calc(100vw - 40px); }
  .scenes .hero-grid { padding-left: 16px; padding-right: 40px; }
  .scenes .hero .macbook { --w: calc(100vw - 56px); }
  .hero .walk-hint { display: none; }
  .launch-banner { font-size: 12.5px; padding: 7px 40px 7px 14px; text-align: left; justify-content: flex-start; }
  .scene-index a { width: 20px; height: 20px; }
  .scene-index a::before { inset: 6.5px; }
  .scene-index { right: 4px; }
  .scene-head h2 { font-size: clamp(28px, 8vw, 36px); }
  .mini-steps li { padding: 8px 0; font-size: 13px; }
  .game { aspect-ratio: auto; height: 290px; max-height: none; --tw: 88px; --to: 12cqw; }
  .g-board { width: 86%; bottom: 26%; }
  .g-bubble { width: min(270px, 76cqw); left: 4cqw; bottom: calc(var(--tw) * 1.02); }
  .g-open { left: auto; right: 0; bottom: 4%; font-size: 14px; padding: 12px 16px; }
  .g-tab-work { display: none; }
  .ptag { padding: 18px 16px; }
  .consent { flex-direction: column; align-items: stretch; }
  .consent-actions .btn { flex: 1; }
  .ripe-tip { display: none; }
}

/* ---------- reduced motion: a still field, a normal scrolling page ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .eq i { height: 60%; }
  .ripe-tip { display: none; }
  .ripe-stack .r2, .ripe-stack .r3, .streak { opacity: 1 !important; }
}

/* ---------- launch banner + header: never overflow, logo left at every width ---------- */
.launch-banner { gap: 8px; }
.launch-banner p { min-width: 0; overflow-wrap: anywhere; }
.lb-short { display: none; }
@media (max-width: 900px) {
  .lb-long { display: none; }
  .lb-short { display: inline; }
}
.field-nav { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; }
.field-nav .brand { justify-self: start; min-width: 0; }
.field-nav .brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.field-nav .nav-links { justify-self: center; }
.field-nav .btn-nav { justify-self: end; }
@media (max-width: 860px) {
  .field-nav { grid-template-columns: minmax(0, 1fr) auto; }
}
@media (max-width: 360px) {
  .field-nav .brand span { display: none; }
  .scenes .hero h1 { font-size: 32px; }
  .scenes .hero .cta-row { flex-wrap: wrap; }
}
.tag {
  font: 700 10px/1 var(--font); font-style: normal; letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 6px; border-radius: 6px; background: rgba(229, 83, 61, .14); color: #C73E29;
}

/* =====================================================================
   READING PAGES (terms.html, privacy.html, thanks.html)
   A still strip of the field under the header, then one frosted card.
   Dark (night field) by default, daylight when the system is light.
   ===================================================================== */
.page {
  --pg-bg: #121022;
  --pg-card: rgba(30, 24, 58, .62);
  --pg-card-border: rgba(255, 255, 255, .12);
  --pg-card-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 30px 70px rgba(0, 0, 0, .38);
  --pg-text: #ECEAF6;
  --pg-body: rgba(236, 234, 246, .84);
  --pg-muted: #A9A5C8;
  --pg-rule: rgba(255, 255, 255, .1);
  --pg-link: #FF9D8C;
  --pg-tint: rgba(255, 157, 140, .1);
  --pg-chip: rgba(255, 255, 255, .07);
  --pg-chip-hover: rgba(255, 255, 255, .13);
  --pg-ink: #fff;
  background: var(--pg-bg);
  color: var(--pg-text);
}
@media (prefers-color-scheme: light) {
  .page {
    --pg-bg: #F4F1EA;
    --pg-card: rgba(255, 255, 255, .72);
    --pg-card-border: rgba(255, 255, 255, .7);
    --pg-card-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 24px 60px rgba(40, 50, 30, .14);
    --pg-text: #1d1d1f;
    --pg-body: rgba(29, 29, 31, .84);
    --pg-muted: #6e6e73;
    --pg-rule: rgba(0, 0, 0, .08);
    --pg-link: #B83A26;
    --pg-tint: rgba(229, 83, 61, .08);
    --pg-chip: rgba(0, 0, 0, .045);
    --pg-chip-hover: rgba(0, 0, 0, .08);
    --pg-ink: #1d1d1f;
  }
}

/* header over the strip: frosted pills, no bar */
html body.page .topbar { position: relative; background: none; }
.page .field-nav { color: var(--pg-ink); }
.page .field-nav .brand, .page .field-nav .nav-links {
  background: rgba(20, 14, 40, .3);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
}
@media (prefers-color-scheme: light) {
  .page .field-nav .brand, .page .field-nav .nav-links { background: rgba(255, 255, 255, .6); }
  .page .btn-nav { background: #1d1d1f; color: #fff; }
  .page .btn-nav:hover { background: #333336; }
}

/* the strip: sky, sun or moon, hills, one row of vines, soil */
.pf { position: relative; overflow: hidden; isolation: isolate; padding-bottom: 250px; }
.pf-scene { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.pf-sky { position: absolute; inset: 0; background: radial-gradient(70% 50% at 50% 100%, rgba(229, 83, 61, .22), transparent 70%), linear-gradient(180deg, #08060f 0%, #161028 40%, #2d1a3c 72%, #4f2a42 100%); }
.pf-stars { position: absolute; left: 0; top: 0; width: 100%; height: 70%; opacity: .8; }
.pf-stars .tw { animation: twinkle 3.2s ease-in-out infinite; }
.pf-moon { position: absolute; right: 14%; top: 30%; width: 46px; height: 46px; border-radius: 50%; box-shadow: inset -10px -5px 0 0 #F3EEDC; transform: rotate(-18deg); filter: drop-shadow(0 0 10px rgba(243, 238, 220, .45)); }
.pf-sun { display: none; position: absolute; right: 13%; top: 30%; width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle at 42% 40%, #FFFBEA, #FFEBB0 60%, #FFDC8A); box-shadow: 0 0 0 26px rgba(255, 240, 200, .22), 0 0 70px 30px rgba(255, 228, 170, .35); }
.pf-hills { position: absolute; left: 0; bottom: 60px; height: 200px; width: auto; aspect-ratio: 4800 / 460; max-width: none; }
.pf-rows { position: absolute; left: -40px; bottom: 30px; height: 96px; width: auto; aspect-ratio: 4800 / 240; max-width: none; }
.pf-soil { position: absolute; left: 0; right: 0; bottom: 0; height: 52px; background: linear-gradient(180deg, #7E9A63 0 9px, #7F634C 9px, #57422F); }
.pf-night { position: absolute; left: 0; right: 0; bottom: 0; height: 300px; background: linear-gradient(180deg, rgba(14, 9, 40, 0), rgba(14, 9, 40, .62) 22%, rgba(8, 6, 26, .8)); }
@media (prefers-color-scheme: light) {
  .pf-sky { background: linear-gradient(180deg, #86b4de 0%, #b9d4ea 55%, #f1e3d0 100%); }
  .pf-stars, .pf-moon, .pf-night { display: none; }
  .pf-sun { display: block; }
}

.pf-head { position: relative; max-width: 760px; margin: 0 auto; padding: clamp(20px, 4vh, 44px) 24px 0; text-align: center; color: var(--pg-ink); }
.pf-head .eyebrow { margin-bottom: 16px; color: #FFC4B5; }
.pf-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(36px, 6vw, 60px); letter-spacing: -.035em; line-height: 1.05;
  text-wrap: balance;
}
.pf-sub { margin: 14px auto 0; max-width: 560px; font-size: clamp(16px, 1.8vw, 19px); line-height: 1.5; opacity: .82; }
@media (prefers-color-scheme: dark) { .pf-head { text-shadow: 0 1px 18px rgba(20, 8, 40, .35); } }
@media (prefers-color-scheme: light) {
  .pf-head .eyebrow { background: rgba(255, 255, 255, .6); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7); color: #B83A26; }
}
html.js .pf-head > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
html.js .pf-head > :nth-child(2) { animation-delay: .06s; }
html.js .pf-head > :nth-child(n+3) { animation-delay: .12s; }

/* the reading card */
.reader { position: relative; z-index: 1; margin: -130px auto 0; padding: 0 16px clamp(56px, 8vw, 96px); max-width: calc(760px + 32px); }
.card {
  padding: clamp(26px, 5vw, 56px) clamp(20px, 5vw, 60px) clamp(32px, 5vw, 56px);
  border-radius: 28px;
  background: var(--pg-card);
  -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid var(--pg-card-border);
  box-shadow: var(--pg-card-shadow);
  color: var(--pg-text);
  font-size: 17px; line-height: 1.72;
  overflow-wrap: break-word;
}
.card .updated { font-size: 14px; color: var(--pg-muted); }
.card .summary { margin-top: 16px; padding: 18px 20px; border-radius: 18px; background: var(--pg-tint); font-size: 16px; line-height: 1.6; }
.card h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(21px, 2.6vw, 25px); letter-spacing: -.02em; line-height: 1.25;
  margin: 2.4em 0 .6em; padding-top: 1.4em; border-top: 1px solid var(--pg-rule);
  scroll-margin-top: 24px;
}
.card p, .card li { color: var(--pg-body); }
.card p + p, .card p + ul, .card ul + p { margin-top: 14px; }
.card ul { padding-left: 22px; margin: 12px 0 0; display: grid; gap: 8px; }
.card a { color: var(--pg-link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.card a:hover { text-decoration-thickness: 2px; }
.card strong { color: var(--pg-text); font-weight: 600; }
.card .intro { margin-top: 28px; }

.toc { margin-top: 24px; padding: 18px 20px 16px; border-radius: 18px; background: var(--pg-chip); }
.toc-label { font: 600 12px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--pg-muted); }
.card .toc ol { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 20px; counter-reset: toc; }
.card .toc li { counter-increment: toc; }
.card .toc a {
  display: flex; gap: 10px; align-items: baseline;
  padding: 5px 8px; margin: 0 -8px; border-radius: 9px;
  font-size: 15px; line-height: 1.4; text-decoration: none; color: var(--pg-text);
}
.card .toc a::before { content: counter(toc, decimal-leading-zero); font: 500 12px/1 var(--font); font-variant-numeric: tabular-nums; color: var(--pg-muted); }
.card .toc a:hover { background: var(--pg-chip-hover); }

/* the night footer on a reading page: same field, never taller than it needs */
.page .dusk { min-height: 0; background: linear-gradient(180deg, var(--pg-bg) 0, #2e2552 260px, #1d1940 50%, #131229 80%, #0d0c1d 100%); }
.page .dusk-inner { padding-top: clamp(80px, 12vh, 130px); }
.page .dusk-hills { height: 300px; }
.dusk-compact .dusk-inner { padding-top: 0; min-height: 200px; }
.footer-links a[aria-current="page"] { color: #fff; }

/* ---------- thanks.html ---------- */
.party { width: clamp(120px, 20vh, 168px); margin: 0 auto 6px; }
.party svg { width: 100%; height: auto; overflow: visible; }
html.js .party svg { animation: party-hop 2.6s cubic-bezier(.3, 1.3, .5, 1) .5s infinite; transform-origin: 50% 100%; }
@keyframes party-hop { 0%, 55%, 100% { transform: translateY(0) rotate(0); } 18% { transform: translateY(-14px) rotate(-4deg); } 32% { transform: translateY(0) rotate(3deg); } }
.card .lead { font-size: clamp(17px, 2vw, 19px); color: var(--pg-text); }
.key-box { margin-top: 20px; padding: 16px 18px; border-radius: 18px; background: var(--pg-chip); }
.key-box .toc-label { display: block; margin-bottom: 10px; }
.key-row { display: flex; align-items: center; gap: 12px; }
.key-row code { flex: 1; min-width: 0; overflow-wrap: anywhere; font: 15px/1.45 ui-monospace, "SF Mono", Menlo, monospace; color: var(--pg-text); }
.page .btn-soft { background: var(--pg-chip-hover); color: var(--pg-text); }
.page .btn-soft:hover { background: color-mix(in srgb, var(--pg-chip-hover) 100%, var(--pg-text) 8%); }
.steps { list-style: none; counter-reset: step; margin: 26px 0 0 !important; padding: 0 !important; display: grid; gap: 0 !important; }
.steps li { counter-increment: step; position: relative; padding: 16px 0 16px 52px; }
.steps li + li { border-top: 1px solid var(--pg-rule); }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 16px;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: #C9412B; color: #fff; font: 700 15px/1 var(--font-round);
  box-shadow: 0 6px 16px rgba(229, 83, 61, .3);
}
.steps .step-t { display: block; font-size: 17px; line-height: 1.4; margin-bottom: 2px; }
.card .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.card .actions .btn { text-decoration: none; }
.card .actions .btn-primary { color: #fff; }
.card .hint { margin-top: 14px; font-size: 15px; color: var(--pg-muted); }
.card .help { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--pg-rule); font-size: 15px; color: var(--pg-muted); }

@media (max-width: 640px) {
  .pf { padding-bottom: 190px; }
  .pf-hills { height: 140px; bottom: 48px; }
  .pf-rows { height: 72px; bottom: 24px; }
  .pf-soil { height: 40px; }
  .pf-moon, .pf-sun { right: 7%; top: auto; bottom: 150px; width: 34px; height: 34px; }
  .pf-sun { box-shadow: 0 0 0 16px rgba(255, 240, 200, .22), 0 0 40px 20px rgba(255, 228, 170, .35); }
  .pf-head { padding-top: 12px; }
  .reader { margin-top: -100px; padding-left: 12px; padding-right: 12px; }
  .card { border-radius: 22px; font-size: 16px; line-height: 1.68; }
  .card .toc ol { grid-template-columns: minmax(0, 1fr); }
  .card .actions .btn { width: 100%; }
  .key-row { flex-wrap: wrap; }
  .page .dusk-hills { height: 200px; }
}

/* ---------- index tweaks: lower headings on Looks after you and AI; a tomato on each AI option ---------- */
.scenes .scene-care .scene-inner, .scenes .scene-ai .scene-inner { padding-top: calc(var(--top) + 8vh); }
@media (max-height: 760px) { .scenes .scene-care .scene-inner, .scenes .scene-ai .scene-inner { padding-top: calc(var(--top) + 3vh); } }
.station { position: relative; }
.st-tom {
  position: absolute; right: 16px; top: -50px; width: 80px; height: auto; overflow: visible;
  filter: drop-shadow(0 6px 8px rgba(20, 30, 50, .18));
  transition: transform .4s var(--spring);
}
.station:hover .st-tom { transform: translateY(-4px) rotate(-4deg); }
.station.is-on .st-tom { transform: translateY(-6px); }
.scenes .scene.is-active .station.is-on .st-tom { animation: bop 1.4s ease-in-out infinite; transform-origin: 50% 100%; }
@media (max-width: 860px) { .st-tom { width: 54px; top: -32px; right: 10px; } .stations { row-gap: 30px; padding-top: 18px; } }

/* ---------- review fixes ---------- */
/* install facts under the download buttons */
.facts { display: inline-block; margin-top: 4px; font-size: 12.5px; letter-spacing: .01em; opacity: .85; font-variant-numeric: tabular-nums; }
.facts-card { display: block; margin-top: 8px; text-align: center; color: #6e6e73; opacity: 1; }
/* permissions list in the FAQ */
.perm-list { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; }
.faq-note p + p, .faq-note ul + p { margin-top: 8px; }
/* the consent banner keeps out of the middle of the scenes on wide screens */
@media (min-width: 900px) {
  .consent { left: 20px; bottom: 20px; transform: none; width: min(460px, calc(100% - 40px)); padding: 12px 12px 12px 16px; font-size: 13px; }
}
/* phones: swipes move between scenes, so the dot index goes and the cards get the full width */
@media (max-width: 640px) {
  .scene-index { display: none; }
  .scene-inner { padding-right: 18px; }
  .scenes .hero-grid { padding-right: 16px; }
  .scenes .hero .macbook { --w: calc(100vw - 32px); }
}
.dusk-sign .dusk-facts { display: block; margin-top: 14px; font-size: 12.5px; color: #A9A5C8; }
.card .facts-line { font-variant-numeric: tabular-nums; margin-top: 12px; }
/* the FAQ grew: on any screen it scrolls inside itself (the wheel handler hands the gesture to it) */
.scenes .scene-faq .scene-inner { overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-bottom: 90px; }
.scenes.at-last .scene-faq.is-active .scene-inner { overscroll-behavior: auto; }
.scenes .scene-faq .scene-inner { -webkit-mask-image: linear-gradient(180deg, transparent calc(var(--top) - 4px), #000 calc(var(--top) + 28px)); mask-image: linear-gradient(180deg, transparent calc(var(--top) - 4px), #000 calc(var(--top) + 28px)); }
/* first load: inactive scenes stay hidden and still (no slide across), see the head script in index.html */
html.scenes-boot .scene:not(.is-active) { transition: none !important; opacity: 0 !important; visibility: hidden !important; }
html.scenes-boot .scene:not(.is-active) * { animation: none !important; }
