/* =====================================================
   PAGES.CSS — maik lopez ai
   Layout and component styles for all HTML pages.
   Depends on tokens.css being loaded first.
   ===================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--cream);
  font-family: 'Lora', Georgia, serif;
  line-height: 1.7;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: .6;
}

/* --- TYPOGRAPHY --- */
.label {
  font-family: 'Syne', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--amber);
}
h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.15; }
p { color: var(--cream-muted); }
strong { color: var(--cream); font-weight: 500; }
em { color: var(--amber-light); font-style: italic; }
a { color: var(--amber-light); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- LAYOUT --- */
.container { max-width: 780px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }
section { position: relative; z-index: 1; }

/* --- NAV --- */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 64px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12,10,8,.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.logo-img { height: 64px; width: auto; display: block; }
.nav-cta {
  font-family: 'Syne', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--amber);
  border: 1px solid var(--line-amber);
  padding: 8px 18px;
  border-radius: 4px;
  transition: background .2s, color .2s;
  white-space: nowrap;
  text-decoration: none;
}
.nav-cta:hover { background: var(--amber); color: #0C0A08; text-decoration: none; }

/* --- TOPBAR --- */
.topbar {
  background: var(--magenta);
  padding: 10px 20px;
  text-align: center;
  font-family: 'Syne', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: #fff;
}

/* --- BUTTONS --- */
.btn-primary {
  display: inline-block;
  background: var(--amber);
  color: #0C0A08;
  font-family: 'Syne', sans-serif;
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .03em;
  padding: 16px 32px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--amber-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(212,135,10,.35);
  text-decoration: none;
}

/* --- FORM --- */
.email-form {
  display: flex;
  gap: 8px;
  max-width: 540px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.email-input {
  flex: 1;
  min-width: 200px;
  background: rgba(242,232,213,.07);
  border: 1px solid var(--line-amber);
  border-radius: 6px;
  padding: 15px 18px;
  font-family: 'Lora', serif;
  font-size: .95rem;
  color: var(--cream);
  outline: none;
  transition: border-color .2s;
}
.email-input::placeholder { color: rgba(242,232,213,.3); }
.email-input:focus { border-color: var(--amber); }

/* --- GDPR --- */
.gdpr-wrap {
  max-width: 540px;
  margin: 12px auto 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
}
.gdpr-wrap input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 1px solid var(--line-amber);
  border-radius: 3px;
  background: rgba(242,232,213,.07);
  cursor: pointer;
  margin-top: 2px;
  transition: background .2s, border-color .2s;
  position: relative;
}
.gdpr-wrap input[type="checkbox"]:checked { background: var(--amber); border-color: var(--amber); }
.gdpr-wrap input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #0C0A08;
  font-size: .8rem;
  font-weight: 900;
}
.gdpr-label {
  font-family: 'Syne', sans-serif;
  font-size: .69rem;
  letter-spacing: .03em;
  color: rgba(242,232,213,.42);
  line-height: 1.55;
}
.gdpr-label a { color: rgba(212,135,10,.65); }
.btn-note {
  font-family: 'Syne', sans-serif;
  font-size: .7rem;
  color: rgba(242,232,213,.28);
  text-align: center;
  letter-spacing: .05em;
  margin-top: 12px;
}

/* --- HERO --- */
.hero { padding: 80px 0 64px; border-bottom: 1px solid var(--line); text-align: center; }
.hero .label { margin-bottom: 24px; display: block; }
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); font-weight: 900; color: var(--white); max-width: 680px; margin: 0 auto 20px; line-height: 1.1; }
.hero h1 em { display: block; font-style: italic; color: var(--amber-light); font-weight: 400; }
.hero-sub { font-size: 1.1rem; max-width: 540px; margin: 0 auto 28px; line-height: 1.75; color: var(--cream-muted); }

/* --- TICKER --- */
.ticker-wrap { overflow: hidden; border-top: 1px solid var(--line-amber); border-bottom: 1px solid var(--line-amber); padding: 13px 0; background: rgba(212,135,10,.05); }
.ticker { display: flex; white-space: nowrap; animation: ticker 40s linear infinite; font-family: 'Syne', sans-serif; font-size: .75rem; font-weight: 600; color: var(--amber); letter-spacing: .08em; gap: 60px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker span { flex-shrink: 0; }
.ticker .dot { color: var(--magenta); }

/* --- STORY SECTION --- */
.story { padding: 72px 0; }
.story-label { display: flex; align-items: center; gap: 12px; margin-bottom: 36px; }
.story-label::after { content: ''; flex: 1; height: 1px; background: var(--line-amber); }
.story-body { font-size: 1.08rem; line-height: 1.85; max-width: 680px; color: var(--cream-muted); }
.story-body p + p { margin-top: 1.3em; }
.pull-quote { border-left: 3px solid var(--amber); padding: 18px 26px; margin: 36px 0; background: var(--amber-glow); border-radius: 0 6px 6px 0; }
.pull-quote p { font-family: 'Playfair Display', serif; font-size: 1.25rem; font-style: italic; color: var(--cream); line-height: 1.5; }

/* --- CTA BAND --- */
.cta-band { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 56px 20px; text-align: center; position: relative; z-index: 1; }
.cta-band-inner { max-width: 780px; margin: 0 auto; }
.cta-band-headline { font-family: 'Playfair Display', serif; font-size: clamp(1.3rem, 3vw, 1.9rem); color: var(--cream); font-style: italic; max-width: 540px; margin: 0 auto 28px; line-height: 1.4; }

/* --- BENEFITS GRID --- */
.benefits { padding: 72px 0; }
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1px; margin-top: 44px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.benefit-card { padding: 28px; background: var(--bg2); transition: background .25s; }
.benefit-card:hover { background: var(--bg3); }
.benefit-emoji { font-size: 1.7rem; margin-bottom: 12px; }
.benefit-title { font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 700; color: var(--cream); margin-bottom: 6px; }
.benefit-desc { font-size: .88rem; line-height: 1.65; color: var(--cream-muted); }

/* --- TOPICS GRID --- */
.newsletter-preview { padding: 72px 0; border-top: 1px solid var(--line); background: var(--bg); }
.topics-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-top: 36px; }
.topic-chip { display: flex; align-items: flex-start; gap: 10px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg2); font-size: .88rem; color: var(--cream-muted); line-height: 1.5; transition: border-color .2s, background .2s; }
.topic-chip:hover { border-color: var(--line-amber); background: var(--bg3); }
.tc-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.topic-chip strong { color: var(--cream); font-weight: 500; font-size: .88rem; display: block; margin-bottom: 2px; }

/* --- OBJECTIONS --- */
.objections { padding: 72px 0; background: var(--bg3); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.objections h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 14px; color: var(--white); }
.objections-intro { font-size: 1.02rem; margin-bottom: 44px; max-width: 580px; }
.objection-item { margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.objection-item:last-child { border-bottom: none; }
.objection-q { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-style: italic; color: var(--terra-light); margin-bottom: 10px; display: flex; gap: 10px; }
.objection-a { font-size: .98rem; line-height: 1.75; color: var(--cream-muted); padding-left: 24px; }

/* --- STORY CLOSE --- */
.story-close { padding: 88px 0; text-align: center; }
.story-close-body { max-width: 620px; margin: 0 auto; font-size: 1.08rem; line-height: 1.85; color: var(--cream-muted); }
.big-moment { font-family: 'Playfair Display', serif; font-size: clamp(1.4rem, 3vw, 2rem); font-style: italic; color: var(--cream); line-height: 1.35; margin: 36px auto; padding: 28px 32px; border: 1px solid var(--line-amber); background: var(--amber-glow); max-width: 620px; border-radius: 6px; }

/* --- COUNTER ROW --- */
.counter-row { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; padding: 36px 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg2); position: relative; z-index: 1; }
.counter-item { text-align: center; }
.counter-number { font-family: 'Playfair Display', serif; font-size: 2.4rem; font-weight: 900; color: var(--amber-light); display: block; }
.counter-label { font-family: 'Syne', sans-serif; font-size: .67rem; letter-spacing: .15em; text-transform: uppercase; color: rgba(242,232,213,.35); margin-top: 4px; display: block; }

/* --- FINAL CTA --- */
.final-cta { padding: 88px 0; text-align: center; background: var(--bg2); border-top: 1px solid var(--line); }
.final-cta h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); max-width: 580px; margin: 0 auto 20px; color: var(--white); }
.promise-list { list-style: none; text-align: left; max-width: 420px; margin: 28px auto 36px; }
.promise-list li { padding: 9px 0; color: var(--cream-muted); font-size: .93rem; display: flex; gap: 12px; border-bottom: 1px solid var(--line); }
.promise-list .check { color: var(--amber); }

/* --- MARKET SECTION --- */
.market-section { padding: 72px 0; background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-header { margin-bottom: 44px; }
.section-header h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--white); margin-top: 10px; margin-bottom: 14px; }
.section-header .subtitle { font-size: 1.02rem; max-width: 560px; }
.irony-list { list-style: none; margin: 28px 0; }
.irony-list li { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; gap: 14px; align-items: flex-start; font-size: 1rem; color: var(--cream-muted); }
.irony-list .icon { font-size: 1.05rem; margin-top: 2px; flex-shrink: 0; }
.irony-list .strikethrough { text-decoration: line-through; opacity: .5; }
.irony-list .real { color: var(--amber-light); font-style: italic; }
.highlight-box { background: linear-gradient(135deg, rgba(212,135,10,.1), rgba(196,96,59,.05)); border: 1px solid var(--line-amber); padding: 28px 36px; margin: 36px 0; border-radius: 6px; }
.highlight-box p { font-size: 1rem; line-height: 1.75; }

/* --- FOOTER --- */
.site-footer { padding: 40px 20px; text-align: center; border-top: 1px solid var(--line); }
.footer-logo { height: 64px; width: auto; opacity: .55; margin: 0 auto 16px; display: block; }
.footer-links { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.footer-links a { font-family: 'Syne', sans-serif; font-size: .7rem; letter-spacing: .1em; color: rgba(242,232,213,.3); text-transform: uppercase; }
.footer-links a:hover { color: var(--amber); text-decoration: none; }

/* --- FOOTER ELEMENT (HTML pages use <footer> without .site-footer class) --- */
footer { padding: 40px 20px; text-align: center; border-top: 1px solid var(--line); }
footer p { font-family: 'Syne', sans-serif; font-size: .7rem; letter-spacing: .05em; color: rgba(242,232,213,.22); }

/* --- BUTTON STATES --- */
.btn-primary:disabled { opacity: .5; cursor: default; transform: none; box-shadow: none; }
.btn-secondary {
  display: inline-block;
  border: 1px solid var(--line-amber);
  color: var(--amber);
  font-family: 'Syne', sans-serif;
  font-size: .82rem; font-weight: 700; letter-spacing: .06em;
  padding: 12px 24px; border-radius: 6px;
  transition: background .2s; text-decoration: none; cursor: pointer;
  background: transparent;
}
.btn-secondary:hover { background: var(--amber-glow); text-decoration: none; }

/* --- SENDER.NET FORM EMBED CONTAINER --- */
.sender-form-field {
  max-width: 540px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
}

/* --- FORM ERROR --- */
.form-error { font-family: 'Syne', sans-serif; font-size: .72rem; color: var(--terra-light); text-align: center; max-width: 540px; margin: 8px auto 0; min-height: 1em; }

/* --- ANIMATIONS (index page hero) --- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.hero .label { animation: fadeUp .6s .1s ease both; }
.hero h1 { animation: fadeUp .6s .22s ease both; }
.hero-sub { animation: fadeUp .6s .35s ease both; }
.hero .email-form { animation: fadeUp .6s .48s ease both; }

/* --- ALMOST-THERE PAGE --- */
.hero-almost { padding: 72px 0 60px; text-align: center; border-bottom: 1px solid var(--line); }
.envelope-icon { font-size: 3.5rem; margin-bottom: 24px; display: block; animation: float 3s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero-almost h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; color: var(--white); max-width: 580px; margin: 0 auto 20px; line-height: 1.1; }
.hero-almost h1 em { display: block; font-style: italic; color: var(--amber-light); font-weight: 400; }
.hero-almost p { font-size: 1.08rem; max-width: 520px; margin: 0 auto 32px; line-height: 1.75; }
.step-card { background: var(--bg2); border: 1px solid var(--line-amber); border-radius: 8px; padding: 32px 36px; margin: 40px auto; max-width: 560px; text-align: left; }
.step-row { display: flex; align-items: flex-start; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.step-row:last-child { border-bottom: none; }
.step-num { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 900; color: var(--amber); flex-shrink: 0; width: 36px; line-height: 1; padding-top: 2px; }
.step-num.done { color: #4CAF50; font-size: 1.4rem; }
.step-text { font-size: .95rem; line-height: 1.6; }
.step-text strong { color: var(--cream); }
.story-section { padding: 64px 0; border-bottom: 1px solid var(--line); }
.resend-section { padding: 48px 0; text-align: center; color: var(--cream-muted); }
.resend-section p { font-size: .9rem; margin-bottom: 16px; }

/* --- THANK-YOU PAGE --- */
.hero-thanks { padding: 80px 0 64px; text-align: center; border-bottom: 1px solid var(--line); }
.check-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--amber-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; margin: 0 auto 28px;
  box-shadow: 0 0 40px rgba(212,135,10,.3);
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { box-shadow: 0 0 40px rgba(212,135,10,.3); } 50% { box-shadow: 0 0 60px rgba(212,135,10,.5); } }
.hero-thanks h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 900; color: var(--white); max-width: 600px; margin: 0 auto 20px; line-height: 1.1; }
.hero-thanks h1 em { display: block; font-style: italic; color: var(--amber-light); font-weight: 400; margin-top: 4px; }
.hero-thanks .sub { font-size: 1.1rem; max-width: 520px; margin: 0 auto; line-height: 1.75; }
.what-next { padding: 64px 0; border-bottom: 1px solid var(--line); }
.next-card { background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-top: 36px; }
.next-card-header { background: linear-gradient(135deg, rgba(212,135,10,.15), rgba(162,25,91,.08)); border-bottom: 1px solid var(--line-amber); padding: 20px 28px; display: flex; align-items: center; gap: 12px; }
.next-card-header .label { font-size: .68rem; }
.next-item { display: flex; gap: 16px; padding: 20px 28px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.next-item:last-child { border-bottom: none; }
.next-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.next-text { font-size: .95rem; line-height: 1.65; }
.next-text strong { color: var(--cream); }
.email1-preview { padding: 64px 0; border-bottom: 1px solid var(--line); }
.email-envelope { background: var(--bg2); border: 1px solid var(--line-amber); border-radius: 8px; overflow: hidden; margin-top: 36px; }
.email-header { background: var(--magenta); padding: 16px 28px; font-family: 'Syne', sans-serif; font-size: .75rem; font-weight: 700; letter-spacing: .1em; color: #fff; display: flex; align-items: center; gap: 10px; }
.email-meta { padding: 20px 28px; border-bottom: 1px solid var(--line); font-family: 'Syne', sans-serif; font-size: .78rem; color: rgba(242,232,213,.45); }
.email-meta strong { color: var(--amber); }
.email-body { padding: 28px 28px 32px; font-size: 1rem; line-height: 1.8; color: var(--cream-muted); }
.email-body p + p { margin-top: 1.2em; }
.email-body .greeting { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-style: italic; color: var(--cream); margin-bottom: 20px; }
.email-body .sign-off { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .9rem; }
.share-section { padding: 56px 0; text-align: center; }
.share-section h3 { font-size: 1.4rem; margin-bottom: 12px; color: var(--white); }
.share-section p { font-size: .95rem; max-width: 440px; margin: 0 auto 24px; }
.share-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.share-btn { display: inline-block; border: 1px solid var(--line); color: var(--cream-muted); font-family: 'Syne', sans-serif; font-size: .78rem; font-weight: 600; letter-spacing: .06em; padding: 11px 20px; border-radius: 6px; transition: border-color .2s, color .2s; text-decoration: none; }
.share-btn:hover { border-color: var(--amber); color: var(--amber); text-decoration: none; }

/* --- MOBILE --- */
@media (max-width: 640px) {
  .topbar { font-size: .7rem; padding: 8px 14px; }
  .site-nav { padding: 0 14px; height: 56px; }
  .logo-img { height: 34px; }
  .nav-cta { display: none; }

  .hero { padding: 52px 0 44px; }
  .story, .market-section, .benefits, .newsletter-preview,
  .objections, .story-close, .final-cta { padding: 48px 0; }
  .cta-band { padding: 44px 16px; }
  .hero h1 { font-size: clamp(1.9rem, 7vw, 2.4rem); }
  .email-form { flex-direction: column; align-items: stretch; }
  .email-input { width: 100%; min-width: 0; }
  .btn-primary { width: 100%; text-align: center; font-size: .85rem; padding: 15px 20px; }
  .gdpr-wrap { margin-top: 10px; }
  .gdpr-label { font-size: .67rem; }
  .benefits-grid, .topics-grid { grid-template-columns: 1fr; }
  .counter-row { gap: 20px; padding: 24px 16px; }
  .counter-number { font-size: 1.9rem; }
  .pull-quote { padding: 14px 18px; }
  .highlight-box { padding: 20px 22px; }
  .big-moment { padding: 20px 22px; margin: 24px auto; }
  .objection-a { padding-left: 0; }
  .irony-list li { flex-direction: column; gap: 6px; }
  .story-close { padding: 60px 0; }

  .hero-almost { padding: 52px 0 44px; }
  .step-card { padding: 20px; margin: 28px auto; }
  .story-section { padding: 48px 0; }

  .hero-thanks { padding: 56px 0 48px; }
  .what-next, .email1-preview, .share-section { padding: 48px 0; }
  .next-item, .next-card-header, .email-body, .email-meta, .email-header { padding-left: 18px; padding-right: 18px; }
}
@media (max-width: 380px) {
  .hero h1 { font-size: 1.8rem; }
  .section-header h2 { font-size: 1.65rem; }
  .counter-number { font-size: 1.6rem; }
}
