/* relaxbitch.com: gifloop.app's grammar (one field band, then paper, hairline lists,
   one pill CTA), in Relax B*tch's own colours.
   Every hex below was sampled, never remembered:
   - #000000 / #ffffff: the App Store icon, ios-app/assets/icon.png (pixel counts: black field, white mark).
   - #1c1922, #252130: the app's night background and panel, app/index.html dark tokens,
     re-checked as RGB (28,25,34) and (37,33,48) in store/shots/iphone67/01-listen.png.
   - #e7e3ec, #a49db0, #39334a: the app's dark ink, muted and line tokens.
   - #a8c49e: the app's Play/Stop button, RGB (168,196,158) in 01-listen.png; its label ink is #1c1922. */

@font-face {
  /* DM Sans, the face the icon's lettering is set in. Google Fonts v17, latin subset,
     variable 400-1000, SIL OFL. Self-hosted: the site makes no third-party requests. */
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 1000;
  font-display: swap;
  src: url("/fonts/dm-sans-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --field: #000000;        /* the icon's field */
  --mark: #ffffff;         /* the icon's mark */
  --paper: #1c1922;        /* the app at night */
  --panel: #252130;
  --ink: #e7e3ec;
  --ink-2: #a49db0;
  --hair: #39334a;
  --accent: #a8c49e;       /* the Play button. Light: its label is dark. */
  --accent-ink: #1c1922;

  --t-13: 13px; --t-15: 15px; --t-17: 17px; --t-20: 20px;
  --t-28: 28px; --t-44: 44px; --t-80: 80px;

  --r-pill: 999px;
  --max-w: 1120px;
  --font: "DM Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  color-scheme: dark;
}

html { scroll-behavior: smooth; background: var(--paper); }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-17);
  line-height: 1.47;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 16px; }

/* ── The field and the nav ───────────────────────────────── */
.field { background: var(--field); color: var(--mark); overflow: hidden; }
nav { display: flex; align-items: center; justify-content: space-between; padding: 16px; max-width: var(--max-w); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 1000; font-size: var(--t-20); letter-spacing: -0.01em; color: var(--mark); text-decoration: none; }
.brand img { width: 34px; height: auto; }
.links { display: none; gap: 28px; list-style: none; }
.links a { color: var(--mark); font-size: var(--t-15); font-weight: 600; text-decoration: none; }
.links a:hover { text-decoration: underline; }

/* ── Hero ────────────────────────────────────────────────── */
.hero { display: grid; gap: 36px; padding: 28px 16px 0; max-width: var(--max-w); margin: 0 auto; }
h1 { font-size: var(--t-44); font-weight: 1000; letter-spacing: -0.03em; line-height: 0.98; }
.lead { font-size: var(--t-17); margin-top: 18px; max-width: 540px; }
.field .lead { color: var(--ink); }
.cta { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; padding: 15px 24px; border-radius: var(--r-pill);
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: var(--t-17); text-decoration: none; }
.cta svg { width: 20px; height: 20px; flex: none; }
.cta:hover { text-decoration: underline; }
.cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.fine { margin-top: 12px; font-size: var(--t-13); font-weight: 600; color: var(--ink-2); }

/* The phone shows the App Store screenshot itself. Bezel is the app's panel colour, so it
   reads on the black field. */
.device { justify-self: center; width: 270px; height: 470px; background: var(--panel); border-radius: 46px 46px 0 0; padding: 12px 12px 0; }
.device .screen { height: 100%; border-radius: 36px 36px 0 0; overflow: hidden; background: var(--paper); }
.device img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ── Sections on paper ───────────────────────────────────── */
section { padding: 64px 0 0; }
.eyebrow { font-size: var(--t-13); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
h2 { font-size: var(--t-28); font-weight: 900; letter-spacing: -0.02em; line-height: 1.1; margin-top: 8px; }
.desc { font-size: var(--t-17); color: var(--ink-2); margin-top: 12px; max-width: 640px; }
.desc + .desc { margin-top: 12px; }

/* Features: drawn glyphs, never emoji */
.grid { display: grid; gap: 28px; margin-top: 28px; }
.feat svg { width: 32px; height: 32px; stroke: var(--ink); }
.feat h3 { font-size: var(--t-20); font-weight: 800; margin-top: 12px; letter-spacing: -0.01em; line-height: 1.2; }
.feat p { font-size: var(--t-15); color: var(--ink-2); margin-top: 6px; }

/* Screens: three real App Store screenshots, the middle one first in the eye */
.screens { display: grid; grid-auto-flow: column; grid-auto-columns: 220px; gap: 16px; margin: 28px -16px 0; padding: 0 16px 8px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; }
.screens::-webkit-scrollbar { display: none; }
.screens figure { scroll-snap-align: start; }
.screens img { width: 100%; height: auto; border-radius: 28px; border: 1px solid var(--hair); }
.screens figcaption { font-size: var(--t-15); font-weight: 600; margin-top: 12px; }
.screens figcaption span { display: block; font-weight: 400; color: var(--ink-2); }

/* Spec lists: hairline rows */
.specs { display: grid; column-gap: 28px; margin-top: 24px; list-style: none; }
.specs li { border-top: 1px solid var(--hair); padding: 12px 0; font-size: var(--t-15); color: var(--ink-2); }
.specs strong { display: block; color: var(--ink); font-weight: 800; }

/* FAQ */
.faq { display: grid; column-gap: 28px; margin-top: 24px; }
.faq div { border-top: 1px solid var(--hair); padding: 16px 0; }
.faq h3 { font-size: var(--t-17); font-weight: 800; }
.faq p { font-size: var(--t-15); color: var(--ink-2); margin-top: 4px; }

.contact { margin-top: 24px; font-size: var(--t-20); font-weight: 800; letter-spacing: -0.01em; }

/* ── Footer: the page ends on the last real row ──────────── */
footer { width: calc(100% - 32px); max-width: calc(var(--max-w) - 32px); margin: 64px auto 0; padding: 32px 0 48px; display: grid; gap: 14px; border-top: 1px solid var(--hair); }
.foot-brand { display: flex; align-items: center; gap: 10px; font-weight: 1000; font-size: var(--t-17); }
.foot-brand img { width: 28px; height: auto; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; }
.foot-links a { font-size: var(--t-15); font-weight: 600; text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.foot-copy { font-size: var(--t-13); color: var(--ink-2); }

/* ── Legal pages ─────────────────────────────────────────── */
.legal { max-width: 672px; margin: 0 auto; padding: 48px 16px 16px; }
.legal h1 { font-size: var(--t-28); line-height: 1.1; letter-spacing: -0.02em; font-weight: 900; }
.legal .updated { font-size: var(--t-13); font-weight: 600; color: var(--ink-2); margin-top: 8px; }
.legal h2 { font-size: var(--t-20); font-weight: 800; letter-spacing: -0.01em; margin-top: 36px; }
.legal p { font-size: var(--t-17); color: var(--ink-2); margin-top: 12px; }
.legal a { color: var(--ink); }

/* ── Wider screens ───────────────────────────────────────── */
@media (min-width: 600px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .specs, .faq { grid-template-columns: repeat(2, 1fr); }
  .screens { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; gap: 28px; margin: 28px 0 0; padding: 0; overflow: visible; }
}
@media (min-width: 900px) {
  nav { padding: 16px 20px; }
  .links { display: flex; }
  .hero { grid-template-columns: 1.15fr 0.85fr; align-items: end; padding: 48px 20px 0; }
  .hero > div:first-child { padding-bottom: 28px; }
  h1 { font-size: var(--t-80); }
  .device { width: 300px; height: 520px; }
  h2 { font-size: var(--t-44); }
  .legal h1 { font-size: var(--t-44); }
  .grid { grid-template-columns: repeat(4, 1fr); }
  .specs { grid-template-columns: repeat(3, 1fr); }
  .wrap { padding: 0 20px; }
  footer { width: calc(100% - 40px); max-width: calc(var(--max-w) - 40px); }
}
