:root {
  --bg: #f4efe4;
  --bg-alt: #e7e0d3;
  --card: #fffcf6;
  --ink: #1a1612;
  --muted: #3d362e;
  --dim: #5c5348;
  --iron: #161412;
  --iron-2: #1e1b18;
  --bone: #f6f0e4;
  --line: rgba(26, 22, 18, 0.12);
  --line-gold: rgba(184, 134, 32, 0.35);
  --gold: #e3a845;
  --gold-bright: #f3cc7a;
  --gold-deep: #8f5a0c;
  --gold-ink: #2a1c06;
  --ember: #e35a2a;
  --font: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: "Cinzel", "Times New Roman", serif;
  --max: 1120px;
  --shadow: 0 6px 20px rgba(26, 22, 18, 0.07);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-deep); }
button, .btn { font: inherit; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--gold-ink);
  padding: 0.6rem 1rem;
  z-index: 100;
  font-weight: 700;
}
.skip:focus { left: 1rem; top: 1rem; }

.wrap {
  width: min(var(--max), calc(100% - 2.4rem));
  margin-inline: auto;
}

/* Top bar — stays iron so it matches the hero and remains readable over light sections */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--iron);
  border-bottom: 1px solid rgba(227, 168, 69, 0.22);
}
.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--bone);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.brand img {
  width: 44px;
  height: 44px;
}
.top .btn { padding: 0.55rem 1.15rem; font-size: 1.05rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--gold-ink);
  font-weight: 700;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 1.7rem;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 24px rgba(143, 90, 12, 0.18);
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { background: var(--gold-bright); transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 3px; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  border: 1.5px solid rgba(26, 22, 18, 0.35);
}
.btn-ghost:hover { background: rgba(26, 22, 18, 0.05); }

/* Light warm-stone hero — dark iron badge pops against it */
.hero-band {
  background:
    radial-gradient(ellipse 70% 48% at 50% 16%, rgba(227, 168, 69, 0.20), transparent 62%),
    radial-gradient(ellipse 46% 28% at 50% 22%, rgba(227, 90, 42, 0.08), transparent 58%),
    linear-gradient(180deg, #d9d2c4 0%, #ece6d9 45%, #f4efe4 100%);
  color: var(--ink);
  border-bottom: 1px solid rgba(26, 22, 18, 0.08);
}
.hero-band .kicker { color: var(--gold-deep); }
.hero-band h1 { color: var(--ink); }

.hero {
  padding: 3.2rem 0 4.2rem;
  text-align: center;
}
.hero-logo {
  width: min(400px, 84vw);
  margin: 0 auto 1.6rem;
  filter: drop-shadow(0 16px 36px rgba(26, 22, 18, 0.28)) drop-shadow(0 0 18px rgba(227, 90, 42, 0.12));
}
.kicker {
  font-family: var(--display);
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 700;
  margin-bottom: 0.7rem;
}
h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  text-wrap: balance;
}
.tagline {
  margin-top: 1rem;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 600;
  color: var(--gold-deep);
  letter-spacing: 0.04em;
}
.rule {
  width: 72px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 1.6rem auto;
  border: 0;
}

.purpose {
  max-width: 40rem;
  margin: 0 auto 2rem;
  font-size: clamp(1.2rem, 2.4vw, 1.4rem);
  line-height: 1.55;
  color: var(--ink);
}
.purpose p + p { margin-top: 0.9rem; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}
.hero-note {
  margin-top: 0.9rem;
  font-size: 1rem;
  color: var(--dim);
}

/* Motto — first light section */
.motto {
  padding: 3.5rem 0;
  text-align: center;
}
.motto blockquote {
  max-width: 38rem;
  margin: 0 auto;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.4;
  font-style: italic;
  color: var(--ink);
  text-wrap: balance;
}
.motto .attr {
  margin-top: 0.8rem;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 700;
  font-style: normal;
}

/* Sections */
section { padding: 3.5rem 0; }
.section-head {
  text-align: center;
  margin-bottom: 2.4rem;
}
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.15;
  color: var(--ink);
}
.section-head p {
  margin: 0.7rem auto 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.2rem;
}

/* How it works — parchment, light cards */
.how { background: var(--bg); }
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.5rem 1.4rem 1.6rem;
  box-shadow: var(--shadow);
}
.num {
  display: inline-block;
  font-family: var(--display);
  color: var(--gold-deep);
  letter-spacing: 0.16em;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
}
.step h3 {
  font-size: 1.45rem;
  font-weight: 750;
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.step p { color: var(--muted); font-size: 1.15rem; }
.commit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.9rem;
}
.pill {
  border: 1px solid var(--line-gold);
  background: rgba(227, 168, 69, 0.16);
  color: var(--gold-ink);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-weight: 700;
  font-size: 0.95rem;
}

/* Features */
.features-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.4rem;
  align-items: center;
}
.feature-list {
  display: grid;
  gap: 1rem;
}
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.15rem 1.2rem 1.2rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem 1rem;
  align-items: start;
  box-shadow: var(--shadow);
}
.icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 10px;
  background: linear-gradient(160deg, rgba(227, 168, 69, 0.28), rgba(227, 90, 42, 0.12));
  border: 1px solid var(--line-gold);
  display: grid;
  place-items: center;
  color: var(--gold-deep);
}
.icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 1.28rem; font-weight: 750; line-height: 1.25; color: var(--ink); }
.feature p { grid-column: 2; color: var(--muted); font-size: 1.1rem; line-height: 1.45; margin-top: 0.15rem; }

.phones {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.phone {
  width: min(280px, 82vw);
  background: #0a0908;
  border-radius: 32px;
  padding: 10px;
  border: 2px solid #3a342c;
  box-shadow:
    0 24px 48px rgba(26, 22, 18, 0.22),
    0 0 0 1px rgba(227, 168, 69, 0.25);
}
.phone img { border-radius: 22px; width: 100%; }
.phone figcaption {
  text-align: center;
  font-size: 0.95rem;
  color: var(--dim);
  padding: 0.65rem 0.4rem 0.2rem;
}

/* Footer — medium iron */
footer {
  background: var(--iron);
  border-top: 1px solid rgba(227, 168, 69, 0.22);
  padding: 2.2rem 0 2.6rem;
  text-align: center;
  color: #c8bca9;
  font-size: 1.1rem;
}
footer .mark {
  font-family: var(--display);
  color: var(--bone);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.95rem;
  margin-bottom: 0.55rem;
}
footer a { font-weight: 700; text-decoration: none; color: var(--gold-bright); }
footer a:hover { text-decoration: underline; }
.copyright { margin-top: 0.7rem; color: #9a8f7e; font-size: 1rem; }

@media (min-width: 800px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
  .features-layout { grid-template-columns: 1fr 300px; gap: 3rem; align-items: start; }
  .phone { width: 280px; position: sticky; top: 5.5rem; }
  .hero { padding-top: 4rem; }
  .hero-logo { width: min(480px, 46vw); }
}

@media (min-width: 1080px) {
  .features-layout { grid-template-columns: 1fr 1fr 300px; }
  .feature-list { grid-column: 1 / 3; grid-template-columns: 1fr 1fr; }
  .phones { grid-column: 3; grid-row: 1; }
}

/* Workbook — soft warm-gray / light stone, cover stays as-is */
.workbook {
  background: var(--bg-alt);
  border-top: 1px solid rgba(26, 22, 18, 0.08);
  border-bottom: 1px solid rgba(26, 22, 18, 0.08);
}
.workbook-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
.book {
  margin: 0 auto;
  width: min(360px, 82vw);
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.book picture,
.book img {
  display: block;
  width: 100%;
  height: auto;
}
.workbook-copy h2 {
  font-family: var(--display);
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.15;
  margin: 0.35rem 0 1rem;
  color: var(--ink);
}
.workbook-copy p { color: var(--muted); font-size: 1.2rem; max-width: 36rem; }
.workbook-copy p + p { margin-top: 0.9rem; }
.workbook-copy .kicker { margin-bottom: 0.4rem; }

@media (min-width: 800px) {
  .workbook-layout {
    grid-template-columns: minmax(260px, 360px) 1fr;
    gap: 3.2rem;
    text-align: left;
  }
  .book { margin: 0; width: 360px; }
}
