/* Roy's Christmas Lights Book — "Christmas night at the workshop". Mobile first. */
@font-face { font-family: "Roy Slab"; src: url("../fonts/roboto-slab-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Roy Slab"; src: url("../fonts/roboto-slab-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Roy Hand"; src: url("../fonts/kalam-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --navy: #14213d; --deep: #0b1530; --amber: #f2a93b; --glow: #ffcf70;
  --cream: #fbf6ea; --paper: #fffdf7; --red: #b3261e; --red-dark: #8f1d17;
  --ink: #1d2433; --muted: #4a5266; --line: #e6dcc4;
  --slab: "Roy Slab", "Rockwell", "Roboto Slab", "Georgia", serif;
  --body: Georgia, "Iowan Old Style", "Palatino Linotype", "Noto Serif", serif;
  --hand: "Roy Hand", "Segoe Print", "Bradley Hand", cursive;
  --radius: 14px;
}
*, *::before, *::after { 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(--body); font-size: 19px; line-height: 1.6; }
@media (min-width: 900px) { body { font-size: 20px; } }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--red-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--slab); line-height: 1.15; margin: 0 0 .5em; color: var(--navy); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.05rem, 7.4vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 5.6vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.section { padding: 56px 0; }
.section.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { font-family: var(--slab); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: 15px; color: var(--red); margin: 0 0 .6em; }
.center { text-align: center; }
.small { font-size: 16px; color: var(--muted); }
.skip { position: absolute; left: -999px; top: 0; background: var(--paper); padding: 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- top bar & hero (night sky) ---------- */
.night { background: radial-gradient(ellipse at 50% 0%, #1e2f57 0%, var(--navy) 45%, var(--deep) 100%); color: var(--cream); }
.night h1, .night h2, .night h3 { color: var(--cream); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; }
.brand { font-family: var(--slab); font-weight: 800; color: var(--cream); text-decoration: none; font-size: 1.05rem; letter-spacing: .01em; }
.brand span { color: var(--glow); }
.bulbs { display: block; width: 100%; height: 34px; }
.hero { padding: 8px 0 52px; }
.hero h1 { text-shadow: 0 0 28px rgba(255, 207, 112, .25); }
.hero .glow { color: var(--glow); }
.sub { font-size: 1.12rem; color: #e9e1cc; max-width: 40em; }
.sub strong { color: var(--cream); }
.vsl { position: relative; margin: 24px 0; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: 0 0 0 3px rgba(242, 169, 59, .55), 0 18px 50px rgba(0, 0, 0, .45), 0 0 60px rgba(255, 207, 112, .18); aspect-ratio: 1376 / 768; }
.vsl video { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; }
  .vsl { margin: 0; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: 60px; padding: 14px 30px; border: 0; border-radius: 12px; font-family: var(--slab); font-weight: 800; font-size: 1.2rem; line-height: 1.2; text-decoration: none; cursor: pointer; text-align: center; -webkit-tap-highlight-color: transparent; }
.btn-buy { background: var(--red); color: #fff; box-shadow: 0 4px 0 var(--red-dark), 0 0 0 2px rgba(255, 207, 112, .35), 0 10px 30px rgba(179, 38, 30, .35); width: 100%; max-width: 460px; }
.btn-buy:hover { background: #c22d24; }
.btn-buy:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--red-dark); }
.btn-buy[disabled] { opacity: .8; cursor: progress; }
.btn-plain { background: transparent; color: inherit; border: 2px solid currentColor; }
.btn-amber { background: var(--amber); color: var(--deep); box-shadow: 0 4px 0 #c4831f; }
button, input, select, textarea { font: inherit; }
.buy-form { margin: 22px 0 0; }
.buy-note { font-size: 16px; line-height: 1.45; margin: 12px 0 0; max-width: 460px; }
.night .buy-note { color: #e9e1cc; }
.guarantee-line { font-size: 16px; margin: 8px 0 0; color: var(--muted); max-width: 460px; }
.night .guarantee-line { color: var(--glow); }
.center .buy-note, .center .guarantee-line, .center .btn-buy { margin-left: auto; margin-right: auto; }

/* ---------- stats strip ---------- */
.stats { background: var(--deep); color: var(--cream); border-top: 2px solid rgba(242, 169, 59, .5); border-bottom: 2px solid rgba(242, 169, 59, .5); }
.stats ul { list-style: none; margin: 0 auto; padding: 22px 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; max-width: 1080px; text-align: center; }
@media (min-width: 760px) { .stats ul { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stats li { min-width: 0; overflow-wrap: anywhere; }
.stats b { display: block; font-family: var(--slab); font-weight: 800; font-size: 2rem; color: var(--glow); line-height: 1.1; text-shadow: 0 0 18px rgba(255, 207, 112, .35); }
.stats span { font-size: 16px; }

/* ---------- sound familiar ---------- */
.pains { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 12px; }
.pains li { background: var(--paper); border: 1px solid var(--line); border-left: 6px solid var(--red); border-radius: 10px; padding: 14px 16px; }
.pains b { font-family: var(--slab); color: var(--navy); }

/* ---------- cost compare ---------- */
.compare { display: grid; gap: 16px; margin: 20px 0; }
@media (min-width: 760px) { .compare { grid-template-columns: 1fr 1fr; } }
.cost-card { border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); background: #fff; }
.cost-card .big { font-family: var(--slab); font-weight: 800; font-size: 2.2rem; line-height: 1.1; color: var(--navy); margin: .2em 0 .3em; }
.cost-card.roy { background: var(--navy); color: var(--cream); border-color: var(--navy); box-shadow: 0 0 0 3px rgba(242, 169, 59, .5); }
.cost-card.roy h3, .cost-card.roy .big { color: var(--glow); }
.math { background: #fff; border: 1px dashed #c9b991; border-radius: 10px; padding: 16px 18px; }
.source { font-size: 15px; color: var(--muted); margin-top: 14px; }

/* ---------- look inside ---------- */
.look { display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 16px; margin: 0 -4px; -webkit-overflow-scrolling: touch; }
@media (min-width: 760px) { .look { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible; } }
.look figure { margin: 0; scroll-snap-align: center; }
.look img { width: 100%; aspect-ratio: 1275 / 1650; object-fit: cover; border-radius: 8px; background: linear-gradient(160deg, #fff 0%, #f3ead6 100%); border: 1px solid var(--line); box-shadow: 0 8px 22px rgba(20, 33, 61, .16); }
.look img.missing { opacity: .9; }
.look figcaption { font-size: 15px; color: var(--muted); text-align: center; margin-top: 6px; }

/* ---------- what's inside ---------- */
.parts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 760px) { .parts { grid-template-columns: 1fr 1fr; } }
.parts li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.parts .num { font-family: var(--slab); font-weight: 700; color: var(--red); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; }
.parts h3 { margin: .15em 0 .35em; }
.parts p { margin: 0; font-size: 18px; }

/* ---------- buy box ---------- */
.buybox { background: var(--paper); border: 3px solid var(--amber); border-radius: 18px; padding: 26px 20px; max-width: 620px; margin: 0 auto; text-align: center; box-shadow: 0 0 0 6px rgba(255, 207, 112, .22), 0 18px 40px rgba(20, 33, 61, .14); }
.price { font-family: var(--slab); font-weight: 800; font-size: 3.4rem; color: var(--navy); line-height: 1; margin: 8px 0 4px; }
.price small { font-size: 1.1rem; font-weight: 700; color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 16px auto; text-align: left; max-width: 430px; }
.checks li { padding-left: 34px; position: relative; margin: 8px 0; }
.checks li::before { content: ""; position: absolute; left: 4px; top: .35em; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff6d8, var(--glow) 45%, var(--amber) 75%); box-shadow: 0 0 10px rgba(255, 207, 112, .9); }
.seal { display: flex; gap: 14px; align-items: center; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-top: 20px; }
.seal .badge { flex: 0 0 64px; height: 64px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-family: var(--slab); font-weight: 800; font-size: 1.15rem; line-height: 1; text-align: center; box-shadow: 0 0 0 4px rgba(179, 38, 30, .2); }
.seal p { margin: 0; font-size: 17px; }
.secure { font-size: 15px; color: var(--muted); margin: 10px 0 0; }

/* ---------- note from Roy ---------- */
.note { display: grid; gap: 22px; align-items: start; }
@media (min-width: 860px) { .note { grid-template-columns: 340px 1fr; gap: 40px; } .note img { aspect-ratio: 4 / 5; position: sticky; top: 24px; } }
.note img { border-radius: var(--radius); width: 100%; object-fit: cover; object-position: 51% 30%; box-shadow: 0 0 0 3px rgba(242, 169, 59, .5), 0 14px 34px rgba(0, 0, 0, .35); }
.letter { background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: 24px 22px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.letter p:last-of-type { margin-bottom: .4em; }
.sign { font-family: var(--hand); font-size: 2.1rem; color: var(--red); line-height: 1; margin: 6px 0 0; }

/* ---------- FAQ ---------- */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin: 0 0 12px; }
.faq summary { list-style: none; cursor: pointer; min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; font-family: var(--slab); font-weight: 700; color: var(--navy); font-size: 1.1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; color: var(--red); line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq .a { padding: 0 18px 16px; }
.faq .a p:last-child { margin-bottom: 0; }

/* ---------- free printable ---------- */
.free { background: #f3ead6; border-top: 1px solid var(--line); }
.free-card { background: var(--paper); border: 2px dashed #c9b991; border-radius: 16px; padding: 24px 20px; max-width: 680px; margin: 0 auto; }
.field { display: block; margin: 14px 0; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field input[type="email"] { width: 100%; min-height: 58px; padding: 12px 14px; font-size: 19px; border: 2px solid #b9ab86; border-radius: 10px; background: #fff; color: var(--ink); }
.check { display: flex; align-items: flex-start; gap: 12px; margin: 16px 0; cursor: pointer; min-height: 44px; }
.check input { width: 28px; height: 28px; flex: 0 0 28px; margin: 2px 0 0; accent-color: var(--red); }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin: 12px 0 0; font-weight: 700; }
.form-msg.ok { color: #1f6b3a; }
.form-msg.err { color: var(--red); }

/* ---------- final CTA ---------- */
.final { padding: 64px 0; text-align: center; }

/* ---------- footer ---------- */
.footer { background: var(--deep); color: #d8d0bc; padding: 30px 0 40px; font-size: 16px; }
.footer a { color: var(--glow); }
.footer p { margin: 0 0 .6em; }

/* ---------- sticky mobile buy bar ---------- */
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(11, 21, 48, .97); border-top: 2px solid var(--amber); padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); transform: translateY(110%); transition: transform .25s ease; text-align: center; }
.sticky.show { transform: none; }
.sticky .btn-buy { max-width: 520px; }
.sticky .buy-form { margin: 0; }
.sticky .buy-note { color: #e9e1cc; margin: 6px auto 0; font-size: 15px; max-width: 520px; }
@media (min-width: 900px) { .sticky { display: none; } }
@media (max-width: 899px) { body.has-sticky { padding-bottom: 120px; } }

/* ---------- back-out offer card ---------- */
.offer { position: fixed; inset: 0; z-index: 60; display: none; align-items: flex-start; justify-content: center; padding: 16px; background: rgba(11, 21, 48, .78); overflow-y: auto; -webkit-overflow-scrolling: touch; }
@media (min-height: 760px) { .offer { align-items: center; } }
.offer.show { display: flex; }
.offer-card { position: relative; background: var(--paper); border-radius: 18px; max-width: 520px; width: 100%; padding: 26px 20px 20px; text-align: center; border: 3px solid var(--amber); box-shadow: 0 0 0 6px rgba(255, 207, 112, .25), 0 20px 60px rgba(0, 0, 0, .5); margin: auto 0; }
.offer-card img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; object-position: 51% 22%; margin: 0 auto 10px; box-shadow: 0 0 0 3px var(--amber); }
.offer-card h2 { font-size: 1.55rem; }
.offer-card p { margin-bottom: .7em; }
.offer-card .sign { font-size: 1.8rem; }
.offer-card .btn-plain { width: 100%; max-width: 460px; margin-top: 12px; color: var(--navy); font-size: 1.05rem; }
.code-banner { display: none; background: var(--amber); color: var(--deep); text-align: center; padding: 12px 16px; font-weight: 700; font-size: 17px; }
.code-banner.show { display: block; }

/* ---------- thanks & terms ---------- */
.page-head { padding: 10px 0 40px; }
.status { background: var(--paper); border: 2px solid var(--line); border-radius: 16px; padding: 24px 20px; }
.dl-buttons { display: grid; gap: 14px; margin: 18px 0; }
.dl-buttons .btn { width: 100%; font-size: 1.3rem; min-height: 72px; }
.howto { display: grid; gap: 16px; }
@media (min-width: 760px) { .howto { grid-template-columns: 1fr 1fr; } }
.howto section { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.howto ol { margin: 0; padding-left: 1.4em; }
.howto li { margin: 0 0 .7em; }
.prose h2 { margin-top: 1.4em; font-size: 1.5rem; }
.prose ul { padding-left: 1.3em; }
[hidden] { display: none !important; }
