/* The Listening Rain shops: shared layout and form pieces.
   Each shop's own world (colours, type, hero, shapes) lives in t-<store>.css.
   The CSP has no 'unsafe-inline': never write style="" in the HTML or in markup built by scripts. */

:root {
  --pad: 24px; --wrap: 1200px; --top: 56px; --radius: 4px;
  --bg: #fff; --ink: #111; --muted: #666; --line: #cfcfcf;
  --accent: #111; --on-accent: #fff; --card: transparent; --field: #fff;
  --text: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: var(--text);
}
@media (min-width: 375px) { :root { --pad: 28px; } }
@media (min-width: 640px) { :root { --pad: 32px; } }
@media (min-width: 1024px) { :root { --pad: 48px; --top: 64px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--text);
  -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.05; text-wrap: balance; }
p, ul, ol, figure, fieldset { margin: 0; padding: 0; border: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
img, canvas, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------------------------------------------------------------- top bar */
.top { position: sticky; top: 0; z-index: 30; height: var(--top); background: var(--bg); border-bottom: 1px solid var(--line); }
.top .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { font: 700 16px/1 var(--display); text-decoration: none; white-space: nowrap; }
.top-cta { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: var(--radius);
  background: var(--accent); color: var(--on-accent); font: 700 14px/1 var(--text); text-decoration: none; white-space: nowrap; }

/* ---------------------------------------------------------------- buttons, sections */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 28px;
  border: 0; border-radius: var(--radius); background: var(--accent); color: var(--on-accent);
  font: 700 17px/1.2 var(--text); text-decoration: none; text-align: center; cursor: pointer; }
.btn:disabled { opacity: .55; cursor: default; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.tone { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 20px; border: 1.5px solid var(--line); border-radius: var(--radius);
  background: transparent; color: var(--ink); font: 600 15.5px/1 var(--text); cursor: pointer; }
.tone svg { flex: none; width: 14px; height: 14px; fill: currentColor; }
.tone .pause, .tone.on .tri { display: none; }      /* a listening button shows a triangle, and two bars while it plays */
.tone.on .pause { display: block; }
.btn:focus-visible, .top-cta:focus-visible, .chip:focus-visible, .play:focus-visible, summary:focus-visible, .tone:focus-visible {
  outline: 2px solid var(--ink); outline-offset: 3px; }

section { padding: 72px 0; }
@media (min-width: 1024px) { section { padding: 112px 0; } }
h2 { font-size: clamp(30px, 4.4vw, 52px); }
.sub { margin-top: 16px; max-width: 56ch; color: var(--muted); font-size: 18px; }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; max-width: 54ch; }
.note { font-size: 14.5px; color: var(--muted); }

/* ---------------------------------------------------------------- the maker (order form) */
.maker-grid { display: grid; gap: 32px; margin-top: 40px; }
.maker-steps { min-width: 0; }
.maker-visual { min-width: 0; }
@media (min-width: 960px) {
  .maker-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: start; }
  .maker-visual { position: sticky; top: calc(var(--top) + 24px); }
}
@media (max-width: 959px) {
  /* on a phone the picture that changes stays in view above the controls */
  .maker-visual.pin { position: sticky; top: var(--top); z-index: 6; background: var(--bg);
    margin: 0 calc(var(--pad) * -1); padding: 12px var(--pad); border-bottom: 1px solid var(--line); }
}
.step { margin-top: 40px; }
.step:first-child { margin-top: 0; }
.step h3 { display: flex; align-items: baseline; gap: 12px; font-size: 22px; line-height: 1.15; margin-bottom: 16px; }
.step h3 i { font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; }

.field { display: block; margin-top: 20px; }
.step h3 + .field { margin-top: 0; }
.field > span { display: block; font: 600 14.5px/1.3 var(--text); margin-bottom: 8px; }
.field input, .field textarea { display: block; width: 100%; font: 500 17px/1.4 var(--text); color: var(--ink);
  background: var(--field); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 14px 16px;
  -webkit-appearance: none; appearance: none; }
.field textarea { resize: none; min-height: 84px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .75; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field small { display: block; margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.field .count { text-align: right; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: baseline; gap: 6px; min-height: 40px; padding: 9px 14px; border: 1.5px solid var(--line);
  border-radius: var(--radius); background: var(--card); color: var(--ink); font: 600 15px/1.2 var(--text); cursor: pointer;
  position: relative; -webkit-tap-highlight-color: transparent; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { font-weight: 500; font-size: 13px; color: var(--muted); }
.chip.on, .chip:has(input:checked) { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip.on span, .chip:has(input:checked) span { color: inherit; opacity: .7; }
.chip:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }

/* what can be bought: each one has its own small picture of time */
.items { display: grid; gap: 10px; }
.item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 16px 18px 18px;
  border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--card); cursor: pointer;
  -webkit-tap-highlight-color: transparent; }
.item input { position: absolute; opacity: 0; pointer-events: none; }
.item:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.item:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
.item b { font: 700 19px/1.2 var(--display); }
.item em { font-style: normal; font-weight: 700; font-size: 19px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.item .tag { grid-column: 1 / -1; font-size: 14.5px; font-weight: 600; }
.item small { grid-column: 1 / -1; font-size: 14.5px; line-height: 1.45; color: var(--muted); }
.item .time { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin-top: 10px; font: 600 13px/1 var(--text);
  font-variant-numeric: tabular-nums; }
.item .bar { position: relative; height: 6px; background: var(--line); border-radius: 3px; flex: none; }
.item .bar::after { content: ""; position: absolute; inset: 0; background: var(--ink); border-radius: 3px; }
.item .bar.w3m { width: 54px; } .item .bar.w3h { width: 120px; } .item .bar.w5h { width: 200px; }
.item .bolt { position: absolute; left: 66.7%; top: 50%; width: 14px; height: 20px; margin: -10px 0 0 -7px; fill: var(--accent); stroke: var(--bg);
  stroke-width: 1.5; paint-order: stroke; z-index: 1; }

.sounds { display: grid; gap: 8px; }
@media (min-width: 600px) { .sounds { grid-template-columns: 1fr 1fr; } }
.sound { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; min-height: 64px;
  border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--card); cursor: pointer;
  -webkit-tap-highlight-color: transparent; }
.sound input { position: absolute; opacity: 0; pointer-events: none; }
.sound:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.play { flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--ink); color: var(--bg);
  display: grid; place-items: center; cursor: pointer; }
.play svg { width: 15px; height: 15px; fill: currentColor; }
.play .pause, .play.on .tri { display: none; }
.play.on .pause { display: block; }
.sound .txt b { display: block; font-size: 15.5px; line-height: 1.25; }
.sound .txt small { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.35; color: var(--muted); }
.fixed-sound { margin-top: 24px; font-size: 14.5px; color: var(--muted); }

.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; font-size: 14.5px; line-height: 1.45; cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--accent); }
.pay-step .btn, .btn.pay { width: 100%; margin-top: 24px; }
.err { margin-top: 12px; padding: 12px 14px; border-left: 4px solid #c8321e; background: #fbe9e5; color: #7a1c0f; font-size: 15px; font-weight: 600; }
.okmsg { margin-top: 12px; padding: 12px 14px; border-left: 4px solid #1f7a4d; background: #e6f4ec; color: #14532f; font-size: 15px; font-weight: 600; }
.secure { margin-top: 12px; font-size: 13.5px; color: var(--muted); }

/* ---------------------------------------------------------------- what you get, legend, custom, questions */
.get .wrap { display: grid; gap: 32px; }
@media (min-width: 900px) { .get .wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: start; } }
.get-list { display: grid; gap: 0; border-top: 1.5px solid var(--ink); }
.get-list li { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.get-list b { font-weight: 700; }
@media (max-width: 479px) { .get-list li { grid-template-columns: 1fr; gap: 2px; } }

.legend .wrap { max-width: 820px; }
.story { margin-top: 20px; font-size: clamp(19px, 2vw, 24px); line-height: 1.5; }
.story.last { font-weight: 700; }

.fold { border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.fold > summary, .faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer;
  list-style: none; padding: 20px 0; font: 700 19px/1.3 var(--display); }
.fold > summary::-webkit-details-marker, .faq-list summary::-webkit-details-marker { display: none; }
.fold > summary::after, .faq-list summary::after { content: "+"; flex: none; font: 400 26px/1 var(--text); }
.fold[open] > summary::after, .faq-list details[open] summary::after { content: "–"; }
.fold .reqform { max-width: 620px; padding-bottom: 32px; }
.fold .reqform .btn { margin-top: 24px; }
.custom { padding-bottom: 0; }
.custom h2 { margin-bottom: 32px; }
.faq-list { margin-top: 32px; border-top: 1.5px solid var(--ink); max-width: 860px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { font-size: 18px; padding: 18px 0; }
.faq-list p { padding: 0 0 20px; max-width: 64ch; color: var(--muted); }

footer { padding: 40px 0 56px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 16px; }
footer nav a { color: var(--ink); font-weight: 600; }
footer p { margin-top: 6px; max-width: 70ch; }

/* ---------------------------------------------------------------- plain pages (terms, privacy) and the order page */
main.plain .wrap { max-width: 760px; padding-top: 56px; padding-bottom: 72px; }
main.plain h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 24px; }
main.plain h2 { font-size: 22px; margin: 32px 0 8px; }
main.plain p, main.plain li { margin-top: 10px; }
main.plain ul { list-style: disc; padding-left: 1.2em; }
.draft { margin: 16px 0 24px; padding: 12px 14px; background: #fff3c4; color: #5c4400; font-weight: 700; }
/* pages that belong to no single shop (terms, privacy, an order before its shop is known) */
body.paper { --bg: #f4f1ea; --ink: #14110f; --muted: #5f5850; --line: #d6cfc2; --card: #fbf9f4; --display: 'Fraunces', Georgia, serif; }
body.paper .brand { font-weight: 800; font-size: 19px; }
body.paper h1 { font-weight: 800; letter-spacing: -.015em; }

main.status .wrap { max-width: 720px; padding-top: 56px; padding-bottom: 88px; text-align: center; }
main.status h1 { font-size: clamp(32px, 5.4vw, 56px); }
main.status .what { font: 600 15px/1.3 var(--text); color: var(--muted); margin-bottom: 14px; }
main.status .msg { margin: 16px auto 0; max-width: 46ch; font-size: 18px; color: var(--muted); }
.track { display: flex; justify-content: center; gap: 0; margin: 36px auto 0; max-width: 420px; }
.track li { flex: 1; position: relative; padding-top: 22px; font: 600 14px/1.2 var(--text); color: var(--muted); }
.track li::before { content: ""; position: absolute; top: 4px; left: 0; right: 0; height: 4px; background: var(--line); }
.track li.done::before, .track li.now::before { background: var(--accent); }
.track li.done, .track li.now { color: var(--ink); }
.track li.now::after { content: ""; position: absolute; top: 4px; left: 0; right: 0; height: 4px; background: var(--bg); opacity: .55;
  animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0; } }
.ticket { margin: 40px auto 0; max-width: 520px; padding: 28px 24px; border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--card); }
.ticket .t-kick { font: 600 13.5px/1.3 var(--text); color: var(--muted); }
.ticket .t-main { margin-top: 8px; font: 800 clamp(30px, 6vw, 44px)/1.05 var(--display); overflow-wrap: anywhere; }
.ticket .t-line { margin-top: 10px; font-size: 18px; line-height: 1.4; overflow-wrap: anywhere; }
.ticket.board .t-line { white-space: pre-line; text-align: left; font-size: 16px; line-height: 1.5; }
.ticket .t-no { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); font: 600 14px/1.3 var(--text);
  font-variant-numeric: tabular-nums; color: var(--muted); }
.files { margin: 28px auto 0; max-width: 520px; display: grid; gap: 10px; }
.files a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 20px; border-radius: var(--radius);
  background: var(--accent); color: var(--on-accent); text-decoration: none; }
.files b { font-size: 18px; }
.files span { font-size: 13.5px; opacity: .8; }
.small-note { margin: 16px auto 0; max-width: 48ch; font-size: 14.5px; color: var(--muted); }
.listen { margin: 48px auto 0; max-width: 520px; text-align: left; padding-top: 24px; border-top: 1.5px solid var(--ink); }
.listen h2 { font-size: 24px; margin-bottom: 10px; }
.listen p { color: var(--muted); }

/* ---------------------------------------------------------------- a shop with few words (body[data-compact]): Golden Money.
   Headings, pictures and choices stay; explanations are left to the questions at the bottom. */
[data-compact] .item small, [data-compact] .sound .txt small, [data-compact] .get .sub, [data-compact] .get-list span,
[data-compact] .legend .story:first-of-type { display: none; }
[data-compact] .get .wrap { grid-template-columns: 1fr; gap: 28px; }
[data-compact] .get-list { grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 0; gap: 10px; }
[data-compact] .get-list li { display: block; padding: 18px 16px; border: 1.5px solid var(--ink); border-radius: var(--radius); font: 700 17px/1.25 var(--display); }
@media (min-width: 900px) { [data-compact] .get-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------------------------------------------------------------- the buyer's own page plays it: energy blends, angel numbers */
.pl { margin: 36px auto 0; max-width: 520px; }
main.status.blend-page h1 { font-size: clamp(28px, 4vw, 40px); }
.pl-name { margin-top: 26px; font: 700 clamp(26px, 5vw, 38px)/1.05 var(--display); letter-spacing: -.02em; }
.pl-tones { margin-top: 10px; font: 500 14.5px/1.4 var(--display); color: var(--muted); font-variant-numeric: tabular-nums; }
.pl-go { display: grid; place-items: center; width: 88px; height: 88px; margin: 26px auto 0; padding: 0; border: 0; border-radius: 50%; background: var(--ink); color: var(--bg); cursor: pointer; }
.pl-go svg { width: 30px; height: 30px; fill: currentColor; }
.pl-go .pause, .pl-go.on .tri { display: none; }
.pl-go.on .pause { display: block; }
.pl-go:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.pl-clock { margin-top: 14px; font: 500 17px/1.2 var(--display); font-variant-numeric: tabular-nums; }
.pl-len { justify-content: center; margin-top: 22px; }
.pl-hint { margin: 22px auto 0; max-width: 44ch; font-size: 14.5px; color: var(--muted); }
main.status.reading-page .pl-name { margin-top: 18px; font-size: clamp(64px, 14vw, 120px); font-weight: 400; font-variant-numeric: lining-nums; }
main.status.reading-page h1 { font-size: clamp(28px, 4vw, 40px); }
.rd { margin: 56px auto 0; max-width: 620px; text-align: left; border-top: 1.5px solid var(--ink); }
.rd h2 { margin-top: 32px; font-size: 24px; }
.rd p { margin-top: 10px; }
.rd .rd-lead { font: 500 clamp(20px, 2.4vw, 24px)/1.4 var(--display); }
