/* Inter is served from this site (SIL OFL 1.1, fonts/Inter-OFL.txt): no request to Google Fonts. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/Inter-Regular.ttf") format("truetype"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/Inter-Medium.ttf") format("truetype"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/Inter-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/Inter-Bold.ttf") format("truetype"); }

/* Word Anatomy site. Azure tokens from design/locked/tokens.md. */

:root {
  color-scheme: light dark;
  --b50: #E9F4FC;
  --b100: #D7EBF9;
  --b200: #A9D3F2;
  --b400: #2E9BE0;
  --b500: #0B72B9;
  --b700: #07507F;
  --on-action: #FFFFFF;
  --canvas: #F5F9FC;
  --surface: #FFFFFF;
  --line: #E0E8EF;
  --ink: #0D1720;
  --ink-2: #435160;
  --ink-3: #7A8897;
  --phone-shadow: 0 1px 2px rgba(13, 23, 32, .06), 0 18px 40px -18px rgba(13, 23, 32, .28);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 68rem;
  --prose: 44rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --b50: #0E2232;
    --b100: #112A3F;
    --b200: #18395A;
    --b400: #2E9BE0;
    --b500: #6CC0F5;
    --b700: #B5DFFA;
    --on-action: #04203A;
    --canvas: #0A1118;
    --surface: #121B24;
    --line: #212D39;
    --ink: #E7EFF6;
    --ink-2: #A3B3C2;
    --ink-3: #718293;
    --phone-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 18px 40px -18px rgba(0, 0, 0, .7);
  }
}

/* Same values, for an explicit override (used by the render check). */
:root[data-theme="dark"] {
  --b50: #0E2232;
  --b100: #112A3F;
  --b200: #18395A;
  --b400: #2E9BE0;
  --b500: #6CC0F5;
  --b700: #B5DFFA;
  --on-action: #04203A;
  --canvas: #0A1118;
  --surface: #121B24;
  --line: #212D39;
  --ink: #E7EFF6;
  --ink-2: #A3B3C2;
  --ink-3: #718293;
  --phone-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 18px 40px -18px rgba(0, 0, 0, .7);
}

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

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink-2);
  font: 400 1rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh; display: flex; flex-direction: column;
}

h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0; }
h1 { font-weight: 700; letter-spacing: -0.035em; }
h2 { font-weight: 700; letter-spacing: -0.025em; }
h3 { font-weight: 600; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong { color: var(--ink); font-weight: 600; }
img { max-width: 100%; height: auto; display: block; }

a { color: var(--b500); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--b400); outline-offset: 2px; border-radius: 6px; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--surface); color: var(--ink); padding: .6rem 1rem;
  border: 1px solid var(--line); border-radius: 10px; font-weight: 600;
}
.skip:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .25rem 1rem; padding-top: .75rem; padding-bottom: .75rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.05rem; letter-spacing: -0.03em;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); }
.site-nav { margin: 0 -.7rem; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .1rem; margin: 0; padding: 0; }
.site-nav a {
  display: inline-block; padding: .45rem .7rem; border-radius: 999px;
  color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem;
}
.site-nav a:hover { color: var(--ink); background: var(--b50); }
.site-nav a[aria-current="page"] { color: var(--b700); background: var(--b100); font-weight: 600; }

/* Hero */
.hero { text-align: center; padding: 3.5rem 0 2.5rem; }
.hero-icon {
  width: 120px; height: 120px; margin: 0 auto 1.5rem;
  border-radius: 27px; border: 1px solid var(--line); background: #fff;
  box-shadow: var(--phone-shadow);
}
.hero h1 { font-size: clamp(2.4rem, 8vw, 3.75rem); line-height: 1.05; }
.tagline {
  margin: .9rem auto 0; max-width: 34rem;
  color: var(--b500); font-size: clamp(1.25rem, 4vw, 1.6rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.3;
}
.lead { margin: 1rem auto 0; max-width: 34rem; font-size: 1.075rem; }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.store {
  display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center;
  min-width: 9.5rem; min-height: 3.5rem; padding: .5rem 1.3rem;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); text-decoration: none; line-height: 1.2; text-align: left;
}
.store .store-name { font-weight: 600; font-size: 1.05rem; }
.store .store-note { font-size: .8rem; color: var(--ink-2); font-weight: 500; }
a.store[href] { background: var(--b500); border-color: var(--b500); color: var(--on-action); }
a.store[href] .store-note { color: inherit; }

/* Screens */
.screens { padding: 1rem 0 3rem; }
.screens ul {
  list-style: none; margin: 0; padding: .5rem 1.25rem 1.5rem;
  display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.screens li { flex: 0 0 auto; scroll-snap-align: center; }
.screens figure { margin: 0; width: 240px; }
.screens figcaption { margin-top: .9rem; text-align: center; font-size: .95rem; color: var(--ink-2); }
.screens figcaption strong { display: block; color: var(--ink); font-size: 1rem; }
@media (min-width: 860px) {
  .screens ul { justify-content: center; overflow: visible; gap: 2.5rem; padding-bottom: 0; }
  .screens figure { width: 260px; }
}

/* Phone screens drawn in HTML: a 390 x 844 screen scaled into the frame (crisp at any size). */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.phone {
  --s: calc(240 / 390); width: 240px; height: calc(844px * var(--s)); position: relative; border-radius: 30px;
  border: 1px solid var(--line); background: var(--canvas); box-shadow: var(--phone-shadow);
}
@media (min-width: 860px) { .phone { --s: calc(260 / 390); width: 260px; } }
.m-frame { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
.m-screen {
  width: 390px; height: 844px; transform: scale(var(--s)); transform-origin: top left;
  position: relative; background: var(--canvas); color: var(--ink); font-family: var(--font);
  display: flex; flex-direction: column; overflow: hidden; letter-spacing: 0; line-height: 1.4;
}
.m-screen .ic { flex: none; display: block; }
.m-status { height: 54px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 30px 0 36px; font-size: 15px; font-weight: 600; }
.m-ind { display: flex; gap: 6px; align-items: center; }
.m-sig { width: 17px; height: 11px; background: linear-gradient(to right, currentColor 0 18%, transparent 18% 27%, currentColor 27% 45%, transparent 45% 54%, currentColor 54% 72%, transparent 72% 81%, currentColor 81%); clip-path: polygon(0 70%, 18% 70%, 18% 100%, 0 100%, 0 70%, 27% 45%, 45% 45%, 45% 100%, 27% 100%, 27% 45%, 54% 22%, 72% 22%, 72% 100%, 54% 100%, 54% 22%, 81% 0, 100% 0, 100% 100%, 81% 100%); }
.m-bat { width: 25px; height: 12px; border-radius: 3.5px; border: 1.4px solid currentColor; opacity: .9; position: relative; }
.m-bat::after { content: ""; position: absolute; inset: 1.5px 5px 1.5px 1.5px; border-radius: 1.5px; background: currentColor; }
.m-homebar { position: absolute; left: 50%; bottom: 8px; width: 134px; height: 5px; margin-left: -67px; border-radius: 3px; background: var(--ink); opacity: .22; z-index: 5; }
.m-bar { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 6px 20px 10px; }
.m-btn { width: 42px; height: 42px; border-radius: 13px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); display: grid; place-items: center; }
.m-btn .b { color: var(--b500); }
.m-btn.on { background: var(--b50); border-color: var(--b200); color: var(--b500); }
.m-count { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.m-body { padding: 0 20px; display: flex; flex-direction: column; gap: 12px; }
.m-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--b700); }
.m-head { display: flex; align-items: center; justify-content: space-between; margin-top: -6px; }
.m-hw { font-size: 34px; font-weight: 700; letter-spacing: -.035em; line-height: 1.1; }
.m-hw.sm { font-size: 30px; }
.m-plate { width: 42px; height: 42px; border-radius: 12px; background: var(--b50); color: var(--b500); display: grid; place-items: center; flex: none; }
.m-ipa { font-size: 14.5px; color: var(--ink-3); margin-top: -6px; }
.m-ipa.c { text-align: center; margin-top: 8px; font-size: 15.5px; }
.m-gloss { font-size: 18px; font-weight: 600; letter-spacing: -.015em; line-height: 1.35; }
.m-gloss.sm { font-size: 17px; }
.m-label { font-size: 11px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }
.m-sense { display: flex; gap: 12px; font-size: 15px; line-height: 1.45; }
.m-sense b { color: var(--b500); font-size: 14px; min-width: 10px; padding-top: 1px; }
.m-toggle { display: flex; align-items: center; gap: 3px; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--b500); }
.m-src { display: block; margin-top: 4px; font-size: 14px; color: var(--ink-3); line-height: 1.45; }
.m-ex { border-left: 3px solid var(--b200); padding: 2px 0 2px 12px; font-size: 15px; line-height: 1.45; }
.m-ex span { display: block; margin-top: 2px; font-size: 14px; color: var(--ink-3); }
.m-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.m-chips span { height: 34px; padding: 0 14px; border-radius: 17px; background: var(--b50); color: var(--b700); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; }
.m-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(to bottom, transparent, var(--canvas) 80%); z-index: 4; }
/* From any app */
.m-host { background: var(--surface); }
.m-article { padding: 14px 24px; display: flex; flex-direction: column; gap: 14px; }
.m-article i { display: block; height: 11px; border-radius: 6px; background: var(--line); }
.m-art-title { height: 26px; width: 70%; border-radius: 8px; background: var(--line); margin-bottom: 10px; }
.m-scrim { position: absolute; inset: 0; background: rgba(13, 23, 32, .42); z-index: 2; }
.m-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; background: var(--surface); border-radius: 28px 28px 0 0; padding: 10px 20px 44px; display: flex; flex-direction: column; gap: 12px; }
.m-grab { width: 36px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto 6px; }
.m-ai { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 2px; font-size: 12.5px; color: var(--ink-3); }
.m-ai b { display: flex; align-items: center; gap: 4px; color: var(--b500); font-size: 13px; }
.m-btns, .m-answers { display: flex; gap: 10px; }
.m-cap { flex: 1; height: 50px; border-radius: 25px; display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 15.5px; font-weight: 600; }
.m-cap.out { border: 1px solid var(--line); color: var(--ink); background: var(--surface); }
.m-cap.out .ic { color: var(--b500); }
.m-cap.fill { background: var(--b500); color: var(--on-action); }
/* Flip cards */
.m-progress { height: 6px; margin: 4px 20px 0; border-radius: 3px; background: var(--line); overflow: hidden; flex: none; }
.m-progress i { display: block; width: 33%; height: 100%; background: var(--b400); border-radius: 3px; }
.m-deck { flex: 1; position: relative; margin: 26px 20px 30px; }
.m-card { position: absolute; left: 0; right: 0; top: 0; bottom: 20px; border-radius: 30px; background: var(--surface); border: 1px solid var(--line); }
.m-card.back1 { transform: translateY(10px); left: 14px; right: 14px; }
.m-card.back2 { transform: translateY(20px); left: 28px; right: 28px; opacity: .6; }
.m-card.front { display: flex; flex-direction: column; padding: 22px; box-shadow: 0 1px 2px rgba(13, 23, 32, .04); }
.m-card-top { display: flex; gap: 6px; align-items: center; }
.m-pill { height: 26px; padding: 0 10px; border-radius: 13px; background: var(--b50); color: var(--b700); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; display: inline-flex; align-items: center; }
.m-flip { margin-left: auto; width: 36px; height: 36px; border-radius: 18px; border: 1px solid var(--line); color: var(--ink-3); display: grid; place-items: center; }
.m-card-mid { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.m-word { font-size: 42px; font-weight: 700; letter-spacing: -.04em; line-height: 1.05; text-align: center; }
.m-listen { margin-top: 18px; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 17px; background: var(--b50); color: var(--b700); font-size: 14px; font-weight: 600; }
.m-tap { text-align: center; font-size: 13px; color: var(--ink-3); }
.m-answers { padding: 0 20px 44px; }

/* Sections */
.section { padding: 3.5rem 0; }
.section-head { max-width: 46rem; margin: 0 0 2rem; }
.section-head h2 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
.section-head p { margin-top: .6rem; font-size: 1.05rem; }
.eyebrow {
  display: block; margin-bottom: .6rem;
  color: var(--b700); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}

.features {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: 1rem;
}
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 1.4rem 1.4rem 1.5rem;
}
.feature h3 { font-size: 1.1rem; margin: 1rem 0 .4rem; }
.feature p { font-size: .975rem; }
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; background: var(--b50); color: var(--b500);
}
.feature-icon svg { width: 24px; height: 24px; }
@media (min-width: 640px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .features .wide { grid-column: span 2; }
}
@media (min-width: 960px) {
  .features { grid-template-columns: repeat(3, 1fr); }
  .features .wide-lg { grid-column: span 2; }
}

/* The one tinted card */
.ai-note {
  background: var(--b100); border: 1px solid var(--b200); border-radius: 22px;
  padding: 1.75rem 1.4rem; color: var(--b700);
}
.ai-note h2 { color: var(--b700); font-size: clamp(1.45rem, 4.5vw, 1.9rem); }
.ai-note ul { margin: 1.1rem 0 1.1rem; padding: 0; list-style: none; display: grid; gap: .8rem; }
.ai-note li { position: relative; padding-left: 1.6rem; }
.ai-note li::before {
  content: ""; position: absolute; left: .2rem; top: .55em;
  width: .55rem; height: .55rem; border-radius: 50%; background: var(--b400);
}
.ai-note strong { color: var(--b700); }
.ai-note a { color: var(--b700); font-weight: 600; }
@media (min-width: 760px) { .ai-note { padding: 2.25rem 2.5rem; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 2rem; }
.site-footer .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .75rem 1.5rem; padding-top: 1.6rem; padding-bottom: 1.6rem; font-size: .925rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.site-footer a { color: var(--ink-2); text-decoration: none; font-weight: 500; }
.site-footer a:hover { color: var(--b500); text-decoration: underline; }
.site-footer small { font-size: inherit; }

/* Text pages (privacy, terms, support, 404) */
.page { padding: 2.75rem 0 2rem; }
.page .wrap { max-width: calc(var(--prose) + 2.5rem); }
.page-head { margin-bottom: 2rem; }
.page-head h1 { font-size: clamp(2rem, 7vw, 2.75rem); line-height: 1.1; }
.page-head p { margin-top: .75rem; font-size: 1.075rem; }
.meta {
  display: inline-block; margin-top: .25rem; padding: .25rem .75rem;
  border-radius: 999px; background: var(--b50); color: var(--b700); font-size: .875rem; font-weight: 600;
}

.prose h2 { font-size: 1.35rem; margin: 2.5rem 0 .75rem; scroll-margin-top: 1rem; }
.prose h3 { font-size: 1.075rem; margin: 1.6rem 0 .4rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1em; }
.prose li { margin: .35rem 0; }
.prose li > ul { margin: .4rem 0; }
.prose > :first-child { margin-top: 0; }

.toc {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 1.1rem 1.3rem; margin: 0 0 1rem;
}
.toc h2 { font-size: .8rem; margin: 0 0 .5rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.toc ol { margin: 0; padding-left: 1.3rem; columns: 1; }
.toc li { margin: 0; padding: .15rem 0; break-inside: avoid; }
@media (min-width: 640px) { .toc ol { columns: 2; column-gap: 2rem; } }


.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 1.4rem;
}
.contact-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.contact-card h2 { font-size: 1.2rem; margin: 0 0 .25rem; }
.contact-card p { margin: 0; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: .7rem 1.4rem; border-radius: 999px;
  background: var(--b500); color: var(--on-action); font-weight: 600; text-decoration: none;
}
.button:hover { text-decoration: none; filter: brightness(1.06); }

.faq { display: grid; gap: .75rem; margin: 0 0 1rem; }
.faq .card h3 { margin: 0 0 .5rem; font-size: 1.075rem; }
.faq .card ol, .faq .card ul { margin: .25rem 0 .75rem; padding-left: 1.3rem; }
.faq .card li { margin: .3rem 0; }
.faq .card > :last-child { margin-bottom: 0; }
.platform { color: var(--ink); font-weight: 600; margin: .75rem 0 .25rem; }

.notfound { text-align: center; padding: 5rem 0 4rem; }
.notfound .code { font-size: clamp(4rem, 18vw, 7rem); font-weight: 700; letter-spacing: -0.05em; color: var(--b500); line-height: 1; margin: 0 auto 1rem; }
.notfound h1 { font-size: clamp(1.6rem, 6vw, 2.2rem); }
.notfound p { margin: .75rem auto 1.75rem; max-width: 28rem; }

@media (min-width: 760px) {
  .hero { padding: 4.5rem 0 3rem; }
  .hero-icon { width: 136px; height: 136px; border-radius: 31px; }
  .section { padding: 4.5rem 0; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

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