/* P03 My Thank You Song page (/my-thank-you-song/). Same layout family as My Merry Home and the My Star Letter product
   pages: wordmark + How it works, pill, headline with one outlined word, a taped example card, one button, helper,
   price, legal line. Autumn palette. Own stylesheet: no P01/P02 styles touched. Bump the file name (song-vN) on any change. */
@font-face { font-family: "DM Mono"; src: url("/fonts/dm-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("/fonts/dm-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "DM Serif Display"; src: url("/fonts/dm-serif-display-italic.woff2") format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: "Homemade Apple"; src: url("/fonts/homemade-apple.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Rubik Dirt"; src: url("/fonts/rubik-dirt.woff2") format("woff2"); font-weight: 400; font-display: swap; }
:root { --cream: #F5ECDD; --paper: #FFFAF2; --pine: #4A2C1A; --pine-2: #6B3F22; --berry: #B5532A; --gold: #C8902E; --ink: #2B211A; --muted: #6E5E50; }
* { box-sizing: border-box; margin: 0; }
html, body { background: var(--cream); color: var(--ink); }
body { font: 14px/1.55 "DM Mono", "Courier New", monospace; -webkit-text-size-adjust: 100%;
  background-image: linear-gradient(rgba(42,36,32,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(42,36,32,.05) 1px, transparent 1px); background-size: 22px 22px; }
.frame { min-height: 100dvh; max-width: 520px; margin: 0 auto; display: flex; flex-direction: column;
  padding: max(14px, env(safe-area-inset-top)) 22px max(16px, env(safe-area-inset-bottom)); }
.top { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.wordmark { font-family: "Rubik Dirt", "Arial Black", sans-serif; font-size: clamp(19px, 5.6vw, 23px); line-height: 1; letter-spacing: .5px; color: var(--pine); white-space: nowrap; }
.btn-how { height: 44px; padding: 0 14px; border-radius: 22px; border: 1.5px solid var(--pine); background: rgba(255,255,255,.7); color: var(--pine);
  font-family: inherit; font-size: 12px; letter-spacing: .8px; text-transform: uppercase; white-space: nowrap; flex: none; cursor: pointer; }
.screen { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.pill, h1 { align-self: flex-start; text-align: left; } .pill { margin-top: 12px; } h1 { margin-top: 2px; }
/* Like the product pages: pill and headline under the header, the collage takes the free height, button block at the bottom */
.pill { display: inline-flex; align-items: center; gap: 8px; height: 34px; background: var(--pine); color: #fff; border-radius: 17px; padding: 0 14px 0 6px;
  font-size: 12px; letter-spacing: 1.8px; text-transform: uppercase; }
.pill svg { width: 24px; height: 24px; flex: none; background: #fff; border-radius: 50%; padding: 2px; }
h1 { font-family: "DM Serif Display", Georgia, serif; font-style: italic; font-weight: 400; color: var(--pine); font-size: 40px; line-height: 1; letter-spacing: .5px; text-wrap: balance; }
h1 .outline { color: var(--cream); -webkit-text-stroke: 1.3px var(--berry); }
.card-wrap { flex: 1 1 auto; min-height: 0; display: flex; justify-content: center; align-items: center; width: 100%; }
.card { position: relative; width: 100%; max-width: 360px; background: var(--paper); border-radius: 4px; padding: 18px 18px 14px;
  box-shadow: 0 10px 22px rgba(43,33,26,.16); transform: rotate(-1.5deg); text-align: left; }
.card::before { content: ""; position: absolute; top: -10px; left: 50%; width: 64px; height: 18px; margin-left: -32px; background: rgba(240,214,160,.85); transform: rotate(-3deg); }
.card .tag { position: absolute; top: 12px; right: 12px; background: rgba(181,83,42,.1); color: var(--berry); font-size: 10.5px; letter-spacing: .5px; padding: 2px 7px; border-radius: 3px; }
.card .who { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); }
.card .title { font-family: "DM Serif Display", Georgia, serif; font-style: italic; font-size: 26px; line-height: 1.1; color: var(--pine); margin-top: 2px; }
.player { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.play { flex: none; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--berry); color: #fff; cursor: pointer; display: grid; place-items: center;
  -webkit-tap-highlight-color: transparent; transition: transform 200ms ease; }
.play:active { transform: scale(.95); }
.play svg { width: 20px; height: 20px; } .play .i-pause { display: none; } .play.is-playing .i-play { display: none; } .play.is-playing .i-pause { display: block; }
.track { flex: 1; height: 4px; background: rgba(74,44,26,.15); border-radius: 2px; overflow: hidden; }
.track span { display: block; height: 100%; background: var(--berry); transform: scaleX(0); transform-origin: left; }
.lyrics { margin-top: 12px; font-family: "Homemade Apple", cursive; font-size: 14px; line-height: 1.9; color: var(--ink); }
.lyrics p { opacity: .45; transition: opacity 300ms ease; } .lyrics p.is-on { opacity: 1; color: var(--pine); }
.made { margin-top: 8px; font-size: 11.5px; line-height: 1.4; color: var(--muted); }
.note { font-size: 13px; line-height: 1.4; color: var(--muted); margin-top: 4px; text-wrap: balance; }
.btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; padding: 0 16px; margin-top: 6px; border-radius: 12px;
  background: var(--berry); color: #fff; font-family: inherit; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; text-decoration: none; border: 0; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: transform 340ms cubic-bezier(0.22, 1, 0.36, 1), background-color 340ms ease; }
.btn:hover { background: #8A241F; } .btn:active { transform: scale(.985); background: #6E1D19; transition-duration: 120ms; }
.helper { font-size: 14px; line-height: 1.45; color: var(--ink); text-wrap: balance; } .helper strong { font-weight: 500; color: var(--pine); }
.price { font-size: 13px; line-height: 1.4; color: var(--muted); text-wrap: balance; }
.legal-line { font-size: 12px; letter-spacing: .4px; color: var(--muted); } .legal-line a { color: var(--muted); }
.sheet { border: 0; padding: 26px 24px 30px; max-width: 520px; width: 100%; background: var(--paper); color: var(--ink); text-align: left;
  border-radius: 18px 18px 0 0; margin: auto auto 0; max-height: 85dvh; overflow: auto; }
.sheet::backdrop { background: rgba(31,26,22,.45); }
.sheet h2 { font-family: "DM Serif Display", Georgia, serif; font-style: italic; font-weight: 400; color: var(--pine); font-size: 28px; line-height: 1.1; margin-bottom: 10px; }
.sheet h3 { font-size: 10.5px; font-weight: 400; letter-spacing: 1.4px; text-transform: uppercase; margin-top: 16px; color: var(--pine); }
.sheet p, .sheet li { font-size: 14px; line-height: 1.5; margin-top: 4px; }
.steps { padding-left: 22px; } .steps li { margin-top: 8px; }
.small { font-size: 11px !important; text-align: center; color: var(--muted); margin-top: 16px !important; }
.close { position: absolute; top: 10px; right: 14px; background: none; border: 0; font-size: 30px; line-height: 1; color: var(--muted); cursor: pointer; }
.pagelink { font-family: "DM Serif Display", Georgia, serif; font-style: italic; font-size: 24px; word-break: break-all; margin: 10px 0; }
.small-btn { min-height: 48px; width: auto; padding: 0 22px; font-size: 12.5px; letter-spacing: 1.4px; }
.copied { font-weight: 500; color: var(--pine-2); margin-top: 12px; }
@media (min-width: 700px) { .sheet { border-radius: 18px; margin: auto; } }
/* Desktop: the product-page grid. Text column left (pill, headline, note, button, helper, price, legal), photos right. */
@media (min-width: 900px) {
  .frame { max-width: 1180px; padding: 30px 80px 26px; }
  .wordmark { font-size: 40px; letter-spacing: 1px; }
  .screen { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 60px; align-content: center; justify-items: start;
    text-align: left; gap: 0 60px; grid-template-areas: "pill card" "head card" "note card" "cta card" "helper card" "price card" "legal card"; }
  .pill { grid-area: pill; margin-top: 0; }
  h1 { grid-area: head; margin-top: 18px; font-size: 64px; }
  h1 .outline { -webkit-text-stroke-width: 1.7px; }
  .note { grid-area: note; margin-top: 14px; font-size: 15px; }
  .btn { grid-area: cta; margin-top: 28px; min-height: 60px; font-size: 14px; }
  .helper { grid-area: helper; margin-top: 12px; font-size: 15px; }
  .price { grid-area: price; margin-top: 6px; font-size: 14px; }
  .legal-line { grid-area: legal; margin-top: 8px; }
  .card-wrap { grid-area: card; justify-self: stretch; align-self: center; min-height: 420px; }
  .card { max-width: 420px; padding: 24px 24px 18px; } .card .title { font-size: 32px; } .lyrics { font-size: 16px; }
}
@media (max-height: 760px) and (max-width: 899px) { .screen { gap: 6px; } h1 { font-size: 34px; } .lyrics { font-size: 12.5px; line-height: 1.7; } .card .title { font-size: 22px; }
  .note { margin-top: 8px; font-size: 11.5px; } .btn { min-height: 52px; } .helper { font-size: 13.5px; } .price { font-size: 12.5px; } }
@media (max-height: 600px) and (max-width: 899px) { .lyrics, .note { display: none; } }
/* P03: the wordmark is longer than MY MERRY HOME, so it and the How it works button shrink on phones */
@media (max-width: 899px) {
  .wordmark { font-size: clamp(15px, 4.6vw, 19px); }
  .btn-how { height: 40px; padding: 0 11px; font-size: 11px; letter-spacing: .6px; }
}
/* Short phones: keep the chorus lines only */
@media (max-height: 760px) and (max-width: 899px) {
  .lyrics p:nth-child(-n+2) { display: none; }
  .made { font-size: 11px; } .card { padding: 14px 16px 12px; } .play { width: 46px; height: 46px; }
}

/* v2 (2026-10-12): the UGC video is the main visual (muted, looping, captions burned in), with a compact player for
   June's full preview under it. The song card above is no longer in the page. */
.card-wrap { flex: 1 1 0; min-height: 200px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.vcard { position: relative; flex: 1 1 0; min-height: 0; aspect-ratio: 4 / 5; max-width: 100%; margin: 0; border-radius: 14px; overflow: hidden;
  box-shadow: 0 10px 22px rgba(43,33,26,.18); background: #d9cbb6; }
.vcard video { display: block; width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.sound { position: absolute; top: 10px; right: 10px; border: 0; border-radius: 16px; background: rgba(0,0,0,.55); color: #fff; font-family: inherit;
  font-size: 11px; letter-spacing: .6px; padding: 6px 11px; cursor: pointer; }
.sound.is-on { display: none; }
.mini { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 360px; background: var(--paper); border-radius: 30px; padding: 6px 14px 6px 6px;
  box-shadow: 0 4px 12px rgba(43,33,26,.10); }
.mini .play { width: 38px; height: 38px; } .mini .play svg { width: 15px; height: 15px; }
.mini-t { flex: 1; text-align: left; min-width: 0; }
.mini-l { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 5px; }
@media (min-width: 900px) {
  .card-wrap { grid-area: card; justify-self: stretch; align-self: center; flex: none; min-height: 0; }
  .vcard { flex: none; height: min(560px, calc(100dvh - 230px)); }
  .mini { max-width: 420px; }
}
@media (max-height: 760px) and (max-width: 899px) { .note { display: none; } .mini .play { width: 34px; height: 34px; } }
