/* Weather Buddy landing page.
   Palette, radii and motion come straight from the iOS app
   (Shared/Palette.swift, DesignSystem/Theme.swift, Badges.swift). */

:root {
  --cream: #F7F0DE;
  --ink: #122033;
  --ink-2: #43546B;
  --amber: #FFB64C;
  --amber-deep: #8A5200;
  --sky: #BFE5F6;
  --teal: #2C6987;
  --card: #FFFBF1;
  --night: #1A1F2B;
  --night-2: #1B2540;
  --night-3: #34466E;
  --go: #2F7D4A;
  --go-surface: #DDF1D8;
  --go-strong: #4E9A52;
  --mint: #CDEBC7;
  --on-night: #F3EEE2;

  /* Springs. main.js swaps these for true spring curves via linear() where supported. */
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --spring-dur: .7s;
  --spring-soft: cubic-bezier(.22, 1.25, .36, 1);
  --spring-soft-dur: .6s;
  --ease-out: cubic-bezier(.22, 1, .36, 1);

  --display: "Nunito", ui-rounded, system-ui, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --rounded: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, sans-serif;

  --card-shadow: 0 4px 12px rgba(18, 32, 51, .08);
  --lift-shadow: 0 30px 60px -24px rgba(18, 32, 51, .35), 0 12px 24px -12px rgba(18, 32, 51, .18);
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; overflow-x: clip; }
#vibes { overflow-x: clip; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
q { quotes: "“" "”"; font-weight: 700; color: var(--ink); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 8px; }

/* ---------------------------------------------------------------- nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .4s, box-shadow .4s, backdrop-filter .4s;
}
.nav.scrolled {
  background: rgba(247, 240, 222, .78);
  backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  box-shadow: 0 1px 0 rgba(18, 32, 51, .07);
}
.nav-inner { max-width: var(--wrap); margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; font-family: var(--display); font-weight: 900; font-size: 19px; letter-spacing: -.01em; }
.brand img { border-radius: 9px; box-shadow: 0 4px 10px -4px rgba(18, 32, 51, .4); }
.brand.small { font-size: 15px; gap: 8px; }
.brand.small img { border-radius: 6px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-2); padding: 8px 12px; border-radius: 999px; transition: background .2s, color .2s; }
.nav-links a:hover { background: rgba(18, 32, 51, .06); color: var(--ink); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 22px; border-radius: 16px; white-space: nowrap;
  font-weight: 700; font-size: 16px; text-decoration: none;
  transition: transform .5s var(--spring), box-shadow .3s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.98); transition-duration: .1s; }
.btn-amber { background: var(--amber); color: var(--ink); box-shadow: 0 8px 20px -10px rgba(138, 82, 0, .7); }
.btn-sm { min-height: 40px; padding: 0 16px; border-radius: 12px; font-size: 15px; }
.btn-ink { background: var(--ink); color: #fff; padding: 0 24px 0 22px; box-shadow: 0 14px 30px -14px rgba(18, 32, 51, .8); }
.btn-ink::before {
  content: ""; width: 22px; height: 22px; border-radius: 7px; flex: none;
  background: url("assets/app-icon.png") center / cover;
}
.btn-stack { display: flex; flex-direction: column; line-height: 1.05; text-align: left; font-size: 19px; font-family: var(--display); font-weight: 800; }
.btn-stack small { font-family: var(--text); font-weight: 500; font-size: 11px; opacity: .75; letter-spacing: .02em; }
.btn-ghost { color: var(--ink); background: rgba(255, 251, 241, .7); box-shadow: inset 0 0 0 1.5px rgba(18, 32, 51, .12); }
.btn-ghost svg { transition: transform .5s var(--spring); }
.btn-ghost:hover svg { transform: translateX(4px); }
.btn-lg { min-height: 64px; padding: 0 30px 0 26px; border-radius: 20px; }
.btn-lg .btn-stack { font-size: 23px; }
.btn-lg::before { width: 28px; height: 28px; border-radius: 8px; }

/* ---------------------------------------------------------------- type */
.display, .section-title {
  font-family: var(--display); font-weight: 900; letter-spacing: -.025em; line-height: 1.02; margin: 0;
}
.display { font-size: clamp(46px, 7.2vw, 92px); }
.display .line { display: block; overflow: hidden; padding-bottom: .06em; }
.display .line > span { display: inline-block; }
.hl {
  background: linear-gradient(100deg, var(--teal) 0%, #3A8DB5 45%, var(--amber-deep) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-title { font-size: clamp(38px, 5.2vw, 64px); }
.lede, .section-lede { font-size: clamp(18px, 1.6vw, 20px); color: var(--ink-2); max-width: 34em; margin: 22px 0 0; }
.section-lede em { font-style: normal; font-weight: 700; color: var(--ink); }
.eyebrow, .kicker {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px;
  font-weight: 700; font-size: 14px; letter-spacing: .02em; color: var(--teal);
  background: rgba(255, 251, 241, .8); padding: 6px 14px 6px 8px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(44, 105, 135, .15);
}
.eyebrow { padding-left: 12px; }
.kicker img { width: 26px; height: 26px; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--go-strong); box-shadow: 0 0 0 0 rgba(78, 154, 82, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(78, 154, 82, 0); } 100% { box-shadow: 0 0 0 0 rgba(78, 154, 82, 0); } }

/* ---------------------------------------------------------------- reveal */
.load-in { opacity: 0; transform: translateY(28px); animation: loadIn 1s var(--spring-soft) forwards; animation-delay: var(--d, 0s); }
.display .load-in { transform: translateY(105%); }
@keyframes loadIn { to { opacity: 1; transform: none; } }

[data-reveal] { opacity: 0; transform: translateY(36px) scale(.98); transition: opacity .7s var(--ease-out), transform 1s var(--spring-soft); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative; overflow: hidden;
  padding: 120px 0 60px;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(168, 214, 242, .9), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(191, 229, 246, .55), transparent 60%),
    linear-gradient(180deg, #EAF5F7 0%, var(--cream) 70%);
}
.hero-sky { position: absolute; inset: 0; pointer-events: none; }
.sun-glow { position: absolute; width: 520px; height: 520px; right: 8%; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 182, 76, .45), rgba(255, 182, 76, 0) 65%); animation: breathe 8s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.08); opacity: .8; } }
.cloud-blob { position: absolute; border-radius: 999px; background: rgba(255, 255, 255, .75); filter: blur(2px); }
.cloud-blob::before, .cloud-blob::after { content: ""; position: absolute; border-radius: 50%; background: inherit; }
.cloud-blob.b1 { width: 220px; height: 64px; top: 22%; left: -240px; animation: cloudDrift 70s linear infinite; }
.cloud-blob.b1::before { width: 110px; height: 110px; left: 40px; top: -60px; }
.cloud-blob.b1::after { width: 80px; height: 80px; left: 120px; top: -36px; }
.cloud-blob.b2 { width: 300px; height: 80px; top: 62%; left: -320px; opacity: .7; animation: cloudDrift 95s linear infinite -40s; }
.cloud-blob.b2::before { width: 150px; height: 150px; left: 60px; top: -84px; }
.cloud-blob.b2::after { width: 110px; height: 110px; left: 170px; top: -52px; }
.cloud-blob.b3 { width: 160px; height: 48px; top: 8%; left: -200px; opacity: .6; animation: cloudDrift 60s linear infinite -25s; }
.cloud-blob.b3::before { width: 80px; height: 80px; left: 30px; top: -44px; }
.cloud-blob.b3::after { width: 60px; height: 60px; left: 86px; top: -26px; }
@keyframes cloudDrift { to { transform: translateX(calc(100vw + 400px)); } }

.drift {
  position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s);
  translate: var(--px, 0) var(--py, 0);
  animation: bob 6s ease-in-out infinite; animation-delay: var(--d);
  filter: drop-shadow(0 10px 14px rgba(18, 32, 51, .14));
  transition: translate .8s var(--ease-out);
}
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-14px) rotate(3deg); } }

.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; }
.hero-copy { max-width: 620px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.proof { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 28px 0 0; color: var(--ink-2); font-weight: 600; font-size: 15px; }
.proof li { display: flex; align-items: center; gap: 7px; }
.proof img { width: 20px; height: 20px; }

.hero-stage { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.hero-device { opacity: 0; transform: translateY(80px) rotate(4deg); animation: phoneIn 1.4s var(--spring-soft) .25s forwards; }
@keyframes phoneIn { to { opacity: 1; transform: none; } }

.scenario-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; opacity: 0; animation: loadIn 1s var(--spring-soft) .9s forwards; }
.chip {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px 7px 8px; border-radius: 999px; font-weight: 700; font-size: 14px;
  background: rgba(255, 251, 241, .85); box-shadow: inset 0 0 0 1px rgba(18, 32, 51, .1);
  transition: background .3s, color .3s, transform .5s var(--spring);
}
.chip img { width: 24px; height: 24px; }
.chip:hover { transform: translateY(-2px); }
.chip[aria-selected="true"] { background: var(--ink); color: #fff; }
.chip .chip-progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--amber); border-radius: 3px; }
.chip.run .chip-progress { animation: chipProgress var(--chip-dur, 5s) linear forwards; }
.hero-stage:hover .chip.run .chip-progress,
.hero-stage.paused .chip.run .chip-progress { animation-play-state: paused; }
@keyframes chipProgress { to { width: 100%; } }

/* ---------------------------------------------------------------- device */
.device-fit { position: relative; flex: none; }
.device {
  position: absolute; top: 0; left: 0;
  width: 414px; height: 868px; padding: 12px; border-radius: 68px;
  transform-origin: 0 0; transform: scale(var(--s, 1));
  background: linear-gradient(150deg, #3a404b 0%, #11141a 30%, #0b0d12 70%, #2a2f38 100%);
  box-shadow:
    inset 0 0 0 2px #4a515d,
    inset 0 0 0 5px #0b0d12,
    0 60px 120px -30px rgba(18, 32, 51, .5),
    0 30px 60px -30px rgba(18, 32, 51, .45);
}
.device::before, .device::after { content: ""; position: absolute; background: #2a2f38; border-radius: 3px; }
.device::before { left: -3px; top: 190px; width: 4px; height: 64px; box-shadow: 0 84px 0 #2a2f38; }
.device::after { right: -3px; top: 230px; width: 4px; height: 100px; }
.screen {
  position: relative; width: 390px; height: 844px; border-radius: 56px; overflow: hidden;
  background: var(--cream); isolation: isolate; font-family: var(--ui);
  transition: background 1s ease;
}
.screen.night { background: var(--night); }
.screen-stars { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s; }
.screen.night .screen-stars { opacity: 1; }
.status {
  position: absolute; inset: 0 0 auto; height: 54px; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: 4px 30px 0 40px; font-weight: 600; font-size: 17px; letter-spacing: -.01em;
  color: var(--ink); transition: color .8s;
}
.screen.night .status, .dark-status .status { color: #fff; }
.st-icons { display: flex; align-items: center; gap: 6px; }
.home-indicator { position: absolute; bottom: 8px; left: 50%; width: 140px; height: 5px; border-radius: 3px; background: rgba(18, 32, 51, .85); transform: translateX(-50%); z-index: 20; }
.home-indicator.light, .screen.night .home-indicator { background: rgba(255, 255, 255, .85); }

/* ---------------------------------------------------------------- Dynamic Island */
.island-host { position: absolute; inset: 0 0 auto; height: 0; z-index: 30; }
.island {
  position: absolute; top: 11px; left: 50%;
  width: 126px; height: 37px; border-radius: 19px;
  background: #000; color: #fff; overflow: hidden;
  transform: translateX(-50%);
  transition:
    width var(--spring-dur) var(--spring),
    height var(--spring-dur) var(--spring),
    border-radius var(--spring-dur) var(--spring),
    top var(--spring-dur) var(--spring),
    box-shadow .5s;
  cursor: default;
}
.island[role="button"] { cursor: pointer; }
.island > * {
  position: absolute; opacity: 0; filter: blur(6px); transform: scale(.9);
  transition: opacity .18s, filter .25s, transform .5s var(--spring);
  pointer-events: none;
}
.island[data-state="compact"] { width: 204px; box-shadow: 0 0 0 1px rgba(255, 182, 76, .28); }
.island[data-state="compact"] .isl-compact,
.island[data-state="expanded"] .isl-expanded,
.island[data-state="done"] .isl-done { opacity: 1; filter: none; transform: none; transition-delay: .14s; transition-duration: .35s, .35s, .6s; }
.island[data-state="expanded"] { width: 370px; height: 182px; border-radius: 50px; top: 9px; box-shadow: 0 18px 40px -10px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 182, 76, .22); }
.island[data-state="expanded"] .isl-expanded { pointer-events: auto; }
.island[data-state="done"] { width: 212px; }
.island[data-state="minimal"] { box-shadow: none; }

.isl-compact { inset: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 15px 0 13px; }
.isl-compact svg { width: 20px; height: 20px; color: var(--amber); }
.isl-time { font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }
.isl-expanded { inset: 0; padding: 18px 24px 16px; display: flex; flex-direction: column; gap: 4px; }
.isl-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; }
.isl-lead { display: flex; align-items: center; gap: 6px; color: var(--amber); }
.isl-lead svg { width: 16px; height: 16px; }
.isl-count { text-align: center; font-size: 27px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; margin-top: 2px; }
.isl-reason { margin: 0; text-align: center; font-size: 12.5px; color: rgba(235, 235, 245, .6); }
.isl-btn { margin-top: 8px; height: 38px; border-radius: 999px; background: var(--amber); color: var(--ink); font-weight: 600; font-size: 15px; transition: transform .2s; }
.isl-btn.pressed { transform: scale(.94); filter: brightness(.9); }
.isl-done { inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 600; }
.isl-check { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #3E8E5A; }
.isl-check svg { width: 14px; height: 14px; color: #fff; }
.island[data-state="done"] .isl-check { animation: tickPop .7s var(--spring) .15s both; }
@keyframes tickPop { from { transform: scale(.3); } }

.island-bubble {
  position: absolute; top: 11px; left: calc(50% + 70px); width: 37px; height: 37px; border-radius: 50%;
  background: #000; display: grid; place-items: center;
  opacity: 0; transform: translateX(-52px) scale(.4);
  transition: transform var(--spring-dur) var(--spring), opacity .25s;
  box-shadow: 0 0 0 1px rgba(255, 182, 76, .3);
}
.island-bubble svg { width: 18px; height: 18px; color: var(--amber); }
.island-host[data-mode="minimal"] .island-bubble { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- app inside the hero phone */
.app { position: absolute; inset: 54px 0 0; padding: 6px 16px 0; overflow: hidden; }
.app-head { display: flex; justify-content: space-between; align-items: flex-end; padding: 2px 4px 12px; }
.app-date { margin: 0; font-size: 13px; font-weight: 600; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; transition: color 1s; }
.app-title { margin: 0; font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; transition: color 1s; }
.app-settings { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(18, 32, 51, .06); color: var(--teal); transition: background 1s, color 1s; }
.screen.night .app-date { color: rgba(243, 238, 226, .7); }
.screen.night .app-title { color: var(--on-night); }
.screen.night .app-settings { background: rgba(255, 255, 255, .1); color: var(--amber); }

.now-card {
  position: relative; background: var(--card); border-radius: 24px; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(18, 32, 51, .06), var(--card-shadow); color: var(--ink);
}
.cond { position: relative; padding: 18px; min-height: 186px; }
.cond-sky { position: absolute; inset: 0; z-index: 0; }
.sky { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; }
.sky.is-on { opacity: 1; }
.sky-clear { background: linear-gradient(90deg, var(--card), #A8D6F2); }
.sky-grey { background: linear-gradient(90deg, var(--card), #D3DCE6); }
.sky-rain { background: linear-gradient(90deg, var(--card), #B9CBDB); }
.sky-night { background: linear-gradient(90deg, var(--night-2), var(--night-3)); }
.sky-glow { position: absolute; inset: 0; background: radial-gradient(circle at 86% 42%, rgba(255, 182, 76, .4), transparent 100px); opacity: 0; transition: opacity 1.1s; }
.now-card.glow .sky-glow { opacity: 1; }
.sky-melt { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, var(--card)); transition: opacity 1s; }
.now-card.is-night .sky-melt { opacity: 0; }
.cond-art-wrap { position: absolute; right: 8px; top: 50%; translate: 0 -50%; width: 112px; height: 112px; }
.cond-art-float { position: absolute; inset: 0; animation: artFloat 2.4s ease-in-out infinite alternate; }
@keyframes artFloat { to { transform: translateY(-4px); } }
.cond-art { position: absolute; inset: 0; width: 112px; height: 112px; opacity: 0; transform: scale(.5) rotate(-12deg); transition: opacity .35s, transform .9s var(--spring); }
.cond-art.is-on { opacity: 1; transform: none; }
.cond > :not(.cond-sky) { position: relative; z-index: 1; }
.cond-place, .readout, .cond-label { transition: color 1s; }
.now-card.is-night .cond > :not(.cond-sky) { color: var(--on-night); }
.cond-place { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 17px; }
.cond-place img { width: 19px; height: 19px; }
.readout { display: flex; align-items: center; gap: 14px; margin: 2px 0; }
.temp { font-family: var(--rounded); font-weight: 700; font-size: 72px; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.readout-rule { width: 2px; height: 40px; border-radius: 2px; background: currentColor; opacity: .35; }
.readout-side { display: flex; flex-direction: column; gap: 2px; }
.feels { font-size: 20px; }
.hilo { font-size: 13px; opacity: .8; }
.cond-label { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 17px; }
.cond-label img { width: 24px; height: 24px; }

.slots { padding: 18px; display: flex; flex-direction: column; gap: 16px; }
.decision { background: var(--cream); border-radius: 18px; padding: 14px; }
.decision-title { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.decision-sub { margin: 4px 0 0; font-size: 16px; color: var(--ink-2); line-height: 1.35; }
.decision-sub:empty { display: none; }

.tiles { display: flex; align-items: flex-end; gap: 10px; min-height: 104px; }
.tile {
  position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px;
  padding: 10px 6px; border-radius: 16px; text-align: center;
  transition: transform .8s var(--spring), opacity .35s;
  transition-delay: calc(var(--i, 0) * 70ms);
}
.tile.p-essential { min-height: 104px; background: var(--go-surface); }
.tile.p-consider { min-height: 88px; background: rgba(255, 182, 76, .22); }
.tile.p-optional { min-height: 76px; max-width: 84px; border: 1px dashed rgba(18, 32, 51, .18); }
.tile-art { position: relative; flex: 1; display: grid; place-items: center; }
.tile .art, .db-tile .art { width: 52px; height: 52px; }
.p-consider .art { width: 42px; height: 42px; }
.p-optional .art { width: 32px; height: 32px; opacity: .6; }
.tile .badge, .db-tile .badge { position: absolute; width: 20px; height: 20px; top: -4px; right: -12px; animation: badgePop .7s var(--spring) both; animation-delay: calc(var(--i, 0) * 90ms + .3s); }
@keyframes badgePop { from { transform: scale(0) rotate(-40deg); } }
.tile-label { font-size: 15px; font-weight: 700; line-height: 1.15; }
.p-consider .tile-label { font-size: 13px; font-weight: 600; }
.p-optional .tile-label { font-size: 13px; font-weight: 400; color: var(--ink-2); }
.tile-badge { font-size: 11px; font-weight: 600; color: var(--amber-deep); line-height: 1; }
.p-essential .tile-badge, .p-optional .tile-badge { color: var(--ink-2); }
.tile.enter { opacity: 0; transform: translateY(18px) scale(.7); }
.tile.leave { opacity: 0; transform: scale(.8); transition-duration: .2s; transition-delay: 0s; }

.strip-words { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; }
.strip-words svg { width: 13px; height: 13px; color: var(--ink-2); }
.strip-words .later { color: var(--teal); }
.strip-bar { position: relative; height: 8px; margin: 6px 0; }
.seg { position: absolute; top: 0; bottom: 0; border-radius: 99px; transition: left .9s var(--spring-soft), width .9s var(--spring-soft), background .5s; }
.seg.dry { background: var(--go-strong); }
.seg.wet { background: var(--teal); }
.strip-axis { position: relative; height: 16px; font-size: 11px; color: var(--ink-2); }
.strip-axis span { position: absolute; top: 0; white-space: nowrap; transition: left .9s var(--spring-soft), opacity .3s; }
.strip-axis .end { right: 0; }

.outside-line { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 16px; color: var(--ink-2); }
.outside-line img { width: 22px; height: 22px; }
.why-chip { align-self: flex-start; font-size: 15px; font-weight: 600; color: var(--teal); }

.swap-out { animation: swapOut .2s ease-in forwards; }
.swap-in { animation: swapIn .55s var(--spring-soft) both; }
@keyframes swapOut { to { opacity: 0; filter: blur(4px); transform: translateY(-6px); } }
@keyframes swapIn { from { opacity: 0; filter: blur(4px); transform: translateY(8px); } }

/* ---------------------------------------------------------------- ticker */
.ticker { padding: 26px 0; background: var(--card); border-block: 1px solid rgba(18, 32, 51, .06); overflow: hidden; display: grid; gap: 12px; }
.ticker-row { display: flex; gap: 12px; width: max-content; animation: marquee 60s linear infinite; }
.ticker-row.reverse { animation-direction: reverse; animation-duration: 70s; }
.ticker:hover .ticker-row { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.tick-pill { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 10px; border-radius: 999px; background: var(--cream); font-weight: 700; font-size: 16px; white-space: nowrap; }
.tick-pill img { width: 30px; height: 30px; }
.tick-pill.go { background: var(--go-surface); }
.tick-pill.amber { background: rgba(255, 182, 76, .25); }
.tick-pill.sky { background: rgba(191, 229, 246, .6); }

/* ---------------------------------------------------------------- sections */
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section-sky { background: linear-gradient(180deg, var(--cream), #E3F1F6 40%, #E3F1F6 60%, var(--cream)); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.split-stage { display: flex; justify-content: center; }
.center-head { text-align: center; display: flex; flex-direction: column; align-items: center; margin-bottom: 56px; }
.center-head .section-lede { margin-inline: auto; }

/* ---------------------------------------------------------------- decide */
.priority-list { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 14px; }
.priority-list li { display: flex; gap: 16px; align-items: center; }
.priority-list b { display: block; font-size: 18px; }
.priority-list span { color: var(--ink-2); }
.pl-swatch { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; }
.pl-swatch img { width: 26px; height: 26px; }
.pl-swatch.ess { background: var(--go-surface); }
.pl-swatch.con { background: rgba(255, 182, 76, .28); }
.pl-swatch.opt { border: 1.5px dashed rgba(18, 32, 51, .25); }

.decide-board {
  position: relative; width: min(100%, 520px); background: var(--card); border-radius: 32px; padding: 26px;
  box-shadow: inset 0 0 0 1px rgba(18, 32, 51, .06), var(--lift-shadow);
}
.db-decision { background: var(--cream); border-radius: 22px; padding: 20px; }
.db-title { margin: 0; font-size: clamp(26px, 3vw, 32px); font-weight: 800; letter-spacing: -.02em; }
.db-sub { margin: 4px 0 0; color: var(--ink-2); font-size: 18px; }
.db-tiles { display: flex; align-items: flex-end; gap: 14px; margin-top: 20px; }
.db-tile {
  position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px;
  padding: 14px 8px; border-radius: 22px; text-align: center;
  transform: translateY(30px) scale(.8); opacity: 0;
  transition: transform .9s var(--spring), opacity .4s, box-shadow .3s;
  transition-delay: calc(var(--i) * 110ms + .2s);
}
.decide-board.in .db-tile { transform: none; opacity: 1; }
.db-tile.p-essential { min-height: 156px; background: var(--go-surface); }
.db-tile.p-consider { min-height: 132px; background: rgba(255, 182, 76, .22); }
.db-tile.p-optional { min-height: 112px; max-width: 120px; border: 1.5px dashed rgba(18, 32, 51, .2); }
.db-tile .art { width: 78px; height: 78px; transition: transform .6s var(--spring); }
.db-tile.p-consider .art { width: 62px; height: 62px; }
.db-tile.p-optional .art { width: 46px; height: 46px; }
.db-tile .badge { width: 28px; height: 28px; right: -16px; top: -6px; animation: none; transform: scale(0); transition: transform .7s var(--spring) calc(var(--i) * 110ms + .6s); }
.decide-board.in .db-tile .badge { transform: none; }
.db-tile .tile-label { font-size: 18px; }
.db-tile.p-consider .tile-label, .db-tile.p-optional .tile-label { font-size: 16px; }
.db-tile .tile-badge { font-size: 13px; }
.db-tile:hover .art { transform: scale(1.08) rotate(-4deg); }
.db-tile.is-active { box-shadow: 0 0 0 3px var(--teal); }

.why-sheet {
  margin-top: 18px; background: #fff; border-radius: 22px; padding: 10px 18px 18px;
  box-shadow: 0 -2px 0 rgba(18, 32, 51, .03), 0 12px 30px -16px rgba(18, 32, 51, .35);
  transform-origin: top center;
}
.why-grabber { width: 36px; height: 5px; border-radius: 3px; background: rgba(18, 32, 51, .15); margin: 0 auto 10px; }
.why-head { margin: 0 0 6px; font-weight: 800; font-size: 18px; }
.why-body { min-height: 92px; }
.why-row { display: flex; gap: 14px; align-items: flex-start; }
.why-row img { width: 40px; height: 40px; flex: none; }
.why-row b { display: block; font-size: 16px; }
.why-row p { margin: 2px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.why-row .rule { display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: 999px; background: rgba(191, 229, 246, .6); font-size: 13px; font-weight: 600; color: var(--teal); }
.db-hint { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 16px 0 0; color: var(--ink-2); font-size: 14px; font-weight: 600; }
.tap-ring { width: 14px; height: 14px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(44, 105, 135, .5); animation: ring 1.8s infinite; }
@keyframes ring { 70% { box-shadow: 0 0 0 12px rgba(44, 105, 135, 0); } 100% { box-shadow: 0 0 0 0 rgba(44, 105, 135, 0); } }

/* ---------------------------------------------------------------- time */
.big-strip {
  max-width: 920px; margin: 0 auto; background: var(--card); border-radius: 32px; padding: clamp(24px, 4vw, 40px);
  box-shadow: inset 0 0 0 1px rgba(18, 32, 51, .06), var(--lift-shadow);
}
.bs-words { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-family: var(--display); font-weight: 900; font-size: clamp(26px, 4vw, 44px); letter-spacing: -.02em; }
.bs-words svg { color: var(--ink-2); }
.bs-words .later { color: var(--teal); }
.bs-bar { position: relative; height: 22px; margin: 26px 0 12px; border-radius: 99px; background: rgba(18, 32, 51, .05); }
.bs-seg { position: absolute; top: 0; bottom: 0; border-radius: 99px; width: 0; }
.bs-seg.dry { left: 0; background: var(--go-strong); transition: width 1.4s var(--ease-out) .3s; }
.bs-seg.wet { left: calc(77% + 3px); background: repeating-linear-gradient(-45deg, var(--teal) 0 10px, #367A9B 10px 20px); transition: width 1s var(--ease-out) 1.6s; animation: rainSlide 1.2s linear infinite; background-size: 28px 28px; }
@keyframes rainSlide { to { background-position: 28px 0; } }
.big-strip.in .bs-seg.dry { width: calc(77% - 3px); }
.big-strip.in .bs-seg.wet { width: calc(23% - 3px); }
.bs-now { position: absolute; left: 0; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px var(--go-strong), 0 6px 12px rgba(18, 32, 51, .2); transform: scale(0); transition: transform .7s var(--spring) .2s; }
.bs-now::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--go-strong); animation: ring2 2s infinite 1.2s; opacity: 0; }
@keyframes ring2 { 0% { opacity: .8; transform: scale(1); } 100% { opacity: 0; transform: scale(1.9); } }
.big-strip.in .bs-now { transform: scale(1); }
.bs-axis { position: relative; height: 22px; color: var(--ink-2); font-weight: 600; font-size: 15px; }
.bs-axis span { position: absolute; top: 0; }
.bs-tick { transform: translateX(-50%) translateY(8px); opacity: 0; transition: transform .7s var(--spring) 1.5s, opacity .4s 1.5s; color: var(--teal); }
.big-strip.in .bs-tick { transform: translateX(-50%); opacity: 1; }
.bs-end { right: 0; }

.hourly-card {
  max-width: 920px; margin: 28px auto 0; background: var(--card); border-radius: 28px; padding: 22px 22px 18px;
  box-shadow: inset 0 0 0 1px rgba(18, 32, 51, .06), var(--card-shadow);
}
.hc-head { display: flex; justify-content: space-between; align-items: center; font-weight: 600; margin-bottom: 14px; flex-wrap: wrap; gap: 8px; }
.hc-title { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.hc-title svg { color: var(--teal); }
.hc-legend { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--amber-deep); }
.hc-cols { display: grid; grid-template-columns: repeat(12, minmax(52px, 1fr)); gap: 4px; overflow-x: auto; scrollbar-width: none; }
.hc-cols::-webkit-scrollbar { display: none; }
.hc-col { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 0; border-radius: 14px; font-size: 13px; opacity: 0; transform: translateY(16px); transition: opacity .5s, transform .8s var(--spring); transition-delay: calc(var(--i) * 45ms); }
.hourly-card.in .hc-col { opacity: 1; transform: none; }
.hc-col.now { background: rgba(255, 182, 76, .25); font-weight: 700; }
.hc-col img { width: 34px; height: 34px; }
.hc-col .t { font-weight: 600; font-size: 15px; }
.hc-bar { position: relative; width: 8px; height: 36px; border-radius: 4px; background: rgba(191, 229, 246, .5); overflow: hidden; }
.hc-bar i { position: absolute; left: 0; right: 0; bottom: 0; height: 0; border-radius: 4px; background: var(--teal); transition: height 1s var(--spring-soft); transition-delay: calc(var(--i) * 60ms + .4s); }
.hourly-card.in .hc-bar i { height: var(--h); }
.hc-col svg { width: 13px; height: 13px; color: var(--amber-deep); opacity: 0; transform: scale(0); transition: transform .6s var(--spring), opacity .3s; transition-delay: calc(var(--i) * 80ms + 1s); }
.hourly-card.in .hc-col.dry svg { opacity: 1; transform: none; }
.hc-col .pct { font-size: 11px; color: var(--ink-2); }

/* ---------------------------------------------------------------- island section */
.steps { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 6px; counter-reset: step; }
.step {
  position: relative; display: block; width: 100%; text-align: left; padding: 14px 18px 16px 58px; border-radius: 18px;
  transition: background .35s, box-shadow .35s; overflow: hidden;
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 16px; top: 14px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 14px;
  background: rgba(18, 32, 51, .07); color: var(--ink-2); transition: background .3s, color .3s;
}
.step b { display: block; font-size: 17px; color: var(--ink-2); transition: color .3s; }
.step span { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease-out); color: var(--ink-2); font-size: 15px; }
.step span > i { overflow: hidden; font-style: normal; }
.step.is-active { background: var(--card); box-shadow: inset 0 0 0 1px rgba(18, 32, 51, .06), var(--card-shadow); }
.step.is-active::before { background: var(--amber); color: var(--ink); }
.step.is-active b { color: var(--ink); }
.step.is-active span { grid-template-rows: 1fr; }
.step .step-progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--amber); }
.step.is-active.run .step-progress { animation: chipProgress var(--step-dur, 3.6s) linear forwards; }

.home-screen { background: #4C9BCB; }
.wallpaper { position: absolute; inset: 0; background: linear-gradient(180deg, #2F7FB5 0%, #5FA9D6 40%, #A9D8F0 75%, #E7F3F5 100%); overflow: hidden; }
.wallpaper.dusk { background: linear-gradient(180deg, #1B2540 0%, #2C4772 45%, #4F6E9C 70%, #C99A75 100%); }
.wp-cloud { position: absolute; background: rgba(255, 255, 255, .55); border-radius: 999px; filter: blur(1px); animation: wpDrift 40s ease-in-out infinite alternate; }
.wp-cloud::before { content: ""; position: absolute; border-radius: 50%; background: inherit; }
.wp-cloud.w1 { width: 180px; height: 54px; left: -40px; top: 520px; }
.wp-cloud.w1::before { width: 90px; height: 90px; left: 40px; top: -50px; }
.wp-cloud.w2 { width: 240px; height: 66px; right: -60px; top: 640px; animation-duration: 55s; }
.wp-cloud.w2::before { width: 120px; height: 120px; left: 70px; top: -66px; }
.wp-cloud.w3 { width: 140px; height: 42px; left: 120px; top: 760px; opacity: .7; animation-duration: 35s; }
.wp-cloud.w3::before { width: 70px; height: 70px; left: 30px; top: -38px; }
.dusk .wp-cloud { background: rgba(255, 220, 190, .18); }
@keyframes wpDrift { to { transform: translateX(60px); } }

.hs-grid { position: absolute; top: 70px; left: 27px; right: 27px; display: grid; grid-template-columns: 158px 158px; justify-content: space-between; row-gap: 22px; }
.hs-cell.wide { grid-column: 1 / -1; }
.hs-apps { grid-column: 1 / -1; display: flex; gap: 22px; padding: 4px 4px 0; }
.hs-app { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: #fff; font-weight: 500; text-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.hs-app img { width: 62px; height: 62px; border-radius: 15px; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .35); }
.hs-search { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 7px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: rgba(18, 32, 51, .75); background: rgba(255, 255, 255, .5); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.finger {
  position: absolute; z-index: 40; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%;
  background: rgba(255, 255, 255, .55); box-shadow: 0 0 0 2px rgba(255, 255, 255, .8), 0 8px 20px rgba(0, 0, 0, .25);
  opacity: 0; pointer-events: none; left: var(--fx, 50%); top: var(--fy, 50%);
}
.finger.tap { animation: fingerTap 1s var(--ease-out) forwards; }
@keyframes fingerTap {
  0% { opacity: 0; transform: scale(1.6); }
  35% { opacity: 1; transform: scale(1); }
  55% { transform: scale(.82); }
  75% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.1); }
}

/* ---------------------------------------------------------------- widgets (shared) */
.w {
  position: relative; background: var(--card); color: var(--ink); border-radius: 22px; padding: 14px; overflow: hidden;
  font-family: var(--ui); box-shadow: 0 10px 30px -14px rgba(18, 32, 51, .45);
}
.w-small { width: 158px; height: 158px; display: flex; flex-direction: column; }
.w-medium { width: 338px; height: 158px; }
.wn-top { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; color: var(--ink-2); }
.wn-top img { width: 22px; height: 22px; }
.wn-decision { margin: 6px 0 0; font-size: 15px; font-weight: 700; line-height: 1.2; }
.wn-tiles { margin-top: auto; display: flex; gap: 6px; }
.wn-tiles span { flex: 1; min-height: 36px; border-radius: 8px; display: grid; place-items: center; background: rgba(191, 229, 246, .3); }
.wn-tiles span.ess { background: var(--go-surface); }
.wn-tiles img { width: 22px; height: 22px; }
.wn-tiles .ess img { width: 30px; height: 30px; }
.wl-label { display: flex; align-items: center; gap: 5px; margin: 0; font-size: 12px; font-weight: 600; color: var(--teal); }
.wl-label svg { width: 14px; height: 14px; }
.wl-title { margin: 6px 0 0; font-size: 15px; font-weight: 700; line-height: 1.2; }
.wl-detail { margin: 4px 0 0; font-size: 12px; font-weight: 600; color: var(--ink-2); line-height: 1.25; }
.wl-btn {
  margin-top: auto; width: 100%; height: 30px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--amber); color: var(--ink); transition: background .35s, transform .4s var(--spring);
}
.wl-btn.is-out { background: var(--sky); }
.wl-btn:active, .wl-btn.pressed { transform: scale(.92); }
.wt-head { display: flex; justify-content: space-between; align-items: baseline; }
.wt-head b { font-size: 17px; }
.wt-head span { font-size: 12px; font-weight: 600; color: var(--teal); }
.wt-viewport { overflow: hidden; margin-top: 8px; }
.wt-cols { display: flex; transition: transform .8s var(--spring-soft); }
.wt-col { flex: 0 0 calc(100% / 6); display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; }
.wt-col img { width: 24px; height: 24px; }
.wt-col .t { font-size: 12px; font-weight: 600; }
.wt-col .bar { height: 20px; display: flex; align-items: flex-end; }
.wt-col .bar i { width: 6px; border-radius: 3px; background: var(--teal); }

/* ---------------------------------------------------------------- widgets section */
.section-dusk {
  color: var(--on-night);
  background:
    radial-gradient(900px 500px at 50% 0%, rgba(79, 110, 156, .55), transparent 70%),
    linear-gradient(180deg, var(--night) 0%, #202840 55%, var(--night) 100%);
}
.section-dusk .section-lede { color: rgba(243, 238, 226, .78); }
.section-dusk .kicker { background: rgba(255, 255, 255, .08); color: var(--amber); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.section-dusk q { color: var(--on-night); }
.widget-stage { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.ws-col { display: flex; flex-direction: column; gap: 40px; }
.ws-col.left { align-items: flex-end; }
.ws-col.right { align-items: flex-start; }
.ws-item { display: flex; flex-direction: column; gap: 14px; perspective: 900px; }
.ws-col.left .ws-item { align-items: flex-end; text-align: right; }
.ws-zoom { zoom: 1.3; transform-style: preserve-3d; transition: transform .6s var(--spring-soft); animation: bob 7s ease-in-out infinite; }
.ws-item:nth-child(2) .ws-zoom { animation-delay: -3s; }
.ws-col.right .ws-zoom { zoom: 1.15; animation-delay: -1.5s; }
.ws-zoom .w { box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .06); }
.ws-cap { margin: 0; max-width: 260px; color: rgba(243, 238, 226, .75); font-size: 15px; }
.ws-cap b { display: block; color: var(--on-night); font-size: 17px; }
.ws-families { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: rgba(243, 238, 226, .8); font-weight: 600; font-size: 15px; }
.ws-families li { display: flex; align-items: center; gap: 12px; }
.fam { width: 26px; height: 26px; border: 2px solid var(--amber); flex: none; }
.fam-s { border-radius: 7px; }
.fam-m { width: 40px; height: 22px; border-radius: 6px; }
.fam-c { border-radius: 50%; }
.fam-r { width: 40px; height: 20px; border-radius: 5px; border-style: dashed; }
.fam-i { width: 40px; height: 4px; border-width: 0; border-radius: 2px; background: var(--amber); }

.lock-screen { background: var(--night-2); }
.ls-carrier { display: flex; }
.ls-top { position: absolute; top: 74px; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; color: #fff; }
.ls-inline { margin: 0; font-size: 17px; font-weight: 600; opacity: .9; }
.ls-clock { margin: -6px 0 0; font-family: var(--rounded); font-weight: 700; font-size: 104px; line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; text-shadow: 0 2px 20px rgba(0, 0, 0, .15); }
.ls-accessories { display: flex; gap: 12px; margin-top: 6px; }
.acc-circ, .acc-rect { background: rgba(255, 255, 255, .16); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); color: #fff; }
.acc-circ { width: 72px; height: 72px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font-size: 12px; font-weight: 600; }
.acc-circ svg { width: 22px; height: 22px; }
.acc-rect { width: 170px; height: 72px; border-radius: 14px; padding: 7px 11px; display: flex; flex-direction: column; justify-content: center; line-height: 1.25; }
.acc-rect b { font-size: 15px; }
.acc-rect span { font-size: 12px; font-weight: 600; opacity: .9; }
.acc-rect small { font-size: 11px; opacity: .8; }
.ls-in { opacity: 0; transform: translateY(16px); transition: opacity .6s, transform .9s var(--spring-soft); transition-delay: var(--d); }
.lock-screen.in .ls-in { opacity: 1; transform: none; }
.live-activity {
  position: absolute; left: 14px; right: 14px; bottom: 34px; padding: 16px; border-radius: 26px;
  display: flex; align-items: center; gap: 14px;
  background: rgba(255, 251, 241, .94); color: var(--ink);
  box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .5);
  transform: translateY(160%); transition: transform 1.1s var(--spring-soft) .6s;
}
.lock-screen.in .live-activity { transform: none; }
.la-icon svg { width: 34px; height: 34px; color: var(--amber); }
.la-body { flex: 1; min-width: 0; }
.la-body p { margin: 0; }
.la-where { font-size: 15px; font-weight: 600; }
.la-by { font-size: 17px; font-weight: 700; }
.la-count { font-size: 15px; font-weight: 600; color: var(--teal); font-variant-numeric: tabular-nums; }
.la-why { font-size: 12px; color: var(--ink-2); }
.la-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 182, 76, .3); color: var(--amber-deep); }
.la-btn svg { width: 22px; height: 22px; }

/* ---------------------------------------------------------------- vibes */
.vibe-switch {
  position: relative; display: inline-grid; grid-template-columns: repeat(3, 1fr); margin-top: 32px;
  padding: 5px; border-radius: 999px; background: rgba(18, 32, 51, .07);
}
.vibe-switch button { position: relative; z-index: 1; padding: 11px 26px; border-radius: 999px; font-weight: 700; font-size: 16px; color: var(--ink-2); transition: color .3s; }
.vibe-switch button[aria-selected="true"] { color: var(--ink); }
.vs-thumb {
  position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc((100% - 10px) / 3); border-radius: 999px;
  background: var(--amber); box-shadow: 0 6px 14px -6px rgba(138, 82, 0, .6);
  transform: translateX(calc(var(--vi, 1) * 100%)); transition: transform .6s var(--spring);
}
.vibe-motion { margin: 16px 0 0; font-size: 15px; color: var(--ink-2); min-height: 3em; }
.vibe-stage { position: relative; width: min(100%, 440px); display: grid; gap: 16px; padding-top: 74px; }
.vibe-card {
  background: var(--card); border-radius: 24px; padding: 18px;
  box-shadow: inset 0 0 0 1px rgba(18, 32, 51, .06), var(--lift-shadow);
}
.vc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.vc-temp span { display: block; font-family: var(--rounded); font-size: 56px; font-weight: 700; line-height: 1; }
.vc-temp small { font-size: 15px; color: var(--ink-2); }
.vc-art { width: 96px; height: 96px; }
.vibe-stage[data-vibe="playful"] .vc-art { animation: artFloat 2.4s ease-in-out infinite alternate; }
.vibe-stage[data-vibe="hype"] .vc-art { animation: hypeBounce 1.2s var(--spring) infinite alternate; }
@keyframes hypeBounce { from { transform: translateY(0) rotate(-4deg) scale(1); } to { transform: translateY(-10px) rotate(4deg) scale(1.06); } }
.vc-label { display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 600; font-size: 15px; color: var(--ink-2); }
.vc-label svg { color: var(--teal); }
.vc-label span { margin-left: auto; font-weight: 400; font-size: 13px; }
.vc-title { margin: 10px 0 2px; font-size: 21px; font-weight: 700; }
.vc-detail { margin: 0 0 14px; color: var(--ink); }
.action-btn { width: 100%; min-height: 50px; border-radius: 16px; background: var(--amber); font-weight: 700; font-size: 17px; transition: transform .2s; }
.action-btn:active { transform: scale(.98); opacity: .85; }
.celebration {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3; display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: 22px; background: var(--card); box-shadow: var(--lift-shadow);
  opacity: 0; transform: translateY(-14px); pointer-events: none; transition: opacity .35s, transform .7s var(--spring);
}
.celebration.show { opacity: 1; transform: none; }
.celebration b { display: block; font-size: 17px; }
.celebration span { color: var(--ink-2); font-size: 15px; }
.cel-tick img { width: 36px; height: 36px; }
.vibe-stage[data-vibe="calm"] .celebration { transition: opacity .2s ease-in-out, transform .2s ease-in-out; }
.vibe-stage[data-vibe="playful"] .celebration.show .cel-tick, .vibe-stage[data-vibe="hype"] .celebration.show .cel-tick { animation: tickPop .7s var(--spring) both; }
.vibe-stage[data-vibe="hype"] .celebration.show { animation: hypeShake .5s ease 0s 1; }
@keyframes hypeShake { 20% { translate: -4px 0; } 40% { translate: 4px 0; } 60% { translate: -2px 0; } 80% { translate: 2px 0; } }
.confetti, .confetti-global { position: absolute; inset: -80px; width: calc(100% + 160px); height: calc(100% + 160px); pointer-events: none; z-index: 4; }
.confetti-global { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 60; }

/* ---------------------------------------------------------------- night */
.night {
  position: relative; overflow: hidden; color: var(--on-night); padding: clamp(90px, 12vw, 150px) 0;
  background: linear-gradient(180deg, var(--cream) 0, var(--night) 140px, var(--night-2) 60%, var(--night) 100%);
}
.starfield { position: absolute; inset: 0; width: 100%; height: 100%; }
.night .wrap { position: relative; }
.night .section-lede { color: rgba(243, 238, 226, .78); }
.night .kicker { background: rgba(255, 255, 255, .08); color: var(--amber); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.night-card {
  position: relative; width: min(100%, 400px); padding: 26px; border-radius: 32px; text-align: center;
  background: linear-gradient(180deg, rgba(52, 70, 110, .65), rgba(27, 37, 64, .75));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 40px 80px -30px rgba(0, 0, 0, .7);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.nc-head { display: flex; justify-content: space-between; font-weight: 700; color: rgba(243, 238, 226, .7); font-size: 15px; }
.nc-moon { position: relative; width: 200px; height: 200px; margin: 18px auto 10px; }
.nc-moon canvas { position: relative; z-index: 1; width: 200px; height: 200px; animation: moonRise 1.6s var(--spring-soft) both paused; }
.night-card.in .nc-moon canvas { animation-play-state: running; }
@keyframes moonRise { from { transform: translateY(40px) rotate(-20deg); opacity: 0; } }
.moon-halo { position: absolute; inset: -30px; border-radius: 50%; background: radial-gradient(circle, rgba(244, 235, 200, .28), transparent 65%); animation: breathe 6s ease-in-out infinite; }
.nc-phase { margin: 0; font-family: var(--display); font-weight: 900; font-size: 28px; }
.nc-lit { margin: 0; color: rgba(243, 238, 226, .7); }
.nc-row { display: flex; justify-content: center; gap: 22px; margin-top: 20px; font-weight: 600; font-size: 15px; flex-wrap: wrap; }
.nc-row span { display: flex; align-items: center; gap: 8px; }
.nc-row img { width: 30px; height: 30px; }

/* ---------------------------------------------------------------- privacy bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bento-card {
  background: var(--card); border-radius: 28px; padding: 26px; display: flex; flex-direction: column;
  box-shadow: inset 0 0 0 1px rgba(18, 32, 51, .06), var(--card-shadow);
  transition: transform .6s var(--spring-soft), box-shadow .4s, opacity .7s var(--ease-out);
}
.bento-card:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px rgba(18, 32, 51, .06), var(--lift-shadow); }
.bento-card h3 { margin: 22px 0 6px; font-family: var(--display); font-weight: 900; font-size: 24px; letter-spacing: -.01em; }
.bento-card p { margin: 0; color: var(--ink-2); }
.bento-card .mono { margin-top: 12px; font: 600 13px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--teal); }
.round-map {
  position: relative; height: 170px; border-radius: 20px; overflow: hidden;
  background-color: #E3F1F6;
  background-image: linear-gradient(rgba(44, 105, 135, .18) 1px, transparent 1px), linear-gradient(90deg, rgba(44, 105, 135, .18) 1px, transparent 1px);
  background-size: 42px 42px; background-position: -1px -1px;
}
.rm-pin { position: absolute; left: var(--rx, 50%); top: var(--ry, 50%); width: 44px; height: 44px; margin: -40px 0 0 -22px; transition: left 1.1s var(--spring), top 1.1s var(--spring); }
.rm-pin img { width: 44px; height: 44px; }
.rm-pin::after { content: ""; position: absolute; left: 50%; top: 40px; width: 18px; height: 6px; margin-left: -9px; border-radius: 50%; background: rgba(18, 32, 51, .2); }
.round-map::after { content: ""; position: absolute; left: var(--cx); top: var(--cy); width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: rgba(44, 105, 135, .14); box-shadow: inset 0 0 0 2px rgba(44, 105, 135, .35); transform: scale(var(--cs, 0)); transition: transform .8s var(--spring); }
.no-list { display: grid; gap: 10px; }
.no-list span { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: var(--cream); font-size: 18px; font-weight: 700; }
.no-list b { color: #fff; background: var(--go); padding: 2px 10px; border-radius: 999px; font-size: 14px; transform: scale(0); transition: transform .6s var(--spring); }
.bento-card.in .no-list span:nth-child(1) b { transform: none; transition-delay: .4s; }
.bento-card.in .no-list span:nth-child(2) b { transform: none; transition-delay: .55s; }
.bento-card.in .no-list span:nth-child(3) b { transform: none; transition-delay: .7s; }
.siri-chat { display: flex; flex-direction: column; gap: 8px; min-height: 170px; }
.bubble { margin: 0; max-width: 88%; padding: 9px 14px; border-radius: 18px; font-size: 14px; line-height: 1.35; opacity: 0; transform: translateY(10px) scale(.9); transition: opacity .4s, transform .6s var(--spring); }
.bubble.show { opacity: 1; transform: none; }
.bubble.me { align-self: flex-end; background: var(--teal); color: #fff; border-bottom-right-radius: 6px; transform-origin: bottom right; }
.bubble.buddy { align-self: flex-start; display: flex; gap: 8px; align-items: flex-start; background: var(--cream); border-bottom-left-radius: 6px; transform-origin: bottom left; font-weight: 600; }
.bubble.buddy img { width: 20px; height: 20px; border-radius: 5px; flex: none; margin-top: 1px; }

/* ---------------------------------------------------------------- download */
.download { padding: 40px 0 clamp(80px, 10vw, 120px); }
.dl-card {
  position: relative; overflow: hidden; border-radius: 44px; text-align: center; padding: clamp(56px, 8vw, 96px) 24px;
  background:
    radial-gradient(500px 300px at 80% 0%, rgba(255, 182, 76, .45), transparent 70%),
    linear-gradient(180deg, #A8D6F2 0%, #D5ECF5 50%, var(--card) 100%);
  box-shadow: inset 0 0 0 1px rgba(18, 32, 51, .06), var(--lift-shadow);
  display: flex; flex-direction: column; align-items: center;
}
.dl-sky { position: absolute; inset: 0; pointer-events: none; }
.dl-card > :not(.dl-sky) { position: relative; }
.dl-icon { border-radius: 30px; box-shadow: 0 24px 50px -16px rgba(18, 32, 51, .55); margin-bottom: 28px; animation: iconFloat 4s ease-in-out infinite; }
@keyframes iconFloat { 50% { transform: translateY(-10px) rotate(-2deg); } }
.dl-card .section-lede { margin: 18px auto 30px; }
.dl-note { margin: 22px 0 0; font-size: 14px; color: var(--ink-2); max-width: 30em; }

.footer { padding: 30px 0 40px; border-top: 1px solid rgba(18, 32, 51, .08); color: var(--ink-2); font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .widget-stage { grid-template-columns: 1fr 1fr; }
  .ws-phone { grid-column: 1 / -1; grid-row: 1; display: flex; justify-content: center; }
  .ws-col.left, .ws-col.right { align-items: center; }
  .ws-col.left .ws-item { align-items: center; text-align: center; }
  .ws-col.right .ws-item { align-items: center; text-align: center; }
  .ws-zoom, .ws-col.right .ws-zoom { zoom: 1; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-inner .btn { margin-left: auto; }
  .hero { padding-top: 104px; }
  .hero .drift { opacity: .5; width: calc(var(--s) * .7); height: calc(var(--s) * .7); }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; margin: 0 auto; }
  .hero-copy .lede { margin-inline: auto; }
  .cta-row, .proof { justify-content: center; }
  .split-copy { text-align: left; }
  .bento { grid-template-columns: 1fr; }
  .widget-stage { grid-template-columns: 1fr; }
  .ws-col { gap: 32px; }
  .ws-families { justify-items: start; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .btn-sm { padding: 0 12px; }
  .brand span { font-size: 17px; }
  .db-tiles { gap: 8px; }
  .decide-board { padding: 16px; border-radius: 26px; }
  .db-tile .art { width: 60px; height: 60px; }
  .db-tile.p-consider .art { width: 48px; height: 48px; }
  .db-tile.p-optional .art { width: 38px; height: 38px; }
  .db-tile.p-essential { min-height: 132px; }
  .db-tile.p-consider { min-height: 114px; }
  .db-tile.p-optional { min-height: 98px; max-width: 96px; }
  .db-tile .tile-label { font-size: 16px; }
  .db-tile.p-consider .tile-label, .db-tile.p-optional .tile-label { font-size: 14px; }
  .vibe-switch button { padding: 10px 18px; }
  .ws-zoom .w-medium { zoom: .9; }
}

@media (max-width: 360px) {
  .nav .brand span { display: none; }
}

/* ---------------------------------------------------------------- reduced motion: same as the app, motion off */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .cloud-blob, .ticker-row { animation: none !important; }
}
