/*
  Duet marketing page. Bright and chunky, like the app: white ground, solid colour, buttons with a darker lip.
  Colours come from the app's coral-and-teal tints (apps/ios/Beside/Design.swift). Text on a colour meets AA contrast:
  white body text sits only on the deeper band shades (--sky-band, --ember-band).
*/
:root {
  --white: #ffffff;
  --ink: #1e2d4e;
  --muted: #6e6e73;
  --line: #e8e6e3;
  --ember: #ff6b4a;
  --ember-button: #e34321;
  --ember-lip: #ac3217;
  --ember-band: #cc3d1b;
  --ember-wash: #ffece5;
  --sky: #10a7a7;
  --sky-lip: #0a7d7d;
  --sky-band: #0b7f7f;
  --sky-wash: #def5f3;
  --navy: #1e2d4e;
  --stage: #1d1a24;
  --stage-edge: #2c2a35;
  --canvas: #ffffff;
  --quiet: #e8e6e3;
  --quiet-lip: #d6d3cf;
  --radius: 20px;
  --lip: 5px;
  --gutter: clamp(16px, 4vw, 40px);
  --measure: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 900; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.2rem; line-height: 1.25; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 10px; }

.eyebrow { font-size: 0.85rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ember-band); }
.eyebrow.light { color: var(--white); opacity: 0.9; }

/* Chunky button: a flat face with a darker lip under it, as in the app. */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 58px; padding: 0 34px; border-radius: 16px;
  background: var(--ember-button); box-shadow: 0 var(--lip) 0 var(--ember-lip);
  color: var(--white); font-weight: 900; font-size: 1.1rem; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.1s ease;
}
.button:hover { filter: brightness(1.06); }
.button:active { transform: translateY(var(--lip)); box-shadow: 0 0 0 var(--ember-lip); }
.button.outline { background: var(--white); color: var(--ember-button); border: 2px solid var(--line); box-shadow: 0 var(--lip) 0 var(--line); }
.button.outline:active { box-shadow: 0 0 0 var(--line); }
.button.white { background: var(--white); color: var(--ember-band); box-shadow: 0 var(--lip) 0 rgba(0, 0, 0, 0.22); }
.button.small { min-height: 44px; padding: 0 20px; border-radius: 14px; font-size: 0.95rem; box-shadow: 0 4px 0 var(--ember-lip); white-space: nowrap; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 24px; padding: 12px var(--gutter); background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(10px); border-bottom: 2px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.75rem; letter-spacing: -0.03em; color: var(--ember); text-decoration: none; }
.brand img { border-radius: 10px; }
.nav nav { display: flex; gap: 4px; margin-left: auto; }
.nav nav a { padding: 8px 14px; border-radius: 12px; font-weight: 800; font-size: 0.95rem; text-decoration: none; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.nav nav a:hover { background: var(--sky-wash); color: var(--sky-band); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 5vw, 64px); max-width: var(--measure); margin: 0 auto; padding: clamp(40px, 7vw, 96px) var(--gutter) clamp(48px, 7vw, 88px); }
.hero-copy { display: grid; gap: 24px; }
.lede { font-size: clamp(1.15rem, 2vw, 1.35rem); color: var(--muted); max-width: 32ch; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; }
.devices { font-weight: 800; font-size: 0.95rem; color: var(--muted); }
.hero-art { position: relative; display: grid; place-items: center; min-height: 560px; }
.hero-art::before { content: ""; position: absolute; inset: 8% 4% 6% 10%; border-radius: 48px; background: var(--sky-wash); transform: rotate(-4deg); }
.hero-mascot { position: absolute; z-index: 2; width: 34%; left: -10%; bottom: 8%; filter: drop-shadow(0 8px 0 rgba(35, 43, 71, 0.08)); }

/* Phone frame and the app screens inside it. Built from the SwiftUI code, not a screenshot. */
.phone { position: relative; z-index: 1; width: 290px; padding: 11px; border-radius: 48px; background: var(--stage); box-shadow: 0 30px 60px -20px rgba(35, 43, 71, 0.45), inset 0 0 0 2px var(--stage-edge); }
.phone.tilt-left { transform: rotate(3deg); }
.screen { position: relative; height: 590px; overflow: hidden; border-radius: 38px; background: var(--canvas); color: var(--ink); font-size: 13px; line-height: 1.3; }
.status { display: flex; justify-content: space-between; align-items: center; padding: 12px 24px 4px; font-weight: 800; font-size: 13px; }
.status-icons { display: flex; gap: 3px; }
.status-icons i { width: 14px; height: 9px; border-radius: 2px; background: currentColor; opacity: 0.85; }
.status-icons i:last-child { width: 20px; }
.status.dark { color: var(--white); }

.today-top { display: flex; align-items: center; gap: 12px; padding: 8px 16px; }
.today-inst { width: 28px; margin-right: auto; }
.stat { display: inline-flex; align-items: center; gap: 4px; font-weight: 900; font-size: 14px; }
.stat img { width: 18px; }
.stat.ember { color: var(--ember); } .stat.sky { color: var(--sky); }
.avatar { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--sky-wash); color: var(--sky); border: 2px solid var(--sky); font-weight: 900; font-size: 12px; }
.unit-banner { display: flex; gap: 8px; margin: 8px 14px 0; padding: 14px; border-radius: 16px; background: var(--ember); box-shadow: 0 5px 0 var(--ember-lip); color: var(--white); }
.unit-eyebrow { font-size: 10px; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.85; }
.unit-title { font-size: 19px; font-weight: 900; margin: 2px 0 3px; }
.unit-note { font-size: 11.5px; font-weight: 700; opacity: 0.92; }
.unit-icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, 0.2); border: 2px solid rgba(255, 255, 255, 0.35); }
.unit-icon img { width: 26px; }
.trail { position: relative; display: grid; justify-items: center; gap: 14px; padding: 24px 0 0; }
.node { position: relative; display: grid; place-items: center; width: 64px; height: 56px; border-radius: 50%; background: var(--ember); box-shadow: 0 6px 0 var(--ember-lip); transform: translateX(calc(var(--x) * 62px)); }
.node img { width: 34px; }
.node b { position: absolute; right: -4px; bottom: -6px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--ember-lip); color: var(--white); font-size: 11px; border: 2px solid var(--canvas); }
.node.current { margin-top: 26px; outline: 6px solid rgba(226, 87, 43, 0.22); outline-offset: 4px; }
.node.current em { position: absolute; top: -40px; padding: 5px 12px; border-radius: 10px; background: var(--white); border: 2px solid var(--line); color: var(--ember); font-style: normal; font-weight: 900; font-size: 12px; letter-spacing: 0.05em; animation: bob 1.6s ease-in-out infinite; }
.node.locked { background: var(--quiet); box-shadow: 0 6px 0 var(--quiet-lip); }
.node.locked img { filter: grayscale(1); opacity: 0.5; }
.trail-mascot { position: absolute; left: 4px; top: 150px; width: 84px; }
@keyframes bob { 50% { transform: translateY(-4px); } }
.tabbar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; padding: 8px 8px 22px; background: rgba(255, 255, 255, 0.96); border-top: 1.5px solid var(--line); }
.tab { display: grid; justify-items: center; gap: 2px; font-size: 10px; font-weight: 800; color: var(--muted); }
.tab svg { width: 22px; height: 22px; }
.tab.on { color: var(--ember); }

/* The practice room screen */
.screen.room { background: var(--stage); color: var(--white); }
.room-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 12px; }
.glass { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.13); font-weight: 800; font-size: 12px; }
.glass.round { width: 32px; padding: 0; justify-content: center; }
.glass b { font-size: 9px; opacity: 0.7; }
.ring { width: 13px; height: 13px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, 0.25); border-top-color: var(--ember); border-right-color: var(--ember); }
.room-page { margin: 8px 12px; padding: 18px 6px 12px; border-radius: 10px; background: var(--white); }
.room-page svg { display: block; width: 100%; height: auto; }
.room-page .circle { stroke-dasharray: 90; stroke-dashoffset: 90; animation: draw 0.9s 0.8s ease-out forwards; }
.room-page .label { opacity: 0; animation: appear 0.4s 1.6s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }
.room-strip { position: absolute; left: 12px; right: 12px; bottom: 82px; padding: 12px; border-radius: 18px; background: rgba(255, 255, 255, 0.13); }
.strip-line { display: flex; gap: 10px; align-items: flex-start; }
.strip-line img { width: 42px; flex: none; }
.strip-line p { font-weight: 800; font-size: 13px; line-height: 1.35; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { padding: 7px 11px; border-radius: 11px; font-weight: 900; font-size: 10.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--white); }
.chip.ember { background: var(--ember); box-shadow: 0 3px 0 var(--ember-lip); }
.chip.quiet { background: rgba(255, 255, 255, 0.06); border: 2px solid rgba(255, 255, 255, 0.16); box-shadow: 0 3px 0 rgba(255, 255, 255, 0.16); color: var(--ember); padding: 5px 9px; }
.room-tools { position: absolute; left: 12px; right: 12px; bottom: 22px; display: flex; align-items: center; justify-content: space-around; height: 50px; padding: 0 5px 0 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.13); font-size: 17px; font-weight: 900; }
.room-tools span { display: grid; justify-items: center; line-height: 1; }
.room-tools svg { width: 20px; height: 20px; }
.room-tools small { font-size: 9px; font-weight: 800; margin-top: 3px; }
.room-tools .end { padding: 8px 12px; border-radius: 12px; border: 2px solid rgba(255, 255, 255, 0.16); box-shadow: 0 3px 0 rgba(255, 255, 255, 0.16); color: var(--ember); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; }

/* Ribbon */
.ribbon { border-block: 2px solid var(--line); background: var(--white); }
.ribbon-row { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(16px, 5vw, 56px); max-width: var(--measure); margin: 0 auto; padding: 20px var(--gutter); }
.ribbon span { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.05rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.ribbon img { width: 30px; }

/* Solid colour bands */
.band { color: var(--white); padding: clamp(56px, 9vw, 112px) var(--gutter); }
.band.sky { background: var(--sky-band); }
.band.ember { background: var(--ember-band); }
.band-inner { max-width: var(--measure); margin: 0 auto; }
.room-wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) auto; gap: clamp(32px, 6vw, 80px); align-items: center; }
.room-copy { display: grid; gap: 28px; }
.turns { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.turns li { display: flex; gap: 16px; align-items: flex-start; }
.turns p { font-size: 1.02rem; margin-top: 4px; opacity: 0.94; }
.num { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--white); color: var(--sky-band); font-weight: 900; font-size: 1.2rem; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2); }
.room-phone { transform: rotate(-2deg); }

/* Feature cards */
.section-head { display: grid; gap: 12px; max-width: 48ch; }
.section-head.center { margin: 0 auto; text-align: center; justify-items: center; }
.features { max-width: var(--measure); margin: 0 auto; padding: clamp(56px, 9vw, 112px) var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.card { display: grid; align-content: start; gap: 10px; padding: 0 0 22px; border-radius: var(--radius); border: 2px solid var(--line); box-shadow: 0 var(--lip) 0 var(--line); background: var(--white); overflow: hidden; }
.card-art { display: grid; place-items: center; height: 128px; background: var(--ember-wash); border-bottom: 2px solid var(--line); margin-bottom: 8px; }
.card-art img { height: 76px; width: auto; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.12)); }
.card h3, .card p { padding: 0 20px; }
.card p { color: var(--muted); font-size: 1rem; }

/* Picture beside words */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 72px); align-items: center; max-width: var(--measure); margin: 0 auto; padding: 0 var(--gutter) clamp(64px, 9vw, 112px); }
.split.reverse .split-art { order: 2; }
.split-art img { width: 100%; border-radius: 28px; border: 2px solid var(--line); box-shadow: 0 7px 0 var(--line); }
.split-copy { display: grid; gap: 18px; }
.split-copy > p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; }
.ticks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 40px; font-size: 1.02rem; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--sky-band); box-shadow: 0 3px 0 var(--sky-lip); color: var(--white); font-weight: 900; font-size: 0.9rem; }

/* Questions */
.faq { padding: clamp(64px, 9vw, 112px) var(--gutter); border-top: 2px solid var(--line); }
.faq-list { display: grid; gap: 14px; max-width: 780px; margin: 36px auto 0; }
details { border: 2px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 var(--lip) 0 var(--line); }
summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 22px; font-weight: 900; font-size: 1.12rem; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--sky-wash); color: var(--sky-band); font-size: 1.3rem; font-weight: 900; }
details[open] summary::after { content: "–"; background: var(--sky-band); color: var(--white); }
details p { padding: 0 22px 22px; color: var(--muted); }

/* Download */
.closing-inner { display: grid; justify-items: center; gap: 18px; text-align: center; }
.closing img { width: min(300px, 64vw); filter: drop-shadow(0 8px 0 rgba(0, 0, 0, 0.12)); }
.closing p { font-size: 1.15rem; }
.closing .button { margin-top: 8px; }
.store-note { max-width: 38ch; font-weight: 800; }

.foot { display: grid; justify-items: center; gap: 6px; padding: 40px var(--gutter) 52px; color: var(--muted); font-size: 0.95rem; text-align: center; }
.foot .brand { font-size: 1.4rem; }
.small { font-size: 0.85rem; }

@media (max-width: 900px) {
  .nav nav { display: none; }
  .nav .button.small { margin-left: auto; }
  .hero, .room-wrap, .split { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; justify-items: center; }
  .actions { justify-content: center; }
  .lede { max-width: 34ch; }
  .room-phone { justify-self: center; }
  .split.reverse .split-art { order: 0; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .grid { grid-template-columns: 1fr; }
  .actions .button { width: 100%; }
  .hero-art { min-height: 520px; }
  .hero-mascot { width: 40%; left: -2%; }
  .ribbon-row { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .room-page .circle, .room-page .label { animation: none; stroke-dashoffset: 0; opacity: 1; }
  .node.current em { animation: none; }
  .button { transition: none; }
}

