/* Practice Line site styles. Tokens: docs/DESIGN.md. Fonts are self-hosted (SIL Open Font License, public/fonts/README.md). */
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url("/fonts/figtree-latin.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url("/fonts/figtree-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+1E00-1EFF, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/fonts/geist-mono-latin.woff2") format("woff2"); }

:root {
  --paper: #fffcf6; --ink: #181818; --ink-2: #4b4842; --accent: #ff2f00; --on-accent: #ffffff;
  --accent-soft: #ffdfd4; --line: #e3e1db; --frame: #181818; --frame-shadow: rgb(24 24 24 / 0.45);
  --display: "Figtree", system-ui, sans-serif; --mono: "Geist Mono", ui-monospace, monospace;
  --h1: clamp(53.2px, 2.4rem + 4.2vw, 96px); --h2: clamp(26px, 1.2rem + 1.1vw, 35px); --h3: 22px;
  --body: clamp(16px, 0.95rem + 0.15vw, 17.6px); --small: clamp(11px, 0.68rem + 0.1vw, 12px);
  --u: 8px; --section: 65px; --max: 1280px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #0b1010; --ink: #fafafa; --ink-2: #b9bdbb; --accent-soft: #2d140e; --line: #282c2c;
    --frame: #000000; --frame-shadow: rgb(0 0 0 / 0.6); color-scheme: dark; }
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font: 400 var(--body)/1.5 var(--display); overflow-x: clip; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
a { color: inherit; text-underline-offset: 0.2em; }
p { margin: 0; }

.skip { position: absolute; left: calc(2 * var(--u)); top: -100px; z-index: 2; padding: var(--u) calc(2 * var(--u));
  background: var(--ink); color: var(--paper); border-radius: 999px; font-weight: 600; }
.skip:focus { top: calc(2 * var(--u)); }

.wrap { width: min(100% - 6 * var(--u), var(--max)); margin-inline: auto; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* Header: the real mark on the left, the other language on the right. No glass, no blur. */
.top { display: flex; align-items: center; justify-content: space-between; gap: calc(2 * var(--u)); padding-block: calc(3 * var(--u)); }
.brand { display: inline-flex; align-items: center; gap: var(--u); font-weight: 700; font-size: 18px; text-decoration: none; min-height: 44px; }
.mark { width: 32px; height: 32px; flex: none; }
.lang { display: inline-flex; align-items: center; min-height: 44px; padding: 0 calc(2 * var(--u)); border: 1.5px solid var(--line);
  border-radius: 999px; font-weight: 500; font-size: 15px; text-decoration: none; white-space: nowrap; }
.lang:hover { border-color: var(--ink); }

/* Hero: the title is the first station; the town map fills the space behind and beside it. */
.hero { position: relative; min-height: min(86svh, 760px); }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sign { position: relative; z-index: 1; padding-top: calc(6 * var(--u)); max-width: 640px; }
h1 { font-size: var(--h1); line-height: 0.92; letter-spacing: -0.035em; font-weight: 800; margin: 0; }
.lede { font-size: var(--h3); line-height: 1.35; max-width: 26ch; margin: calc(3 * var(--u)) 0; text-wrap: balance; }
.soon { display: inline-flex; align-items: center; gap: var(--u); font-weight: 600; }
.soon i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); animation: lamp 2.4s ease-in-out infinite; }
@keyframes lamp { 50% { opacity: 0.25; } }

/* Below the map: the report a caller gets, inside a CSS phone frame, beside what the line is for. */
.below { display: flex; gap: calc(8 * var(--u)); align-items: center; padding-block: var(--section); border-top: 1.5px solid var(--line); }
.pitch { display: grid; gap: calc(2 * var(--u)); max-width: 54ch; }
.pitch h2 { font-size: var(--h2); line-height: 1.15; letter-spacing: -0.02em; margin: 0; max-width: 20ch; text-wrap: balance; }
.pitch p:not(.note) { color: var(--ink-2); }
.note { font-size: var(--small); color: var(--ink-2); }

.phone { margin: 0; width: min(100%, 330px); aspect-ratio: 9 / 15.5; border-radius: 46px; padding: 12px; background: var(--frame);
  box-shadow: 0 24px 48px -24px var(--frame-shadow); flex: none; }
.phone .screen { height: 100%; border-radius: 36px; overflow: hidden; background: var(--paper); color: var(--ink);
  padding: 44px 20px 20px; display: flex; flex-direction: column; gap: calc(1.5 * var(--u)); position: relative; }
.phone .screen::before { content: ""; position: absolute; top: 12px; left: 50%; translate: -50% 0; width: 92px; height: 26px;
  border-radius: 20px; background: var(--frame); }
.ttl { font-size: 20px; line-height: 1.2; font-weight: 700; }
.turns { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.turns li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; font-size: 13px; line-height: 1.3; }
.turns .bar { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: var(--line); position: relative; overflow: hidden; }
.turns .bar b { position: absolute; inset: 0 auto 0 0; border-radius: 4px; background: var(--ink); width: calc(var(--share) * 100%); }
.turns .long .bar b { background: var(--accent); }
.coach { margin-top: auto; padding: 12px 14px; border-radius: 16px; background: var(--accent-soft); font-size: 14px; line-height: 1.4; }
.again { display: block; text-align: center; padding: 13px 16px; border-radius: 999px; background: var(--accent); color: var(--on-accent);
  font-weight: 700; font-size: 18px; }

.foot { display: grid; gap: calc(0.5 * var(--u)); padding-block: calc(4 * var(--u)); border-top: 1.5px solid var(--line);
  font-size: var(--small); color: var(--ink-2); }

@media (max-width: 760px) {
  .wrap { width: min(100% - 4 * var(--u), var(--max)); }
  .hero { min-height: 0; display: flex; flex-direction: column; }
  .hero canvas { position: relative; height: 540px; }
  .sign { padding-top: calc(3 * var(--u)); }
  .below { flex-direction: column-reverse; align-items: stretch; gap: calc(5 * var(--u)); }
  .phone { margin-inline: auto; }
}
@media (max-width: 360px) {
  .phone { border-radius: 40px; padding: 10px; }
  .phone .screen { border-radius: 30px; padding: 40px 14px 14px; }
  .again { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
