/* ==========================================================================
   nimbuz.app — managed n8n hosting
   Marketing site styles. Depends on tokens.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--disp);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  font-weight: 700;
}
h2 { font-size: clamp(28px, 3.2vw, 40px); }
h3 { font-size: 20px; }
p  { margin: 0 0 14px; }

code {
  font-family: var(--mono);
  font-size: .88em;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--accent-tint);
  color: var(--accent-2);
}

::selection { background: var(--accent); color: var(--on-accent); }

/* Skip link / focus visibility */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* --------------------------------------------------------------------------
   2. Layout primitives
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section { padding-block: var(--section-y); position: relative; }

.dark-sec { background: var(--bg-section); }
.alt-sec  { background: var(--bg-dark-2); }

.sec-head { max-width: 640px; margin-bottom: 48px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head p { color: var(--ink-soft); font-size: 17px; margin: 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}
.sec-head.center .eyebrow { justify-content: center; }

.grad {
  background: linear-gradient(120deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: normal;
}

/* --------------------------------------------------------------------------
   3. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: var(--pill);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: var(--on-accent);
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover { box-shadow: 0 16px 38px -12px rgba(235, 95, 40, .8); }

.btn-ghost {
  background: var(--fill-raised);
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-2); }

.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-block { width: 100%; justify-content: center; }

/* --------------------------------------------------------------------------
   4. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(14px);
  background: var(--header-bg);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.stuck {
  border-bottom-color: var(--line);
  background: var(--header-bg-stuck);
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}
/* Brand lockup: the nimbuz mark, then "nimbuz.app" as live text.
   The wordmark is text rather than baked into the image on purpose — butting
   an image wordmark against a text suffix never lines up, because the PNG
   carries its own internal padding and its own baseline. With both halves set
   in the same face they share one baseline and one letter-spacing.
   Everything is sized in `em`, so changing .brand's font-size scales the mark
   with the type and the lockup stays in proportion. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  font-family: var(--disp);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark {
  height: 1.45em;
  width: 1.45em;
  object-fit: contain;
  display: block;
  flex: none;
}
/* Nudges the optical centre of the text block onto the mark's centre — cap
   height sits above the em box centre in Baloo Bhai 2. */
.brand-text { display: block; transform: translateY(.04em); }
.brand-suffix { color: var(--accent); }
.site-footer .brand { font-size: 23px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
  list-style: none;
  padding: 0;
  margin-block: 0;
}
.nav-links a {
  font-size: 15px;
  color: var(--ink-soft);
  transition: color .2s var(--ease);
}
.nav-links a:hover { color: var(--ink); }

.nav-cta { display: flex; align-items: center; gap: 12px; }

/* Theme switch. Deliberately quiet — it's a utility, not a call to action, so
   it reads as an icon until you hover it. */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  background: var(--fill-raised);
  color: var(--ink-soft);
  font-size: 15px;
  transition: color .2s var(--ease), border-color .2s var(--ease),
              background .2s var(--ease), transform .2s var(--ease);
}
.theme-toggle:hover {
  color: var(--accent-2);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.theme-toggle i { pointer-events: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--ink);
  font-size: 20px;
  padding: 8px;
  margin-left: auto;
}

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
.hero {
  padding-block: 84px 96px;
  background:
    radial-gradient(900px 520px at 78% -8%, rgba(255, 107, 58, .18), transparent 62%),
    radial-gradient(700px 420px at 8% 12%, rgba(255, 138, 76, .08), transparent 60%),
    linear-gradient(180deg, var(--bg-dark), var(--bg-deep));
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(34px, 4.6vw, 58px);
  margin-bottom: 20px;
}
.hero-lead {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: 28px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }

.trustbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--ink-faint);
}
.trustbar span { display: inline-flex; align-items: center; gap: 7px; }
.trustbar i { color: var(--accent); }

/* Terminal-ish product panel */
.hero-panel {
  background: var(--fill-gradient);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.panel-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--inset);
}
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--dot); flex: none; }
.dot:first-child { background: var(--accent); }
.panel-bar em {
  font-style: normal;
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-faint);
}
.panel-body { padding: 20px; display: grid; gap: 12px; }

.stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  background: var(--fill-card);
  border: 1px solid var(--line-faint);
}
.stat-row .k { font-size: 14px; color: var(--ink-soft); display: flex; align-items: center; gap: 9px; }
.stat-row .k i { color: var(--accent); width: 16px; text-align: center; }
.stat-row .v { font-family: var(--mono); font-size: 13px; }
.ok { color: var(--green); }

.meter { height: 6px; border-radius: var(--pill); background: rgba(255,255,255,.08); overflow: hidden; width: 92px; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-2), var(--accent)); border-radius: inherit; }

.pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(81, 214, 129, .6);
  animation: pulse 2.2s infinite;
  display: inline-block;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 9px rgba(81, 214, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(81, 214, 129, 0); }
}

/* --------------------------------------------------------------------------
   6. Logo marquee
   -------------------------------------------------------------------------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: 22px;
  background: var(--bg-dark-2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  gap: 46px;
  width: max-content;
  animation: slide 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink-faint);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
@keyframes slide { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   7. Grids & cards
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--fill-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: var(--fill-hover);
}
.card p { color: var(--ink-soft); font-size: 15px; margin: 0; }
.card h3 { margin-bottom: 9px; }

.card-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid; place-items: center;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: var(--on-accent);
  font-size: 17px;
}

/* Pain cells */
.pain-cell {
  position: relative;
  padding: 26px 26px 26px 30px;
  border-left: 2px solid var(--line);
  transition: border-color .3s var(--ease);
}
.pain-cell:hover { border-left-color: var(--accent); }
.pain-cell .num {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--accent);
  letter-spacing: .1em;
  display: block;
  margin-bottom: 10px;
}
.pain-cell h3 { font-size: 18px; }
.pain-cell p { color: var(--ink-soft); font-size: 15px; margin: 0; }

/* --------------------------------------------------------------------------
   7b. App catalogue
   -------------------------------------------------------------------------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 34px;
}
.chip {
  border: 1px solid var(--line);
  background: var(--fill-raised);
  color: var(--ink-soft);
  border-radius: var(--pill);
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  transition: all .25s var(--ease);
}
.chip:hover { color: var(--ink); border-color: var(--dot); }
.chip.on {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  border-color: transparent;
  color: var(--on-accent);
}

.app-grid { align-items: stretch; }

.app-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--fill-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.app-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: var(--fill-hover);
}
.app-card.is-soon { opacity: .74; }
.app-card.is-soon:hover { opacity: 1; border-color: var(--line-strong); }

.app-ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  margin-bottom: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: var(--on-accent);
  font-size: 18px;
}
.app-card.is-soon .app-ico {
  background: var(--fill-raised);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

.app-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.app-name {
  font-family: var(--disp);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.app-tagline {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.app-blurb {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin-top: 10px;
}
.app-foot {
  margin-top: auto;
  padding-top: 18px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--accent-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.app-foot.muted { color: var(--ink-faint); }
.app-card:hover .app-foot i { transform: translateX(3px); }
.app-foot i { transition: transform .25s var(--ease); }

.badge {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 4px 10px;
  border-radius: var(--pill);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.badge.live { background: rgba(81, 214, 129, .14); color: var(--green); }
.badge.soon { background: var(--fill-raised); color: var(--ink-faint); border: 1px solid var(--line); }

/* Breadcrumb */
.crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-faint);
  margin-bottom: 30px;
}
.crumbs a { transition: color .2s var(--ease); }
.crumbs a:hover { color: var(--accent-2); }
.crumbs i { font-size: 10px; opacity: .55; }

/* Dashed "add another" row in the hero panel */
.ghost-row {
  border-style: dashed;
  border-color: var(--line-strong);
  background: transparent;
}
.ghost-row .k, .ghost-row .v { color: var(--ink-faint); }
.ghost-row .k i { color: var(--ink-faint); }

/* --------------------------------------------------------------------------
   8. Comparison table
   -------------------------------------------------------------------------- */
.cmp-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cmp {
  width: 100%;
  min-width: 700px;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 15px;
}
.cmp th, .cmp td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line-faint);
  vertical-align: top;
}
.cmp thead th {
  font-family: var(--mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-faint);
  background: var(--inset);
  white-space: nowrap;
}
.cmp thead th.mine { color: var(--accent); }
.cmp tbody tr:last-child td { border-bottom: 0; }
.cmp tbody td:first-child { color: var(--ink-soft); }
.cmp col.mine-col, .cmp td.mine { background: var(--accent-tint-soft); }
.cmp td.mine { color: var(--ink); font-weight: 600; }
.cmp i.fa-check  { color: var(--green); margin-right: 7px; }
.cmp i.fa-xmark  { color: var(--red);   margin-right: 7px; }
.cmp i.fa-minus  { color: var(--amber); margin-right: 7px; }

/* --------------------------------------------------------------------------
   9. Pricing
   -------------------------------------------------------------------------- */
.price-toggles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 42px;
}
.seg {
  display: inline-flex;
  padding: 4px;
  border-radius: var(--pill);
  background: var(--fill-raised);
  border: 1px solid var(--line);
}
.seg button {
  border: 0;
  background: none;
  color: var(--ink-soft);
  padding: 8px 18px;
  border-radius: var(--pill);
  font-size: 14px;
  font-weight: 600;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.seg button.on {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: var(--on-accent);
}
.save-note {
  align-self: center;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--green);
}

.plan {
  display: flex;
  flex-direction: column;
  background: var(--fill-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.plan:hover { transform: translateY(-4px); border-color: var(--accent); }
.plan.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-tint), var(--fill-card));
  box-shadow: var(--shadow-card);
}
.plan-tag {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: var(--on-accent);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--pill);
  white-space: nowrap;
}
.plan { position: relative; }
.plan h3 { font-size: 19px; margin-bottom: 4px; }
.plan .blurb { font-size: 14px; color: var(--ink-faint); margin-bottom: 18px; min-height: 40px; }
.price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}
.price .amt { font-family: var(--disp); font-size: 38px; font-weight: 700; letter-spacing: -0.02em; }
.price .per { font-size: 14px; color: var(--ink-faint); }
.billed { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); margin-bottom: 20px; min-height: 18px; }

.spec {
  display: flex;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-soft);
  padding: 12px 0;
  border-block: 1px solid var(--line-faint);
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.spec b { color: var(--ink); font-weight: 600; }

.plan ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.plan li { font-size: 14.5px; color: var(--ink-soft); display: flex; gap: 10px; align-items: flex-start; }
.plan li i { color: var(--accent); margin-top: 4px; font-size: 12px; }
.plan .btn { margin-top: auto; }

.price-foot {
  margin-top: 30px;
  text-align: center;
  font-size: 14.5px;
  color: var(--ink-faint);
}
.price-foot a { color: var(--accent-2); border-bottom: 1px solid rgba(255, 138, 76, .35); }

/* --------------------------------------------------------------------------
   10. Steps
   -------------------------------------------------------------------------- */
.step { text-align: left; }
.step .n {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: 14px;
  border: 1px solid var(--accent);
  color: var(--accent);
  margin-bottom: 16px;
}

/* --------------------------------------------------------------------------
   11. FAQ
   -------------------------------------------------------------------------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 40px 20px 0;
  font-size: 17px;
  font-weight: 600;
  position: relative;
  transition: color .2s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-2); }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 24px;
  line-height: 1;
  font-family: var(--mono);
}
.faq details[open] summary::after { content: "–"; }
.faq details p {
  color: var(--ink-soft);
  font-size: 15.5px;
  padding-bottom: 20px;
  margin: 0;
  max-width: 70ch;
}

/* --------------------------------------------------------------------------
   12. Final CTA
   -------------------------------------------------------------------------- */
.cta-band {
  background:
    radial-gradient(700px 340px at 50% 0%, rgba(255, 107, 58, .2), transparent 65%),
    var(--bg-dark-2);
  text-align: center;
}
.cta-band h2 { max-width: 18ch; margin-inline: auto; }
.cta-band p { color: var(--ink-soft); max-width: 56ch; margin: 0 auto 28px; font-size: 17px; }
.cta-band .hero-cta { justify-content: center; }

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-dark-2);
  padding-block: 60px 28px;
  font-size: 14.5px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 44px;
}
.foot-grid h4 {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-faint);
  margin-bottom: 16px;
}
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.foot-grid a { color: var(--ink-soft); transition: color .2s var(--ease); }
.foot-grid a:hover { color: var(--accent-2); }
.foot-about p { color: var(--ink-soft); max-width: 34ch; font-size: 14.5px; }
.foot-bottom {
  border-top: 1px solid var(--line-faint);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  color: var(--ink-faint);
  font-size: 13.5px;
}
.foot-note {
  font-size: 13px;
  color: var(--ink-faint);
  margin-top: 18px;
  max-width: 70ch;
}

/* --------------------------------------------------------------------------
   14. Floating WhatsApp
   -------------------------------------------------------------------------- */
.wa {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 70;
  width: 54px; height: 54px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366;
  color: var(--on-accent);
  font-size: 25px;
  box-shadow: 0 12px 30px -10px rgba(37, 211, 102, .7);
  transition: transform .25s var(--ease);
}
.wa:hover { transform: scale(1.08); }

/* --------------------------------------------------------------------------
   15. Scroll reveal
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .pulse { animation: none; }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------------------
   16. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  :root { --section-y: 72px; --gutter: 22px; }

  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-dark-2);
    border-bottom: 1px solid var(--line);
    padding: 10px 22px 18px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 12px 0; border-bottom: 1px solid var(--line-faint); }
  .nav-links li:last-child { border-bottom: 0; }
  .nav-cta .btn-ghost { display: none; }

  .g2, .g3 { grid-template-columns: 1fr; }
  .hero { padding-block: 56px 72px; }
  .pain-cell { padding: 20px 0 20px 22px; }
}

@media (max-width: 560px) {
  .g4 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .price .amt { font-size: 34px; }
}
