/* 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;
}
body[data-mood="love"]      { --accent: #8c2f45; --paper: #faf1ef; --paper-2: #f2e1de; }
body[data-mood="christmas"] { --accent: #24493b; --paper: #f5f3e9; --paper-2: #e9e6d4; }
body[data-mood="parents"]   { --accent: #a8566a; --paper: #fbf2f0; --paper-2: #f3e3e0; }
body[data-mood="thanks"]    { --accent: #2f4674; --paper: #f5f3ee; --paper-2: #e8e6de; }
body[data-mood="baby"]      { --accent: #55698f; --paper: #fbf6e8; --paper-2: #f3ead2; }
body[data-mood="faith"]     { --accent: #96783a; --paper: #fbf8ef; --paper-2: #f1ebd9; }
body[data-mood="memory"]    { --accent: #5f5a7a; --paper: #f4f2f5; --paper-2: #e7e3ea; }

* { 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 .6s ease; }
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(4, 1fr); gap: 34px 26px; }
.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; }
.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: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.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 */
.price { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.price > div { background: var(--card); border: 1.5px solid var(--line); border-radius: 8px; padding: 28px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.price b { font-weight: 600; }
.price .big { font-size: 54px; line-height: 1; font-variant-numeric: tabular-nums; }
.price .big small { font-family: var(--ui); font-size: 14px; color: var(--ink-soft); }
.price ul { margin: 0; padding-left: 20px; color: var(--ink-soft); font-size: 17px; flex: 1; }
.price .feat { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 22px 34px -26px rgba(28, 42, 74, .6); }

/* 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); }

.foot-band { border-top: 1px solid var(--line); }
.foot { padding-block: 26px 40px; font-family: var(--ui); font-size: 13px; color: var(--ink-soft); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- 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); }
.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 { 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; }
.foot a { color: inherit; }
.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; }
.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; }
.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 { grid-template-columns: repeat(2, 1fr); }
  .steps, .price { grid-template-columns: 1fr; }
  .samples { grid-template-columns: 1fr; max-width: 340px; }
  .side { position: static; order: -1; max-width: 360px; }
  .side dl { display: none; }
  .nav a:not(.btn) { 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; }
.motion .styles.in .style-pill i { animation: spin 2.6s linear infinite; }
.motion .styles.in .style-pill:hover i { animation-duration: .7s; }
/* 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; } }
