/* ============================================================
   EOL — eol.ph
   Design language reverse-engineered from hubspot.com
   Colors: #ff4800 (brand), #042729 (deep teal), #f8f5ee (cream),
           #fcfcfa (bg), #1f1f1f (ink)
   ============================================================ */

:root {
  /* Brand */
  --brand: #ff4800;
  --brand-hover: #c93700;
  --brand-pressed: #9f2800;
  --teal: #042729;
  --teal-2: #093436;
  --cream: #f8f5ee;
  --peach: #fcded2;

  /* Surfaces */
  --bg: #fcfcfa;
  --white: #ffffff;
  --ink: #1f1f1f;
  --ink-soft: rgba(0, 0, 0, 0.62);
  --ink-faint: rgba(0, 0, 0, 0.45);
  --line: rgba(0, 0, 0, 0.11);
  --line-strong: #1f1f1f;
  --link-teal: #124548;

  /* Type */
  --font-sans: 'Lexend Deca', 'HubSpot Sans', -apple-system, BlinkMacSystemFont,
    'Segoe UI', Helvetica, Arial, sans-serif;
  --font-serif: 'Newsreader', 'HubSpot Serif', Georgia, 'Times New Roman', serif;

  /* Radii */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;
  --r-full: 50px;

  /* Shadow */
  --shadow-sm: rgba(33, 51, 67, 0.12) 0px 2px 4px 0px;
  --shadow-lg: rgba(33, 51, 67, 0.12) 0px 1px 24px 0px;
  --shadow-card: 0 1px 2px rgba(33, 51, 67, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.05);

  /* Layout */
  --maxw: 1080px;
  --maxw-wide: 1220px;
  --nav-h: 64px;

  --grad-brand: linear-gradient(257deg,
    rgba(251, 221, 208, 0.9) -32%, rgba(255, 165, 129, 0.9) -3%,
    rgba(255, 73, 0, 0.85) 24%, rgba(251, 223, 233, 0.9) 50%,
    rgba(253, 191, 219, 0.9) 79%, rgba(249, 57, 166, 0.85) 104%);
  --grad-peach: linear-gradient(180deg, #fde8de 0%, #fcded2 100%);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); }
h1 { font-size: clamp(2.5rem, 5.5vw, 5rem); line-height: 1.04; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.08; }
h3 { font-size: clamp(1.4rem, 2vw, 1.9rem); }
h4 { font-size: 1.375rem; }
p { color: var(--ink-soft); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.66; }

.serif { font-family: var(--font-serif); font-weight: 400; }
.eyebrow {
  font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--brand);
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.container.wide { max-width: var(--maxw-wide); }
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-sm { padding-block: clamp(48px, 6vw, 72px); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.measure { max-width: 720px; }
.measure-sm { max-width: 560px; }

.bg-cream { background: var(--cream); }
.bg-white { background: var(--white); }
.bg-teal { background: var(--teal); color: var(--cream); }
.bg-teal h1, .bg-teal h2, .bg-teal h3, .bg-teal h4 { color: var(--white); }
.bg-teal p, .bg-teal .lead { color: rgba(248, 245, 238, 0.82); }
.bg-peach { background: var(--grad-peach); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 500; font-size: 1rem; line-height: 1;
  padding: 15px 26px; border-radius: var(--r-md); border: 2px solid transparent;
  min-height: 48px; transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-primary:active { background: var(--brand-pressed); }
.btn-secondary { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn-secondary:hover { background: #fcece6; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: rgba(0,0,0,.05); }
.bg-teal .btn-ghost { color: var(--cream); border-color: rgba(248,245,238,.5); }
.bg-teal .btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-lg { padding: 18px 32px; font-size: 1.0625rem; min-height: 56px; }

/* Text link with arrow */
.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 500; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--brand);
  text-underline-offset: 6px; text-decoration-thickness: 2px;
}
.link-arrow .arr { transition: transform .2s ease; color: var(--brand); }
.link-arrow:hover .arr { transform: translateX(4px); }
.bg-teal .link-arrow { color: var(--cream); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(252, 252, 250, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw-wide); margin-inline: auto; padding: 0 24px;
  height: var(--nav-h); display: flex; align-items: center; gap: 28px;
}
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 1.3rem; letter-spacing: -0.03em; color: var(--ink); }
.logo .mark {
  width: 30px; height: 30px; border-radius: 7px; background: var(--brand);
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .95rem; letter-spacing: 0;
}
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-links a {
  font-size: .9375rem; font-weight: 500; color: var(--ink); padding: 8px 12px;
  border-radius: var(--r-sm); transition: background-color .15s ease;
}
.nav-links a:hover { background: rgba(0,0,0,.05); }
.nav-links a.active { color: var(--brand); }
.nav-links .btn { display: none; }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 0; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: .25s; }

@media (max-width: 940px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 12px 16px 22px; box-shadow: var(--shadow-lg);
  }
  .nav.open .nav-links a { padding: 13px 12px; border-radius: 8px; }
  .nav.open .nav-links .btn { display: inline-flex; margin-top: 12px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-teal { background: var(--teal); color: var(--cream); padding-block: clamp(72px, 11vw, 140px); }
.hero-teal::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 70% at 85% 10%, rgba(255,73,0,.18), transparent 60%);
}
.hero-teal .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 16ch; }
.hero .lead { margin-top: 22px; max-width: 52ch; }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 30px;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: rgba(0,0,0,.08); }
.card .card-icon {
  width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center;
  background: var(--peach); color: var(--brand); margin-bottom: 18px; font-size: 1.25rem;
}
.card h3, .card h4 { letter-spacing: -0.01em; }
.card h4 { margin-bottom: 10px; }
.card p { font-size: .975rem; }
.card .link-arrow { margin-top: 18px; font-size: .9375rem; }

/* feature list with check */
.checklist li {
  position: relative; padding-left: 30px; margin-bottom: 12px;
  color: var(--ink-soft); font-size: .9875rem;
}
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--brand); font-weight: 700;
}

/* numbered process steps */
.steps { counter-reset: step; display: grid; gap: 20px; }
.step {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 28px;
}
.step .num {
  flex: none; width: 44px; height: 44px; border-radius: var(--r-full);
  background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 600;
}
.step h4 { margin-bottom: 6px; }

/* pill / tag row */
.pill-row { display: flex; flex-wrap: wrap; gap: 12px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-full);
  padding: 11px 20px; font-weight: 500; font-size: .95rem;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.bg-teal .pill { background: rgba(255,255,255,.06); border-color: rgba(248,245,238,.18); color: var(--cream); }

/* logo wall */
.logo-wall { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; justify-content: center; }
.logo-wall span {
  font-weight: 600; font-size: 1.15rem; color: var(--ink-faint); letter-spacing: -0.01em;
}

/* stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr; } }
.stat .big { font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 600; color: var(--brand); letter-spacing: -0.03em; }
.stat p { margin-top: 4px; }

/* split / two-column content */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* section header */
.section-head { max-width: 720px; }
.section-head.center { margin-inline: auto; }
.section-head .eyebrow { margin-bottom: 14px; display: block; }
.section-head p { margin-top: 16px; font-size: 1.0625rem; }

/* CTA band */
.cta-band { background: var(--teal); color: var(--cream); border-radius: 0; }
.cta-band h2 { color: #fff; }
.cta-band .lead { color: rgba(248,245,238,.82); margin-top: 16px; }

/* mockup / decorative panel */
.panel {
  background: var(--grad-peach); border-radius: var(--r-lg); padding: 36px;
  border: 1px solid rgba(0,0,0,.04);
}
.panel-dark { background: var(--teal-2); color: var(--cream); border: 1px solid rgba(255,255,255,.08); }

/* flow diagram */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 800px) { .flow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .flow { grid-template-columns: 1fr; } }
.flow .node {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 20px; text-align: center; font-weight: 500; font-size: .95rem;
  position: relative;
}
.bg-teal .flow .node { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); color: var(--cream); }

/* ---------- Footer ---------- */
.footer { background: #1f1f1f; color: rgba(255,255,255,.72); padding-block: 64px 40px; }
.footer .container { max-width: var(--maxw-wide); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 820px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }
.footer .logo { color: #fff; margin-bottom: 16px; }
.footer-tag { color: #fff; font-weight: 500; font-size: 1.05rem; }
.footer p { color: rgba(255,255,255,.6); font-size: .95rem; max-width: 34ch; margin-top: 10px; }
.footer h5 { color: #fff; font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; font-weight: 600; }
.footer-links a { display: block; padding: 6px 0; color: rgba(255,255,255,.7); font-size: .95rem; transition: color .15s; }
.footer-links a:hover { color: var(--brand); }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .875rem; color: rgba(255,255,255,.5);
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* utility spacing */
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 34px; }
.gap-tight { gap: 16px; }
