/* Fair Price — site styles (landing page, legal and support pages, 404).
   The app's design language on the web: system font, monochrome accent (the label color),
   content on subtle system fills, glass only for the floating header, and color only where it
   means something — the verdict green, orange and red. */

/* ---------- Tokens ---------- */

:root {
  color-scheme: light dark;

  --bg: #fff;
  --label: #000;
  --label-2: #6e6e73;                    /* secondary text, 4.9:1 on white */
  --label-3: rgba(60, 60, 67, 0.3);      /* tertiary: markers, dividers in text */
  --fill: rgba(118, 118, 128, 0.08);     /* content cards (iOS .fill.quinary) */
  --fill-2: rgba(118, 118, 128, 0.14);   /* tracks, chips on cards */
  --separator: rgba(60, 60, 67, 0.16);
  --accent: #0f0f0f;                     /* AccentColor.colorset */
  --on-accent: #fff;
  --header: rgba(255, 255, 255, 0.72);
  --sheet: #fff;                         /* the result sheet in the phone mock */
  --shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.35);

  /* Verdict colors: iOS 26 system green / orange / red, what Verdict.tint renders. */
  --green: #34c759;
  --orange: #ff8d28;
  --red: #ff383c;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui,
    "Segoe UI", Roboto, sans-serif;

  --page: 1080px;
  --gutter: 16px;
  --radius: 24px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000;
    --label: #fff;
    --label-2: #98989d;
    --label-3: rgba(235, 235, 245, 0.3);
    --fill: rgba(118, 118, 128, 0.18);
    --fill-2: rgba(118, 118, 128, 0.26);
    --separator: rgba(84, 84, 88, 0.55);
    --accent: #fafafa;
    --on-accent: #000;
    --header: rgba(0, 0, 0, 0.62);
    --sheet: #1c1c1e;
    --shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.8);

    --green: #30d158;
    --orange: #ff9230;
    --red: #ff4245;
  }
}

@media (min-width: 640px) {
  :root { --gutter: 24px; }
}

/* ---------- Base ---------- */

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

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--label);
  font: 17px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

a { color: inherit; }

h1, h2, h3, p, ul, ol, figure { margin: 0; }

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

.wrap {
  width: min(var(--page), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 10px; }

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

.icon {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Header (the one glass layer) ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding-inline: max(var(--gutter), (100% - var(--page)) / 2);
  background: var(--bg);
  border-bottom: 1px solid var(--separator);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header {
    background: var(--header);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-block: 10px;
  color: var(--label);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 22.5%;
  box-shadow: 0 0 0 1px var(--separator);
}

@media (prefers-color-scheme: dark) {
  /* The app icon's dark appearance, like iOS shows it in dark mode. */
  .brand img { content: url("/img/icon-dark.png"); }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a {
  color: var(--label-2);
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s;
}

.site-nav a:hover { color: var(--label); }

@media (max-width: 759px) {
  .site-nav { gap: 18px; }
  .site-nav .nav-wide { display: none; }
}

@media (max-width: 359px) {
  .site-nav .nav-mid { display: none; }
}

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

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding: 28px max(var(--gutter), (100% - var(--page)) / 2) 40px;
  border-top: 1px solid var(--separator);
  color: var(--label-2);
  font-size: 13px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.site-footer a {
  color: var(--label-2);
  text-decoration: none;
}

.site-footer a:hover { color: var(--label); text-decoration: underline; }

.site-footer .fine { flex-basis: 100%; color: var(--label-2); }

/* Language links (Support page): they set Firebase Hosting's language cookie, so they're shown
   only once the page's script runs. */
.site-footer .languages {
  display: flex;
  flex-basis: 100%;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
}

.site-footer .languages[hidden] { display: none; }
.site-footer .languages .icon { width: 16px; height: 16px; }
.site-footer .languages [aria-current] { color: var(--label); font-weight: 600; }

@media (max-width: 639px) {
  .site-footer { flex-direction: column; align-items: flex-start; }
}

/* ---------- Shared type and controls ---------- */

.eyebrow {
  color: var(--label-2);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}

.section-head { max-width: 680px; margin-bottom: 48px; }

.section-head h2,
.h2 {
  margin-top: 8px;
  font-size: clamp(34px, 5.4vw, 52px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.lead {
  margin-top: 16px;
  color: var(--label-2);
  font-size: clamp(19px, 2.2vw, 21px);
  line-height: 1.45;
  text-wrap: pretty;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
}

.button:hover { opacity: 0.86; }

.card {
  background: var(--fill);
  border-radius: var(--radius);
  padding: 24px;
}

.pro-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--fill-2);
  color: var(--label-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  vertical-align: 3px;
}

/* ---------- Verdict stamp (VerdictStamp.swift) ---------- */

.stamp {
  --c: var(--green);
  position: relative;
  display: inline-block;
  padding: 0.22em 0.5em;
  border-radius: 0.32em;
  box-shadow: inset 0 0 0 0.12em var(--c);
  color: var(--c);
  font-family: var(--font-rounded);
  font-size: var(--s, 22px);
  font-weight: 900;
  font-stretch: condensed;
  line-height: 1.15;
  letter-spacing: 0.06em;
  white-space: nowrap;
  transform: rotate(-9deg);
}

.stamp::after {
  content: "";
  position: absolute;
  inset: 0.2em;
  border: 0.04em solid var(--c);
  border-radius: 0.22em;
  opacity: 0.55;
}

.stamp.fair { --c: var(--green); }
.stamp.high { --c: var(--orange); }
.stamp.overpriced { --c: var(--red); }
.stamp.neutral { --c: var(--label-2); }

/* A white "paper" backing, for photos. */
.stamp.paper {
  background: #fff;
  box-shadow: inset 0 0 0 0.12em var(--c), 0 4px 8px rgba(0, 0, 0, 0.25);
}

.stamp.lands { animation: stamp-land 0.55s cubic-bezier(0.25, 1.5, 0.5, 1) 0.5s both; }

@keyframes stamp-land {
  from { opacity: 0; transform: rotate(-9deg) scale(1.9); }
  to { opacity: 1; transform: rotate(-9deg) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .stamp.lands { animation: none; }
}

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

.hero {
  display: grid;
  gap: 56px;
  align-items: center;
  padding-block: 56px 88px;
}

.hero-copy { text-align: center; }

.hero h1 {
  margin-top: 10px;
  font-size: clamp(44px, 8.4vw, 76px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero .lead { max-width: 540px; margin-inline: auto; margin-top: 20px; }

.stores {
  /* The visible height of both badges; clear space around each is a quarter of it. */
  --badge-h: 54px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: calc(var(--badge-h) / 4);
  margin-top: 32px;
}

.store-link {
  display: block;
  height: var(--badge-h);
  line-height: 0;
}

.store-link:hover { opacity: 0.86; }

.store-link img { display: block; width: auto; }

.badge-app-store { height: var(--badge-h); }

/* Google's file has its clear space built in (41 px of 250 on each side of a 168 px badge):
   drawn larger and pulled in, so the badge itself is exactly as tall as the App Store's. */
.badge-google-play {
  height: calc(var(--badge-h) * 250 / 168);
  margin: calc(var(--badge-h) * -41 / 168);
}

.hero-note {
  margin-top: 16px;
  color: var(--label-2);
  font-size: 14px;
}

.hero-visual { display: flex; justify-content: center; }

@media (max-width: 419px) {
  .stores { --badge-h: 46px; flex-wrap: nowrap; }
}

@media (max-width: 359px) {
  .stores { --badge-h: 40px; }
}

@media (min-width: 920px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 64px;
    padding-block: 72px 112px;
  }
  .hero-copy { text-align: left; }
  .hero .lead { margin-inline: 0; }
  .stores { justify-content: flex-start; }
}

/* ---------- Phone mock (the app's black scan screen + result sheet) ---------- */

.device {
  --w: 300px;
  position: relative;
  flex: none;
  width: var(--w);
  aspect-ratio: 9 / 19.5;
  padding: calc(var(--w) * 0.032);
  border-radius: calc(var(--w) * 0.16);
  background: #0a0a0b;
  box-shadow: inset 0 0 0 1.5px #3a3a3c, 0 0 0 1px rgba(0, 0, 0, 0.06), var(--shadow);
  font-size: calc(var(--w) / 30);       /* 1em = 10px at 300px wide; the mock scales in em */
}

@media (max-width: 380px) {
  .device { --w: 276px; }
}

.screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: calc(var(--w) * 0.13);
  background: #000;
  color: var(--label);
  font-family: var(--font);
  line-height: 1.25;
}

.screen-photo {
  position: absolute;
  inset: 0 0 auto 0;
  width: 100%;
  height: 58%;
  object-fit: cover;
  object-position: 50% 62%;
}

.island {
  position: absolute;
  top: 1.1em;
  left: 50%;
  width: 9.4em;
  height: 2.75em;
  margin-left: -4.7em;
  border-radius: 2em;
  background: #000;
}

.status {
  position: absolute;
  top: 1.45em;
  left: 2.8em;
  right: 2.6em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  font-size: 1.45em;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.battery {
  position: relative;
  width: 1.65em;
  height: 0.8em;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 0.25em;
}

.battery::before {
  content: "";
  position: absolute;
  inset: 1.5px;
  right: 25%;
  border-radius: 0.12em;
  background: #fff;
}

.sheet {
  position: absolute;
  inset: 43% 0 0;
  overflow: hidden;
  padding: 0.8em 2.4em 1.6em;
  border-radius: 3.4em 3.4em 0 0;
  background: var(--sheet);
}

.grabber {
  width: 3.6em;
  height: 0.5em;
  margin: 0 auto 1.1em;
  border-radius: 1em;
  background: var(--label-3);
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sheet-thumb {
  width: 4.6em;
  height: 4.6em;
  border-radius: 1.15em;
  object-fit: cover;
}

.sheet-head .stamp { --s: 2.2em; margin-right: 0.6em; }

.sheet-cat {
  margin-top: 1em;
  color: var(--label-2);
  font-size: 1.3em;
  font-weight: 600;
}

.sheet-item {
  margin-top: 0.15em;
  font-family: var(--font-rounded);
  font-size: 2.6em;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.sheet-card {
  margin-top: 1.4em;
  padding: 1.5em 1.6em;
  border-radius: 2.2em;
  background: var(--fill);
}

.sheet-card .muted { color: var(--label-2); font-size: 1.3em; }

.sheet-range {
  margin: 0.05em 0;
  font-family: var(--font-rounded);
  font-size: 2.7em;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.sheet-asked {
  display: flex;
  align-items: center;
  gap: 0.4em;
  margin-top: 0.9em;
  font-size: 1.45em;
  font-weight: 600;
  white-space: nowrap;
}

.sheet-asked .icon { width: 1.15em; height: 1.15em; color: var(--green); stroke-width: 2.4; }
.sheet-asked .dash { color: var(--label-3); font-weight: 400; }
.sheet-asked .verdict-word { color: var(--green); }

/* PriceRangeBar.swift: the usual range as a band, typical as a tick, the asked price as a pin. */
.range {
  position: relative;
  height: 2.4em;
  margin-top: 1.1em;
}

.range > span,
.range::before {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.range::before {
  content: "";
  left: 0;
  right: 0;
  height: 1em;
  border-radius: 1em;
  background: var(--fill-2);
}

.range-band {
  left: var(--lo);
  width: calc(var(--hi) - var(--lo));
  height: 1em;
  border-radius: 1em;
  background: var(--label-2);
}

.range-typical {
  left: var(--typ);
  width: 0.3em;
  height: 2em;
  margin-left: -0.15em;
  border-radius: 0.2em;
  background: var(--label);
}

.range-pin {
  left: var(--ask);
  width: 2em;
  height: 2em;
  margin-left: -1em;
  border-radius: 50%;
  background: var(--pin, var(--green));
  box-shadow: 0 0 0 0.3em var(--sheet), 0 0.1em 0.4em rgba(0, 0, 0, 0.2);
}

.legend {
  display: flex;
  gap: 1.2em;
  white-space: nowrap;
  margin-top: 0.9em;
  color: var(--label-2);
  font-size: 1.15em;
}

.legend span { display: inline-flex; align-items: center; gap: 0.45em; }
.legend i { display: inline-block; border-radius: 1em; }
.legend .l-band { width: 1.2em; height: 0.5em; background: var(--label-2); }
.legend .l-typ { width: 0.25em; height: 1em; background: var(--label); }
.legend .l-pin { width: 0.75em; height: 0.75em; background: var(--green); }

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

.section { padding-block: 88px; }
.section + .section { border-top: 1px solid var(--separator); }

@media (max-width: 639px) {
  .section { padding-block: 64px; }
  .section-head { margin-bottom: 36px; }
}

/* How it works */

.how {
  display: grid;
  gap: 40px;
  align-items: center;
}

.how-art { max-width: 460px; margin-inline: auto; width: 100%; }

.steps {
  display: grid;
  gap: 28px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-left: 56px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--fill-2);
  color: var(--label);
  font-family: var(--font-rounded);
  font-size: 17px;
  font-weight: 700;
}

.steps h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.steps p { margin-top: 4px; color: var(--label-2); }

@media (min-width: 860px) {
  .how { grid-template-columns: 1fr 1fr; gap: 64px; }
}

/* Verdicts */

.verdicts {
  display: grid;
  gap: 16px;
}

@media (min-width: 860px) {
  .verdicts { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

.verdict {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
}

.verdict-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.verdict-head img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
}

.verdict-head .stamp { --s: 22px; margin-right: 6px; }

.verdict h3 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.verdict p { color: var(--label-2); }

.example {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--separator);
  color: var(--label);
  font-size: 15px;
  line-height: 1.4;
}

.example .dot {
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--c);
}

.example span { color: var(--label-2); }
.example strong { color: var(--label); font-weight: 600; }

.footnote {
  margin-top: 28px;
  color: var(--label-2);
  font-size: 15px;
}

/* Features */

.features {
  display: grid;
  gap: 16px;
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

.feature > .icon { margin-bottom: 8px; color: var(--label); }

.feature h3 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.feature p { color: var(--label-2); }

.feature-art {
  width: 100%;
  max-width: 440px;
  margin: auto 0 -12px;
  padding-top: 20px;
  align-self: center;
}

@media (min-width: 700px) {
  .features { grid-template-columns: repeat(6, 1fr); gap: 20px; }
  .feature { grid-column: span 3; padding: 32px; }
  .feature.third { grid-column: span 2; }
}

@media (min-width: 700px) and (max-width: 979px) {
  .feature.third { grid-column: span 3; }
  .feature.third:last-child { grid-column: span 6; }
}

/* "Say it for me" phrase card */
.phrase {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding: 16px;
  border-radius: 18px;
  background: var(--bg);
}

.phrase-play {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
}

.phrase-play .icon { width: 18px; height: 18px; margin: 0 0 0 2px; fill: currentColor; stroke: none; }
.phrase-local { font-size: 19px; font-weight: 600; line-height: 1.3; }
.phrase-roman { color: var(--label); font-size: 15px; }
.phrase-meaning { color: var(--label-2); font-size: 14px; }

/* "What did you pay?" mini card */
.paid {
  margin-top: 14px;
  padding: 16px;
  border-radius: 18px;
  background: var(--bg);
  font-size: 15px;
}

.paid-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
}

.paid-row strong { font-family: var(--font-rounded); font-size: 19px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.paid-row .meta { color: var(--label-2); font-size: 13px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.paid-row .meta .icon { width: 16px; height: 16px; }
.paid p { margin-top: 6px; color: var(--label-2); font-size: 14px; }

/* Home currency */
.money {
  margin-top: 14px;
  font-family: var(--font-rounded);
  font-variant-numeric: tabular-nums;
}

.money-local { font-size: 28px; font-weight: 700; letter-spacing: -0.01em; }
.money-home { color: var(--label-2); font-size: 17px; }

/* Languages */
.langs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding: 0;
  list-style: none;
}

.langs li {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--fill-2);
  font-size: 14px;
}

/* Glasses */

.glasses {
  display: grid;
  gap: 48px;
  align-items: center;
}

.glasses-list {
  display: grid;
  gap: 22px;
  margin-top: 36px;
  padding: 0;
  list-style: none;
}

.glasses-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 2px 14px;
}

.glasses-list .icon-wrap {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--fill-2);
}

.glasses-list .icon { width: 20px; height: 20px; }
.glasses-list h3 { font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.glasses-list p { color: var(--label-2); }

.glasses-note {
  margin-top: 32px;
  color: var(--label-2);
  font-size: 14px;
}

.pov {
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
}

.pov-photo {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: var(--fill);
}

.pov-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

.pov-photo .stamp {
  --s: 24px;
  position: absolute;
  right: 18px;
  top: 22px;
}

.pov-photo .tag {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.spoken {
  margin-top: 12px;
  padding: 18px 20px;
}

.spoken-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--label-2);
  font-size: 15px;
  font-weight: 600;
}

.spoken-title .icon { width: 18px; height: 18px; }
.spoken p:last-child { margin-top: 6px; font-size: 17px; }

@media (min-width: 860px) {
  .glasses { grid-template-columns: 1fr minmax(0, 420px); gap: 80px; }
}

/* Pro */

.pro {
  display: grid;
  gap: 32px;
  padding: 32px 24px;
}

.pro h2 { margin-top: 8px; }

.pro-list {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 0;
  list-style: none;
  font-size: 19px;
}

.pro-list li { display: flex; gap: 12px; align-items: flex-start; }
.pro-list .icon { margin-top: 3px; stroke-width: 2.2; }

.pro-small {
  margin-top: 20px;
  color: var(--label-2);
  font-size: 14px;
}

@media (max-width: 639px) {
  .pro-list { font-size: 17px; }
}

@media (min-width: 860px) {
  .pro { grid-template-columns: 1.1fr 1fr; gap: 64px; padding: 56px; align-items: center; }
}

/* ---------- Legal pages (body.doc-page > main.doc) ---------- */

.doc-page .site-header,
.doc-page .site-footer {
  --page: 720px;
}

.doc {
  width: min(720px, 100% - 2 * var(--gutter));
  margin-inline: auto;
  padding-block: 56px 96px;
  font-size: 17px;
  line-height: 1.65;
  overflow-wrap: break-word;
}

.doc .eyebrow { margin-bottom: 6px; }

.doc h1 {
  font-size: clamp(34px, 6vw, 48px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.doc .updated {
  margin-top: 12px;
  color: var(--label-2);
  font-size: 15px;
}

.doc h2 {
  margin: 56px 0 12px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  scroll-margin-top: 76px;
}

.doc h3 {
  margin: 32px 0 8px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  scroll-margin-top: 76px;
}

.doc p,
.doc ul,
.doc ol,
.doc table,
.doc blockquote { margin: 0 0 16px; }

.doc ul,
.doc ol { padding-left: 1.4em; }

.doc li + li { margin-top: 6px; }
.doc li > ul,
.doc li > ol { margin: 6px 0 0; }
.doc li::marker { color: var(--label-2); }

.doc a {
  color: var(--label);
  text-decoration: underline;
  text-decoration-color: var(--label-3);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.doc a:hover { text-decoration-color: var(--label); }

.doc strong { font-weight: 600; }

.doc code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--fill-2);
  font: 0.88em ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

.doc hr {
  height: 1px;
  margin: 40px 0;
  border: 0;
  background: var(--separator);
}

.doc blockquote {
  padding-left: 16px;
  border-left: 3px solid var(--separator);
  color: var(--label-2);
}

/* Contents: a compact list between hairlines. */
.doc .toc {
  margin: 32px 0;
  padding: 16px 0;
  border-block: 1px solid var(--separator);
  font-size: 15px;
  line-height: 1.4;
}

.doc .toc ul,
.doc .toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2 240px;
  column-gap: 32px;
}

.doc .toc li { margin: 0; padding: 5px 0; break-inside: avoid; }
.doc .toc li + li { margin-top: 0; }

.doc .toc a {
  color: var(--label-2);
  text-decoration: none;
}

.doc .toc a:hover { color: var(--label); }

/* "In short": a quinary-fill card. */
.doc .summary {
  margin: 32px 0 8px;
  padding: 24px 28px;
  border-radius: var(--radius);
  background: var(--fill);
}

.doc .summary h2 {
  margin: 0 0 10px;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.doc .summary ul,
.doc .summary ol { margin-bottom: 0; }
.doc .summary p:last-child { margin-bottom: 0; }

/* An opening line under the title (Support). */
.doc .lead { margin: 12px 0 0; }

/* FAQ (Support): native <details> answers between hairlines; the chevron turns as one opens. */
.doc .faq {
  margin: 0 0 16px;
  border-top: 1px solid var(--separator);
}

.doc .faq details { border-bottom: 1px solid var(--separator); }

.doc .faq summary {
  position: relative;
  display: block;
  padding: 14px 36px 14px 0;
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

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

.doc .faq summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 6px;
  width: 8px;
  height: 8px;
  margin-top: -6px;
  border-right: 2px solid var(--label-2);
  border-bottom: 2px solid var(--label-2);
  transform: rotate(45deg);
  transition: transform 0.2s;
}

.doc .faq details[open] > summary::after { margin-top: -2px; transform: rotate(-135deg); }
.doc .faq summary:hover::after { border-color: var(--label); }

.doc .faq .answer { padding-bottom: 18px; }
.doc .faq .answer > :last-child { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  .doc .faq summary::after { transition: none; }
}

/* Korean wraps between words, not inside them. */
.doc:lang(ko) { word-break: keep-all; }

/* Tables: fit the column at any width (cells wrap rather than scroll the page). */
.doc table {
  width: 100%;
  margin: 8px 0 24px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.45;
}

.doc th,
.doc td {
  padding: 10px 14px 10px 0;
  border-bottom: 1px solid var(--separator);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.doc th:last-child,
.doc td:last-child { padding-right: 0; }

.doc thead th {
  border-bottom-color: var(--label-3);
  color: var(--label-2);
  font-size: 13px;
  font-weight: 600;
}

.doc tbody th { font-weight: 600; }

.doc caption {
  padding-bottom: 8px;
  color: var(--label-2);
  font-size: 13px;
  text-align: left;
}

@media (max-width: 639px) {
  .doc { padding-block: 36px 72px; }
  .doc h2 { margin-top: 44px; font-size: 23px; }
  .doc .summary { padding: 20px; }
  .doc table { font-size: 14px; }
  .doc th, .doc td { padding-right: 10px; }
}

/* ---------- 404 ---------- */

.notfound {
  display: grid;
  justify-items: center;
  gap: 16px;
  min-height: calc(100vh - 200px);
  min-height: calc(100svh - 200px);
  align-content: center;
  padding-block: 64px;
  text-align: center;
}

.notfound .stamp { --s: 34px; margin-bottom: 16px; }

.notfound h1 {
  font-size: clamp(34px, 6vw, 48px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.notfound p { color: var(--label-2); font-size: 19px; }
.notfound .button { margin-top: 12px; }
