/* Stereo public site. One stylesheet, no build step.
   Kye's look, as in the app (src/index.css): black ink on aged cream paper, heavy wide capitals, a line broken by a
   sound wave. Record black with cream ink when the device asks for dark. Headings use Archivo, stored on this site
   (fonts/archivo.woff2, SIL Open Font License), so nothing loads from another site. Body text is the device's own font. */
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #e9e1d1;
  --card: #f5efe3;
  --card-2: #ede5d5;
  --line: #cdc0a8;
  --ink: #171513;
  --muted: #5f5547;
  --button-ink: #f5efe3;
  /* the inverted panels: hero card shadow, roles, bands, footer */
  --record: #171513;
  --record-2: #24201c;
  --record-line: #3a342d;
  --cream: #ece3d3;
  --cream-muted: #b3a892;
  /* muted vintage status colours, as in the app */
  --olive: #3d6a2c;
  --mustard: #864f09;
  --plum: #7a3b5e;
  --brick: #ad3326;
  --display: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 5px;
  --wrap: 1120px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .36 0 0 0 0 .29 0 0 0 0 .18 0 0 0 .11 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141210;
    --card: #1d1a17;
    --card-2: #25211d;
    --line: #3a342d;
    --ink: #ece3d3;
    --muted: #a59a86;
    --button-ink: #141210;
    --record: #0c0b0a;
    --record-2: #1d1a17;
    --record-line: #3a342d;
    --olive: #93c26e;
    --mustard: #e2aa4c;
    --plum: #cf92b6;
    --brick: #e8775f;
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .93 0 0 0 0 .89 0 0 0 0 .83 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--grain), var(--paper); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--display); font-stretch: 112%; font-weight: 800; line-height: 1.12; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 max(20px, env(safe-area-inset-left)); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--button-ink); padding: 8px 14px; border-radius: var(--radius); z-index: 10; }
.skip:focus { left: 8px; }
.caps { font-family: var(--font); font-size: .78rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; }

/* The wordmark: live text plus the drawn sound wave, as in the app's StereoLogo */
.logo { display: inline-flex; flex-direction: column; align-items: stretch; color: var(--ink); text-decoration: none; line-height: 1; margin-right: auto; }
.logo .word { font-family: var(--display); font-stretch: 125%; font-weight: 900; font-size: 1.7rem; letter-spacing: -.01em; text-align: center; }
.logo .rule { display: flex; align-items: center; gap: 5px; margin: 4px 0 3px; }
.logo .rule i { flex: 1; height: 1.4px; background: currentColor; }
.logo .rule svg { width: 32px; height: 15px; }
.logo .tagline { font-size: 7.5px; font-weight: 650; letter-spacing: .55em; text-align: center; padding-left: .55em; }
.wave { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: .95rem; font-weight: 700; padding: 11px 18px; border-radius: var(--radius); text-decoration: none; border: 1.5px solid var(--ink); cursor: pointer; white-space: nowrap; letter-spacing: .01em; }
.btn-primary { background: var(--ink); color: var(--button-ink); }
.btn-primary:hover { box-shadow: 3px 3px 0 var(--mustard); }
.btn-ghost { color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--card); }
.on-record .btn-primary { background: var(--cream); color: var(--record); border-color: var(--cream); }
.on-record .btn-ghost { color: var(--cream); border-color: var(--cream-muted); }
.on-record .btn-ghost:hover { background: var(--record-2); }

/* Header */
.site-header { background: var(--grain), var(--paper); position: sticky; top: 0; z-index: 5; border-bottom: 2px solid var(--ink); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 74px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 550; }
.nav a:not(.btn):hover, .nav a[aria-current="page"]:not(.btn) { text-decoration: underline; text-decoration-thickness: 2px; }
.nav .btn { padding: 8px 14px; }
.nav .btn-primary { color: var(--button-ink); }
.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; padding: 10px; margin-right: -10px; color: var(--ink); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 26px; height: 26px; }
@media (max-width: 820px) {
  /* On phones the header scrolls away with the page. With no JavaScript an open menu can't close itself, so a
     header that stayed put would sit on top of the section a menu link had just jumped to. */
  html { scroll-padding-top: 16px; }
  .site-header { position: relative; }
  .nav { display: none; }
  .menu { display: block; }
  .menu[open] .nav { display: grid; gap: 4px; position: absolute; left: 0; right: 0; top: 74px; background: var(--grain), var(--paper); padding: 12px 20px 20px; border-bottom: 2px solid var(--ink); }
  .menu[open] .nav a { padding: 10px 0; font-size: 1.05rem; }
  .menu[open] .nav .btn { justify-content: center; margin-top: 6px; padding: 11px 18px; }
}

/* Hero */
.hero { padding: 76px 0 92px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; align-items: center; }
.eyebrow { margin-bottom: 18px; color: var(--muted); }
/* "SPREADSHEET." is about 10.1em wide, so the size is capped to fit its column at every width */
.hero h1 { font-size: clamp(1.6rem, 4.5vw, 3.3rem); font-stretch: 125%; font-weight: 900; text-transform: uppercase; line-height: 1.02; letter-spacing: -.015em; }
.hero h1 em { font-style: normal; display: block; }
.hero .wave-rule { margin: 26px 0 0; max-width: 460px; }
.hero .lede { font-size: 1.15rem; margin: 22px 0 30px; max-width: 34em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.works-with { margin-top: 26px; font-size: .92rem; color: var(--muted); }
@media (max-width: 900px) { .hero { padding: 48px 0 64px; } .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 44px; } .hero h1 { font-size: clamp(1.5rem, 8.2vw, 3.4rem); } }

/* A line broken by a sound wave, as under the wordmark */
.wave-rule { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.wave-rule i { flex: 1; height: 1.6px; background: currentColor; }
.wave-rule svg { width: 54px; height: 25px; }

/* The example week in the hero, printed like a gig sheet */
.sheet { background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--radius); box-shadow: 8px 8px 0 var(--ink); padding: 22px; display: grid; gap: 14px; }
.sheet .top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1.5px solid var(--ink); padding-bottom: 10px; }
.sheet .top h2 { font-size: 1.15rem; font-stretch: 125%; font-weight: 900; text-transform: uppercase; }
.sheet .top span { font-size: .82rem; color: var(--muted); }
.gig { display: grid; grid-template-columns: 62px 1fr auto; gap: 4px 14px; align-items: center; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.gig .when { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: .82rem; line-height: 1.15; text-transform: uppercase; grid-row: span 2; }
.gig .when b { display: block; font-size: 1.45rem; font-stretch: 125%; font-weight: 900; }
.gig .act { font-weight: 700; font-size: 1rem; line-height: 1.25; }
.gig .meta { font-size: .82rem; color: var(--muted); line-height: 1.35; }
.gig .fee { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.pill { justify-self: end; font-size: .7rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border: 1.5px solid currentColor; border-radius: 3px; white-space: nowrap; }
.pill.ok { color: var(--olive); }
.pill.wait { color: var(--mustard); }
.pill.open { color: var(--plum); }
.sheet .note { background: var(--card-2); border-left: 3px solid var(--olive); padding: 10px 12px; font-size: .88rem; line-height: 1.45; }
.sheet .row { display: flex; justify-content: space-between; gap: 12px; font-size: .84rem; color: var(--muted); }
.meter { height: 9px; border: 1.5px solid var(--ink); border-radius: 2px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 71%; background: var(--ink); }
.example-tag { font-size: .72rem; color: var(--muted); text-align: right; letter-spacing: .14em; text-transform: uppercase; }

/* Sections */
.section { padding: 84px 0; }
.section.alt { background: var(--card-2); border-block: 1.5px solid var(--ink); }
.section-head { max-width: 44em; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.section-head p { color: var(--muted); font-size: 1.1rem; margin-top: 14px; }
@media (max-width: 700px) { .section { padding: 60px 0; } }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 8px; align-content: start; }
.card h3 { font-size: 1.1rem; }
.card p { color: var(--muted); font-size: .97rem; }
.icon { width: 44px; height: 44px; border: 1.5px solid var(--ink); border-radius: var(--radius); color: var(--ink); display: grid; place-items: center; margin-bottom: 8px; }
.icon svg { width: 22px; height: 22px; }

/* Who it's for: three roles, printed in reverse */
.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 860px) { .roles { grid-template-columns: 1fr; } }
.role { border-radius: var(--radius); padding: 28px; background: var(--record); color: var(--cream); display: grid; gap: 12px; align-content: start; }
.role h3 { color: var(--cream); font-size: 1.25rem; }
.role ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: .97rem; color: var(--cream); }
.role li { padding-left: 24px; position: relative; }
.role li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 7px; border-left: 2px solid var(--cream); border-bottom: 2px solid var(--cream); transform: rotate(-45deg); }
.role .who { color: var(--cream-muted); }

/* For bands: a record-sleeve panel */
.sleeve { background: var(--record); color: var(--cream); border-radius: var(--radius); padding: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.sleeve h2 { font-size: clamp(1.6rem, 3.6vw, 2.6rem); font-stretch: 125%; font-weight: 900; text-transform: uppercase; line-height: 1.04; color: var(--cream); }
.sleeve .wave-rule { color: var(--cream); margin-top: 20px; max-width: 360px; }
.sleeve p { color: var(--cream); }
.sleeve p + p { margin-top: 12px; }
.sleeve a { color: var(--cream); }
.sleeve ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.sleeve li { border-top: 1px solid var(--record-line); padding-top: 14px; }
.sleeve li b { display: block; font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 1.05rem; margin-bottom: 2px; }
.sleeve li span { color: var(--cream-muted); font-size: .97rem; }
@media (max-width: 860px) { .sleeve { grid-template-columns: 1fr; padding: 32px 24px; gap: 28px; } }

/* Call to action band */
.band { background: var(--card); border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); border-radius: var(--radius); padding: 44px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.band h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.band p { color: var(--muted); margin-top: 8px; }
@media (max-width: 620px) { .band { padding: 28px 22px; box-shadow: 5px 5px 0 var(--ink); } }
.fine { font-size: .9rem; color: var(--muted); }

/* Questions */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 0 20px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 18px; }
.faq details p + p { margin-top: -6px; }

/* Page header for inner pages */
.page-head { padding: 60px 0 52px; border-bottom: 1.5px solid var(--ink); }
.page-head h1 { font-size: clamp(1.7rem, 7vw, 3.3rem); font-stretch: 125%; font-weight: 900; text-transform: uppercase; line-height: 1.04; }
.page-head .wave-rule { margin-top: 20px; max-width: 360px; }
.page-head p { margin-top: 18px; font-size: 1.1rem; max-width: 40em; }
.page-head.tall { padding: 96px 0; border-bottom: 0; }
.page-head .btn { margin-top: 24px; }

/* Long-form legal pages */
.prose { max-width: 760px; padding: 56px 0 80px; }
.prose h2 { font-size: 1.45rem; margin: 44px 0 12px; scroll-margin-top: 100px; }
.prose h3 { font-size: 1.1rem; margin: 26px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 6px; }
.prose .updated { color: var(--muted); font-size: .95rem; }
.prose .summary { background: var(--card); border: 1.5px solid var(--line); border-left: 5px solid var(--ink); border-radius: var(--radius); padding: 20px 24px; margin: 24px 0; }
.prose .summary ul { margin: 0; }
.table-wrap { overflow-x: auto; margin: 0 0 18px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: .94rem; }
th, td { text-align: left; padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: top; }
thead th { border-top: 0; background: var(--card-2); font-weight: 700; }

/* Contact cards on support */
.contact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.contact .card a.big { font-size: 1.15rem; font-weight: 700; word-break: break-word; }

/* Footer */
.site-footer { background: var(--record); color: var(--cream-muted); padding: 52px 0 40px; font-size: .92rem; }
.site-footer .top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid var(--record-line); }
.site-footer .logo { color: var(--cream); margin: 0 0 14px; align-self: flex-start; }
.site-footer .brand { display: flex; flex-direction: column; align-items: flex-start; }
.site-footer nav { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 40px; align-content: start; }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .legal { padding-top: 22px; line-height: 1.7; }

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

/* Book a demo form */
.demo-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 48px; align-items: start; }
@media (max-width: 900px) { .demo-layout { grid-template-columns: 1fr; } }
.form { background: var(--card); border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); border-radius: var(--radius); padding: 32px; display: grid; gap: 18px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .form { padding: 22px; box-shadow: 5px 5px 0 var(--ink); } .form .two { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: .95rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 11px 13px; width: 100%; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--mustard); outline-offset: 0; border-color: var(--ink); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; font-size: 1rem; padding: 13px 22px; }
.aside { display: grid; gap: 14px; }
.aside .card { padding: 22px; }
