/* ============================================================
   Planific.ar — style.css
   Components
   ============================================================ */

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: rgba(255,255,255,.82);
  border-bottom: 1px solid rgba(11,47,42,.07);
}
.nav__inner {
  width: min(var(--container), 100% - 32px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.nav__brand { color: var(--teal-900); display: inline-flex; }
.logo { height: 32px; width: auto; }
.logo--light { color: #fff; }
.nav__links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav__links a {
  font-size: .92rem;
  color: var(--ink-2);
  font-weight: 500;
  position: relative;
}
.nav__links a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: var(--accent-coral);
  transform: scaleX(0); transform-origin: left;
  transition: transform .2s ease;
}
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta {
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 600;
  transition: background .15s ease;
}
.nav__cta:hover { background: var(--teal-900); }

/* Hamburger button — hidden on desktop */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  padding: 6px;
  border-radius: var(--r-sm);
  background: none;
  border: none;
  cursor: pointer;
}
.nav__burger span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav__cta { display: none; }
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__links.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 24px 20px;
    gap: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .nav__links.is-open a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
    color: var(--ink);
  }
  .nav__links.is-open a:last-child { border-bottom: none; }
}

/* Fix: simulador rápido y form-grid en mobile */
@media (max-width: 760px) {
  #simulador-rapido .container { grid-template-columns: 1fr !important; gap: 32px !important; }
  .form-grid { grid-template-columns: 1fr !important; }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #FBF7EE 0%, #fff 75%);
  padding: clamp(48px, 6vw, 96px) 0 clamp(56px, 8vw, 120px);
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__glow {
  position: absolute;
  width: 540px; height: 540px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
}
.hero__glow--a {
  background: radial-gradient(circle, var(--accent-coral) 0%, transparent 70%);
  top: -200px; right: -120px;
}
.hero__glow--b {
  background: radial-gradient(circle, var(--teal-500) 0%, transparent 70%);
  bottom: -200px; left: -120px;
  opacity: .28;
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(11,47,42,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,47,42,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 980px) { .hero__inner { grid-template-columns: 1fr; } }

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-hero);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-top: 18px;
  color: var(--teal-900);
}
.hero__lead {
  margin-top: 20px;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--ink-2);
  max-width: 56ch;
}
.hero__bullets {
  margin-top: 24px;
  display: grid;
  gap: 8px;
  color: var(--ink-2);
}
.hero__bullets li { display: flex; gap: 10px; align-items: flex-start; }
.check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--teal-700);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  margin-top: 2px;
}
.hero__ctas {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero__trust {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.trust-pill {
  display: inline-flex; flex-direction: column;
  padding: 10px 16px;
  border-radius: 14px;
  background: rgba(11,47,42,.04);
  border: 1px solid rgba(11,47,42,.07);
}
.trust-pill strong { font-family: var(--font-display); color: var(--teal-900); font-size: 1.1rem; }
.trust-pill span { font-size: .78rem; color: var(--muted); }

/* Hero simulator card */
.card {
  background: #fff;
  border-radius: var(--r-xl);
  padding: clamp(20px, 2.5vw, 32px);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(11,47,42,.06);
}
.card--sim { position: relative; }
.card--sim::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(224,78,57,.35), rgba(20,82,74,.20));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  padding: 1.5px;
  pointer-events: none;
}
.card__head { margin-bottom: 18px; }
.card__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: -.01em;
  color: var(--teal-900);
}
.card__sub { color: var(--muted); font-size: .92rem; margin-top: 4px; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span {
  font-size: .82rem;
  font-weight: 500;
  color: var(--ink-2);
}
.field em {
  color: var(--muted);
  font-style: normal;
  font-weight: 400;
  font-size: .76rem;
  margin-left: 4px;
}
.field--full { grid-column: 1 / -1; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-coral);
  box-shadow: 0 0 0 4px rgba(224,78,57,.12);
}
.section--dark .field > span { color: rgba(255,255,255,.85); }
.section--dark .field input,
.section--dark .field select,
.section--dark .field textarea {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.18);
  color: #fff;
}
.section--dark .field input::placeholder { color: rgba(255,255,255,.45); }

/* Fix: inputs inside white card within dark section must keep light styles */
.section--dark .card .field > span { color: var(--ink-2); }
.section--dark .card .field input,
.section--dark .card .field select,
.section--dark .card .field textarea {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}
.section--dark .card .field input::placeholder { color: var(--muted); }

/* Fix: editorial h3 titles — better contrast on dark background */
.editorial-content h3 { color: var(--accent-coral) !important; }

/* Fix: eyebrow en secciones oscuras */
.section--dark .eyebrow { color: var(--teal-300); }

.slider-wrap {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
}
.slider-wrap input[type=range] {
  flex: 1;
  accent-color: var(--accent-coral);
}
.slider-wrap output {
  min-width: 48px;
  text-align: right;
  font-weight: 700;
  color: var(--teal-900);
  font-variant-numeric: tabular-nums;
}

.sim-result {
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, #0B2F2A 0%, #14524A 100%);
  color: #fff;
}
.sim-result__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sim-result__label { font-size: .85rem; color: rgba(255,255,255,.75); }
.sim-result__value {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 600;
  color: var(--gold-300);
  letter-spacing: -.02em;
}
.sim-result__meta { font-size: .82rem; color: rgba(255,255,255,.65); margin-top: 6px; }

/* ===== STRIP ===== */
.strip {
  background: var(--teal-900);
  color: #fff;
}
.strip__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 28px 0;
}
.strip__item {
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
}
.strip__num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold-300);
}
.strip__label { font-size: .85rem; color: rgba(255,255,255,.7); }
@media (max-width: 720px) { .strip__inner { grid-template-columns: repeat(2, 1fr); } }

/* ===== SECTIONS ===== */
.section { padding: var(--pad-section) 0; }
.section--dark { background: var(--teal-900); color: #fff; }
.section--dark .h2, .section--dark .section__lead { color: #fff; }
.section--cream { background: var(--cream-50); }
.section--cta { background: linear-gradient(135deg, #FBF7EE 0%, #F4ECDA 100%); padding: clamp(48px, 6vw, 80px) 0; }
.section--light { background: #fff; }
.section__head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section__lead {
  margin-top: 16px;
  font-size: 1.08rem;
  color: var(--ink-2);
}
.section--dark .section__lead { color: rgba(255,255,255,.75); }
.section__foot {
  margin-top: 36px;
  text-align: center;
  color: rgba(255,255,255,.7);
  font-size: .92rem;
  max-width: 720px;
  margin-inline: auto;
}

/* ===== POR QUE - cards ===== */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 980px) { .cards-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards-3 { grid-template-columns: 1fr; } }

.stat-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--r-lg);
  padding: 22px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.stat-card:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,.07);
  border-color: rgba(212,162,76,.5);
}
.stat-card__big {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--gold-300);
  margin-bottom: 10px;
  letter-spacing: -.01em;
  font-weight: 600;
}
.stat-card__text { color: rgba(255,255,255,.82); font-size: .94rem; }
.stat-card__src {
  display: inline-block;
  margin-top: 12px;
  font-size: .78rem;
  color: rgba(255,255,255,.55);
  border-bottom: 1px dashed rgba(255,255,255,.3);
  padding-bottom: 1px;
}
.stat-card__src:hover { color: var(--gold-300); border-color: var(--gold-300); }

/* ===== TABS / SIMULATORS ===== */
.tabs {
  display: inline-flex;
  padding: 6px;
  background: var(--cream-100);
  border-radius: 999px;
  margin: 0 auto 32px;
  display: flex;
  justify-content: center;
  width: fit-content;
  gap: 4px;
}
.tab {
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .92rem;
  color: var(--ink-2);
  transition: background .15s, color .15s;
}
.tab--active { background: var(--teal-900); color: #fff; }
.tab-panel { display: none; }
.tab-panel--active { display: block; }

.sim-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 28px;
}
@media (max-width: 880px) { .sim-grid { grid-template-columns: 1fr; } }

.sim-form {
  background: var(--cream-50);
  border-radius: var(--r-xl);
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  border: 1px solid var(--line);
}
.sim-form .field--full { grid-column: 1 / -1; }
.sim-form .field { grid-column: span 1; }
.sim-form > label.field:has(.slider-wrap) { grid-column: 1 / -1; }

.sim-output {
  background: #fff;
  border-radius: var(--r-xl);
  padding: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sim-output__title { font-weight: 600; color: var(--teal-900); }

.big-result {
  background: linear-gradient(135deg, var(--teal-900) 0%, var(--teal-700) 100%);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 24px;
  text-align: center;
}
.big-result__label {
  display: block;
  font-size: .85rem;
  color: rgba(255,255,255,.7);
  text-transform: uppercase;
  letter-spacing: .12em;
}
.big-result__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--gold-300);
  letter-spacing: -.02em;
  margin: 8px 0 4px;
  font-weight: 600;
}
.big-result__sub { font-size: .9rem; color: rgba(255,255,255,.7); }

.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.kpi {
  padding: 14px;
  background: var(--cream-50);
  border-radius: var(--r-md);
  text-align: center;
  border: 1px solid var(--line);
}
.kpi span { display: block; font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.kpi strong {
  display: block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--teal-900);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 520px) { .kpi-row { grid-template-columns: 1fr; } }

.progress {
  height: 8px;
  background: var(--cream-100);
  border-radius: 999px;
  overflow: hidden;
}
.progress__bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-500), var(--accent-coral));
  transition: width .4s ease;
  border-radius: 999px;
}

.proj-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-variant-numeric: tabular-nums;
  font-size: .94rem;
}
.proj-table th, .proj-table td {
  padding: 12px 10px;
  text-align: right;
  border-bottom: 1px solid var(--line);
}
.proj-table th:first-child, .proj-table td:first-child { text-align: left; font-weight: 600; color: var(--teal-900); }
.proj-table thead th {
  background: var(--cream-50);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  border-bottom: 2px solid var(--line);
}
.proj-table tbody tr:hover { background: rgba(212,162,76,.06); }

.bars {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  height: 140px;
  padding: 14px 4px 0;
  border-top: 1px solid var(--line);
}
.bars__col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.bars__bar {
  width: 100%;
  background: linear-gradient(180deg, var(--gold-500), var(--accent-coral));
  border-radius: 8px 8px 0 0;
  transition: height .4s ease;
}
.bars__label {
  font-size: .78rem;
  color: var(--muted);
}
.bars__val {
  font-size: .78rem;
  font-weight: 700;
  color: var(--teal-900);
  font-variant-numeric: tabular-nums;
}

.disclaimer {
  margin-top: 28px;
  padding: 14px 18px;
  background: var(--cream-50);
  border-left: 4px solid var(--gold-500);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: .85rem;
  color: var(--ink-2);
}

/* ===== DIAGNOSTICO ===== */
.diag {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--r-xl);
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.diag__progress {
  height: 6px;
  background: var(--cream-100);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 28px;
}
.diag__progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-500), var(--accent-coral));
  transition: width .35s ease;
}
.diag__steps { min-height: 220px; }
.diag__step h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--teal-900);
  margin-bottom: 14px;
  letter-spacing: -.01em;
}
.diag__options { display: grid; gap: 10px; }
.diag__opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.diag__opt:hover { border-color: var(--accent-coral); background: rgba(224,78,57,.04); }
.diag__opt input { appearance: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); position: relative; flex: 0 0 18px; }
.diag__opt input:checked { border-color: var(--accent-coral); }
.diag__opt input:checked::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--accent-coral); }
.diag__opt--selected { border-color: var(--accent-coral); background: rgba(224,78,57,.06); }
.diag__opt span { font-weight: 500; }

.diag__input input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  font-size: 1rem;
}
.diag__input input:focus { outline: none; border-color: var(--accent-coral); box-shadow: 0 0 0 4px rgba(224,78,57,.12); }

.diag__nav {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.diag__count {
  font-size: .85rem;
  color: var(--muted);
  font-weight: 500;
}

.diag__result h3 { color: var(--teal-900); margin-bottom: 8px; }
.diag__result-lead { color: var(--ink-2); margin-bottom: 18px; }
.diag__recos {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}
.diag__recos li {
  padding: 14px 18px;
  border-radius: var(--r-md);
  background: var(--cream-50);
  border: 1px solid var(--line);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.diag__recos li strong {
  display: block;
  font-family: var(--font-display);
  color: var(--teal-900);
  margin-bottom: 2px;
}
.diag__recos li span { font-size: .9rem; color: var(--ink-2); }
.diag__recos li .reco-icon { font-size: 1.4rem; }
.diag__result .btn { margin-right: 10px; margin-top: 6px; }

/* ===== SOLUTIONS ===== */
.solutions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 980px) { .solutions { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .solutions { grid-template-columns: 1fr; } }

.sol {
  position: relative;
  background: #fff;
  padding: 22px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.sol:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(224,78,57,.4);
}
.sol__icon { font-size: 1.8rem; margin-bottom: 12px; }
.sol h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--teal-900);
  margin-bottom: 6px;
}
.sol p { color: var(--ink-2); font-size: .92rem; }
.sol--featured {
  background: linear-gradient(160deg, #fff 0%, var(--cream-50) 100%);
  border-color: var(--accent-coral);
}
.badge {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--accent-coral);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.sol__link {
  display: inline-flex;
  margin-top: 12px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--accent-coral);
  border-bottom: 1px dashed var(--accent-coral);
  padding-bottom: 1px;
}
.sol__link:hover { color: var(--accent-coral-2); }

/* ===== EDITORIAL ===== */
.editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: flex-start;
  max-width: 960px;
  margin: 0 auto;
}
@media (max-width: 880px) {
  .editorial-grid { grid-template-columns: 1fr; }
}
.editorial-pic {
  position: sticky;
  top: 100px;
}
@media (max-width: 880px) {
  .editorial-pic { position: static !important; }
  .editorial-pic img { max-height: 340px; object-fit: cover; object-position: center top; }
}
.editorial-pic img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: var(--shadow-md);
  margin-bottom: 12px;
}
.editorial-name {
  display: block;
  text-align: center;
  color: rgba(255,255,255,.75);
  font-size: .88rem;
  line-height: 1.4;
}
.editorial-name strong { color: #fff; font-family: var(--font-display); font-size: 1rem; }
.editorial-content p {
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: 18px;
  font-size: 1.05rem;
}
.section--dark .editorial-content p {
  color: rgba(255,255,255,.85);
}
.editorial-link {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.editorial-link--dark {
  border-top-color: rgba(255,255,255,.15);
}
.editorial-link p { font-size: .95rem; color: var(--muted); margin-bottom: 8px; }
.editorial-link--dark p { color: rgba(255,255,255,.65); }
.text-link {
  font-size: .95rem;
  font-weight: 600;
  color: var(--teal-700);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.text-link:hover { border-color: var(--teal-700); }
.text-link--dark { color: var(--accent-coral); }
.text-link--dark:hover { border-color: var(--accent-coral); }

/* ===== QUOTE / CTA ===== */
.quote { text-align: center; max-width: 760px; margin: 0 auto; }
.quote__text {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  line-height: 1.3;
  color: var(--teal-900);
  letter-spacing: -.015em;
  font-style: italic;
}
.quote__attr { margin-top: 16px; color: var(--muted); font-size: .9rem; }

/* ===== LEAD FORM ===== */
.lead { max-width: 920px; margin: 0 auto; }
.lead__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 600px;
  margin: 0 auto;
}
.lead__grid .field--full { grid-column: 1 / -1; }

.lead__legal { margin-top: 18px; }
.checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: rgba(255,255,255,.85);
  font-size: .88rem;
  cursor: pointer;
}
.checkbox input { margin-top: 3px; accent-color: var(--accent-coral); }

.lead__cta {
  margin-top: 24px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.lead__hint { color: rgba(255,255,255,.7); font-size: .88rem; }
.lead__hint.ok { color: var(--gold-300); }
.lead__hint.err { color: #FFB4A8; }

/* ===== FOOTER ===== */
.footer {
  background: #07211D;
  color: #fff;
  padding: 56px 0 24px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 36px;
}
@media (max-width: 760px) { .footer__inner { grid-template-columns: 1fr; } }
.footer__brand .logo { margin-bottom: 14px; }
.footer__tag { color: rgba(255,255,255,.7); max-width: 36ch; }
.footer__tag a { color: var(--gold-300); border-bottom: 1px dashed currentColor; }
.footer__cols { display: contents; }
.footer h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--gold-300);
}
.footer ul li { margin-bottom: 8px; }
.footer ul a {
  color: rgba(255,255,255,.75);
  font-size: .9rem;
}
.footer ul a:hover { color: #fff; }
.footer__legal {
  grid-column: 1 / -1;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.55);
  font-size: .78rem;
  display: grid;
  gap: 8px;
}

/* ===== STICKY MOBILE CTA ===== */
.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 40;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0));
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.95) 35%);
  display: none;
}
@media (max-width: 720px) { .sticky-cta { display: block; }
  body { padding-bottom: 76px; }
}

/* ===== MODAL ===== */
.modal {
  position: fixed; inset: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(7,33,29,.6);
  backdrop-filter: blur(4px);
}
.modal__card {
  position: relative;
  background: #fff;
  border-radius: var(--r-xl);
  padding: 28px;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}
.modal__title { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 10px; color: var(--teal-900); }
.modal__body { color: var(--ink-2); margin-bottom: 18px; }

/* ===== REVEAL on scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal--in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
