:root {
  --bg: #f3e9dc;
  --paper: #fffaf3;
  --paper-2: #fff4e8;
  --text: #2d221b;
  --muted: #5c4a3f;
  --line: #e5d0b9;
  --brand: #b56e36;
  --brand-dark: #7a451f;
  --primary: #2a684e;
  --primary-focus: #3d7a5f;
  --ok: #245239;
  --error: #9d3434;
  --r: 0.875rem;
  --shadow-s: 0 6px 14px rgba(89, 54, 27, .08);
  --shadow-m: 0 10px 26px rgba(89, 54, 27, .12);
  --shadow-l: 0 16px 36px rgba(89, 54, 27, .16);
  --space-xs: 0.5rem;
  --space-s: 0.75rem;
  --space-m: 1rem;
  --space-l: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 2.5rem;
  --font-sans: "DM Sans", system-ui, -apple-system, Segoe UI, sans-serif;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
}

html[data-season="winter"] {
  --bg: #efe9e3;
  --paper: #fcf8f4;
  --paper-2: #f6f1ec;
  --line: #ddd2c8;
  --brand: #a86d46;
}

html[data-season="spring"] {
  --bg: #f2ecdf;
  --paper: #fffaf3;
  --paper-2: #f7f3ea;
  --line: #dfd4c2;
  --brand: #b9773f;
}

* { box-sizing: border-box; }
html {
  font-size: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text);
  background:
    radial-gradient(900px 500px at -10% -10%, #ffe9d0 0%, transparent 60%),
    radial-gradient(700px 400px at 110% -10%, #f6dec4 0%, transparent 55%),
    var(--bg);
  line-height: 1.6;
}

.skip-link {
  position: absolute;
  top: -3rem;
  left: var(--space-m);
  z-index: 100;
  padding: var(--space-s) var(--space-m);
  background: var(--primary);
  color: #ecf7f1;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--r);
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: var(--space-m);
  outline: 2px solid var(--primary-focus);
  outline-offset: 2px;
}

body.evening {
  --bg: #261d17;
  --paper: #342921;
  --paper-2: #3b2f26;
  --text: #f8eee4;
  --muted: #c9b5a3;
  --line: #4a3a30;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.coming-soon-page {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  min-height: 100vh;
  min-height: 100dvh;
}
.coming-soon-page.hidden { display: none; }
body.gate-active #mainContent { display: none; }

.coming-soon-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(255, 233, 208, 0.9) 0%, transparent 50%),
    radial-gradient(ellipse 80% 60% at 100% 50%, rgba(246, 222, 196, 0.6) 0%, transparent 45%),
    radial-gradient(ellipse 70% 50% at 0% 100%, rgba(255, 244, 232, 0.7) 0%, transparent 40%),
    var(--bg);
  pointer-events: none;
}

.coming-soon-card {
  position: relative;
  width: 100%;
  max-width: 24rem;
  background: color-mix(in srgb, var(--paper) 98%, transparent);
  border-radius: calc(var(--r) * 1.5);
  box-shadow: var(--shadow-m), 0 0 0 1px var(--line);
  animation: coming-soon-in 0.6s ease-out both;
}
@keyframes coming-soon-in {
  from {
    opacity: 0;
    transform: translateY(1rem) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.coming-soon-card-inner {
  text-align: center;
  padding: 2.5rem 2rem;
}

.coming-soon-icon {
  display: inline-block;
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  opacity: 0.9;
  animation: coming-soon-steam 3s ease-in-out infinite;
}
@keyframes coming-soon-steam {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.9; }
  50% { transform: translateY(-0.25rem) scale(1.02); opacity: 1; }
}

.coming-soon-mark {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: var(--space-xs);
  letter-spacing: 0.15em;
  font-family: var(--font-serif);
}
.coming-soon-title {
  font-size: clamp(1.875rem, 4.5vw, 2.5rem);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
  font-weight: 600;
}
.coming-soon-tagline {
  color: var(--muted);
  margin-bottom: 1.75rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  max-width: 18rem;
  margin-left: auto;
  margin-right: auto;
}
.coming-soon-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--line) 15%, var(--line) 85%, transparent);
  margin-bottom: 1.75rem;
}
.coming-soon-form {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.coming-soon-form input {
  padding: 0.875rem 1.125rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-size: 1rem;
  background: var(--paper-2);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.coming-soon-form input:hover {
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
}
.coming-soon-form input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent);
}
.coming-soon-form input::placeholder { color: var(--muted); }
.coming-soon-error {
  margin-top: 0.5rem;
  color: var(--error);
  font-size: 0.875rem;
}
.coming-soon-error.hidden { display: none; }

body.evening .coming-soon-bg {
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(52, 41, 33, 0.95) 0%, transparent 50%),
    radial-gradient(ellipse 80% 60% at 100% 50%, rgba(58, 47, 38, 0.6) 0%, transparent 45%),
    var(--bg);
}
body.evening .coming-soon-card {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--line);
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .2;
  background-image: radial-gradient(rgba(0,0,0,.045) .7px, transparent .7px);
  background-size: 2.8px 2.8px;
}

main, header, footer, .sticky-cta, .audio-toggle, .toast, .back-top {
  position: relative;
  z-index: 1;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  margin: 0 0 var(--space-s);
  letter-spacing: 0.02em;
  font-weight: 600;
}

p { margin: 0 0 .7rem; }

.container {
  width: min(70rem, 100%);
  margin: 0 auto;
  padding: 0 var(--space-l);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 70;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
  padding: var(--space-m) 0;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), #d08f55);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  box-shadow: var(--shadow-s);
}

.brand { color: var(--brand-dark); }
.brand-sub { color: var(--muted); font-size: .82rem; }
.nav-actions { display: flex; align-items: center; gap: 8px; }

.btn {
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: 10px;
  padding: 10px 14px;
  min-height: 44px;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  color: inherit;
  background: transparent;
  cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease, filter .2s ease;
}

.btn:hover { transform: translateY(-1px); filter: brightness(1.02); }
.btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.btn-primary:focus-visible { outline-color: var(--primary-focus); }

.btn-primary {
  background: var(--primary);
  color: #ecf7f1;
  border-color: transparent;
  box-shadow: var(--shadow-s);
}

.btn-secondary {
  background: color-mix(in srgb, var(--paper) 90%, #f7ecdf 10%);
  color: #5f3f29;
}

.btn-ghost { color: var(--muted); }
.btn[disabled] { opacity: .65; cursor: not-allowed; }

.hero { padding: clamp(3rem, 8vw, 4.5rem) 0 var(--space-xl); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: var(--space-xl);
  align-items: center;
}

.chalk-tag {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #2f2b28;
  color: #f3eadf;
  font-size: .82rem;
}

.rotating-quote {
  margin: 10px 0 4px;
  color: var(--muted);
  font-style: italic;
  min-height: 22px;
}

.segment-switch {
  display: flex;
  gap: 8px;
  margin: 10px 0 8px;
  flex-wrap: wrap;
}

.segment-btn {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 600;
  cursor: pointer;
}

.segment-btn.is-active {
  background: linear-gradient(135deg, var(--brand), #c9854d);
  color: #fff;
  border-color: transparent;
}

h1 { font-size: clamp(1.875rem, 4.3vw, 3.25rem); line-height: 1.15; }

.lead { color: var(--muted); max-width: 65ch; font-size: 1.0625rem; }

.weather-note {
  margin-top: 10px;
  display: inline-block;
  border: 1px dashed var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--muted);
  font-size: .88rem;
}

.hero-points {
  margin: 10px 0 16px;
  padding-left: 18px;
  color: color-mix(in srgb, var(--text) 85%, var(--muted) 15%);
}

.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.hero-visual { position: relative; }
.hero-visual img {
  width: 100%;
  height: 448px;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-l);
  filter: sepia(.08) saturate(1.05) contrast(1.03);
}

.steam {
  position: absolute;
  right: 20px;
  top: 22px;
  width: 86px;
  height: 86px;
  background: radial-gradient(circle at 50% 80%, rgba(255, 255, 255, .35), transparent 60%);
  filter: blur(1px);
  animation: steamRise 3.2s ease-in-out infinite;
}

@keyframes steamRise {
  0% { transform: translateY(8px); opacity: .2; }
  50% { transform: translateY(-7px); opacity: .45; }
  100% { transform: translateY(8px); opacity: .2; }
}

.floating-note {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: var(--shadow-s);
}

.floating-note small {
  color: var(--brand-dark);
  font-weight: 700;
  letter-spacing: .7px;
}

.floating-note p {
  color: var(--muted);
  margin: 2px 0 0;
}

.proof-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-m);
  padding: var(--space-l) 0;
}

.proof-grid > div {
  text-align: center;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper);
}

.proof-grid strong { display: block; }
.proof-grid span { color: var(--muted); font-size: .92rem; }

.section-tight { padding: 10px 0 0; }
.logo-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.logo-pill {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .85rem;
  color: var(--muted);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
}

.section { padding: var(--space-2xl) 0 var(--space-xl); }
h2 { font-size: clamp(1.375rem, 3vw, 1.875rem); }
.sub { color: var(--muted); font-size: 1rem; }

.split-mood,
.steps,
.quiz,
.pricing,
.moments-grid,
.compare-grid,
.cards-3,
.two-col {
  display: grid;
  gap: var(--space-l);
}

.split-mood,
.compare-grid,
.two-col { grid-template-columns: 1fr 1fr; }
.steps,
.pricing,
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.box,
.step,
.quiz,
.price-card,
.card,
.polaroid {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--space-l);
  box-shadow: var(--shadow-s);
}

.step span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--brand-dark);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 80%, #f6e6d4 20%);
}

.quiz-row { display: grid; gap: 6px; margin-bottom: 8px; }

.price-card { cursor: pointer; transition: box-shadow 0.2s ease, transform 0.2s ease; }
.price-card:hover { box-shadow: var(--shadow-m); }
.price-card:focus,
.price-card:focus-within {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.price { font-size: 2rem; font-weight: 800; }

.featured {
  border: 2px solid var(--brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow-m);
}

.badge {
  display: inline-block;
  font-size: .78rem;
  color: #fff;
  background: var(--brand);
  border-radius: 999px;
  padding: 3px 8px;
}

.cup { font-size: .85rem; color: var(--muted); }

.hint {
  margin-top: 10px;
  background: #e7f4ec;
  color: var(--ok);
  border: 1px solid #b6d6c4;
  border-radius: 8px;
  padding: 10px;
}

.moments-slider-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
}

.moments-track {
  display: flex;
  overflow: hidden;
  border-radius: 14px;
}

.moments-track .polaroid {
  min-width: 100%;
  transition: transform .35s ease;
  transform: rotate(-.7deg);
}

.moments-track .polaroid:nth-child(2n) { transform: rotate(.7deg); }

.polaroid {
  padding: 10px;
}

.polaroid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  margin-bottom: 8px;
}

.polaroid p { color: var(--muted); font-size: .92rem; }

.slider-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--text);
  cursor: pointer;
}

.box ul,
.card p,
.faq p,
.quote span { color: var(--muted); }

.box-image { padding: 0; overflow: hidden; }
.box-image img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.box-image > div { padding: 14px; }

form { display: grid; gap: 8px; }
label { font-size: .9rem; color: color-mix(in srgb, var(--muted) 90%, #000 10%); }

input,
select {
  width: 100%;
  padding: 11px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--line) 82%, #d2b69b 18%);
  background: color-mix(in srgb, var(--paper) 94%, #fff 6%);
  color: var(--text);
}

input:focus,
select:focus {
  outline: 2px solid var(--brand);
  border-color: var(--brand);
  outline-offset: 0;
}

.field-error {
  min-height: 16px;
  font-size: .82rem;
  color: var(--error);
}

.hp { display: none; }
.form-ok { color: var(--ok); }
.form-error { color: var(--error); }

.faq-list { display: grid; gap: 8px; }

.faq details {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  padding: 10px 12px;
}

.faq summary { font-weight: 600; cursor: pointer; }

.back-top {
  position: fixed;
  right: 14px;
  bottom: 84px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-s);
  cursor: pointer;
  z-index: 35;
}

.footer {
  margin-top: var(--space-2xl);
  border-top: 1px solid var(--line);
  padding: var(--space-xl) 0 max(6rem, calc(6rem + env(safe-area-inset-bottom)));
}

.footer-lock {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.receipt {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 12px;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  color: var(--muted);
}

.receipt p:first-child {
  letter-spacing: 1px;
  font-weight: 700;
  color: var(--text);
}

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  gap: 8px;
  padding: 10px 14px;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(8px);
  z-index: 40;
}

.sticky-cta .btn { flex: 1; text-align: center; }

.audio-toggle {
  position: fixed;
  right: 14px;
  bottom: 132px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  box-shadow: var(--shadow-s);
  cursor: pointer;
  z-index: 40;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  transform: translateX(-50%);
  background: #1f3b30;
  color: #eaf6ef;
  padding: 10px 14px;
  border-radius: 999px;
  z-index: 45;
  font-size: .9rem;
}

.hidden { display: none !important; }

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .4s ease, transform .4s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .steam { animation: none; }
}

@media (max-width: 64rem) {
  .hero-grid,
  .proof-grid,
  .split-mood,
  .steps,
  .pricing,
  .compare-grid,
  .cards-3,
  .two-col { grid-template-columns: 1fr; }

  .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { gap: var(--space-l); }
  .hero-visual { order: -1; }
  .hero-visual img { height: min(320px, 50vh); }
  .nav-actions .btn-ghost { display: none; }
  .featured { transform: none; }
  .sticky-cta { display: flex; padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
  .audio-toggle { bottom: 5.5rem; right: max(var(--space-m), env(safe-area-inset-right)); }
  .back-top { right: max(var(--space-m), env(safe-area-inset-right)); bottom: max(5.25rem, calc(5.25rem + env(safe-area-inset-bottom))); }
}

@media (max-width: 36rem) {
  .proof-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-s);
    padding: var(--space-m) 0;
  }
  .proof-grid > div { padding: var(--space-s); }
  .proof-grid strong { font-size: 0.9375rem; }
  .proof-grid span { font-size: 0.8125rem; }
}
