:root {
  color-scheme: dark;
  --bg: #0c0912;
  --bg-2: #140f1d;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-2: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f7f3fb;
  --muted: #b7adc6;
  --soft: #8e839f;
  --violet: #8b3fe0;
  --pink: #e0458f;
  --peach: #f6a35c;
  --grad: linear-gradient(120deg, #8b3fe0 0%, #e0458f 52%, #f6a35c 100%);
  --round: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, sans-serif;
  --radius: 22px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  background: rgba(12, 9, 18, 0.62);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.scrolled { border-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--round); font-weight: 800; font-size: 19px; text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text); text-decoration: none;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--peach); box-shadow: 0 0 10px var(--peach); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 40px; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 120%; z-index: -2;
  background:
    radial-gradient(40% 50% at 25% 30%, rgba(139, 63, 224, 0.45), transparent 70%),
    radial-gradient(35% 45% at 80% 25%, rgba(224, 69, 143, 0.35), transparent 70%),
    radial-gradient(30% 40% at 60% 80%, rgba(246, 163, 92, 0.18), transparent 70%);
}
.tile-floor {
  position: absolute; z-index: -1; left: 50%; top: 52%; width: 1500px;
  transform: translate(-50%, -50%) perspective(1400px) rotateX(58deg) rotateZ(-28deg);
  display: grid; grid-template-columns: repeat(9, 1fr); gap: 22px; opacity: .5;
  -webkit-mask-image: radial-gradient(closest-side, #000 40%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 40%, transparent 100%);
  animation: drift 38s linear infinite;
}
/* Text side stays readable: the tile floor fades out behind the headline. */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(12, 9, 18, .88) 38%, rgba(12, 9, 18, .2) 62%, transparent 80%),
              linear-gradient(0deg, var(--bg) 0%, transparent 22%);
}
@keyframes drift { from { translate: 0 0; } to { translate: 0 var(--drift, -338px); } }
@media (prefers-reduced-motion: reduce) { .tile-floor { animation: none; } }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.hero h1 {
  font-family: var(--round); font-weight: 900; letter-spacing: -0.03em;
  font-size: clamp(48px, 7.4vw, 92px); line-height: .98; margin: 0 0 22px;
}
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 520px; margin: 0 0 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 24px; border-radius: 999px;
  font-weight: 700; font-size: 16px; text-decoration: none; border: 0; cursor: default;
}
.btn-primary { background: #fff; color: #120c1a; }
.btn-primary svg { width: 20px; height: 20px; }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--line); cursor: pointer; }
.btn-ghost:hover { background: var(--surface-2); }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; color: var(--soft); font-size: 14px; }
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { width: 16px; height: 16px; stroke: var(--peach); }

.device-stage { position: relative; display: flex; justify-content: center; min-height: 600px; }
.phone {
  width: 300px; border-radius: 54px; padding: 11px; background: #0a0a0c;
  box-shadow: 0 0 0 1.5px #2d2833, 0 40px 90px rgba(0, 0, 0, .55), 0 0 120px rgba(139, 63, 224, .25);
  position: relative;
}
.phone img { border-radius: 44px; width: 100%; height: auto; aspect-ratio: 660 / 1434; object-fit: cover; }
.watch {
  width: 158px; border-radius: 46px; padding: 9px; background: #0a0a0c;
  box-shadow: 0 0 0 1.5px #2d2833, 0 30px 60px rgba(0, 0, 0, .55);
  position: relative;
}
.watch::after {
  content: ""; position: absolute; right: -7px; top: 30%; width: 7px; height: 30px; border-radius: 0 4px 4px 0;
  background: linear-gradient(90deg, #2a2630, #4a4452);
}
.watch img { border-radius: 38px; width: 100%; height: auto; aspect-ratio: 416 / 496; object-fit: cover; }
.device-stage .watch { position: absolute; right: 2%; bottom: 40px; transform: rotate(4deg); }
.device-stage .phone { transform: rotate(-3deg); }

/* ---------- Tiles (same colors as in the app) ---------- */
.tile {
  --h: 280;
  aspect-ratio: 1; border-radius: 22%;
  display: grid; place-items: center; text-align: center; padding: 12%;
  color: #fff; font-family: var(--round); font-weight: 900; line-height: 1.02; letter-spacing: -0.01em;
  text-shadow: 0 4px 14px rgba(0, 0, 0, .45);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .16), transparent 45%),
    radial-gradient(circle at 18% 18%, hsl(calc(var(--h) + 43) 60% 60% / .95), transparent 52%),
    radial-gradient(circle at 85% 80%, hsl(var(--h) 50% 18% / .95), transparent 58%),
    linear-gradient(45deg, hsl(var(--h) 50% 20%), hsl(var(--h) 49% 37%) 55%, hsl(calc(var(--h) + 43) 57% 54%));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 18px 40px rgba(0, 0, 0, .35);
}
.tile-floor .tile { font-size: 26px; }

/* ---------- Ribbon ---------- */
.ribbon { border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.ribbon-track { display: flex; gap: 48px; padding: 18px 0; width: max-content; animation: scroll 40s linear infinite; }
.ribbon-track span { font-family: var(--round); font-weight: 800; font-size: 20px; color: var(--muted); white-space: nowrap; }
.ribbon-track span::after { content: "✦"; margin-left: 48px; color: var(--pink); }
@keyframes scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ribbon-track { animation: none; } }

/* ---------- Sections ---------- */
section { padding: 110px 0; }
.section-head { max-width: 700px; margin: 0 auto 60px; text-align: center; }
h2 {
  font-family: var(--round); font-weight: 900; letter-spacing: -0.025em;
  font-size: clamp(34px, 4.6vw, 56px); line-height: 1.04; margin: 0 0 18px;
}
.section-head p, .feature p { color: var(--muted); font-size: 19px; margin: 0; }
.tag {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px; margin-bottom: 18px;
  background: rgba(224, 69, 143, .14); color: #ff9cc8; border: 1px solid rgba(224, 69, 143, .3);
}
.tag.pro { background: rgba(246, 163, 92, .14); color: #ffc794; border-color: rgba(246, 163, 92, .3); }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; padding: 50px 0; }
.feature.flip .feature-visual { order: -1; }
.feature ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.feature li { display: flex; gap: 12px; color: var(--text); font-size: 17px; }
.feature li svg { flex: none; width: 22px; height: 22px; margin-top: 2px; stroke: var(--peach); }
.feature-visual { display: flex; justify-content: center; align-items: center; gap: 24px; position: relative; }
.feature-visual::before {
  content: ""; position: absolute; inset: 8% 4%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(139, 63, 224, .35), transparent);
  filter: blur(20px);
}
.feature-visual .phone { width: 270px; }

.looks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; width: 100%; max-width: 460px; }
.looks figure { margin: 0; text-align: center; }
.looks .tile { font-size: clamp(18px, 2.4vw, 26px); }
.looks figcaption { margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--muted); }
.looks .glyph { width: 56%; height: auto; }
.looks .tile.icon-style { background: #f3eee6; }
.looks .tile.icon-style svg { width: 70%; height: auto; }

/* CarPlay: real screenshots of a wide car display, full width under the text, in a dark bezel. */
.feature-wide { grid-template-columns: minmax(0, 1fr); gap: 34px; }
.feature-wide .feature-copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 60px; align-items: center; }
.feature-wide .feature-copy > * { grid-column: 1; }
.feature-wide .feature-copy > .tag { justify-self: start; }
.feature-wide .feature-copy > ul { grid-column: 2; grid-row: 1 / 4; margin: 0; }
.feature-wide .feature-visual { flex-direction: column; gap: 18px; }
.feature-wide .feature-visual::before { inset: 0 12%; }
.cp-screen {
  --bezel: clamp(5px, .9vw, 10px);
  position: relative; width: 100%; aspect-ratio: 2200 / 643; border-radius: clamp(14px, 2.2vw, 26px); background: #000; overflow: hidden;
  box-shadow: 0 0 0 var(--bezel) #18151c, 0 0 0 calc(var(--bezel) + 1px) #2d2833, 0 40px 80px rgba(0, 0, 0, .55);
}
.cp-shot { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .6s ease; }
.cp-shot.on { opacity: 1; }
.cp-switch { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.cp-switch button { font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); background: none; border: 0; padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.cp-switch button.on { background: rgba(255, 255, 255, .12); color: var(--text); }
.cp-switch button:focus-visible { outline: 2px solid #ff9cc8; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .cp-shot { transition: none; } }
@keyframes eq { 0%, 100% { height: 30%; } 50% { height: 100%; } }

/* Explore mockup */
.explore {
  width: 100%; max-width: 440px; border-radius: 28px; padding: 20px;
  background: linear-gradient(180deg, #6a2b5a, #3a1c40 55%, #22142a);
  box-shadow: 0 40px 80px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.ex-search { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .6); font-size: 15px; }
.ex-search svg { width: 18px; height: 18px; }
.ex-chips { display: flex; gap: 8px; margin: 14px 0; flex-wrap: wrap; }
.ex-chips span { padding: 6px 13px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .12); }
.ex-chips span.on { background: #fff; color: #1d1124; }
.ex-row { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.ex-row .tile { width: 50px; font-size: 8px; border-radius: 12px; padding: 5px; flex: none; }
.ex-row b { display: block; font-size: 15px; }
.ex-row small { color: rgba(255, 255, 255, .6); font-size: 12.5px; }
.ex-row .add { margin-left: auto; width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .8); display: grid; place-items: center; font-weight: 700; flex: none; }
.ex-row .add.done { background: #34c759; border-color: #34c759; }

/* Little things */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  transition: transform .3s, background .3s;
}
.card:hover { transform: translateY(-4px); background: var(--surface-2); }
.card .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); margin-bottom: 18px; }
.card .ico svg { width: 24px; height: 24px; stroke: #fff; }
.card h3 { margin: 0 0 6px; font-size: 19px; font-family: var(--round); font-weight: 800; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1.15fr; gap: 22px; max-width: 900px; margin: 0 auto; }
.plan { border-radius: 28px; padding: 34px; background: var(--surface); border: 1px solid var(--line); }
.plan.pro {
  background: linear-gradient(160deg, rgba(139, 63, 224, .35), rgba(224, 69, 143, .22) 55%, rgba(246, 163, 92, .14));
  border-color: rgba(224, 69, 143, .45); position: relative;
}
.plan h3 { font-family: var(--round); font-weight: 900; font-size: 28px; margin: 0 0 4px; }
.plan .price { font-size: 15px; color: var(--muted); margin: 0 0 22px; }
.plan .price b { font-size: 34px; color: var(--text); font-family: var(--round); }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.plan li { display: flex; gap: 11px; font-size: 16px; }
.plan li svg { flex: none; width: 20px; height: 20px; margin-top: 3px; stroke: var(--peach); }
.options { display: grid; gap: 10px; margin: 0 0 24px; }
.option { display: flex; justify-content: space-between; align-items: center; padding: 13px 16px; border-radius: 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); }
.option.best { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .7); }
.option b { font-size: 16px; }
.option small { display: block; color: var(--muted); font-size: 13px; }
.option strong { font-family: var(--round); font-size: 20px; }
.badge { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; padding: 3px 7px; border-radius: 999px; background: #fff; color: #7d2bb3; margin-left: 6px; vertical-align: 2px; }
.fine { text-align: center; color: var(--soft); font-size: 14px; margin: 26px auto 0; max-width: 640px; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; font-size: 19px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; font-weight: 400; color: var(--muted); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--muted); }
.faq a { color: #ff9cc8; }

/* Final CTA */
.final { text-align: center; padding: 120px 0 130px; position: relative; overflow: hidden; isolation: isolate; }
.final::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(45% 60% at 50% 60%, rgba(139, 63, 224, .4), transparent 70%), radial-gradient(30% 40% at 65% 40%, rgba(224, 69, 143, .3), transparent 70%);
}
.final img.app-icon { width: 120px; height: 120px; border-radius: 27px; margin: 0 auto 28px; box-shadow: 0 25px 60px rgba(139, 63, 224, .45); }
.final p { color: var(--muted); font-size: 19px; margin: 0 auto 30px; max-width: 520px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 34px 0 48px; color: var(--soft); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 30px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }
footer p { margin: 0; max-width: 560px; }

/* Reveal on scroll */
.reveal { opacity: .4; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Text pages (privacy, support) ---------- */
header.top { padding: 22px 0; }
header.top a.brand img { width: 32px; height: 32px; border-radius: 8px; }
article { max-width: 760px; padding: 20px 0 70px; }
article h1 { font-family: var(--round); font-weight: 900; letter-spacing: -0.02em; font-size: clamp(36px, 5vw, 52px); line-height: 1.05; margin: 10px 0 8px; }
article .date { color: var(--muted); margin: 0 0 30px; }
article h2 { font-size: 23px; letter-spacing: -0.01em; margin: 40px 0 10px; }
article p, article li { color: #ddd5e8; }
article ul { padding-left: 22px; }
article li { margin: 6px 0; }
article a { color: #ff9cc8; }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links a:not(.pill) { display: none; }
  .hero { padding-top: 40px; }
  .hero::after { background: linear-gradient(180deg, rgba(12, 9, 18, .9) 0%, rgba(12, 9, 18, .82) 45%, rgba(12, 9, 18, .25) 70%, var(--bg) 100%); }
  .hero-grid, .feature { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .cta, .trust { justify-content: center; }
  .device-stage { min-height: 0; }
  .feature { padding: 30px 0; }
  .feature.flip .feature-visual { order: 0; }
  .feature-copy { text-align: center; }
  .feature ul { justify-items: center; }
  .feature-wide .feature-copy { grid-template-columns: minmax(0, 1fr); }
  .feature-wide .feature-copy > .tag { justify-self: center; }
  .feature-wide .feature-copy > ul { grid-column: 1; grid-row: auto; margin-top: 24px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; }
  section { padding: 80px 0; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .phone { width: 250px; border-radius: 46px; padding: 9px; }
  .phone img { border-radius: 38px; }
  .device-stage .watch { width: 118px; border-radius: 36px; right: -4px; bottom: 20px; }
  .device-stage .watch img { border-radius: 29px; }
  .feature-visual .phone { width: 230px; }
  .feature-visual .watch { width: 140px; }
  .grid-3 { grid-template-columns: 1fr; }
  .tile-floor { width: 1100px; gap: 16px; }
  .tile-floor .tile { font-size: 19px; }
  .plan { padding: 26px 22px; }
  .feature li { text-align: left; }
}

/* ---------- Beating tile heart (like the app's launch screen) + music ---------- */
.beat-stage {
  position: relative; width: 260px; height: 260px; margin: 0 auto 36px;
  display: grid; place-items: center; cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent;
}
.beat-stage:focus-visible { box-shadow: 0 0 0 3px rgba(255, 255, 255, .5); border-radius: 50%; }
.beat-stage .ring {
  position: absolute; inset: 18%; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35);
  opacity: 0; pointer-events: none; animation: ripple 2.7s ease-out infinite;
}
.beat-stage .ring:nth-child(2) { animation-delay: .9s; }
.beat-stage .ring:nth-child(3) { animation-delay: 1.8s; }
.beat-stage .ring.live { animation: ripple-live 1.25s ease-out forwards; border-color: rgba(255, 170, 210, .55); }
@keyframes ripple { from { transform: scale(1); opacity: .7; } to { transform: scale(2.3); opacity: 0; } }
@keyframes ripple-live { from { transform: scale(.95); opacity: .85; } to { transform: scale(2.1); opacity: 0; } }
.heart {
  width: 100%; height: 100%; overflow: visible;
  filter: drop-shadow(0 26px 46px rgba(224, 69, 143, .5));
  animation: heartbeat .45s ease-in-out infinite alternate;
}
@keyframes heartbeat { from { transform: scale(.94); } to { transform: scale(1.06); } }
.heart .q { transition: transform .22s cubic-bezier(.2, .9, .3, 1.4); }
.heart .bars rect { transform-box: fill-box; transform-origin: center; animation: bar 1.1s ease-in-out infinite alternate; }
.heart .bars rect:nth-child(2) { animation-delay: -.3s; }
.heart .bars rect:nth-child(3) { animation-delay: -.6s; }
.heart .bars rect:nth-child(4) { animation-delay: -.15s; }
.heart .bars rect:nth-child(5) { animation-delay: -.45s; }
.heart .bars rect:nth-child(6) { animation-delay: -.75s; }
@keyframes bar { from { transform: scaleY(.55); } to { transform: scaleY(1); } }
/* While the music plays the heart follows the beat instead of its idle loop. */
.music-on .heart { animation: none; transition: transform .1s ease-out; }
.music-on .heart .bars rect { animation: none; transition: transform .08s linear; }
.music-on .beat-stage .ring:not(.live) { display: none; }
.beat-stage.kick .heart { animation: kick .42s ease-out; }
.beat-stage.kick .q1 { transform: translate(-2.2px, -2.2px); }
.beat-stage.kick .q2 { transform: translate(2.2px, -2.2px); }
.beat-stage.kick .q3 { transform: translate(-2.2px, 2.2px); }
.beat-stage.kick .q4 { transform: translate(2.2px, 2.2px); }
@keyframes kick { 0% { transform: scale(1.1); } 100% { transform: scale(.97); } }
.music-on .tile-floor { animation-duration: 16s; }
.sound-toggle .i-pause, .music-on .sound-toggle .i-play { display: none; }
.music-on .sound-toggle .i-pause { display: block; }
.btn.sound-toggle svg { width: 18px; height: 18px; }
.music-on .btn.sound-toggle { background: var(--grad); border-color: transparent; color: #fff; }
.sound-nav {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text); padding: 0;
}
.sound-nav svg { width: 18px; height: 18px; }
.music-on .sound-nav { background: var(--grad); border-color: transparent; }
.music-note { font-size: 13px !important; color: var(--soft) !important; margin-top: 18px !important; }
.np-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 30; display: flex; align-items: center; gap: 12px;
  padding: 10px 12px 10px 14px; border-radius: 999px; background: rgba(28, 20, 38, .86);
  border: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
  transform: translateY(140%); opacity: 0; transition: transform .4s ease, opacity .4s ease; pointer-events: none;
}
.np-float.show { transform: none; opacity: 1; pointer-events: auto; }
.np-float b { display: block; font-size: 14px; }
.np-float small { display: block; font-size: 12px; color: var(--muted); }
.np-heart { width: 30px; height: 30px; border-radius: 9px; background: var(--grad); position: relative; }
.np-heart::after { content: "♥"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 16px; animation: heartbeat .246s ease-in-out infinite alternate; }
.np-float button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: #fff; color: #120c1a; display: grid; place-items: center; cursor: pointer; padding: 0; }
.np-float button svg { width: 16px; height: 16px; }
@media (max-width: 900px) { .sound-nav { display: grid; } }
@media (max-width: 560px) { .beat-stage { width: 210px; height: 210px; } .np-float { left: 16px; right: 16px; justify-content: space-between; } }
@media (prefers-reduced-motion: reduce) {
  .heart, .heart .bars rect, .beat-stage .ring:not(.live) { animation: none; }
}

/* ---------- Hero video ---------- */
.phone video { display: block; width: 100%; height: auto; aspect-ratio: 600 / 1304; border-radius: 44px; object-fit: cover; background: #2a1a30; }

/* ---------- Tap a floor tile (idea 1) ---------- */
.hero-grid { pointer-events: none; }
.hero-copy, .device-stage { pointer-events: none; }
.hero-copy a, .hero-copy .btn, .device-stage .phone, .device-stage .watch { pointer-events: auto; }
.tile-floor .tile { cursor: pointer; transition: box-shadow .3s, filter .3s; }
.tile-floor .tile:hover { filter: brightness(1.25); }
.tile-floor .tile.lit { filter: brightness(1.35) saturate(1.2); box-shadow: 0 0 0 4px #fff, 0 0 60px hsl(var(--h) 80% 60% / .9); }
.tune-toast {
  position: fixed; left: 50%; bottom: 22px; z-index: 31; display: flex; align-items: center; gap: 12px;
  padding: 10px 16px 10px 10px; border-radius: 18px; background: rgba(28, 20, 38, .9);
  border: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45); transform: translate(-50%, 160%); opacity: 0;
  transition: transform .4s ease, opacity .4s ease; pointer-events: none; max-width: calc(100% - 32px);
}
.tune-toast.show { transform: translate(-50%, 0); opacity: 1; }
.tune-toast .tile { width: 40px; flex: none; border-radius: 11px; padding: 0; }
.tune-toast b { display: block; font-size: 15px; }
.tune-toast small { display: block; font-size: 12.5px; color: var(--muted); }
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; }
.eq i { width: 3px; height: 30%; background: #ff8fc1; border-radius: 2px; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; }
.eq i:nth-child(3) { animation-delay: -.6s; }

/* ---------- On air now ticker (idea 3) ---------- */
.ribbon.onair { display: flex; align-items: center; }
.onair-label {
  flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 0 18px 0 22px; z-index: 1;
  font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #ff9cc8;
  background: var(--bg-2); box-shadow: 14px 0 18px var(--bg-2); align-self: stretch;
}
.ribbon-mask { overflow: hidden; flex: 1; min-width: 0; }
.ribbon.onair .ribbon-track { gap: 36px; padding: 14px 0; animation-duration: 70s; }
.ribbon.onair .ribbon-track span::after { content: none; }
.air { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.ribbon.onair .ribbon-track .dup { display: inline-flex; gap: 36px; }
.air .tile { width: 34px; flex: none; border-radius: 9px; padding: 0; }
.air b { font-size: 15px; color: var(--text); font-family: inherit; font-weight: 700; }
.air small { font-size: 13.5px; color: var(--soft); }

/* ---------- How it works: phone follows the steps (idea 2) ---------- */
.story { padding: 60px 0 40px; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.story-phone { position: sticky; top: 110px; display: flex; justify-content: center; }
.story-phone .phone { width: 290px; position: relative; }
.story-phone .phone .shot { position: absolute; top: 11px; left: 11px; width: calc(100% - 22px); opacity: 0; transition: opacity .5s ease; }
.story-phone .phone .shot.on { opacity: 1; }
.story-phone .phone .shot:first-child { position: relative; top: 0; left: 0; width: 100%; }
.story-phone .phone .shot:first-child:not(.on) { opacity: 0; }
.steps { list-style: none; margin: 0; padding: 0; }
.step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; opacity: .35; transition: opacity .4s; }
.step.on { opacity: 1; }
.step-n {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
  font-family: var(--round); font-weight: 900; font-size: 18px; background: var(--grad); color: #fff;
}
.step p { color: var(--muted); font-size: 19px; margin: 0; max-width: 460px; }
.step-shot { display: none; }
@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; gap: 0; }
  .story-phone { display: none; }
  .step { min-height: 0; opacity: 1; padding: 34px 0; text-align: center; align-items: center; }
  .step p { margin: 0 auto; }
  .step-shot { display: block; width: 230px; margin-top: 26px; border-radius: 38px; border: 9px solid #0a0a0c; box-shadow: 0 0 0 1.5px #2d2833, 0 30px 60px rgba(0, 0, 0, .5); }
  .onair-label { padding: 0 12px 0 16px; }
}
@media (prefers-reduced-motion: reduce) { .eq i { animation: none; } .story-phone .phone .shot { transition: none; } }

.ribbon.onair .ribbon-track .dup { padding-right: 36px; }
.brand, .pill { white-space: nowrap; }
.step-shot { height: auto; }
.story-phone .phone .shot { height: auto; }
@media (max-width: 560px) { .nav .pill { display: none; } }

/* ---------- How it works, compact (replaces the long scroll story) ---------- */
.story { padding: 90px 0 30px; }
.story .section-head { margin-bottom: 44px; }
.story-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 64px; align-items: center; max-width: 980px; margin: 0 auto; }
.story-phone { position: relative; top: auto; display: block; width: 290px; }
.story-phone .shot { display: block; width: 100%; height: auto; border-radius: 44px; opacity: 0; transition: opacity .5s ease; }
.story-phone .shot:not(:first-child) { position: absolute; top: 11px; left: 11px; width: calc(100% - 22px); }
.story-phone .shot.on { opacity: 1; }
.steps { display: grid; gap: 12px; }
.step {
  min-height: 0; opacity: 1; position: relative; overflow: hidden; text-align: left; cursor: pointer;
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; align-items: start;
  padding: 20px 22px; border-radius: 20px; border: 1px solid transparent; background: transparent; color: var(--text);
  font: inherit; transition: background .3s, border-color .3s;
}
.step:hover { background: var(--surface); }
.step.on { background: var(--surface-2); border-color: var(--line); }
.step:focus-visible { outline: 2px solid #ff9cc8; outline-offset: 2px; }
.step-n { margin: 0; width: 44px; height: 44px; opacity: .5; transition: opacity .3s; }
.step.on .step-n { opacity: 1; }
.step-text b { display: block; font-family: var(--round); font-weight: 900; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.15; letter-spacing: -0.01em; }
.step-text small { display: block; margin-top: 6px; color: var(--muted); font-size: 16.5px; line-height: 1.5; }
.step:not(.on) .step-text small { display: none; }
.step-bar { position: absolute; left: 22px; right: 22px; bottom: 0; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .08); }
.step.on .step-bar::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--grad); transform-origin: left; animation: stepbar 4s linear forwards; }
@keyframes stepbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-sound .i-play, .hero-sound .i-pause { width: 18px; height: 18px; }
@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; gap: 28px; justify-items: center; }
  .story-phone { display: block; width: 240px; }
  .story-phone .shot { border-radius: 38px; }
  .story-phone .shot:not(:first-child) { top: 9px; left: 9px; width: calc(100% - 18px); }
  .steps { width: 100%; max-width: 520px; }
  .step { padding: 16px 16px; }
}
@media (prefers-reduced-motion: reduce) { .step.on .step-bar::after { animation: none; transform: none; } }

/* ---------- Try it: tap a station (tiles that obviously press) ---------- */
.tryit { padding: 80px 0 20px; }
.tryit .section-head { margin-bottom: 36px; }
.try-grid { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 14px; }
.tile.try {
  position: relative; border: 0; cursor: pointer; font-size: clamp(14px, 1.45vw, 19px); padding: 10%;
  transition: transform .18s ease, box-shadow .25s ease, filter .25s ease;
}
.tile.try:hover { transform: translateY(-4px) scale(1.03); filter: brightness(1.1); }
.tile.try:active { transform: scale(.96); }
.tile.try:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.tile.try.lit { box-shadow: 0 0 0 3px #fff, 0 18px 50px hsl(var(--h) 80% 55% / .6); transform: translateY(-4px) scale(1.04); }
.try-live {
  position: absolute; left: 10px; bottom: 9px; display: none; align-items: center; gap: 5px;
  font: 800 10px/1 system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; text-shadow: none;
  background: rgba(0, 0, 0, .35); padding: 4px 7px 4px 6px; border-radius: 999px;
}
.try-live .eq { height: 10px; }
.try-live .eq i { width: 2px; background: #fff; }
.tile.try.lit .try-live { display: inline-flex; }
@media (max-width: 1000px) { .try-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 520px; margin: 0 auto; } }
@media (max-width: 560px) { .try-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } .tile.try { font-size: 15px; } }
.music-on .tune-toast { bottom: 90px; }
@media (max-width: 1000px) { .tile.try { font-size: clamp(16px, 3.4vw, 22px); } }

/* ---------- Try it: tiles on the left, the beating heart on the right ---------- */
.try-layout { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 56px; align-items: center; max-width: 1040px; margin: 0 auto; }
.try-layout .try-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; margin: 0; }
.try-layout .tile.try { font-size: clamp(16px, 1.8vw, 22px); }
.try-heart { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.try-stage { width: min(100%, 340px); height: auto; aspect-ratio: 1; margin: 0; }
.try-now { margin: 0; text-align: center; color: var(--muted); font-size: 17px; min-height: 52px; }
.try-now b { color: var(--text); }
.try-now small { display: block; color: var(--soft); font-size: 14px; margin-top: 2px; }
/* "Vibration": on every beat the heart jumps and shivers a little. */
.beat-stage.kick .heart { animation: kick-shake .42s ease-out; }
@keyframes kick-shake {
  0% { transform: scale(1.13) rotate(-2.5deg); }
  18% { transform: scale(1.08) rotate(2deg) translateX(1.5px); }
  36% { transform: scale(1.04) rotate(-1.5deg) translateX(-1px); }
  56% { transform: scale(1.01) rotate(1deg); }
  100% { transform: scale(.97) rotate(0); }
}
@media (max-width: 900px) {
  .try-layout { grid-template-columns: 1fr; gap: 26px; }
  .try-heart { order: -1; }
  .try-stage { width: 200px; }
  .try-now { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { .beat-stage.kick .heart { animation: none; } }

/* ---------- Countries for the Try it tiles ---------- */
.countries { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -12px auto 34px; max-width: 900px; }
.country {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px; border-radius: 999px; cursor: pointer;
  font: 600 15px/1 system-ui, -apple-system, sans-serif; color: var(--text); text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); transition: background .2s, transform .15s;
}
.country:hover { background: var(--surface-2); transform: translateY(-1px); }
.country.on { background: #fff; color: #140d1c; border-color: #fff; }
.country:focus-visible { outline: 2px solid #ff9cc8; outline-offset: 2px; }
.country .flag { font-size: 18px; line-height: 1; }
.country.more { color: var(--muted); }
.try-grid .try-name { transition: opacity .16s ease, transform .16s ease; }
.try-grid.switching .try-name { opacity: 0; transform: translateY(6px); }
@media (max-width: 560px) {
  .countries { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: -10px -16px 26px; padding: 2px 16px 6px; scrollbar-width: none; }
  .countries::-webkit-scrollbar { display: none; }
  .country { flex: none; }
}

/* ---------- Apple HomeView: renders of HomeView placed in real kitchen photos ---------- */
.hv-badge {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 5px 12px 5px 5px;
  border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line);
  font-size: 14px; font-weight: 600; color: var(--text); text-decoration: none; transition: background .2s;
}
.hv-badge:hover { background: rgba(255, 255, 255, .14); }
.hv-badge b { padding: 3px 9px; border-radius: 999px; background: var(--grad); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.hv-badge svg { width: 14px; height: 14px; color: var(--muted); }

.homeview { position: relative; overflow: hidden; padding-bottom: 80px; }
.homeview .section-head { margin-bottom: 44px; }
.hv-show { max-width: 1000px; margin: 0 auto; }
.hv-frames {
  position: relative; aspect-ratio: 3 / 2; border-radius: 28px; overflow: hidden; isolation: isolate;
  background: #0f0b14; border: 1px solid var(--line); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8);
}
.hv-frame { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.2s ease; pointer-events: none; }
.hv-frame.on { opacity: 1; pointer-events: auto; z-index: 1; }
/* A slow push-in toward the HomeView; the tap spot rides along with the photo. */
.hv-zoom { position: absolute; inset: 0; transform-origin: var(--fx, 50%) var(--fy, 60%); transition: transform 9s linear; }
.hv-frame.on .hv-zoom { transform: scale(1.06); }
.hv-zoom img { width: 100%; height: 100%; object-fit: cover; }
.hv-spot { position: absolute; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 10%; -webkit-tap-highlight-color: transparent; }
/* No frame around the HomeView in the photo: the chip invites the tap. A ring shows only for keyboard focus. */
.hv-spot::before { content: ""; position: absolute; inset: -5%; border-radius: 14%; pointer-events: none; border: 2px solid transparent; }
.hv-spot:focus-visible::before { border-color: rgba(255, 255, 255, .6); }
.hv-spot:focus-visible { outline: none; }
.hv-chip {
  position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 6px 13px 6px 6px; border-radius: 999px;
  background: rgba(18, 12, 26, .72); border: 1px solid rgba(255, 255, 255, .18); color: #fff; font-size: 13px; font-weight: 700;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 10px 24px rgba(0, 0, 0, .4);
  cursor: pointer;   /* the chip is part of the button: tapping "Tap to listen" plays too */
}
.hv-chip i { width: 20px; height: 20px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.hv-chip i::after { content: ""; margin-left: 2px; border-left: 7px solid #120c1a; border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; }
.hv-frame.playing .hv-chip i { background: var(--grad); }
.hv-frame.playing .hv-chip i::after { margin: 0; width: 7px; height: 7px; border: 0; border-radius: 1.5px; background: #fff; }
.hv-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.hv-pick button {
  position: relative; overflow: hidden; text-align: left; padding: 14px 16px 16px; border-radius: 16px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); color: var(--text); font: inherit; transition: background .2s, border-color .2s;
}
.hv-pick button:hover { background: var(--surface-2); }
.hv-pick button.on { background: var(--surface-2); border-color: rgba(255, 255, 255, .22); }
.hv-pick b { display: block; font-size: 15px; }
.hv-pick small { display: block; font-size: 13px; color: var(--muted); }
.hv-pick .bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--grad); }
.hv-pick button.on .bar { width: 100%; }
.hv-show.auto .hv-pick button.on .bar { width: 0; animation: hvbar 6.5s linear forwards; }
@keyframes hvbar { to { width: 100%; } }
.hv-cards { margin-top: 56px; }
.hv-note { margin: 28px auto 0; max-width: 700px; text-align: center; font-size: 13px; color: var(--soft); }
@media (max-width: 560px) {
  .hv-frames { border-radius: 20px; }
  /* On a phone the photos zoom in on the HomeView so it isn't lost; the chip shrinks to make up for the zoom. */
  .hv-zoom { transform: scale(1.38); }
  .hv-frame.on .hv-zoom { transform: scale(1.45); }
  .hv-chip { font-size: 8px; gap: 4px; padding: 3px 7px 3px 3px; bottom: calc(100% + 6px); }
  .hv-chip i { width: 11px; height: 11px; }
  .hv-chip i::after { border-left-width: 4.5px; border-top-width: 3px; border-bottom-width: 3px; margin-left: 1px; }
  .hv-pick { gap: 8px; }
  .hv-pick button { padding: 10px 12px 12px; }
  .hv-pick small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hv-zoom { transition: none; }
  .hv-frame.on .hv-zoom { transform: none; }
}
@media (max-width: 560px) and (prefers-reduced-motion: reduce) {
  .hv-zoom, .hv-frame.on .hv-zoom { transform: scale(1.4); }
}
