/* =========================================================
   Postbox Tales — warm, editorial, kid-literary
   ========================================================= */

:root {
  /* Palette */
  --paper:        #F4ECDC;   /* warm cream, primary bg */
  --paper-warm:   #FBF6E9;   /* lighter card surface */
  --paper-deep:   #ECE1C9;   /* deeper section */
  --ink:          #1F1B16;   /* text */
  --ink-soft:     #5A5247;
  --ink-faint:    #8E8678;
  --rule:         #D9CDB1;

  --postbox:      #B33A2A;   /* primary accent / CTA */
  --postbox-deep: #8C2A1F;
  --ochre:        #C28A2C;   /* secondary warm */
  --sage:         #7A8F6B;   /* trust accent */

  /* Type */
  --font-display: 'Boska', 'Source Serif 4', Georgia, serif;
  --font-body:    'Satoshi', 'Inter', system-ui, -apple-system, sans-serif;

  /* Sizes (fluid) */
  --text-xs:  0.78rem;
  --text-sm:  0.92rem;
  --text-base: 1.02rem;
  --text-lg:  clamp(1.15rem, 1.05rem + 0.5vw, 1.35rem);
  --text-xl:  clamp(1.5rem, 1.2rem + 1.2vw, 2.05rem);
  --text-2xl: clamp(2.1rem, 1.4rem + 2.6vw, 3.2rem);
  --text-hero: clamp(2.6rem, 1.45rem + 4.4vw, 4.9rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;

  --radius-sm: 4px;
  --radius:    10px;
  --radius-lg: 18px;

  --maxw: 1180px;

  --shadow-paper: 0 1px 0 rgba(31,27,22,0.05), 0 12px 24px -16px rgba(31,27,22,0.18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* paper texture via SVG noise data uri */
  background-image:
    radial-gradient(at 20% 0%, rgba(194,138,44,0.06), transparent 40%),
    radial-gradient(at 80% 100%, rgba(179,58,42,0.05), transparent 50%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 0.12 0 0 0 0 0.1 0 0 0 0 0.07 0 0 0 0.05 0'/></filter><rect width='240' height='240' filter='url(%23n)'/></svg>");
  background-attachment: fixed, fixed, fixed;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 1.06;
  margin: 0 0 var(--space-4);
  color: var(--ink);
}

p { margin: 0 0 var(--space-4); }

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--postbox); }

em { font-style: italic; }

::selection { background: var(--postbox); color: var(--paper-warm); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding: var(--space-4) clamp(1rem, 4vw, 3rem);
  background: rgba(244, 236, 220, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled { border-bottom-color: var(--rule); }

.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--ink);
}
.logo-mark { width: 36px; height: 36px; flex: none; }
.logo-mark-sm { width: 28px; height: 28px; }

.logo-word {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  font-family: var(--font-display);
}
.logo-line1 {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.logo-line2 {
  font-style: italic;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--postbox);
  margin-top: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.75rem);
  font-size: var(--text-sm);
}
.site-nav a {
  color: var(--ink-soft);
  font-weight: 500;
  position: relative;
}
.site-nav a:hover { color: var(--ink); }
.nav-cta {
  background: var(--ink);
  color: var(--paper) !important;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  font-weight: 600;
  transition: background 0.18s ease;
}
.nav-cta:hover { background: var(--postbox); color: var(--paper-warm) !important; }

@media (max-width: 720px) {
  .site-nav a:not(.nav-cta) { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--postbox);
  color: var(--paper-warm);
  box-shadow: 0 2px 0 var(--postbox-deep);
}
.btn-primary:hover {
  background: var(--postbox-deep);
  color: var(--paper-warm);
  transform: translateY(-1px);
  box-shadow: 0 3px 0 var(--postbox-deep);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}
.btn-block { width: 100%; }

.plan .btn-primary {
  background: var(--postbox);
  color: var(--paper-warm);
  border-color: var(--postbox);
  box-shadow: 0 2px 0 var(--postbox-deep);
}
.plan .btn-primary:hover {
  background: var(--postbox-deep);
  color: var(--paper-warm);
  border-color: var(--postbox-deep);
}

/* ---------- Eyebrow / kicker ---------- */
.eyebrow, .kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--postbox);
  margin: 0 0 var(--space-4);
}
.eyebrow-dot {
  width: 8px; height: 8px;
  background: var(--postbox);
  border-radius: 50%;
  display: inline-block;
}
.kicker.on-dark { color: var(--ochre); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1rem, 4vw, 3rem) clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
}
.hero-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='400' height='400'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.6' numOctaves='2' seed='8'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0'/></filter><rect width='400' height='400' filter='url(%23g)'/></svg>");
}
.hero-inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; }
}

.hero-title {
  font-size: var(--text-hero);
  letter-spacing: -0.022em;
  line-height: 0.96;
  margin-bottom: var(--space-4);
}
.hero-slogan {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 0.95rem + 0.8vw, 1.7rem);
  color: var(--ink-soft);
  margin: calc(var(--space-3) * -1) 0 var(--space-5);
}
.hero-title em {
  color: var(--postbox);
  font-style: italic;
  font-weight: 500;
}

.hero-lede {
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.22rem);
  color: var(--ink-soft);
  max-width: 34rem;
  line-height: 1.55;
  margin-bottom: var(--space-6);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1rem, 3vw, 2.5rem);
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: var(--text-sm);
  color: var(--ink-soft);
  border-top: 1px solid var(--rule);
  padding-top: var(--space-4);
}
.hero-proof strong {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  margin-right: 0.35rem;
}

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-svg {
  width: 100%;
  max-width: 480px;
  height: auto;
  filter: drop-shadow(0 14px 28px rgba(31,27,22,0.12));
}

.deckle {
  position: absolute;
  left: 0;
  width: 100%;
  height: 30px;
  display: block;
}
.deckle-bottom { bottom: -1px; }

/* ---------- Promise strip ---------- */
.promise {
  background: var(--paper-warm);
  padding: clamp(2rem, 4vw, 3rem) clamp(1rem, 4vw, 3rem);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.promise-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
}
@media (max-width: 880px) {
  .promise-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .promise-grid { grid-template-columns: 1fr; }
}
.promise-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  font-size: var(--text-sm);
  color: var(--ink-soft);
  line-height: 1.5;
}
.promise-item p { margin: 0; }
.promise-item strong { color: var(--ink); font-weight: 700; }
.promise-icon {
  flex: none;
  width: 36px;
  height: 36px;
  color: var(--postbox);
}
.promise-icon svg { width: 100%; height: 100%; }

/* ---------- Generic section ---------- */
.section {
  padding: clamp(3.5rem, 7vw, 6.5rem) clamp(1rem, 4vw, 3rem);
  max-width: var(--maxw);
  margin: 0 auto;
}
.section-head {
  max-width: 42rem;
  margin: 0 auto var(--space-12);
  text-align: center;
}
.section-head h2 {
  font-size: var(--text-2xl);
  letter-spacing: -0.018em;
}
.section-head .section-lede {
  color: var(--ink-soft);
  font-size: var(--text-lg);
  line-height: 1.55;
  margin: 0;
}

/* ---------- How / Steps ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  counter-reset: step;
}
@media (max-width: 980px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
}
.step {
  position: relative;
  padding-top: var(--space-6);
  border-top: 2px solid var(--ink);
}
.step-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--postbox);
  margin-bottom: var(--space-2);
  letter-spacing: 0.04em;
}
.step-num span { font-weight: 500; }
.step h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}
.step p {
  color: var(--ink-soft);
  font-size: var(--text-base);
  margin: 0;
  line-height: 1.55;
}

/* ---------- Anatomy ---------- */
.anatomy {
  background:
    linear-gradient(180deg, transparent, rgba(217,205,177,0.18) 30%, transparent 70%);
}
.anatomy-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 880px) {
  .anatomy-grid { grid-template-columns: 1fr; }
}
.anatomy-spread {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 18% 18%, rgba(255,255,255,0.55), transparent 28%),
    linear-gradient(135deg, #f3e7cf 0%, #dfcfad 100%);
  padding: clamp(1.35rem, 3vw, 2.35rem);
  border: 1px solid rgba(31, 27, 22, 0.16);
  border-radius: 3px;
  box-shadow:
    0 28px 60px -36px rgba(31,27,22,0.52),
    0 8px 22px -14px rgba(31,27,22,0.36),
    inset 0 1px 0 rgba(255,255,255,0.45);
  transform: perspective(900px) rotateX(2deg) rotateZ(-1.2deg);
}
.anatomy-spread::before {
  content: "";
  position: absolute;
  inset: auto 8% 8px;
  height: 24px;
  background: rgba(31,27,22,0.2);
  filter: blur(18px);
  border-radius: 50%;
  z-index: -1;
}
.anatomy-spread::after {
  content: "";
  position: absolute;
  inset: clamp(1.35rem, 3vw, 2.35rem);
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 48.6%, rgba(31,27,22,0.18) 49.6%, rgba(255,255,255,0.5) 50.4%, transparent 51.4%),
    radial-gradient(circle at 50% 14%, rgba(255,255,255,0.32), transparent 24%);
  mix-blend-mode: multiply;
  opacity: 0.55;
}
.spread-svg {
  position: relative;
  z-index: 1;
  background: transparent;
  border-radius: 2px;
  filter:
    drop-shadow(0 18px 22px rgba(31,27,22,0.2))
    drop-shadow(0 2px 1px rgba(31,27,22,0.1));
}
.spread-svg { width: 100%; height: auto; display: block; }
.anatomy-photo {
  margin: 0;
  padding: clamp(0.75rem, 1.8vw, 1.1rem);
}
.anatomy-photo::after {
  display: none;
}
.anatomy-photo img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
  box-shadow:
    0 18px 34px -24px rgba(31,27,22,0.45),
    0 1px 0 rgba(255,255,255,0.35);
}
.anatomy-photo figcaption {
  position: relative;
  z-index: 1;
  margin: var(--space-3) var(--space-1) 0;
  font-size: var(--text-xs);
  color: var(--ink-soft);
  font-style: italic;
}

.anatomy-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.anatomy-list li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: var(--space-4);
  align-items: baseline;
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--rule);
}
.anatomy-list li:first-child { padding-top: 0; }
.anatomy-list li:last-child { border-bottom: 0; }
.anatomy-num {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--postbox);
  font-size: 1.4rem;
  font-weight: 500;
}
.anatomy-list h4 {
  font-size: var(--text-lg);
  margin: 0 0 var(--space-2);
}
.anatomy-list p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ---------- Offline ---------- */
.offline {
  max-width: none;
  background: var(--ink);
  color: var(--paper);
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 4vw, 3rem);
  position: relative;
  overflow: hidden;
}
.offline::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='600' height='600'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2' seed='5'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.05 0'/></filter><rect width='600' height='600' filter='url(%23n)'/></svg>");
  pointer-events: none;
  opacity: 0.55;
}
.offline-inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
@media (max-width: 880px) {
  .offline-inner { grid-template-columns: 1fr; }
}
.offline h2 {
  color: var(--paper-warm);
  font-size: var(--text-2xl);
}
.offline h2 em {
  font-style: italic;
  color: var(--ochre);
  font-weight: 500;
}
.offline .lede {
  font-size: var(--text-lg);
  color: rgba(244, 236, 220, 0.85);
  line-height: 1.55;
}
.offline p { color: rgba(244, 236, 220, 0.78); }
.offline em { color: var(--ochre); font-weight: 500; }

.offline-aside blockquote {
  margin: 0 0 var(--space-8);
  padding: var(--space-6);
  background: rgba(244, 236, 220, 0.05);
  border-left: 3px solid var(--postbox);
  border-radius: var(--radius-sm);
}
.offline-aside blockquote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.3;
  color: var(--paper-warm);
  margin: 0 0 var(--space-3);
}
.offline-aside blockquote footer {
  font-size: var(--text-sm);
  color: var(--ochre);
}

.offline-pillars {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-3);
}
.offline-pillars li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: var(--space-3);
  font-size: var(--text-base);
  color: var(--paper);
  padding: var(--space-2) 0;
  border-bottom: 1px solid rgba(244, 236, 220, 0.12);
}
.offline-pillars li span {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  color: var(--postbox);
  font-size: 1.1rem;
}
.offline-pillars li:nth-child(n+4) span { color: var(--sage); }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
  align-items: stretch;
}
@media (max-width: 980px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

.plan {
  position: relative;
  background: var(--paper-warm);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: var(--shadow-paper);
}
.plan-stamp {
  position: absolute;
  top: -22px;
  right: 28px;
  width: 80px;
  height: 80px;
  transform: rotate(8deg);
}
.plan-stamp svg { width: 100%; height: 100%; }

.plan-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 var(--space-3);
}
.plan-name {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-5);
}
.plan-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-2);
}
.plan-currency { font-size: 0.45em; vertical-align: top; margin-right: 0.1em; color: var(--ink-soft); }
.plan-period { font-size: 0.32em; font-family: var(--font-body); font-weight: 400; color: var(--ink-soft); }
.plan-foot {
  font-size: var(--text-sm);
  color: var(--ink-soft);
  margin-bottom: var(--space-6);
  min-height: 3.4em;
}

.plan-includes {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-8);
  display: grid;
  gap: var(--space-3);
}
.plan-includes li {
  position: relative;
  padding-left: 1.75rem;
  font-size: var(--text-base);
  color: var(--ink);
  line-height: 1.45;
}
.plan-includes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--postbox);
}

.plan-side {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: transparent;
  border: 1.5px dashed var(--ink);
  border-radius: var(--radius);
  align-self: stretch;
  display: flex;
  flex-direction: column;
}
.upsell-title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}
.upsell-lede {
  color: var(--ink-soft);
  font-size: var(--text-sm);
  margin-bottom: var(--space-6);
}
.upsell-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-6);
  display: grid;
  gap: var(--space-3);
}
.upsell-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px dotted var(--rule);
  font-size: var(--text-sm);
}
.upsell-name { color: var(--ink); }
.upsell-price {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--postbox);
  white-space: nowrap;
}
.upsell-note {
  margin-top: auto;
  font-size: var(--text-xs);
  color: var(--ink-faint);
  font-style: italic;
}

/* ---------- FAQ ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3) var(--space-12);
  max-width: 1080px;
  margin: 0 auto;
}
@media (max-width: 780px) {
  .faq-grid { grid-template-columns: 1fr; }
}
.faq-item {
  border-bottom: 1px solid var(--rule);
  padding: var(--space-6) 0;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--ink);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--postbox);
  transition: transform 0.2s ease;
  flex: none;
  line-height: 1;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  margin-top: var(--space-3);
  color: var(--ink-soft);
  font-size: var(--text-base);
  line-height: 1.6;
  max-width: 40rem;
}

/* ---------- Waitlist ---------- */
.waitlist {
  max-width: 920px;
  padding-top: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(4rem, 8vw, 8rem);
}
.waitlist-card {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 4rem);
  overflow: hidden;
  box-shadow: 0 30px 80px -40px rgba(31,27,22,0.6);
}
.waitlist-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='400' height='400'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='9'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.08 0'/></filter><rect width='400' height='400' filter='url(%23g)'/></svg>");
}
.waitlist-copy { position: relative; max-width: 38rem; margin-bottom: var(--space-8); }
.waitlist-copy h2 {
  color: var(--paper-warm);
  font-size: var(--text-2xl);
}
.waitlist-copy .lede {
  color: rgba(244, 236, 220, 0.82);
  font-size: var(--text-lg);
  line-height: 1.55;
}

.waitlist-form { position: relative; display: grid; gap: var(--space-4); }
.waitlist-form[hidden] { display: none; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.field { display: grid; gap: 0.4rem; font-size: var(--text-sm); color: var(--paper); }
.field > span {
  font-weight: 500;
  letter-spacing: 0.02em;
}
.field em { color: var(--ochre); font-style: italic; }

.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  background: rgba(244, 236, 220, 0.06);
  color: var(--paper);
  border: 1.5px solid rgba(244, 236, 220, 0.25);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  width: 100%;
  transition: border-color 0.18s ease, background 0.18s ease;
  appearance: none;
  -webkit-appearance: none;
}
.field textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: rgba(244, 236, 220, 0.45); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ochre);
  background: rgba(244, 236, 220, 0.1);
}
.field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23F4ECDC' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.field-narrow { max-width: 100%; }
.field-flex { width: 100%; }
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: var(--text-sm);
  color: rgba(244, 236, 220, 0.85);
  line-height: 1.45;
  cursor: pointer;
  padding: 0.25rem 0;
}
.check input { margin-top: 0.25rem; accent-color: var(--postbox); }

.waitlist-form .btn-primary {
  margin-top: var(--space-2);
  padding: 1rem 1.4rem;
  font-size: 1rem;
}

.form-foot {
  font-size: var(--text-xs);
  color: rgba(244, 236, 220, 0.6);
  margin: 0;
  text-align: center;
  letter-spacing: 0.01em;
}
.form-error {
  font-size: var(--text-sm);
  color: #ffd8d2;
  margin: 0;
  text-align: center;
}

/* Success state */
.waitlist-success {
  position: relative;
  text-align: center;
  padding: var(--space-8) 0 var(--space-4);
  max-width: 36rem;
  margin: 0 auto;
  animation: fadeUp 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.waitlist-success h3 {
  color: var(--paper-warm);
  font-size: clamp(1.75rem, 1.2rem + 1.5vw, 2.4rem);
  margin-bottom: var(--space-3);
}
.waitlist-success p {
  color: rgba(244, 236, 220, 0.85);
  font-size: var(--text-lg);
  line-height: 1.5;
}
.waitlist-success strong { color: var(--ochre); font-weight: 600; }
.waitlist-success .success-sub {
  font-size: var(--text-sm);
  color: rgba(244, 236, 220, 0.65);
  margin-top: var(--space-6);
  font-style: italic;
}
.success-stamp {
  width: 130px;
  height: 130px;
  margin: 0 auto var(--space-6);
  transform: rotate(-7deg);
  animation: stampIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}
@keyframes stampIn {
  0% { transform: scale(0.4) rotate(8deg); opacity: 0; }
  60% { transform: scale(1.05) rotate(-9deg); opacity: 1; }
  100% { transform: scale(1) rotate(-7deg); opacity: 1; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: clamp(2rem, 4vw, 3rem) clamp(1rem, 4vw, 3rem);
  background: var(--paper-warm);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-6);
  align-items: center;
}
@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.footer-tag {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-sm);
  color: var(--ink-soft);
  margin: 0;
  max-width: 21rem;
  line-height: 1.4;
}
.footer-tag strong {
  color: var(--postbox);
  font-weight: 500;
}
.footer-nav {
  display: flex;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  justify-content: center;
  font-size: var(--text-sm);
}
.footer-nav a { color: var(--ink-soft); }
.footer-nav a:hover { color: var(--postbox); }
.footer-meta {
  font-size: var(--text-xs);
  color: var(--ink-faint);
  margin: 0;
  text-align: right;
  letter-spacing: 0.02em;
}
.footer-meta a {
  color: var(--postbox);
  text-decoration: none;
}
.footer-meta a:hover {
  text-decoration: underline;
}
@media (max-width: 720px) {
  .footer-meta { text-align: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
