/* purr-room.aimantas.com. "Nocturne": warm ivory ink on plum-black paper, accents like printed inks,
   an editorial serif with italic emphasis, film grain on the paper, solid cards and hairlines. See DESIGN.md. */

@font-face { font-family: "Newsreader"; src: url("/static/fonts/Newsreader-Display-Latin.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/static/fonts/Newsreader-Display-Italic-Latin.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }

:root {
  --room: #0E0C12;
  --card: #1B1822;
  --raised: #27232F;
  --line: #37313F;
  --ink: #F4EFE8;
  --muted: #B4ADB9;
  --faint: #8C8592;
  --calm: #AFA2DE;
  --play: #E4A96E;
  --band: #86BCD8;
  --plus: #D9BA7C;
  --serif: "Newsreader", "New York", ui-serif, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--room); color-scheme: dark; -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body { min-height: 100vh; background: var(--room) url("/static/grain.png"); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-wrap: break-word; }
img { display: block; max-width: 100%; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; font-synthesis: none; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(46px, 6.4vw, 86px); line-height: 1; letter-spacing: -0.025em; }
h2 { font-size: clamp(34px, 4.3vw, 54px); line-height: 1.04; letter-spacing: -0.02em; }
h3 { font-size: clamp(22px, 2vw, 25px); line-height: 1.2; letter-spacing: -0.01em; }
em { font-style: italic; }
b, strong { font-weight: 600; color: var(--ink); }

a { color: inherit; text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; text-decoration-color: color-mix(in srgb, var(--ink) 35%, transparent); }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 2px solid var(--calm); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 40px, 1160px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 10; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: var(--room); }
.skip:focus { left: 16px; }

.eyebrow { font: 600 12px/1.2 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }

/* Header and footer */
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 500 22px/1 var(--serif); letter-spacing: -0.01em; }
.brand img { border-radius: 8px; }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }

.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 14px; color: var(--faint); }
.footer-inner { display: grid; grid-template-columns: auto 1fr; gap: 16px 32px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font: 500 19px/1 var(--serif); }
.footer-brand img { border-radius: 7px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-self: end; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.footer-note { grid-column: 1 / -1; max-width: 62em; }

/* Phone frame around real captures */
.phone { display: block; padding: 2.6%; border-radius: 15% / 6.9%; background: var(--card); border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 40px 80px -44px rgba(0, 0, 0, 0.9); }
.phone img { width: 100%; height: auto; border-radius: 12.6% / 5.8%; background: #000; }

/* Hero */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(64px, 9vw, 120px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(40px, 7vw, 104px); align-items: center; }
.hero h1 { margin-top: 18px; max-width: 11ch; }
.lede { margin-top: 26px; max-width: 33em; font-size: clamp(18px, 1.6vw, 20px); line-height: 1.55; color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 10px; margin-top: 34px; padding: 11px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font: 600 15px/1 var(--sans); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--plus); flex: none; }
.links { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 22px; font-size: 15px; color: var(--muted); }

/* Sections */
.section { padding: clamp(72px, 10vw, 128px) 0; border-top: 1px solid var(--line); }
.section-head { max-width: 740px; }
.section-head h2, .split-copy h2 { margin-top: 16px; }
.section-head p:not(.eyebrow), .split-copy > p:not(.eyebrow) { margin-top: 20px; max-width: 36em; color: var(--muted); font-size: 18px; }

/* Sound families */
.families { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 52px; }
.family { padding: 28px 26px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: inset 0 2px 0 var(--accent); }
.family.calm { --accent: var(--calm); }
.family.play { --accent: var(--play); }
.family.band { --accent: var(--band); }
.family .eyebrow { color: var(--accent); }
.family h3 { margin-top: 12px; }
.sounds { list-style: none; margin-top: 22px; border-top: 1px solid var(--line); }
.sounds li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sounds li:last-child { border-bottom: 0; }
.sounds .spec { grid-column: 1 / -1; font-size: 14px; color: var(--faint); font-variant-numeric: tabular-nums; }
.plus { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border: 1px solid color-mix(in srgb, var(--plus) 45%, transparent); border-radius: 999px; color: var(--plus); font: 600 11px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; }

/* Text beside a screenshot */
.split-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: clamp(40px, 8vw, 112px); align-items: center; }
.flip .split-grid { grid-template-columns: minmax(0, 1fr) 340px; }
.flip .split-shot { order: 2; }
.facts { list-style: none; margin-top: 32px; border-top: 1px solid var(--line); }
.facts li { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.note { padding: 16px 18px; border: 1px solid var(--line); border-left: 2px solid var(--band); border-radius: 12px; background: var(--card); font-size: 15px !important; }
.small { font-size: 15px !important; color: var(--faint) !important; }

/* Hearing diagram: log scale from 20 Hz to 64 kHz; left = (log10 f - log10 20) / (log10 64000 - log10 20) */
.hearing { margin-top: 36px; padding: 22px 22px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; }
.hm-row { display: grid; grid-template-columns: 78px minmax(0, 1fr); align-items: center; height: 28px; }
.hm-label { font: 600 11px/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); white-space: nowrap; }
.hm-track { position: relative; height: 100%; }
.hm-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); }
.hm-track::after { content: ""; position: absolute; left: 82.82%; right: 0; top: 0; bottom: 0; background: color-mix(in srgb, var(--band) 10%, transparent); }
.hm-bar { position: absolute; top: 50%; height: 6px; margin-top: -3px; border-radius: 3px; }
.hm-you { left: 0; width: 82.82%; height: 2px; margin-top: -1px; background: linear-gradient(90deg, var(--muted) 90%, transparent); }
.hm-calm { left: 8.59%; width: 41.88%; background: var(--calm); }
.hm-play { left: 40.37%; width: 35.99%; background: var(--play); }
.hm-band { left: 82.82%; width: 5.28%; min-width: 8px; background: var(--band); }
.hm-axis .hm-track::before, .hm-axis .hm-track::after { display: none; }
.hm-tick { position: absolute; top: 9px; transform: translateX(-50%); font: 12px/1 var(--sans); color: var(--faint); white-space: nowrap; font-variant-numeric: tabular-nums; }
.t0 { left: 0; transform: none; }
.t1 { left: 19.94%; }
.t2 { left: 48.47%; }
.t3 { left: 77%; }
.t4 { left: 100%; transform: translateX(-100%); }
.hearing figcaption { margin-top: 14px; font-size: 13px; line-height: 1.5; color: var(--faint); }

/* How it works */
.how-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 96px); align-items: center; }
.steps { list-style: none; margin-top: 32px; border-top: 1px solid var(--line); counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 0; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.steps li::before { content: counter(step); grid-row: span 2; font: italic 500 28px/1 var(--serif); color: var(--calm); }
.steps b { font: 500 21px/1.25 var(--serif); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.duo .phone:nth-child(2) { margin-top: 64px; }

/* Privacy */
.private { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.private li { padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; color: var(--muted); font-size: 15px; }
.private b { display: block; margin-bottom: 8px; font: 500 21px/1.2 var(--serif); }
.more { margin-top: 28px; color: var(--muted); }

/* Free and Plus */
.tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.tier { padding: 30px 28px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; }
.tier.gold { border-color: color-mix(in srgb, var(--plus) 55%, var(--line)); }
.tier.gold .eyebrow { color: var(--plus); }
.tier h3 { margin-top: 12px; }
.tier ul { list-style: none; margin-top: 20px; border-top: 1px solid var(--line); }
.tier li { position: relative; padding: 12px 0 12px 28px; border-bottom: 1px solid var(--line); color: var(--muted); }
.tier li:last-child { border-bottom: 0; }
.tier li::before { content: ""; position: absolute; left: 3px; top: 19px; width: 11px; height: 6px; border-left: 1.5px solid var(--faint); border-bottom: 1.5px solid var(--faint); transform: rotate(-45deg); }
.tier.gold li::before { border-color: var(--plus); }

/* Closing */
.closing { padding: clamp(80px, 11vw, 140px) 0; border-top: 1px solid var(--line); text-align: center; }
.closing img { margin: 0 auto; border-radius: 22px; }
.closing h2 { margin: 28px auto 0; max-width: 15ch; }
.closing p { margin-top: 18px; color: var(--muted); }
.closing .links { justify-content: center; }

/* Support and privacy documents */
.doc { width: min(100% - 40px, 720px); margin: 0 auto; padding: clamp(48px, 8vw, 96px) 0 clamp(72px, 10vw, 120px); }
.doc h1 { margin-top: 16px; font-size: clamp(42px, 5.4vw, 64px); }
.doc .keyline { margin-top: 28px; padding: 14px 18px; border: 1px solid var(--line); border-left: 2px solid var(--plus); border-radius: 12px; background: var(--card); color: var(--ink); font-weight: 600; }
.doc h2 { margin-top: 56px; font-size: clamp(28px, 3vw, 36px); }
.doc h3 { margin-top: 30px; font-size: 22px; }
.doc p, .doc ul, .doc ol { margin-top: 14px; color: var(--muted); }
.doc h2 + p, .doc h3 + p, .doc h2 + ul, .doc h2 + ol { margin-top: 10px; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li + li { margin-top: 8px; }
.doc li::marker { color: var(--faint); }
.doc .meta { margin-top: 20px; font-size: 15px; color: var(--faint); }

@media (max-width: 900px) {
  .families { grid-template-columns: 1fr; }
  .private { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero-grid, .split-grid, .flip .split-grid, .how-grid { grid-template-columns: 1fr; }
  .hero-shot, .split-shot { order: 2; justify-self: center; width: min(100%, 290px); }
  .duo { gap: 12px; }
  .duo .phone:nth-child(2) { margin-top: 36px; }
}
@media (max-width: 720px) {
  .nav { gap: 18px; }
  .nav a:not([href="/support/"]) { display: none; }
  .tiers { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-self: start; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .private { grid-template-columns: 1fr; }
  .family { padding: 24px 20px 14px; }
  .hearing { padding: 18px 16px 14px; }
  .hm-row { grid-template-columns: 76px minmax(0, 1fr); }
  .hm-label { letter-spacing: 0.06em; }
  .t1, .t3 { display: none; }
  #hunt .split-shot { width: min(100%, 230px); }
}
