/* Thanksgiving Song — v2 « The Dinner Table ».
   Direct-response layout built for 55+ buyers: big type, one action per screen, plain words,
   thick borders, no clever UI. Shared by /v2, /v2/create and /v2/preview. */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,SOFT@9..144,400..800,0..100&display=swap');

@font-face { font-family: 'DM Sans'; font-weight: 400; font-style: normal; font-display: swap;
  src: url(/cdn/fonts/dm_sans/dmsans_n4.ec80bd4dd7e1a334c969c265873491ae56018d72.woff2) format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 700; font-style: normal; font-display: swap;
  src: url(/cdn/fonts/dm_sans/dmsans_n7.97e21d81502002291ea1de8aefb79170c6946ce5.woff2) format('woff2'); }
@font-face { font-family: 'KaiseiOptiLatin'; font-display: swap; font-weight: 400;
  src: url(/cdn/shop/t/2/assets/kaisei-opti-latin.woff2) format('woff2'); }

:root {
  --walnut: #2B1B13;
  --walnut-2: #3A2619;
  --ember: #E8632B;
  --ember-dk: #C44E1C;
  --amber: #F2B04C;
  --cream: #FFF8EE;
  --cream-2: #F6E9D6;
  --paper: #FFFFFF;
  --ink: #23170F;
  --soft: #6B5A50;
  --line: #E4D5C3;
  --ok: #1F7A4D;
  --radius: 22px;
  --font-display: 'Fraunces', 'KaiseiOptiLatin', Georgia, serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --fs: 19px;
  --shadow: 0 20px 50px -28px rgba(43, 27, 19, .45);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--font-body); font-size: var(--fs); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 4px solid var(--amber); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-variation-settings: 'SOFT' 60, 'opsz' 144; font-weight: 700; line-height: 1.04; margin: 0; letter-spacing: -.015em; }
h1 { font-size: clamp(2.7rem, 7vw, 5.4rem); }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h3 { font-size: 1.5rem; line-height: 1.2; }
em { font-style: italic; color: var(--ember); }
p { margin: 0; }
.wrap { width: min(1120px, 100% - 40px); margin: 0 auto; position: relative; }
.narrow { width: min(760px, 100% - 40px); margin: 0 auto; }
.lead { font-size: clamp(1.15rem, 2vw, 1.4rem); color: var(--soft); line-height: 1.5; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.fine { font-size: 1rem; color: var(--soft); }

/* Big, obvious buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 66px; padding: 14px 34px; border-radius: 999px; border: 0;
  background: var(--ember); color: #fff; font-weight: 700; font-size: 1.25rem; line-height: 1.15; text-align: center;
  box-shadow: 0 12px 28px -12px rgba(196, 78, 28, .9), inset 0 -3px 0 rgba(0, 0, 0, .18); transition: transform .15s, background .15s; }
.btn:hover { background: var(--ember-dk); transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn .arr { font-size: 1.3em; line-height: 1; }
.btn--xl { min-height: 76px; font-size: 1.4rem; padding: 16px 44px; }
.btn--full { width: 100%; }
.btn--light { background: #fff; color: var(--ink); box-shadow: 0 12px 28px -14px rgba(0, 0, 0, .5), inset 0 -3px 0 rgba(0, 0, 0, .08); }
.btn--light:hover { background: var(--cream-2); }
.btn--ghost { background: transparent; color: var(--ink); border: 3px solid var(--ink); box-shadow: none; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.under { display: block; margin-top: 12px; font-size: 1rem; color: var(--soft); }
.on-dark .under { color: #D9C6B2; }

/* Chapter numbers (guides the eye down the page) */
.chapter { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .95rem; color: var(--ember-dk); }
.chapter b { width: 46px; height: 46px; border-radius: 50%; background: var(--ember); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-size: 1.35rem; letter-spacing: 0; flex: none; }
.on-dark .chapter { color: var(--amber); }

/* Header */
.hdr { position: sticky; top: 0; z-index: 30; background: var(--walnut); color: #fff; }
.hdr .wrap { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 12px; }
.hdr .logo { font-family: var(--font-display); font-size: 1.55rem; font-weight: 700; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.hdr .logo svg { width: 44px; height: 20px; }
.hdr nav { display: flex; align-items: center; gap: 18px; font-weight: 700; font-size: 1.05rem; }
.hdr nav a:not(.btn) { color: #E7D7C5; }
.hdr .btn { min-height: 50px; font-size: 1.05rem; padding: 8px 22px; }
@media (max-width: 700px) {
  /* Classic-sized header (56px): the waveform stacked over the wordmark, the button on one line */
  .hdr .wrap { height: 56px; }
  .hdr .hide-m { display: none; }
  .hdr .logo { flex-direction: column; gap: 1px; font-size: 1.05rem; line-height: 1.1; }
  .hdr .logo svg { width: 38px; height: 17px; }
  .hdr .btn { font-size: .95rem; padding: 8px 16px; min-height: 42px; white-space: nowrap; }
}

.sec { padding: clamp(60px, 8vw, 112px) 0; position: relative; }
.on-dark { background: var(--walnut); color: #FFF4E6; }
.on-dark .lead { color: #D9C6B2; }
.on-dark h2 em { color: var(--amber); }
.on-cream2 { background: var(--cream-2); }

/* Cards */
.card { background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.stars { color: var(--amber); letter-spacing: 3px; font-size: 1.1rem; }

/* Sticky mobile bar */
.sticky-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 248, 238, .96); border-top: 2px solid var(--line); transform: translateY(110%); transition: transform .3s; }
.sticky-bar.is-visible { transform: none; }
.sticky-bar .btn { width: 100%; min-height: 60px; font-size: 1.15rem; }
@media (min-width: 900px) { .sticky-bar { display: none; } }

/* Footer */
.ftr { background: var(--walnut); color: #CDB9A5; padding: 56px 0 120px; font-size: 1rem; }
.ftr .wrap { display: grid; gap: 22px; }
.ftr .logo { font-family: var(--font-display); font-size: 1.6rem; color: #fff; font-weight: 700; }
.ftr nav { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.ftr nav a:hover { color: #fff; }
.ftr .fine { color: #9A8673; }

/* Soft reveal (JS only, never hides content without it) */
.js .rv { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; transition: none; } }

/* ---------- Quiz page (v2/create) ---------- */
.quiz-top { padding: clamp(32px, 5vw, 56px) 0 12px; text-align: center; display: grid; gap: 14px; justify-items: center; }
.quiz-top h1 { font-size: clamp(2.3rem, 6vw, 4rem); }
.stepline { display: inline-flex; align-items: center; gap: 12px; background: var(--paper); border: 2px solid var(--line); border-radius: 999px; padding: 10px 18px; font-weight: 700; font-size: 1.05rem; }
.stepline .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 5px rgba(232, 99, 43, .18); }
.quiz-card { max-width: 760px; margin: 22px auto 0; overflow: hidden; border-width: 3px; }
.quiz-progress { height: 10px; background: var(--cream-2); }
.quiz-progress > span { display: block; height: 100%; width: 16.6%; background: var(--ember); transition: width .4s ease; }
.quiz-form { position: relative; min-height: 630px; padding: 10px 12px 12px; }
.tally-quiz__iframe { width: 100%; border: 0; display: block; }
.tally-quiz__loader { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 16px; background: var(--paper); z-index: 2; opacity: 0; transition: opacity .25s; text-align: center; padding: 20px; font-size: 1.15rem; }
.tally-quiz__loader.is-visible { opacity: 1; }
.tally-quiz__loader[hidden] { display: none; }
.tally-quiz__loader-spinner { width: 40px; height: 40px; border-radius: 50%; border: 4px solid var(--cream-2); border-top-color: var(--ember); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tally-quiz__loader-text { color: var(--soft); }
.tally-quiz__retry { background: var(--ink); color: #fff; border: 0; padding: 14px 24px; border-radius: 999px; font-size: 1.05rem; }
.tally-quiz__retry[hidden] { display: none; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--paper); border: 2px solid var(--line); font-size: 1rem; font-weight: 700; color: var(--ink); }
.chip::before { content: '✓'; color: var(--ok); font-weight: 900; }
