/* ============================================================
   SCAEL.AI — sales funnel
   Direction: glow + grain · charcoal / neon red-pink / gold
   Type: Urbanist (display, body, labels) · Urbanist italic (keywords)
   ============================================================ */

:root {
  --bg:        #0e0c0d;
  --bg-raised: #161315;
  --bg-sunk:   #0a0809;
  --line:      rgba(244, 241, 242, 0.10);
  --line-soft: rgba(244, 241, 242, 0.06);
  --ink:       #f4f1f2;
  --muted:     #a49ba0;
  --neon:      #ff2d55;
  --neon-dim:  #c81f40;
  --gold:      #d6a24e;

  --font-display: "Urbanist", "Helvetica Neue", Arial, sans-serif;
  --font-serif:   "Urbanist", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Urbanist", "Helvetica Neue", Arial, sans-serif;
  --font-mono:    "Urbanist", "Helvetica Neue", Arial, sans-serif;

  --pad-x: clamp(1.25rem, 5vw, 5rem);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
s {
  text-decoration-thickness: 1px;
  text-decoration-color: currentColor;
  text-decoration-skip-ink: none;
}

:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--neon); color: #16060b; padding: 0.6rem 1rem;
  font-family: var(--font-mono); font-size: 0.8rem; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- grain overlay ---------- */
.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none; z-index: 9;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- shared type ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--center { text-align: center; }

.kw {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.005em;
}
.kw--xl { font-size: 1.35em; }

.statement {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 3.6vw, 2.9rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
  max-width: 21em;
  text-wrap: balance;
}
.statement--center { max-width: 18em; margin-inline: auto; text-align: center; }
.statement .kw { font-size: 1.12em; }

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.8vw, 2.2rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.section-title .kw { font-size: 1.12em; }

.section-sub {
  color: var(--muted);
  max-width: 44ch;
  margin-top: 1rem;
}

/* ---------- CTA buttons ---------- */
.cta {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  background: var(--neon);
  color: #16060b;
  border: 1px solid var(--neon);
  padding: 0.9rem 1.8rem;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  box-shadow: 0 0 24px rgba(255, 45, 85, 0.35), 0 0 80px rgba(255, 45, 85, 0.12);
  transition: box-shadow 0.25s ease, transform 0.25s ease, background 0.25s ease;
  will-change: transform;
}
.cta:hover {
  background: #ff4d6f;
  box-shadow: 0 0 36px rgba(255, 45, 85, 0.55), 0 0 120px rgba(255, 45, 85, 0.22);
}
.cta--compact {
  padding: 0.55rem 1.1rem;
  font-size: 0.7rem;
  box-shadow: 0 0 14px rgba(255, 45, 85, 0.3);
}
.cta--big { padding: 1.15rem 2.4rem; font-size: 1rem; }
.cta-note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.9rem;
}

/* ---------- header ---------- */
.site-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem var(--pad-x);
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-head.is-scrolled {
  background: rgba(14, 12, 13, 0.86);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line-soft);
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-decoration: none;
}
.wordmark-dot { color: var(--neon); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
.hero-inner {
  position: relative;
  padding: 9rem var(--pad-x) 5rem;
  max-width: 68rem;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.1rem, 6.4vw, 5rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin-top: 1.4rem;
}
.hero-title .kw {
  font-size: 1.08em;
}
.hero-sub {
  margin-top: 1.6rem;
  max-width: 46ch;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: #d8d2d5;
}
.hero-actions { margin-top: 2.4rem; }

/* ---------- ticker ---------- */
.ticker {
  position: relative;
  border-top: 1px solid var(--line-soft);
  background: rgba(10, 8, 9, 0.72);
  overflow: hidden;
  padding: 0.7rem 0;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 28s linear infinite;
}
.ticker-track span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--neon);
  white-space: nowrap;
  text-shadow: 0 0 12px rgba(255, 45, 85, 0.5);
}
@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* ---------- section scaffold (asymmetric rail layout) ---------- */
.section {
  display: grid;
  grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
  gap: 2rem;
  padding: clamp(4.5rem, 9vw, 8.5rem) var(--pad-x);
  border-bottom: 1px solid var(--line-soft);
}
.section-rail { position: relative; }
.rail-mark {
  position: sticky; top: 6rem;
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--neon);
}
.section-body { min-width: 0; }

/* rhythm variation between sections */
.section--insight { padding-block: clamp(5.5rem, 12vw, 11rem); }
.section--proof   { background: var(--bg-sunk); }
.section--scale   { padding-block: clamp(5.5rem, 12vw, 10rem); }
.section--pricing { background: var(--bg-sunk); }

/* ---------- insight / founder ---------- */
.founder {
  margin-top: 3.5rem;
  max-width: 56ch;
  margin-left: clamp(0rem, 8vw, 7rem); /* asymmetric offset */
  border-left: 1px solid var(--line);
  padding-left: clamp(1.25rem, 3vw, 2.5rem);
  display: grid;
  gap: 1.2rem;
}
.founder-lede {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}
.founder p { color: #cfc8cc; }
.founder-punch {
  font-size: 1.2rem;
  color: var(--ink) !important;
  line-height: 1.55;
}
.founder-next {
  margin-top: 0.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink) !important;
}
.founder-next a {
  color: var(--neon);
  text-decoration: none;
  margin-left: 0.15em;
}

/* ---------- proof grid ---------- */
.proof-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.proof-slot {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--bg-raised);
  border: 1px dashed rgba(244, 241, 242, 0.18);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.slot--dash { aspect-ratio: 16 / 9; }
.proof-slot:hover {
  border-color: rgba(255, 45, 85, 0.5);
  box-shadow: 0 0 30px rgba(255, 45, 85, 0.08) inset;
}
.slot-fill {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.5rem; text-align: center; padding: 1rem;
  background:
    linear-gradient(135deg, transparent 48.5%, rgba(244,241,242,0.05) 48.5%, rgba(244,241,242,0.05) 51.5%, transparent 51.5%);
}
.slot-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
}
.slot-hint {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* ---------- scale / dashboards / logos ---------- */
.dash-row {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.logo-strip { margin-top: 4rem; }
.logo-strip-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.logo-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  gap: 0.75rem;
}
.logo-slot {
  border: 1px dashed rgba(244, 241, 242, 0.16);
  padding: 1.4rem 0.5rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- timeline ---------- */
.timeline {
  margin-top: 3.5rem;
  position: relative;
  display: grid;
  gap: 0;
}
.tl-step {
  display: grid;
  grid-template-columns: minmax(0, 9rem) minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.9rem 0;
  border-top: 1px solid var(--line-soft);
  position: relative;
}
.tl-step:last-child { border-bottom: 1px solid var(--line-soft); }
.tl-day {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--neon);
  text-shadow: 0 0 18px rgba(255, 45, 85, 0.4);
}
.tl-content h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.tl-content p { color: var(--muted); max-width: 52ch; }
.tl-content .kw { font-size: 1.15em; }

/* ---------- pricing matrix ---------- */
.price-matrix-wrap {
  margin-top: 3rem;
  border: 1px solid var(--line);
  background: var(--bg-raised);
  overflow-x: auto;
}
.price-matrix {
  width: 100%;
  border-collapse: collapse;
  min-width: 32rem;
}
.price-matrix thead th:first-child,
.price-matrix tbody td:first-child {
  width: 34%;
}
.price-matrix th,
.price-matrix td {
  text-align: left;
  vertical-align: top;
  padding: 1.2rem 1.15rem;
  border-bottom: 1px solid var(--line-soft);
}
.price-matrix thead th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--bg-sunk);
  border-bottom: 1px solid var(--line);
}
.price-matrix tbody tr:last-child td { border-bottom: 0; }
.price-group th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--bg-sunk);
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 1.15rem;
}
.price-row--hot td {
  background: rgba(255, 45, 85, 0.07);
  box-shadow: inset 3px 0 0 var(--neon);
}
.price-matrix h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}
.hot-tag {
  display: inline-block;
  background: var(--neon);
  color: #16060b;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  margin-bottom: 0.45rem;
}
.price-for {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-top: 0.35rem;
}
.price-includes {
  display: grid;
  gap: 0.35rem;
  color: #cfc8cc;
  font-size: 0.95rem;
}
.price-includes li {
  padding-left: 1.1rem;
  position: relative;
}
.price-includes li::before {
  content: "—";
  position: absolute; left: 0;
  color: var(--neon);
}
.row-detail { color: #cfc8cc; font-size: 0.95rem; max-width: 42ch; }

.price-cta {
  margin-top: 2.5rem;
}

/* ---------- mid CTA ---------- */
.midcta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(6rem, 14vw, 12rem) var(--pad-x);
  text-align: center;
  border-bottom: 1px solid var(--line-soft);
}
.midcta-atmosphere {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60rem 20rem at 50% 55%, rgba(255, 45, 85, 0.12), transparent 70%),
    var(--bg-sunk);
}
.midcta-atmosphere img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.midcta-atmosphere::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(14, 12, 13, 0.45);
}
.midcta-inner .cta { margin-top: 2.4rem; }

/* ---------- FAQ ---------- */
.faq-list {
  margin-top: 2.5rem;
  max-width: 46rem;
  border-top: 1px solid var(--line);
}
.faq { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.3rem 0.25rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.98rem;
  transition: color 0.2s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--neon);
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.faq[open] summary { color: var(--gold); }
.faq[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--gold); }
.faq-a { padding: 0 0.25rem 1.4rem; }
.faq-a p { color: var(--muted); max-width: 60ch; }

/* ---------- closer ---------- */
.closer {
  padding: clamp(6rem, 16vw, 13rem) var(--pad-x);
  text-align: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.closer::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(50rem 24rem at 50% 100%, rgba(255, 45, 85, 0.14), transparent 70%);
}
.closer-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 6vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 1.2rem auto 0;
  max-width: 14em;
  text-wrap: balance;
}
.closer-title .kw { font-size: 1.1em; }
.closer .cta { margin-top: 2.6rem; }

/* ---------- footer ---------- */
.site-foot {
  border-top: 1px solid var(--line-soft);
  padding: 2.5rem var(--pad-x) 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
}
.foot-link { color: var(--muted); }
.foot-link:hover { color: var(--ink); }
.foot-disclaimer { max-width: 52ch; flex-basis: 100%; }

/* ---------- reveal motion ---------- */
.reveal,
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in,
.reveal-stagger.in > * { opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.4s; }

/* no-JS safety: everything visible */
.no-observer .reveal,
.no-observer .reveal-stagger > * { opacity: 1; transform: none; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .reveal, .reveal-stagger > * {
    opacity: 1; transform: none; transition: none;
  }
  .cta { transition: none; }
  * { scroll-behavior: auto !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 64rem) {
  .price-matrix { min-width: 0; }
  .price-matrix thead { display: none; }
  .price-matrix,
  .price-matrix tbody,
  .price-matrix tr,
  .price-matrix th,
  .price-matrix td {
    display: block;
    width: 100%;
  }
  .price-matrix th,
  .price-matrix td,
  .price-matrix thead th:first-child,
  .price-matrix tbody td:first-child {
    padding: 0;
    border: 0;
    width: 100%;
  }
  .price-group th {
    padding: 0.85rem 1.15rem;
    border-bottom: 1px solid var(--line);
  }
  .price-matrix tbody tr:not(.price-group) {
    padding: 1.35rem 1.15rem;
    border-bottom: 1px solid var(--line-soft);
  }
  .price-matrix tbody tr:not(.price-group):last-child { border-bottom: 0; }
  .price-row--hot {
    box-shadow: inset 3px 0 0 var(--neon);
  }
  .price-row--hot td { box-shadow: none; }
  .price-matrix td + td { margin-top: 0.85rem; }
  .price-matrix td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.3rem;
  }
}

@media (max-width: 48rem) {
  .section {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .rail-mark { position: static; }
  .founder { margin-left: 0; }
  .proof-grid,
  .dash-row { grid-template-columns: 1fr; }
  .tl-step { grid-template-columns: minmax(0, 5.5rem) minmax(0, 1fr); gap: 1rem; }
  .hero-inner { padding-top: 7rem; }
}

@media (max-width: 30rem) {
  .cta--big { padding: 1rem 1.6rem; font-size: 0.85rem; }
  .site-head { padding-inline: 1.25rem; }
}
