/* Landing page (docs/design/LANDING_PAGE.md). Brand tokens and fonts come from styles.css. */
:root { --pine-deep: #12302A; --snow: #FFFDF8; --panel: #F4EEE1; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.lp section[id] { scroll-margin-top: 16px; }
.lp-wrap { width: min(100% - 36px, 1200px); margin-inline: auto; }
.lp-center { text-align: center; }
.lp h2 { font-size: clamp(1.95rem, 4.4vw, 2.9rem); line-height: 1.1; color: var(--pine-deep); margin: 12px 0 0; }
.lp .eyebrow { margin: 0; letter-spacing: 0.18em; }
.lp-sub { font-size: 1.1rem; color: var(--ink-600); margin: 12px 0 0; }
.lp-section { padding: clamp(48px, 7vw, 84px) 0; }
.lp .btn { padding: 0.95em 1.9em; transition: transform 0.15s ease, background 0.15s ease; }
.lp .btn:hover { transform: translateY(-2px); }

/* ---------- header ---------- */
.lp-top { background: var(--pine); }
.lp-top .lp-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.lp-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--cream-100); font: 700 clamp(1.2rem, 3vw, 1.6rem)/1 var(--serif); text-decoration: none; }
.lp-brand svg { width: clamp(34px, 5vw, 44px); height: auto; flex: none; }
.lp-brand span { color: var(--gold-light); }
.lp-nav { display: none; gap: 34px; }
.lp-nav a { color: #E9E2D2; font-weight: 700; font-size: 0.95rem; text-decoration: none; padding: 8px 0; }
.lp-nav a:hover { color: var(--gold-light); }
@media (min-width: 860px) { .lp-nav { display: flex; } }
.lp .btn-gold { background: transparent; border-color: var(--gold); color: var(--gold-light); min-height: 44px; padding: 0.55em 1.3em; font-size: 0.95rem; }
.lp .btn-gold:hover { background: rgba(232, 203, 126, 0.14); border-color: var(--gold-light); }
.lp-top .long { display: none; }
@media (min-width: 560px) { .lp-top .long { display: inline; } .lp-top .short { display: none; } }
.lp-top :focus-visible, .lp-pack :focus-visible, .lp-foot :focus-visible { outline-color: var(--gold-light); }

/* A string of Christmas lights under the header. Two sets take turns glowing. */
.lp-lights { position: relative; height: 26px; background: var(--cream-100); margin-bottom: -26px; z-index: 2; pointer-events: none; }
.lp-lights::before, .lp-lights::after { content: ''; position: absolute; inset: 0; background-repeat: repeat-x; background-size: 120px 26px; }
.lp-lights { background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='26'%3E%3Cpath d='M0 3 Q30 15 60 3 T120 3' fill='none' stroke='%237A5C1E' stroke-width='1.5'/%3E%3C/svg%3E") repeat-x 0 0 / 120px 26px; }
.lp-lights::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='26'%3E%3Crect x='27.5' y='8' width='5' height='4' fill='%237A5C1E'/%3E%3Cellipse cx='30' cy='17' rx='5' ry='6.5' fill='%23B3202A'/%3E%3C/svg%3E"); animation: lp-twinkle 2.4s ease-in-out infinite; }
.lp-lights::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='26'%3E%3Crect x='87.5' y='8' width='5' height='4' fill='%237A5C1E'/%3E%3Cellipse cx='90' cy='17' rx='5' ry='6.5' fill='%23C9A24B'/%3E%3C/svg%3E"); animation: lp-twinkle 2.4s ease-in-out -1.2s infinite; }
@keyframes lp-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

/* ---------- hero ---------- */
.lp-hero { position: relative; overflow: hidden; text-align: center; padding: clamp(64px, 9vw, 104px) 0 0; background: radial-gradient(ellipse at 50% 0%, #EFDDB8, var(--cream-100) 68%); }
.lp-hero > .lp-wrap { position: relative; z-index: 1; }
.lp-hero h1 { font-size: clamp(2.5rem, 7.2vw, 4.5rem); line-height: 1.04; color: var(--pine-deep); max-width: 900px; margin: 18px auto 0; }
.lp-hero h1 em { font-style: normal; color: var(--santa-red); }
.lp-lead { font-size: clamp(1.02rem, 2.2vw, 1.25rem); line-height: 1.55; color: var(--ink-600); max-width: 640px; margin: 22px auto 0; }
.lp-ctas { display: flex; flex-wrap: wrap; gap: 14px 18px; justify-content: center; align-items: center; margin-top: 34px; }
.lp .btn-pine { background: transparent; color: var(--pine); border-color: var(--pine); }
.lp .btn-pine:hover { background: var(--parchment); border-color: var(--pine); }
.lp-pills { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 12px; justify-content: center; margin: 26px 0 0; padding: 0; }
.lp-pill { background: var(--parchment); color: var(--gold-deep); border-radius: 999px; padding: 9px 16px; font: 800 0.8rem/1.3 var(--sans); letter-spacing: 0.06em; }
.lp-pill.pine { background: var(--pine); color: var(--cream-100); }
.lp-pill.friend { background: var(--santa-red); color: var(--cream-100); }
/* Soft golden flakes drifting down behind the words. */
.lp-flakes { position: absolute; inset: 0; pointer-events: none; opacity: 0.55;
  background-image: radial-gradient(circle, #E8CB7E 2px, transparent 2.6px), radial-gradient(circle, #FFFDF8 2.4px, transparent 3px), radial-gradient(circle, #E8CB7E 1.4px, transparent 2px);
  background-size: 170px 170px, 230px 230px, 110px 110px; background-position: 20px 0, 90px 0, 60px 0;
  animation: lp-fall 22s linear infinite; }
@keyframes lp-fall { to { background-position: 20px 170px, 90px 230px, 60px 110px; } }
/* A snowy tree line closing the hero. */
.lp-treeline { display: block; width: 100%; height: clamp(56px, 9vw, 110px); margin-top: clamp(36px, 5vw, 60px); position: relative; z-index: 1; }

/* ---------- free trial ---------- */
.lp-try { background: var(--snow); padding: clamp(28px, 4vw, 44px) 0 clamp(40px, 6vw, 64px); }
.lp-try-grid { display: grid; gap: 22px; margin-top: 32px; align-items: start; }
@media (min-width: 980px) { .lp-try-grid { grid-template-columns: 1.35fr 0.65fr; gap: 28px; } }
.lp-try-go { background: var(--pine); border-radius: 18px; padding: 18px; text-align: center; color: var(--cream-100); }
.lp-try-go img { display: block; width: 100%; height: auto; border-radius: 12px; border: 4px solid #1b1b1b; }
.lp-try-go .btn { width: 100%; margin-top: 16px; font-size: 1.15rem; min-height: 60px; animation: lp-nudge 2.6s ease-in-out infinite; }
@keyframes lp-nudge { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
.lp-try-notes { list-style: none; padding: 0; margin: 14px 0 0; text-align: left; font-size: 0.92rem; color: #D9E2D9; display: grid; gap: 6px; }
.lp-try-notes li { padding-left: 20px; position: relative; }
.lp-try-notes li::before { content: '✦'; position: absolute; left: 0; color: var(--gold-light); }
/* On the landing page the card stands alone and links to /try. */
.lp-try-solo { max-width: 560px; margin: 32px auto 0; }
.lp-try-solo .btn { display: flex; }
/* The /try page: a short grown-up introduction above the builder. */
.lp-try-page { padding-top: clamp(28px, 5vw, 56px); min-height: 70vh; }
.lp-try-page h1 { font-size: clamp(1.95rem, 4.4vw, 2.9rem); line-height: 1.1; color: var(--pine-deep); margin: 12px 0 0; }
.lp-try-back { display: inline-block; margin-top: 28px; font-weight: 700; color: var(--pine); }
.lp-dialog { width: min(100vw, 1100px); max-width: 100vw; height: min(100dvh, 720px); max-height: 100dvh; padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: var(--cream-100); }
.lp-dialog[open] { display: flex; flex-direction: column; }
@media (max-width: 700px) { .lp-dialog { width: 100vw; height: 100dvh; border-radius: 0; } }
.lp-dialog::backdrop { background: rgba(18, 48, 42, 0.8); }
.lp-dialog-bar { display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 16px; background: var(--pine); color: var(--cream-100); }
.lp-dialog-bar p { margin: 0; font: 700 1rem/1.25 var(--serif); flex: 1; min-width: 0; }
.lp-dialog-bar .btn { min-height: 44px; padding: 0.4em 1.1em; font-size: 0.95rem; white-space: nowrap; }
.lp-dialog-close { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--gold); background: transparent; color: var(--gold-light); font-size: 1.2rem; cursor: pointer; }
.lp-dialog-game { flex: 1; min-height: 0; }
.lp-dialog-game iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (prefers-reduced-motion: reduce) { .lp-try-go .btn { animation: none; } }

/* ---------- showcase ---------- */
.lp-show { background: var(--snow); }
.lp-tabs { display: none; grid-template-columns: 1fr 1fr; gap: 10px; margin: 28px 0 18px; }
.js .lp-tabs { display: grid; }
@media (min-width: 860px) { .lp-tabs { grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 40px 0 28px; } }
.lp-tab { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 12px 14px; text-align: left; cursor: pointer;
  background: #F6F0E3; border: 1px solid #E8DCC4; border-radius: 16px; color: #3E5348; font: 700 0.95rem/1.25 var(--sans);
  transition: transform 0.15s ease; }
.lp-tab:hover { transform: translateY(-2px); border-color: var(--gold); }
.lp-tab svg { width: 26px; height: 26px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lp-tab small { display: block; font: 800 0.7rem/1.2 var(--sans); letter-spacing: 0.14em; opacity: 0.8; }
.lp-tab[aria-selected='true'] { background: var(--pine); border-color: var(--pine); color: var(--gold-light); }
@media (min-width: 860px) { .lp-tab { padding: 18px 20px; font-size: 1rem; gap: 14px; } .lp-tab svg { width: 30px; height: 30px; } }

.lp-panel { display: grid; gap: 22px; align-items: center; background: var(--panel); border-radius: 24px; padding: 16px; margin-top: 24px; }
.js .lp-panel { margin-top: 0; }
.js .lp-panel[hidden], .js .lp-panel[data-tab-hidden] { display: none; } /* data-tab-hidden: no flash before the script runs */
@media (min-width: 860px) { .lp-panel { grid-template-columns: 1.12fr 0.88fr; gap: 48px; padding: 36px; } }
.lp-stage { border-radius: 18px; display: grid; place-items: center; padding: 16px; min-width: 0; background: radial-gradient(circle at 50% 35%, #EAD9B6, #D8C59F); }
@media (min-width: 860px) { .lp-stage { min-height: 430px; padding: 28px; } }
.lp-details { padding: 0 6px 10px; min-width: 0; }
.lp-details h3 { font-size: clamp(1.75rem, 3.6vw, 2.4rem); font-weight: 700; line-height: 1.12; color: var(--pine-deep); margin: 12px 0 14px; }
.lp-details p { color: var(--ink-600); margin: 0; }
.lp-ticks { list-style: none; padding: 0; margin: 20px 0 28px; }
.lp-ticks li { position: relative; padding: 7px 0 7px 34px; color: #3E4A41; }
.lp-ticks li::before { content: ''; position: absolute; left: 0; top: 9px; width: 22px; height: 22px; border-radius: 50%; background: var(--pine); }
.lp-ticks li::after { content: ''; position: absolute; left: 7px; top: 15px; width: 8px; height: 5px; border-left: 2.5px solid var(--gold-light); border-bottom: 2.5px solid var(--gold-light); transform: rotate(-45deg); }
.lp-sample { display: inline-block; font: 800 0.7rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; }

/* Santa video */
.lp-video { width: 100%; background: var(--pine-deep); border-radius: 16px; overflow: hidden; box-shadow: 0 18px 40px rgba(18, 48, 42, 0.28); }
.lp-video .pic { position: relative; aspect-ratio: 16 / 9; }
.lp-video .pic img, .lp-video .pic video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.lp-play { position: absolute; left: 50%; top: 50%; width: 74px; height: 74px; margin: -37px; border: 0; border-radius: 50%; background: rgba(251, 245, 233, 0.94); display: grid; place-items: center; cursor: pointer; }
.lp-play::before { content: ''; border-left: 22px solid var(--santa-red); border-top: 14px solid transparent; border-bottom: 14px solid transparent; margin-left: 6px; }
.lp-caption { position: absolute; left: 14px; bottom: 14px; background: rgba(251, 245, 233, 0.95); color: var(--ink-900); border-radius: 999px; padding: 7px 15px; font-weight: 700; font-size: 0.95rem; }
.lp-vbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; color: var(--cream-100); font: 600 1rem/1.3 var(--serif); }
.lp-vbar .lp-sample { color: var(--gold-light); white-space: nowrap; }
.lp-track { height: 4px; margin: 0 18px 16px; border-radius: 4px; background: rgba(255, 255, 255, 0.2); }
.lp-track i { display: block; width: 38%; height: 4px; border-radius: 4px; background: var(--gold); }

/* Storybook */
.lp-book { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: 6px; overflow: hidden; box-shadow: 0 18px 36px rgba(42, 27, 20, 0.3); }
.lp-book img { display: block; width: 100%; height: 100%; min-height: 190px; object-fit: cover; object-position: 22% center; }
.lp-book .page { background: #FFF9EC; border-left: 2px solid #E6D6B4; padding: 18px 16px; display: flex; flex-direction: column; justify-content: center; }
.lp-book .page .lp-sample { color: var(--gold-deep); }
.lp-book .page h4 { font: 700 clamp(1.15rem, 2.4vw, 1.6rem)/1.15 var(--serif); color: var(--santa-red); margin: 10px 0 12px; }
.lp-book .page p { font-size: clamp(0.86rem, 1.5vw, 1rem); line-height: 1.6; color: var(--ink-900); }
.lp-book .page .pn { margin-top: 14px; font-weight: 700; font-size: 0.75rem; color: var(--ink-600); }
@media (min-width: 860px) { .lp-book img { min-height: 330px; } .lp-book .page { padding: 34px 30px; } }

/* Certificate */
.lp-cert { display: block; width: 96%; height: auto; transform: rotate(-2deg); border: 8px solid #fff; box-shadow: 0 18px 36px rgba(42, 27, 20, 0.3); }

/* Adventure */
.lp-adv { position: relative; width: 100%; aspect-ratio: 100 / 68; }
.lp-adv .scr { position: absolute; border-radius: 16px; overflow: hidden; border: 5px solid #1b1b1b; background: #000; box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28); }
.lp-adv .scr img { display: block; width: 100%; height: auto; }
.lp-adv .a { width: 78%; left: 0; top: 0; }
.lp-adv .b { width: 62%; right: 0; bottom: 0; }

/* ---------- how it works ---------- */
.lp-steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 18px; }
@media (min-width: 860px) { .lp-steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.lp-step { background: #fff; border: 1px solid var(--parchment); border-radius: 18px; padding: 28px; transition: transform 0.15s ease, border-color 0.15s ease; }
.lp-step:hover { transform: translateY(-3px); border-color: var(--gold); }
.lp-num { width: 46px; height: 46px; border-radius: 50%; background: var(--santa-red); color: var(--cream-100); display: grid; place-items: center; font: 700 1.3rem/1 var(--serif); margin-bottom: 16px; }
.lp-step h3 { font-size: 1.4rem; font-weight: 700; color: var(--pine-deep); margin: 0 0 8px; }
.lp-step p { color: var(--ink-600); margin: 0; }

/* ---------- package ---------- */
.lp-pack { position: relative; overflow: hidden; background: var(--pine); color: var(--cream-100); text-align: center; padding-top: clamp(70px, 9vw, 110px); }
.lp-pack > .lp-wrap { position: relative; z-index: 1; }
.lp-drift { position: absolute; top: -1px; left: 0; width: 100%; height: clamp(28px, 4vw, 48px); display: block; z-index: 1; }
.lp-snow { position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: radial-gradient(circle, #fff 1.6px, transparent 2.2px), radial-gradient(circle, #fff 2.4px, transparent 3px), radial-gradient(circle, #fff 1.2px, transparent 1.8px);
  background-size: 150px 150px, 260px 260px, 90px 90px; background-position: 10px 0, 120px 0, 50px 0;
  animation: lp-snowfall 16s linear infinite; }
@keyframes lp-snowfall { to { background-position: 10px 150px, 120px 260px, 50px 90px; } }
.lp-pack .eyebrow { color: var(--gold-light); }
.lp-pack h2 { color: var(--cream-100); }
.lp-perks { list-style: none; padding: 0; margin: 36px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 860px) { .lp-perks { grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 40px 0; } }
.lp-perk { border: 1px solid rgba(232, 203, 126, 0.35); border-radius: 18px; padding: 20px 12px; background: rgba(18, 48, 42, 0.45); }
.lp-perk svg { width: 36px; height: 36px; stroke: var(--gold-light); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.lp-perk b { display: block; font: 700 clamp(1.05rem, 2.2vw, 1.25rem)/1.2 var(--serif); margin: 12px 0 6px; }
.lp-perk small { font-size: 0.88rem; color: #C9D6CC; }
.lp-pack p { color: #C9D6CC; margin: 0; }
/* The price sits on its own cream card. On the pine background gold-deep text is only 1.6:1, and
   the old price lost its color and margins to ".lp-pack p", so the label ran into the pale $50.
   On cream: gold-deep label 5.7:1, pine price 9.1:1, note 6.1:1. */
.lp-price-card { display: inline-block; min-width: min(100%, 300px); background: var(--cream-100); border: 2px solid var(--gold); border-radius: 22px; padding: 22px 30px 20px; }
.lp-pack .lp-price-card .eyebrow { color: var(--gold-deep); margin: 0 0 16px; }
.lp-pack .lp-price-card .lp-price { font: 700 clamp(4rem, 10vw, 5rem)/1.1 var(--serif); color: var(--pine); margin: 0 0 12px; }
.lp-pack .lp-price-card .lp-price-note { color: var(--ink-600); font-weight: 700; font-size: 0.95rem; }
.lp-promise { display: inline-block; margin-top: 22px; border: 1px dashed rgba(232, 203, 126, 0.5); border-radius: 22px; padding: 10px 20px; color: var(--gold-light); font-weight: 700; }

/* ---------- questions ---------- */
.lp-faq .lp-wrap { max-width: 960px; }
.lp-q { border-bottom: 1px solid #E2D6BE; }
.lp-q summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; cursor: pointer; list-style: none; font-weight: 700; font-size: 1.12rem; color: var(--pine-deep); }
.lp-q summary::-webkit-details-marker { display: none; }
.lp-q summary::after { content: '+'; color: var(--santa-red); font-size: 1.6rem; line-height: 1; flex: none; }
.lp-q[open] summary::after { content: '\2212'; }
.lp-q p { margin: -6px 0 22px; color: var(--ink-600); }

/* ---------- footer ---------- */
.lp-foot { background: var(--pine-deep); color: #B9C6B9; text-align: center; padding: 30px 18px 36px; }
.lp-foot .line { font: 800 0.75rem/1.4 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; margin: 0; }
.lp-foot nav { margin-top: 12px; font-size: 0.9rem; display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; }
.lp-foot a { color: #D9E2D9; padding: 6px 2px; }
.lp-foot small { display: block; margin-top: 10px; font-size: 0.8rem; color: #93A698; }

@media (prefers-reduced-motion: reduce) {
  .lp-flakes, .lp-snow, .lp-lights::before, .lp-lights::after { animation: none; }
  .lp .btn, .lp-tab, .lp-step { transition: none; }
}
