/* TwinkleLetters site. Fonts are bundled in /fonts (declared in pages.css). */
:root {
  --night: #1b2147; --night-2: #262e5e; --gold: #f2c76b; --gold-ink: #6a4f12;
  --cream: #fbf6ec; --paper: #fffdf8; --ink: #2a2622; --muted: #6d665c; --line: #e8dfcf;
  --red: #a3232b; --sage: #56704f; --lav: #6a48a8;
  --head: "Cormorant Garamond", Georgia, serif; --body: "Nunito", system-ui, sans-serif; --script: "Great Vibes", cursive;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--cream); color: var(--ink); font: 17px/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; line-height: 1.1; margin: 0 0 .4em; letter-spacing: .2px; }
h1 { font-size: clamp(40px, 6vw, 66px); }
h2 { font-size: clamp(32px, 4.4vw, 46px); }
h3 { font-size: 27px; }
p { margin: 0 0 1em; }
.script { font-family: var(--script); font-weight: 400; color: var(--gold); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 15px 28px; font: 800 17px var(--body); text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.gold { background: var(--gold); color: var(--night); box-shadow: 0 6px 18px rgba(242, 199, 107, .35); }
.btn.night { background: var(--night); color: #fff; }
.btn.ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.5); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }

/* header */
.top { position: absolute; top: 0; left: 0; right: 0; z-index: 5; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.logo { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font: 400 34px var(--script); }
.logo svg { width: 22px; height: 22px; }
.top nav { display: flex; gap: 22px; }
.top nav a { color: rgba(255,255,255,.85); text-decoration: none; font-weight: 700; font-size: 15px; }
.top.solid { position: static; background: var(--night); }

/* hero */
.hero { position: relative; background: radial-gradient(ellipse at 70% 20%, #313a78 0%, var(--night) 55%, #12162f 100%); color: #fff; overflow: hidden; padding: 120px 0 70px; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.55) 1px, transparent 1.4px), radial-gradient(rgba(242,199,107,.6) 1.2px, transparent 1.6px); background-size: 70px 70px, 130px 130px; background-position: 0 0, 35px 50px; opacity: .45; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero h1 .script { display: block; font-size: .8em; margin-bottom: 4px; }
.hero p.lead { font-size: 20px; color: rgba(255,255,255,.85); max-width: 520px; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 18px; }
.hero .trust { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; color: rgba(255,255,255,.75); }
.hero .trust span::before { content: "✦ "; color: var(--gold); }
.hero .art img { filter: drop-shadow(0 30px 40px rgba(0,0,0,.35)); }

/* sections */
section.band { padding: 80px 0; }
section.band.paper { background: var(--paper); }
.center { text-align: center; }
.kicker { font-weight: 800; font-size: 13px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.sub { color: var(--muted); max-width: 640px; margin: 0 auto 40px; font-size: 18px; }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 900px; margin: 0 auto; }
.quote { border-radius: 16px; padding: 26px 26px 20px; font-family: "EB Garamond", Georgia, serif; font-size: 20px; line-height: 1.5; }
.quote small { display: block; font-family: var(--body); font-weight: 800; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; }
.quote.meh { background: #f1ede6; color: #7b746a; }
.quote.meh small { color: #9a9286; }
.quote.wow { background: #fff; border: 2px solid var(--gold); box-shadow: 0 10px 30px rgba(106, 79, 18, .08); }
.quote.wow small { color: var(--red); }
.quote mark { background: rgba(242, 199, 107, .45); padding: 0 2px; border-radius: 3px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.card .body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card ul { padding-left: 18px; margin: 0 0 18px; color: var(--muted); font-size: 15.5px; }
.card .row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font: 700 28px var(--head); }
.price s { font-size: 18px; color: var(--muted); margin-left: 6px; }
.tag { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: s; }
.step { background: #fff; border-radius: 18px; padding: 28px; border: 1px solid var(--line); }
.step::before { counter-increment: s; content: counter(s); display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: var(--night); color: var(--gold); font: 700 22px var(--head); margin-bottom: 14px; }

.espanol { background: linear-gradient(135deg, #2e5a3d, #1b3826); color: #f7ecd4; }
.espanol .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.espanol .kicker { color: var(--gold); }
.espanol img { border-radius: 18px; box-shadow: 0 20px 50px rgba(0,0,0,.35); }

.faq { max-width: 780px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 800; list-style: none; }
.faq summary::after { content: "+"; float: right; color: var(--red); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

footer { background: var(--night); color: rgba(255,255,255,.75); padding: 40px 0; font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer a { color: #fff; margin-right: 16px; }

/* order page */
.order { padding: 40px 0 80px; }
.order .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: start; }
.picker { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.picker button { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 16px; font: 700 15px var(--body); cursor: pointer; }
.picker button[aria-pressed="true"] { background: var(--night); border-color: var(--night); color: #fff; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 800; margin-bottom: 4px; }
.field .hint { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; font: 16px var(--body); background: #fff; color: var(--ink); }
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(242,199,107,.3); }
.count { float: right; font-weight: 400; font-size: 13px; color: var(--muted); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; margin: 6px 0 18px; }
.agree input { margin-top: 5px; width: 18px; height: 18px; }
.summary-card { position: sticky; top: 20px; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.summary-card .body { padding: 22px; }
.summary-card ul { padding-left: 18px; color: var(--muted); }
.err { color: #b00020; font-weight: 700; min-height: 1.5em; margin-top: 10px; }
.note { background: #fff7df; border: 1px solid #edd690; padding: 12px 14px; border-radius: 12px; font-size: 15px; margin-bottom: 18px; }

/* delivery page */
.deliver { padding: 40px 0 80px; text-align: center; }
.writing { max-width: 520px; margin: 30px auto; }
.quill { width: 90px; height: 90px; margin: 0 auto 14px; border-radius: 50%; background: var(--night); display: flex; align-items: center; justify-content: center; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.06); box-shadow: 0 0 0 14px rgba(242,199,107,.15); } }
.bar { height: 8px; background: #eee6d6; border-radius: 99px; overflow: hidden; margin-top: 16px; }
.bar i { display: block; height: 100%; width: 3%; background: linear-gradient(90deg, var(--gold), #e3a93d); transition: width .4s ease; }
.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 20px 0 30px; }
.pages { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.pv { position: relative; box-shadow: 0 6px 24px rgba(0,0,0,.14); background: #fff; }
.pv > .page { position: absolute; top: 0; left: 0; transform-origin: 0 0; }
#export-stage { position: fixed; top: 0; left: 0; z-index: -1; pointer-events: none; }
#print-root { display: none; }

.legal { max-width: 760px; margin: 0 auto; padding: 50px 20px 80px; }
.legal h1 { font-size: 46px; }
.legal h2 { font-size: 28px; margin-top: 1.4em; }

@media (max-width: 860px) {
  .hero { padding-top: 100px; }
  .hero .wrap, .espanol .wrap, .order .wrap { grid-template-columns: 1fr; }
  .cards, .steps, .compare { grid-template-columns: 1fr; }
  .top nav { display: none; }
  .summary-card { position: static; order: -1; }
  .row2 { grid-template-columns: 1fr; }
}
@media print {
  body { background: #fff; }
  body > *:not(#print-root) { display: none !important; }
  #print-root { display: block; }
}
