/* ==========================================================================
   Espleta — brand tokens (do not drift)
   ========================================================================== */
:root {
  --paper: #F4F0E6;
  --ink:   #16233D;
  --amber: #D18A2B;
  --rule:  rgba(22, 35, 61, 0.05);

  --font-wordmark: "Outfit", sans-serif;
  --font-sans: "Work Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --max-w: 62rem;
  --pad-x: 1.25rem;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--paper);
  /* Ledger texture: faint horizontal rules every 60px */
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 59px,
    var(--rule) 59px,
    var(--rule) 60px
  );
}

img, svg { display: block; max-width: 100%; }

/* Focus visibility — quality floor */
:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Layout helpers */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* ==========================================================================
   Typography primitives
   ========================================================================== */
.kicker {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.75;
}

.kicker--amber-tick::before {
  content: "";
  display: inline-block;
  width: 1.5rem;
  height: 2px;
  background: var(--amber);
  vertical-align: 0.25em;
  margin-right: 0.6rem;
}

h1, h2, h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
}

/* Wordmark */
.wordmark {
  font-family: var(--font-wordmark);
  font-weight: 700;
  font-size: 1.375rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.wordmark .dot { color: var(--amber); }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  color: var(--paper);
  background: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 6px;
  padding: 0.9rem 1.5rem;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn:hover { background: #0e1729; border-color: #0e1729; }

.btn--small { padding: 0.55rem 1rem; font-size: 0.875rem; }

.btn--block { display: block; width: 100%; }

/* ==========================================================================
   Header (sticky, slim)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid rgba(22, 35, 61, 0.1);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.7rem;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding-block: 3rem 3.5rem;
}

.hero__kicker { margin-bottom: 1rem; }

.hero h1 {
  font-size: clamp(1.9rem, 6.5vw, 3.1rem);
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
  max-width: 20ch;
}

.hero__sub {
  font-size: 1.0625rem;
  max-width: 46ch;
  opacity: 0.9;
}

/* Signature element: giant € + thick amber rule (the missing price) */
.euro-sign {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-block: 2.25rem;
  user-select: none;
}

.euro-sign__glyph {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(6rem, 24vw, 11rem);
  line-height: 0.85;
  color: var(--ink);
  letter-spacing: -0.03em;
}

.euro-sign__rule {
  flex: 1;
  height: clamp(0.7rem, 2.6vw, 1.15rem);
  background: var(--amber);
  border-radius: 2px;
  margin-top: clamp(0.8rem, 3vw, 1.6rem); /* sits at the price baseline */
}

/* Hero video */
.hero-video {
  width: 100%;
  max-width: 34rem;
  aspect-ratio: 16 / 9;
  border: 2px solid var(--ink);
  border-radius: 10px;
  object-fit: cover;
  background: var(--ink);
  margin-bottom: 2.25rem;
}

/* Form block */
.form-card {
  scroll-margin-top: 5rem; /* keep #form clear of the sticky header on anchor scroll */
  background: #FFFDF7;
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 1.5rem 1.25rem;
  box-shadow: 6px 6px 0 rgba(22, 35, 61, 0.12);
  max-width: 34rem;
}

.form-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
}

#ghl-form {
  min-height: 380px; /* avoid layout shift while GHL iframe loads */
}

.form-card__micro {
  margin-top: 0.9rem;
  font-size: 0.875rem;
  opacity: 0.85;
}

.founders-line {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber);
  margin-top: 1.25rem;
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
  padding-block: 3.5rem;
  border-top: 1px solid rgba(22, 35, 61, 0.1);
}

.section__code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.25rem;
}

.section h2 {
  font-size: clamp(1.5rem, 4.5vw, 2.1rem);
  margin-bottom: 1.25rem;
}

/* MOD. A — problem statement */
.problem-text {
  font-size: clamp(1.15rem, 3.2vw, 1.45rem);
  font-weight: 400;
  line-height: 1.55;
  max-width: 34em;
  font-style: italic;
}

/* MOD. B — steps */
.steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1.75rem;
  counter-reset: step;
}

.step { counter-increment: step; }

.step::before {
  content: "0" counter(step);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--amber);
  display: block;
  margin-bottom: 0.35rem;
}

.step h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }

/* MOD. C — differentiators */
.diffs {
  display: grid;
  gap: 1.25rem;
}

.diff {
  border: 1px solid rgba(22, 35, 61, 0.15);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.6);
  padding: 1.25rem;
}

.diff h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.diff h3::before {
  content: "";
  display: block;
  width: 1.75rem;
  height: 3px;
  background: var(--amber);
  margin-bottom: 0.7rem;
}

/* MOD. D — operating terms (definition list) */
.terms {
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: #FFFDF7;
  padding: 1.5rem 1.25rem;
  max-width: 42rem;
}

.terms dl { margin: 0; }

.terms .row {
  display: grid;
  gap: 0.15rem;
  padding-block: 0.8rem;
  border-bottom: 1px dashed rgba(22, 35, 61, 0.2);
}

.terms .row:last-child { border-bottom: 0; }

.terms dt {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
}

.terms dd { margin: 0; }

/* MOD. E — FAQ accordion */
.faq { max-width: 42rem; }

.faq details {
  border-bottom: 1px solid rgba(22, 35, 61, 0.15);
}

.faq summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--amber);
  flex-shrink: 0;
}

.faq details[open] summary::after { content: "−"; }

.faq .faq__answer {
  padding-bottom: 1.25rem;
  max-width: 60ch;
}

/* Final CTA */
.final-cta {
  text-align: center;
  padding-block: 4rem;
}

.final-cta h2 {
  font-size: clamp(1.5rem, 4.5vw, 2.1rem);
  margin-bottom: 1.5rem;
}

.final-cta .btn { font-size: 1.1rem; padding: 1rem 2rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding-block: 2.5rem;
  font-size: 0.875rem;
}

.site-footer .wordmark { color: var(--paper); }

.site-footer__meta {
  margin-top: 1rem;
  display: grid;
  gap: 0.4rem;
  opacity: 0.85;
}

.site-footer a {
  color: var(--paper);
  text-underline-offset: 3px;
}

/* ==========================================================================
   Cookie consent banner
   ========================================================================== */
.consent-banner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 1rem var(--pad-x);
  font-size: 0.875rem;
  display: none;
}

.consent-banner.is-visible { display: block; }

.consent-banner__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.consent-banner p { flex: 1 1 18rem; }

.consent-banner .btn--accept {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
}

.consent-banner .btn--decline {
  background: transparent;
  border-color: var(--paper);
  color: var(--paper);
}

/* ==========================================================================
   Thank-you page
   ========================================================================== */
.thanks {
  min-height: 70vh;
  display: grid;
  align-content: center;
  padding-block: 4rem;
}

.thanks h1 {
  font-size: clamp(1.9rem, 6.5vw, 2.8rem);
  margin-block: 1.5rem 1rem;
}

.thanks p { max-width: 46ch; }

.thanks .secondary {
  margin-top: 1.25rem;
  font-weight: 600;
}

/* ==========================================================================
   Breakpoints
   ========================================================================== */
@media (min-width: 768px) {
  :root { --pad-x: 2rem; }

  .hero { padding-block: 4.5rem 5rem; }

  .diffs { grid-template-columns: 1fr 1fr; }

  .steps { gap: 2rem; }

  .terms .row {
    grid-template-columns: 16rem 1fr;
    gap: 1rem;
    align-items: baseline;
  }
}

@media (min-width: 1280px) {
  .hero__grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
    align-items: start;
  }

  .euro-sign { margin-block: 3rem; }

  .hero-video { margin-bottom: 0; }
}
