/* ===========================================================================
   OneBloc Dispatch — landing page styles
   Tokens-only model. Indigo (OneBloc) theme. CSP-safe: no inline styles/JS.
   =========================================================================== */

:root {
  /* ===== OneBloc Dispatch brand — Coral #F2603C (canonical, per OneBloc brand system) =====
     Module hue = coral ≈ oklch(65% 0.17 33). Neutrals use a warm coral-tinted grey. */
  --clr-primary:        #F2603C;                /* Dispatch coral */
  --clr-primary-700:    oklch(52% 0.17 33);     /* darker coral for text/links */
  --clr-primary-300:    oklch(78% 0.11 33);     /* light coral for hovers/borders */
  --clr-accent:         oklch(70% 0.17 165);    /* WhatsApp-ish green for "done" */
  --clr-accent-600:     oklch(58% 0.16 165);
  --clr-warn:           oklch(75% 0.16 75);

  /* Wordmark colours (OneBloc lockup) */
  --clr-one-blue:       #2B7FF0;
  --clr-bloc-navy:      #15327C;

  /* Neutrals (warm coral-tinted grey) */
  --clr-ink:            oklch(22% 0.02 33);
  --clr-ink-soft:       oklch(44% 0.015 33);
  --clr-line:           oklch(90% 0.008 33);
  --clr-surface:        oklch(99% 0.004 33);
  --clr-surface-2:      oklch(97% 0.006 33);
  --clr-surface-3:      oklch(94% 0.01 33);
  --clr-white:          #fff;

  --grad-primary: linear-gradient(135deg, oklch(68% 0.18 38), oklch(58% 0.19 28));
  --grad-body:
    radial-gradient(1100px 700px at 12% -8%, oklch(95% 0.05 38 / 0.55), transparent 60%),
    radial-gradient(1000px 700px at 100% 0%, oklch(95% 0.045 60 / 0.40), transparent 55%);

  --radius:   16px;
  --radius-sm:10px;
  --radius-lg:26px;
  --shadow:   0 1px 2px oklch(40% 0.03 33 / .06), 0 12px 30px -12px oklch(45% 0.10 33 / .22);
  --shadow-lg:0 30px 70px -28px oklch(45% 0.14 33 / .45);

  --maxw: 1140px;
  /* OneBloc brand fonts: Plus Jakarta Sans everywhere, JetBrains Mono for data/numerics */
  --font:      "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  /* WhatsApp/iOS native system font — used only inside the phone mockup so it reads like a real screenshot */
  --font-wa:   -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--clr-ink);
  background-color: var(--clr-surface);
  background-image: var(--grad-body);
  background-repeat: no-repeat;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
/* Headings matched to the main OneBloc site: Sora, font-bold (700), tracking-tight (-0.025em) */
h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 .4em; font-weight: 700; }
h1 { font-size: clamp(2.25rem, 5vw, 4.25rem); line-height: 1.08; }  /* 36px → 68px (main hero scale) */
h2 { font-size: clamp(1.875rem, 3.6vw, 3rem); }                     /* 30px → 48px */
h3 { font-size: 1.125rem; font-weight: 700; }                       /* 18px (text-lg) */
p  { margin: 0 0 1rem; color: var(--clr-ink-soft); }
a  { color: var(--clr-primary-700); text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--clr-primary-700);
  background: oklch(95% 0.05 38 / .8); border: 1px solid var(--clr-line);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 18px;
}
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section--tint { background: var(--clr-surface-2); border-block: 1px solid var(--clr-line); }
.center { text-align: center; }
.lead { font-size: 1.15rem; max-width: 44ch; }
.center .lead { margin-inline: auto; }
.muted { color: var(--clr-ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--grad-primary);
  display: inline-flex; align-items: center; gap: .5em; justify-content: center;
  font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  background-image: var(--bg); color: #fff; box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--ghost {
  background-image: none; background-color: var(--clr-white);
  color: var(--clr-ink); border-color: var(--clr-line); box-shadow: none;
}
.btn--ghost:hover { border-color: var(--clr-primary-300); background-color: var(--clr-surface-2); }
.btn--lg { padding: 16px 30px; font-size: 1.07rem; }
.btn--block { width: 100%; }
.btn--on-dark { background-color: #fff; background-image: none; color: var(--clr-primary-700); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(1.4) blur(10px);
  background: oklch(99% 0.004 33 / .82); border-bottom: 1px solid var(--clr-line);
}
.nav { display: flex; align-items: center; gap: 18px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; color: var(--clr-ink); letter-spacing: -.02em; }
.brand__mark { height: 40px; width: 40px; display: block; }
/* OneBloc wordmark per brand system: "One" One-Blue, "Bloc" Bloc-Navy, module name divided by a thin rule */
.brand__word { display: inline-flex; align-items: baseline; font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; line-height: 1; }
.brand__one  { color: var(--clr-one-blue); }
.brand__bloc { color: var(--clr-bloc-navy); }
.brand__module {
  font-weight: 600; font-size: .95rem; color: var(--clr-ink-soft); letter-spacing: 0;
  margin-left: 9px; padding-left: 9px; border-left: 1px solid var(--clr-line); align-self: center;
}
/* legacy aliases (used elsewhere e.g. footer) */
.brand__logo { height: 42px; width: auto; display: block; }
.brand__logo--foot { height: 46px; }
.brand__sub {
  font-weight: 600; color: var(--clr-ink-soft); font-size: .9rem;
  padding-left: 10px; margin-left: 2px; border-left: 1px solid var(--clr-line);
  letter-spacing: 0;
}
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { color: var(--clr-ink-soft); font-weight: 600; font-size: .95rem; }
.nav__links a:hover { color: var(--clr-ink); }
.nav__cta { display: flex; gap: 14px; align-items: center; }
.nav__login { color: var(--clr-ink-soft); font-weight: 600; font-size: .95rem; white-space: nowrap; }
.nav__login:hover { color: var(--clr-primary-700); }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--clr-ink); margin: 5px 0; border-radius: 2px; transition: .2s; }

/* ---------- Hero ---------- */
.hero { padding: clamp(8px, 1.2vw, 16px) 0; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
/* hero headline is more compact than section h1s so the whole hero fits one screen */
.hero h1 { font-size: clamp(1.95rem, 3.4vw, 3.3rem); line-height: 1.05; margin-bottom: .28em; }
.hero h1 span { background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.04rem; margin-bottom: .6rem; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0 12px; }

/* On desktop, lock the hero to exactly one viewport and centre it */
@media (min-width: 980px) {
  .hero { min-height: calc(100vh - 68px); min-height: calc(100svh - 68px); display: flex; align-items: center; }
}
.hero__note { font-size: .9rem; color: var(--clr-ink-soft); display: flex; align-items: center; gap: 8px; }
.tick { color: var(--clr-accent-600); font-weight: 800; }

.trustbar { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--clr-line); }
.trustbar span { font-size: .86rem; color: var(--clr-ink-soft); font-weight: 600; display: flex; align-items: center; gap: 7px; }

/* ---------- iPhone 17 Pro Max device ---------- */
.device {
  /* width kept the same; shorter aspect ratio than a real iPhone so the phone isn't so tall */
  width: min(360px, 100%, 38vh);
  aspect-ratio: 1320 / 2620;                 /* taller again so longer threads aren't clipped (real 17 Pro Max is 1320/2868) */
  height: auto; margin-inline: auto; position: relative;
  font-family: var(--font-wa);               /* native iOS/WhatsApp font inside the phone */
  border-radius: clamp(34px, 5.5vh, 50px); padding: 9px;
  background: linear-gradient(150deg, #6c7079 0%, #2b2e34 26%, #1b1d22 50%, #34373d 74%, #5a5e66 100%); /* titanium rail */
  box-shadow: var(--shadow-lg), 0 0 0 2px #14151a, inset 0 0 1px 1px rgba(255,255,255,.18);
}
.device__screen {
  position: relative; width: 100%; height: 100%; border-radius: 46px; overflow: hidden;
  background: #efeae2; display: flex; flex-direction: column;
}
.device__island {
  position: absolute; top: 13px; left: 50%; transform: translateX(-50%);
  width: 34%; height: 26px; background: #000; border-radius: 16px; z-index: 9;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}
/* iOS status bar */
.sb { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px 6px; font-size: .8rem; color: #0b0b0d; flex-shrink: 0; }
.sb__time { font-weight: 700; font-family: var(--font-wa); letter-spacing: -.01em; }
.sb__icons { display: flex; align-items: center; gap: 6px; }
.sb__icons svg { display: block; }
/* WhatsApp header */
.wa-head { display: flex; align-items: center; gap: 8px; padding: 7px 10px; background: #f6f6f6; border-bottom: 1px solid #e4e4e4; flex-shrink: 0; }
.wa-back { color: #00a884; flex-shrink: 0; display: flex; }
.wa-ava { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  background: linear-gradient(135deg, #25d366, #128c7e); color: #fff; font-weight: 700; font-size: .82rem; font-family: var(--font-wa); }
.wa-meta { min-width: 0; flex: 1; }
.wa-name { display: flex; align-items: center; gap: 4px; min-width: 0; font-weight: 700; font-size: .94rem; color: #111b21; line-height: 1.15; }
.wa-name__txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-name svg { flex-shrink: 0; }
.wa-sub { font-size: .73rem; color: #667781; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-actions { display: flex; gap: 14px; color: #00a884; flex-shrink: 0; }
.wa-actions svg { display: block; }
/* chat body */
.wa-body {
  flex: 1; min-height: 0; overflow: hidden; padding: 10px 9px 8px;
  display: flex; flex-direction: column; gap: 6px; justify-content: flex-end;
  background-color: #efeae2;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(0,0,0,.018) 0 6px, transparent 6px),
    radial-gradient(circle at 82% 64%, rgba(0,0,0,.018) 0 5px, transparent 5px),
    radial-gradient(circle at 52% 88%, rgba(0,0,0,.015) 0 7px, transparent 7px);
  background-size: 140px 140px;
}
.wa-date { align-self: center; background: #ffffffd9; color: #54656f; font-size: .66rem; font-weight: 600;
  padding: 3px 11px; border-radius: 8px; box-shadow: 0 1px 1px rgba(0,0,0,.05); margin-bottom: 2px; }
.wa-enc { align-self: center; max-width: 86%; text-align: center; background: #fdf4c5; color: #54656f;
  font-size: .6rem; line-height: 1.35; padding: 5px 10px; border-radius: 8px; margin-bottom: 4px; }
.wa-msg {
  max-width: 82%; padding: 6px 9px 5px; border-radius: 9px; font-size: .78rem; line-height: 1.32;
  color: #111b21; position: relative; box-shadow: 0 1px .5px rgba(11,20,26,.13); word-wrap: break-word;
}
.wa-msg strong { font-weight: 700; }
.wa-msg .hl { color: #027eb5; font-weight: 700; }       /* link-style */
.wa-msg .code { background: transparent; color: #111b21; font-family: var(--font-wa); font-weight: 700; letter-spacing: .1em; padding: 0; border: 0; }
.wa-msg--in  { background: #fff; align-self: flex-start; border-top-left-radius: 2px; }
.wa-msg--out { background: #d9fdd3; align-self: flex-end; border-top-right-radius: 2px; }
.wa-stamp { display: inline-flex; align-items: center; gap: 3px; float: right; margin: 4px 0 -2px 10px; font-size: .58rem; color: #667781; }
.wa-stamp svg { display: block; }
.wa-photo { padding: 3px; }
.wa-photo__img { width: 160px; max-width: 100%; height: 96px; border-radius: 7px; background:
  linear-gradient(160deg, #9fb8c9 0%, #b9c9d4 45%, #cdbfa8 100%); position: relative; overflow: hidden; }
.wa-photo__img::after { content: "📷 photo"; position: absolute; left: 7px; bottom: 6px; font-size: .58rem; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
/* input bar */
.wa-input { display: flex; align-items: center; gap: 8px; padding: 7px 10px 9px; background: #f6f6f6; border-top: 1px solid #e4e4e4; flex-shrink: 0; }
.wa-input__pill { flex: 1; display: flex; align-items: center; gap: 7px; background: #fff; border: 1px solid #e4e4e4;
  border-radius: 18px; padding: 7px 12px; color: #8696a0; font-size: .78rem; }
.wa-input__pill .grow { flex: 1; }
.wa-send { width: 32px; height: 32px; border-radius: 50%; background: #00a884; display: grid; place-items: center; flex-shrink: 0; }

/* ---------- Try-it-live widget ---------- */
.trybox {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 52px); align-items: center;
  background: var(--clr-white); border: 1px solid var(--clr-line); border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 48px); box-shadow: var(--shadow-lg);
}
.trychecks { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 9px; }
.trychecks li { display: flex; align-items: center; gap: 9px; font-weight: 600; color: var(--clr-ink); font-size: .95rem; }
.tryform { display: flex; flex-direction: column; gap: 14px; }
.tryfield { display: flex; flex-direction: column; gap: 6px; }
.tryfield span { font-weight: 600; font-size: .9rem; color: var(--clr-ink); }
.tryfield em { color: var(--clr-ink-soft); font-style: normal; font-weight: 500; }
.tryfield input {
  font: inherit; padding: 13px 15px; border: 1px solid var(--clr-line); border-radius: var(--radius-sm);
  background: var(--clr-surface-2); color: var(--clr-ink); transition: border-color .15s, box-shadow .15s;
}
.tryfield input:focus { outline: none; border-color: var(--clr-primary); box-shadow: 0 0 0 3px oklch(57% 0.19 268 / .15); background: #fff; }
.tryform .btn { margin-top: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.tryconsent { font-size: .76rem; color: var(--clr-ink-soft); margin: 2px 0 0; line-height: 1.45; }
.tryresult { margin: 0; font-weight: 600; font-size: .92rem; display: none; padding: 11px 14px; border-radius: var(--radius-sm); }
.tryresult.show { display: block; }
.tryresult.ok  { display: block; background: oklch(95% 0.06 165 / .6); color: var(--clr-accent-600); border: 1px solid oklch(85% 0.08 165 / .5); }
.tryresult.err { display: block; background: oklch(95% 0.06 25 / .55); color: oklch(52% 0.18 25); border: 1px solid oklch(85% 0.08 25 / .5); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- Phone carousel (use-case showcase) ---------- */
.carousel { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; }
/* icon chip + text on one row (2-column), centered as a group above the phone */
.carousel__head {
  display: inline-flex; flex-direction: row; align-items: center; justify-content: center; gap: 12px; background: transparent;
  border: 0; box-shadow: none; padding: 0 6px 12px; width: auto; max-width: min(400px, 92vw);
  transition: opacity .25s ease;
}
.carousel__icon {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 11px; display: grid; place-items: center;
  background: oklch(96% 0.035 268 / .9); border: 1px solid var(--clr-line); box-shadow: var(--shadow);
  font-size: 1.25rem; line-height: 1;
}
.carousel__htext { display: flex; flex-direction: column; align-items: flex-start; text-align: left; line-height: 1.2; min-width: 0; }
.carousel__htext b { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--clr-ink); letter-spacing: -.01em; }
.carousel__htext span { font-size: .82rem; color: var(--clr-ink-soft); }
.carousel__stage { flex: 1 1 0; min-width: 0; display: flex; justify-content: center; }
.carousel__stage .device { animation: slideFade .38s ease; }
@keyframes slideFade { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
/* prev | phone | next on one row */
.carousel__row { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; }
.carousel__foot { display: flex; flex-direction: column; align-items: center; gap: 7px; padding-top: 14px; }
.car-btn {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--clr-line); background: var(--clr-white);
  color: var(--clr-primary-700); cursor: pointer; box-shadow: var(--shadow);
  display: grid; place-items: center; transition: transform .15s, box-shadow .15s, background .15s;
}
.car-btn svg { display: block; }
.car-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); background: var(--clr-surface-2); }
.car-btn:active { transform: translateY(0); }
.car-dots { display: flex; gap: 5px; flex-wrap: wrap; max-width: 300px; justify-content: center; }
.car-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--clr-line); border: 0; padding: 0; cursor: pointer; transition: background .2s, transform .2s; }
.car-dot.active { background: var(--clr-primary); transform: scale(1.35); }
.car-counter { font-size: .82rem; color: var(--clr-ink-soft); font-weight: 600; }
.car-counter b { color: var(--clr-ink); font-weight: 800; }

/* ---------- Generic grids / cards ---------- */
.grid { display: grid; gap: 20px; }
/* allow grid children to shrink below content size (prevents wide <pre>/code from forcing horizontal scroll on mobile) */
.grid > *, .hero__grid > *, .packs > * { min-width: 0; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--clr-white); border: 1px solid var(--clr-line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.card__icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: oklch(95% 0.04 268 / .9); color: var(--clr-primary-700); font-size: 1.3rem; margin-bottom: 14px;
}
.card h3 { margin-bottom: 6px; }
.card p { margin: 0; font-size: .95rem; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 8px; }
.step__num {
  width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; background-image: var(--grad-primary); color: #fff;
  font-weight: 800; font-size: 1rem; display: grid; place-items: center; margin-bottom: 12px; box-shadow: var(--shadow);
}
/* steps column fills the phone's height; the 3 cards distribute evenly so the two columns balance */
.steps-col { display: flex; }
.steps-fill { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
/* horizontal step: number badge beside the text (compact, balances the phone) */
.step-row { display: flex; align-items: flex-start; gap: 15px; padding: 18px 20px; }
.step-row .step__num { margin-bottom: 0; }
.step-row h3 { margin-bottom: 5px; }
.step-row p { margin: 0; font-size: .94rem; }

/* ---------- Pricing / tokens ---------- */
.tokenbar {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 8px auto 40px;
  max-width: 720px;
}
.tokenbar .pill {
  background: var(--clr-white); border: 1px solid var(--clr-line); border-radius: 999px;
  padding: 9px 16px; font-size: .9rem; font-weight: 600; color: var(--clr-ink); box-shadow: var(--shadow);
}
.tokenbar .pill b { color: var(--clr-primary-700); }
.packs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; align-items: stretch; }
.pack {
  background: var(--clr-white); border: 1px solid var(--clr-line); border-radius: var(--radius);
  padding: 24px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; position: relative;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.pack:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--clr-primary-300); }
.pack--featured { border-color: var(--clr-primary); box-shadow: var(--shadow-lg); }
/* Free plan — lighter, distinct entry point */
.pack--free { background: var(--clr-surface-2); border-style: dashed; }
.pack--free .pack__price { color: var(--clr-primary-700); }
.pack__tag--free { background-image: none; background-color: var(--clr-ink); }
.pack__tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background-image: var(--grad-primary); color: #fff; font-size: .72rem; font-weight: 800;
  padding: 5px 14px; border-radius: 999px; letter-spacing: .04em; white-space: nowrap;
}
.pack__name { font-weight: 700; color: var(--clr-ink-soft); text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; }
.pack__price { font-family: var(--font-mono); font-size: 1.85rem; font-weight: 700; margin: 8px 0 2px; letter-spacing: -.01em; }
.pack__price small { font-size: .95rem; font-weight: 600; color: var(--clr-ink-soft); }
.pack__tokens { font-weight: 700; color: var(--clr-primary-700); margin-bottom: 4px; }
.pack__rate { font-size: .85rem; color: var(--clr-ink-soft); }
.pack__bonus { display: inline-block; margin: 12px 0 18px; font-size: .82rem; font-weight: 700; color: var(--clr-accent-600);
  background: oklch(95% 0.06 165 / .6); border-radius: 999px; padding: 3px 11px; align-self: flex-start; }
.pack__bonus--none { visibility: hidden; }
.pack .btn { margin-top: auto; }

.autoreload {
  margin-top: 30px; background: var(--grad-primary); color: #fff; border-radius: var(--radius-lg);
  padding: 28px clamp(22px, 4vw, 44px); display: flex; gap: 22px; align-items: center; justify-content: space-between;
  flex-wrap: wrap; box-shadow: var(--shadow-lg);
}
.autoreload h3 { color: #fff; font-size: 1.3rem; }
.autoreload p { color: oklch(96% 0.02 268 / .9); margin: 0; max-width: 52ch; }

/* ---------- Calculator ---------- */
.calc { background: var(--clr-white); border: 1px solid var(--clr-line); border-radius: var(--radius-lg); padding: clamp(24px,4vw,40px); box-shadow: var(--shadow); }
.calc__row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--clr-line); }
.calc__row label { font-weight: 600; }
.calc__row input[type="range"] { width: 100%; }
.calc input[type="number"] { width: 88px; padding: 9px 10px; border: 1px solid var(--clr-line); border-radius: var(--radius-sm); font: inherit; text-align: center; }
.calc__out { display: flex; flex-wrap: wrap; gap: 18px; align-items: baseline; justify-content: space-between; margin-top: 20px; }
.calc__big { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; color: var(--clr-primary-700); }
.calc__rec { font-weight: 700; }

/* ---------- For developers ---------- */
.code {
  background: #0d1326; color: #d7def0; border-radius: var(--radius); padding: 22px; overflow-x: auto;
  font-family: "SF Mono", "Cascadia Code", Consolas, ui-monospace, monospace; font-size: .85rem; line-height: 1.7;
  border: 1px solid oklch(40% 0.05 268 / .5); box-shadow: var(--shadow);
}
.code .k { color: #8fb6ff; } .code .s { color: #b6f0c2; } .code .c { color: #6b7795; }

/* ---------- Audience chips ---------- */
.audience { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.audience span {
  background: var(--clr-white); border: 1px solid var(--clr-line); border-radius: 999px; padding: 11px 18px;
  font-weight: 600; box-shadow: var(--shadow); display: flex; gap: 9px; align-items: center;
}

/* ---------- Use cases ---------- */
.usecase { display: flex; flex-direction: column; }
.usecase p { flex: 1; }
.usecase--featured { border-color: var(--clr-primary-300); box-shadow: var(--shadow-lg); }
.usecase__link { font-weight: 700; color: var(--clr-primary-700); font-size: .92rem; margin-top: 2px; }
.usecase__link:hover { text-decoration: underline; }
.tag-pill {
  align-self: flex-start; margin-top: 14px; font-size: .76rem; font-weight: 700;
  color: var(--clr-primary-700); background: oklch(95% 0.04 268 / .7);
  border: 1px solid var(--clr-line); padding: 3px 11px; border-radius: 999px;
}
.feature-tag {
  display: inline-block; font-family: var(--font-head); font-size: .8rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--clr-accent-600);
  background: oklch(95% 0.06 165 / .55); border: 1px solid var(--clr-line);
  padding: 5px 14px; border-radius: 999px; margin-bottom: 16px;
}
.bubble--otp { font-family: "SF Mono", Consolas, ui-monospace, monospace; letter-spacing: .08em; font-size: .95rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin-inline: auto; }
.qa { border: 1px solid var(--clr-line); border-radius: var(--radius); background: var(--clr-white); margin-bottom: 12px; box-shadow: var(--shadow); overflow: hidden; }
.qa__q { width: 100%; text-align: left; background: none; border: 0; font: inherit; font-weight: 700; color: var(--clr-ink);
  padding: 18px 22px; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.qa__q::after { content: "+"; font-size: 1.3rem; color: var(--clr-primary-700); transition: transform .2s; }
.qa.open .qa__q::after { transform: rotate(45deg); }
.qa__a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.qa__a p { padding: 0 22px 18px; margin: 0; font-size: .95rem; }

/* ---------- CTA band ---------- */
.cta-band { background-image: var(--grad-primary); color: #fff; border-radius: var(--radius-lg); padding: clamp(36px,6vw,68px); text-align: center; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; }
.cta-band p { color: oklch(96% 0.02 268 / .92); max-width: 50ch; margin-inline: auto; }

/* ---------- Footer (premium dark) ---------- */
.site-footer {
  position: relative;
  padding: clamp(56px, 8vw, 88px) 0 32px;
  color: oklch(86% 0.012 250);
  background:
    radial-gradient(900px 380px at 85% -10%, oklch(60% 0.16 33 / .14), transparent 60%),
    linear-gradient(180deg, #0e1426 0%, #0b1020 100%);
  overflow: hidden;
}
/* thin coral top accent line */
.site-footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--clr-primary), transparent);
  opacity: .8;
}
.foot {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.foot__col h4 {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700;
  color: oklch(70% 0.04 250); margin: 0 0 16px;
}
.foot__col a {
  display: inline-flex; align-items: center; gap: 7px;
  color: oklch(82% 0.015 250); font-size: .94rem; margin-bottom: 11px;
  transition: color .15s ease, transform .15s ease;
}
.foot__col a:hover { color: #fff; transform: translateX(3px); }
/* coral dot that appears on hover for links */
.foot__col a::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--clr-primary);
  opacity: 0; transform: scale(.4); transition: opacity .15s ease, transform .15s ease; flex-shrink: 0;
}
.foot__col a:hover::before { opacity: 1; transform: scale(1); }

/* brand column: lighten the wordmark for the dark bg */
.site-footer .brand__one  { color: #5BA3FF; }
.site-footer .brand__bloc { color: #cdd6e6; }
.site-footer .brand__module { color: oklch(72% 0.04 250); border-left-color: oklch(40% 0.02 250); }
.foot__about { margin-top: 16px; font-size: .92rem; line-height: 1.6; color: oklch(72% 0.02 250); max-width: 34ch; }

/* "Get started" CTAs styled as buttons in footer */
.foot__col--cta a.foot-btn {
  background: var(--clr-primary); color: #fff; padding: 9px 16px; border-radius: 999px;
  font-weight: 700; font-size: .9rem; margin-bottom: 10px;
}
.foot__col--cta a.foot-btn::before { display: none; }
.foot__col--cta a.foot-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.foot__col--cta a.foot-btn--ghost { background: transparent; border: 1px solid oklch(45% 0.02 250); color: oklch(86% 0.015 250); }

.foot__legal {
  margin-top: clamp(36px, 5vw, 56px); padding-top: 24px;
  border-top: 1px solid oklch(30% 0.02 250 / .6);
  font-size: .8rem; line-height: 1.7; color: oklch(62% 0.02 250);
}
.foot__legal strong { color: oklch(78% 0.02 250); font-weight: 600; }
/* footer wordmark always shows the module name, even on mobile (overrides the header hide) */
.brand__module--foot { display: inline !important; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .trybox { grid-template-columns: 1fr; }
  .grid-4, .packs { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  /* footer: brand spans full width, the three link columns sit in a row below */
  .foot { grid-template-columns: 1fr 1fr 1fr; }
  .foot__col--brand { grid-column: 1 / -1; }
}
@media (max-width: 920px) {
  .nav { gap: 10px; }
  .nav__links, .nav__cta .btn--ghost { display: none; }
  /* push the CTA + hamburger to the right edge now that nav__links (which held margin-left:auto) is hidden */
  .nav__cta { margin-left: auto; }
  .nav__toggle { display: block; margin-left: 0; }
  /* keep the brand from overflowing into the CTA */
  .brand { min-width: 0; flex-shrink: 1; overflow: hidden; }
  .brand__word { font-size: 1.2rem; white-space: nowrap; }
  .btn { padding: 11px 18px; font-size: .95rem; }   /* slightly smaller Start free on mobile */

  .nav.open .nav__links {
    display: flex; flex-direction: column; gap: 4px; position: absolute; top: 66px; left: 0; right: 0;
    background: var(--clr-white); border-bottom: 1px solid var(--clr-line); padding: 12px 22px 18px; box-shadow: var(--shadow); z-index: 60;
  }
  .nav.open .nav__links a { padding: 10px 0; }
}
@media (max-width: 560px) {
  .grid-4, .packs, .grid-2 { grid-template-columns: 1fr; }
  .autoreload { flex-direction: column; align-items: flex-start; }
  /* on small phones the "| Dispatch" divider crowds the header — drop it, keep the OneBloc wordmark + coral cube */
  .brand__module { display: none; }

  /* ---- Mobile spacing pass ---- */
  .wrap { padding-inline: 20px; }                 /* comfortable side gutters (was 16) */
  .section { padding-block: 44px; }               /* tighter vertical rhythm (was 56) */
  .section--tint { padding-block: 44px; }
  .eyebrow {                                       /* long uppercase label — tidy rounded tag, not a tall stadium blob */
    font-size: .7rem; line-height: 1.4; padding: 8px 14px; letter-spacing: .05em;
    margin-bottom: 16px; border-radius: 12px; text-align: center;
  }
  .hero { padding-block: 8px 4px; }
  .hero__cta { margin: 16px 0 10px; gap: 10px; }
  .hero__cta .btn { width: 100%; }                /* full-width stacked CTAs read better on phones */
  .trustbar { gap: 6px 18px; }
  .pack { padding: 22px 18px; }
  .trybox { padding: 22px 18px; gap: 18px; }
  .card, .feature, .usecase { padding: 20px 18px; }
  h2 { font-size: clamp(1.6rem, 7vw, 2rem); }     /* slightly smaller section headings on phone */

  /* ---- Premium footer on mobile ---- */
  .site-footer { padding: 48px 0 28px; }
  .foot { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .foot__col--brand { grid-column: 1 / -1; }
  .foot__about { max-width: none; }
  .foot__col--cta { grid-column: 1 / -1; }
  .foot__col--cta a.foot-btn { display: inline-flex; width: auto; margin-right: 10px; }
}
@media (max-width: 380px) {
  .brand__word { font-size: 1.08rem; }
  .btn { padding: 10px 15px; font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
}
