/* The landing page: one stylesheet, one self-hosted font (Schibsted Grotesk,
   SIL OFL, fonts/OFL.txt), no third-party requests. Light by default, dark
   with the system, Paper (html.paper, docs/display.md) for reflective screens.
   Orange is only ever a fill behind dark text; as text it is --accent-ink. */
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/SchibstedGrotesk-latin.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;
}

:root {
  --bg: #F2F4F3; --ink: #111111; --muted: #3D4241; --line: #D5D9D7;
  --accent: #FF6B1A; --on-accent: #111111; --accent-ink: #B84A0E;
  --panel: #111111; --panel-ink: #F2F4F3; --panel-muted: #C9CECC;
  --chip: #FFFFFF; --chip-ink: #111111; --ph: #E6E9E8; --bezel-line: transparent;
  --border-accent: transparent;
}
@media (prefers-color-scheme: dark) {
  :root:not(.paper) {
    --bg: #121414; --ink: #EEF1F0; --muted: #B4BBB8; --line: #2E3432;
    --accent-ink: #FF8A47; --panel: #1D2221; --panel-ink: #EEF1F0;
    --ph: #1D2221; --bezel-line: #2E3432;
  }
}
/* Paper: white, black, no greys, no orange fills (outlines instead), 2px lines. */
html.paper {
  --bg: #fff; --ink: #000; --muted: #000; --line: #000;
  --accent: #fff; --on-accent: #000; --accent-ink: #000;
  --panel: #000; --panel-ink: #fff; --panel-muted: #fff;
  --chip: #fff; --ph: #fff; --border-accent: #000;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); scrollbar-gutter: stable; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.5 "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--ink); }
a:hover { color: var(--accent-ink); }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; }
h1 { font-size: clamp(40px, 7vw, 64px); font-weight: 800; line-height: 1; letter-spacing: -0.04em; }
h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; }
h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .3rem; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.doc { max-width: 52rem; }

/* Header */
.site, .top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 24px 0; }
.top { display: block; padding: 3rem 0 1rem; }
.pitch { font-size: 1.25rem; max-width: 40rem; color: var(--muted); }
.wordmark { text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -0.03em; display: inline-flex; align-items: center; min-height: 44px; }
.pill {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: 0 22px; border-radius: 999px; background: var(--accent); color: var(--on-accent);
  border: 2px solid var(--border-accent); font-weight: 700; font-size: 15px; text-decoration: none;
}
.pill:hover { color: var(--on-accent); filter: brightness(1.06); }

/* Hero */
.hero { padding: clamp(32px, 6vw, 72px) 0 48px; }
.eyebrow { margin: 0 0 18px; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hero h1 { font-size: clamp(56px, 9vw, 124px); line-height: .9; letter-spacing: -0.05em; font-weight: 800; }
.lede { margin: 28px 0 0; max-width: 520px; font-size: 20px; line-height: 1.5; color: var(--muted); }

/* Devices: a bezel with a screen at the device's own proportions, so a clip
   recorded at 390 x 844 (phone) or 820 x 1180 (tablet) fills it exactly. The
   wrapper keeps its size in the flow while the bezel grows into the player. */
.dev { position: relative; margin: 0; container-type: inline-size; }
.dev-phone { aspect-ratio: 406 / 860; }
.dev-tablet { aspect-ratio: 844 / 1204; }
.bezel {
  box-sizing: border-box; width: 100%; height: 100%; background: #111; padding: 8px;
  border-radius: 34px; outline: 1px solid var(--bezel-line); box-shadow: 0 24px 48px -18px rgba(17, 17, 17, .35);
}
.dev-tablet .bezel { padding: 12px; border-radius: 28px; }
.screen { position: relative; width: 100%; height: 100%; overflow: hidden; background: #fff; border-radius: 27px; color: #111; }
.dev-tablet .screen { border-radius: 16px; }
.device .screen { cursor: pointer; }
.screen video, .screen .still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; background: #fff; }
.ph {
  /* No clip and no still (dev, or a failed recording): a quiet page with the
     name in its corner. */
  position: absolute; inset: 0; display: flex; align-items: flex-start; justify-content: flex-start;
  padding: 16px 18px; background: var(--ph); color: var(--muted);
  font-weight: 800; font-size: 15px; letter-spacing: -0.02em;
}
html.paper .ph { color: #000; }
/* The play button sits over the music, clear of the player's own bars. */
.overlay { position: absolute; right: 8%; bottom: 16%; }
.dev-tablet .overlay { right: 5%; bottom: 40%; }
.play {
  width: clamp(44px, 20cqw, 64px); height: clamp(44px, 20cqw, 64px); border-radius: 50%; border: 2px solid var(--border-accent); background: var(--accent);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(17, 17, 17, .28);
}
.dev-tablet .play { width: clamp(44px, 13cqw, 76px); height: clamp(44px, 13cqw, 76px); }
.play svg { width: 38%; height: 38%; fill: var(--on-accent); margin-left: 3px; }
html.paper .play { box-shadow: none; }
.play:hover { filter: brightness(1.06); }
html.paper .play:hover { filter: none; outline: 3px solid #000; }
.tag {
  position: absolute; left: 50%; bottom: -16px; translate: -50% 0; white-space: nowrap;
  font-size: 13px; font-weight: 700; background: var(--chip); color: var(--chip-ink);
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line);
}
.chip {
  display: inline-flex; align-items: center; font-size: 14px; font-weight: 600; background: var(--chip); color: var(--chip-ink);
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
}
html.paper .chip, html.paper .tag { border: 2px solid #000; }

/* The live player's status over the clip, while it loads */
.status {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; background: rgba(255, 255, 255, .78); opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.status.on { opacity: 1; }
.status .words { font-size: 15px; font-weight: 700; color: #111; }
.spin { width: 36px; height: 36px; border-radius: 50%; border: 3px solid #D5D9D7; border-top-color: #FF6B1A; }
html.paper .spin { border-color: #fff; border-top-color: #000; }
@media (prefers-reduced-motion: no-preference) {
  .spin { animation: spin .8s linear infinite; }
}
@keyframes spin { to { transform: rotate(360deg); } }
.screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }

/* The hero's proof: the PDF and Fermata on the same phone */
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.pill.ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.pill.ghost:hover { color: var(--ink); background: var(--chip); filter: none; }
.vs {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 4vw, 48px);
  max-width: 700px; margin: 0 auto; padding: 8px 0 96px;
}
.vs figure { margin: 0; display: grid; gap: 32px; align-content: start; }
.vs figcaption { font-size: 15px; color: var(--muted); }
.vs figcaption b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 2px; }
.pdf .screen { background: #fff; }
.pdfbar {
  position: absolute; left: 0; right: 0; top: 0; height: 11%; padding: 6% 6% 0; background: #2B2B2B; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 6px; font: 600 clamp(9px, 1.6vw, 13px)/1.2 system-ui, sans-serif;
}
.pdfbar b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdfbar span { opacity: .75; }
.pdfpage { position: absolute; left: 3.5%; right: 3.5%; top: 21%; box-shadow: 0 0 0 1px #ccc; background: #fff; }
.pdfpage img { display: block; width: 100%; height: auto; }
.pdftools {
  position: absolute; left: 0; right: 0; bottom: 0; height: 9%; background: #2B2B2B; color: #ccc;
  display: flex; justify-content: space-around; align-items: center; font: 500 clamp(8px, 1.4vw, 11px)/1 system-ui, sans-serif;
}

/* The tools: what a singer asks for, pressed on a tablet */
.tools {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 64px);
  align-items: center; padding: 0 0 96px;
}
.tools h2 { font-size: clamp(30px, 4.2vw, 48px); font-weight: 800; line-height: 1.02; letter-spacing: -0.04em; margin: 0; }
.tools .lede { margin-top: 20px; font-size: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tryit { display: grid; justify-items: center; gap: 0; }
.tryit .dev { width: min(520px, 100%); }
.seg {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 36px;
  background: var(--chip); border: 1px solid var(--line); border-radius: 28px; padding: 4px;
}
.seg button {
  border: 0; background: transparent; color: var(--ink); border-radius: 999px; padding: 0 16px; min-height: 44px;
  font-size: 15px; font-weight: 700; white-space: nowrap;
}
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
html.paper .seg { border: 2px solid #000; }
html.paper .seg button[aria-pressed="true"] { background: #fff; color: #000; outline: 3px solid #000; outline-offset: -3px; }
.say { margin: 16px 0 0; min-height: 4.5em; max-width: 40ch; text-align: center; font-size: 16px; color: var(--muted); }
.say b { color: var(--ink); }

@media (max-width: 760px) {
  .tools { grid-template-columns: minmax(0, 1fr); }
  .tryit .dev { width: min(420px, 100%); }
}

/* The open player: a dialog over the page */
#dialog { position: fixed; inset: 0; z-index: 40; }
#backdrop { position: absolute; inset: 0; background: var(--bg); opacity: 0; transition: opacity .45s ease; }
#dialog .bezel.live { position: fixed; z-index: 1; margin: 0; box-shadow: 0 30px 80px rgba(17, 17, 17, .25); outline: 1px solid var(--bezel-line); }
#bar {
  position: fixed; z-index: 2; top: 12px; right: 12px; display: flex; flex-direction: row-reverse; gap: 8px;
  opacity: 0; transition: opacity .3s ease .3s;
}
#bar.on { opacity: 1; }
#bar a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--line); font-size: 14px; font-weight: 700; text-decoration: none; color: var(--ink);
}
html.paper #bar a { border: 2px solid #000; }
#close {
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ink); color: var(--bg);
  display: inline-flex; align-items: center; justify-content: center;
}
#close svg { width: 16px; height: 16px; stroke: currentColor; }
#close:focus-visible, #bar a:focus-visible { outline-color: var(--accent-ink); }
@media (max-width: 599px) {
  #bar { top: 0; left: 0; right: 0; height: 56px; padding: 0 6px 0 6px; align-items: center; justify-content: space-between; flex-direction: row; background: var(--bg); border-bottom: 1px solid var(--line); }
  html.paper #bar { border-bottom: 2px solid #000; }
}

/* Three facts */
.three {
  padding: 0 0 96px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 32px;
  border-top: 2px solid var(--ink);
}
.three > div { padding-top: 28px; }
.three h3 { margin: 0 0 8px; font-size: 22px; letter-spacing: -0.02em; }
.three p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--muted); }

/* The black panel */
.cta { padding: 0 0 96px; }
.panel {
  background: var(--panel); color: var(--panel-ink); border-radius: 32px; padding: clamp(28px, 5vw, 64px);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap;
}
.panel > div { max-width: 640px; }
.panel .big { margin: 0; font-size: clamp(32px, 4.5vw, 56px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.panel .sub { margin: 18px 0 0; font-size: 18px; color: var(--panel-muted); }
html.paper .panel .pill { background: #fff; color: #000; border-color: #fff; }
.panel .pill { min-height: 52px; padding: 0 26px; font-size: 16px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 24px 0 48px; font-size: 14px; color: var(--muted); }
html.paper footer { border-top: 2px solid #000; }
footer p { margin: .5rem 0; max-width: 46rem; }
footer a { color: var(--muted); display: inline-flex; align-items: center; min-height: 44px; }
footer a:hover { color: var(--accent-ink); }
html.paper footer a, html.paper a { text-decoration: underline; }
html.paper .pill, html.paper .wordmark, html.paper #bar a { text-decoration: none; }
body { overflow-x: clip; }
.build { font-size: 13px; }

/* Privacy and terms pages */
.doc section { margin-bottom: 2.5rem; }
.doc h3 { margin-top: 1.4rem; }
.doc p { color: var(--ink); }
.doc .top p { color: var(--muted); }
.doc a { color: var(--ink); }
