/* Marketing page. Shares tokens with app.css. */
body.public { background: var(--bg); }
.lp-wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.lp-nav { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid transparent; transition: border-color .2s; }
.lp-nav.scrolled { border-color: var(--line); }
.lp-nav-in { display: flex; align-items: center; gap: 22px; min-height: 66px; }
.lp-brand { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 1.15rem; color: var(--ink); letter-spacing: -.02em; }
.lp-brand:hover { text-decoration: none; }
.lp-links { display: flex; gap: 22px; margin-left: 18px; flex: 1; }
.lp-links a { color: var(--ink-2); font-weight: 550; font-size: .93rem; }
.lp-nav-act { display: flex; gap: 8px; align-items: center; }
.lp-hero { padding: 64px 0 40px; position: relative; overflow: hidden; }
.lp-hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70%; height: 90%; background: radial-gradient(closest-side, var(--glow-a), transparent); filter: blur(30px); pointer-events: none; }
.lp-hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 44px; align-items: center; position: relative; }
.lp-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; font-size: .82rem; }
.lp-eyebrow .live-dot { background: var(--accent); animation: pulse 2.2s infinite; }
.lp-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.05; letter-spacing: -.035em; margin: 18px 0 16px; }
.lp-hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--accent), var(--neg)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-lead { font-size: 1.12rem; color: var(--ink-2); max-width: 58ch; }
.lp-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 18px; }
.btn.lp-big { padding: 13px 22px; font-size: 1rem; border-radius: 13px; }
.lp-ticks { display: flex; gap: 8px 22px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; color: var(--muted); font-weight: 550; font-size: .9rem; }
.lp-ticks li::before { content: "✓ "; color: var(--accent); font-weight: 800; }
.lp-section { padding: 84px 0; } .lp-alt { background: color-mix(in srgb, var(--bg-2) 55%, transparent); }
.lp-head { max-width: 62ch; margin: 0 auto 38px; text-align: center; } .lp-head.left { text-align: left; margin-inline: 0; }
.lp-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -.03em; margin: 8px 0 10px; } .lp-head p { color: var(--ink-2); font-size: 1.05rem; }
.lp-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.lp-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.lp-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.lp-card h3 { margin: 12px 0 6px; font-size: 1.05rem; } .lp-card p { color: var(--ink-2); font-size: .94rem; margin: 0; }
.lp-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); } .lp-ic svg { width: 22px; height: 22px; }
.lp-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; counter-reset: s; }
.lp-steps li { position: relative; padding: 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.lp-steps h3 { margin: 12px 0 6px; } .lp-steps p { color: var(--ink-2); margin: 0; font-size: .95rem; }
.lp-num { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-strong)); color: var(--on-accent); font-weight: 800; }
.lp-example { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; align-items: center; }
.lp-playbook { background: var(--surface-solid); border: 1px solid var(--line); border-radius: 22px; padding: 24px; box-shadow: var(--shadow-lg); display: grid; gap: 16px; }
.lp-playbook header { display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; } .lp-playbook h3 { font-size: 1.1rem; max-width: 40ch; margin-top: 4px; }
.lp-big-sav { text-align: right; } .lp-big-sav b { display: block; font-size: 2rem; letter-spacing: -.03em; color: var(--accent-ink); } .lp-big-sav span { font-size: .82rem; color: var(--muted); }
.lp-windows { display: flex; gap: 8px; flex-wrap: wrap; } .lp-actions { display: grid; gap: 10px; }
.lp-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: center; }
.lp-check-list { display: grid; gap: 8px; padding: 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.lp-faq { max-width: 820px; } .lp-faq details { border-bottom: 1px solid var(--line); padding: 16px 4px; }
.lp-faq summary { cursor: pointer; font-weight: 650; font-size: 1.03rem; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.lp-faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent-ink); transition: transform .2s; } .lp-faq details[open] summary::after { transform: rotate(45deg); }
.lp-faq p { color: var(--ink-2); margin: 10px 0 0; }
.lp-final { padding: 80px 0; text-align: center; background: linear-gradient(160deg, #0b1d3a, #0a2a3f 60%, #0b3a3a); color: #e9f0fb; }
.lp-final h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -.03em; } .lp-final p { color: #b8cbe6; }
.lp-final .btn:not(.primary) { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.25); }
.lp-foot { padding: 26px 0; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .9rem; }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; } .reveal.in { opacity: 1; transform: none; }
@media (max-width: 980px) { .lp-hero-in, .lp-example, .lp-split, .lp-price { grid-template-columns: minmax(0, 1fr); } .lp-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lp-steps { grid-template-columns: minmax(0, 1fr); } .lp-links { display: none; } .lp-nav-in { justify-content: space-between; } }
@media (max-width: 560px) { .lp-grid4 { grid-template-columns: minmax(0, 1fr); } .lp-section { padding: 56px 0; } .lp-hero { padding-top: 34px; } .lp-cta-nav { display: none; } .lp-vis { height: 300px; } }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* Hero scene: no frame. The SVG dissolves into the page through soft masks,
   so the curve reads as part of the background rather than a widget on it. */
.lp-hero-vis { margin: 0; position: relative; }
.lp-hero-vis::before { content: ""; position: absolute; inset: 8% 4% 14% 10%; background:
  radial-gradient(40% 45% at 52% 62%, var(--neg-soft), transparent 70%),
  radial-gradient(45% 50% at 82% 30%, var(--peak-soft), transparent 70%),
  radial-gradient(60% 60% at 30% 45%, var(--accent-soft), transparent 72%);
  filter: blur(28px); pointer-events: none; z-index: 0; }
.lp-vis { height: 420px; position: relative; z-index: 1;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%), linear-gradient(180deg, transparent 0, #000 8%, #000 90%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%), linear-gradient(180deg, transparent 0, #000 8%, #000 90%, transparent 100%);
  mask-composite: intersect; }
.lp-vis svg { width: 100%; height: 100%; display: block; overflow: visible; }
.lp-vis text { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.lp-vis .hv-chip rect { fill: var(--surface-solid); stroke: var(--line); }
.lp-vis .hv-chip text { font-size: 11.5px; font-weight: 700; }
.lp-vis .hv-lane text { font-size: 10.5px; font-weight: 600; fill: var(--ink-2); }
.lp-vis .hv-save text { font-weight: 800; fill: var(--accent-ink); }
.lp-vis-legend { position: relative; z-index: 1; display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; font-size: .78rem; color: var(--muted); margin-top: -6px; }
.lp-vis-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
@media (max-width: 560px) { .lp-vis { height: 300px; } }

/* Industries: a sector selector and what it moves. */
.lp-ind-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 18px; }
.lp-ind-tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.lp-ind-tabs button:hover { transform: translateY(-1px); border-color: var(--line-2); }
.lp-ind-tabs button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: 0 8px 22px -10px var(--accent); }
.lp-ind-tabs .i { width: 16px; height: 16px; }
.lp-ind-panel { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; padding: 28px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.lp-ind-panel.swap .lp-ind-copy, .lp-ind-panel.swap .lp-ind-stats { animation: lp-swap .35s ease both; }
@keyframes lp-swap { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.lp-ind-copy h3 { margin: 0 0 8px; font-size: 1.3rem; letter-spacing: -.02em; }
.lp-ind-copy p { color: var(--ink-2); margin: 0 0 14px; }
.lp-ind-loads { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.lp-ind-loads li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: .93rem; }
.lp-ind-loads .tag { font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; white-space: nowrap; align-self: center; }
.lp-ind-loads .tag.SHIFTABLE { background: var(--accent-soft); color: var(--accent-ink); }
.lp-ind-loads .tag.THERMAL_BUFFER { background: var(--neg-soft); color: var(--neg); }
.lp-ind-stats { display: grid; gap: 12px; align-content: center; }
.lp-ind-stats > div { padding: 18px; border-radius: 16px; background: linear-gradient(135deg, var(--accent-soft), transparent 80%); border: 1px solid var(--line); }
.lp-ind-stats .k { display: block; font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.lp-ind-stats .l { color: var(--muted); font-size: .85rem; }
.lp-ind-note { text-align: center; margin-top: 12px; }

/* Pricing: the plan, and a month's usage estimate. */
.lp-price { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: stretch; }
.lp-kicker { font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.lp-plan { display: grid; gap: 14px; align-content: start; padding: 28px; border-radius: 22px; border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
  background: radial-gradient(90% 90% at 0% 0%, var(--accent-soft), transparent 70%), var(--surface-solid); box-shadow: var(--shadow); }
.lp-plan-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.lp-plan-price b { font-size: clamp(2.6rem, 5vw, 3.6rem); letter-spacing: -.04em; line-height: 1; }
.lp-plan-price span { color: var(--ink-2); font-weight: 600; } .lp-plan-price .from { font-size: 1.1rem; color: var(--muted); }
.lp-plan p { color: var(--ink-2); margin: 0; }
.lp-plan .btn { justify-self: start; }
.lp-incl { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.lp-incl li { padding-left: 26px; position: relative; color: var(--ink-2); }
.lp-incl li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.lp-calc { display: grid; gap: 16px; padding: 28px; border-radius: 22px; background: var(--surface-solid); border: 1px solid var(--line); box-shadow: var(--shadow); }
.lp-calc-head { font-size: 1.1rem; }
.lp-field { display: grid; gap: 6px; font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.lp-field select { font: inherit; font-weight: 500; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink); }
.lp-range { display: grid; gap: 8px; font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.lp-range > span { display: flex; justify-content: space-between; gap: 8px; }
.lp-range output { color: var(--accent-ink); font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lp-range input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--accent) var(--p, 50%), var(--line) var(--p, 50%)); outline: none; }
.lp-range input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--surface-solid); border: 3px solid var(--accent); box-shadow: 0 2px 8px -2px rgba(0,0,0,.35); cursor: pointer; }
.lp-range input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--surface-solid); border: 3px solid var(--accent); cursor: pointer; }
.lp-range input:focus-visible { box-shadow: var(--ring); }
.lp-calc-out { display: grid; gap: 10px; padding: 18px; border-radius: 16px; background: linear-gradient(135deg, var(--accent-soft), transparent 85%); border: 1px solid var(--line); }
.lp-calc-out .big { display: flex; align-items: baseline; gap: 10px; }
.lp-calc-out .big b { font-size: clamp(1.9rem, 3.2vw, 2.4rem); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.lp-calc-out .big .l { color: var(--ink-2); font-weight: 600; }
.lp-calc-out .small { color: var(--muted); }
.lp-calc-break { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; padding-top: 8px; border-top: 1px solid var(--line); }
.lp-calc-break div { display: flex; justify-content: space-between; gap: 8px; font-size: .88rem; }
.lp-calc-break span { color: var(--muted); } .lp-calc-break b { font-variant-numeric: tabular-nums; } .lp-calc-break b.free { color: var(--accent-ink); }

/* Enterprise. */
.lp-ent { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 36px; align-items: center; padding: clamp(28px, 4vw, 52px); border-radius: 28px; color: #e9f0fb;
  background: radial-gradient(80% 120% at 0% 0%, rgba(45,212,176,.18), transparent 60%), radial-gradient(70% 100% at 100% 100%, rgba(167,139,250,.16), transparent 60%), linear-gradient(160deg, #0d2140, #060e1c);
  border: 1px solid rgba(148,180,220,.16); box-shadow: var(--shadow-lg); }
.lp-ent .lp-kicker { color: #2dd4b0; }
.lp-ent h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.08; letter-spacing: -.03em; margin: 10px 0 14px; color: #fff; }
.lp-ent-copy p { color: #c3d0e4; margin: 0 0 24px; }
.lp-ent-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.lp-ent-grid article { padding: 18px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid rgba(148,180,220,.14); transition: border-color .2s, transform .2s; }
.lp-ent-grid article:hover { border-color: rgba(45,212,176,.45); transform: translateY(-2px); }
.lp-ent-grid h3 { margin: 10px 0 6px; font-size: 1rem; color: #fff; }
.lp-ent-grid p { margin: 0; font-size: .9rem; color: #a9b8cf; }
.lp-ent .lp-ic { background: rgba(45,212,176,.14); color: #2dd4b0; }
@media (max-width: 980px) { .lp-price, .lp-ind-panel, .lp-ent { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .lp-ent-grid, .lp-calc-break { grid-template-columns: minmax(0, 1fr); } .lp-ind-panel { padding: 20px; } }
.lp-links a { white-space: nowrap; }
@media (max-width: 1180px) { .lp-links { gap: 16px; } .lp-links a[href="#verified"], .lp-links a[href="#integrations"] { display: none; } }
.lp-range output { white-space: nowrap; }

/* ==================================================================== */
/* Responsive landing: desktop > 1180, tablet 561-980, phone <= 560.    */
/* ==================================================================== */
.lp-menu-btn { display: none; }
.lp-mnav { display: none; }
@media (max-width: 980px) {
  .lp-menu-btn { display: inline-grid; }
  .lp-mnav:not([hidden]) { display: grid; gap: 2px; padding: 8px 20px 18px; border-top: 1px solid var(--line);
    background: var(--surface-solid); box-shadow: var(--shadow-lg); animation: lp-swap .2s ease both; }
  .lp-mnav > a { padding: 12px 4px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
  .lp-mnav > a:hover { text-decoration: none; color: var(--accent-ink); }
  .lp-mnav-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
  .lp-mnav-cta .btn { justify-content: center; }
  .lp-hero-in { gap: 18px; }
  .lp-hero h1 { font-size: clamp(2.1rem, 6.4vw, 3rem); }
  .lp-vis { height: 360px; }
  .lp-example { gap: 24px; }
  .lp-steps { gap: 14px; }
  .lp-ent { gap: 26px; }
  .lp-ind-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .lp-wrap { width: min(1160px, 100% - 32px); }
  .lp-nav-act > .btn:not(.lp-cta-nav) { display: none; } /* "Sign in" lives in the menu */
  .lp-hero-cta { flex-direction: column; } .lp-hero-cta .btn { width: 100%; justify-content: center; }
  .lp-hero h1 { font-size: clamp(2rem, 9.5vw, 2.5rem); letter-spacing: -.03em; }
  .lp-vis { height: 260px; }
  .lp-vis-legend { gap: 10px; }
  .lp-head h2 { font-size: 1.6rem; }
  .lp-head p { font-size: 1rem; }
  .lp-card, .lp-steps li, .lp-plan, .lp-calc, .lp-playbook { padding: 18px; }
  /* Sectors: one swipeable row instead of a wrapped pile of pills. */
  .lp-ind-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px 16px; padding: 2px 16px 6px; scrollbar-width: none; }
  .lp-ind-tabs::-webkit-scrollbar { display: none; }
  .lp-ind-tabs button { flex: none; scroll-snap-align: start; }
  .lp-ind-stats { grid-template-columns: minmax(0, 1fr); }
  .lp-ind-stats > div { padding: 14px; } .lp-ind-stats .k { font-size: 1.35rem; }
  .lp-ind-loads li { flex-wrap: wrap; }
  .lp-plan-price b { font-size: 2.6rem; }
  .lp-calc-out .big b { font-size: 1.8rem; }
  .lp-ent { border-radius: 22px; padding: 24px 18px; }
  .lp-playbook header { flex-direction: column; }
  .lp-final { padding: 56px 0; }
  .lp-final .lp-hero-cta { align-items: stretch; }
  .lp-foot .row { flex-direction: column; gap: 6px; text-align: center; }
  .lp-faq details { padding: 14px 16px; }
}
section[id] { scroll-margin-top: 76px; }
