/* Mira — landing page.
 * Phone first (most visitors come from Instagram / TikTok on an iPhone), then wider
 * layouts from 760px and 1040px. Colors are the app's (Design/Theme.swift): coral for the
 * brand and for the word being said, on a warm off-white. Light only.
 * No web fonts: the system's San Francisco on iPhone, and nothing to wait for in an in-app
 * browser. */

:root {
  --bg: #F8F6F4;
  --bg-2: #F1EDEA;
  --card: #FFFFFF;
  --ink: #1A1614;
  --ink-2: #5E5752;
  --ink-3: #8F8781;
  --line: #E7E1DC;
  --accent: #F2522F;        /* the brand: big type, lines, dots */
  --accent-ink: #C73E1D;    /* coral that reads as text on the light page (4.7:1) */
  --accent-fill: #D2401D;   /* buttons with white text (4.6:1) */
  --accent-soft: #FFE9E2;
  --spoken: #F2522F;        /* the word being said, as in the app */
  --bezel: #1F1A17;
  --shadow: 0 24px 60px -24px rgba(160, 52, 22, .32), 0 8px 20px -12px rgba(26, 22, 20, .18);
  --radius: 22px;
  --gutter: 20px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: var(--accent-ink); }
strong { color: var(--ink); }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 760px; }
.center { text-align: center; }

.h2 {
  margin: 0 0 14px;
  font-size: clamp(1.85rem, 7vw, 2.75rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.h3 { margin: 0 0 8px; font-size: 1.55rem; line-height: 1.25; font-weight: 800; letter-spacing: -.01em; }
.sub { margin: 0 0 28px; color: var(--ink-2); font-size: 1.05rem; line-height: 1.7; text-wrap: pretty; }
.sub.center { max-width: 600px; margin-left: auto; margin-right: auto; }
.accent { color: var(--accent); }

section { padding: 72px 0; }
@media (min-width: 760px) { section { padding: 104px 0; } }

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

.top {
  position: sticky; top: 0; z-index: 10;
  padding-top: env(safe-area-inset-top);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) { .top { background: var(--bg); } }
.top__in { max-width: 1080px; margin: 0 auto; padding: 10px var(--gutter); display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: -.01em; }
.brand img { border-radius: 9px; }
.top__cta {
  padding: 9px 16px; border-radius: 999px;
  background: var(--accent-fill); color: #fff; text-decoration: none;
  font-size: .9rem; font-weight: 700;
  box-shadow: 0 6px 18px -6px rgba(210, 64, 29, .55);
}
.top__cta:active { transform: scale(.97); }

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

.hero { padding: 36px 0 24px; overflow: hidden; }
.hero__in { display: grid; gap: 8px; align-items: center; }
.hero__copy { text-align: center; }
.eyebrow {
  display: inline-block; margin: 0 0 14px; padding: 5px 14px;
  border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink);
  font-size: .85rem; font-weight: 700; letter-spacing: .02em;
}
.hero__title {
  margin: 0 0 18px;
  font-size: clamp(2.3rem, 11vw, 3.9rem);
  line-height: 1.04; font-weight: 900; letter-spacing: -.03em;
  text-wrap: balance;
}
.hero__title .accent { display: block; }
.lead { margin: 0 auto 26px; max-width: 28em; color: var(--ink-2); font-size: 1.1rem; line-height: 1.65; text-wrap: pretty; }

.get { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.badge { display: inline-block; line-height: 0; border-radius: 12px; transition: transform .15s ease; }
.badge img { height: 56px; width: auto; }
.badge:active { transform: scale(.97); }
.get__note { margin: 0; color: var(--ink-3); font-size: .86rem; line-height: 1.5; }

.hero__visual { position: relative; width: min(86vw, 420px); margin: 10px auto 0; }
.glow {
  position: absolute; inset: 12% 4% 6%;
  background: radial-gradient(closest-side, rgba(255, 122, 80, .42), rgba(255, 122, 80, 0));
  filter: blur(10px);
}
.screen--hero { position: relative; width: min(66vw, 300px); }
.demo-wrap { margin: 0 auto; width: min(68vw, 300px); }
.demo { width: 100%; height: auto; aspect-ratio: 2 / 3; }
.hero__mascot {
  position: absolute; right: -7%; top: 8%; width: 34%; height: auto;
  filter: drop-shadow(0 10px 18px rgba(160, 52, 22, .25));
  animation: bob 4.8s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(2deg); } }

@media (min-width: 1040px) {
  .hero { padding: 64px 0 40px; }
  .hero__in { grid-template-columns: 1.2fr .8fr; gap: 32px; }
  .hero__copy { text-align: left; }
  .lead { margin-left: 0; }
  .get { align-items: flex-start; }
  .hero__visual { margin: 0 0 0 auto; width: 420px; }
}

/* ---------------------------------------------------------------- Subtitle ribbon */

.ribbon { padding: 34px 0 30px; background: #14110F; color: #F7F4F2; text-align: center; }
.karaoke {
  font-size: clamp(1.3rem, 5.8vw, 2.15rem); font-weight: 800; line-height: 1.6;
  letter-spacing: -.005em;
}
.karaoke span {
  display: inline-block; padding: 0 .16em; margin: 0 .02em .12em;
  box-shadow: inset 0 -2px 0 rgba(255, 255, 255, .24);
  transition: background-color .18s ease, color .18s ease, border-radius .18s ease;
}
.karaoke span.on { background: var(--spoken); color: #fff; border-radius: .35em; box-shadow: none; }
.karaoke__en { margin: 8px 0 0; color: #C4BCB6; font-size: 1rem; }
.ribbon__note { margin: 14px 0 0; color: #8F8781; font-size: .84rem; }

/* ---------------------------------------------------------------- Steps */

.steps .h2 { text-align: center; margin-bottom: 40px; }
.step { display: grid; gap: 26px; align-items: center; margin: 0 auto 64px; max-width: 920px; }
.step:last-child { margin-bottom: 0; }
.step__text { text-align: center; }
.step__text p { margin: 0 auto; max-width: 26em; color: var(--ink-2); line-height: 1.7; text-wrap: pretty; }
.step__num {
  margin: 0 0 4px !important; color: var(--accent-ink) !important;
  font-size: .95rem; font-weight: 800; letter-spacing: .14em;
}
.form { white-space: nowrap; font-weight: 700; color: var(--ink); }
.nowrap { white-space: nowrap; }
@media (min-width: 760px) {
  .step { grid-template-columns: 1fr 1fr; gap: 56px; }
  .step__text { text-align: left; }
  .step__text p { margin: 0; }
  .step--flip .step__text { order: 2; }
}

/* A screenshot in a thin bezel. */
.screen {
  margin: 0 auto; width: min(68vw, 300px);
  border-radius: 34px; padding: 7px; background: var(--bezel);
  box-shadow: var(--shadow);
}
.screen img { width: 100%; height: auto; border-radius: 28px; }

/* ---------------------------------------------------------------- Placeholder screens
 * Until the English build's screenshots exist (TODO.md): a drawn phone screen in the
 * app's look. Sizes follow the phone's width (container query units), so each one is
 * the same picture at any size. Swap the whole .mock for an <img> when the shot lands. */

.mock {
  container-type: inline-size;
  position: relative; overflow: hidden;
  aspect-ratio: 600 / 1128; border-radius: 28px;
  background: var(--bg);
  font-size: 4.4cqw; line-height: 1.35; color: var(--ink);
  text-align: left;
}
.mock--tall { aspect-ratio: 600 / 1225; }
.mock__status { display: flex; justify-content: space-between; padding: 3.2cqw 7cqw 0; font-size: 3.6cqw; font-weight: 700; }
.mock__video {
  position: relative; margin: 3cqw 0 0; aspect-ratio: 1 / 1;
  background: radial-gradient(120% 90% at 50% 20%, #FF9A6B 0%, #F2522F 45%, #7A2412 100%);
  display: grid; place-items: center;
}
.mock__video img { width: 64%; height: auto; filter: drop-shadow(0 4cqw 5cqw rgba(60, 16, 6, .35)); }
/* The "video": one big emoji for what the clip is about. */
.mock__scene { font-size: 34cqw; line-height: 1; filter: drop-shadow(0 4cqw 6cqw rgba(60, 16, 6, .35)); }
.mock__flag {
  position: absolute; left: 4cqw; top: 4cqw; padding: .8cqw 2.6cqw; border-radius: 99px;
  background: rgba(0, 0, 0, .35); color: #fff; font-size: 3.2cqw; font-weight: 700;
}
.mock__card {
  margin: 3.5cqw 3.5cqw 0; padding: 4cqw 4.5cqw; border-radius: 4.5cqw;
  background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 2cqw 6cqw -3cqw rgba(26, 22, 20, .2);
}
.mock__es { font-size: 5.4cqw; font-weight: 800; letter-spacing: -.01em; line-height: 1.45; }
.mock__es b {
  padding: 0 1cqw; border-radius: 1.6cqw; background: var(--spoken); color: #fff; font-weight: 800;
}
.mock__es u { text-decoration: none; box-shadow: inset 0 -.8cqw 0 rgba(242, 82, 47, .35); }
.mock__en { margin-top: 1.6cqw; color: var(--ink-2); font-size: 4cqw; }
.mock__card--dim { opacity: .55; }
.mock__tabs { display: flex; justify-content: center; gap: 6cqw; margin-top: 3cqw; font-size: 3.8cqw; font-weight: 800; color: var(--ink-3); }
.mock__tabs span:first-child { color: var(--ink); box-shadow: inset 0 -.8cqw 0 var(--accent); padding-bottom: 1cqw; }

/* The word card over a dimmed feed. */
.mock__scrim { position: absolute; inset: 0; background: rgba(20, 17, 15, .38); }
.mock__word {
  position: absolute; left: 5cqw; right: 5cqw; bottom: 9cqw;
  padding: 5cqw; border-radius: 6cqw; background: var(--card);
  box-shadow: 0 5cqw 12cqw -4cqw rgba(20, 17, 15, .5);
}
.mock__head { display: flex; align-items: baseline; gap: 2.4cqw; flex-wrap: wrap; }
.mock__said { color: var(--ink-3); font-size: 5cqw; font-weight: 700; }
.mock__arrow { color: var(--ink-3); font-size: 4.4cqw; }
.mock__lemma { font-size: 8.6cqw; font-weight: 900; letter-spacing: -.02em; }
.mock__pos { margin-top: 1.4cqw; color: var(--accent-ink); font-size: 3.7cqw; font-weight: 800; letter-spacing: .02em; }
.mock__mean { margin-top: 2.6cqw; font-size: 5.4cqw; font-weight: 700; }
.mock__ctx { margin-top: 2.4cqw; padding: 3cqw 3.4cqw; border-radius: 3.6cqw; background: var(--bg-2); color: var(--ink-2); font-size: 3.8cqw; }
.mock__btns { display: flex; gap: 2.6cqw; margin-top: 4cqw; }
.mock__btn {
  flex: 1; padding: 3cqw 0; border-radius: 99px; text-align: center; font-size: 4cqw; font-weight: 800;
  background: var(--bg-2); color: var(--ink);
}
.mock__btn--go { background: var(--accent-fill); color: #fff; }

/* The review card. */
.mock__title { padding: 4cqw 6cqw 0; font-size: 6.6cqw; font-weight: 900; letter-spacing: -.02em; }
.mock__meta { padding: .6cqw 6cqw 0; color: var(--ink-3); font-size: 3.6cqw; font-weight: 600; }
.mock__flash {
  margin: 4cqw 5cqw 0; border-radius: 6cqw; overflow: hidden; background: var(--card);
  border: 1px solid var(--line); box-shadow: 0 3cqw 8cqw -4cqw rgba(26, 22, 20, .25);
}
.mock__flash .mock__video { margin: 0; aspect-ratio: 1 / 1; }
.mock__flash .mock__scene { font-size: 30cqw; }
.mock__progress { margin: 2.6cqw 6cqw 0; height: 1.6cqw; border-radius: 99px; background: var(--line); overflow: hidden; }
.mock__progress i { display: block; width: 25%; height: 100%; background: var(--accent); }
.mock__flash-body { padding: 4.6cqw 5cqw 5cqw; text-align: center; }
.mock__flash-body .mock__lemma { font-size: 9.6cqw; }
.mock__flash-body .mock__mean { color: var(--ink); }
.mock__flash-body .mock__ctx { text-align: left; }

/* The word list. */
.mock__review {
  margin: 4cqw 5cqw 0; padding: 4.6cqw 5cqw; border-radius: 5cqw;
  background: var(--accent-fill); color: #fff;
  display: flex; align-items: center; justify-content: space-between;
}
.mock__review b { font-size: 5.2cqw; }
.mock__review span { padding: 1.6cqw 3.6cqw; border-radius: 99px; background: rgba(255, 255, 255, .22); font-size: 3.8cqw; font-weight: 800; }
.mock__list { margin: 4cqw 5cqw 0; border-radius: 5cqw; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.mock__row { display: flex; align-items: baseline; justify-content: space-between; gap: 3cqw; padding: 3.6cqw 4.6cqw; border-top: 1px solid var(--line); }
.mock__row:first-child { border-top: 0; }
.mock__row b { font-size: 4.8cqw; font-weight: 800; }
.mock__row span { color: var(--ink-2); font-size: 3.8cqw; text-align: right; }

/* ---------------------------------------------------------------- Why */

.why { background: var(--bg-2); }
.why__in { display: grid; gap: 36px; align-items: center; }
.why__copy { text-align: center; }
.compare { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; text-align: left; }
.compare li {
  display: grid; grid-template-columns: 28px 1fr; gap: 4px 10px; align-items: center;
  padding: 16px 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--line);
}
.compare li > span:nth-child(2) { color: var(--ink-3); font-size: .93rem; text-decoration: line-through; text-decoration-color: rgba(143, 135, 129, .5); }
.compare li > span:nth-child(4) { font-weight: 700; }
.compare .x, .compare .o {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-size: .9rem; font-weight: 800;
}
.compare .x { background: rgba(143, 135, 129, .16); color: var(--ink-3); }
.compare .o { background: var(--accent-fill); color: #fff; }

.chart { margin: 0 auto; width: 100%; max-width: 440px; padding: 20px 18px 14px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart__axis { stroke: var(--line); stroke-width: 2; }
.chart__book { fill: none; stroke: var(--ink-3); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 2 9; }
.chart__mira { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; }
.chart__dot { fill: var(--accent); }
.chart__lbl { fill: var(--ink-3); font-size: 13px; font-weight: 700; }
.chart__lbl--mira { fill: var(--accent-ink); font-size: 15px; font-weight: 800; }
.chart__axis-lbl { fill: var(--ink-3); font-size: 11px; }
.chart.in .chart__mira { stroke-dasharray: 420; stroke-dashoffset: 420; animation: draw 1.6s .2s cubic-bezier(.6, .1, .2, 1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (min-width: 900px) {
  .why__in { grid-template-columns: 1.1fr .9fr; gap: 64px; }
  .why__copy { text-align: left; }
}

/* ---------------------------------------------------------------- Genres */

.genres { text-align: center; }
.chips { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 760px; }
.chips li {
  padding: 9px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line);
  font-size: .95rem; font-weight: 600; white-space: nowrap;
}
.genres__note { margin: 26px auto 0; max-width: 34em; color: var(--ink-2); font-size: .97rem; text-wrap: balance; }
.flags { margin: 18px 0 0; font-size: 1.6rem; letter-spacing: .12em; }

/* ---------------------------------------------------------------- Features */

.features { background: var(--bg-2); }
.features__in { display: grid; gap: 44px; align-items: center; }
.features .h2 { text-align: center; margin-bottom: 30px; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.feat { padding: 20px 20px 18px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.feat svg {
  width: 40px; height: 40px; padding: 8px; margin-bottom: 10px; border-radius: 12px;
  background: var(--accent-soft); stroke: var(--accent-ink); fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.feat h3 { margin: 0 0 4px; font-size: 1.08rem; font-weight: 800; letter-spacing: -.01em; }
.feat p { margin: 0; color: var(--ink-2); font-size: .95rem; line-height: 1.6; }
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) {
  .features__in { grid-template-columns: 1fr 300px; gap: 64px; }
  .features .h2 { text-align: left; }
}

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

.faq .h2 { margin-bottom: 26px; }
details {
  border-radius: 18px; background: var(--card); border: 1px solid var(--line);
  margin-bottom: 12px; overflow: hidden;
}
summary {
  list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; position: relative;
  font-weight: 700; line-height: 1.5;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px;
  border-right: 2.5px solid var(--ink-3); border-bottom: 2.5px solid var(--ink-3);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details p { margin: 0; padding: 0 20px 18px; color: var(--ink-2); font-size: .97rem; line-height: 1.7; }
.faq__more { margin: 22px 0 0; text-align: center; color: var(--ink-2); font-size: .97rem; }

/* ---------------------------------------------------------------- Final */

.final { padding-top: 40px; text-align: center; }
.final__in { display: flex; flex-direction: column; align-items: center; }
.final__mascot { width: 170px; height: auto; margin-bottom: 8px; filter: drop-shadow(0 12px 20px rgba(160, 52, 22, .22)); }
.final .h2 { margin-bottom: 24px; max-width: 16em; }
.final .get__note { margin-top: 10px; }

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

.foot { padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.foot__in { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.foot__in .brand { font-size: 1.05rem; }
.foot__in .brand img { border-radius: 7px; }
.foot__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; font-size: .92rem; }
.foot__nav a { color: var(--ink-2); text-decoration: none; }
.foot__nav a:hover { color: var(--accent-ink); }
.foot__fine { margin: 0; max-width: 640px; color: var(--ink-3); font-size: .78rem; line-height: 1.7; }

/* ---------------------------------------------------------------- Motion */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
html.no-js .reveal, html:not(.js) .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__mascot { animation: none; }
  .chart.in .chart__mira { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; }
}

:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
