/* ============================================================================
   WarmLane — central stylesheet
   One file, no framework, no runtime. Warm "lane to the inbox" theme.
   Sections: tokens · reset · layout · type · header · footer · buttons ·
             cards · hero · features · pricing · table · faq · utilities
   ========================================================================== */

/* ── Design tokens ───────────────────────────────────────────────────────── */
:root {
  --ink:       #0C0A09;   /* page background (warm near-black) */
  --surface:   #16120E;   /* raised panels */
  --ember:     #F97316;   /* primary accent / CTA */
  --ember-600: #EA6306;
  --flame:     #FB7185;   /* secondary warm (rose) */
  --amber:     #FBBF24;   /* highlight */
  --warm:      #FDBA74;   /* soft warm text accent */
  --muted:     #A8A29E;

  --text:        #F5F5F4;
  --text-soft:   #D6D3D1;
  --text-dim:    #9CA3AF;
  --text-faint:  #6B7280;

  --line:       rgba(255,255,255,.06);
  --line-2:     rgba(255,255,255,.10);
  --panel:      rgba(255,255,255,.03);
  --panel-2:    rgba(255,255,255,.02);

  --radius:     12px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --maxw:       1152px;

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

/* ── Reset / base ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; color-scheme: dark; }
body {
  font-family: var(--font);
  background: var(--ink);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* subtle warm glow top-left, baked in (no extra request) */
  background-image:
    radial-gradient(60rem 40rem at 0% -10%, rgba(249,115,22,.10), transparent 60%),
    radial-gradient(50rem 40rem at 100% 0%, rgba(251,113,133,.06), transparent 55%);
  background-repeat: no-repeat;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }
code { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; border-radius: 4px; }

/* ── Layout primitives ───────────────────────────────────────────────────── */
.container { max-width: var(--maxw); margin-inline: auto; padding-inline: 1.5rem; }
.container.narrow { max-width: 768px; }
.container.md     { max-width: 896px; }
.container.wide   { max-width: 1280px; }

.section { padding-block: 4rem; }
.section.tight { padding-block: 2.5rem; }
.section.lead  { padding-top: 5rem; padding-bottom: 2rem; }
.center { text-align: center; }

.grid { display: grid; gap: 1.25rem; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ── Typography ──────────────────────────────────────────────────────────── */
h1, h2, h3 { line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; }
.h1 { font-size: clamp(2.5rem, 6vw, 3.75rem); }
.h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
.h3 { font-size: 1.25rem; }
.lede { font-size: 1.125rem; color: var(--text-dim); line-height: 1.65; }
.lede.lg { font-size: clamp(1.125rem, 2.5vw, 1.375rem); }
.eyebrow {
  display: inline-block;
  font-size: .75rem; text-transform: uppercase; letter-spacing: .18em;
  color: var(--warm); font-weight: 600;
}
.muted { color: var(--text-dim); }
.faint { color: var(--text-faint); }
.small { font-size: .875rem; }
.xs    { font-size: .75rem; }
.measure { max-width: 42rem; margin-inline: auto; }

.grad-text {
  background: linear-gradient(90deg, var(--amber), var(--ember) 55%, var(--flame));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ── Header / nav ────────────────────────────────────────────────────────── */
.site-header { min-height: 65px; display: block; }
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12,10,9,.8);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--maxw); margin-inline: auto; padding: 1rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: .625rem; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand__name { font-weight: 600; font-size: 1.125rem; letter-spacing: -.01em; }
.brand__name .warm { color: var(--warm); }
.nav__links { display: flex; align-items: center; gap: 2rem; font-size: .875rem; color: var(--text-soft); }
.nav__links a:not(.btn):hover { color: #fff; }
.nav__links a.active { color: #fff; }
.nav .nav__cta-mobile { display: none; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); margin-top: 2rem; }
.footer__grid {
  max-width: var(--maxw); margin-inline: auto; padding: 3rem 1.5rem;
  display: grid; gap: 2rem; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  font-size: .875rem;
}
.footer__brand .brand { margin-bottom: .75rem; }
.footer__brand p { color: var(--text-faint); line-height: 1.6; }
.footer__col h4 { color: var(--text-soft); font-size: .875rem; font-weight: 600; margin-bottom: .75rem; }
.footer__col li { margin-bottom: .5rem; }
.footer__col a { color: var(--text-faint); }
.footer__col a:hover { color: var(--text-soft); }
.footer__bar {
  max-width: var(--maxw); margin-inline: auto; padding: 1.5rem 1.5rem 2.5rem;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: .75rem; flex-wrap: wrap;
  font-size: .75rem; color: #57534E;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .65rem 1.1rem; border-radius: var(--radius);
  font-weight: 500; font-size: .95rem; border: 1px solid transparent;
  transition: background .15s, border-color .15s, color .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--ember); color: #fff; }
.btn--primary:hover { background: var(--ember-600); }
.btn--ghost { color: var(--text-soft); }
.btn--ghost:hover { color: #fff; }
.btn--outline { background: rgba(255,255,255,.05); border-color: var(--line-2); color: #fff; }
.btn--outline:hover { background: rgba(255,255,255,.10); }
.btn--lg { padding: .9rem 1.6rem; font-size: 1rem; }
.btn--block { display: flex; width: 100%; }

/* ── Badges / pills ──────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem 1.1rem; border-radius: 999px; font-size: .875rem; font-weight: 500;
}
.badge--amber { background: rgba(251,191,36,.10); border: 1px solid rgba(251,191,36,.3); color: var(--amber); }
.pill { font-size: .75rem; padding: .15rem .55rem; border-radius: 999px; font-weight: 500;
        background: rgba(251,191,36,.15); color: var(--amber); }

/* ── Cards ───────────────────────────────────────────────────────────────── */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; }
.card.pad-lg { padding: 1.75rem; }
.card__kicker { color: var(--warm); font-size: .875rem; font-weight: 600; margin-bottom: .5rem; }
.card h3 { margin-bottom: .75rem; }
.card p { color: var(--text-dim); font-size: .875rem; }
.link-arrow { color: var(--warm); font-size: .875rem; }
.link-arrow:hover { text-decoration: underline; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero { text-align: center; padding-top: 5rem; padding-bottom: 4rem; }
.hero h1 { margin: 1.5rem 0; line-height: 1.05; }
.hero .lede { margin: 0 auto 2.5rem; }
.hero__cta { display: flex; gap: .75rem; justify-content: center; align-items: center; flex-wrap: wrap; }
.hero__note { font-size: .75rem; color: var(--text-faint); margin-top: 1.25rem; }

/* logos / integration strip */
.logos { display: flex; flex-wrap: wrap; gap: .75rem 2.5rem; justify-content: center;
         font-size: .875rem; color: var(--text-dim); }
.logos .sep { color: #44403C; }

/* ── Comparison (problem/solution) ───────────────────────────────────────── */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.checklist { display: grid; gap: .75rem; font-size: .875rem; }
.checklist li { display: flex; gap: .75rem; }
.checklist .x { color: #57534E; }
.checklist .ok { color: var(--ember); }
.panel-good { background: rgba(249,115,22,.06); border: 1px solid rgba(249,115,22,.30); border-radius: var(--radius-lg); padding: 1.75rem; }
.divider-note { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .75rem; color: var(--text-faint); }

/* ── Feature blocks (alternating) ────────────────────────────────────────── */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.feature__kicker { display: flex; align-items: center; gap: .5rem; color: var(--warm); font-size: .875rem; font-weight: 600; margin-bottom: .75rem; }
.feature h2 { margin-bottom: .75rem; }
.feature p { color: var(--text-dim); margin-bottom: 1.25rem; }
.feature__list { display: grid; gap: .5rem; font-size: .875rem; color: var(--text-soft); }
.feature__list li { display: flex; gap: .5rem; }
.feature__list .b { color: var(--ember); margin-top: .1rem; }
.feature__media {
  aspect-ratio: 16/9; background: var(--panel-2); border: 1px solid var(--line);
  border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center;
  color: #57534E; font-size: .875rem;
}
.feature.flip .feature__text { order: 2; }
.feature.flip .feature__media { order: 1; }

/* ── Product screenshot frame ────────────────────────────────────────────── */
.shot {
  margin: 0; border: 1px solid var(--line-2); border-radius: var(--radius-xl);
  overflow: hidden; background: var(--panel);
  box-shadow: 0 30px 80px -24px rgba(0,0,0,.75);
}
.shot img { width: 100%; height: auto; display: block; }

/* ── Features list (single column, no media boxes) ───────────────────────── */
.features-list .feature { grid-template-columns: 1fr; gap: 0; max-width: 48rem; margin-inline: auto; }
.features-list .feature.flip .feature__text { order: 0; }
.features-list .feature p { margin-bottom: 1rem; }

/* ── Email CTA (custom pricing — contact by email, not a button) ─────────── */
.mail-cta { font-size: 1.4rem; font-weight: 700; color: var(--warm); letter-spacing: -.01em; }
.mail-cta:hover { text-decoration: underline; }

/* ── Quote builder ("free growth plan") ──────────────────────────────────── */
.qb__group { margin-bottom: 1.1rem; }
.qb__label { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-faint); margin-bottom: .5rem; font-weight: 600; }
.qb__chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.qb__chip { position: relative; display: inline-flex; }
.qb__chip input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.qb__chip span { display: inline-block; padding: .5rem .9rem; border: 1px solid var(--line-2); border-radius: 999px; font-size: .85rem; color: var(--text-soft); transition: all .15s; cursor: pointer; }
.qb__chip input:checked + span { border-color: var(--warm); background: rgba(249,115,22,.14); color: #fff; font-weight: 600; }
.qb__chip input:focus-visible + span { outline: 2px solid var(--warm); outline-offset: 2px; }
.qb__result { display: none; margin: .25rem 0 1rem; padding: .9rem 1rem; border-radius: var(--radius); background: rgba(249,115,22,.08); border: 1px solid rgba(249,115,22,.25); }
.qb__result.is-shown { display: block; }
.qb__result p { font-size: .875rem; color: var(--text-soft); margin: 0; line-height: 1.5; }
.qb__submit input[type=email] { width: 100%; padding: .75rem 1rem; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--panel-2); color: #fff; font-size: 1rem; margin-bottom: .6rem; }
.qb__submit input[type=email]::placeholder { color: var(--text-faint); }
.qb__submit input[type=email]:focus { outline: 2px solid var(--warm); border-color: var(--warm); }

/* ── ROI calculator ──────────────────────────────────────────────────────── */
.roi { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
.roi__controls { display: grid; gap: 1.4rem; }
.roi__row label { display: block; font-size: .9rem; color: var(--text-soft); margin-bottom: .5rem; }
.roi__val { color: var(--warm); font-weight: 700; }
.roi input[type=range] { width: 100%; accent-color: var(--warm); }
.roi__out { background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius-xl); padding: 1.75rem; text-align: center; }
.roi__big { font-size: 2.6rem; font-weight: 800; color: var(--warm); line-height: 1.1; margin: .25rem 0; }
@media (max-width: 768px) { .roi { grid-template-columns: 1fr; gap: 1.75rem; } }

kbd, code .tag, .code-chip { font-family: var(--mono); }
.code-chip { font-size: .75rem; background: rgba(255,255,255,.05); padding: .1rem .35rem; border-radius: 4px; }

/* ── Pricing ─────────────────────────────────────────────────────────────── */
.toggle-row { display: flex; justify-content: center; margin-bottom: 2rem; }
.toggle { display: inline-flex; align-items: center; gap: .75rem; cursor: pointer; font-size: .875rem; user-select: none; color: var(--text-soft); }
.toggle__track { width: 44px; height: 24px; border-radius: 999px; background: rgba(255,255,255,.12); position: relative; transition: background .18s; flex-shrink: 0; }
.toggle__thumb { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 999px; background: #fff; transition: transform .18s; }
.toggle[aria-checked="true"] .toggle__track { background: var(--ember); }
.toggle[aria-checked="true"] .toggle__thumb { transform: translateX(20px); }

.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; display: flex; flex-direction: column; position: relative; }
.plan--popular { background: rgba(255,255,255,.04); border-color: rgba(249,115,22,.40); }
.plan__tag { position: absolute; top: -.75rem; left: 50%; transform: translateX(-50%); background: var(--ember); color: #fff; font-size: .75rem; padding: .25rem .75rem; border-radius: 999px; font-weight: 500; }
.plan__name { font-size: .875rem; font-weight: 600; color: var(--text-dim); margin-bottom: .5rem; }
.plan--popular .plan__name { color: var(--warm); }
.plan__price { height: 3.5rem; display: flex; align-items: baseline; }
.plan__price .amt { font-size: 2.25rem; font-weight: 700; }
.plan__price .per { color: var(--text-faint); }
.plan__note { font-size: .75rem; color: var(--text-faint); margin-bottom: 1.5rem; }
.plan__features { font-size: .875rem; color: var(--text-soft); display: grid; gap: .5rem; margin-bottom: 2rem; flex: 1; }
.plan__features .off { color: var(--text-faint); }

/* ── Comparison table ────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table.compare-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.compare-table th, .compare-table td { padding: .75rem 1rem; text-align: center; }
.compare-table thead th { color: var(--text-dim); font-weight: 600; border-bottom: 1px solid var(--line-2); }
.compare-table thead th.feat, .compare-table td.feat { text-align: left; color: var(--text-soft); padding-left: 0; }
.compare-table th.hl { color: var(--warm); }
.compare-table tbody tr { border-bottom: 1px solid var(--line); }
.compare-table .group td { padding-top: 1.5rem; padding-bottom: .5rem; text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .15em; color: var(--text-faint); }
.compare-table .col-hl { background: rgba(249,115,22,.06); }
.compare-table .yes { color: var(--ember); }
.compare-table .no  { color: #57534E; }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq { display: grid; gap: 1.25rem; }
.faq__item { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1rem 1.5rem; }
.faq__item summary { cursor: pointer; font-weight: 600; color: #fff; display: flex; justify-content: space-between; align-items: center; list-style: none; gap: 1rem; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .plus { color: var(--text-faint); font-size: 1.25rem; line-height: 1; transition: transform .15s; }
.faq__item[open] summary .plus { transform: rotate(45deg); }
.faq__item .answer { margin-top: .75rem; color: var(--text-dim); font-size: .875rem; line-height: 1.65; }
.faq__item .answer a { color: var(--warm); }
.faq__item .answer a:hover { text-decoration: underline; }

/* ── Callout (e.g. "Why WarmLane") ───────────────────────────────────────── */
.callout { background: linear-gradient(135deg, rgba(249,115,22,.10), rgba(251,113,133,.05));
           border: 1px solid rgba(249,115,22,.20); border-radius: var(--radius-xl); padding: 1.75rem; }

/* ── Contact cards ───────────────────────────────────────────────────────── */
.contact-card .label { font-size: .75rem; text-transform: uppercase; letter-spacing: .15em; color: var(--text-faint); margin-bottom: .25rem; }
.contact-card a { color: var(--warm); font-weight: 500; }
.contact-card a:hover { text-decoration: underline; }
.contact-card p { font-size: .75rem; color: var(--text-faint); margin-top: .5rem; }

/* ── Developers / API page ───────────────────────────────────────────────── */
.api-auth { border: 1px solid rgba(249,115,22,.30); background: rgba(249,115,22,.06); border-radius: var(--radius-xl); padding: 1.75rem; }
.api-auth__row { display: flex; gap: 1rem; align-items: flex-start; }
.api-auth__icon { flex-shrink: 0; width: 40px; height: 40px; border-radius: var(--radius); background: rgba(249,115,22,.15); display: flex; align-items: center; justify-content: center; color: var(--warm); font-size: 1.25rem; }
.code-block { background: rgba(0,0,0,.5); border: 1px solid var(--line-2); border-radius: var(--radius); padding: .75rem; font-size: .75rem; color: var(--text-soft); overflow-x: auto; }
.code-block code { white-space: pre; }
code.inline { background: rgba(255,255,255,.06); padding: 2px 6px; border-radius: 4px; font-size: .85em; color: var(--warm); }
.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.spec { border: 1px solid var(--line); background: var(--panel-2); border-radius: var(--radius); padding: 1rem; }
.spec .k { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-faint); margin-bottom: .25rem; }
.spec .v { font-size: .875rem; color: var(--text-soft); }
.reference-frame { background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 24px 64px -16px rgba(0,0,0,.6); }
elements-api { display: block; height: calc(100vh - 96px); min-height: 640px; }
.reference-frame .sl-elements-api { height: 100%; }

/* ── Utilities ───────────────────────────────────────────────────────────── */
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; } .mb-4 { margin-bottom: 2rem; } .mb-6 { margin-bottom: 3rem; }
.stack-sm > * + * { margin-top: .75rem; }
.hide { display: none !important; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav .nav__links { display: none; }
  .nav .nav__cta-mobile { display: inline-flex; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; }
  .feature.flip .feature__text { order: 1; }
  .feature.flip .feature__media { order: 2; }
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .section { padding-block: 2.75rem; }
}
@media (max-width: 460px) {
  .footer__grid { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr; }
}

/* ── Waitlist form (early-access email capture) ──────────────────────────── */
.waitlist { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center;
            max-width: 34rem; margin: 1.5rem auto 0; }
.waitlist--start { justify-content: flex-start; margin-left: 0; margin-right: 0; }
.waitlist input[type="email"] {
    flex: 1 1 17rem; min-width: 0; padding: .9rem 1.1rem; border-radius: var(--radius);
    background: rgba(255,255,255,.05); border: 1px solid var(--line-2); color: var(--text);
    font-family: var(--font); font-size: 1rem;
}
.waitlist input[type="email"]::placeholder { color: var(--text-faint); }
.waitlist input[type="email"]:focus { outline: 2px solid var(--ember); outline-offset: 1px; }
.waitlist button { flex: 0 0 auto; }
.waitlist .hp, .qb .hp { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.waitlist__msg { flex-basis: 100%; font-size: .8125rem; margin-top: .35rem; min-height: 1rem; text-align: center; }
.waitlist--start .waitlist__msg { text-align: left; }
.waitlist__msg.is-ok  { color: #4ADE80; }
.waitlist__msg.is-err { color: var(--flame); }