/* Brand colours (--cream, --ink, --pink, --pink-deep…) come from brand.css,
   which `npm run brand` generates from packages/brand. Only web-only values live here. */
:root {
  /* Web-only shades, darkened just enough for readable text (WCAG AA) */
  --pink-text: #C42E5C;  /* pink text on cream/white */
  --grape-band: #7A4BEA; /* white text on purple */
  --font: 'Fredoka', ui-rounded, 'SF Pro Rounded', system-ui, sans-serif;
  --gutter: 20px;
  --section: clamp(80px, 11vw, 128px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--pink-text); }
h1, h2, h3 { line-height: 1.08; margin: 0; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
button { font-family: inherit; }
:focus-visible { outline: 3px solid var(--grape); outline-offset: 3px; border-radius: 12px; }
[id] { scroll-margin-top: 24px; }

/* Horizontal gutter only, so sections keep their own vertical padding */
.wrap { max-width: 1080px; margin-inline: auto; padding-inline: var(--gutter); }

/* Nav */
.nav { display: flex; align-items: center; justify-content: space-between; padding-block: 24px; }
.logo { display: block; border-radius: 8px; }
.logo img { height: var(--logo-large); width: auto; }
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  color: var(--ink); text-decoration: none; font-weight: 600;
  padding: 8px 14px; border-radius: 999px;
  transition: background .15s, color .15s;
}
.nav-links a:hover { background: var(--white); color: var(--pink-text); }
@media (max-width: 600px) { .nav-links { display: none; } }

/* Chunky bubble button, like the app's BubbleButton */
.btn {
  --btn-edge: var(--ink-deep);
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 26px 15px;
  border: none;
  border-radius: 999px;
  font: 700 19px/1.1 var(--font);
  color: var(--white);
  background: var(--ink);
  box-shadow: 0 6px 0 var(--btn-edge);
  text-decoration: none;
  text-align: left;
}
.btn.white { --btn-edge: var(--white-deep); background: var(--white); color: var(--ink); }
.btn svg { width: 26px; height: 26px; flex: none; }
.btn small { font-weight: 500; font-size: 13px; display: block; margin-bottom: 2px; opacity: .85; }
/* Pressable buttons squish down like the app; "coming soon" badges stay put */
a.btn, button.btn { cursor: pointer; transition: transform .08s ease, box-shadow .08s ease; }
a.btn:hover, button.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--btn-edge); }
a.btn:active, button.btn:active { transform: translateY(6px); box-shadow: 0 0 0 var(--btn-edge); }

/* Section labels: a little pill, like the app's chips */
.kicker {
  display: inline-block;
  font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--pink-text); background: var(--white);
  padding: 6px 14px; border-radius: 999px;
  margin-bottom: 18px;
}

/* Hero */
.hero { position: relative; padding-block: clamp(32px, 6vw, 64px) 0; text-align: center; }
.hero h1 { font-size: clamp(50px, 10vw, 100px); }
.hero h1 .pop { color: var(--pink); display: inline-block; animation: wiggle 2.4s ease-in-out infinite; }
.hero p.lede { font-size: clamp(19px, 2.6vw, 23px); color: var(--ink-soft); max-width: 560px; margin: 22px auto 34px; }
.stores { display: flex; gap: 16px 14px; justify-content: center; flex-wrap: wrap; }
.soon { margin-top: 22px; font-size: 16px; color: var(--ink-soft); }

.floaty { position: absolute; border-radius: 50%; display: grid; place-items: center; animation: float 6s ease-in-out infinite; pointer-events: none; }
.floaty.a { width: 76px; height: 76px; background: var(--sun); box-shadow: 0 7px 0 var(--sun-deep); top: 24px; left: 2%; font-size: 34px; }
.floaty.b { width: 60px; height: 60px; background: var(--sky); box-shadow: 0 6px 0 var(--sky-deep); top: 190px; right: 4%; font-size: 26px; animation-delay: -2s; }
.floaty.c { width: 56px; height: 56px; background: var(--mint); box-shadow: 0 5px 0 var(--mint-deep); bottom: 260px; left: 12%; font-size: 24px; animation-delay: -4s; }
.floaty.d { width: 68px; height: 68px; background: var(--grape); box-shadow: 0 6px 0 var(--grape-deep); bottom: 380px; right: 13%; font-size: 30px; animation-delay: -1s; }
@media (max-width: 760px) { .floaty { display: none; } }

/* Phone mockup (pure CSS, mirrors the app's camera screen) */
.phone {
  width: min(330px, 100%);
  margin: clamp(56px, 8vw, 80px) auto 0;
  background: var(--cream);
  border: 10px solid var(--ink);
  border-radius: 50px;
  padding: 16px 12px 18px;
  box-shadow: 0 30px 70px rgba(42, 26, 62, .2);
  text-align: left;
}
.phone .bar { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 12px; }
.phone .bar img { height: var(--logo-small); width: auto; }
.phone .pill { font-size: 12px; font-weight: 600; background: var(--white); padding: 5px 11px; border-radius: 999px; box-shadow: 0 3px 0 var(--white-deep); }
.phone .vf {
  aspect-ratio: 3 / 4;
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(160deg, #F9D9B8, #F2B98B);
  display: grid; place-items: center;
  font-size: 110px;
  position: relative;
}
.phone .vf .flash-btn { position: absolute; top: 10px; left: 10px; width: 30px; height: 30px; border-radius: 50%; background: var(--white); box-shadow: 0 3px 0 var(--white-deep); display: grid; place-items: center; font-size: 14px; }
.phone .vf .pet { transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.phone .vf .pet.tilt { transform: rotate(-16deg) scale(1.06); }
.phone .vf .flash { position: absolute; inset: 0; background: #fff; opacity: 0; transition: opacity .25s; pointer-events: none; }
.phone .vf .flash.on { opacity: 1; transition: none; }
.deck { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 26px 0 6px; }
.sb {
  position: relative;
  width: 46px; height: 46px; border-radius: 50%; border: 2.5px solid rgba(42, 26, 62, .12); cursor: pointer;
  font-size: 22px; display: grid; place-items: center;
  box-shadow: 0 5px 0 var(--sb-edge);
  transition: transform .08s, box-shadow .08s;
}
/* The arc uses top, so transform is free for the press */
.sb:nth-child(2), .sb:nth-child(4) { top: -12px; }
.sb:hover { filter: brightness(1.06); }
.sb:active, .sb.playing { transform: translateY(5px); box-shadow: 0 0 0 var(--sb-edge); }
.sb.pink { background: var(--pink); --sb-edge: var(--pink-deep); }
.sb.grape { background: var(--grape); --sb-edge: var(--grape-deep); }
.sb.sky { background: var(--sky); --sb-edge: var(--sky-deep); }
.sb.mint { background: var(--mint); --sb-edge: var(--mint-deep); }
/* Same as the app's Shutter: a plain pink bubble with a 7px edge and a small white dot */
.shutter {
  width: 68px; height: 68px; border-radius: 50%; cursor: pointer; margin-inline: 4px;
  background: var(--pink); border: 2.5px solid rgba(42, 26, 62, .12); box-shadow: 0 7px 0 var(--pink-deep);
  display: grid; place-items: center;
  transition: transform .08s, box-shadow .08s;
}
.shutter::after { content: ''; width: 32%; aspect-ratio: 1; border-radius: 50%; background: var(--white); opacity: .9; }
.shutter:active { transform: translateY(7px); box-shadow: 0 0 0 var(--pink-deep); }
.try {
  display: inline-block; margin-top: 26px; font-size: 16px; font-weight: 600; color: var(--ink);
  background: var(--white); padding: 8px 18px; border-radius: 999px; box-shadow: 0 4px 0 var(--white-deep);
}

/* Sections */
section { padding-block: var(--section); }
h2 { font-size: clamp(36px, 5.5vw, 56px); }
.center { text-align: center; }
.sub { color: var(--ink-soft); font-size: 20px; max-width: 600px; margin: 18px auto 0; }

/* How it works */
.steps { list-style: none; padding: 0; margin-bottom: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; counter-reset: step; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; } }
.card {
  background: var(--white); border-radius: 30px; padding: 36px 28px 34px;
  border: 3px solid var(--line); box-shadow: 0 8px 0 var(--line);
  text-align: center;
}
.card .num {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 20px;
  display: grid; place-items: center; font-size: 32px;
  position: relative;
}
.card .num::after {
  counter-increment: step; content: counter(step);
  position: absolute; top: -4px; right: -6px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink); color: var(--white);
  font-size: 14px; font-weight: 700; line-height: 26px; text-align: center;
}
.card .num.sun { background: var(--sun); box-shadow: 0 5px 0 var(--sun-deep); }
.card .num.sky { background: var(--sky); box-shadow: 0 5px 0 var(--sky-deep); }
.card .num.pink { background: var(--pink); box-shadow: 0 5px 0 var(--pink-deep); }
.card h3 { font-size: 26px; margin-bottom: 10px; }
.card p { color: var(--ink-soft); max-width: 260px; margin-inline: auto; }

/* Coloured bands */
.band { background: var(--sun); }
.band .sub { color: var(--ink); }
.band .kicker { color: var(--ink); }
.band.grape { background: var(--grape-band); color: var(--white); }
.band.grape .sub { color: var(--white); }
.band.grape .kicker { color: var(--white); background: rgba(255, 255, 255, .16); }

/* Sound shelf */
.sound-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 52px; }
@media (max-width: 900px) { .sound-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 420px) { .sound-grid { grid-template-columns: repeat(2, 1fr); } }
.sound {
  background: var(--white); border: none; border-radius: 26px; padding: 22px 12px 18px; cursor: pointer;
  box-shadow: 0 6px 0 rgba(42, 26, 62, .15); font: 600 17px/1.2 var(--font); color: var(--ink);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  transition: transform .08s, box-shadow .08s;
}
.sound:hover { transform: translateY(-3px); box-shadow: 0 9px 0 rgba(42, 26, 62, .15); }
.sound:active, .sound.playing { transform: translateY(6px); box-shadow: 0 0 0 transparent; }
.sound .em { font-size: 42px; line-height: 1; }
.shelf-note { margin-top: 32px; font-size: 16px; font-weight: 600; }

/* Record your own */
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.split .sub { margin-left: 0; }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; text-align: center; gap: 48px; }
  .split .sub { margin-inline: auto; }
}
.mic { width: 230px; height: 230px; border-radius: 50%; margin: 0 auto; background: var(--sun); box-shadow: 0 12px 0 var(--sun-deep); display: grid; place-items: center; font-size: 100px; animation: pulse 2s ease-in-out infinite; }
@media (max-width: 820px) { .mic { width: 180px; height: 180px; font-size: 80px; } }
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
@media (max-width: 820px) { .chips { justify-content: center; } }
.chip { background: var(--white); color: var(--ink); padding: 9px 18px; border-radius: 999px; font-weight: 600; box-shadow: 0 4px 0 var(--grape-deep); }

/* FAQ */
.faq { max-width: 720px; margin: 52px auto 0; display: grid; gap: 14px; }
details { background: var(--white); border-radius: 24px; border: 3px solid var(--line); transition: border-color .15s; }
details:hover, details[open] { border-color: #EAD3BB; }
summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px 20px 26px;
  font-weight: 700; font-size: 20px; cursor: pointer; list-style: none; border-radius: 21px;
}
summary::-webkit-details-marker { display: none; }
/* The toggle is a bubble button: it stays pressed in while the answer is open,
   and only the cross inside it turns (+ to ×) */
.toggle {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--pink); box-shadow: 0 4px 0 var(--pink-deep);
  transition: transform .12s ease, box-shadow .12s ease;
}
.toggle i { position: relative; width: 14px; height: 14px; transition: transform .25s ease; }
.toggle i::before, .toggle i::after { content: ''; position: absolute; inset: 0; margin: auto; background: var(--white); border-radius: 2px; }
.toggle i::before { width: 14px; height: 3px; }
.toggle i::after { width: 3px; height: 14px; }
details[open] .toggle { transform: translateY(4px); box-shadow: 0 0 0 var(--pink-deep); }
details[open] .toggle i { transform: rotate(45deg); }
details p { padding: 0 26px 24px; color: var(--ink-soft); }

/* Closing call to action */
.cta {
  position: relative; text-align: center;
  background: var(--white); border: 3px solid var(--line); box-shadow: 0 10px 0 var(--line);
  border-radius: 40px; padding: clamp(48px, 7vw, 80px) 24px;
}
.cta .sub { margin-bottom: 34px; }
.cta .emoji { font-size: 56px; line-height: 1; margin-bottom: 18px; display: inline-block; animation: wiggle 2.4s ease-in-out infinite; }

/* Footer */
footer { padding-block: 40px 56px; color: var(--ink-soft); font-size: 16px; border-top: 3px dashed var(--line); }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
footer .brand { display: flex; align-items: center; gap: 14px; }
footer .brand img { height: var(--logo-small); width: auto; }
footer nav { display: flex; gap: 6px; flex-wrap: wrap; }
footer nav a { color: var(--ink-soft); text-decoration: none; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
footer nav a:hover { background: var(--white); color: var(--pink-text); }
@media (max-width: 600px) { footer .wrap { flex-direction: column; text-align: center; } footer .brand { flex-direction: column; gap: 8px; } }

/* Legal / support pages */
.doc { max-width: 720px; margin: 0 auto; padding-block: 24px var(--section); }
.doc h1 { font-size: clamp(42px, 7vw, 62px); margin: 16px 0 14px; }
.doc .updated { font-size: 16px; margin-bottom: 28px; }
.doc h2 { font-size: 26px; margin: 44px 0 12px; }
.doc p, .doc li { color: var(--ink-soft); margin-bottom: 12px; }
.doc ul { padding-left: 22px; }
.doc li::marker { color: var(--pink); }
.doc strong { color: var(--ink); }
.doc .callout { background: var(--white); border: 3px solid var(--line); border-radius: 24px; padding: 20px 24px; color: var(--ink); }

@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-16px) rotate(6deg); } }
@keyframes wiggle { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-8deg); } 90% { transform: rotate(8deg); } 95% { transform: rotate(-4deg); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
