/* ==========================================================================
   Phonic — landing page
   Palette sampled from the app icon and the store artwork.
   ========================================================================== */

:root {
  --navy-950: #02143a;
  --navy-900: #02235f;
  --navy-800: #062965;
  --navy-700: #0a3a87;
  --blue-600: #0d63a5;
  --blue-500: #2e7fd1;
  --blue-200: #b9d8f6;
  --blue-50: #eef5fd;

  --mint-300: #b3e1c0;
  --mint-500: #6faf46;
  --mint-700: #3f7a33;

  --amber-200: #f8e2bd;
  --amber-500: #b87a12;

  --ink: #0c1a33;
  --body: #46586f;
  --muted: #6b7f99;
  --line: #e3eaf4;
  --line-strong: #cfdcec;
  --paper: #ffffff;
  --surface: #f4f7fc;
  --surface-2: #eaf1fa;
  --danger: #b5342c;

  --shadow-sm: 0 1px 2px rgba(2, 20, 58, 0.06), 0 2px 8px rgba(2, 20, 58, 0.05);
  --shadow-md: 0 4px 12px rgba(2, 20, 58, 0.07), 0 14px 34px rgba(2, 20, 58, 0.08);
  --shadow-lg: 0 10px 30px rgba(2, 20, 58, 0.12), 0 32px 70px rgba(2, 20, 58, 0.16);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-ipa: "Gentium Plus", "Charis SIL", "Doulos SIL", "Lucida Sans Unicode",
    "Segoe UI", var(--font);

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(72px, 9vw, 128px);
}

/* ---------- base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0;
  font-weight: 800;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  background: var(--paper);
  color: var(--navy-900);
  font-weight: 700;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  transition: top 0.18s ease;
}

.skip-link:focus {
  top: 16px;
}

/* ---------- layout primitives ---------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
}

.head {
  max-width: 680px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.head h2,
.faq-intro h2,
.accent-copy h2 {
  font-size: clamp(2rem, 1.35rem + 2.4vw, 3.1rem);
  margin-bottom: 18px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 16px;
}

.kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.kicker-onDark {
  color: var(--mint-300);
}

.sub {
  font-size: clamp(1.02rem, 0.97rem + 0.25vw, 1.16rem);
  max-width: 60ch;
}

.sub-onDark {
  color: rgba(233, 241, 252, 0.78);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.16s ease, box-shadow 0.16s ease,
    background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--blue-600);
  color: #fff;
  box-shadow: 0 6px 18px rgba(13, 99, 165, 0.28);
}

.btn-primary:hover {
  background: var(--navy-700);
  box-shadow: 0 10px 26px rgba(13, 99, 165, 0.34);
}

.btn-outline {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--line-strong);
}

.btn-outline:hover {
  border-color: var(--blue-500);
  color: var(--blue-600);
  background: var(--blue-50);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-quiet {
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
}

.btn-quiet:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--surface);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.92rem;
}

.btn-block {
  width: 100%;
}

.store-badge {
  display: inline-block;
  line-height: 0;
  border-radius: 10px;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.store-badge:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.store-badge img {
  width: 194px;
  height: auto;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.site-header.is-stuck {
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 20px rgba(2, 20, 58, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  font-size: 1.24rem;
  letter-spacing: -0.03em;
}

.brand img {
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(2, 20, 58, 0.24);
}

.site-header.is-stuck .brand {
  color: var(--ink);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-inline: auto;
}

.site-nav a {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: color 0.16s ease, background-color 0.16s ease;
}

.site-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.site-header.is-stuck .site-nav a {
  color: var(--body);
}

.site-header.is-stuck .site-nav a:hover {
  color: var(--navy-800);
  background: var(--surface-2);
}

.header-cta {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  box-shadow: none;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.header-cta:hover {
  background: #fff;
  color: var(--navy-800);
  border-color: #fff;
  box-shadow: 0 6px 18px rgba(2, 20, 58, 0.18);
}

.site-header.is-stuck .header-cta {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: #fff;
  box-shadow: 0 6px 16px rgba(13, 99, 165, 0.26);
}

.site-header.is-stuck .header-cta:hover {
  background: var(--navy-700);
  border-color: var(--navy-700);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 12px;
}

.site-header.is-stuck .nav-toggle {
  background: var(--surface);
  border-color: var(--line);
}

.nav-toggle-bars {
  display: grid;
  gap: 4px;
}

.nav-toggle-bars i {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.is-stuck .nav-toggle-bars i {
  background: var(--ink);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav {
  display: grid;
  gap: 2px;
  padding: 8px var(--gutter) 24px;
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a:not(.btn) {
  padding: 13px 4px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.mobile-nav .btn {
  margin-top: 16px;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  margin-top: -76px;
  padding-top: 148px;
  padding-bottom: clamp(48px, 6vw, 76px);
  background:
    radial-gradient(120% 90% at 78% 6%, #0a3a87 0%, rgba(10, 58, 135, 0) 55%),
    linear-gradient(178deg, var(--navy-900) 0%, var(--navy-950) 100%);
  color: #e9f1fc;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}

.glow-a {
  width: 520px;
  height: 520px;
  top: -180px;
  right: -80px;
  background: rgba(46, 127, 209, 0.55);
}

.glow-b {
  width: 460px;
  height: 460px;
  bottom: -200px;
  left: -140px;
  background: rgba(111, 175, 70, 0.26);
}

.ipa-float {
  position: absolute;
  font-family: var(--font-ipa);
  color: rgba(185, 216, 246, 0.09);
  font-weight: 700;
  user-select: none;
  animation: drift 12s ease-in-out infinite;
}

.f1 { font-size: 190px; top: 4%; left: 3%; }
.f2 { font-size: 130px; bottom: 14%; left: 28%; animation-delay: -3s; }
.f3 { font-size: 160px; top: 54%; right: 5%; animation-delay: -6s; }
.f4 { font-size: 110px; top: 10%; left: 46%; animation-delay: -1.5s; }
.f5 { font-size: 120px; bottom: 6%; right: 30%; animation-delay: -8s; }

@keyframes drift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(3deg); }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(233, 241, 252, 0.92);
  margin-bottom: 26px;
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint-300);
  box-shadow: 0 0 0 4px rgba(179, 225, 192, 0.2);
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.6rem, 1.5rem + 4.6vw, 4.5rem);
  letter-spacing: -0.038em;
  margin-bottom: 22px;
}

.hero h1 em {
  font-style: normal;
  color: var(--mint-300);
}

.lede {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.2rem);
  color: rgba(233, 241, 252, 0.8);
  max-width: 52ch;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.rating {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: rgba(233, 241, 252, 0.72);
}

.rating strong {
  color: #fff;
  font-weight: 800;
}

.stars {
  color: #f2b846;
  font-size: 1rem;
  letter-spacing: 1px;
  line-height: 1;
}

.rating-centred {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 3.4vw, 40px);
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-stats li {
  display: grid;
  gap: 2px;
}

.hero-stats strong {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero-stats span {
  font-size: 0.85rem;
  color: rgba(233, 241, 252, 0.62);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding-block: 12px;
}

.phone-shot {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: var(--navy-900);
  box-shadow: var(--shadow-lg);
}

.phone-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.16);
  pointer-events: none;
}

.phone-shot-lead {
  width: min(340px, 78vw);
  transform: rotate(-1.4deg);
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-lg);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
  animation: bob 6s ease-in-out infinite;
}

.float-card strong {
  display: block;
  font-size: 0.9rem;
  color: var(--ink);
}

.float-accents {
  top: 7%;
  left: -6%;
}

.float-score {
  bottom: 10%;
  right: -5%;
  animation-delay: -3s;
}

.flags {
  font-size: 1.1rem;
  letter-spacing: -1px;
}

.ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.86rem;
  color: var(--mint-700);
  background: conic-gradient(var(--mint-500) 0 92%, #dde7f2 92% 100%);
}

.ring::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #fff;
}

.ring b {
  position: relative; /* sits above the ::before hole */
  font-weight: 800;
}

.ring small {
  font-size: 0.62em;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* trust strip */

.trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  margin-top: clamp(48px, 6vw, 76px);
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.trust p {
  font-size: 0.86rem;
  color: rgba(233, 241, 252, 0.55);
}

.trust ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
}

.trust li {
  font-weight: 700;
  font-size: 0.93rem;
  color: rgba(233, 241, 252, 0.82);
  letter-spacing: -0.01em;
}

/* ---------- interactive demo ---------- */

/* Parked: `demo-off` on <body> hides the demo and every link pointing at it.
   Drop the class to restore it — nothing below has been removed. */
.demo-off .demo-section,
.demo-off a[href="#try"] {
  display: none;
}

.demo-section {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.demo-section .head {
  max-width: 720px;
}

.demo {
  max-width: 940px;
  padding: clamp(20px, 3vw, 32px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.demo-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px dashed var(--line-strong);
}

.demo-label {
  display: block;
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}

.demo-word strong {
  display: block;
  font-size: clamp(1.7rem, 1.4rem + 1.1vw, 2.3rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.demo-score {
  text-align: right;
}

.demo-score strong {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--mint-700);
  line-height: 1.15;
  transition: color 0.2s ease;
}

.demo-score.is-low strong {
  color: var(--amber-500);
}

.accent-switch {
  display: inline-flex;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.accent-switch button {
  border: 0;
  background: transparent;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
  transition: background-color 0.16s ease, color 0.16s ease,
    box-shadow 0.16s ease;
}

.accent-switch button.is-active {
  background: var(--paper);
  color: var(--navy-800);
  box-shadow: var(--shadow-sm);
}

.demo-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.tool {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-800);
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.tool:hover:not(:disabled) {
  border-color: var(--blue-500);
  background: var(--blue-50);
}

.tool:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.tool em {
  font-style: normal;
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--amber-500);
  background: var(--amber-200);
  padding: 1px 7px;
  border-radius: 999px;
}

.tool-ico {
  font-size: 0.95rem;
  line-height: 1;
}

.demo-input {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  padding: 14px 16px;
  min-height: 70px;
  background: var(--surface);
  border: 2px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.demo-input.is-correct {
  border-color: var(--mint-500);
  background: #f2f9ef;
}

.demo-input.is-wrong {
  border-color: #e2857f;
  background: #fdf3f2;
  animation: shake 0.32s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.slash {
  font-family: var(--font-ipa);
  font-size: 1.5rem;
  color: var(--muted);
}

.demo-output {
  flex: 0 1 auto; /* the closing slash follows the caret, not the box edge */
  min-width: 0;
  font-family: var(--font-ipa);
  font-size: clamp(1.4rem, 1.2rem + 0.9vw, 1.9rem);
  font-weight: 600;
  color: var(--ink);
  word-break: break-word;
}

.demo-output span {
  display: inline-block;
  animation: pop 0.16s ease;
}

.demo-output span.is-bad {
  color: var(--danger);
  text-decoration: underline wavy #e2857f 1.5px;
  text-underline-offset: 6px;
}

@keyframes pop {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.caret {
  width: 2px;
  height: 1.4em;
  flex: none;
  background: var(--blue-500);
  animation: blink 1.1s steps(2, start) infinite;
}

@keyframes blink {
  to { visibility: hidden; }
}

.backspace {
  margin-left: auto;
  flex: none;
  width: 46px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  border-radius: 10px;
  font-size: 1rem;
  color: var(--body);
}

.backspace:hover {
  border-color: var(--blue-500);
  color: var(--blue-600);
}

.demo-msg {
  min-height: 28px;
  margin-top: 12px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--muted);
}

.demo-msg.is-good {
  color: var(--mint-700);
}

.demo-msg.is-bad {
  color: var(--danger);
}

.demo-msg .ipa {
  font-family: var(--font-ipa);
  font-weight: 700;
}

.keyboard {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.key {
  min-width: 44px;
  height: 44px;
  padding-inline: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(2, 20, 58, 0.08);
  border-radius: 8px;
  font-family: var(--font-ipa);
  font-size: 1.08rem;
  font-weight: 600;
  color: #17324f;
  background: #dceaf8;
  transition: transform 0.1s ease, box-shadow 0.14s ease, filter 0.14s ease;
}

.key:hover {
  filter: brightness(0.96);
  box-shadow: var(--shadow-sm);
}

.key:active {
  transform: translateY(1px) scale(0.97);
}

.key-vowel {
  background: #e2efd6;
  color: #2c4a1e;
}

.key-diph {
  background: #cde3b4;
  color: #2c4a1e;
}

.key-stress {
  background: var(--amber-200);
  color: #6d4a10;
}

.key-break {
  flex-basis: 100%;
  height: 0;
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

.demo-foot {
  max-width: 940px;
  margin-top: 26px;
  font-size: 0.94rem;
  color: var(--muted);
}

.demo-foot strong {
  color: var(--ink);
}

/* ---------- how it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.step {
  position: relative;
  padding: 32px 28px 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease,
    border-color 0.24s ease;
}

.step:hover {
  transform: translateY(-4px);
  border-color: var(--blue-200);
  box-shadow: var(--shadow-md);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--navy-900);
  color: #fff;
  font-weight: 800;
  font-size: 0.93rem;
  margin-bottom: 20px;
}

.step h3 {
  font-size: 1.28rem;
  margin-bottom: 10px;
}

.step p {
  font-size: 0.97rem;
}

.step-ipa {
  position: absolute;
  right: -4px;
  bottom: -24px;
  font-family: var(--font-ipa);
  font-size: 3.6rem;
  font-weight: 700;
  color: rgba(13, 99, 165, 0.07);
  letter-spacing: -0.02em;
  pointer-events: none;
}

.how-proof {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  margin-top: clamp(48px, 6vw, 88px);
  padding: clamp(28px, 4vw, 52px);
  background: linear-gradient(150deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
}

.how-proof h3 {
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem);
  margin-bottom: 14px;
}

.how-proof p {
  margin-bottom: 22px;
}

.how-proof-shot {
  position: relative;
  z-index: 0; /* contains the stacked back shot above the panel background */
  display: flex;
  justify-content: center;
}

.how-proof-shot .phone-shot {
  width: min(250px, 62vw);
}

.how-proof-shot .phone-shot-back {
  position: absolute;
  left: 50%;
  top: 26px;
  z-index: -1;
  opacity: 0.9;
  transform: translateX(-4%) rotate(6deg) scale(0.9);
}

.ticks {
  display: grid;
  gap: 10px;
}

.ticks li {
  position: relative;
  padding-left: 30px;
  font-size: 0.97rem;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--mint-500)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

.ticks-onDark li {
  color: rgba(233, 241, 252, 0.82);
}

/* ---------- features bento ---------- */

.features-section {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.6vw, 34px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease,
    border-color 0.24s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--blue-200);
  box-shadow: var(--shadow-md);
}

.card-wide {
  grid-column: span 4;
  flex-direction: row;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
}

/* the six cards tile as 4+2 / 4+2 / 3+3 */
.card-reverse,
.card-narrow {
  grid-column: span 2;
}

.card-tall {
  grid-column: span 4;
  flex-direction: row;
  align-items: stretch;
  gap: clamp(20px, 3vw, 36px);
  padding-bottom: 0;
}

.card-body {
  flex: 1;
  min-width: 0;
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

.card p {
  font-size: 0.97rem;
  margin-bottom: 16px;
}

.card p:last-child {
  margin-bottom: 0;
}

.card-shot {
  flex: none;
  width: min(220px, 40%);
}

.card-shot .phone-shot {
  width: 100%;
}

.card-tall .card-shot-bleed {
  width: min(210px, 42%);
  align-self: flex-end;
  margin-bottom: -16%;
}

.card-dark {
  background: linear-gradient(155deg, var(--navy-800) 0%, var(--navy-950) 100%);
  border-color: transparent;
  color: rgba(233, 241, 252, 0.8);
}

.card-dark h3 {
  color: #fff;
}

.card-dark:hover {
  border-color: transparent;
}

.tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue-600);
  font-size: 0.71rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.tag-mint {
  background: #edf6e7;
  color: var(--mint-700);
}

.tag-onDark {
  background: rgba(255, 255, 255, 0.12);
  color: var(--mint-300);
}

.ipa-demo-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  font-weight: 700;
  color: var(--ink);
}

.ipa-demo-line span {
  font-family: var(--font-ipa);
  color: var(--blue-600);
  font-size: 1.2rem;
}

.sound-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sound-chips span {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 10px;
  background: #e2efd6;
  color: #2c4a1e;
  font-family: var(--font-ipa);
  font-size: 1.05rem;
  font-weight: 700;
}

.sound-chips small {
  font-family: var(--font);
  font-size: 0.73rem;
  font-weight: 600;
  opacity: 0.75;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-list li {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--body);
}

/* ---------- accents band ---------- */

.accent-section {
  background:
    radial-gradient(90% 70% at 20% 0%, #0a3a87 0%, rgba(10, 58, 135, 0) 60%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%);
  color: rgba(233, 241, 252, 0.8);
}

.accent-section h2,
.accent-section h3 {
  color: #fff;
}

.accent-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.accent-pairs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.pair {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.pair-word {
  font-weight: 800;
  color: #fff;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.pair-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.94rem;
}

.pair-row i {
  font-style: normal;
}

.pair-row b {
  font-family: var(--font-ipa);
  font-weight: 600;
  color: var(--mint-300);
}

.accent-shot {
  display: flex;
  justify-content: center;
}

.accent-shot .phone-shot {
  width: min(300px, 74vw);
  transform: rotate(1.6deg);
}

.extras {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: clamp(40px, 5vw, 56px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.extra h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.extra p {
  font-size: 0.91rem;
  color: rgba(233, 241, 252, 0.62);
}

.extra-ico {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 1.1rem;
  margin-bottom: 16px;
}

/* ---------- pricing ---------- */

.pricing-section .head {
  max-width: 640px;
}

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 880px;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3vw, 38px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.plan h3 {
  font-size: 1.2rem;
  letter-spacing: 0;
  margin-bottom: 6px;
}

.plan-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.035em;
  line-height: 1.2;
  margin-bottom: 26px;
}

.plan-price span {
  display: block;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
}

.plan .ticks {
  margin-bottom: 30px;
}

.plan .btn {
  margin-top: auto;
}

.plan-featured {
  background: linear-gradient(160deg, #ffffff 0%, var(--blue-50) 100%);
  border-color: var(--blue-200);
  box-shadow: var(--shadow-md);
}

.plan-flag {
  position: absolute;
  top: 22px;
  right: 24px;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--navy-900);
  color: #fff;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.plan-note {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

/* ---------- faq ---------- */

.faq-section {
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.faq-intro {
  position: sticky;
  top: 112px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-list details[open] {
  border-color: var(--blue-200);
  box-shadow: var(--shadow-sm);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  font-weight: 700;
  color: var(--ink);
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background:
    linear-gradient(var(--body), var(--body)) center / 9px 1.5px no-repeat,
    linear-gradient(var(--body), var(--body)) center / 1.5px 9px no-repeat;
  transition: transform 0.24s ease, border-color 0.2s ease;
}

.faq-list details[open] summary::after {
  transform: rotate(135deg);
  border-color: var(--blue-500);
}

.faq-body {
  padding: 0 24px 22px;
  font-size: 0.97rem;
}

/* ---------- final cta ---------- */

.cta-section {
  padding-block: var(--section-y);
  background: var(--surface);
}

.cta {
  position: relative;
  max-width: 820px;
  margin-inline: auto;
  padding: clamp(44px, 6vw, 80px) clamp(24px, 5vw, 64px);
  text-align: center;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(80% 100% at 50% 0%, #0a3a87 0%, rgba(10, 58, 135, 0) 62%),
    linear-gradient(165deg, var(--navy-900) 0%, var(--navy-950) 100%);
  color: rgba(233, 241, 252, 0.78);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta h2 {
  color: #fff;
  font-size: clamp(1.9rem, 1.4rem + 2.2vw, 2.9rem);
  margin-bottom: 16px;
}

.cta p {
  max-width: 46ch;
  margin-inline: auto;
  margin-bottom: 32px;
}

.cta-icon {
  border-radius: 20px;
  margin: 0 auto 26px;
  box-shadow: 0 12px 30px rgba(2, 20, 58, 0.5);
}

.cta-ipa {
  position: absolute;
  font-family: var(--font-ipa);
  color: rgba(185, 216, 246, 0.07);
  font-size: 6rem;
  font-weight: 700;
  pointer-events: none;
  user-select: none;
}

.cta-ipa-1 {
  left: -20px;
  bottom: -18px;
}

.cta-ipa-2 {
  right: 26px;
  top: -18px;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--navy-950);
  color: rgba(233, 241, 252, 0.62);
  padding-top: clamp(52px, 6vw, 76px);
  font-size: 0.94rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 36px;
  padding-bottom: clamp(40px, 5vw, 56px);
}

.footer-brand .brand {
  color: #fff;
  margin-bottom: 14px;
}

.footer-brand p {
  max-width: 30ch;
  font-size: 0.92rem;
}

.site-footer nav {
  display: grid;
  gap: 10px;
  align-content: start;
}

.site-footer h2 {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 4px;
}

.site-footer nav a {
  width: fit-content;
  color: rgba(233, 241, 252, 0.74);
  text-decoration: none;
  font-size: 0.94rem;
  transition: color 0.16s ease;
}

.site-footer nav a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  padding-block: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.81rem;
  color: rgba(233, 241, 252, 0.42);
}

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  /* full width / full width / full width / 3+3 / full width */
  .card-wide,
  .card-tall,
  .card-reverse,
  .card-dark {
    grid-column: span 6;
  }

  .card-narrow {
    grid-column: span 3;
  }

  .extras {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 84px;
  }

  .site-nav,
  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .hero-grid,
  .how-proof,
  .accent-grid,
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-grid {
    gap: 48px;
  }

  .hero-visual {
    order: -1;
  }

  .phone-shot-lead {
    width: min(280px, 66vw);
  }

  .float-accents {
    left: -2%;
  }

  .float-score {
    right: -2%;
  }

  .steps,
  .accent-pairs {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq-intro {
    position: static;
  }

  .how-proof-shot {
    order: -1;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .card,
  .card-wide,
  .card-tall,
  .card-reverse,
  .card-narrow {
    grid-column: span 6;
  }

  .card-wide,
  .card-tall {
    flex-direction: column;
    align-items: stretch;
  }

  .card-wide .card-body,
  .card-tall .card-body {
    margin-bottom: 20px;
  }

  .card-shot,
  .card-tall .card-shot-bleed {
    width: min(220px, 60%);
    margin-inline: auto;
    align-self: center;
  }

  .card-tall .card-shot-bleed {
    margin-bottom: -14%;
  }

  .plans {
    grid-template-columns: minmax(0, 1fr);
  }

  .demo-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .demo-score {
    text-align: left;
  }

  .accent-switch button {
    flex: 1;
  }

  .demo-actions .btn {
    flex: 1;
  }

  .key {
    min-width: 40px;
    height: 42px;
    font-size: 1rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .float-card {
    font-size: 0.76rem;
    padding: 10px 13px;
  }
}

@media (max-width: 520px) {
  .extras,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-stats {
    gap: 18px 28px;
  }

  .float-accents {
    top: 2%;
    left: -4%;
  }

  .float-score {
    bottom: 4%;
    right: -4%;
  }

  .keyboard {
    padding: 10px;
    gap: 5px;
  }

  .key {
    min-width: 36px;
    height: 40px;
    padding-inline: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .demo-tools,
  .keyboard,
  .demo-actions,
  .nav-toggle {
    display: none !important;
  }
}
