@font-face {
  font-family: "Prompt";
  src: url("fonts/prompt-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Prompt";
  src: url("fonts/prompt-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* Colors come from the app itself: its window, its accent, and the three marks it
   puts on your English (said wrong, corrected, a sound to work on). */
:root {
  --ground: #1d1b1a;
  --panel: #252120;
  --raised: #302e2f;
  --card: #3b3b3b;
  --ink: #f2f2f2;
  --ink-2: #b9b6b3;
  --ink-3: #8c8986;
  --blue: #5f8bff;
  --blue-soft: #8fb0ff;
  --wrong: #ff8a80;
  --right: #3ddc97;
  --sound: #ffc46b;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --max: 1120px;
  --display: "Prompt", "SF Pro Display", -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  --text: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
:focus-visible { outline: 2px solid var(--blue-soft); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--display); margin: 0; }
h2 { font-weight: 500; font-size: clamp(28px, 3.5vw, 42px); line-height: 1.14; letter-spacing: -0.015em; max-width: 20em; text-wrap: balance; }
h3 { font-weight: 500; font-size: 20px; line-height: 1.3; }
p { margin: 0; }
section { padding: 104px 0 0; }
section p { color: var(--ink-2); max-width: 34em; }
.sub { font-size: 19px; margin-top: 16px; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--ground) 86%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 600; font-size: 21px; text-decoration: none; letter-spacing: -0.01em; }
.brand svg { width: 22px; height: 22px; color: var(--blue); }
.brand.small { font-size: 17px; }
.brand.small svg { width: 18px; height: 18px; }
.nav { display: flex; align-items: center; gap: 26px; font-size: 15px; color: var(--ink-2); }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--ink); }
.stage-chip { color: var(--ink); border: 1px solid var(--line-strong); border-radius: 999px; padding: 5px 13px; font-size: 14px; }

/* ---------- hero ---------- */
.hero { padding: 64px 0 0; }
h1 {
  font-weight: 600;
  font-size: clamp(40px, 6.6vw, 84px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  max-width: 12.5em;
  text-wrap: balance;
}
.nb { white-space: nowrap; }
/* The headline ends the way a dictation does in the app: with the feedback dot. */
.h1-dot {
  display: inline-block;
  width: 0.2em; height: 0.2em;
  margin-left: 0.14em;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 0.08em rgba(95, 139, 255, 0.28);
}
.lead { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 35em; margin-top: 28px; }

/* ---------- demo ---------- */
.demo {
  margin-top: 56px;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
}
.demo-controls { padding: 32px 30px; display: flex; flex-direction: column; gap: 34px; }
.demo fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.demo legend { padding: 0; margin-bottom: 12px; font-family: var(--display); font-weight: 500; font-size: 17px; }

.says { display: grid; gap: 8px; }
.say {
  display: grid; grid-template-columns: 18px 1fr; gap: 12px; align-items: start;
  text-align: left; width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 15px; line-height: 1.45;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.say:hover { background: rgba(255, 255, 255, 0.04); color: var(--ink); }
.say svg { width: 18px; height: 18px; margin-top: 2px; color: var(--ink-3); }
.say[aria-checked="true"] { background: var(--raised); border-color: var(--line-strong); color: var(--ink); }
.say[aria-checked="true"] svg { color: var(--blue); }

.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--ground); border: 1px solid var(--line); max-width: 100%; }
.seg button { padding: 7px 14px; border-radius: 999px; font-size: 14.5px; color: var(--ink-2); white-space: nowrap; }
.seg button:hover { color: var(--ink); }
.seg button[aria-checked="true"] { background: var(--card); color: var(--ink); }
.mode-note { margin-top: 12px; font-size: 14.5px; line-height: 1.5; color: var(--ink-3); min-height: 3em; }

.legend { margin: auto 0 0; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); }
.legend dt { font-family: var(--display); font-weight: 500; font-size: 17px; color: var(--ink); margin-bottom: 10px; }
.legend dd { margin: 0; display: flex; align-items: center; gap: 10px; padding: 3px 0; }
.legend .mark { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }

.demo-stage {
  position: relative;
  padding: 32px 30px 76px;
  background:
    radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.2px) 0 0 / 18px 18px,
    #1a1817;
  border-left: 1px solid var(--line);
}

/* The other app: deliberately not SpeakEase's own look. */
.win { background: #f5f4f1; color: #1c1b1a; border-radius: 14px; min-height: 560px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }
.win-bar { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-bottom: 1px solid rgba(0, 0, 0, 0.08); font-size: 13px; color: #6f6c68; }
.win-bar i { width: 11px; height: 11px; border-radius: 50%; background: #d8d5d0; }
.win-bar span { margin-left: 8px; }
.win-body { padding: 18px 18px 20px; }
.msg { display: grid; grid-template-columns: 32px 1fr; gap: 10px; font-size: 15px; line-height: 1.45; }
.msg strong { font-weight: 600; font-size: 14px; }
.msg p { color: #3b3936; max-width: none; }
.avatar { width: 32px; height: 32px; border-radius: 9px; background: #d9c7f0; color: #4a3570; font-weight: 600; font-size: 14px; display: grid; place-items: center; }

.composer {
  margin-top: 18px;
  min-height: 78px;
  padding: 13px 15px;
  background: #fff;
  border: 1px solid #d9d6d1;
  border-radius: 12px;
  font-size: 16px; line-height: 1.5;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.caret { display: inline-block; width: 1.5px; height: 1.1em; margin-left: 1px; vertical-align: -0.18em; background: #1c1b1a; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.tail { white-space: nowrap; }
#inserted.fresh, #inserted-last.fresh { animation: landed 0.5s ease; }
@keyframes landed { from { background: rgba(95, 139, 255, 0.28); } to { background: transparent; } }

.fb-dot {
  display: none;
  min-width: 13px; height: 13px;
  margin-left: 7px;
  border-radius: 999px;
  vertical-align: -0.05em;
  background: #9b9995;
  color: #fff; font-size: 11px; font-weight: 600; line-height: 19px; text-align: center;
}
.demo[data-phase="checking"] .fb-dot,
.demo[data-phase="partial"] .fb-dot,
.demo[data-phase="done"] .fb-dot { display: inline-block; }
.demo[data-phase="checking"] .fb-dot { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.4; } }
.fb-dot.fix, .fb-dot.pron, .fb-dot.ok { min-width: 19px; height: 19px; padding: 0 5px; vertical-align: -0.2em; }
.fb-dot.fix { background: #e5534b; }
.fb-dot.pron { background: #d9942a; }
.fb-dot.ok { background: #2fb57c; }

/* The feedback card, drawn the way the app draws it. */
.coach {
  margin: 12px 0 0 auto;
  width: min(100%, 400px);
  padding: 11px 15px 12px;
  background: rgba(20, 19, 18, 0.96);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  font-size: 13.5px; line-height: 1.45;
  animation: coach-in 0.2s ease;
}
@keyframes coach-in { from { opacity: 0; transform: translateY(-5px); } }
.coach-head { font-size: 12px; color: #a9a9a9; margin-bottom: 6px; }
.coach-rec { display: flex; align-items: center; gap: 9px; padding: 2px 0 10px; margin-bottom: 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.coach-rec-btn { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: #f2f2f2; color: #111; display: grid; place-items: center; padding-left: 1px; }
.coach-rec-btn svg { width: 12px; height: 12px; }
.coach-rec-body { flex: 1; min-width: 0; }
.coach-rec-said { font-size: 12.5px; line-height: 1.35; color: #d6d6d6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.coach-rec-bar { height: 2px; margin-top: 5px; border-radius: 1px; background: rgba(255, 255, 255, 0.12); }
.coach-rec-len { flex-shrink: 0; font-size: 11px; color: #8a8a8a; font-variant-numeric: tabular-nums; }

.coach-item { padding: 7px 0; }
.coach-item + .coach-item { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.coach-line { display: flex; align-items: baseline; gap: 9px; }
.coach-line > .mark { flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; transform: translateY(-1px); }
.mark.fix { background: var(--wrong); }
.mark.pron { background: var(--sound); }
.mark.ok { background: var(--right); }
.coach-from { color: var(--wrong); text-decoration: line-through; text-decoration-thickness: 1px; }
.coach-to { color: var(--right); font-weight: 500; }
.coach-good { color: var(--right); }
.coach-word { color: #fff; font-weight: 500; }
.coach-pron { color: var(--sound); }
.coach-why { padding-left: 16px; color: #b4b4b4; font-size: 12.5px; margin-top: 1px; max-width: none; }
.coach-cmp { display: inline-flex; gap: 4px; margin-left: auto; flex-shrink: 0; }
.coach-cmp span { display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 7px; border-radius: 999px; font-size: 11px; background: rgba(255, 255, 255, 0.1); white-space: nowrap; }
.coach-cmp span + span { color: var(--blue-soft); }
.coach-cmp svg { width: 9px; height: 9px; }
.coach-native-label { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--blue-soft); }
.coach-native-label svg { width: 13px; height: 13px; }
.coach-say { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; color: var(--blue-soft); }
.coach-say:hover { background: rgba(255, 255, 255, 0.12); }
.coach-say svg { width: 14px; height: 14px; }
.coach-native-text { padding-left: 19px; color: #f2f2f2; }
.coach-native-label + .coach-native-text + .coach-why { padding-left: 19px; }
.coach-chips { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 2px; }
.coach-chips span { font-size: 12.5px; color: #b4b4b4; border: 1px solid rgba(120, 160, 255, 0.45); border-radius: 999px; padding: 2px 9px; }
.coach-chips b { color: #fff; font-weight: 500; }
.coach-pending { padding: 7px 0 2px 16px; font-size: 12px; color: #8a8a8a; }
.coach-more { display: inline-block; margin-top: 8px; font-size: 12px; color: var(--blue-soft); text-decoration: none; }
.coach-more:hover { color: #b5cbff; text-decoration: underline; text-underline-offset: 3px; }

/* The dictation bar at the bottom of the screen. */
.bar {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px;
  height: 34px; padding: 0 15px 0 13px;
  background: rgba(14, 14, 14, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 13px; color: #d6d6d6; white-space: nowrap;
}
.bar-wave { display: inline-flex; align-items: center; gap: 2.5px; height: 16px; color: var(--blue); }
.bar-wave i { width: 2.5px; border-radius: 2px; background: currentColor; height: 5px; }
.bar-wave i:nth-child(2) { height: 10px; }
.bar-wave i:nth-child(3) { height: 16px; }
.bar-wave i:nth-child(4) { height: 11px; }
.bar-wave i:nth-child(5) { height: 6px; }
.demo[data-phase="listening"] .bar-wave i { animation: talk 0.5s ease-in-out infinite alternate; }
.demo[data-phase="listening"] .bar-wave i:nth-child(2) { animation-delay: -0.31s; }
.demo[data-phase="listening"] .bar-wave i:nth-child(3) { animation-delay: -0.12s; }
.demo[data-phase="listening"] .bar-wave i:nth-child(4) { animation-delay: -0.4s; }
.demo[data-phase="listening"] .bar-wave i:nth-child(5) { animation-delay: -0.22s; }
@keyframes talk { from { transform: scaleY(0.35); } to { transform: scaleY(1.05); } }

.demo-foot { margin-top: 14px; font-size: 14.5px; color: var(--ink-3); }

/* ---------- why ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 56px; margin-top: 44px; }
.why-grid > div { padding-top: 22px; border-top: 1px solid var(--line-strong); }
.why-grid h3 { margin-bottom: 10px; }
.why-grid .why-answer { grid-column: 1 / -1; margin-top: 28px; border-top-color: var(--blue); }
.why-answer h3 { font-size: clamp(22px, 2.4vw, 28px); }
.why-answer p { font-size: 19px; max-width: 38em; color: var(--ink); }

/* ---------- steps: a real sequence, so it is numbered ---------- */
.steps { list-style: none; counter-reset: step; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 44px 56px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-content: start; }
.steps li::before {
  content: counter(step);
  grid-row: 1 / span 2;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  font-family: var(--display); font-weight: 500; font-size: 17px; color: var(--blue-soft);
}
.steps h3 { align-self: center; min-height: 40px; display: flex; align-items: center; }
.steps p { grid-column: 2; margin-top: 6px; }
.steps em { font-style: normal; color: var(--ink); font-weight: 500; }

/* ---------- pronunciation ---------- */
.pron-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.pron-grid p { margin-top: 18px; }
.sounds { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sounds li { padding: 16px 16px 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.sounds b { display: block; white-space: nowrap; font-family: var(--display); font-weight: 500; font-size: 26px; line-height: 1.15; color: var(--sound); }
.sounds span { display: block; margin-top: 4px; font-size: 14px; color: var(--ink-3); }
.sounds .wide { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 16px; }
.sounds .wide span { margin-top: 0; }

/* ---------- learn ---------- */
.tabs { display: inline-flex; margin-top: 36px; padding: 4px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); }
.tabs button { padding: 8px 17px; border-radius: 999px; font-size: 15px; color: var(--ink-2); white-space: nowrap; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--card); color: var(--ink); }
section .tab-cap { margin-top: 16px; min-height: 3.2em; max-width: 38em; }
.shot { margin: 8px 0 0; padding: 22px 0 0 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.shot img { width: 100%; border-top-left-radius: 8px; }

/* ---------- shortcuts ---------- */
.key-rows { margin-top: 40px; border-top: 1px solid var(--line); }
.key-row { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: start; }
.caps { display: inline-flex; gap: 8px; }
kbd {
  display: inline-grid; place-items: center;
  min-width: 46px; height: 46px; padding: 0 10px;
  border-radius: 10px;
  border: 1px solid #5a5a5a; border-bottom-width: 3px;
  background: var(--card);
  font-family: var(--text); font-size: 17px; font-weight: 600; color: var(--ink);
}
.key-row h3 { margin-bottom: 6px; }
.key-row p { max-width: 36em; }

/* ---------- data ---------- */
.data-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.data-grid p { font-size: 19px; }

/* ---------- release notes ---------- */
.log { margin-top: 40px; border-top: 1px solid var(--line); }
.entry { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: start; }
.ver { font-family: var(--display); font-weight: 500; font-size: 26px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.date { margin-top: 4px; font-size: 14.5px; color: var(--ink-3); }
.entry h3 { margin-bottom: 10px; }
.entry ul { margin: 0; padding-left: 1.1em; color: var(--ink-2); max-width: 38em; }
.entry li { padding: 2px 0; }
.entry li::marker { color: var(--ink-3); }

/* ---------- status ---------- */
.status { padding-bottom: 104px; }
.status .wrap > img { border-radius: 16px; margin-bottom: 22px; }
.status p { margin-top: 14px; font-size: 19px; }
.btn {
  display: inline-flex; align-items: center;
  margin-top: 28px; padding: 13px 24px;
  border-radius: 999px;
  background: var(--blue); color: #0f1326;
  font-weight: 600; text-decoration: none;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--blue-soft); }

footer { border-top: 1px solid var(--line); padding: 26px 0 34px; font-size: 14.5px; color: var(--ink-3); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
footer .brand { color: var(--ink); }
footer a { text-underline-offset: 3px; }
footer a:hover { color: var(--ink); }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .demo { grid-template-columns: 1fr; }
  .demo-stage { order: -1; border-left: 0; border-bottom: 1px solid var(--line); scroll-margin-top: 76px; }
  .win { min-height: 0; }
  .why-grid, .steps, .pron-grid, .data-grid { grid-template-columns: 1fr; }
  .pron-grid, .data-grid { gap: 28px; }
  .why-grid .why-answer { margin-top: 8px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  section { padding-top: 76px; }
  .nav a { display: none; }
  .hero { padding-top: 36px; }
  .demo { margin-top: 36px; border-radius: 18px; }
  .demo-controls { padding: 22px 16px; gap: 26px; }
  .demo-stage { padding: 18px 12px 68px; }
  .win { min-height: 0; }
  .win-body { padding: 14px 12px 16px; }
  .seg button { padding: 7px 11px; font-size: 13.5px; }
  .tabs button { padding: 8px 12px; font-size: 14px; }
  .sounds { grid-template-columns: repeat(2, 1fr); }
  .key-row { grid-template-columns: 1fr; gap: 14px; }
  .entry { grid-template-columns: 1fr; gap: 14px; }
  .entry-meta { display: flex; align-items: baseline; gap: 12px; }
  .date { margin-top: 0; }
  .shot { padding: 12px 0 0 12px; border-radius: 14px; overflow-x: auto; }
  .shot img { width: 760px; max-width: none; }
  .sub, .data-grid p, .status p, .why-answer p { font-size: 17px; }
  .sounds .wide { flex-direction: column; gap: 4px; }
  .status { padding-bottom: 76px; }
}

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