/* ==========================================================================
   THE WAY — public website (marketing pages, sign-in, customer account).

   Bright and light, Christmas and Jesus up front (Michelle's direction,
   Nov 21 2026). Same palette and fonts as the donation page and the app's
   book screens, so the website, the checkout and the app feel like one place.
   Not the admin console's theme: none of BizTheme is loaded here.
   ========================================================================== */

@font-face { font-family: 'Comfortaa'; src: url('/assets/fonts/Comfortaa.ttf') format('truetype'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/assets/fonts/Poppins-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/assets/fonts/Poppins-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/assets/fonts/Poppins-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }

:root {
  --cream: #fff9ef;
  --cream-deep: #fbf0dc;
  --paper: #ffffff;
  --red: #c8102e;
  --red-deep: #9e0c24;
  --red-soft: #fff0f2;
  --green: #1f6b3a;
  --green-soft: #eaf5ee;
  --gold: #c4a542;
  --gold-soft: #f6e7b4;
  --gold-text: #7a6114;          /* gold that passes contrast on white */
  --navy: #10203a;
  --navy-soft: #24395c;
  --ink: #2a2a33;
  --muted: #5f5f6c;
  --line: #eadfca;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 14px 40px rgba(16, 32, 58, .08);
  --shadow-red: 0 10px 24px rgba(200, 16, 46, .25);
  --wrap: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 16px/1.6 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
img { max-width: 100%; display: block; }
a { color: var(--red-deep); text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: 'Comfortaa', sans-serif; color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 700 .78rem/1 'Poppins', sans-serif; letter-spacing: .14em;
           text-transform: uppercase; color: var(--red-deep); margin-bottom: 14px; }
.eyebrow::before { content: '\2605'; color: var(--gold); font-size: 1rem; letter-spacing: 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.paper { background: var(--paper); }
.band-navy { background: var(--navy); color: #eef1f7; }
.band-navy h2, .band-navy h3 { color: #fff; }
.band-navy .eyebrow { color: var(--gold-soft); }

/* --- Buttons ------------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
       font: 700 1rem/1 'Poppins', sans-serif; text-decoration: none; border-radius: 999px; padding: 15px 26px;
       transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-red { background: linear-gradient(180deg, var(--red), var(--red-deep)); color: #fff; box-shadow: var(--shadow-red); }
.btn-red:hover { color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { color: #fff; background: var(--navy-soft); }
.btn-ghost { background: var(--paper); color: var(--navy); border: 2px solid var(--line); }
.btn-ghost:hover { color: var(--navy); border-color: var(--gold); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { color: var(--navy); background: #d3b558; }
.btn-sm { padding: 10px 18px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- Header ------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 249, 239, .92); backdrop-filter: saturate(1.4) blur(10px);
               border-bottom: 1px solid rgba(234, 223, 202, .8); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.logo svg { width: 40px; height: 40px; flex: none; }
.logo-word { font: 700 1.3rem/1 'Comfortaa', sans-serif; letter-spacing: .04em; }
.logo-sub { display: block; font: 600 .66rem/1.2 'Poppins', sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--navy); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 10px 12px; border-radius: 10px; }
.nav a:hover { background: var(--cream-deep); }
.nav a[aria-current="page"] { color: var(--red-deep); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; padding: 10px 12px; border-radius: 10px; font-weight: 700; color: var(--navy); border: 2px solid var(--line); background: var(--paper); }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 8px); background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
              box-shadow: var(--shadow); padding: 10px; min-width: 230px; display: grid; gap: 2px; }
.menu-panel a { color: var(--navy); text-decoration: none; font-weight: 600; padding: 12px 14px; border-radius: 10px; }
.menu-panel a:hover { background: var(--cream); }
@media (max-width: 960px) {
  .nav { display: none; }
  .menu { display: block; }
  .nav-actions .hide-sm { display: none; }
}

/* --- Hero --------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 88px;
        background:
          radial-gradient(circle at 8% 12%, rgba(196,165,66,.22) 0 120px, transparent 121px),
          radial-gradient(circle at 96% 8%, rgba(200,16,46,.10) 0 160px, transparent 161px),
          radial-gradient(circle at 70% 100%, rgba(31,107,58,.08) 0 220px, transparent 221px),
          linear-gradient(180deg, #fffdf8 0%, var(--cream) 100%); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-lead { font-size: 1.15rem; color: var(--ink); max-width: 560px; }
.hero-art { position: relative; justify-self: center; }
.hero-art .cover { width: min(360px, 78vw); border-radius: 22px; border: 6px solid #fff; box-shadow: 0 30px 60px rgba(158,12,36,.22), 0 0 0 1px var(--line); transform: rotate(-2deg); }
.hero-art .halo { position: absolute; inset: -40px; background: radial-gradient(circle, rgba(246,231,180,.9) 0 45%, transparent 70%); z-index: -1; }
.hero-art .badge { position: absolute; left: -18px; bottom: 34px; background: var(--paper); border-radius: 16px; padding: 12px 16px;
                   box-shadow: var(--shadow); border: 1px solid var(--line); max-width: 220px; }
.hero-art .badge strong { display: block; font: 700 1.6rem/1 'Comfortaa', sans-serif; color: var(--green); }
.hero-art .badge span { font-size: .85rem; color: var(--muted); }
.stars::before, .stars::after { content: '\2605'; position: absolute; color: var(--gold); }
.stars::before { top: -26px; right: 24px; font-size: 34px; }
.stars::after { top: 40%; right: -30px; font-size: 22px; }
.verse { font: 400 1.02rem/1.6 'Comfortaa', sans-serif; color: var(--navy); border-left: 4px solid var(--gold); padding: 6px 0 6px 16px; margin: 26px 0 0; max-width: 520px; }
.verse cite { display: block; font: 700 .85rem/1.4 'Poppins', sans-serif; font-style: normal; color: var(--red-deep); margin-top: 6px; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
        padding: 7px 14px; font-weight: 600; font-size: .9rem; color: var(--navy); margin-bottom: 18px; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
@media (max-width: 900px) {
  .hero { padding: 40px 0 64px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { order: -1; }
  .hero-art .badge { left: 0; bottom: 18px; padding: 8px 12px; }
  .hero-art .cover { width: min(230px, 60vw); }
  .hero-art .badge strong { font-size: 1.2rem; }
}

/* --- Cards and grids ---------------------------------------------------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; }
.feature .icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; margin-bottom: 16px; }
.feature p { color: var(--muted); margin: 0; }
.tint-red { background: var(--red-soft); color: var(--red-deep); }
.tint-gold { background: #fdf4d8; color: var(--gold-text); }
.tint-green { background: var(--green-soft); color: var(--green); }
.tint-navy { background: #e8edf6; color: var(--navy); }

/* Books */
.book-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.book-card .cover-wrap { background: linear-gradient(180deg, var(--gold-soft), #fff6dc); padding: 22px 22px 0; display: flex; justify-content: center; }
.book-card .cover-wrap img { height: 230px; width: auto; max-width: 85%; object-fit: cover; border-radius: 12px 12px 0 0; box-shadow: 0 -4px 24px rgba(16,32,58,.15); }
.book-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.book-card .series { font: 700 .72rem/1 'Poppins', sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--red-deep); }
.book-card h3 { margin: 4px 0 0; }
.book-card .meta { color: var(--muted); font-size: .92rem; }
.book-card .give { margin-top: auto; padding-top: 12px; }
.cover-none { height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
              background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%); color: var(--gold-soft);
              font: 700 .9rem/1 'Poppins', sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.cover-none span { font-size: 54px; color: var(--gold); letter-spacing: 0; }
.shelf { display: flex; gap: 18px; overflow-x: auto; padding: 4px 4px 18px; scroll-snap-type: x mandatory; }
.shelf a { flex: 0 0 150px; scroll-snap-align: start; text-decoration: none; color: var(--navy); font-weight: 600; font-size: .9rem; }
.shelf img { border-radius: 10px; box-shadow: 0 8px 20px rgba(16,32,58,.14); margin-bottom: 8px; aspect-ratio: 3 / 4; object-fit: cover; width: 100%; background: var(--gold-soft); }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 30px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -22px; left: 26px; width: 48px; height: 48px; border-radius: 50%;
                background: var(--red); color: #fff; font: 700 1.3rem/48px 'Comfortaa', sans-serif; text-align: center; box-shadow: var(--shadow-red); }
.big-note { font: 700 1.15rem/1.4 'Comfortaa', sans-serif; color: var(--green); }

/* Pricing */
.billing { display: inline-flex; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 5px; margin: 0 auto 34px; }
.billing input { position: absolute; opacity: 0; pointer-events: none; }
.billing label { padding: 10px 20px; border-radius: 999px; font-weight: 700; cursor: pointer; color: var(--muted); }
.billing label small { color: var(--green); font-weight: 700; }
#bill-month:checked ~ .billing-labels label[for="bill-month"],
#bill-year:checked ~ .billing-labels label[for="bill-year"] { background: var(--navy); color: #fff; }
#bill-year:checked ~ .billing-labels label[for="bill-year"] small { color: var(--gold-soft); }
#bill-month:focus-visible ~ .billing-labels label[for="bill-month"],
#bill-year:focus-visible ~ .billing-labels label[for="bill-year"] { outline: 3px solid var(--gold); outline-offset: 2px; }
.price-year { display: none; }
#bill-year:checked ~ .plans .price-year { display: block; }
#bill-year:checked ~ .plans .price-month { display: none; }
.plan { display: flex; flex-direction: column; position: relative; }
.plan.featured { border: 2px solid var(--red); box-shadow: 0 20px 50px rgba(200,16,46,.14); }
.plan .flag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--red); color: #fff; font: 700 .72rem/1 'Poppins', sans-serif;
              letter-spacing: .1em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; white-space: nowrap; }
.plan h3 { margin-bottom: 2px; }
.plan .plan-tag { color: var(--muted); font-size: .92rem; margin-bottom: 16px; }
.plan .amount { font: 700 2.4rem/1 'Comfortaa', sans-serif; color: var(--navy); }
.plan .per { color: var(--muted); font-weight: 600; font-size: .95rem; }
.plan .trial { display: inline-block; margin-top: 8px; color: var(--green); font-weight: 700; font-size: .88rem; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.plan li::before { content: '\2713'; color: var(--green); font-weight: 700; flex: none; }
.plan .btn { margin-top: auto; white-space: nowrap; }

/* FAQ */
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; color: var(--navy); padding: 18px 28px 18px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--red); }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { color: var(--muted); margin: 0 0 18px; }

/* Christmas band */
.xmas { background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%); color: #fff; border-radius: 28px; padding: 44px; position: relative; overflow: hidden; }
.xmas h2 { color: #fff; }
.xmas p { color: rgba(255,255,255,.92); }
.xmas::after { content: '\2605'; position: absolute; right: -10px; bottom: -60px; font-size: 260px; line-height: 1; color: rgba(246,231,180,.18); }
.xmas .btn-row { position: relative; z-index: 1; }
.xmas .terms { font-weight: 700; color: var(--gold-soft); }
@media (max-width: 640px) { .xmas { padding: 30px 22px; } }

/* About */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 44px; align-items: center; }
.about .mark { background: var(--navy); border-radius: 28px; aspect-ratio: 1; display: grid; place-items: center; max-width: 340px; width: 100%; justify-self: center; }
.about .mark svg { width: 62%; height: auto; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* --- Forms (sign-in, sign-up, account) ---------------------------------- */
.auth { min-height: calc(100vh - 72px); display: grid; place-items: start center; padding: 48px 20px 72px; }
.auth .card { width: 100%; max-width: 460px; padding: 32px; }
.auth h1 { font-size: 1.9rem; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--navy); }
.field .hint { display: block; color: var(--muted); font-size: .82rem; margin-top: 6px; }
.input, select.input, textarea.input { width: 100%; font: inherit; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink); }
.input:focus { outline: 3px solid rgba(196,165,66,.45); border-color: var(--gold); }
.input[aria-invalid="true"] { border-color: var(--red); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; margin-bottom: 16px; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--red); flex: none; }
.alert { border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 16px; font-weight: 600; font-size: .95rem; }
.alert-error { background: var(--red-soft); color: var(--red-deep); border: 1px solid #f3c1ca; }
.alert-ok { background: var(--green-soft); color: var(--green); border: 1px solid #c4e2cf; }
.alert-info { background: #fdf6e1; color: #5c4a10; border: 1px solid var(--gold-soft); }
.divider { text-align: center; color: var(--muted); font-size: .9rem; margin: 18px 0; }
.form-foot { text-align: center; color: var(--muted); font-size: .95rem; margin-top: 18px; }

/* --- Account ------------------------------------------------------------ */
.account { display: grid; grid-template-columns: 240px 1fr; gap: 32px; padding: 40px 20px 80px; align-items: start; }
.account > * { min-width: 0; }
.account-nav { position: sticky; top: 96px; display: grid; gap: 4px; }
.account-nav a { color: var(--navy); text-decoration: none; font-weight: 600; padding: 12px 14px; border-radius: 12px; }
.account-nav a:hover { background: var(--cream-deep); }
.account-nav a[aria-current="page"] { background: var(--paper); box-shadow: var(--shadow); color: var(--red-deep); }
.account h1 { font-size: 2rem; }
.account .card + .card { margin-top: 22px; }
.account .grid > .card + .card { margin-top: 0; }
.kv { display: grid; grid-template-columns: 180px 1fr; gap: 10px 18px; margin: 0; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; color: var(--navy); font-weight: 600; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th { text-align: left; color: var(--muted); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.tag { display: inline-block; border-radius: 999px; padding: 4px 10px; font-size: .78rem; font-weight: 700; }
.tag-green { background: var(--green-soft); color: var(--green); }
.tag-red { background: var(--red-soft); color: var(--red-deep); }
.tag-muted { background: #f1efe9; color: var(--muted); }
.tag-gold { background: #fdf4d8; color: var(--gold-text); }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-head h2 { font-size: 1.3rem; margin: 0; }
.danger-zone { border-color: #f3c1ca; }
@media (max-width: 860px) {
  .account { grid-template-columns: 1fr; padding-top: 24px; }
  .account-nav { position: static; display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; }
  .account-nav a { white-space: nowrap; background: var(--paper); border: 1px solid var(--line); }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 12px; }
  .table-stack thead { display: none; }
  .table-stack tr { display: block; border-bottom: 1px solid var(--line); padding: 10px 0; }
  .table-stack td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 6px 0; }
  .table-stack td::before { content: attr(data-label); color: var(--muted); font-weight: 600; }
  .table-stack .num { text-align: right; }
}

/* --- Footer ------------------------------------------------------------- */
.site-footer { background: var(--navy); color: #c9d2e3; padding: 56px 0 36px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h3 { color: #fff; font-size: 1rem; font-family: 'Poppins', sans-serif; }
.site-footer a { color: #e6ebf4; text-decoration: none; display: inline-block; padding: 4px 0; }
.site-footer a:hover { color: var(--gold-soft); text-decoration: underline; }
.site-footer .logo { color: #fff; }
.site-footer .logo-sub { color: #9fb0cc; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; margin-top: 10px; font-size: .88rem; color: #9fb0cc; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

@media (max-width: 860px) { #package { grid-template-columns: 1fr !important; } #package aside { position: static !important; } }

/* --- Passkeys (account → profile) ---------------------------------------- */
.passkey-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.passkey-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 14px; }
.passkey-list form { margin: 0; flex: none; }
.d-block { display: block; }

/* Privacy policy and other long reading pages (Task 19.5). */
.privacy h2 { font-size: 1.4rem; margin: 36px 0 10px; }
.privacy h3 { font-size: 1.05rem; margin: 20px 0 6px; }
.privacy p, .privacy li { line-height: 1.65; }
.privacy ul { padding-left: 1.2em; margin: 8px 0 16px; }
.privacy li { margin-bottom: 6px; }
