:root {
  --cream: #F4F1EA;
  --cream-2: #EDE8DD;
  --paper: #FFFFFF;
  --ink: #1C1A16;
  --muted: #6B6557;
  --faint: #97907F;
  --terra: #C75B49;
  --terra-deep: #A8442F;
  --terra-soft: #F3DED6;
  --line: #E4DDCE;
  --hat: #C95B4B;

  --maxw: 1120px;
  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-weight: 500; font-size: 0.95rem;
  padding: 12px 20px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .25s var(--ease), background .2s, box-shadow .25s var(--ease), border-color .2s;
  white-space: nowrap;
}
.btn-sm { padding: 9px 16px; font-size: 0.9rem; }
.btn-primary {
  background: var(--terra); color: #fff;
  box-shadow: 0 6px 18px -8px rgba(167,68,47,.6);
}
.btn-primary:hover { background: var(--terra-deep); transform: translateY(-2px); box-shadow: 0 12px 26px -10px rgba(167,68,47,.65); }
.btn-ghost { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--terra); color: var(--terra-deep); transform: translateY(-2px); }
.btn .apple { width: 15px; height: 15px; margin-top: -1px; }
.btn:focus-visible { outline: 3px solid var(--terra-soft); outline-offset: 2px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--maxw); margin: 0 auto; padding: 18px 28px;
  backdrop-filter: saturate(140%) blur(8px);
}
.nav::before {
  content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--cream) 78%, transparent);
  border-bottom: 1px solid transparent; z-index: -1; transition: border-color .3s;
}
.nav.scrolled::before { border-bottom-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 600; font-size: 1.2rem; }
.brand-gnome { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 26px; font-weight: 500; }
.nav-links a:not(.btn) { color: var(--muted); transition: color .2s; }
.nav-links a:not(.btn):hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw); margin: 0 auto; padding: 64px 28px 80px;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
}
.eyebrow {
  font-weight: 600; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--terra-deep); margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--serif); font-weight: 500; font-size: clamp(2.6rem, 1.4rem + 4.4vw, 4.7rem);
  line-height: 1.02; letter-spacing: -0.02em;
}
.lede { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem); color: var(--muted); max-width: 30ch; margin: 24px 0 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.fineprint { margin-top: 18px; color: var(--faint); font-size: 0.85rem; }

/* Hero visual — faux menu bar + drop-down banner */
.hero-visual { position: relative; height: 360px; }
.menubar {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 420px; height: 34px; border-radius: 10px;
  background: var(--ink); display: flex; align-items: center; gap: 7px; padding: 0 12px;
}
.menubar .dot { width: 11px; height: 11px; border-radius: 50%; }
.menubar .dot.r { background: #ff5f57; } .menubar .dot.y { background: #febc2e; } .menubar .dot.g { background: #28c840; }
.menubar-gnome { width: 20px; height: 20px; margin-left: auto; }
.banner {
  position: absolute; top: 70px; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 420px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 30px 60px -24px rgba(40,33,31,.4);
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
}
.banner-gnome { width: 54px; height: 54px; flex: none; }
.banner-text { display: flex; flex-direction: column; line-height: 1.25; }
.b-kicker { font-size: 0.72rem; font-weight: 600; color: var(--faint); }
.b-title { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; }
.b-time { font-size: 0.82rem; font-weight: 600; color: var(--terra-deep); }
.banner-actions { display: flex; gap: 7px; margin-left: auto; }
.pill { font-size: 0.78rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.pill.ghost { background: var(--cream-2); color: var(--muted); }
.pill.solid { background: var(--terra); color: #fff; }

.pop { animation: drop 1.2s var(--ease) both; }
.banner-gnome { animation: bob 2.4s ease-in-out 1.2s infinite; transform-origin: bottom center; }
@keyframes drop { from { opacity: 0; transform: translate(-50%, -40px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-3px) rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .pop, .banner-gnome { animation: none; } }

/* ---------- Sections ---------- */
.section-title {
  font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em;
  font-size: clamp(1.8rem, 1.2rem + 2vw, 2.7rem); text-align: center; max-width: 18ch; margin: 0 auto;
}

.features { max-width: var(--maxw); margin: 0 auto; padding: 40px 28px 30px; }
.features .section-title { margin-bottom: 44px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(40,33,31,.28); border-color: #d9d0bd; }
.card .ic {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--terra-soft); color: var(--terra-deep); font-size: 1.3rem; margin-bottom: 16px;
}
.card h3 { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.96rem; }
.card.soon { background: linear-gradient(180deg, var(--cream-2), var(--paper)); }
.tag {
  font-family: var(--sans); font-size: 0.62rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  background: var(--terra); color: #fff; padding: 2px 8px; border-radius: 999px; vertical-align: middle; margin-left: 6px;
}

/* How it works */
.how { background: var(--cream-2); border-block: 1px solid var(--line); margin-top: 40px; }
.how-inner, .how > * { }
.how { padding: 70px 28px; }
.how .section-title { margin-bottom: 48px; }
.steps {
  list-style: none; max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.steps li { text-align: center; }
.step-n {
  display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 18px;
  border-radius: 50%; background: var(--paper); border: 1.5px solid var(--terra);
  font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--terra-deep);
}
.steps h3 { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; margin-bottom: 8px; }
.steps p { color: var(--muted); max-width: 26ch; margin: 0 auto; }

/* Get / signup */
.get { max-width: 760px; margin: 0 auto; padding: 88px 28px; text-align: center; }
.get-gnome { width: 92px; height: 92px; margin-bottom: 20px; }
.get h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 1.3rem + 2vw, 2.8rem); letter-spacing: -0.01em; }
.get > p { color: var(--muted); max-width: 46ch; margin: 16px auto 30px; font-size: 1.05rem; }
.signup { display: flex; gap: 10px; max-width: 440px; margin: 0 auto; }
.signup input {
  flex: 1; font-family: var(--sans); font-size: 1rem; padding: 13px 18px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink);
}
.signup input:focus-visible { outline: 3px solid var(--terra-soft); outline-offset: 1px; border-color: var(--terra); }
.signup-note { margin-top: 14px; color: var(--terra-deep); font-weight: 500; min-height: 1.2em; }

/* Footer */
.footer {
  max-width: var(--maxw); margin: 0 auto; padding: 40px 28px 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-top: 1px solid var(--line); color: var(--faint); font-size: 0.9rem;
}
.footer .brand { font-size: 1.05rem; color: var(--ink); }
.footer .brand-gnome { width: 26px; height: 26px; }

/* Lead feature cards (the three core props) */
.card.lead { border-color: #d9d0bd; box-shadow: 0 14px 34px -26px rgba(40,33,31,.3); }
.card.lead .ic { background: var(--terra); color: #fff; }

/* Editions */
.editions { max-width: var(--maxw); margin: 0 auto; padding: 70px 28px 30px; }
.editions .section-title { margin-bottom: 14px; }
.editions-sub { text-align: center; color: var(--muted); max-width: 54ch; margin: 0 auto 46px; font-size: 1.05rem; }
.edition-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 820px; margin: 0 auto; }
.edition {
  position: relative; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 28px; display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.edition.featured { border-color: var(--terra); box-shadow: 0 22px 50px -28px rgba(167,68,47,.45); }
.edition.featured:hover { transform: translateY(-4px); box-shadow: 0 28px 60px -28px rgba(167,68,47,.55); }
.edition-flag {
  position: absolute; top: -12px; left: 28px;
  font-size: 0.66rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  background: var(--terra); color: #fff; padding: 5px 12px; border-radius: 999px;
}
.edition-tier { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; }
.edition-price { color: var(--terra-deep); font-weight: 600; font-size: 0.95rem; margin: 2px 0 18px; }
.edition-list { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-bottom: 26px; flex: 1; }
.edition-list li { position: relative; padding-left: 26px; color: var(--muted); font-size: 0.97rem; }
.edition-list li::before { content: "✓"; position: absolute; left: 0; top: -1px; color: var(--terra-deep); font-weight: 700; }
.edition-list li strong { color: var(--ink); font-weight: 600; }
.edition-cta { width: 100%; justify-content: center; }
.edition-note { text-align: center; color: var(--faint); font-size: 0.82rem; margin-top: 12px; }

/* Responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 8px; padding-top: 40px; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .lede { max-width: 42ch; } .cta-row { justify-content: center; }
  .hero-visual { height: 300px; margin-top: 24px; order: -1; }
  .grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .edition-grid { grid-template-columns: 1fr; max-width: 460px; }
  .nav-links a:not(.btn) { display: none; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .signup { flex-direction: column; }
  .footer { flex-direction: column; text-align: center; }
}
