/* MySongPostcard — shared styles for the home and create pages.
   Identity: a warm, classic greeting card. Ivory paper, serif titles, handwriting accents.
   The retro moments live in three objects only: perforated stamps, the envelope + record, and record sleeves. */
:root {
  --paper: #f8f3ea;
  --paper-2: #efe6d6;
  --card: #fffcf6;
  --ink: #1c2a4a;
  --ink-soft: #6a6f82;
  --line: rgba(28, 42, 74, .14);
  --wine: #7a2232;
  --green: #24493b;
  --gold: #c9a45c;
  --gold-d: #96783a;
  --accent: var(--wine);
  --air-red: #a12c3a;
  --air-blue: #2f4674;
  --deep: #151d33;
  --read: "Newsreader", Georgia, serif;
  --hand: "Caveat", "Bradley Hand", cursive;
  --ui: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* stamp and record-sleeve lettering */
  --caps: "Oswald", "Arial Narrow", sans-serif;
  --numeral: "Abril Fatface", Georgia, serif;
  --script: "Yellowtail", "Brush Script MT", cursive;
  --stripe: repeating-linear-gradient(-45deg, var(--air-red) 0 9px, var(--card) 9px 18px, var(--air-blue) 18px 27px, var(--card) 27px 36px);
  /* sunburst: small printed objects only (stamps, sleeves) */
  --rays: repeating-conic-gradient(from 0deg at var(--rx, 50%) var(--ry, 50%), rgba(255, 240, 205, .07) 0 6deg, transparent 6deg 12deg);
  color-scheme: light;
}
/* each occasion tints the page: the paper takes its colour, and a soft glow of it rises from the corners.
   --glow is registered as a colour so the glow fades from one occasion to the next instead of jumping. */
@property --glow { syntax: "<color>"; inherits: true; initial-value: rgba(201, 164, 92, 0); }
body[data-mood="birthday"]  { --accent: #8a2638; --paper: #f9ede8; --paper-2: #f1ddd5; --glow: rgba(200, 80, 90, .2); }
body[data-mood="love"]      { --accent: #9a2f4a; --paper: #fbebed; --paper-2: #f3d9dd; --glow: rgba(214, 70, 110, .22); }
body[data-mood="christmas"] { --accent: #24493b; --paper: #eef2e8; --paper-2: #dde5d4; --glow: rgba(40, 110, 70, .2); }
body[data-mood="parents"]   { --accent: #a2513a; --paper: #fbefe2; --paper-2: #f3dfca; --glow: rgba(222, 150, 60, .24); }
body[data-mood="thanks"]    { --accent: #2f4674; --paper: #ecf0f6; --paper-2: #dbe2ee; --glow: rgba(60, 95, 165, .2); }
body[data-mood="baby"]      { --accent: #4d6694; --paper: #edf2fa; --paper-2: #dce5f3; --glow: rgba(120, 160, 225, .3); }
body[data-mood="faith"]     { --accent: #8a6a2a; --paper: #faf3e0; --paper-2: #f0e5c6; --glow: rgba(214, 170, 70, .26); }
body[data-mood="memory"]    { --accent: #5a5480; --paper: #f1eff6; --paper-2: #e2deec; --glow: rgba(120, 105, 170, .22); }
body[data-mood]::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(70vw 60vh at 100% 0%, var(--glow), transparent 70%), radial-gradient(60vw 50vh at 0% 100%, var(--glow), transparent 70%);
  transition: --glow .9s ease; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--read); font-size: 18px; line-height: 1.55; overflow-x: hidden; transition: background-color .9s ease; }
/* nothing may push the page sideways on a phone (the hero's tone arm and record reach past the edge).
   iOS Safari ignores overflow-x: hidden on body until the first scroll, so the page could be dragged left
   and right on arrival; clip on both html and body stops that and, unlike hidden, keeps sticky parts working */
@supports (overflow: clip) { html, body { overflow-x: clip; } }
img { max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--air-blue); outline-offset: 3px; }
[hidden] { display: none !important; }

.wrap { max-width: 1280px; margin: 0 auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-right, 0px)); }
.topband { border-top: 4px solid var(--accent); transition: border-color .6s ease; }

/* header */
.head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; flex-wrap: wrap; }
.logo { display: inline-block; white-space: nowrap; text-decoration: none; font-family: var(--read); font-weight: 600; font-size: 22px; }
.logo img { display: inline-block; vertical-align: middle; margin: -4px 10px 0 0; width: 40px; height: 40px; }
.logo span { color: var(--accent); font-style: italic; }
.nav { display: flex; align-items: center; gap: 24px; font-family: var(--ui); font-size: 14px; font-weight: 600; flex-wrap: wrap; }
.nav a { text-decoration: none; }
.nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 4px; }

.btn { display: inline-block; border: 0; border-radius: 999px; padding: 13px 26px; background: var(--accent); color: var(--card); text-decoration: none;
  font-family: var(--ui); font-weight: 700; font-size: 15px; letter-spacing: .02em; box-shadow: 0 8px 16px -10px var(--accent); transition: transform .15s, box-shadow .15s, background-color .6s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 20px -10px var(--accent); }
.btn:active { transform: translateY(1px); }
.btn.small { padding: 9px 18px; font-size: 14px; }
.btn.line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.line:hover { background: var(--ink); color: var(--card); }
.btn[disabled] { opacity: .4; cursor: not-allowed; }

/* type */
h1, h2, h3 { margin: 0; font-family: var(--read); font-weight: 400; text-wrap: balance; line-height: 1.08; }
h1 { font-size: clamp(42px, 7vw, 76px); letter-spacing: -.015em; }
h2 { font-size: clamp(30px, 4.2vw, 46px); }
h1 em, h2 em { font-family: var(--hand); font-style: normal; font-weight: 700; color: var(--accent); font-size: 1.15em; }
.band h2 em { color: var(--gold); }
.eyebrow { font-family: var(--ui); font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-d); margin: 0 0 12px; }
.band .eyebrow { color: var(--gold); }
.lede { font-size: 20px; color: var(--ink-soft); max-width: 34em; margin: 18px 0 0; }
section { padding-block: 64px; }
.sec-head { margin-bottom: 34px; }
.sec-head p.sub { margin: 12px 0 0; color: var(--ink-soft); max-width: 38em; }

/* hero */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 30px; align-items: center; padding-block: 30px 72px; }
.hero > * { min-width: 0; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; align-items: center; }
.hero-note { font-family: var(--ui); font-size: 13px; color: var(--ink-soft); margin-top: 18px; }
.hero-art { position: relative; height: 430px; }
.h-disc { position: absolute; right: 0; top: 0; width: 330px; max-width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: repeating-radial-gradient(circle, #0e0e10 0 1.5px, #1f1f23 1.5px 3px); box-shadow: 0 22px 40px -16px rgba(19, 26, 49, .7); animation: spin 8s linear infinite; }
.h-disc::before { content: "SONG POST ✦ 33⅓ RPM"; position: absolute; inset: 31%; border-radius: 50%; background: #d9a441; color: var(--deep); box-shadow: inset 0 0 0 3px #d9a441, inset 0 0 0 4.5px var(--deep);
  display: grid; place-items: start center; padding-top: 14%; font-family: var(--caps); font-size: 8px; font-weight: 600; letter-spacing: .08em; text-align: center; }
.h-disc::after { content: ""; position: absolute; inset: 47.5%; border-radius: 50%; background: var(--deep); }
@keyframes spin { to { transform: rotate(360deg); } }
.seal { position: absolute; left: 4%; top: 2%; width: 128px; transform: rotate(-12deg); filter: drop-shadow(0 8px 10px rgba(19, 26, 49, .3)); z-index: 3; }
/* ----- the envelope: airmail paper with grain, the back flap's crease showing through,
   a blue airmail sticker, a double-ring postmark and a red rubber stamp ----- */
:root {
  --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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .34 0 0 0 0 .22 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  --envelope-paper: var(--grain), radial-gradient(120% 90% at 20% 10%, #fffdf8 0%, #fbf5e8 55%, #f1e6d1 100%);
  /* the back flap's V seam, faintly visible through the paper */
  --flap: linear-gradient(to top right, transparent calc(50% - .6px), rgba(110, 88, 56, .09) 50%, transparent calc(50% + .6px)) 0 0 / 50% 62% no-repeat,
          linear-gradient(to top left, transparent calc(50% - .6px), rgba(110, 88, 56, .09) 50%, transparent calc(50% + .6px)) 100% 0 / 50% 62% no-repeat;
}
.postcard { position: absolute; left: 0; bottom: 4%; width: min(390px, 92%); padding: 9px; background: var(--grain), var(--stripe); border-radius: 3px; transform: rotate(-6deg); z-index: 2;
  box-shadow: 0 1px 1px rgba(19, 26, 49, .12), 0 24px 40px -18px rgba(19, 26, 49, .6); text-decoration: none; display: block; color: var(--ink); transition: transform .3s; }
a.postcard:hover { transform: rotate(-3deg) translateY(-6px); }
.pc-in { position: relative; overflow: hidden; background: var(--envelope-paper); height: 222px; padding: 16px 18px; display: flex; flex-direction: column; justify-content: flex-end;
  box-shadow: inset 0 0 22px rgba(120, 92, 52, .13), inset 0 0 0 1px rgba(120, 92, 52, .08); }
.pc-in::before { content: ""; position: absolute; inset: 0; background: var(--flap); pointer-events: none; }
/* red rubber stamp, a little uneven, like it was pressed by hand */
.pc-in::after { content: "♪ Special Delivery ♪"; position: absolute; right: 18px; bottom: 78px; padding: 3px 8px; border: 2px solid var(--air-red); outline: 1px solid var(--air-red); outline-offset: 2px;
  color: var(--air-red); font-family: var(--caps); font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; transform: rotate(-9deg); opacity: .62;
  -webkit-mask: linear-gradient(100deg, #000 0 55%, rgba(0, 0, 0, .45) 72%, #000 90%); mask: linear-gradient(100deg, #000 0 55%, rgba(0, 0, 0, .45) 72%, #000 90%); }
.pc-to, .pc-from { position: relative; }
/* the blue airmail sticker */
.pc-tag { position: absolute; top: 14px; left: 16px; font-family: var(--caps); font-size: 10.5px; font-weight: 600; letter-spacing: .16em; color: #fffcf6; background: var(--air-blue);
  border: 1.5px solid #fffcf6; outline: 1px solid var(--air-blue); padding: 2px 8px; transform: rotate(-1.5deg); box-shadow: 0 1px 2px rgba(19, 26, 49, .25); }
/* the envelope's stamp: a miniature of the occasion stamps (perforated edge, tone, painting) */
.pc-stamp { --r: 3px; position: absolute; top: 12px; right: 12px; width: 60px; height: 72px; display: grid; place-items: center; background: #fffcf6;
  -webkit-mask: radial-gradient(50% 50%, #000 70%, #0000 72%) round var(--r) var(--r) / calc(2 * var(--r)) calc(2 * var(--r)), linear-gradient(#000 0 0) 50% / calc(100% - var(--r)) calc(100% - var(--r)) no-repeat;
          mask: radial-gradient(50% 50%, #000 70%, #0000 72%) round var(--r) var(--r) / calc(2 * var(--r)) calc(2 * var(--r)), linear-gradient(#000 0 0) 50% / calc(100% - var(--r)) calc(100% - var(--r)) no-repeat; }
.pc-stamp::before { content: ""; position: absolute; inset: 6px; background: var(--rays), var(--accent); --ry: 45%; outline: 1px solid rgba(255, 243, 214, .6); outline-offset: -3px; transition: background-color .6s; }
.pc-stamp > * { position: relative; width: 34px; color: var(--card); font-size: 26px; line-height: 1; text-align: center; }
.pc-stamp > svg { width: 46px; }
/* wavy cancellation lines running out of the postmark and across the stamp */
.pc-mark::after { content: ""; position: absolute; left: 60px; top: 18px; width: 88px; height: 30px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 88 30'%3E%3Cpath d='M0 4q5.5-4 11 0t11 0 11 0 11 0 11 0 11 0 11 0 11 0M0 11q5.5-4 11 0t11 0 11 0 11 0 11 0 11 0 11 0 11 0M0 18q5.5-4 11 0t11 0 11 0 11 0 11 0 11 0 11 0 11 0M0 25q5.5-4 11 0t11 0 11 0 11 0 11 0 11 0 11 0 11 0' fill='none' stroke='%236a6f82' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat; }
.pc-mark { position: absolute; z-index: 1; top: 20px; right: 56px; width: 74px; height: 74px; border-radius: 50%; border: 2px solid var(--ink-soft); color: var(--ink-soft); opacity: .7; transform: rotate(-14deg);
  box-shadow: inset 0 0 0 3px transparent, inset 0 0 0 4px var(--ink-soft);
  font-family: var(--caps); font-size: 9px; line-height: 1.2; letter-spacing: .08em; text-transform: uppercase; display: grid; place-items: center; text-align: center; }
.pc-to { font-family: var(--hand); font-weight: 700; font-size: 50px; line-height: 1; overflow-wrap: anywhere; }
.pc-from { font-family: var(--hand); font-size: 24px; color: var(--ink-soft); }
.pc-play { position: absolute; left: 18px; top: 50px; font-family: var(--caps); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--air-red); }

/* occasion stamps */
.stamps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 26px; }
/* home: the heading sits beside the nine stamps (three rows of three) */
section#occasions { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 56px; align-items: start; }
section#occasions .sec-head { position: sticky; top: 110px; margin: 0; }
.stamp-tile { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 0; border: 0; background: none; text-decoration: none; text-align: left; min-width: 0; }
.st { display: block; width: 100%; margin-bottom: 10px; filter: drop-shadow(0 8px 9px rgba(28, 42, 74, .22)); transition: transform .25s cubic-bezier(.3, 1.4, .5, 1); }
.stamp-tile:nth-child(odd) .st { transform: rotate(-1.8deg); }
.stamp-tile:nth-child(even) .st { transform: rotate(1.4deg); }
.stamp-tile:hover .st { transform: rotate(-4deg) translateY(-8px) scale(1.03); }
.st-p { --r: 6px; display: block; padding: 12px; background: var(--card);
  -webkit-mask: radial-gradient(50% 50%, #000 70%, #0000 72%) round var(--r) var(--r) / calc(2 * var(--r)) calc(2 * var(--r)), linear-gradient(#000 0 0) 50% / calc(100% - var(--r)) calc(100% - var(--r)) no-repeat;
          mask: radial-gradient(50% 50%, #000 70%, #0000 72%) round var(--r) var(--r) / calc(2 * var(--r)) calc(2 * var(--r)), linear-gradient(#000 0 0) 50% / calc(100% - var(--r)) calc(100% - var(--r)) no-repeat; }
.st-in { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1.08; color: #fff3d6; background: var(--rays), var(--tone); --ry: 46%;
  outline: 1.5px solid rgba(255, 243, 214, .65); outline-offset: -7px; }
.st-in svg { width: 70%; margin-top: -8%; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .18)); }
.st-in small { position: absolute; top: 13px; left: 15px; font-family: var(--caps); font-size: 10px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.st-in i { position: absolute; top: 9px; right: 14px; font-family: var(--numeral); font-style: normal; font-size: 26px; line-height: 1; }
.st-in i::after { content: "¢"; font-size: .6em; vertical-align: .35em; }
.st-in em { position: absolute; bottom: 13px; left: 0; right: 0; text-align: center; font-family: var(--caps); font-style: normal; font-weight: 600; font-size: 15px; letter-spacing: .2em; text-transform: uppercase; }
.stamp-tile b { font-weight: 600; font-size: 20px; line-height: 1.2; }
.stamp-tile > span:last-child { font-size: 16px; color: var(--ink-soft); line-height: 1.4; }
.stamp-tile[aria-pressed="true"] .st { transform: rotate(-4deg) translateY(-8px) scale(1.03); }
.stamp-tile[aria-pressed="true"]::after { content: "CHOSEN ✦ CHOSEN ✦"; position: absolute; top: -12px; right: -8px; width: 70px; height: 70px; border-radius: 50%; border: 2.5px solid var(--ink); color: var(--ink);
  background: rgba(255, 252, 246, .85); display: grid; place-items: center; text-align: center; font-family: var(--caps); font-size: 10px; font-weight: 600; line-height: 1.3; letter-spacing: .08em; transform: rotate(14deg); }

/* styles row */
.styles { display: flex; flex-wrap: wrap; gap: 12px; }
/* under the styles: a note for a style that isn't listed */
.style-ask { display: flex; gap: 14px; align-items: flex-start; margin-top: 22px; padding: 14px 18px; max-width: 640px;
  border: 1.5px dashed var(--line); border-radius: 14px; background: rgba(255, 252, 246, .6); font-family: var(--ui); font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.style-ask p { margin: 0; }
.style-ask b { color: var(--ink); }
.style-ask a { color: var(--accent); font-weight: 700; text-underline-offset: 3px; overflow-wrap: anywhere; }
.style-ask-ic { flex: 0 0 auto; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--card); color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--line); transition: background .15s, color .15s; }
.style-ask-ic:hover { background: var(--accent); color: var(--card); }
.style-ask-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.style-ask-note { display: block; margin-top: 6px; font-weight: 700; color: var(--green); }
.style-ask-note:empty { display: none; }
.style-pill { display: inline-flex; align-items: center; gap: 12px; padding: 8px 22px 8px 8px; border-radius: 999px; background: var(--card); border: 1.5px solid var(--line); text-align: left; }
.style-pill i { width: 46px; height: 46px; flex: none; border-radius: 50%; background: radial-gradient(circle, var(--deep) 0 9%, var(--c1) 10% 38%, #17171a 39% 100%); }
.style-pill b { font-weight: 600; display: block; line-height: 1.2; }
.style-pill small { font-family: var(--ui); font-size: 13px; color: var(--ink-soft); }
.style-pill[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.style-pill[disabled] { opacity: .35; cursor: not-allowed; }

/* how it works */
.band { background: var(--green); color: var(--card); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; counter-reset: s; margin: 0; padding: 0; list-style: none; }
.steps li { counter-increment: s; border-top: 1px solid rgba(255, 252, 246, .28); padding-top: 18px; }
.steps li::before { content: "0" counter(s); font-family: var(--ui); font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--gold); }
.steps h3 { font-size: 27px; margin: 8px 0 8px; }
.steps p { margin: 0; opacity: .78; font-size: 17px; }

/* samples: record sleeves with the disc peeking out */
.samples { display: flex; flex-wrap: wrap; justify-content: center; gap: 34px; }
.samples > .sample { flex: 0 1 calc((100% - 68px) / 3); }
.sample { display: flex; flex-direction: column; gap: 6px; text-decoration: none; min-width: 0; }
.sample .rec { position: relative; margin-bottom: 14px; padding-right: 22%; }
.sample .rec::after { content: ""; position: absolute; right: 2%; top: 6%; height: 88%; aspect-ratio: 1; border-radius: 50%; z-index: 0; transition: transform .35s cubic-bezier(.3, 1.3, .5, 1);
  background: radial-gradient(circle, var(--deep) 0 4%, var(--c1) 5% 30%, transparent 31%), repeating-radial-gradient(circle, #0e0e10 0 1.5px, #1f1f23 1.5px 3px); }
.sample:hover .rec::after { transform: translateX(12%) rotate(40deg); }
.sample .cover { position: relative; z-index: 1; aspect-ratio: 1; background: var(--rays), var(--c2); --ry: 100%; border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--ink);
  display: flex; flex-direction: column; justify-content: space-between; padding: 16px; color: #fff3d6; }
.sample .cover small { font-family: var(--caps); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.sample .cover strong { font-family: var(--script); font-weight: 400; font-size: clamp(34px, 4vw, 48px); line-height: .95; transform: rotate(-4deg); transform-origin: left bottom; color: var(--c1); }
.sample b { font-weight: 600; font-size: 21px; }
.sample > span { font-family: var(--ui); font-size: 14px; font-weight: 700; color: var(--accent); }

/* pricing */
/* pricing: a plain first step, then the paid card as an airmail envelope with its price on a stamp */
.price { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); gap: 26px; align-items: stretch; }
.plan { position: relative; background: var(--card); border: 1.5px solid var(--line); border-radius: 8px; padding: 30px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.plan h3 { font-size: 28px; font-weight: 600; line-height: 1.15; margin: 0; }
.plan-step { margin: 0; font-family: var(--caps); font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-d); }
.plan-lede { margin: 0; color: var(--ink-soft); font-size: 17px; line-height: 1.45; }
.plan-price { font-family: var(--numeral); font-size: 64px; line-height: 1; margin: 6px 0 2px; }
.ticks { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 10px; font-size: 17px; line-height: 1.35; flex: 1; align-content: start; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .1em; width: 20px; height: 20px; border-radius: 50%; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10'/%3E%3C/svg%3E"); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: calc(.1em + 5px); width: 8px; height: 5px; border: solid var(--card); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.plan:not(.feat) .ticks li::before { background: var(--ink-soft); }
.plan .btn { margin-top: auto; }
.plan.feat { padding: 10px; border: 0; border-radius: 4px; background: var(--grain), var(--stripe);
  box-shadow: 0 1px 1px rgba(19, 26, 49, .12), 0 30px 46px -26px rgba(19, 26, 49, .55); }
.plan-in { position: relative; flex: 1; width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 30px 32px 30px;
  background: var(--envelope-paper); box-shadow: inset 0 0 26px rgba(120, 92, 52, .13), inset 0 0 0 1px rgba(120, 92, 52, .08); }
.plan-in > .plan-step, .plan-in > h3, .plan-in > .plan-lede { max-width: calc(100% - 236px); }
.plan-in h3 { font-size: 34px; }
/* the price, printed on a perforated stamp */
.price-stamp { --r: 4px; position: absolute; top: 22px; right: 24px; width: 132px; height: 152px; display: grid; place-content: center; text-align: center; gap: 4px; background: #fffcf6; transform: rotate(2.5deg);
  filter: drop-shadow(0 6px 8px rgba(19, 26, 49, .22));
  -webkit-mask: radial-gradient(50% 50%, #000 70%, #0000 72%) round var(--r) var(--r) / calc(2 * var(--r)) calc(2 * var(--r)), linear-gradient(#000 0 0) 50% / calc(100% - var(--r)) calc(100% - var(--r)) no-repeat;
          mask: radial-gradient(50% 50%, #000 70%, #0000 72%) round var(--r) var(--r) / calc(2 * var(--r)) calc(2 * var(--r)), linear-gradient(#000 0 0) 50% / calc(100% - var(--r)) calc(100% - var(--r)) no-repeat; }
.price-stamp::before { content: ""; position: absolute; inset: 8px; background: var(--rays), var(--accent); --ry: 40%; outline: 1px solid rgba(255, 243, 214, .6); outline-offset: -4px; }
.price-stamp > * { position: relative; color: #fff3d6; }
.price-stamp b { font-family: var(--numeral); font-weight: 400; font-size: 31px; line-height: 1; }
.price-stamp small { font-family: var(--caps); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; opacity: .85; }
/* a postmark half over the stamp */
.price-mark { position: absolute; z-index: 1; top: 96px; right: 154px; width: 84px; height: 84px; border-radius: 50%; border: 2px solid var(--air-red); color: var(--air-red); opacity: .62; transform: rotate(-14deg);
  box-shadow: inset 0 0 0 3px transparent, inset 0 0 0 4px var(--air-red); display: grid; place-items: center; text-align: center;
  font-family: var(--caps); font-size: 10px; font-weight: 600; line-height: 1.25; letter-spacing: .1em; text-transform: uppercase; pointer-events: none; }
.ticks.cols { grid-template-columns: 1fr 1fr; column-gap: 26px; margin-top: 30px; width: 100%; }
.plan-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: auto; }
.plan-cta .btn { margin: 0; padding: 15px 30px; font-size: 17px; }
.plan-cta span { font-family: var(--ui); font-size: 14px; color: var(--ink-soft); }
@media (max-width: 1000px) { .ticks.cols { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .plan { padding: 24px; } .plan-in { padding: 24px 20px; }
  .plan-in > .plan-step, .plan-in > h3 { max-width: calc(100% - 118px); } .plan-in > .plan-lede { max-width: none; }
  .plan-in h3 { font-size: 28px; }
  .price-stamp { --r: 3px; top: 16px; right: 14px; width: 98px; height: 114px; }
  .price-stamp b { font-size: 25px; } .price-stamp small { font-size: 9.5px; }
  .price-mark { display: none; } /* no room for it beside the text on a phone; the checkout line says the same */
}

/* faq */
.faq { max-width: 720px; }
.faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-size: 20px; font-weight: 600; }
.faq p { margin: 10px 0 0; color: var(--ink-soft); }

/* ---------- site footer: a dark "night desk" band. The find-my-songs card sits on top like a postcard on the desk. ---------- */
.site-foot { margin-top: 40px; background: var(--deep); color: rgba(255, 252, 246, .72); font-family: var(--ui); font-size: 15px; line-height: 1.6; }
.site-foot a:not(.btn) { color: inherit; text-decoration: none; }
.site-foot a:not(.btn):hover { color: var(--card); text-decoration: underline; text-underline-offset: 4px; }
.site-foot :focus-visible { outline-color: var(--gold); }
.sf-find { position: relative; top: -40px; display: grid; grid-template-columns: 1fr auto; gap: 18px 40px; align-items: center; margin-bottom: -40px;
  padding: 30px 36px 28px; background: var(--card); color: var(--ink); border-radius: 10px; box-shadow: 0 24px 40px -24px rgba(21, 29, 51, .55); overflow: hidden; }
.sf-find::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: var(--stripe); }
.sf-find.wrap { max-width: 1240px; width: calc(100% - 40px); }
.sf-find .eyebrow { margin-bottom: 6px; }
.sf-find h2 { font-size: clamp(26px, 3.4vw, 36px); }
.sf-find p:not(.eyebrow) { margin: 8px 0 0; color: var(--ink-soft); max-width: 560px; }
.sf-find .btn { padding: 16px 30px; font-size: 17px; white-space: nowrap; }
.sf-main { display: grid; grid-template-columns: minmax(260px, 1.1fr) 2.4fr; gap: 56px; padding-block: 72px 48px; }
.sf-find + .sf-main { padding-top: 80px; }
.sf-brand .logo { color: var(--card); }
.sf-brand .logo span { color: var(--gold); }
.sf-tag { margin: 14px 0 6px; font-family: var(--hand); font-size: 26px; font-weight: 700; color: var(--gold); line-height: 1.2; }
.sf-brand p:not(.sf-tag) { margin: 0 0 22px; max-width: 340px; }
.sf-brand .btn { background: var(--gold); color: var(--deep); }
.sf-brand .btn:hover { box-shadow: 0 12px 20px -10px var(--gold); }
.sf-mail { display: block; margin-top: 18px; color: var(--card) !important; font-weight: 600; }
.sf-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.sf-cols h3 { font-family: var(--ui); font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 6px 0 16px; }
.sf-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sf-promise { display: flex; flex-wrap: wrap; gap: 14px 36px; padding-block: 26px; border-top: 1px solid rgba(255, 252, 246, .12); color: var(--card); font-weight: 600; }
.sf-promise span { display: inline-flex; align-items: center; gap: 10px; }
.sf-promise svg { width: 22px; height: 22px; flex: none; color: var(--gold); }
.sf-base { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; padding-block: 20px calc(28px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(255, 252, 246, .12); font-size: 13px; color: rgba(255, 252, 246, .5); }
@media (max-width: 1000px) {
  .sf-main { grid-template-columns: 1fr; gap: 44px; }
  .sf-cols { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
}
@media (max-width: 640px) {
  .sf-find { grid-template-columns: 1fr; padding: 26px 22px 24px; }
  .sf-find .btn { justify-self: stretch; text-align: center; }
  .sf-promise { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; font-size: 14px; }
}

/* ---------- create flow ---------- */
.create { display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; padding-block: 28px 80px; align-items: start; }
.create > * { min-width: 0; }
.progress { display: flex; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; font-family: var(--ui); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; flex-wrap: wrap; }
.progress li { border-radius: 999px; border: 1.5px solid var(--line); color: var(--ink-soft); transition: background-color .35s ease, border-color .35s ease, color .35s ease; }
.progress li button { all: unset; display: block; padding: 5px 12px; cursor: pointer; }
.progress li button:disabled { cursor: default; }
.progress li button:focus-visible { outline: 2px solid var(--air-blue); outline-offset: 3px; border-radius: 999px; }
.progress li.on { background: var(--accent); border-color: var(--accent); color: var(--card); }
.progress li.done { border-color: var(--ink); color: var(--ink); }
.panel h2 { margin-bottom: 8px; }
.panel > p.sub { margin: 0 0 28px; color: var(--ink-soft); }
.panel .stamps { gap: 26px 18px; }
.panel .stamp-tile b { font-size: 16px; }
.panel .stamp-tile > span:last-child { display: none; }
.panel .st-in em { font-size: 11px; bottom: 11px; letter-spacing: .14em; }
.panel .st-in small { display: none; }
.panel .st-in i { font-size: 18px; }
.panel .st-p { padding: 9px; --r: 5px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-family: var(--ui); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.field small { color: var(--ink-soft); font-size: 15px; }
.field input[type="text"], .field textarea { width: 100%; padding: 12px 14px; background: var(--card); border: 1.5px solid var(--line); border-radius: 4px; font-size: 18px; }
.field textarea { min-height: 96px; resize: vertical; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg button { padding: 8px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); }
.seg button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--card); }
.seg button[disabled] { opacity: .35; cursor: not-allowed; }
/* ----- legal pages (terms, privacy, refunds, contact) ----- */
.legal { max-width: 760px; padding-block: 48px 80px; }
.legal h1 { margin-bottom: 6px; }
.legal .updated { font-family: var(--ui); font-size: 13px; color: var(--ink-soft); margin: 0 0 30px; }
.legal .summary { padding: 18px 22px; margin: 0 0 34px; background: var(--card); border: 1.5px solid var(--line); border-radius: 8px; }
.legal .summary b { font-family: var(--ui); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-d); }
.legal .summary ul { margin: 10px 0 0; padding-left: 20px; }
.legal h2 { font-size: 24px; margin: 38px 0 10px; }
.legal p, .legal li { font-size: 17px; line-height: 1.65; color: var(--ink); }
.legal li { margin-bottom: 6px; }
.legal a:not(.btn) { color: var(--accent); }
.legal mark { background: #fbe7a1; padding: 0 3px; border-radius: 2px; } /* details the owner still has to fill in */
.legal-nav { display: flex; gap: 18px; flex-wrap: wrap; font-family: var(--ui); font-size: 14px; font-weight: 600; margin: 0 0 26px; }
.legal-nav a { color: var(--ink-soft); text-decoration: none; }
.legal-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.agree { font-family: var(--ui); font-size: 13px; color: var(--ink-soft); margin: 10px 0 0; }
.agree a { color: inherit; }

.unlock .email-field { margin: 4px 0 14px; width: 100%; max-width: 380px; }
.outbox { margin-top: 18px; padding: 14px 16px; border: 1.5px dashed var(--line); border-radius: 8px; background: var(--card); }
.outbox small { font-family: var(--ui); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.outbox pre { margin: 8px 0 0; white-space: pre-wrap; word-break: break-word; font-family: var(--ui); font-size: 13px; line-height: 1.55; color: var(--ink); }
.players button { display: inline-flex; align-items: center; gap: 8px; padding-left: 8px; }
.players .swatch { width: 18px; height: 18px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, .2); }
.navrow { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.warn { font-family: var(--ui); font-size: 14px; font-weight: 600; color: var(--air-red); margin: 10px 0 0; min-height: 1.2em; }

.sheet { background: var(--card); padding: 26px 28px 22px; border: 1.5px solid var(--line);
  background-image: repeating-linear-gradient(transparent 0 35px, rgba(28, 42, 74, .12) 35px 36px); }
.sheet h3 { font-family: var(--hand); font-weight: 700; font-size: 34px; line-height: 36px; }
.sheet p { margin: 0; font-size: 19px; line-height: 36px; }
.sheet p.locked { filter: blur(5px); user-select: none; }
.sheet .tag { font-family: var(--ui); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); line-height: 36px; }
.unlock { margin-top: 22px; padding: 20px; background: var(--paper-2); border-radius: 6px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.unlock p { margin: 0; font-size: 17px; flex: 1 1 220px; }

.making { text-align: center; padding: 40px 0; }
.making .h-disc { position: static; margin: 0 auto 28px; width: 170px; animation-duration: 1.8s; }
.sharebox { display: flex; gap: 8px; margin: 18px 0 24px; }
.giftbox { margin: 18px 0 26px; padding: 20px 22px 8px; border-radius: 6px; border: 10px solid transparent;
  background: linear-gradient(var(--paper-2), var(--paper-2)) padding-box, repeating-linear-gradient(-45deg, var(--air-red) 0 9px, var(--card) 9px 18px, var(--air-blue) 18px 27px, var(--card) 27px 36px) border-box; }
.giftbox h3 { margin: 0 0 4px; font-family: var(--hand); font-weight: 700; font-size: 30px; line-height: 1.1; }
.giftbox .sub a { color: inherit; }
.giftbox .sharebox { margin: 14px 0 6px; }
.gift-note { min-height: 1.3em; margin: 0 0 10px; font-family: var(--ui); font-size: 14px; font-weight: 600; color: var(--air-red); }
.gift-note.ok { color: var(--accent); }
.photo-edit { margin: 0 0 22px; }
.revise { margin: 18px 0 6px; }
.revise textarea { min-height: 72px; font-size: 16px; }
.revise .btn { margin-top: 4px; align-self: flex-start; }
.photo-edit .sub { margin-bottom: 10px; }
.photo-edit .gift-note { margin-top: 8px; }
.sharebox input { flex: 1; min-width: 0; padding: 12px 14px; background: var(--card); border: 1.5px solid var(--line); border-radius: 4px; font-family: var(--ui); font-size: 14px; }

.side { position: sticky; top: 24px; }
.side .postcard { position: relative; left: auto; bottom: auto; width: 100%; transform: rotate(2.5deg); }
.side .pc-in { height: 200px; }
.player-pv { margin: 34px 0 0; }
.player-pv iframe { display: block; width: 100%; aspect-ratio: 3 / 4; border: 0; border-radius: 12px; background: #131a2e; pointer-events: none;
  box-shadow: 0 22px 40px -22px rgba(19, 26, 49, .7); }
.player-pv small { display: block; margin-top: 10px; font-family: var(--ui); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.side .caption { font-family: var(--ui); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 20px; }
.side dl { margin: 32px 0 0; font-size: 16px; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; }
.side dt { font-family: var(--ui); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); padding-top: 3px; }
.side dd { margin: 0; }

/* create: form helpers */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.opt { font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink-soft); }
.count { align-self: flex-end; font-family: var(--ui); font-size: 12px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.hints { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 22px; }
.hints:empty { display: none; }
.hints::before { content: "Ideas:"; font-family: var(--ui); font-size: 13px; font-weight: 700; color: var(--ink-soft); align-self: center; }
.hints button { padding: 5px 13px; border: 1.5px dashed var(--ink-soft); border-radius: 999px; background: transparent; font-family: var(--hand); font-size: 20px; line-height: 1.1; }
.hints button:hover { background: var(--card); border-style: solid; }
.photo-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.polaroid { width: 104px; padding: 7px 7px 22px; background: #fff; box-shadow: 0 10px 18px -10px rgba(28, 42, 74, .55); transform: rotate(-3deg); }
.polaroid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.upload { display: inline-block; padding: 11px 20px; border: 1.5px dashed var(--ink-soft); border-radius: 6px; background: var(--card); font-family: var(--ui) !important; font-size: 14px !important; font-weight: 700; letter-spacing: 0 !important; text-transform: none !important; cursor: pointer; }
.upload:hover { border-style: solid; }
.vh:focus-visible + .linklike, .vh:focus-visible ~ .upload { outline: 2px solid var(--air-blue); }
.linklike { padding: 0; border: 0; background: none; font-family: var(--ui); font-size: 13px; color: var(--ink-soft); text-decoration: underline; }
.lyric-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.sheet .sec { font-family: var(--ui); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.mk-steps { list-style: none; max-width: 290px; margin: 26px auto 0; padding: 0; text-align: left; font-family: var(--ui); font-size: 15px; }
.mk-steps li { padding: 6px 0; opacity: .35; transition: opacity .4s; }
.mk-steps li::before { content: "○"; display: inline-block; width: 26px; }
.mk-steps li.ok { opacity: 1; }
.mk-steps li.ok::before { content: "✓"; color: var(--accent); font-weight: 700; }
.done-acts { display: flex; gap: 12px; flex-wrap: wrap; }
.demo-note { margin: 26px 0 0; font-family: var(--ui); font-size: 13px; color: var(--ink-soft); }
.side-sleeve { margin: 34px 0 0; max-width: 250px; }
.side-sleeve .cover strong { font-size: 34px; overflow-wrap: anywhere; }

@media (max-width: 880px) {
  .side-sleeve { display: none; }
  .hero, .create { grid-template-columns: 1fr; }
  .hero-art { height: 380px; }
  .stamps { gap: 26px 14px; }
  section#occasions { display: block; } section#occasions .sec-head { position: static; margin-bottom: 34px; }
  /* three small stamps a row on phones: the same compact stamp as the order page */
  .stamp-tile b { font-size: 16px; } .stamp-tile > span:last-child { display: none; }
  .st-in em { font-size: 11px; bottom: 11px; letter-spacing: .14em; } .st-in small { display: none; } .st-in i { font-size: 18px; }
  .st-p { padding: 9px; --r: 5px; }
  .steps, .price { grid-template-columns: 1fr; }
  .samples { max-width: 340px; margin-inline: auto; } .samples > .sample { flex-basis: 100%; }
  .side { position: static; order: -1; max-width: 360px; }
  .side dl { display: none; }
  .nav a:not(.btn):not(.keep) { display: none; }
  section { padding-block: 48px; }
  .st-in small { display: none; }
}
@media (max-width: 480px) { .two { grid-template-columns: 1fr; } .seal { width: 96px; } .st-in em { font-size: 11px; letter-spacing: .12em; } }
@media (prefers-reduced-motion: reduce) { .h-disc { animation: none !important; } html { scroll-behavior: auto; } }

/* ----- hero turntable: the needle drops on load, scrolling scrubs the record, notes drift up ----- */
.h-deck { position: absolute; right: 0; top: 0; width: 330px; max-width: 78%; aspect-ratio: 1; z-index: 1; cursor: pointer; will-change: translate; }
.h-deck:focus-visible { outline: 2px solid var(--accent); outline-offset: 8px; border-radius: 50%; }
.h-deck .h-disc { position: absolute; inset: 0; width: 100%; max-width: none; animation: none; will-change: transform; }
/* tonearm: pivot just off the record's top-right, the rod swings in onto the grooves */
.h-arm { position: absolute; left: 92%; top: -2%; width: 13%; height: 72%; transform-origin: 50% 7%; transform: rotate(-16deg);
  transition: transform 1.1s cubic-bezier(.45, .05, .3, 1); pointer-events: none; z-index: 2; }
.h-arm::before { content: ""; position: absolute; left: 50%; top: 7%; width: 100%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #f4f4f6, #a9acb6 55%, #5d6170); box-shadow: 0 4px 8px rgba(19, 26, 49, .35), inset 0 0 0 3px rgba(255, 255, 255, .35); }
.h-arm-rod { position: absolute; left: calc(50% - 3px); top: 7%; width: 6px; height: 84%; border-radius: 3px;
  background: linear-gradient(90deg, #8d919c, #f2f2f4 45%, #9a9ea8); box-shadow: 2px 3px 6px rgba(19, 26, 49, .3); }
.h-arm-head { position: absolute; left: 50%; bottom: 0; width: 40%; aspect-ratio: 1 / 1.5; transform: translateX(-50%) rotate(14deg); border-radius: 3px;
  background: linear-gradient(90deg, #c9a45c, #f3dd9c 50%, #a8802f); box-shadow: 1px 3px 5px rgba(19, 26, 49, .35); }
.h-deck.playing .h-arm { transform: rotate(16deg); }
/* notes that drift up off the record while it plays */
.h-notes { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.h-note { position: absolute; font-family: var(--read); font-size: 22px; line-height: 1; color: var(--accent); opacity: 0; animation: note-drift 2.8s ease-out forwards; }
@keyframes note-drift {
  0% { opacity: 0; transform: translate(0, 0) rotate(-10deg) scale(.7); }
  15% { opacity: .9; }
  100% { opacity: 0; transform: translate(var(--dx), -120px) rotate(14deg) scale(1.1); }
}
@media (prefers-reduced-motion: reduce) { .h-arm { transition: none; } .h-note { display: none; } }

/* ----- the record's trip down the page -----
   The slot keeps the hero spot; once the script takes over, the deck is fixed to the screen and
   glides from the hero, to the right edge (riding along while you scroll), into the dark band. */
.h-deck-slot { position: absolute; right: 0; top: 0; width: 330px; max-width: 78%; aspect-ratio: 1; visibility: hidden; pointer-events: none; }
.h-deck.travel { position: fixed; left: 0; top: 0; right: auto; max-width: none; z-index: 30; transform-origin: 0 0; will-change: transform; }
.h-deck.travel.at-home { z-index: 1; } /* in the hero it stays tucked behind the envelope (z 2) and the seal (z 3) */
.h-deck.travel.in-flight .h-arm { transform: rotate(-34deg); opacity: 0; transition: transform .5s ease, opacity .4s ease; }
.h-deck.travel .h-arm { transition: transform 1.1s cubic-bezier(.45, .05, .3, 1), opacity .5s ease .2s; }
/* in the dark band the record lands next to the heading, before the three steps */
.band .wrap { position: relative; }
.band-slot { position: absolute; right: 20px; top: -14px; width: 270px; aspect-ratio: 1; pointer-events: none; }
.band-slot::after { content: ""; position: absolute; inset: -6%; border-radius: 50%; background: radial-gradient(circle, rgba(217, 164, 65, .22), transparent 68%); }
.band .sec-head { min-height: 250px; padding-right: 300px; }

/* ----- scroll story: sections arrive as you reach them (only when the script runs and motion is welcome) ----- */
.motion .reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s ease, transform .9s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i, 0) * 90ms); }
.motion .reveal.in { opacity: 1; transform: none; }
/* stamps are dealt onto the table one by one */
.motion .stamps .stamp-tile { opacity: 0; transform: translate(var(--dx, 0), -70px) rotate(var(--rot, -14deg)) scale(1.12);
  transition: opacity .5s ease, transform .9s cubic-bezier(.2, 1.25, .35, 1); transition-delay: calc(var(--i, 0) * 110ms); }
.motion .stamps.in .stamp-tile { opacity: 1; transform: none; }
/* styles slide in and their little records start turning */
.style-pill i { background: conic-gradient(from 20deg, rgba(255, 255, 255, .22) 0 7%, transparent 7% 50%, rgba(255, 255, 255, .14) 50% 56%, transparent 56%),
  radial-gradient(circle, var(--deep) 0 9%, var(--c1) 10% 38%, #17171a 39% 100%); }
.motion .styles .style-pill { opacity: 0; transform: translateX(-40px); transition: opacity .6s ease, transform .7s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i, 0) * 80ms); }
.motion .styles.in .style-pill { opacity: 1; transform: none; }
/* the three steps light up along an airmail route */
.steps li { position: relative; border-top: 0; }
.steps li::after { content: ""; position: absolute; left: 0; right: -30px; top: 0; height: 2px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 10px, transparent 10px 18px); transform-origin: left; }
.steps li:last-child::after { right: 0; }
.motion .steps li { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .8s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(.25s + var(--i, 0) * 260ms); }
.motion .steps li::after { transform: scaleX(0); transition: transform .9s ease; transition-delay: calc(.25s + var(--i, 0) * 260ms); }
.motion .steps.in li { opacity: 1; transform: none; }
.motion .steps.in li::after { transform: scaleX(1); }
@media (max-width: 880px) {
  .band-slot { width: 140px; right: 30px; top: -30px; }
  .band .sec-head { min-height: 0; padding-right: 150px; }
  .steps li::after { right: 0; }
}

/* ----- scrolling sheet-music ribbon (home) -----
   Phrases sit on a five-line staff; notes between them bob gently, like they're being played. */
.ticker { --staff: 30px; position: relative; overflow: hidden; background: var(--paper-2); border-block: 1px solid var(--line); padding: 18px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: calc(var(--staff) + 1px); transform: translateY(-50%);
  background: repeating-linear-gradient(to bottom, rgba(28, 42, 74, .16) 0 1px, transparent 1px calc(var(--staff) / 4)); pointer-events: none; }
.ticker-track { position: relative; display: flex; width: max-content; animation: ticker 70s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-list { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
/* each phrase paints over the staff behind it, so the lines show only around the notes */
.ticker-list li { display: flex; align-items: center; padding: 2px 0; white-space: nowrap; font-family: var(--read); font-style: italic; font-size: 19px; color: var(--ink);
  background: linear-gradient(var(--paper-2), var(--paper-2)) no-repeat 0 0 / calc(100% - 64px) 100%; }
.ticker-list li::after { content: "♪"; display: inline-block; width: 64px; text-align: center; font-family: var(--read); font-style: normal; font-size: 26px; line-height: 1;
  color: var(--wine); animation: note-bob 1.6s ease-in-out infinite; }
.ticker-list li:nth-child(3n+2)::after { content: "♫"; color: var(--gold-d); animation-delay: -.5s; }
.ticker-list li:nth-child(3n)::after { content: "♩"; color: var(--air-blue); animation-delay: -1s; }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes note-bob { 0%, 100% { transform: translateY(3px) rotate(-6deg); } 50% { transform: translateY(-5px) rotate(6deg); } }
@media (max-width: 600px) { .ticker { --staff: 24px; padding: 14px 0; } .ticker-list li { font-size: 16px; } .ticker-list li::after { width: 48px; font-size: 22px; } .ticker-list li { background-size: calc(100% - 48px) 100%; } }
@media (prefers-reduced-motion: reduce) { .ticker-track, .ticker-list li::after { animation: none; } .ticker { overflow-x: auto; } }

/* style previews: only the record that is playing turns; the others sit still with a play badge */
button.style-pill { font: inherit; color: inherit; cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .15s; }
button.style-pill:hover { border-color: var(--accent); }
button.style-pill:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.style-pill i { position: relative; }
/* the badge's icon is drawn, not the ▶ character: iPhones show that as a blue emoji */
.style-pill[data-p] i::after { content: ""; position: absolute; inset: 0; margin: auto; width: 22px; height: 22px; border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg viewBox=%220 0 24 24%22 xmlns=%22http://www.w3.org/2000/svg%22%3E%3Cpath d=%22M8.5 5.2v13.6L19 12z%22 fill=%22%23fff%22/%3E%3C/svg%3E") center / 12px no-repeat, rgba(23, 23, 26, .82); transition: transform .15s; }
.style-pill[data-p]:hover i::after { transform: scale(1.12); }
.style-pill.playing { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); background: #fff; }
.style-pill.playing i { animation: spin 2.4s linear infinite; }
.style-pill.playing i::after { background: url("data:image/svg+xml,%3Csvg viewBox=%220 0 24 24%22 xmlns=%22http://www.w3.org/2000/svg%22%3E%3Crect x=%226.5%22 y=%225.5%22 width=%224%22 height=%2213%22 rx=%221.2%22 fill=%22%23fff%22/%3E%3Crect x=%2213.5%22 y=%225.5%22 width=%224%22 height=%2213%22 rx=%221.2%22 fill=%22%23fff%22/%3E%3C/svg%3E") center / 12px no-repeat, rgba(23, 23, 26, .82); animation: spin 2.4s linear infinite reverse; }
.style-pill .eq { display: none; align-items: flex-end; gap: 3px; height: 18px; margin-left: 2px; text-decoration: none; }
.style-pill.playing .eq { display: inline-flex; }
.style-pill .eq s { width: 3px; height: 100%; background: var(--accent); border-radius: 2px; transform-origin: bottom; text-decoration: none; animation: eq .9s ease-in-out infinite; }
.style-pill .eq s:nth-child(2) { animation-delay: -.3s; } .style-pill .eq s:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.sty { position: relative; display: inline-flex; }
/* order page: the record on each style pill plays 15 seconds of that style's chorus */
.sty-play { position: absolute; left: 9.5px; /* the pill's 8px padding + 1.5px border, so it sits dead centre on the record */ top: 50%; width: 46px; height: 46px; margin-top: -23px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.sty-play::after { content: ""; position: absolute; inset: 0; margin: auto; width: 22px; height: 22px; border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg viewBox=%220 0 24 24%22 xmlns=%22http://www.w3.org/2000/svg%22%3E%3Cpath d=%22M8.5 5.2v13.6L19 12z%22 fill=%22%23fff%22/%3E%3C/svg%3E") center / 12px no-repeat, rgba(23, 23, 26, .82); transition: transform .15s; }
.sty-play:hover::after { transform: scale(1.15); }
.sty-play:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sty-play[disabled] { display: none; }
.sty.playing .style-pill i { animation: spin 2.4s linear infinite; }
.sty.playing .sty-play::after { background: url("data:image/svg+xml,%3Csvg viewBox=%220 0 24 24%22 xmlns=%22http://www.w3.org/2000/svg%22%3E%3Crect x=%226.5%22 y=%225.5%22 width=%224%22 height=%2213%22 rx=%221.2%22 fill=%22%23fff%22/%3E%3Crect x=%2213.5%22 y=%225.5%22 width=%224%22 height=%2213%22 rx=%221.2%22 fill=%22%23fff%22/%3E%3C/svg%3E") center / 12px no-repeat, var(--accent); }
@media (prefers-reduced-motion: reduce) { .sty.playing .style-pill i { animation: none; } }
@media (prefers-reduced-motion: reduce) { .style-pill.playing i, .style-pill.playing i::after, .style-pill .eq s { animation: none; } }

/* ----- moving between pages: the old page fades back, the new one rises into place -----
   (cross-document view transitions; browsers without them simply load the page as before).
   A sample or the hero postcard you tap carries on into the song page's envelope ("letter"). */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .3s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: vt-in .55s cubic-bezier(.2, .8, .2, 1) both; }
::view-transition-group(letter) { animation-duration: .6s; animation-timing-function: cubic-bezier(.3, .8, .25, 1); }
@keyframes vt-out { to { opacity: 0; transform: scale(.985); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(22px); } }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* order page: the Glow deck's colour of light, under the player looks */
.players.tints { margin-top: 8px; }
.players.tints button { padding-top: 6px; padding-bottom: 6px; font-size: 14px; }
