/* Porchlight FM: the website. Colours and lettering follow the iPhone app (ios/LofiRadio/Theme.swift):
   Porchlight Live's night blue and porch-lamp amber, Besley for the wordmark, each station's own face. */

/* ---- type ---------------------------------------------------------------- */

@font-face { font-family: 'Besley'; src: url('/fonts/Besley-Variable.woff') format('woff'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'Gabarito'; src: url('/fonts/Gabarito-Variable.woff') format('woff'); font-weight: 400 900; font-display: swap; }
/* Station lettering, made for the app by ios/tools/make_station_fonts.py */
@font-face { font-family: 'Porchlight Strings'; src: url('/fonts/PorchlightStrings-Regular.woff') format('woff'); font-display: swap; }
@font-face { font-family: 'Porchlight Signpaint'; src: url('/fonts/PorchlightSignpaint-Regular.woff') format('woff'); font-display: swap; }
@font-face { font-family: 'Porchlight Fizz'; src: url('/fonts/PorchlightFizz-Regular.woff') format('woff'); font-display: swap; }
@font-face { font-family: 'Porchlight Lane'; src: url('/fonts/PorchlightLane-Regular.woff') format('woff'); font-display: swap; }
@font-face { font-family: 'Porchlight Matrix'; src: url('/fonts/PorchlightMatrix-Regular.woff') format('woff'); font-display: swap; }
@font-face { font-family: 'Porchlight Static'; src: url('/fonts/PorchlightStatic-Regular.woff') format('woff'); font-display: swap; }
/* The hosts' handwriting */
@font-face { font-family: 'Pinyon Script'; src: url('/fonts/PinyonScript-Regular.woff') format('woff'); font-display: swap; }
@font-face { font-family: 'Italianno'; src: url('/fonts/Italianno-Regular.woff') format('woff'); font-display: swap; }
@font-face { font-family: 'Homemade Apple'; src: url('/fonts/HomemadeApple-Regular.woff') format('woff'); font-display: swap; }
@font-face { font-family: 'Cedarville Cursive'; src: url('/fonts/CedarvilleCursive-Regular.woff') format('woff'); font-display: swap; }
@font-face { font-family: 'Covered By Your Grace'; src: url('/fonts/CoveredByYourGrace-Regular.woff') format('woff'); font-display: swap; }
@font-face { font-family: 'Gochi Hand'; src: url('/fonts/GochiHand-Regular.woff') format('woff'); font-display: swap; }
@font-face { font-family: 'Rock Salt'; src: url('/fonts/RockSalt-Regular.woff') format('woff'); font-display: swap; }
@font-face { font-family: 'Permanent Marker'; src: url('/fonts/PermanentMarker-Regular.woff') format('woff'); font-display: swap; }
@font-face { font-family: 'Sedgwick Ave'; src: url('/fonts/SedgwickAve-Regular.woff') format('woff'); font-display: swap; }
@font-face { font-family: 'Kaushan Script'; src: url('/fonts/KaushanScript-Regular.woff') format('woff'); font-display: swap; }
@font-face { font-family: 'Reenie Beanie'; src: url('/fonts/ReenieBeanie-Regular.woff') format('woff'); font-display: swap; }
@font-face { font-family: 'Annie Use Your Telescope'; src: url('/fonts/AnnieUseYourTelescope-Regular.woff') format('woff'); font-display: swap; }

/* ---- tokens -------------------------------------------------------------- */

:root {
  color-scheme: dark;
  --night: #11151D;        /* Porchlight Live, low */
  --dusk: #1B2130;         /* Porchlight Live, high */
  --paper: #F3E1B6;        /* ink */
  --straw: #BDAE8C;        /* soft ink */
  --lamp: #F2B95A;         /* the on-air lamp: light, never text */
  --lamp-hot: #FFD27A;
  --line: rgba(243, 225, 182, 0.16);
  --line-strong: rgba(243, 225, 182, 0.32);
  --wash: rgba(243, 225, 182, 0.05);
  --serif: 'Besley', 'Iowan Old Style', Georgia, serif;
  --sans: 'Gabarito', ui-rounded, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --measure: 38rem;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--night);
  color: var(--paper);
  font: 460 1.0625rem/1.6 var(--serif);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-color: var(--lamp); }
:focus-visible { outline: 2px solid var(--lamp-hot); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(242, 185, 90, 0.35); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 20; background: var(--paper); color: var(--night); padding: 10px 14px; border-radius: 8px; font: 600 0.95rem var(--sans); }
.skip:focus { left: 8px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.08; letter-spacing: -0.012em; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
.small { font: 500 0.875rem/1.45 var(--sans); color: var(--straw); }

/* ---- top bar --------------------------------------------------------------- */

.bar {
  position: absolute; inset: 0 0 auto 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--gutter);
}
.bar.solid { position: relative; border-bottom: 1px solid var(--line); background: var(--night); }
.wordmark { font: 600 1.25rem/1 var(--serif); letter-spacing: -0.01em; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.wordmark .disc { width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle, #FFFAE6 0, #FFE39A 45%, #FFB93E 86%, rgba(242, 162, 42, 0) 100%); box-shadow: 0 0 14px rgba(255, 210, 122, 0.45); }
.nav { display: flex; align-items: center; gap: clamp(8px, 2.4vw, 28px); font: 560 0.95rem/1 var(--sans); }
.nav a { text-decoration: none; color: var(--straw); padding: 12px 2px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--paper); }
.nav .pill { color: var(--night); background: var(--paper); border-radius: 999px; padding: 11px 16px; }
.nav .pill:hover { color: var(--night); background: var(--lamp-hot); }
.wordmark, .nav a { white-space: nowrap; }
@media (max-width: 560px) { .nav .wide { display: none; } }
@media (max-width: 400px) {
  .wordmark { font-size: 1.08rem; gap: 8px; }
  .nav { gap: 14px; font-size: 0.9rem; }
  .nav .pill { padding: 10px 13px; }
}

/* ---- the live player (home) ---------------------------------------------- */

.live {
  /* The playing station's own colours (Theme.swift, dark). Porchlight Live by default. */
  --sky: var(--dusk); --ground: var(--night); --ink: var(--paper); --soft: var(--straw);
  --glow: var(--lamp-hot); --hand: var(--lamp-hot);
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh; min-height: max(620px, 100svh);
  display: grid; grid-template-rows: auto 1fr auto;
  padding: 92px var(--gutter) clamp(28px, 5vh, 56px);
  background: linear-gradient(var(--sky), var(--ground));
  color: var(--ink);
}
/* Main Character FM: plum at night, a sunset-coloured pulse, Fizz lettering, Gabarito for titles. */
.live[data-station="pop"] { --sky: #241131; --ground: #180B22; --ink: #FFDCE6; --soft: #D3A9BF; --glow: #FFB45C; --hand: #FF9E7A; }
.live[data-station="pop"] h1 { font-weight: 400; letter-spacing: -0.015em; line-height: 0.95; font-size: clamp(3rem, 7vw, 6rem); }
.live[data-station="pop"] .song .title { font-family: var(--sans); font-weight: 760; letter-spacing: -0.015em; line-height: 0.98; }
.live .status, .live .byline, .live .song .artist, .live .volume { color: var(--soft); }
.live .byline .from { color: var(--ink); }
.live .signature { color: var(--hand); }
.live .listen { background: var(--ink); color: var(--ground); }
.live .listen:hover { background: var(--glow); }
.live .volume input { accent-color: var(--glow); }
.live .status[data-state="idle"] .lamp, .live .status[data-state="onair"] .lamp, .live .status[data-state="host"] .lamp { background: var(--glow); }
.live canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.live .top { display: flex; flex-direction: column; gap: 6px; max-width: 46rem; }
.status { display: inline-flex; align-items: center; gap: 9px; font: 650 0.8125rem/1 var(--sans); letter-spacing: 0.08em; color: var(--straw); min-height: 24px; }
.status .lamp { width: 9px; height: 9px; border-radius: 50%; background: rgba(243, 225, 182, 0.25); transition: background 0.4s, box-shadow 0.4s; }
.status[data-state="onair"] .lamp, .status[data-state="host"] .lamp { background: var(--lamp-hot); box-shadow: 0 0 10px 2px rgba(255, 210, 122, 0.6); }
.status[data-state="idle"] .lamp { background: var(--lamp); box-shadow: 0 0 6px 1px rgba(255, 210, 122, 0.35); }
.status[data-state="tuning"] .lamp { background: var(--lamp); animation: blink 1.1s ease-in-out infinite; }
.status[data-state="offair"] .lamp { background: #8C7B66; }
@keyframes blink { 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .status[data-state="tuning"] .lamp { animation: none; } }
.live h1 { font-size: clamp(3rem, 9.5vw, 7.5rem); font-weight: 700; line-height: 0.9; letter-spacing: -0.02em; margin-top: 6px; }
.byline { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 0.45em; font: 500 clamp(1rem, 1.6vw, 1.2rem)/1.3 var(--sans); color: var(--straw); margin-top: 10px; min-height: 2.6em; }
.byline .from { color: var(--paper); }
.signature { display: inline-block; color: var(--lamp-hot); transform: rotate(-4deg); transform-origin: left center; line-height: 1; padding: 0.1em 0.05em 0.25em; white-space: nowrap; }
.byline .signature { font-size: calc(var(--hand-scale, 1) * clamp(1.6rem, 3vw, 2.3rem)); margin-left: 0.1em; }

.live .bottom { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 20px 28px; }
.song { min-width: 0; max-width: 52rem; }
.song .title { font: 700 clamp(2rem, 5.6vw, 4.6rem)/1.02 var(--serif); letter-spacing: -0.015em; margin: 0; overflow-wrap: anywhere; text-wrap: balance; padding-bottom: 0.06em; }
.song .artist { font: 500 clamp(1rem, 1.7vw, 1.3rem)/1.35 var(--sans); color: var(--straw); margin: 8px 0 0; overflow-wrap: anywhere; }
.controls { display: flex; align-items: center; gap: 14px; }
.listen {
  appearance: none; border: 0; cursor: pointer; color: var(--night); background: var(--paper);
  min-height: 64px; min-width: 64px; border-radius: 999px; padding: 0 26px 0 20px;
  display: inline-flex; align-items: center; gap: 12px; font: 650 1.05rem/1 var(--sans);
  box-shadow: 0 0 0 0 rgba(255, 210, 122, 0.0), 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: background 0.2s, box-shadow 0.4s, transform 0.12s;
}
.listen:hover { background: var(--lamp-hot); }
.listen:active { transform: scale(0.97); }
.listen svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.listen[data-mode="mute"], .listen[data-mode="unmute"] { padding: 0; width: 64px; justify-content: center; }
.listen[data-mode="mute"] .word, .listen[data-mode="unmute"] .word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.volume { display: flex; align-items: center; gap: 10px; color: var(--straw); }
.volume input { width: 120px; accent-color: var(--lamp); }
@media (max-width: 720px) {
  .live .bottom { grid-template-columns: 1fr; }
  .controls { justify-content: space-between; }
  .volume input { width: 140px; }
}
@media (hover: none) and (pointer: coarse) { .volume { display: none; } }  /* phones keep their own volume buttons */
.note-off { font: 500 0.9rem/1.4 var(--sans); color: var(--straw); margin: 10px 0 0; max-width: 34rem; }

/* ---- sections -------------------------------------------------------------- */

.section { padding: clamp(64px, 10vw, 128px) var(--gutter); }
.section + .section { border-top: 1px solid var(--line); }
.lede { max-width: var(--measure); }
.section h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); margin-bottom: 18px; }
.lede p { font-size: 1.125rem; color: var(--paper); }
.lede .small { font-size: 0.95rem; }

/* The six stations, as on the app's home screen: themed tiles, two across on a phone. */
.rooms { list-style: none; margin: clamp(32px, 5vw, 56px) 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 980px) { .rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .rooms { gap: 8px; } }
.room {
  --stock: #171B24; --sky: #1B2130; --ink: #F3E1B6; --soft: #BDAE8C; --pen: #F2B95A;
  position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius);
  background: linear-gradient(var(--sky), var(--stock)); color: var(--ink);
  min-height: clamp(220px, 26vw, 300px); padding: clamp(16px, 2.2vw, 26px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
}
.room canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0.55; }
.room .name { font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 0.92; margin: 0; overflow-wrap: anywhere; padding-bottom: 0.05em; }
.room .about { font: 500 0.875rem/1.35 var(--sans); color: var(--soft); margin: 8px 0 0; }
.room .hosts { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.room .hosts li { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-width: 0; }
.room .hosts .signature { color: var(--pen); font-size: calc(var(--hand-scale, 1) * clamp(1.45rem, 2.5vw, 2.05rem)); transform: rotate(-5deg); overflow: visible; }
.room .hosts li + li { margin-top: 4px; }
.room .hosts .when { font: 500 0.75rem/1.2 var(--sans); color: var(--soft); white-space: nowrap; text-align: right; }
.room .hosts .on { color: var(--ink); }
.room .hosts .on::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; background: var(--pen); box-shadow: 0 0 8px var(--pen); }
@media (max-width: 420px) {
  .room { min-height: 200px; padding: 14px; }
  .room .hosts li { flex-direction: column; align-items: flex-start; gap: 0; }
  .room .hosts .when { text-align: left; }
}

.room[data-id="classical"] { --stock: #1B0A0E; --sky: #200C10; --ink: #F3E2BE; --soft: #C4A383; --pen: #E3B768; }
.room[data-id="country"] { --stock: #0C1C22; --sky: #0F242B; --ink: #F8E2C4; --soft: #C9B899; --pen: #F2D27A; }
.room[data-id="pop"] { --stock: #1E0E2A; --sky: #241131; --ink: #FFDCE6; --soft: #D3A9BF; --pen: #FF9E7A; }
.room[data-id="classic-rock"] { --stock: #17120E; --sky: #1B1510; --ink: #EBD3A4; --soft: #BFA57A; --pen: #F0A23C; }
.room[data-id="hip-hop"] { --stock: #111530; --sky: #161A3C; --ink: #F6E5B8; --soft: #B5B3D6; --pen: #F5B847; }
.room[data-id="alternative"] { --stock: #131312; --sky: #0B0B0A; --ink: #E7E4D7; --soft: #A9A79C; --pen: #F0654C; }

.face-classical { font-family: 'Porchlight Strings', var(--serif); font-weight: 400; font-size: 1.06em; letter-spacing: 0; }
.face-country { font-family: 'Porchlight Signpaint', var(--serif); font-weight: 400; font-size: 0.92em; letter-spacing: -0.015em; }
.face-pop { font-family: 'Porchlight Fizz', var(--sans); font-weight: 400; font-size: 0.94em; letter-spacing: -0.015em; }
.face-classic-rock { font-family: 'Porchlight Lane', var(--sans); font-weight: 400; font-size: 1.16em; letter-spacing: 0.005em; text-transform: uppercase; }
.face-hip-hop { font-family: 'Porchlight Matrix', var(--sans); font-weight: 400; font-size: 0.98em; }
.face-alternative { font-family: 'Porchlight Static', var(--sans); font-weight: 400; font-size: 0.84em; letter-spacing: -0.005em; }

/* Each host's hand, as in Brand.hands. --hand-scale evens out how big the faces look. */
.hand-edmund { font-family: 'Pinyon Script', cursive; --hand-scale: 1.5; }
.hand-cordelia { font-family: 'Italianno', cursive; --hand-scale: 1.78; }
.hand-darlene { font-family: 'Homemade Apple', cursive; --hand-scale: 0.92; }
.hand-virgil { font-family: 'Cedarville Cursive', cursive; --hand-scale: 1.15; }
.hand-juno { font-family: 'Covered By Your Grace', cursive; --hand-scale: 1.45; }
.hand-teddy { font-family: 'Gochi Hand', cursive; --hand-scale: 1.22; }
.hand-hank { font-family: 'Rock Salt', cursive; --hand-scale: 0.8; }
.hand-frankie { font-family: 'Permanent Marker', cursive; --hand-scale: 1.06; }
.hand-marcus { font-family: 'Sedgwick Ave', cursive; --hand-scale: 1.2; }
.hand-nia { font-family: 'Kaushan Script', cursive; --hand-scale: 1.1; }
.hand-kayte { font-family: 'Reenie Beanie', cursive; --hand-scale: 1.7; }
.hand-wendell { font-family: 'Annie Use Your Telescope', cursive; --hand-scale: 1.38; text-transform: lowercase; }
.hand-house { font-family: 'Homemade Apple', cursive; --hand-scale: 0.92; }

/* The app */
.app { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .app { grid-template-columns: 1fr; } }
.features { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.features li { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 11rem 1fr; gap: 4px 20px; }
.features b { font: 650 1rem/1.4 var(--sans); }
.features span { color: var(--straw); font: 450 1rem/1.5 var(--sans); }
@media (max-width: 560px) { .features li { grid-template-columns: 1fr; } }
.store { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; min-height: 52px; padding: 0 22px; border-radius: 999px; text-decoration: none; font: 650 1rem/1 var(--sans); background: var(--paper); color: var(--night); }
.store:hover { background: var(--lamp-hot); }
.store[aria-disabled="true"] { background: transparent; color: var(--straw); border: 1px solid var(--line-strong); cursor: default; }
.store svg { width: 18px; height: 18px; fill: currentColor; }

/* ---- footer ---------------------------------------------------------------- */

.foot { border-top: 1px solid var(--line); padding: 36px var(--gutter) 48px; display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; justify-content: space-between; font: 500 0.9rem/1.4 var(--sans); color: var(--straw); }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot a { text-decoration: none; padding: 10px 0; display: inline-block; }
.foot a:hover { color: var(--paper); }

/* ---- long-form pages (advertise, privacy, terms) ---------------------------- */

.page { padding: clamp(48px, 8vw, 104px) var(--gutter) clamp(64px, 10vw, 120px); }
.page > header { max-width: 50rem; margin-bottom: clamp(40px, 6vw, 72px); }
.page h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: 0.95; letter-spacing: -0.02em; }
.page .intro { font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.5; margin-top: 22px; max-width: 40rem; }
.page h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: clamp(56px, 8vw, 96px) 0 18px; }
.page h3 { font-size: 1.25rem; margin: 32px 0 8px; }
.prose { max-width: var(--measure); }
.prose p, .prose li { line-height: 1.68; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--straw); }
.prose strong { font-weight: 650; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.88em; color: var(--straw); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px clamp(32px, 6vw, 80px); }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }

.draft { margin: 0 0 32px; padding: 14px 18px; border: 1px dashed var(--lamp); border-radius: 10px; color: var(--paper); font: 500 0.95rem/1.5 var(--sans); max-width: 50rem; }
.draft b { color: var(--lamp-hot); }

/* The sequence a spot goes through */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; max-width: 72rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; padding: 18px 0 22px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 2.2rem 1fr; gap: 2px 8px; }
.steps li::before { content: counter(step); grid-row: span 2; font: 700 1.25rem/1.3 var(--serif); color: var(--lamp); }
.steps b { font: 650 1rem/1.4 var(--sans); }
.steps span { font: 450 0.95rem/1.5 var(--sans); color: var(--straw); }

/* The rate card */
.rates { max-width: 72rem; }
.rates h3 { font: 650 0.95rem/1.3 var(--sans); color: var(--straw); margin: 44px 0 4px; letter-spacing: 0.01em; }
.rates h3:first-child { margin-top: 0; }
.rate { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) minmax(7.5rem, auto); gap: 4px 28px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.rate:first-of-type { border-top: 1px solid var(--line); }
.rate .what { font: 650 1.0625rem/1.35 var(--sans); }
.rate .how { color: var(--straw); font: 450 0.98rem/1.5 var(--sans); }
.rate .how em { font-style: normal; color: var(--paper); }
.rate .price { font: 700 1.25rem/1.25 var(--serif); text-align: right; white-space: nowrap; }
.rate .price small { display: block; font: 500 0.8rem/1.3 var(--sans); color: var(--straw); white-space: normal; }
@media (max-width: 720px) {
  .rate { grid-template-columns: minmax(0, 1fr) auto; }
  .rate .how { grid-column: 1 / -1; grid-row: 2; }
}
/* "Hear a sample" under a package: the button fills from left to right as the sample plays. */
.sample { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 12px; }
.hear {
  --p: 0%;
  appearance: none; cursor: pointer; border: 1px solid var(--line-strong); border-radius: 999px;
  min-height: 40px; padding: 0 16px 0 12px; display: inline-flex; align-items: center; gap: 9px;
  font: 600 0.9rem/1 var(--sans); color: var(--paper);
  background: linear-gradient(90deg, rgba(242, 185, 90, 0.22) var(--p), transparent var(--p));
}
.hear:hover { border-color: var(--lamp); }
.hear[data-state="playing"] { border-color: var(--lamp); }
.hear .icon { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; align-items: center; justify-content: center; background: var(--paper); color: var(--night); }
.hear .icon svg { width: 11px; height: 11px; fill: currentColor; }
.hear .len { color: var(--straw); font-weight: 500; font-variant-numeric: tabular-nums; }
.said { font: 450 0.9rem/1.5 var(--sans); color: var(--straw); }
.said summary { cursor: pointer; color: var(--straw); min-height: 40px; display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.said summary::-webkit-details-marker { display: none; }
.said summary { list-style: none; }
.said[open] { flex-basis: 100%; }
.said p { margin: 6px 0 0; max-width: 40rem; }
.said b { color: var(--paper); font-weight: 600; }
.founding { margin-top: 28px; max-width: 46rem; padding-left: 18px; border-left: 2px solid var(--lamp); }
.founding p { margin: 0; font-size: 1.08rem; }

/* The request form */
.form { max-width: 46rem; display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field > label, .field > legend, .group > legend { font: 650 0.95rem/1.3 var(--sans); padding: 0; }
.field .hint { font: 450 0.85rem/1.4 var(--sans); color: var(--straw); margin-top: -4px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 600px) { .row { grid-template-columns: 1fr; } }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="date"], select, textarea {
  width: 100%; font: 450 1rem/1.4 var(--sans); color: var(--paper); background: rgba(243, 225, 182, 0.04);
  border: 1px solid var(--line-strong); border-radius: 10px; padding: 13px 14px; min-height: 48px;
}
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--lamp-hot); outline-offset: 1px; border-color: transparent; }
input::placeholder, textarea::placeholder { color: rgba(189, 174, 140, 0.65); }
textarea { min-height: 8.5rem; resize: vertical; }
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(0.85) sepia(0.3); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 8px; margin-top: 10px; }
.choice { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; min-height: 48px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font: 500 0.95rem/1.35 var(--sans); }
.choice:hover { border-color: var(--line-strong); }
.choice:has(input:checked) { border-color: var(--lamp); background: rgba(242, 185, 90, 0.07); }
.choice input { margin: 2px 0 0; accent-color: var(--lamp); width: 18px; height: 18px; flex: none; }
.choice small { display: block; color: var(--straw); font-size: 0.8rem; margin-top: 2px; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.send { justify-self: start; appearance: none; border: 0; cursor: pointer; min-height: 56px; padding: 0 28px; border-radius: 999px; background: var(--paper); color: var(--night); font: 650 1.05rem/1 var(--sans); }
.send:hover { background: var(--lamp-hot); }
.send[disabled] { opacity: 0.6; cursor: progress; }
.result { font: 500 1rem/1.5 var(--sans); padding: 16px 18px; border-radius: 10px; border: 1px solid var(--line-strong); }
.result[data-kind="ok"] { border-color: var(--lamp); }
.result[data-kind="bad"] { border-color: #E07A5F; }
.field[data-bad] input, .field[data-bad] textarea { border-color: #E07A5F; }
.field .err { font: 500 0.85rem/1.3 var(--sans); color: #F0A48C; }

.legal h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 48px 0 12px; }
.legal table { width: 100%; border-collapse: collapse; font: 450 0.95rem/1.5 var(--sans); margin: 8px 0 24px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.legal th { font-weight: 650; color: var(--paper); }
.legal td { color: var(--straw); }
.legal .table { overflow-x: auto; max-width: 100%; }
.updated { font: 500 0.9rem/1.4 var(--sans); color: var(--straw); margin-top: 14px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0.01ms !important; } }
