/* Fluency Studio website — one stylesheet, no scripts (the CSP blocks them).
   Calm, like the app since 1 Nov 2026: neutrals do the work, and a petal shows its colour
   only when it is picked. */

:root {
  color-scheme: light;
  --ink: #161616;
  --body: #48484d;
  --muted: #6b6b78;
  --paper: #fff;
  --surface: #f4f4f7;
  --line: #ececf1;
  --night: #0b0b0f;
  --night-raised: #17171c;
  --night-line: #2a2a31;
  --violet: #7b5cff;
  --violet-text: #5b3fe0;
  --blue: #1e9bff;
  --pink: #ff4d8d;
  --teal: #00c2b8;
  --measure: 1120px;
  --ease: cubic-bezier(.23, 1, .32, 1);
}

* { box-sizing: border-box }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-underline-offset: 4px }
img { display: block; max-width: 100%; height: auto }
h1, h2, h3 { text-wrap: balance }
p { text-wrap: pretty }

a:focus-visible, summary:focus-visible, label:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
  border-radius: 8px;
}

.wrap {
  width: min(var(--measure), calc(100% - 48px));
  margin-inline: auto;
}

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

.skip-link {
  position: fixed;
  top: 8px; left: 16px;
  z-index: 20;
  padding: 12px 20px;
  border-radius: 30px;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-160%);
}
.skip-link:focus { transform: none }

/* ---------- Brand + header ---------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -.01em;
  text-decoration: none;
  white-space: nowrap;
}
.brand img { width: 30px; height: 30px }

.site-header {
  position: absolute;
  top: 20px; left: 0; right: 0;
  z-index: 5;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
}
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px }
.nav-links a { text-decoration: none; color: var(--body) }
.nav-links a:hover { color: var(--ink) }
.nav-links .nav-pill {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
}
.nav-links .nav-pill:hover { color: #fff; background: #000 }

/* ---------- Shared type + buttons ---------- */

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: transform .2s var(--ease), background-color .2s var(--ease);
}
.button:hover { background: #000; transform: translateY(-1px) }

.small-note { color: var(--muted); font-size: 14px }

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

.hero {
  position: relative;
  padding: 148px 0 104px;
  overflow: hidden;
}

.hero-head { margin-bottom: 40px }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(46px, 7.4vw, 104px);
  font-weight: 650;
  line-height: .98;
  letter-spacing: -.045em;
}
.hero-copy {
  max-width: 30ch;
  margin: 28px 0 36px;
  color: var(--body);
  font-size: clamp(19px, 1.6vw, 22px);
  line-height: 1.5;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px }
.availability { margin: 0; color: var(--muted); font-size: 15px }

/* ---------- Mode tour: pick a petal, the phone follows (radio inputs, no script) ---------- */

.tour {
  position: relative;
  display: grid;
  grid-template-columns: 320px auto;
  gap: 36px;
  align-items: center;
  margin: 0;
  padding: 0;
  border: 0;
}
.tour-choice { position: absolute; opacity: 0; pointer-events: none }

.visual-step {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.bloom-picker {
  position: relative;
  width: min(100%, 320px);
  aspect-ratio: 1;
  margin: 8px auto 0;
}

.petal {
  --tint: rgb(0 0 0 / .035);
  --idle: var(--body);
  --rim: inset 0 0 0 1px rgb(0 0 0 / .08);
  position: absolute;
  top: calc(24% + var(--dy));
  left: calc(24% + var(--dx));
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 52%;
  aspect-ratio: 1;
  padding: var(--pad);
  border-radius: 50%;
  background: var(--tint);
  box-shadow: var(--rim);
  color: var(--idle);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
  user-select: none;
  transition: transform .45s var(--ease), background-color .35s var(--ease), color .35s var(--ease), box-shadow .45s var(--ease);
}
.petal svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round }
.petal:hover { transform: scale(1.03) }

/* Top, right, bottom, left — the app's Home order. Labels sit on the outer side
   (padding % resolves against the picker's width, so 13% is about a quarter of a petal). */
.petal-free-talk { --c: var(--violet); --solid: #6a4bf5; --on: #fff;    --text: #5b3fe0; --dx: 0%;   --dy: -25%; --pad: 0 0 13% }
.petal-grammar   { --c: var(--blue);   --solid: #1e9bff; --on: #161616; --text: #0a6fd6; --dx: 25%;  --dy: 0%;   --pad: 0 0 0 12% }
.petal-roast     { --c: var(--pink);   --solid: #ff4d8d; --on: #161616; --text: #d6246a; --dx: 0%;   --dy: 25%;  --pad: 13% 0 0 }
.petal-phrases   { --c: var(--teal);   --solid: #00c2b8; --on: #161616; --text: #00897f; --dx: -25%; --dy: 0%;   --pad: 0 12% 0 0 }

.bloom-center {
  position: absolute;
  top: 42%; left: 42%;
  z-index: 3;
  width: 16%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgb(0 0 0 / .03);
  pointer-events: none;
}

.mode-notes { display: grid; max-width: 340px; margin: 26px auto 0; text-align: center }
.mode-note {
  grid-area: 1 / 1;
  margin: 0;
  color: var(--body);
  font-size: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}
.mode-note strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 22px; font-weight: 650; letter-spacing: -.01em }

.tour-replay {
  display: block;
  width: max-content;
  margin: 16px auto 0;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
}
.tour-replay:hover { color: var(--ink); background: var(--surface) }

.tour-phone { display: grid; justify-items: center; gap: 16px }
.tour-phone .phone { width: min(280px, 74vw) }
.tour-caption { margin: 0; color: var(--muted); font-size: 13px; text-align: center }

/* Selected petal: solid fill, lifted, a soft ring like the app's ripple. */
#tour-free-talk:checked ~ .tour-picker .petal-free-talk,
#tour-grammar:checked ~ .tour-picker .petal-grammar,
#tour-roast:checked ~ .tour-picker .petal-roast,
#tour-phrases:checked ~ .tour-picker .petal-phrases {
  z-index: 2;
  background: var(--solid);
  color: var(--on);
  transform: scale(1.05);
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--c) 14%, transparent), 0 18px 40px -16px var(--c);
}

#tour-free-talk:checked ~ .tour-picker .note-free-talk,
#tour-grammar:checked ~ .tour-picker .note-grammar,
#tour-roast:checked ~ .tour-picker .note-roast,
#tour-phrases:checked ~ .tour-picker .note-phrases,
#tour-free-talk:checked ~ .tour-phone .shot-free-talk,
#tour-grammar:checked ~ .tour-phone .shot-grammar,
#tour-roast:checked ~ .tour-phone .shot-roast,
#tour-phrases:checked ~ .tour-phone .shot-phrases {
  opacity: 1;
  visibility: visible;
}

#tour-auto:not(:checked) ~ .tour-picker .tour-replay { visibility: visible }
#tour-auto:checked ~ .tour-picker .tour-replay { visibility: hidden }

.tour-choice:focus-visible ~ .tour-picker .bloom-picker { outline: 3px solid var(--ink); outline-offset: 10px; border-radius: 50% }

/* Auto tour (the default): each mode in turn, 4s apiece. Stops as soon as a petal is picked. */
#tour-auto:checked ~ .tour-picker .petal { animation: tour-petal 16s infinite }
#tour-auto:checked ~ .tour-picker .mode-note,
#tour-auto:checked ~ .tour-phone .shot { animation: tour-show 16s infinite }
/* Same specificity as the rules above and later in the file, so these delays aren't reset by the shorthand. */
#tour-auto:checked ~ .tour-picker .petal-grammar, #tour-auto:checked ~ .tour-picker .note-grammar, #tour-auto:checked ~ .tour-phone .shot-grammar { animation-delay: -12s }
#tour-auto:checked ~ .tour-picker .petal-roast,   #tour-auto:checked ~ .tour-picker .note-roast,   #tour-auto:checked ~ .tour-phone .shot-roast   { animation-delay: -8s }
#tour-auto:checked ~ .tour-picker .petal-phrases, #tour-auto:checked ~ .tour-picker .note-phrases, #tour-auto:checked ~ .tour-phone .shot-phrases { animation-delay: -4s }

@keyframes tour-show {
  0%, 24% { opacity: 1; visibility: visible }
  25%, 99% { opacity: 0; visibility: hidden }
  100% { opacity: 1; visibility: visible }
}
@keyframes tour-petal {
  0%, 24% {
    z-index: 2;
    background: var(--solid);
    color: var(--on);
    transform: scale(1.05);
    box-shadow: 0 0 0 10px color-mix(in srgb, var(--c) 14%, transparent), 0 18px 40px -16px var(--c);
  }
  25%, 99% { z-index: 1; background: var(--tint); color: var(--idle); transform: scale(1); box-shadow: var(--rim) }
  100% {
    z-index: 2;
    background: var(--solid);
    color: var(--on);
    transform: scale(1.05);
    box-shadow: 0 0 0 10px color-mix(in srgb, var(--c) 14%, transparent), 0 18px 40px -16px var(--c);
  }
}

/* ---------- Phone frame ---------- */

.phone {
  position: relative;
  width: min(300px, 74vw);
  aspect-ratio: 603 / 1311;
  padding: 9px;
  border-radius: 50px;
  background: var(--night);
  box-shadow:
    0 0 0 1px rgb(255 255 255 / .06) inset,
    0 40px 80px -30px rgb(40 24 120 / .35),
    0 16px 32px -20px rgb(0 0 0 / .3);
}
.screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 41px;
  background: var(--paper);
}
.screen img { width: 100%; height: 100% ; object-fit: cover }
.screen .shot {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s var(--ease), visibility .45s;
}

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

.section { padding: 112px 0 }
.intro { max-width: 680px; margin-bottom: 72px }
.intro h2, .more h2, .closing h2 {
  margin: 0;
  font-size: clamp(40px, 5.4vw, 64px);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -.04em;
}
.intro p { margin: 22px 0 0; color: var(--body); font-size: 20px }

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
  margin-top: 96px;
}
.feature-row.reverse .feature-art { order: 2 }
.feature-art {
  display: grid;
  place-items: center;
  padding: 56px 24px;
  border-radius: 40px;
  background: var(--surface);
}
.feature-art .phone { width: min(270px, 66vw) }

.feature-copy { max-width: 460px }
.feature-copy h3 {
  margin: 0 0 20px;
  font-size: clamp(32px, 3.6vw, 44px);
  font-weight: 650;
  line-height: 1.06;
  letter-spacing: -.035em;
}
.feature-copy p { margin: 0 0 14px; color: var(--body); font-size: 18px }
.feature-copy .small-note { margin-top: 22px; font-size: 14px }

.more { background: var(--surface) }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 56px;
}
.mini-feature {
  padding: 28px 24px 30px;
  border-radius: 28px;
  background: var(--surface);
}
.mini-feature .dot {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
}
.mini-feature svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round }
.mini-feature h3 { margin: 0 0 8px; font-size: 19px; font-weight: 650; letter-spacing: -.01em; line-height: 1.25 }
.mini-feature p { margin: 0; color: var(--body); font-size: 15.5px }
.section-title {
  margin: 0;
  font-size: clamp(40px, 5.4vw, 64px);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -.04em;
}
.section-lead { max-width: 560px; margin: 22px 0 0; color: var(--body); font-size: 20px }

/* ---------- Live or Lite ---------- */

.ways-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 56px;
}
.way-card { padding: 36px 32px; border-radius: 28px; background: var(--paper) }
.way-card h3 { margin: 0; font-size: 32px; font-weight: 650; letter-spacing: -.03em; line-height: 1.1 }
.way-card .rate { margin: 6px 0 18px; color: var(--muted); font-size: 16px; font-weight: 600 }
.way-card p { margin: 0 0 14px; color: var(--body) }
.way-card ul { margin: 0; padding-left: 20px; color: var(--body) }
.way-card li { margin: 6px 0 }

/* ---------- Credits ---------- */

.packs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 56px 0 20px;
}
.pack { padding: 32px 28px; border-radius: 28px; background: var(--paper) }
.pack h3 { margin: 0; font-size: 26px; font-weight: 650; letter-spacing: -.02em }
.pack .price { margin: 4px 0 14px; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums }
.pack p { margin: 0; color: var(--body); font-size: 15.5px }

/* ---------- Closing (dark, like the app's Welcome) ---------- */

.closing {
  padding: 0 0 112px;
}
.closing-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) auto;
  gap: 48px;
  align-items: center;
  padding: 72px 80px 0;
  overflow: hidden;
  border-radius: 44px;
  background: var(--night);
  color: #f2f2f5;
}
.closing-copy { padding-bottom: 72px }
.closing .eyebrow { color: #a1a1aa }
.closing-copy > p { margin: 22px 0 34px; color: #c7c7cf; font-size: 20px }
/* The phone rises out of the card's bottom edge; the card clips the rest. */
.closing-phone { align-self: end; height: 470px }
.closing .phone {
  width: min(280px, 64vw);
  background: #000;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .1), 0 40px 90px -20px rgb(123 92 255 / .45);
}

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 10px 26px 10px 20px;
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  transition: transform .2s var(--ease);
}
.store-button:hover { transform: translateY(-1px) }
.store-button svg { width: 24px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round }
.store-button small { display: block; font-size: 12px; line-height: 1.2; color: var(--muted) }
.store-button strong { display: block; font-size: 19px; line-height: 1.2; letter-spacing: -.01em }
.download-status { margin: 14px 0 0; color: #a1a1aa; font-size: 14px }

/* ---------- Footer ---------- */

.footer { padding: 56px 0 64px; border-top: 1px solid var(--line) }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px }
.footer-nav a { color: var(--body); text-decoration: none }
.footer-nav a:hover { color: var(--ink); text-decoration: underline }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 32px; color: var(--muted); font-size: 14px }

/* ---------- Legal + support pages ---------- */

.legal-header { padding: 24px 0; border-bottom: 1px solid var(--line) }
.legal-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px }
.legal-header .back { color: var(--body); font-size: 15px; text-decoration: none }
.legal-header .back:hover { color: var(--ink) }

.legal-page { width: min(760px, calc(100% - 48px)); margin: 0 auto; padding: 64px 0 96px }
.legal-page h1 { margin: 0 0 10px; font-size: clamp(40px, 6vw, 56px); font-weight: 650; line-height: 1.05; letter-spacing: -.04em }
.legal-page .version { margin: 0 0 32px; color: var(--muted); font-size: 15px }
.legal-page h2 { margin: 52px 0 12px; font-size: 24px; font-weight: 650; letter-spacing: -.02em; line-height: 1.25; scroll-margin-top: 24px }
.legal-page p, .legal-page li { color: var(--body) }
.legal-page strong { color: var(--ink); font-weight: 600 }
.legal-page ul, .legal-page ol { padding-left: 22px }
.legal-page li { margin: 10px 0; padding-left: 4px }
.legal-page a { color: var(--ink) }

.draft-banner {
  margin: 0 0 28px;
  padding: 14px 18px;
  border-radius: 16px;
  background: #fff7e6;
  color: #7a4b00;
  font-size: 15px;
}

.note {
  margin: 28px 0 8px;
  padding: 22px 24px;
  border-radius: 20px;
  background: var(--surface);
  color: var(--body);
}
.note strong { display: block; margin-bottom: 6px; color: var(--ink) }

.legal-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px }
.legal-toc a {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--body) !important;
  font-size: 14px;
  text-decoration: none;
}
.legal-toc a:hover { background: var(--line); color: var(--ink) !important }

.legal-page footer { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px }

.simple-page { text-align: center; padding-top: 96px }
.simple-page img { width: 88px; height: 88px; margin: 0 auto 28px }
.simple-page p { max-width: 44ch; margin-inline: auto }
.simple-page .button { margin-top: 24px; color: #fff }

/* ---------- Responsive ---------- */

@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; gap: 64px }
  .hero-text { max-width: 640px }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .closing-card { padding: 64px 48px 0 }
}

@media (max-width: 760px) {
  body { font-size: 16px }
  .wrap { width: calc(100% - 32px) }
  .desktop-link { display: none }
  .nav-links { gap: 12px }
  .hero { padding: 112px 0 72px }
  .hero-copy { margin: 22px 0 28px }
  .tour { grid-template-columns: 1fr; gap: 36px }
  .tour-picker { order: 1 }
  .tour-phone { order: 2 }
  .bloom-picker { width: min(100%, 300px) }
  .petal { font-size: 14px }
  .section { padding: 80px 0 }
  .intro { margin-bottom: 24px }
  .feature-row { grid-template-columns: 1fr; gap: 32px; margin-top: 64px }
  .feature-row.reverse .feature-art { order: 0 }
  .feature-art { padding: 40px 16px; border-radius: 32px }
  .feature-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 40px }
  .ways-grid, .packs { grid-template-columns: 1fr; gap: 14px; margin-top: 40px }
  .closing { padding-bottom: 80px }
  .closing-card { grid-template-columns: 1fr; padding: 48px 24px 0; border-radius: 32px; text-align: center }
  .closing-copy { padding-bottom: 0 }
  .closing-phone { justify-self: center; height: 380px }
  .closing .phone { width: 240px }
  .legal-page { width: calc(100% - 32px); padding: 44px 0 72px }
  .legal-page h2 { margin-top: 40px }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  *, *::before, *::after { transition-duration: .01ms !important }
  /* No auto tour: hold Free talk until a petal is picked. */
  #tour-auto:checked ~ .tour-picker .petal,
  #tour-auto:checked ~ .tour-picker .mode-note,
  #tour-auto:checked ~ .tour-phone .shot { animation: none }
  #tour-auto:checked ~ .tour-picker .petal-free-talk {
    z-index: 2;
    background: var(--solid);
    color: var(--on);
    transform: scale(1.05);
  }
  #tour-auto:checked ~ .tour-picker .note-free-talk,
  #tour-auto:checked ~ .tour-phone .shot-free-talk { opacity: 1; visibility: visible }
}
