:root {
  --color-primary: #B52D3A;
  --color-primary-hover: #962331;
  --color-secondary: #214D3B;
  --color-gold: #D5A64B;
  --color-gold-light: #F5D892;
  --color-bg: #FFF9EF;
  --color-surface: #FFFFFF;
  --color-bg-warm: #F7E8D1;
  --color-bg-snow: #E6EEF1;
  --color-bg-dark: #214D3B;
  --color-text: #302B27;
  --color-text-muted: #71685F;
  --color-border: #E8DED0;
  --font-heading: 'Fraunces', Georgia, serif;
  --font-body: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --container-width: 1200px;
  --section-spacing: 96px;
  --container-padding: 24px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --button-height: 54px;
  --shadow-card: 0 8px 30px rgba(48,43,39,.06);
  --shadow-lift: 0 16px 40px rgba(48,43,39,.12);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-heading); color: var(--color-secondary); line-height: 1.2; margin: 0; }
h1 { font-size: clamp(38px, 5.2vw, 64px); letter-spacing: -0.03em; margin-bottom: 12px; }
h2 { font-size: clamp(28px, 3.5vw, 44px); letter-spacing: -0.025em; margin-bottom: 16px; }
h3 { font-size: 22px; }
p { margin: 0 0 16px; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--container-width); margin-inline: auto; padding-inline: var(--container-padding); }
.section { padding-block: var(--section-spacing); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head .lead { color: var(--color-text-muted); font-size: 18px; margin: 12px 0 0; }
.eyebrow {
  display: inline-block; font-weight: 800; font-size: 13px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--color-primary); margin-bottom: 14px;
}

.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 249, 239, .82);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--color-border);
}
.head-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-size: 21px; font-weight: 600; color: var(--color-secondary); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--color-text); font-weight: 700; font-size: 15px; }
.nav a:hover { color: var(--color-primary); text-decoration: none; }
.head-actions { display: flex; align-items: center; gap: 10px; }
.head-link { color: var(--color-text); font-weight: 700; font-size: 15px; padding: 8px 4px; }
.head-link:hover { color: var(--color-primary); text-decoration: none; }
.head-btn { font-weight: 800; font-size: 15px; color: #fff; background: var(--color-secondary); padding: 9px 18px; border-radius: 999px; transition: background .2s; }
.head-btn:hover { background: var(--color-primary); text-decoration: none; }

.hero {
  position: relative; overflow: hidden;
  padding-block: 64px 72px;
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(213,166,75,.14), transparent 60%),
    radial-gradient(700px 460px at 100% 0%, rgba(181,45,58,.08), transparent 55%),
    var(--color-bg);
}
.hero-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 56px; align-items: center; }
.hero-tagline { font-family: var(--font-heading); font-size: clamp(20px, 2.4vw, 28px); font-weight: 600; color: var(--color-primary); line-height: 1.3; margin-bottom: 16px; }
.hero-lead { font-size: 18px; color: var(--color-text-muted); max-width: 52ch; margin-bottom: 24px; }
.trust-line { display: flex; flex-wrap: wrap; gap: 8px 16px; font-weight: 700; font-size: 14px; color: var(--color-secondary); margin-bottom: 24px; }
.trust-line span { display: inline-flex; align-items: center; gap: 6px; }
.trust-line svg { color: var(--color-primary); flex: none; }
.secondary-links { display: flex; flex-wrap: wrap; gap: 8px 12px; font-size: 15px; font-weight: 700; align-items: center; }
.secondary-links span { color: var(--color-text-muted); font-weight: 600; }
.secondary-links a { color: var(--color-secondary); border-bottom: 1px solid var(--color-border); padding-bottom: 2px; }
.secondary-links a:hover { color: var(--color-primary); text-decoration: none; }

.maker-form { max-width: 520px; }
.field { margin-bottom: 18px; }
.field > label { display: block; font-weight: 800; font-size: 14px; color: var(--color-secondary); margin-bottom: 8px; }
input[type="text"] {
  font-family: var(--font-body); font-size: 16px; color: var(--color-text);
  background: var(--color-bg); border: 1.5px solid var(--color-border); border-radius: var(--radius-md);
  padding: 14px 16px; width: 100%; transition: border-color .15s, box-shadow .15s;
}
input[type="text"]:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 4px rgba(181,45,58,.12); }
.radio-group { display: flex; flex-wrap: wrap; gap: 8px; }
.choice {
  position: relative; font-weight: 700; font-size: 14px;
  border: 1.5px solid var(--color-border); border-radius: 999px;
  padding: 9px 14px; cursor: pointer; color: var(--color-text);
  background: var(--color-bg); transition: all .15s;
}
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:has(input:checked) { background: var(--color-secondary); border-color: var(--color-secondary); color: #fff; }
.choice-sub { color: var(--color-text-muted); font-weight: 600; }
.choice:has(input:checked) .choice-sub { color: rgba(255,255,255,.7); }
.theme-pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--color-border); border-radius: 999px;
  padding: 9px 14px; cursor: pointer; font-weight: 700; font-size: 14px;
  color: var(--color-text); background: var(--color-bg); transition: all .15s;
}
.theme-pill .swatch { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); box-shadow: 0 0 0 1px var(--color-border); flex: none; }
.theme-pill[aria-pressed="true"] { background: var(--color-secondary); border-color: var(--color-secondary); color: #fff; }

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--button-height); padding: 14px 28px;
  border: 0; border-radius: var(--radius-md);
  background: var(--color-primary); color: #fff;
  font-family: var(--font-body); font-size: 17px; font-weight: 800;
  cursor: pointer; text-decoration: none; width: 100%;
  transition: background .2s, transform .2s;
  box-shadow: 0 8px 20px rgba(181,45,58,.28);
}
.btn-primary:hover { background: var(--color-primary-hover); transform: translateY(-2px); text-decoration: none; }
.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--button-height); padding: 14px 28px;
  border: 1.5px solid var(--color-secondary); border-radius: var(--radius-md);
  background: transparent; color: var(--color-secondary);
  font-family: var(--font-body); font-size: 16px; font-weight: 800;
  cursor: pointer; text-decoration: none; transition: background .2s;
}
.btn-secondary:hover { background: rgba(33,77,59,.08); text-decoration: none; }
.maker-note { font-size: 13px; color: var(--color-text-muted); margin: 12px 0 0; text-align: center; }
.maker-ready {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 14px; padding: 12px 16px;
  background: #EEF6EF; border: 1px solid #CBE4D2; border-radius: var(--radius-md);
  font-size: 14px; color: var(--color-secondary);
  animation: fadeUp .3s ease;
}
.mr-check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%; background: var(--color-secondary); color: #fff;
  font-weight: 800; flex: none;
}
.mr-text { flex: 1; min-width: 160px; }
.mr-code {
  font-family: var(--font-heading); font-size: 17px; font-weight: 700;
  letter-spacing: .14em; color: var(--color-primary);
  background: #fff; border: 1.5px dashed var(--color-primary);
  border-radius: var(--radius-sm); padding: 4px 12px;
}

:root { --door-bg: #C0392B; --door-num: #FFF9EF; --door-bow: #F5D892; --door-bow-deep: #D5A64B; }
.maker-preview {
  --door-bg: #C0392B; --door-num: #FFF9EF; --door-bow: #F5D892; --door-bow-deep: #D5A64B;
  position: relative;
  background:
    radial-gradient(720px 420px at 50% -8%, rgba(213,166,75,.16), transparent 62%),
    linear-gradient(180deg, #1e4533 0%, #14301f 100%);
  border: 2px dashed rgba(245,216,146,.32);
  border-radius: var(--radius-xl);
  padding: 20px 22px 30px;
  box-shadow: 0 28px 64px rgba(16,42,28,.38), inset 0 0 0 1px rgba(255,255,255,.04);
}
.maker-preview[data-theme="gingerbread"] { --door-bg: #A9703B; --door-num: #FFF3E0; --door-bow: #F5D892; --door-bow-deep: #C98E3C; }
.maker-preview[data-theme="snowy"] { --door-bg: #6E97B5; --door-num: #FFFFFF; --door-bow: #F5D892; --door-bow-deep: #C9B07A; background: radial-gradient(720px 420px at 50% -8%, rgba(213,166,75,.14), transparent 62%), linear-gradient(180deg, #26475a 0%, #183142 100%); }
.maker-preview[data-theme="candy"] { --door-bg: #C0392B; --door-num: #FFFFFF; --door-bow: #F5D892; --door-bow-deep: #D5A64B; }
.light-strand { display: block; width: 100%; height: 30px; margin-bottom: 6px; }
.light-strand .bulb { filter: drop-shadow(0 0 4px rgba(245,216,146,.6)); }
.preview-title { text-align: center; font-family: var(--font-heading); font-size: 21px; color: #FFF9EF; margin-bottom: 2px; }
.preview-hint { text-align: center; color: rgba(245,216,146,.9); font-size: 13px; font-weight: 700; margin: 0 0 16px; }
.advent-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.advent-door {
  position: relative; aspect-ratio: 1; min-height: 48px;
  border: none; border-radius: 10px;
  background-color: var(--door-bg); background-image: radial-gradient(circle at 50% 50%, rgba(255,255,255,.14) 1.5px, transparent 2px); background-size: 15px 15px;
  color: var(--door-num);
  cursor: pointer;
  font-family: var(--font-heading);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 0 rgba(0,0,0,.20), 0 10px 22px rgba(10,25,16,.30), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .18s, box-shadow .18s;
}
.maker-preview[data-theme="gingerbread"] .advent-door { background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.08) 0 5px, transparent 5px 10px), repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 5px, transparent 5px 10px); }
.maker-preview[data-theme="snowy"] .advent-door { background-image: radial-gradient(circle, rgba(255,255,255,.32) 2px, transparent 3px); background-size: 17px 17px; }
.maker-preview[data-theme="candy"] .advent-door { background-image: repeating-linear-gradient(45deg, rgba(255,246,240,0) 0 7px, rgba(255,246,240,.85) 7px 14px); }
.advent-door:hover { transform: translateY(-4px); }
.advent-door::before { content: ''; position: absolute; inset: 6px; border: 1.5px dashed rgba(255,255,255,.34); border-radius: 6px; pointer-events: none; z-index: 1; }
.advent-door::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 26%; background: linear-gradient(180deg, rgba(255,255,255,.20), rgba(0,0,0,.12)); border-bottom: 1.5px dashed rgba(255,255,255,.30); border-radius: 10px 10px 0 0; pointer-events: none; z-index: 1; }
.advent-door .door-num { position: relative; z-index: 2; margin-top: 8%; font-size: clamp(15px, 2vw, 22px); font-weight: 700; letter-spacing: -.02em; text-shadow: 0 1px 0 rgba(255,255,255,.22), 0 -1px 1px rgba(0,0,0,.22); }
.advent-door .door-bow {
  position: absolute; top: 13%; left: 50%; transform: translate(-50%, -50%);
  width: 8px; height: 8px; z-index: 3; pointer-events: none;
  background: var(--door-bow-deep); border-radius: 3px;
}
.advent-door .door-bow::before, .advent-door .door-bow::after {
  content: ''; position: absolute; top: 50%;
  width: 11px; height: 8px; background: var(--door-bow);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}
.advent-door .door-bow::before { left: 0; transform: translate(-72%, -50%) rotate(-20deg); }
.advent-door .door-bow::after { right: 0; transform: translate(72%, -50%) rotate(20deg); }
.advent-door .door-tag {
  position: absolute; bottom: 9%; left: 50%; transform: translateX(-50%);
  z-index: 3; max-width: 92%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  background: #FFF9EF; color: #214D3B;
  border: 1px solid #E8DED0; border-radius: 999px;
  padding: 0 8px; font-family: var(--font-body); font-size: 12px; font-weight: 800; line-height: 18px;
  box-shadow: 0 2px 5px rgba(10,25,16,.18);
}
.advent-door.is-demo { box-shadow: 0 0 0 3px rgba(245,216,146,.9), 0 0 24px 5px rgba(245,216,146,.55), 0 10px 22px rgba(10,25,16,.30); animation: gentle-pulse 2.4s infinite ease-in-out; }
.advent-door.is-demo:hover { transform: scale(1.06); }
.advent-door.is-open { background-color: var(--color-gold-light); color: #6E4520; box-shadow: inset 0 2px 8px rgba(0,0,0,.14); }
.advent-door.is-open::before { border-color: rgba(110,69,32,.30); }
@keyframes gentle-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.gift-reveal {
  margin-top: 16px; display: none;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
  padding: 20px 22px; text-align: center;
}
.gift-reveal.visible { display: block; animation: fadeUp .3s ease; }
.gift-reveal .gift-label { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--color-gold); margin-bottom: 6px; }
.gift-reveal .gift-door { font-family: var(--font-heading); font-size: 20px; color: var(--color-secondary); margin-bottom: 6px; }
.gift-reveal .gift-note { font-size: 16px; color: var(--color-text); margin: 0; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; }
.steps li { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 28px 24px; box-shadow: var(--shadow-card); position: relative; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--color-primary); color: #fff; font-family: var(--font-heading); font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.steps h3 { font-size: 20px; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--color-text-muted); font-size: 15px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; }
.features li { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 26px 24px; box-shadow: var(--shadow-card); }
.feature-icon { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 14px; background: var(--color-bg-warm); margin-bottom: 16px; font-size: 22px; }
.features h3 { font-size: 18px; margin-bottom: 8px; }
.features p { margin: 0; color: var(--color-text-muted); font-size: 15px; }

.section.alt { background: var(--color-bg-warm); }
.usecases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; }
.usecases li { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 26px 24px; box-shadow: var(--shadow-card); }
.usecases .uc-icon { font-size: 28px; display: block; margin-bottom: 12px; }
.usecases h3 { font-size: 19px; margin-bottom: 8px; }
.usecases p { margin: 0; color: var(--color-text-muted); font-size: 15px; }
.center-cta { text-align: center; margin-top: 40px; }
.center-cta .btn-primary, .center-cta .btn-secondary { width: auto; }

.premium-section { background: var(--color-bg-dark); color: #FFF9EF; }
.premium-section .section-head h2, .premium-section .section-head .lead { color: #FFF9EF; }
.premium-section .section-head .lead { color: #F7E8D1; }
.premium-section .eyebrow { color: var(--color-gold-light); }
.premium-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.pcard { background: rgba(255,255,255,.05); border: 1px solid rgba(245,216,146,.22); border-radius: var(--radius-lg); padding: 28px 24px; }
.pcard .p-icon { font-size: 30px; display: block; margin-bottom: 14px; }
.pcard h3 { color: var(--color-gold-light); font-size: 20px; margin-bottom: 8px; }
.pcard .p-price { font-family: var(--font-heading); font-size: 26px; color: #FFF9EF; margin-bottom: 12px; }
.pcard p { color: #F7E8D1; font-size: 15px; margin-bottom: 16px; }
.pcard ul { margin: 0 0 16px; padding-left: 0; list-style: none; color: #FFF9EF; font-size: 14.5px; }
.pcard ul li { padding: 4px 0 4px 22px; position: relative; }
.pcard ul li::before { content: '✦'; position: absolute; left: 0; color: var(--color-gold-light); }
.plink { color: var(--color-gold-light); font-weight: 800; font-size: 15px; }
.plink:hover { color: #fff; }
.compare-wrap { overflow-x: auto; border-radius: var(--radius-lg); }
.compare { width: 100%; border-collapse: collapse; background: rgba(255,255,255,.04); font-size: 15px; }
.compare th, .compare td { text-align: left; padding: 16px 18px; border-bottom: 1px solid rgba(245,216,146,.16); }
.compare th { color: var(--color-gold-light); font-family: var(--font-heading); font-weight: 600; font-size: 16px; }
.compare td { color: #FFF9EF; }
.compare tr:last-child td { border-bottom: 0; }
.compare .c-plan { font-weight: 800; color: #FFF9EF; }
.compare .c-price { font-family: var(--font-heading); color: var(--color-gold-light); white-space: nowrap; }
.premium-note { text-align: center; color: #F7E8D1; font-size: 14px; margin-top: 28px; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 28px; }
.tab { border: 1.5px solid var(--color-border); background: var(--color-surface); color: var(--color-text); border-radius: 999px; padding: 10px 20px; font-weight: 800; font-size: 14px; cursor: pointer; transition: all .15s; }
.tab[aria-selected="true"] { background: var(--color-secondary); border-color: var(--color-secondary); color: #fff; }
.idea-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; margin: 0; padding: 0; }
.idea-item { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 18px 20px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 12px; justify-content: space-between; }
.idea-item p { margin: 0; font-style: italic; color: var(--color-text); font-size: 15.5px; }
.copy-btn { align-self: flex-start; border: 1px solid var(--color-border); background: var(--color-bg); color: var(--color-secondary); border-radius: 999px; padding: 6px 14px; font-weight: 800; font-size: 13px; cursor: pointer; transition: all .15s; }
.copy-btn:hover { background: var(--color-secondary); color: #fff; }
.copy-btn.copied { background: var(--color-secondary); border-color: var(--color-secondary); color: #fff; }

.faq { max-width: 780px; margin: 0 auto; }
.faq-item { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); margin-bottom: 12px; overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 18px 22px; font-weight: 800; color: var(--color-secondary); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 24px; color: var(--color-primary); flex: none; line-height: 1; }
.faq-item[open] summary::after { content: '\2013'; }
.faq-a { padding: 0 22px 20px; color: var(--color-text-muted); font-size: 15.5px; }
.faq-a p { margin: 0; }

.final-cta { background: linear-gradient(180deg, var(--color-primary) 0%, #8f2130 100%); color: #FFF9EF; text-align: center; padding-block: 80px; }
.final-cta h2 { color: #FFF9EF; }
.final-cta .sub { color: #F7E8D1; font-size: 18px; margin-bottom: 28px; }
.final-cta .btn-light { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--button-height); padding: 14px 32px; background: #FFF9EF; color: var(--color-primary); border: 0; border-radius: var(--radius-md); font-family: var(--font-body); font-size: 17px; font-weight: 800; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.18); transition: transform .2s; }
.final-cta .btn-light:hover { transform: translateY(-2px); }
.final-cta .micro { color: #F7E8D1; font-size: 14px; margin-top: 18px; }

.site-foot { background: #1b3f30; color: #F7E8D1; padding-block: 56px 28px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.foot-logo { font-family: var(--font-heading); font-size: 24px; font-weight: 600; color: #FFF9EF; margin-bottom: 10px; }
.foot-tag { color: #F7E8D1; font-size: 15px; max-width: 34ch; }
.foot-col-title { color: var(--color-gold-light); margin-bottom: 14px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; font-family: var(--font-heading); font-weight: 600; }
.foot-col a { display: block; color: #F7E8D1; font-size: 14.5px; padding: 5px 0; }
.foot-col a:hover { color: #fff; text-decoration: none; }
.foot-bottom { border-top: 1px solid rgba(245,216,146,.18); padding-top: 22px; color: #CBBFA8; font-size: 13.5px; }

.page { padding-block: 64px 80px; }
.page-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.page-head h1 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 12px; }
.page-head .lede { color: var(--color-text-muted); font-size: 18px; margin: 12px auto 0; max-width: 60ch; }
.prose { max-width: 720px; margin: 0 auto; }
.prose h2 { text-align: left; font-size: 26px; margin-top: 36px; }
.prose h3 { font-size: 20px; margin-top: 28px; }
.prose p, .prose li { color: var(--color-text); }
.prose a { font-weight: 700; }
.app-form { max-width: 480px; margin: 28px auto 0; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-card); }
.app-form .field { margin-bottom: 16px; }
.app-form label { display: block; font-weight: 800; font-size: 14px; color: var(--color-secondary); margin-bottom: 8px; }
.app-form .btn-primary { width: 100%; }
.app-note { max-width: 480px; margin: 14px auto 0; font-size: 14px; color: var(--color-text-muted); text-align: center; }
.empty-state { max-width: 480px; margin: 28px auto 0; text-align: center; background: var(--color-surface); border: 1px dashed var(--color-border); border-radius: var(--radius-lg); padding: 40px 28px; }
.empty-state .es-icon { font-size: 40px; display: block; margin-bottom: 14px; }
.empty-state h2 { font-size: 22px; text-align: center; }
.empty-state p { color: var(--color-text-muted); }

button:focus-visible, a:focus-visible, input:focus-visible, .choice:focus-within, .tab:focus-visible { outline: 3px solid #638AA1; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } html { scroll-behavior: auto; } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .usecases { grid-template-columns: 1fr 1fr; }
  .premium-cards { grid-template-columns: 1fr; }
  .idea-list { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --section-spacing: 56px; --container-padding: 18px; }
  .head-inner { height: auto; padding-block: 12px; flex-wrap: wrap; gap: 10px; }
  .nav { order: 3; width: 100%; justify-content: space-between; gap: 8px; margin-left: 0; }
  .nav a { font-size: 14px; }
  .head-actions { margin-left: auto; }
  .hero { padding-block: 40px 48px; }
  .advent-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .usecases { grid-template-columns: 1fr; }
  .idea-list { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .btn-primary { width: 100%; }
  .center-cta .btn-primary, .center-cta .btn-secondary { width: auto; }
}


/* ---- shareable link result ---- */
.mr-link {
  display: inline-flex; align-items: center;
  font-family: var(--font-heading); font-size: 15px; font-weight: 600;
  color: var(--color-secondary); background: #fff;
  border: 1.5px dashed var(--color-secondary); border-radius: var(--radius-sm);
  padding: 6px 12px; word-break: break-all;
}
.mr-link:hover { color: var(--color-primary); border-color: var(--color-primary); text-decoration: none; }
.mr-copy {
  border: 1px solid var(--color-secondary); background: transparent; color: var(--color-secondary);
  border-radius: 999px; padding: 6px 14px; font-weight: 800; font-size: 13px; cursor: pointer;
  font-family: var(--font-body); transition: all .15s;
}
.mr-copy:hover { background: var(--color-secondary); color: #fff; }
.mr-copy.copied { background: var(--color-secondary); color: #fff; }

/* ---- shared calendar view (/c) ---- */
.cal-page { padding-block: 64px 80px; }
.cal-view { max-width: 760px; margin: 0 auto; text-align: center; }
.cal-title { text-align: center; font-size: clamp(28px, 4vw, 42px); margin-bottom: 6px; }
.cal-sub { text-align: center; color: var(--color-text-muted); font-size: 16px; margin-bottom: 28px; }
.cal-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); margin-bottom: 8px; text-align: left; }
.cal-filled { border: 2px solid var(--color-gold); box-shadow: 0 0 0 3px rgba(213,166,75,.18); }
.cal-locked { opacity: .5; cursor: not-allowed; }
.cal-empty { text-align: center; color: var(--color-text-muted); font-size: 16px; margin: 24px auto 16px; max-width: 48ch; }
.cal-empty + .btn-primary { width: auto; display: inline-flex; margin: 0 auto; text-decoration: none; }
.cal-reveal { margin-top: 20px; text-align: left; }
.cal-mine-list { list-style: none; margin: 0; padding: 0; text-align: left; }
.cal-mine-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); margin-bottom: 10px; }
.cal-mine-list a { font-weight: 800; color: var(--color-secondary); }
.cal-mine-list a:hover { color: var(--color-primary); }
.cal-mine-list .cal-open { background: var(--color-secondary); color: #fff; border-radius: 999px; padding: 6px 16px; font-size: 13px; }
.cal-mine-list .cal-open:hover { background: var(--color-primary); color: #fff; text-decoration: none; }
.cal-mine-empty { text-align: center; color: var(--color-text-muted); }
@media (max-width: 640px) { .cal-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }


/* ---- snowflake packs + buy buttons ---- */
.packs-title {
  font-family: 'Fraunces', serif;
  font-size: 26px;
  margin: 0 0 6px;
  color: #FFF9EF;
  text-align: center;
}
.packs-sub {
  text-align: center;
  color: rgba(255, 249, 239, 0.85);
  font-size: 15px;
  margin: 0 0 22px;
}
.buy-btn {
  appearance: none;
  border: none;
  background: #D5A64B;
  color: #142A1C;
  font-weight: 800;
  font-size: 14px;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-family: 'Nunito Sans', sans-serif;
  white-space: nowrap;
  transition: all .15s;
}
.buy-btn:hover { background: #F5D892; }
.packs-note {
  text-align: center;
  color: rgba(255, 249, 239, 0.72);
  font-size: 13px;
  margin: 16px 0 0;
}


/* ---- contrast fix + paid notice ---- */
.buy-btn { color: #142A1C; }
.paid-note {
  display: block;
  text-align: center;
  color: #F5D892;
  font-weight: 700;
  font-size: 15px;
  margin: 12px 0 0;
}


/* ---- group / duo mode picker ---- */
.mode-group { display: flex; flex-direction: column; gap: 10px; }
.mode-choice {
  flex-direction: column; align-items: flex-start; gap: 3px;
  padding: 12px 14px; border-radius: var(--radius-sm);
}
.mode-choice .mode-title { font-weight: 800; color: var(--color-text); font-size: 15px; }
.mode-choice .choice-sub { display: block; font-size: 13px; color: var(--color-text-muted); font-weight: 500; }
.duo-note {
  margin: 0; padding: 10px 14px; background: #FFF4E0;
  border: 1px solid #F0D9A8; border-radius: var(--radius-sm);
  font-size: 14px; color: #6b4e1e;
}
.duo-note strong { color: #4a3512; }
.field-hint { margin: 6px 0 0; font-size: 13px; color: var(--color-text-muted); line-height: 1.45; }
.optional { font-size: 12px; font-weight: 600; color: var(--color-text-muted); }
#calStart {
  width: 100%; padding: 12px 14px; font-family: var(--font-body); font-size: 16px;
  border: 1.5px solid var(--color-border); border-radius: var(--radius-sm); background: #fff; color: var(--color-text);
}
#calStart:focus { outline: none; border-color: var(--color-secondary); box-shadow: 0 0 0 3px rgba(33,77,59,.15); }
[hidden] { display: none !important; }



/* ---- hero ambience: stars + drifting snow ---- */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 6% 22%, rgba(33,77,59,.22) 0, transparent 100%),
    radial-gradient(1.5px 1.5px at 16% 8%, rgba(213,166,75,.30) 0, transparent 100%),
    radial-gradient(2px 2px at 28% 30%, rgba(181,45,58,.16) 0, transparent 100%),
    radial-gradient(1.5px 1.5px at 42% 14%, rgba(33,77,59,.20) 0, transparent 100%),
    radial-gradient(2px 2px at 58% 28%, rgba(213,166,75,.24) 0, transparent 100%),
    radial-gradient(1.5px 1.5px at 72% 10%, rgba(181,45,58,.15) 0, transparent 100%),
    radial-gradient(2px 2px at 86% 24%, rgba(33,77,59,.18) 0, transparent 100%),
    radial-gradient(1.5px 1.5px at 95% 40%, rgba(213,166,75,.22) 0, transparent 100%);
}
.hero::after {
  content: '';
  position: absolute;
  top: -30px;
  left: 50%;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  box-shadow:
    -160px 40px 0 -1px rgba(255,255,255,.7),
    -40px 120px 0 0 rgba(255,255,255,.6),
    -220px 200px 0 -1px rgba(255,255,255,.65),
    120px 60px 0 -1px rgba(255,255,255,.75),
    40px 160px 0 0 rgba(255,255,255,.55),
    160px 260px 0 -1px rgba(255,255,255,.65),
    -100px 320px 0 0 rgba(255,255,255,.5),
    80px 400px 0 -1px rgba(255,255,255,.6);
  animation: snow-drift 16s linear infinite;
  pointer-events: none;
}
@keyframes snow-drift {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  8% { opacity: .85; }
  100% { transform: translateY(560px) translateX(-60px); opacity: 0; }
}