/* Pillowcase Podcast: same navy + gold + cream look as the signup forms */
:root {
  --navy: #1d2340;
  --navy-deep: #141830;
  --navy-soft: #2e3766;
  --ink: #2b2f55;
  --muted: #5b5f86;
  --cream: #fffaf0;
  --cream-deep: #f3ecdc;
  --gold: #f4b860;
  --gold-deep: #b8741a;
  --line: #e6dcc6;
  --serif: 'Lora', Georgia, serif;
  --sans: 'Nunito', 'Helvetica Neue', Arial, sans-serif;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--sans);
  font-weight: 800;
  font-size: 18px;
  text-decoration: none;
  padding: 16px 30px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(244, 184, 96, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(244, 184, 96, 0.45); }
.btn:focus-visible { outline: 3px solid var(--cream); outline-offset: 3px; }
.btn-dark { background: var(--navy); color: var(--cream); box-shadow: none; }
.btn-dark:focus-visible { outline-color: var(--gold); }
.fine { font-size: 14px; color: var(--muted); margin-top: 12px; }

/* Night sections */
.night {
  background-color: var(--navy);
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 82% 12%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1.5px 1.5px at 68% 72%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 25% 82%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 90% 48%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1.5px 1.5px at 6% 55%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 45% 30%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 58% 90%, rgba(255,255,255,0.5), transparent),
    radial-gradient(circle at 20% 10%, var(--navy-soft) 0%, var(--navy) 55%, var(--navy-deep) 100%);
  color: var(--cream);
}
.night .fine { color: #b9bcd8; }

/* Checkout-cancelled note */
.notice {
  display: none;
  background: var(--gold);
  color: var(--navy);
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  padding: 10px 20px;
}
.notice.show { display: block; }

/* Header */
.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
}
.header-link {
  font-weight: 700;
  font-size: 15px;
  color: var(--cream);
  text-decoration: none;
  border: 1.5px solid rgba(255, 250, 240, 0.35);
  padding: 8px 16px;
  border-radius: 999px;
}
.header-link:hover { border-color: var(--gold); }

/* Hero */
.hero { padding: 40px 0 88px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6.2vw, 68px); font-weight: 700; color: var(--cream); }
.hero .lede { font-size: 20px; color: #d9dbef; margin: 20px 0 30px; max-width: 34ch; }

/* The story card illustration in the hero */
.story-card {
  position: relative;
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
  max-width: 380px;
  margin-left: auto;
  transform: rotate(1.5deg);
}
.moon {
  position: absolute;
  top: -34px;
  right: -18px;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  box-shadow: -14px 10px 0 0 var(--gold);
  transform: rotate(-20deg);
}
.story-card .label { font-size: 12px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: #9a96b0; }
.story-card h3 { font-size: 24px; margin: 8px 0 18px; }
.player { display: flex; align-items: center; gap: 14px; background: var(--cream-deep); border-radius: 14px; padding: 12px 14px; }
.play {
  flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy);
  display: grid; place-items: center;
}
.play::before {
  content: '';
  margin-left: 4px;
  border-left: 14px solid var(--gold);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
}
.bar { flex: 1; height: 6px; border-radius: 6px; background: #ddd3ea; position: relative; overflow: hidden; }
.bar::after { content: ''; position: absolute; inset: 0 62% 0 0; background: var(--gold); border-radius: 6px; }
.time { font-size: 13px; font-weight: 700; color: var(--muted); }
.story-card .meta { font-size: 14px; color: var(--muted); margin-top: 14px; }

/* Sections */
section { padding: 84px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); }
.section-head p { margin-top: 12px; color: var(--muted); font-size: 18px; }
.eyebrow,
.section-head p.eyebrow,
.price-card p.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; color: var(--gold-deep); margin: 0 0 10px; }
.gift { padding-bottom: 0; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.step .num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: var(--gold);
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: 20px;
  margin-bottom: 16px;
}
.step h3 { font-size: 22px; margin-bottom: 8px; }
.step p { color: var(--muted); }

/* What's in every story */
.features { background: var(--cream-deep); }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature { background: var(--cream); border-radius: var(--radius); padding: 26px 24px; }
.feature h3 { font-size: 22px; margin-bottom: 8px; }
.feature p { color: var(--muted); }
.feature.wide { grid-column: 1 / -1; }

/* Sunday Story Night */
.sunday .wrap { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; }
.big-moon {
  width: 140px; height: 140px; border-radius: 50%;
  box-shadow: -26px 18px 0 0 var(--gold);
  transform: rotate(-20deg);
  margin: 0 30px 20px 30px;
}
.sunday h2 { font-size: clamp(32px, 4.4vw, 46px); color: var(--cream); }
.sunday p { margin-top: 14px; font-size: 19px; color: #d9dbef; max-width: 52ch; }

/* Gift */
.gift-box {
  background: #fff;
  border: 1.5px dashed var(--gold);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.gift-box h2 { font-size: 32px; }
.gift-box p { color: var(--muted); margin-top: 8px; max-width: 52ch; }

/* Price */
.price { text-align: center; }
.price-card {
  max-width: 480px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: 0 20px 50px rgba(29, 35, 64, 0.08);
}
.price-card .amount { font-family: var(--serif); font-size: 56px; font-weight: 700; color: var(--navy); }
.price-card .amount span { font-family: var(--sans); font-size: 20px; font-weight: 600; color: var(--muted); }
.price-card p { color: var(--muted); margin: 10px 0; }
.price-card .btn { margin-top: 18px; }

/* FAQ */
.faq { background: var(--cream-deep); }
.faq-list { max-width: 760px; }
details { background: var(--cream); border-radius: 16px; padding: 0 22px; margin-bottom: 12px; }
summary {
  cursor: pointer; list-style: none;
  font-weight: 700; font-size: 18px;
  padding: 18px 28px 18px 0;
  position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 24px; font-weight: 400; color: var(--gold-deep);
}
details[open] summary::after { content: '\2212'; }
details p { padding: 0 0 20px; color: var(--muted); }

/* Final call + footer */
.final { text-align: center; padding: 90px 0; }
.final h2 { font-size: clamp(32px, 4.6vw, 48px); color: var(--cream); margin-bottom: 26px; }
footer { padding: 32px 0 40px; font-size: 14px; color: #b9bcd8; border-top: 1px solid rgba(255,255,255,0.08); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; }
footer a { color: #d9dbef; text-decoration: none; }
footer a:hover { color: var(--gold); }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* First-name box in the hero and the final section */
.name-form { margin-top: 4px; max-width: 520px; }
.name-form label { display: block; font-weight: 700; font-size: 15px; color: #d9dbef; margin-bottom: 8px; }
.name-row { display: flex; gap: 10px; }
.name-row input {
  flex: 1; min-width: 0;
  font-family: var(--sans); font-size: 18px; color: var(--navy);
  background: var(--cream);
  border: 2px solid transparent; border-radius: 999px;
  padding: 14px 20px;
}
.name-row input::placeholder { color: #9a96b0; }
.name-row input:focus { outline: none; border-color: var(--gold); }
.name-row .btn { flex: none; border: 0; cursor: pointer; }
.name-form + .fine { margin-top: 14px; }
.fine + .fine { margin-top: 4px; }
.name-form.centered { margin: 0 auto; }
.name-form.centered label { text-align: center; }

/* Sample player button */
button.play { border: 0; cursor: pointer; padding: 0; }
button.play:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
button.play.playing::before {
  margin-left: 0;
  border: 0;
  width: 14px; height: 16px;
  background: linear-gradient(90deg, var(--gold) 0 35%, transparent 35% 65%, var(--gold) 65% 100%);
}

/* What's in every story: a plain list */
.feature-list { list-style: none; margin: 0; padding: 0; max-width: 760px; }
.feature-list li {
  position: relative;
  padding: 16px 0 16px 34px;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
}
.feature-list li:last-child { border-bottom: 0; }
.feature-list li::before {
  content: '';
  position: absolute; left: 4px; top: 22px;
  width: 12px; height: 12px; border-radius: 50%;
  box-shadow: -3px 2px 0 0 var(--gold-deep);
  transform: rotate(-20deg);
}

/* Phones */
@media (max-width: 820px) {
  body { font-size: 16px; }
  .hero { padding: 20px 0 64px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 54px; }
  .hero .lede { font-size: 18px; }
  .story-card { margin: 0 auto; transform: rotate(1deg); max-width: 340px; }
  section { padding: 64px 0; }
  .steps, .feature-grid { grid-template-columns: 1fr; }
  .sunday .wrap { grid-template-columns: 1fr; text-align: center; }
  .sunday p { margin-left: auto; margin-right: auto; }
  .big-moon { width: 96px; height: 96px; box-shadow: -18px 12px 0 0 var(--gold); margin: 0 auto 8px; }
  .gift-box { padding: 28px 22px; }
  .name-row { flex-direction: column; }
  .name-row input { text-align: center; }
  .feature-list li { font-size: 16px; }
  .price-card { padding: 32px 16px; }
  .price-card .btn { font-size: 16px; padding: 16px 12px; }
  .btn { padding: 16px 20px; font-size: 17px; }
  .btn { width: 100%; text-align: center; }
  .header-link { padding: 7px 14px; font-size: 14px; white-space: nowrap; }
  .brand { font-size: 12px; letter-spacing: 2px; }
  .moon { right: -6px; }
}

/* ---------- Signup page (/start) ---------- */
.signup-page { min-height: 100vh; }
.signup { padding: 12px 20px 64px; }
.signup-card {
  max-width: 560px; margin: 0 auto;
  background: var(--cream); color: var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  padding: 32px 36px 30px;
}
.progress { height: 6px; background: var(--cream-deep); border-radius: 999px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 20%; background: var(--gold); border-radius: 999px; transition: width 0.25s ease; }
.step-count { font-size: 13px; font-weight: 700; color: var(--muted); margin: 10px 0 22px; }
.signup h1 { font-size: clamp(26px, 4.5vw, 32px); color: var(--navy); margin-bottom: 18px; }
.hint { color: var(--muted); font-size: 16px; margin: -6px 0 16px; }
.hint.tight { margin: -4px 0 8px; }
.field-label { display: block; font-weight: 700; font-size: 16px; margin: 18px 0 8px; }
/* A second question on the same screen: smaller than the heading, bigger than the box text */
.field-label.question { font-size: 19px; font-weight: 800; color: var(--navy); margin: 26px 0 6px; }
.field-label.question + .hint { margin: 0 0 12px; }
.signup h1 + .field-label { margin-top: 0; }
.field {
  width: 100%;
  font-family: var(--sans); font-size: 17px; color: var(--navy);
  background: #fff;
  border: 2px solid #ddd3ea; border-radius: 14px;
  padding: 14px 16px;
}
.field::placeholder { color: #a6a2bb; }
.field:focus { outline: none; border-color: var(--gold); }
.field-error { color: #b4471f; font-size: 14px; font-weight: 700; min-height: 0; margin-top: 6px; }
.field-error:empty { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span {
  display: inline-block; min-width: 52px; text-align: center;
  padding: 10px 18px;
  background: #fff; border: 2px solid #ddd3ea; border-radius: 999px;
  font-weight: 700; color: var(--ink);
  transition: background 0.12s ease, border-color 0.12s ease;
}
.chips label:hover span { border-color: var(--gold); }
.chips input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--cream); }
.chips input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }

.surprise {
  margin-top: 14px; padding: 0;
  background: none; border: 0; cursor: pointer;
  font-family: var(--sans); font-size: 16px; font-weight: 800;
  color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px;
}

.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; font-size: 15px; cursor: pointer; }
.consent input { width: 20px; height: 20px; flex: none; margin-top: 3px; accent-color: var(--navy); }
.consent a { color: var(--gold-deep); font-weight: 700; }
.when { margin-top: 18px; padding: 14px 16px; background: var(--cream-deep); border-radius: 14px; font-size: 15px; }

.actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; }
.actions .btn { border: 0; cursor: pointer; min-width: 150px; text-align: center; }
.actions .btn:disabled { opacity: 0.7; cursor: wait; transform: none; }
.back {
  background: none; border: 0; cursor: pointer; padding: 10px 4px;
  font-family: var(--sans); font-size: 16px; font-weight: 700;
  color: var(--muted); text-decoration: none;
}
.back:hover { color: var(--navy); }
.signup .fine { text-align: center; color: var(--muted); }
.notice-inline { display: none; background: #fdebc8; color: var(--navy); font-weight: 700; font-size: 15px; padding: 10px 14px; border-radius: 12px; margin: -8px 0 20px; }
.notice-inline.show { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 820px) {
  .signup { padding: 4px 12px 40px; }
  .signup-card { padding: 24px 20px 24px; }
  .chips span { padding: 9px 14px; min-width: 46px; }
  .actions .btn { width: auto; flex: 1; }
}
.signup .screen { padding: 0; }
.signup .screen[hidden] { display: none; }
.chips span { min-width: 48px; padding: 10px 14px; }

/* ---------- Thank-you page ---------- */
.thanks { text-align: center; padding-top: 40px; }
.thanks h1 { margin-bottom: 16px; }
.thanks p + p { margin-top: 12px; }
.thanks .when { margin-top: 22px; }
.thanks .fine { margin-top: 22px; }
.thanks .fine a { color: var(--gold-deep); font-weight: 700; }
.thanks-moon {
  width: 56px; height: 56px; margin: 0 auto 18px;
  border-radius: 50%;
  box-shadow: -12px 8px 0 0 var(--gold);
  transform: translateX(8px) rotate(-15deg);
}
.signup h1 { text-wrap: balance; }

/* ---------- Terms + Privacy ---------- */
.legal { padding: 56px 20px 80px; }
.legal-wrap { max-width: 720px; margin: 0 auto; }
.legal h1 { font-size: clamp(34px, 5vw, 46px); color: var(--navy); }
.legal .updated { color: var(--muted); font-size: 15px; margin: 8px 0 28px; }
.legal h2 { font-size: 23px; color: var(--navy); margin: 34px 0 10px; }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 10px 0 0; padding-left: 22px; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--gold-deep); font-weight: 700; }
.legal .legal-foot { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
@media (max-width: 820px) {
  .legal { padding: 36px 16px 56px; }
  .legal h2 { font-size: 21px; }
}
