/* Nautilo — landing page and legal pages.
   Palette, textures and illustrations come from the app (Blind Memory/Design/Theme.swift). */

@font-face {
  font-family: "Fredoka";
  src: url("../fonts/fredoka.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --sand: #f7e6c9;
  --sand-deep: #ebcd9e;
  --coral: #ff7b6b;
  --coral-deep: #d9584a;
  --lagoon: #14606b;
  --lagoon-light: #2a8c95;
  --foam: #a6e3d0;
  --nacre: #f6c9d3;
  --pearl: #fff6ea;
  --ink: #1e2a4a;
  --ink-soft: #46506b;
  --sun: #ffc44d;
  --sunset: #ff9a7a;
  --shell-brown: #6b3b3f;
  --easy: #5dbfae;
  --medium: #f5b342;
  --hard: #ff7b6b;

  --font-display: "Fredoka", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --font-body: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --radius: 28px;
  --shadow: 0 14px 34px rgba(30, 42, 74, 0.16);
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 40' preserveAspectRatio='none'%3E%3Cpath d='M0 22 C 60 4 180 4 240 22 S 420 40 480 22 V40 H0 Z'/%3E%3C/svg%3E");
  --sand-tex: url("../img/beach/sand.webp");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--sand) var(--sand-tex) repeat;
  background-size: 540px;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--lagoon);
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(2rem, 4.6vw, 3.2rem);
}

h3 {
  font-size: 1.45rem;
}

p {
  margin: 0;
}

.wrap {
  width: min(1160px, 100% - 40px);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 12px;
}
.skip:focus {
  top: 12px;
}

:focus-visible {
  outline: 4px solid var(--sun);
  outline-offset: 3px;
  border-radius: 14px;
}

/* ---------- Buttons ---------- */

.btn {
  --btn: var(--coral);
  --btn-edge: var(--coral-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 26px;
  border: 0;
  border-radius: 22px;
  font: 700 1.1rem/1 var(--font-display);
  color: #fff;
  text-decoration: none;
  background: var(--btn);
  box-shadow: 0 6px 0 var(--btn-edge), 0 12px 24px rgba(30, 42, 74, 0.18);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 var(--btn-edge), 0 16px 28px rgba(30, 42, 74, 0.2);
}
.btn:active {
  transform: translateY(5px);
  box-shadow: 0 1px 0 var(--btn-edge), 0 6px 12px rgba(30, 42, 74, 0.18);
}
.btn--lagoon {
  --btn: var(--lagoon-light);
  --btn-edge: var(--lagoon);
}
.btn--pearl {
  --btn: var(--pearl);
  --btn-edge: var(--sand-deep);
  color: var(--ink);
}
.btn svg {
  width: 22px;
  height: 22px;
}

/* Apple's and Google's official badges, unaltered (no recoloring or shadow), as both stores' guidelines require.
   Same height for both: Google Play's badge must never be smaller than another store's. */
.store-badge {
  display: inline-block;
  border-radius: 12px;
  transition: transform 0.15s ease;
}
.store-badge:hover {
  transform: translateY(-2px);
}
.store-badge img {
  display: block;
  width: auto;
  height: 60px;
}
/* Badges side by side keep at least a quarter of their height apart (Google Play's clear space). */
.stores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.final .stores {
  justify-content: center;
}

/* ---------- Platform (assets/js/platform.js) ---------- */

/* data-show lists the platforms an element is meant for: the visitor's device, or "all" on a computer. */
html[data-platform="ios"] [data-show]:not([data-show~="ios"]),
html[data-platform="android"] [data-show]:not([data-show~="android"]),
html[data-platform="all"] [data-show]:not([data-show~="all"]) {
  display: none !important;
}
.platform-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 18px;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--shell-brown);
}
.platform-switch .segmented {
  padding: 3px;
}
.platform-switch .segmented button {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.95rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 90;
  transform: translate(-50%, calc(100% + 60px));
  visibility: hidden;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100% - 32px);
  padding: 10px 20px 10px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  box-shadow: var(--shadow);
  transition: transform 0.4s cubic-bezier(0.2, 1.4, 0.4, 1), visibility 0.4s;
}
.toast img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}
.toast.is-shown {
  visibility: visible;
  transform: translate(-50%, 0);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 246, 234, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 20px rgba(30, 42, 74, 0.1);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font: 700 1.6rem/1 var(--font-display);
}
.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(30, 42, 74, 0.2);
}
.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}
.nav a:hover {
  background: rgba(255, 255, 255, 0.55);
}
.site-header .btn {
  min-height: 46px;
  padding: 0 18px;
  font-size: 1rem;
  border-radius: 16px;
  box-shadow: 0 4px 0 var(--btn-edge);
}
@media (max-width: 920px) {
  .nav {
    display: none;
  }
  .site-header .btn {
    margin-left: auto;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  margin-top: -76px;
  padding-top: 76px;
  background: url("../img/beach/sky.webp") center top / cover, var(--sunset);
  overflow: hidden;
}
.hero-sun {
  position: absolute;
  right: 6%;
  bottom: 150px;
  width: clamp(160px, 22vw, 300px);
  opacity: 0.95;
  animation: sun-rise 9s ease-in-out infinite alternate;
}
.cloud {
  position: absolute;
  width: 220px;
  height: 64px;
  border-radius: 999px;
  background: rgba(255, 246, 234, 0.55);
  filter: blur(1px);
  animation: drift 40s linear infinite;
}
.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: inherit;
}
.cloud::before {
  width: 96px;
  height: 96px;
  left: 34px;
  top: -46px;
}
.cloud::after {
  width: 70px;
  height: 70px;
  left: 112px;
  top: -30px;
}
.cloud--1 {
  top: 130px;
  left: -10%;
}
.cloud--2 {
  top: 300px;
  left: 40%;
  transform: scale(0.7);
  animation-duration: 55s;
  animation-delay: -20s;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 24px;
  padding: 40px 0 120px;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 246, 234, 0.8);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--coral-deep);
}
.hero h1 {
  margin: 18px 0 18px;
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  color: #fff;
  text-shadow: 0 5px 0 var(--coral-deep), 0 14px 30px rgba(107, 59, 63, 0.35);
}
.hero h1 em {
  font-style: normal;
  color: var(--sun);
}
.hero-lead {
  max-width: 34em;
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--ink);
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
}
.hero-meta {
  margin-top: 18px;
  font-weight: 800;
  color: var(--shell-brown);
  font-size: 0.98rem;
}
.hero-art {
  position: relative;
  display: grid;
  place-items: center;
}
.hero-bernie {
  width: min(440px, 100%);
  filter: drop-shadow(0 26px 30px rgba(107, 59, 63, 0.3));
  animation: bob 4.5s ease-in-out infinite;
  cursor: pointer;
}
.bubble {
  position: absolute;
  top: 6%;
  left: 2%;
  padding: 12px 18px;
  border-radius: 24px 24px 24px 6px;
  background: var(--pearl);
  font: 600 1.15rem/1.2 var(--font-display);
  box-shadow: var(--shadow);
  animation: pop-in 0.8s 0.6s both cubic-bezier(0.2, 1.6, 0.4, 1);
}
.note {
  position: absolute;
  font-size: 2rem;
  color: var(--pearl);
  text-shadow: 0 3px 0 var(--coral-deep);
  animation: float-note 3.6s ease-in-out infinite;
}
.note--1 {
  right: 12%;
  top: 14%;
}
.note--2 {
  right: 2%;
  top: 34%;
  animation-delay: -1.2s;
  font-size: 1.5rem;
}
.note--3 {
  left: 10%;
  bottom: 22%;
  animation-delay: -2.4s;
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    /* Room for the platform switcher above the shore. */
    padding-bottom: 150px;
  }
  .hero-lead {
    margin-inline: auto;
  }
  .hero-ctas,
  .platform-switch {
    justify-content: center;
  }
  .hero-art {
    order: -1;
  }
  .hero-bernie {
    width: min(300px, 70vw);
  }
  .hero-sun {
    bottom: auto;
    top: 120px;
    right: -40px;
  }
}

/* ---------- Shore: the app's layered sea, foam and sand ---------- */

.shore {
  position: relative;
  height: 120px;
  margin-top: -120px;
  z-index: 3;
}
.shore > span {
  position: absolute;
  inset: 0;
  background-size: 405px;
  -webkit-mask: var(--wave) 0 0 / 520px 36px repeat-x, linear-gradient(#000, #000) 0 35px / 100% 100% no-repeat;
  mask: var(--wave) 0 0 / 520px 36px repeat-x, linear-gradient(#000, #000) 0 35px / 100% 100% no-repeat;
  animation: swell 9s linear infinite;
}
.shore .sea-light {
  background-image: url("../img/beach/sea_light.webp");
}
.shore .sea-deep {
  top: 22px;
  background-image: url("../img/beach/sea_deep.webp");
  animation-duration: 7s;
  animation-direction: reverse;
  -webkit-mask-size: 440px 34px, 100% 100%;
  mask-size: 440px 34px, 100% 100%;
}
.shore .foam {
  top: 58px;
  background-image: url("../img/beach/foam.webp");
  animation-duration: 12s;
}
.shore .sand {
  top: 66px;
  background: var(--sand) var(--sand-tex) 0 0 / 540px repeat;
  animation-duration: 12s;
}

/* A wave edge on top of a lagoon section. */
.sea {
  position: relative;
  color: var(--pearl);
  background: var(--lagoon) url("../img/beach/sea_deep.webp") 0 0 / 405px repeat;
}
.sea::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -34px;
  height: 36px;
  background: inherit;
  -webkit-mask: var(--wave) 0 0 / 520px 36px repeat-x;
  mask: var(--wave) 0 0 / 520px 36px repeat-x;
  animation: swell-edge 10s linear infinite;
}
.sea::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 36px;
  background: var(--sand) var(--sand-tex) 0 0 / 540px repeat;
  -webkit-mask: var(--wave) 0 0 / 520px 36px repeat-x;
  mask: var(--wave) 0 0 / 520px 36px repeat-x;
  animation: swell-edge 14s linear infinite reverse;
}
.sea h2,
.sea h3 {
  color: #fff;
}

/* ---------- Sections ---------- */

.section {
  position: relative;
  padding: 96px 0;
}
.section-head {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head p {
  margin-top: 16px;
  font-size: 1.15rem;
  color: var(--ink-soft);
  font-weight: 600;
}
.sea .section-head p {
  color: rgba(255, 246, 234, 0.88);
}
.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font: 600 0.95rem/1.2 var(--font-display);
  letter-spacing: 0.02em;
}
.sea .eyebrow {
  background: var(--sun);
  color: var(--ink);
}

.panel {
  background: linear-gradient(var(--pearl), #fdf0dc);
  border: 3px solid var(--sand-deep);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Trust chips under the hero */
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: -18px;
  position: relative;
  z-index: 4;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--pearl);
  border: 2px solid var(--sand-deep);
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(30, 42, 74, 0.08);
}
.chip i {
  font-style: normal;
  font-size: 1.2rem;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .chips {
    gap: 8px;
  }
  .chip {
    padding: 7px 13px;
    font-size: 0.88rem;
  }
}

/* ---------- Demo ---------- */

.demo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
}
@media (max-width: 960px) {
  .demo-layout {
    grid-template-columns: 1fr;
  }
}

.demo-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.segmented {
  display: inline-flex;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 246, 234, 0.85);
  border: 2px solid var(--sand-deep);
}
.segmented button {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font: 600 1rem var(--font-display);
  color: var(--ink);
  cursor: pointer;
}
.segmented button[aria-pressed="true"] {
  background: var(--lagoon-light);
  color: #fff;
  box-shadow: 0 3px 0 var(--lagoon);
}
.sound-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--shell-brown);
}

.board {
  position: relative;
  overflow: hidden;
  border-radius: 36px;
  border: 4px solid var(--pearl);
  box-shadow: 0 0 0 3px var(--sand-deep), 0 30px 60px rgba(107, 59, 63, 0.25);
  background: var(--sand) var(--sand-tex) 0 0 / 540px repeat;
  isolation: isolate;
}
.board-top {
  position: relative;
  height: 118px;
  background: url("../img/beach/sky.webp") center 30% / cover;
}
.board-top .shore {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -60px;
  margin: 0;
  height: 110px;
}
.pearls {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 26px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(107, 59, 63, 0.28);
}
.pearls span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(255, 246, 234, 0.9);
  background: rgba(255, 246, 234, 0.35);
  transition: background 0.3s ease, transform 0.3s ease;
}
.pearls span.is-on {
  background: radial-gradient(circle at 35% 30%, #fff 0 12%, var(--sun) 40%, #e9a43a 100%);
  transform: scale(1.12);
}
.board-bernie {
  position: absolute;
  z-index: 4;
  right: 14px;
  top: 8px;
  width: 104px;
  transition: transform 0.3s ease;
}
.board-bernie.is-bouncing {
  animation: hop 0.6s ease;
}

.grid {
  --cols: 3;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  gap: clamp(8px, 2vw, 22px);
  padding: 76px clamp(14px, 4vw, 48px) 40px;
  max-width: 760px;
  margin-inline: auto;
}
@media (max-width: 560px) {
  .grid {
    --cols: 2;
    padding-inline: 18px;
  }
}

.shell {
  position: relative;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  perspective: 900px;
  -webkit-tap-highlight-color: transparent;
}
.shell::after {
  /* the shadow on the sand */
  content: "";
  position: absolute;
  left: 11%;
  right: 11%;
  bottom: 3%;
  height: 16%;
  border-radius: 50%;
  background: rgba(235, 205, 158, 0.75);
  filter: blur(3px);
  z-index: -1;
}
.shell-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.3, 1.5, 0.5, 1);
}
.shell:hover .shell-inner {
  transform: translateY(-4px) rotate(-2deg);
}
.shell.is-open .shell-inner {
  transform: rotateY(180deg);
}
.shell.is-playing .shell-inner {
  transform: rotateY(180deg) scale(1.06);
}
.face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.face img {
  width: 92%;
  pointer-events: none;
  user-select: none;
}
.face--front,
.face--pearl {
  transform: rotateY(180deg);
}
.face--pearl {
  opacity: 0;
  transition: opacity 0.35s ease;
}
.shell.is-matched .face--front {
  opacity: 0;
  transition: opacity 0.35s ease;
}
.shell.is-matched .face--pearl {
  opacity: 1;
}
.face--pearl img {
  width: 86%;
  border-radius: 50%;
  box-shadow: 0 0 0 5px var(--pearl), 0 0 26px 6px rgba(255, 196, 77, 0.7);
  animation: pearl-in 0.6s cubic-bezier(0.2, 1.6, 0.4, 1);
}
.check {
  position: absolute;
  right: 8%;
  bottom: 8%;
  display: grid;
  place-items: center;
  width: 22%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--lagoon);
  border: 3px solid #fff;
  color: #fff;
  font: 700 clamp(0.8rem, 2.4vw, 1.3rem) / 1 var(--font-display);
}
.ear {
  position: absolute;
  width: 40% !important;
  left: 62%;
  top: 18%;
  opacity: 0;
  transform: rotate(8deg) translateX(30%);
  transition: transform 0.45s cubic-bezier(0.3, 1.6, 0.5, 1), opacity 0.25s ease;
}
.shell.is-playing .ear {
  opacity: 1;
  transform: rotate(-12deg) translateX(-22%);
  transition-delay: 0.25s;
}
.rings {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.rings i {
  position: absolute;
  width: 30%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 4px solid var(--lagoon-light);
  opacity: 0;
}
.shell.is-playing .rings i {
  animation: ring 1.1s linear infinite;
}
.shell.is-playing .rings i:nth-child(2) {
  animation-delay: 0.37s;
}
.shell.is-playing .rings i:nth-child(3) {
  animation-delay: 0.74s;
}

.spark {
  position: absolute;
  z-index: 8;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  pointer-events: none;
  border-radius: 50%;
  border: 2px solid #fff;
  animation: spark 1.2s ease-out forwards;
}
.spark--star {
  border: 0;
  background: var(--sun);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

.song-label {
  min-height: 2.4em;
  padding: 0 20px 26px;
  text-align: center;
  font: 600 1.2rem/1.2 var(--font-display);
  color: var(--shell-brown);
}

.result {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(30, 42, 74, 0);
  pointer-events: none;
  transition: background 0.4s ease;
}
.result.is-shown {
  background: rgba(30, 42, 74, 0.35);
  pointer-events: auto;
}
.result-card {
  width: min(420px, 100%);
  padding: 26px 24px 30px;
  text-align: center;
  transform: scale(0.85) translateY(30px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.2, 1.5, 0.4, 1), opacity 0.3s ease;
}
.result.is-shown .result-card {
  transform: none;
  opacity: 1;
}
.result-card img {
  width: 150px;
  margin: -10px auto 4px;
}
.result-card h3 {
  font-size: 1.8rem;
}
.result-card p {
  margin: 8px 0 18px;
  font-weight: 700;
  color: var(--ink-soft);
}
.stars {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 12px 0 6px;
}
.stars svg {
  width: 58px;
  height: 58px;
  fill: rgba(107, 59, 63, 0.15);
  transition: transform 0.4s cubic-bezier(0.2, 1.8, 0.4, 1);
}
.stars svg.is-on {
  fill: url(#star-fill);
  transform: scale(1.12) rotate(-6deg);
  filter: drop-shadow(0 4px 0 #e08a2a);
}
.result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.demo-aside {
  padding: 26px;
}
.demo-aside h3 {
  margin-bottom: 12px;
}
.demo-aside ol {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 14px;
}
.demo-aside li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: start;
  font-weight: 700;
}
.demo-aside li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  font: 700 1.1rem var(--font-display);
  box-shadow: 0 3px 0 var(--coral-deep);
}
.demo-aside .small {
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-weight: 600;
}

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step {
  padding: 28px;
  text-align: center;
}
.step-art {
  position: relative;
  height: 170px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.step-art img {
  max-height: 160px;
  width: auto;
}
.step-art .pair {
  display: flex;
  gap: 4px;
}
.step-art .pair img {
  width: 120px;
  max-width: none;
  height: auto;
}
.step p {
  margin-top: 10px;
  color: var(--ink-soft);
  font-weight: 600;
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--sun);
  font: 700 1.3rem var(--font-display);
  box-shadow: 0 4px 0 #e0a43a;
}
@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.levels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.level {
  position: relative;
  padding: 26px 24px 24px;
  border-radius: var(--radius);
  background: var(--pearl);
  border: 3px solid var(--lvl);
  box-shadow: 0 8px 0 var(--lvl), var(--shadow);
}
.level h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.level h3 span {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--lvl);
  color: #fff;
  font-size: 0.9rem;
}
.level p {
  margin-top: 10px;
  font-weight: 600;
  color: var(--ink-soft);
}
.level .dots {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  align-items: center;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--shell-brown);
}
.level .dots img {
  width: 44px;
}
.level--easy {
  --lvl: var(--easy);
}
.level--medium {
  --lvl: var(--medium);
}
.level--hard {
  --lvl: var(--hard);
}
@media (max-width: 860px) {
  .levels {
    grid-template-columns: 1fr;
  }
}

/* ---------- Cove (lagoon section) ---------- */

.cove {
  padding: 110px 0 130px;
}
.cove-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.cove-grid .lead {
  margin-top: 16px;
  font-size: 1.15rem;
  font-weight: 600;
  color: rgba(255, 246, 234, 0.9);
}
.moods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.mood {
  margin: 0;
  padding: 14px 10px 12px;
  border-radius: 24px;
  background: rgba(255, 246, 234, 0.12);
  border: 2px solid rgba(255, 246, 234, 0.25);
  text-align: center;
  font-weight: 800;
  font-size: 0.95rem;
}
.mood img {
  width: 100%;
  max-width: 130px;
  margin: 0 auto 6px;
  transition: transform 0.3s ease;
}
.mood:hover img {
  transform: translateY(-6px) rotate(-4deg);
}
.cove-sub {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.cove-card {
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(255, 246, 234, 0.1);
  border: 2px solid rgba(255, 246, 234, 0.22);
}
.cove-card p {
  margin: 8px 0 18px;
  color: rgba(255, 246, 234, 0.88);
  font-weight: 600;
}
.avatars {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.avatars img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 4px solid var(--pearl);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.15);
  transition: transform 0.25s cubic-bezier(0.2, 1.8, 0.4, 1);
}
.avatars img:hover {
  transform: scale(1.15) rotate(-6deg);
}
.orchs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.orch {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  line-height: 1.2;
}
.orch img {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border: 3px solid var(--pearl);
  flex: none;
}
@media (max-width: 860px) {
  .cove-grid,
  .cove-sub {
    grid-template-columns: 1fr;
  }
}

/* ---------- Songs marquee ---------- */

.marquee {
  overflow: hidden;
  padding: 10px 0;
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee + .marquee {
  margin-top: 10px;
}
.marquee-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: marquee 70s linear infinite;
}
.marquee--reverse .marquee-track {
  animation-direction: reverse;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
.song {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 20px 8px 8px;
  border-radius: 999px;
  background: var(--pearl);
  border: 2px solid var(--sand-deep);
  font-weight: 800;
  white-space: nowrap;
}
.song img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
}
.song small {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--coral-deep);
  letter-spacing: 0.04em;
}
.songs-note {
  margin-top: 28px;
  text-align: center;
  font-weight: 700;
  color: var(--ink-soft);
}

/* ---------- Gallery ---------- */

.gallery-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}
.segmented [role="tab"][aria-selected="true"] {
  background: var(--lagoon-light);
  color: #fff;
  box-shadow: 0 3px 0 var(--lagoon);
}
.gallery-tabs [role="tab"] {
  min-width: 112px;
}
.gallery {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  padding: 10px max(20px, calc((100% - 1160px) / 2)) 30px;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(20px, calc((100% - 1160px) / 2));
  scrollbar-width: thin;
}
.gallery[hidden] {
  display: none;
}
.gallery:focus-visible {
  outline: 3px solid var(--lagoon-light);
  outline-offset: -3px;
}
.shot {
  flex: none;
  margin: 0;
  scroll-snap-align: start;
  text-align: center;
}
.gallery--iphone .shot {
  width: clamp(200px, 62vw, 260px);
}
.gallery--ipad .shot {
  width: clamp(260px, 80vw, 420px);
}
.gallery--android .shot {
  width: clamp(200px, 62vw, 260px);
}
/* A plain bezel around the raw captures: the status bar is the simulator's own (9:41). */
.device {
  padding: 8px;
  border-radius: 46px;
  background: var(--ink);
  box-shadow: 0 0 0 3px #3a4668, var(--shadow);
}
.device img {
  display: block;
  width: 100%;
  aspect-ratio: 1320 / 2868;
  border-radius: 38px;
  object-fit: cover;
}
.gallery--ipad .device {
  padding: 12px;
  border-radius: 34px;
}
.gallery--ipad .device img {
  aspect-ratio: 2064 / 2752;
  border-radius: 22px;
}
/* The phone emulator's raw captures (1206 × 2622), with the emulator's own status bar (9:41). */
.gallery--android .device {
  border-radius: 40px;
}
.gallery--android .device img {
  aspect-ratio: 1206 / 2622;
  border-radius: 32px;
}
.shot figcaption {
  margin-top: 14px;
  font-weight: 800;
  color: var(--shell-brown);
}
.gallery-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
}
.gallery-nav button {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  background: var(--lagoon-light);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--lagoon);
}

/* ---------- Science ---------- */

.science-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.fact {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--pearl);
  color: var(--ink);
  border: 3px solid var(--foam);
}
.fact .icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: var(--foam);
  font-size: 1.8rem;
  margin-bottom: 14px;
}
.fact h3 {
  font-size: 1.25rem;
  color: var(--ink) !important;
}
.fact p {
  margin: 10px 0 16px;
  font-weight: 600;
  color: var(--ink-soft);
  font-size: 1rem;
}
.fact cite {
  margin-top: auto;
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--lagoon);
  line-height: 1.4;
}
.fact cite a {
  color: inherit;
}
.honest {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 22px;
  align-items: center;
  margin-top: 28px;
  padding: 24px 28px;
  border-radius: var(--radius);
  background: rgba(255, 246, 234, 0.12);
  border: 2px dashed rgba(255, 246, 234, 0.45);
}
.honest img {
  width: 110px;
}
.honest p {
  font-weight: 600;
  color: rgba(255, 246, 234, 0.92);
}
.honest strong {
  color: #fff;
}
.honest a {
  color: var(--sun);
}
@media (max-width: 1020px) {
  .science-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .science-grid {
    grid-template-columns: 1fr;
  }
  .honest {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .honest img {
    margin: 0 auto;
  }
}

/* ---------- Social proof ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.stat {
  padding: 22px 16px;
  text-align: center;
}
.stat strong {
  display: block;
  font: 700 clamp(2.4rem, 5vw, 3.4rem) / 1 var(--font-display);
  color: var(--coral);
  text-shadow: 0 3px 0 rgba(217, 88, 74, 0.25);
}
.stat span {
  display: block;
  margin-top: 6px;
  font-weight: 800;
  color: var(--ink-soft);
}
@media (max-width: 760px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* ---------- Parents & pricing ---------- */

.parents-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: start;
}
.promises {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.promise {
  padding: 22px;
}
.promise .icon {
  font-size: 1.8rem;
}
.promise h3 {
  margin: 8px 0 6px;
  font-size: 1.2rem;
}
.promise p {
  font-weight: 600;
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.pricing {
  position: relative;
  padding: 30px 28px;
  text-align: center;
}
.pricing .lock {
  width: 130px;
  margin: -84px auto 0;
}
.pricing h3 {
  font-size: 1.7rem;
}
.plans {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}
.plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 20px;
  background: #fff;
  border: 3px solid var(--sand-deep);
  text-align: left;
  font-weight: 800;
}
.plan--best {
  border-color: var(--coral);
  box-shadow: 0 5px 0 var(--coral);
}
.plan small {
  display: block;
  font-weight: 700;
  color: var(--ink-soft);
}
.plan .price {
  font: 700 1.5rem var(--font-display);
  white-space: nowrap;
}
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-size: 0.78rem;
  margin-left: 6px;
  vertical-align: 2px;
}
.pricing .fine {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 600;
}
.free-line {
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(93, 191, 174, 0.18);
  font-weight: 800;
  color: var(--lagoon);
}
@media (max-width: 960px) {
  .parents-grid {
    grid-template-columns: 1fr;
  }
  .pricing {
    margin-top: 70px;
  }
}
@media (max-width: 560px) {
  .promises {
    grid-template-columns: 1fr;
  }
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq details {
  padding: 0 24px;
  border-radius: 22px;
  background: var(--pearl);
  border: 3px solid var(--sand-deep);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
  font: 600 1.15rem/1.3 var(--font-display);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  font-size: 1.4rem;
  transition: transform 0.25s ease;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  padding-bottom: 20px;
  font-weight: 600;
  color: var(--ink-soft);
}

/* ---------- Final CTA & footer ---------- */

.final {
  padding: 120px 0 100px;
  text-align: center;
}
.final .wrap > img {
  width: 220px;
  margin: 0 auto 10px;
  animation: bob 5s ease-in-out infinite;
}
.final h2 {
  color: #fff;
}
.final p {
  margin: 14px auto 28px;
  max-width: 34em;
  font-weight: 700;
  font-size: 1.15rem;
  color: rgba(255, 246, 234, 0.9);
}

.site-footer {
  padding: 56px 0 40px;
  font-weight: 700;
  color: var(--ink-soft);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.site-footer a {
  color: var(--ink);
}
.site-footer small {
  display: block;
  margin-top: 6px;
  font-weight: 600;
}
.site-footer .trademarks {
  flex-basis: 100%;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
}

/* ---------- Legal pages ---------- */

.legal-hero {
  position: relative;
  padding: 150px 0 150px;
  margin-top: -76px;
  overflow: hidden;
  background: url("../img/beach/sky.webp") center / cover, var(--sunset);
  text-align: center;
}
.legal-hero .shore {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
}
.legal-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: #fff;
  text-shadow: 0 4px 0 var(--coral-deep);
}
.legal-hero p {
  margin-top: 10px;
  font-weight: 800;
  color: var(--shell-brown);
}
.legal {
  width: min(820px, 100% - 32px);
  margin: 10px auto 60px;
  padding: clamp(24px, 5vw, 48px);
  position: relative;
  z-index: 4;
}
.legal h2 {
  margin: 36px 0 12px;
  font-size: 1.6rem;
}
.legal h2:first-child {
  margin-top: 0;
}
.legal h3 {
  margin: 22px 0 8px;
  font-size: 1.2rem;
}
.legal p,
.legal li {
  font-size: 1.02rem;
}
.legal p + p {
  margin-top: 10px;
}
.legal ul {
  padding-left: 1.2em;
}
.legal li + li {
  margin-top: 6px;
}
.legal .summary {
  padding: 20px 22px;
  border-radius: 20px;
  background: rgba(93, 191, 174, 0.16);
  border: 2px solid var(--easy);
  font-weight: 700;
}
.legal .summary ul {
  margin: 10px 0 0;
}
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 0.96rem;
}
.legal th,
.legal td {
  text-align: left;
  padding: 10px;
  border-bottom: 2px solid var(--sand);
  vertical-align: top;
}
.legal th {
  font-family: var(--font-display);
  font-weight: 600;
}
/* Store-specific passages: everything stays visible (the terms are the same document for everyone);
   the visitor's own store comes first and is marked. */
.legal .store-terms-group {
  display: flex;
  flex-direction: column;
}
.legal .store-terms {
  margin-top: 14px;
  padding: 4px 18px 14px;
  border-radius: 18px;
  border: 2px solid var(--sand);
}
.legal .store-terms h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
html[data-platform="ios"] .legal .store-terms[data-for="ios"],
html[data-platform="android"] .legal .store-terms[data-for="android"] {
  order: -1;
  border-color: var(--easy);
  background: rgba(93, 191, 174, 0.1);
}
html[data-platform="ios"] .legal .store-terms[data-for="ios"] h3::after,
html[data-platform="android"] .legal .store-terms[data-for="android"] h3::after {
  content: "Votre appareil";
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--easy);
  color: #fff;
  font: 700 0.8rem var(--font-body);
}
html[lang="en"][data-platform="ios"] .legal .store-terms[data-for="ios"] h3::after,
html[lang="en"][data-platform="android"] .legal .store-terms[data-for="android"] h3::after {
  content: "Your device";
}
.legal .platform-switch {
  margin: 0 0 24px;
}
.legal .lang-switch {
  display: inline-block;
  margin-bottom: 24px;
  font-weight: 800;
}
.todo {
  background: #ffe28a;
  padding: 0 6px;
  border-radius: 6px;
  font-weight: 800;
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 1, 0.4, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Keyframes ---------- */

@keyframes bob {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-14px) rotate(1.5deg);
  }
}
@keyframes hop {
  0%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-14px) scale(1.06);
  }
}
@keyframes sun-rise {
  from {
    transform: translateY(14px);
  }
  to {
    transform: translateY(-8px);
  }
}
@keyframes drift {
  from {
    translate: -260px 0;
  }
  to {
    translate: 110vw 0;
  }
}
@keyframes swell {
  from {
    -webkit-mask-position: 0 0, 0 35px;
    mask-position: 0 0, 0 35px;
  }
  to {
    -webkit-mask-position: 520px 0, 0 35px;
    mask-position: 520px 0, 0 35px;
  }
}
@keyframes swell-edge {
  from {
    -webkit-mask-position: 0 0;
    mask-position: 0 0;
  }
  to {
    -webkit-mask-position: 520px 0;
    mask-position: 520px 0;
  }
}
@keyframes pop-in {
  from {
    transform: scale(0.4);
    opacity: 0;
  }
}
@keyframes float-note {
  0%,
  100% {
    transform: translateY(0) rotate(-8deg);
    opacity: 0.9;
  }
  50% {
    transform: translateY(-18px) rotate(8deg);
    opacity: 0.6;
  }
}
@keyframes ring {
  from {
    transform: scale(0.6);
    opacity: 0.85;
  }
  to {
    transform: scale(2.6);
    opacity: 0;
  }
}
@keyframes spark {
  to {
    transform: translate(var(--dx), var(--dy)) scale(0.4);
    opacity: 0;
  }
}
@keyframes pearl-in {
  from {
    transform: scale(0.3) rotate(-30deg);
  }
}
@keyframes marquee {
  to {
    transform: translateX(calc(-50% - 9px));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
  .shell.is-open .shell-inner,
  .shell.is-playing .shell-inner {
    transform: none;
  }
  .face--front,
  .face--pearl {
    transform: none;
  }
  .face--back {
    transition: opacity 0.2s;
  }
  .shell.is-open .face--back {
    opacity: 0;
  }
  .shell:not(.is-open) .face--front {
    opacity: 0;
  }
  .marquee {
    overflow-x: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 560px) {
  .board-bernie {
    width: 76px;
    right: 8px;
  }
  .pearls {
    left: 42%;
  }
}
