/* ────────── design tokens ────────── */
:root {
  --bg: #fbf6ee;
  --bg-warm: #f5ecdb;
  --surface: #ffffff;
  --surface-ink: #1a1613;
  --surface-ink-2: #241e19;
  --border: rgba(26, 22, 19, 0.10);
  --border-strong: rgba(26, 22, 19, 0.18);
  --text: #1a1613;
  --text-muted: #5c5248;
  --text-subtle: #8a7f72;
  --ink-on-dark: #f6ecd9;
  --ink-on-dark-muted: #c9bba3;

  --primary: #b8612a;      /* burnished copper */
  --primary-deep: #8c4419;
  --primary-hover: #a1521f;
  --primary-fg: #fff8ee;
  --accent: #d9a441;       /* brass */
  --success: #2f7a4f;
  --danger: #b8341f;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(26, 22, 19, 0.05);
  --shadow: 0 1px 2px rgba(26,22,19,0.04), 0 8px 24px rgba(26,22,19,0.08);
  --shadow-lg: 0 20px 60px rgba(26, 22, 19, 0.18);
  --ring: 0 0 0 4px color-mix(in srgb, var(--primary) 22%, transparent);

  --ease: cubic-bezier(.32,.72,0,1);

  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Fraunces', 'Inter', ui-serif, Georgia, serif;

  --maxw: 1160px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font: 16px/1.55 var(--font-sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.005em;
}

/* subtle paper texture on bg via layered gradients */
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(1200px 600px at 80% -200px, rgba(217,164,65,0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(184,97,42,0.10), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

/* ────────── nav ────────── */
.nav {
  position: relative;
  z-index: 10;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { width: 34px; height: 34px; border-radius: 10px; box-shadow: var(--shadow-sm); }
.brand__name { font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.brand__name em { font-style: italic; color: var(--primary); font-weight: 500; }
.nav__links { display: flex; align-items: center; gap: 28px; font-size: 14.5px; color: var(--text-muted); font-weight: 500; }
.nav__links a { transition: color 160ms var(--ease); }
.nav__links a:hover { color: var(--text); }
.nav__cta {
  background: var(--surface-ink);
  color: var(--ink-on-dark);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  transition: transform 160ms var(--ease), background 160ms var(--ease);
}
.nav__cta:hover { background: var(--primary); color: var(--primary-fg); transform: translateY(-1px); }
@media (max-width: 720px) {
  .nav__links a:not(.nav__cta) { display: none; }
}

/* ────────── hero ────────── */
.hero {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px 28px 80px;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 960px) { .hero__grid { grid-template-columns: 1fr; gap: 40px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--primary-deep);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
  padding: 6px 12px; border-radius: var(--radius-pill);
}
.eyebrow__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent); }
.eyebrow--dark { color: var(--accent); background: rgba(217,164,65,0.12); border-color: rgba(217,164,65,0.28); }

.hero h1 {
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 600;
  line-height: 1.02;
  margin: 20px 0 20px;
  letter-spacing: -0.035em;
}
.hero h1 .accent {
  font-style: italic;
  font-weight: 400;
  color: var(--primary);
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-deep) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lede { font-size: 18px; color: var(--text-muted); max-width: 540px; line-height: 1.6; }
.hero__bullets { margin: 28px 0 24px; display: grid; gap: 12px; }
.hero__bullets li {
  display: flex; align-items: center; gap: 12px;
  font-size: 15.5px; color: var(--text);
}
.hero__bullets svg {
  width: 22px; height: 22px; flex: 0 0 22px;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  border-radius: 50%; padding: 4px;
}
.trust {
  margin-top: 24px;
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 14px; color: var(--text-muted);
}
.trust__stars { display: inline-flex; gap: 2px; color: var(--accent); }
.trust__stars svg { width: 16px; height: 16px; }
.trust strong { color: var(--text); font-weight: 600; }

/* ────────── form card ────────── */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}
.card::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(217,164,65,0.35), rgba(184,97,42,0.0) 40%);
  z-index: -1;
  filter: blur(20px); opacity: .7;
}
.card__ribbon {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: var(--primary-fg);
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 8px 14px; border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--primary) 35%, transparent);
}
.card__ribbon svg { width: 14px; height: 14px; color: var(--accent); }
.card h2 {
  font-size: 28px; margin: 18px 0 6px; letter-spacing: -0.02em;
}
.card__sub { color: var(--text-muted); font-size: 15px; margin-bottom: 22px; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .row { grid-template-columns: 1fr; } }

.field { display: block; margin-bottom: 14px; }
.field > span {
  display: block;
  font-size: 13px; font-weight: 500; color: var(--text-muted);
  margin-bottom: 6px; letter-spacing: -0.005em;
}
.field input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  font: inherit; font-size: 15.5px; color: var(--text);
  background: var(--bg-warm);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease), background 160ms var(--ease);
}
.field input::placeholder { color: var(--text-subtle); }
.field input:hover { border-color: color-mix(in srgb, var(--primary) 40%, var(--border-strong)); }
.field input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: var(--ring);
}
.field input[aria-invalid="true"] { border-color: var(--danger); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px;
  font: inherit; font-weight: 600; font-size: 15.5px; letter-spacing: -0.005em;
  border: 0; border-radius: var(--radius);
  cursor: pointer;
  transition: transform 160ms var(--ease), background 160ms var(--ease), box-shadow 160ms var(--ease), color 160ms var(--ease);
  text-decoration: none;
}
.btn__icon { width: 18px; height: 18px; transition: transform 200ms var(--ease); }
.btn:hover .btn__icon:not(.btn__icon--left) { transform: translateX(3px); }
.btn:hover .btn__icon--left { transform: translateY(-2px); }
.btn--primary {
  width: 100%;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: var(--primary-fg);
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 8px 20px color-mix(in srgb, var(--primary) 35%, transparent);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 12px 28px color-mix(in srgb, var(--primary) 45%, transparent); }
.btn--primary:active { transform: translateY(0); }
.btn--primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
  padding: 0 22px;
}
.btn--ghost:hover { background: var(--surface); border-color: var(--primary); color: var(--primary); }
.btn--lg { height: 58px; font-size: 16.5px; padding: 0 30px; }

.fine {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--text-subtle);
  margin-top: 14px;
}
.fine svg { width: 14px; height: 14px; color: var(--text-subtle); flex: 0 0 14px; }
.error { color: var(--danger); font-size: 13.5px; margin-top: 10px; min-height: 1em; }

/* ────────── stats ────────── */
.stats {
  position: relative; z-index: 1;
  background: var(--surface-ink);
  color: var(--ink-on-dark);
  padding: 56px 28px;
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.stats__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
@media (max-width: 820px) { .stats__inner { grid-template-columns: repeat(2, 1fr); gap: 28px; } }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 500; letter-spacing: -0.025em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.stat__label { color: var(--ink-on-dark-muted); font-size: 14.5px; line-height: 1.5; }

/* ────────── guide section ────────── */
.guide {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin: 0 auto;
  padding: 104px 28px;
}
.guide__grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center;
}
@media (max-width: 900px) { .guide__grid { grid-template-columns: 1fr; gap: 48px; } }
.guide__copy h2 { font-size: clamp(32px, 4vw, 48px); margin: 18px 0 18px; }
.guide__copy p { color: var(--text-muted); font-size: 16.5px; line-height: 1.65; margin-bottom: 14px; }
.guide__copy em { color: var(--text); font-style: italic; }
.guide__copy .btn { margin-top: 16px; }

.guide__visual { position: relative; display: flex; justify-content: center; padding: 40px 0; }
.book {
  width: 280px; height: 380px;
  position: relative;
  transform: rotate(-4deg) perspective(900px) rotateY(-8deg);
  transition: transform 400ms var(--ease);
}
.book:hover { transform: rotate(-2deg) perspective(900px) rotateY(-4deg) translateY(-6px); }
.book__cover {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 30% 0%, rgba(255,255,255,0.1), transparent 60%),
    linear-gradient(160deg, #2a211a 0%, #1a1410 100%);
  border-radius: 4px 12px 12px 4px;
  padding: 32px 28px;
  box-shadow:
    inset 0 0 0 1px rgba(217,164,65,0.2),
    0 30px 60px rgba(26,22,19,0.3),
    0 10px 20px rgba(26,22,19,0.2);
  color: var(--ink-on-dark);
  display: flex; flex-direction: column;
}
.book__spine {
  position: absolute; left: 0; top: 0; bottom: 0; width: 14px;
  background: linear-gradient(90deg, rgba(0,0,0,0.4), rgba(0,0,0,0) 80%);
  border-radius: 4px 0 0 4px;
}
.book__eyebrow { font-size: 10.5px; letter-spacing: 0.2em; color: var(--accent); font-weight: 600; }
.book__title {
  font-family: var(--font-display); font-weight: 500; font-style: italic;
  font-size: 38px; line-height: 1.05; margin-top: 24px;
  color: #fff8ee;
}
.book__rule { width: 50px; height: 2px; background: var(--accent); margin: auto 0 14px; }
.book__foot { font-size: 10.5px; letter-spacing: 0.16em; color: var(--ink-on-dark-muted); }
.book__shadow {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  width: 260px; height: 20px;
  background: radial-gradient(ellipse, rgba(26,22,19,0.35), transparent 70%);
  filter: blur(6px);
}

/* ────────── inside chapters ────────── */
.inside {
  position: relative; z-index: 1;
  background: linear-gradient(180deg, var(--bg-warm) 0%, var(--bg) 100%);
  padding: 104px 28px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-head {
  max-width: 720px; margin: 0 auto 56px; text-align: center;
}
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 14px; }
.section-head p { color: var(--text-muted); font-size: 17px; }

.chapters {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
@media (max-width: 900px) { .chapters { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .chapters { grid-template-columns: 1fr; } }
.chapter {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), border-color 200ms var(--ease);
}
.chapter:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--primary) 25%, var(--border)); }
.chapter__num {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: 32px; color: var(--primary); margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.chapter h3 { font-size: 19px; margin-bottom: 8px; letter-spacing: -0.015em; }
.chapter p { color: var(--text-muted); font-size: 14.5px; line-height: 1.55; }

/* ────────── stories ────────── */
.stories {
  position: relative; z-index: 1;
  background: var(--surface-ink);
  color: var(--ink-on-dark);
  padding: 104px 28px;
}
.stories .section-head h2 { color: var(--ink-on-dark); }
.stories .section-head p { color: var(--ink-on-dark-muted); }
.quotes {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }
.quote {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(217,164,65,0.18);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 0;
  position: relative;
}
.quote::before {
  content: '"';
  position: absolute; top: 6px; left: 18px;
  font-family: var(--font-display); font-size: 72px;
  color: var(--accent); opacity: 0.4; line-height: 1;
}
.quote blockquote {
  margin: 0 0 18px; padding-top: 20px;
  font-size: 16.5px; line-height: 1.55; color: var(--ink-on-dark);
  font-family: var(--font-display); font-weight: 400;
}
.quote figcaption { font-size: 13.5px; color: var(--ink-on-dark-muted); }
.quote figcaption strong { color: var(--ink-on-dark); font-weight: 600; }

/* ────────── cta band ────────── */
.cta {
  position: relative; z-index: 1;
  padding: 104px 28px;
}
.cta__inner {
  max-width: 760px; margin: 0 auto; text-align: center;
  background: linear-gradient(160deg, #2a211a 0%, #1a1410 100%);
  color: var(--ink-on-dark);
  padding: 64px 48px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.cta__inner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(400px 200px at 50% 0%, rgba(217,164,65,0.18), transparent 70%);
  pointer-events: none;
}
.cta__inner h2 { font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 14px; position: relative; }
.cta__inner p { color: var(--ink-on-dark-muted); font-size: 17px; margin-bottom: 28px; position: relative; }
.cta__inner .btn { position: relative; }

/* ────────── footer ────────── */
.foot {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  padding: 36px 28px;
}
.foot__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.foot__brand { display: flex; align-items: center; gap: 12px; }
.foot__tag { font-size: 13px; color: var(--text-muted); }
.foot__meta { font-size: 13.5px; color: var(--text-subtle); display: flex; gap: 10px; align-items: center; }
.foot__meta a:hover { color: var(--text); }

/* ────────── thanks page ────────── */
.page-thanks { background: var(--bg); }
.thanks {
  position: relative; z-index: 1;
  max-width: 780px; margin: 0 auto;
  padding: 60px 28px 100px;
}
.thanks__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  position: relative; overflow: hidden;
}
.thanks__card::before {
  content: '';
  position: absolute; top: -80px; left: 50%; transform: translateX(-50%);
  width: 480px; height: 240px;
  background: radial-gradient(ellipse, color-mix(in srgb, var(--primary) 22%, transparent), transparent 70%);
  pointer-events: none;
}
.thanks__check {
  width: 72px; height: 72px; margin: 0 auto 24px;
  color: var(--success);
  position: relative;
  animation: pop 520ms var(--ease) both;
}
@keyframes pop {
  0% { transform: scale(0.4); opacity: 0; }
  60% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.thanks__card .eyebrow { margin-bottom: 16px; position: relative; }
.thanks__card h1 {
  font-size: clamp(34px, 4.5vw, 52px);
  margin-bottom: 16px; position: relative;
  letter-spacing: -0.03em;
}
.thanks__lede {
  color: var(--text-muted); font-size: 17px; line-height: 1.6;
  max-width: 520px; margin: 0 auto 32px; position: relative;
}
.thanks__lede strong { color: var(--text); font-weight: 600; }
.thanks__card .btn { position: relative; }

.thanks__steps {
  margin: 48px auto 0; max-width: 520px;
  display: grid; gap: 18px; text-align: left;
  position: relative;
}
.tstep {
  display: grid; grid-template-columns: 40px 1fr; gap: 16px;
  padding: 18px; border-radius: var(--radius);
  background: var(--bg-warm);
  border: 1px solid var(--border);
}
.tstep__num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary); color: var(--primary-fg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 17px;
}
.tstep h3 { font-size: 16px; margin-bottom: 4px; letter-spacing: -0.01em; }
.tstep p { color: var(--text-muted); font-size: 14px; line-height: 1.5; }

.thanks__back {
  display: inline-block; margin-top: 36px;
  font-size: 14px; color: var(--text-muted);
  position: relative;
  transition: color 160ms var(--ease);
}
.thanks__back:hover { color: var(--primary); }

@media (max-width: 600px) {
  .thanks__card { padding: 40px 24px; }
  .card { padding: 24px; }
  .cta__inner { padding: 48px 24px; }
}
