/* ============================================================
   Ansygo — graphite design system
   Static site · CSS custom properties · responsive · a11y
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* surfaces — graphite / anthracite */
  --bg:          #0b0e13;
  --bg-2:        #0f141b;
  --surface:     #141a23;
  --surface-2:   #1b222d;
  --surface-3:   #232c39;
  --border:      rgba(150, 166, 184, 0.12);
  --border-2:    rgba(150, 166, 184, 0.22);

  /* text */
  --text:        #e9eff6;
  --text-2:      #a7b4c2;
  --text-3:      #6f7e8d;

  /* accent — teal / cyan (from logo) */
  --accent:      #27e0c1;
  --accent-2:    #1ec7e8;
  --accent-deep: #12b39a;
  --accent-ink:  #042521;
  --accent-soft: rgba(39, 224, 193, 0.12);
  --accent-glow: rgba(39, 224, 193, 0.30);

  /* functional */
  --amber:       #e8b35e;
  --danger:      #ff7a7a;
  --ok:          var(--accent);

  /* gradients */
  --grad-accent: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  --grad-surface: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);

  /* geometry */
  --radius:      16px;
  --radius-lg:   24px;
  --radius-sm:   10px;
  --radius-pill: 999px;

  --shadow-1: 0 2px 10px rgba(0, 0, 0, .35);
  --shadow-2: 0 18px 50px rgba(0, 0, 0, .5);
  --shadow-glow: 0 0 0 1px var(--border), 0 24px 60px -20px var(--accent-glow);

  --maxw: 1180px;
  --pad-x: clamp(18px, 5vw, 40px);
  --sect-y: clamp(64px, 10vw, 132px);

  /* type */
  --font-display: "Manrope", system-ui, -apple-system, Segoe UI, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, Segoe UI, sans-serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* graphite ambient backdrop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 600px at 78% -8%, rgba(39, 224, 193, .10), transparent 60%),
    radial-gradient(800px 600px at 8% 4%, rgba(30, 199, 232, .08), transparent 55%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(150, 166, 184, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(150, 166, 184, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 30%, transparent 80%);
  pointer-events: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.85rem, 4.2vw, 2.85rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.55rem); }
p  { color: var(--text-2); }

.text-grad {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad-x); }
.section { padding-block: var(--sect-y); position: relative; }
section[id], [id] { scroll-margin-top: 124px; }
.section--alt { background: linear-gradient(180deg, transparent, rgba(15,20,27,.6) 12%, rgba(15,20,27,.6) 88%, transparent); }
.section-head { max-width: 720px; margin: 0 auto clamp(36px, 6vw, 64px); text-align: center; }
.section-head.left { margin-inline: 0; text-align: left; }
.section-head p { margin-top: 14px; font-size: 1.075rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
  padding: 7px 14px; margin-bottom: 18px;
  border: 1px solid var(--border-2); border-radius: var(--radius-pill);
  background: var(--accent-soft);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

.grid { display: grid; gap: clamp(16px, 2.4vw, 26px); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Buttons ---------- */
.btn {
  --bh: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--bh); padding: 0 26px;
  font-family: var(--font-display); font-weight: 700; font-size: .98rem;
  border-radius: var(--radius-pill); border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s, color .25s;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary {
  background: var(--grad-accent); color: var(--accent-ink);
  box-shadow: 0 10px 30px -10px var(--accent-glow);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px var(--accent-glow); }
.btn--ghost { background: rgba(255,255,255,.03); color: var(--text); border-color: var(--border-2); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn--sm { --bh: 42px; padding: 0 18px; font-size: .9rem; }
.btn--lg { --bh: 58px; padding: 0 34px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--link { background: none; height: auto; padding: 0; color: var(--accent); border-radius: 0; }
.btn--link:hover { gap: 14px; }

/* ---------- Cards ---------- */
.card {
  background: var(--grad-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 32px);
  position: relative;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.card--hover:hover { transform: translateY(-6px); border-color: var(--border-2); box-shadow: var(--shadow-2); }
.card__icon {
  width: 50px; height: 50px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: var(--accent-soft); border: 1px solid var(--border-2);
  color: var(--accent);
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .96rem; }

/* badges / pills */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .76rem; font-weight: 600; padding: 4px 11px;
  border-radius: var(--radius-pill); border: 1px solid var(--border-2);
  color: var(--text-2); background: rgba(255,255,255,.03);
}
.pill--accent { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.pill--planned { color: var(--amber); border-color: rgba(232,179,94,.35); background: rgba(232,179,94,.08); }

/* ============================================================
   Header / Nav
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 100;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(11, 14, 19, .72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
}
.nav { display: flex; align-items: center; gap: 28px; height: 114px; }
.brand { display: flex; align-items: center; gap: 13px; flex-shrink: 0; }
.brand svg, .brand__mark { height: 48px; width: auto; }
.brand__word { font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; letter-spacing: -.035em; color: var(--text); }
.brand__word b { color: var(--accent); font-weight: 800; }
.footer .brand__word { font-size: 1.5rem; }
/* enlarged header logo (footer/global stay small) */
.nav .brand { gap: 18px; }
.nav .brand__mark { height: 94px; width: auto; }
.nav .brand__word { font-size: 3.5rem; }
.nav__links { display: flex; align-items: center; gap: 4px; margin-inline: auto; }
.nav__links a {
  padding: 9px 9px; border-radius: var(--radius-sm); white-space: nowrap;
  font-size: .94rem; font-weight: 500; color: var(--text-2);
  transition: color .2s, background .2s;
}
.nav__links a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.nav__links .nav__cta { display: none; }
.nav__actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

/* language switcher */
.lang {
  position: relative;
}
.lang__btn {
  display: flex; align-items: center; gap: 7px;
  height: 42px; padding: 0 14px; cursor: pointer;
  background: rgba(255,255,255,.03); border: 1px solid var(--border-2);
  border-radius: var(--radius-pill); font-weight: 600; font-size: .9rem;
  transition: border-color .2s, color .2s;
}
.lang__btn:hover { border-color: var(--accent); color: var(--accent); }
.lang__btn svg { width: 16px; height: 16px; opacity: .7; }
.lang__menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 150px;
  background: var(--surface-2); border: 1px solid var(--border-2);
  border-radius: 14px; padding: 6px; box-shadow: var(--shadow-2);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s, transform .2s, visibility .2s; z-index: 50;
}
.lang.open .lang__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang__menu button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 12px; border: 0; background: none; cursor: pointer;
  border-radius: 9px; font-size: .92rem; text-align: left; color: var(--text-2);
}
.lang__menu button:hover { background: rgba(255,255,255,.05); color: var(--text); }
.lang__menu button[aria-current="true"] { color: var(--accent); }
.lang__flag { display: none; }
.lang__menu { min-width: 176px; }
.lang__menu button .lang__code { font-family: var(--font-display); font-weight: 700; font-size: .74rem; letter-spacing: .03em; color: var(--text-3); min-width: 20px; }
.lang__menu button .lang__full { font-size: .92rem; }
.lang__menu button[aria-current="true"] { font-weight: 700; }
.lang__menu button[aria-current="true"] .lang__code { color: var(--accent); }

/* burger */
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--border-2); border-radius: 12px; background: rgba(255,255,255,.03); cursor: pointer; place-items: center; }
.burger span { display: block; width: 20px; height: 2px; background: var(--text); position: relative; transition: .3s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--text); transition: .3s; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
body.menu-open .burger span { background: transparent; }
body.menu-open .burger span::before { top: 0; transform: rotate(45deg); }
body.menu-open .burger span::after { top: 0; transform: rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; padding-top: clamp(40px, 7vw, 80px); padding-bottom: clamp(48px, 8vw, 96px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero__title { margin: 18px 0 0; }
.hero__sub { font-size: clamp(1.05rem, 1.6vw, 1.25rem); margin-top: 22px; max-width: 540px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__note { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: .9rem; color: var(--text-3); }
.hero__note svg { width: 16px; height: 16px; color: var(--accent); }

.hero__stats { display: flex; gap: clamp(20px, 4vw, 44px); margin-top: 44px; flex-wrap: wrap; }
.stat__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--text); line-height: 1; }
.stat__num .text-grad { display: inline; }
.stat__label { font-size: .85rem; color: var(--text-3); margin-top: 6px; }

/* hero dashboard mock */
.hero__visual { position: relative; }
.dashboard {
  position: relative;
  background: var(--grad-surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-2);
}
.dashboard::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, var(--accent), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: .6; pointer-events: none;
}
.dash__bar { display: flex; align-items: center; gap: 7px; margin-bottom: 16px; }
.dash__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); }
.dash__dot:nth-child(1){ background:#ff5f57;} .dash__dot:nth-child(2){ background:#febc2e;} .dash__dot:nth-child(3){ background:#28c840;}
.dash__title { margin-left: 10px; font-size: .82rem; color: var(--text-3); }
.dash__kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.kpi__label { font-size: .68rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
.kpi__val { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; margin-top: 4px; }
.kpi__val small { font-size: .7rem; color: var(--accent); font-weight: 600; }
.dash__chart { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.dash__chart-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: .78rem; color: var(--text-3); }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 96px; }
.bars .bar { flex: 1; height: var(--h, 50%); background: var(--surface-3); border-radius: 6px 6px 0 0; transform-origin: bottom; position: relative; overflow: hidden; }
.bars .bar::after { content: ""; position: absolute; inset: 0; background: var(--grad-accent); opacity: 0; transition: opacity .4s; }
.bars .bar.lit::after { opacity: 1; }
.js .bars .bar { transform: scaleY(0); transition: transform .85s var(--ease); }
.js .bars.in .bar { transform: scaleY(1); }
.bars.in .bar:nth-child(1){transition-delay:.04s} .bars.in .bar:nth-child(2){transition-delay:.10s}
.bars.in .bar:nth-child(3){transition-delay:.16s} .bars.in .bar:nth-child(4){transition-delay:.22s}
.bars.in .bar:nth-child(5){transition-delay:.28s} .bars.in .bar:nth-child(6){transition-delay:.34s}
.bars.in .bar:nth-child(7){transition-delay:.40s}

/* floating chips around dashboard */
.float-chip {
  position: absolute; display: flex; align-items: center; gap: 9px;
  background: var(--surface-2); border: 1px solid var(--border-2); border-radius: 14px;
  padding: 11px 15px; box-shadow: var(--shadow-2); font-size: .85rem; font-weight: 600;
}
.float-chip svg { width: 18px; height: 18px; color: var(--accent); }
.float-chip--1 { top: -22px; right: 24px; }
.float-chip--2 { bottom: 38px; left: -34px; }

/* logos / marquee strip */
.trust { padding-block: 40px; border-block: 1px solid var(--border); }
.trust__label { text-align: center; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 22px; }
.trust__row { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(18px, 4vw, 48px); align-items: center; }
.trust__item { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-weight: 600; font-size: .95rem; }
.trust__item svg { width: 20px; height: 20px; color: var(--accent); }

/* ============================================================
   Growth journey (process / block diagram)
   ============================================================ */
.journey { position: relative; }
.journey__track { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.jstep { text-align: center; position: relative; }
/* arrow connector from one step to the next (sits in the gap, node-centered) */
.jstep__arrow { position: absolute; top: 45px; left: calc(50% + 56px); width: calc(100% - 96px); height: 2px; display: flex; align-items: center; transform: translateY(-50%) scaleX(.3); transform-origin: left center; opacity: 0; transition: opacity .5s var(--ease), transform .65s var(--ease); pointer-events: none; }
.jstep.in .jstep__arrow { opacity: .75; transform: translateY(-50%) scaleX(1); transition-delay: .25s; }
.jstep__arrow::before { content: ""; flex: 1; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(39, 224, 193, .25), var(--accent)); }
.jstep__arrow::after { content: ""; width: 0; height: 0; border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-left: 7px solid var(--accent); margin-left: -1px; }
.jstep__node {
  width: 90px; height: 90px; margin: 0 auto 18px; border-radius: 22px;
  display: grid; place-items: center; position: relative;
  background: var(--surface-2); border: 1px solid var(--border-2);
  color: var(--text-2); transition: .5s var(--ease);
}
.jstep__node svg { width: 38px; height: 38px; }
.jstep__num { position: absolute; top: -10px; left: -10px; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-3); border: 1px solid var(--border-2); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: .85rem; }
.jstep.in .jstep__node { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 6px var(--accent-soft); }
.jstep.in .jstep__num { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.jstep h4 { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 4px; }
.jstep p { font-size: .85rem; }
.jstep__price { display: block; margin-top: 8px; font-family: var(--font-display); font-weight: 700; color: var(--accent); }

/* ============================================================
   Features
   ============================================================ */
.feat-grid { grid-template-columns: repeat(3, 1fr); }
.feat-card .card__icon { transition: transform .4s var(--ease), background .4s; }
.feat-card.card--hover:hover .card__icon { transform: scale(1.08) rotate(-4deg); background: var(--grad-accent); color: var(--accent-ink); border-color: transparent; }
.feat-card ul { margin-top: 14px; display: flex; flex-direction: column; gap: 7px; }
.feat-card li { display: flex; align-items: flex-start; gap: 9px; font-size: .9rem; color: var(--text-2); }
.feat-card li svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }

/* big split feature (funnel + kanban showcases) */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,5vw,64px); align-items: center; }
/* clip (not hidden: no scroll container) so the reveal-left/right offsets never widen the page on phones; the fixed modal lives outside any .showcase */
.showcase { overflow-x: clip; }
.showcase--rev .showcase__media { order: -1; }
.showcase__media { position: relative; }
.showcase > *, .hero__grid > * { min-width: 0; }
.showcase ul { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.showcase li { display: flex; gap: 12px; align-items: flex-start; }
.showcase li svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; }
.showcase li b { color: var(--text); font-weight: 600; display: block; }
.showcase li span { font-size: .92rem; }

/* funnel */
.funnel { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.funnel__row {
  width: 100%; height: 64px; border-radius: 12px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 22px;
  background: var(--grad-surface); border: 1px solid var(--border-2);
  font-family: var(--font-display); font-weight: 700;
  transform: scaleX(.4); opacity: 0; transform-origin: center;
  transition: transform .7s var(--ease), opacity .7s;
}
.funnel.in .funnel__row { transform: scaleX(1); opacity: 1; }
.funnel__row:nth-child(1){ width: 100%; } .funnel__row:nth-child(2){ width: 86%; }
.funnel__row:nth-child(3){ width: 70%; } .funnel__row:nth-child(4){ width: 52%; }
.funnel__row:nth-child(5){ width: 36%; background: var(--grad-accent); color: var(--accent-ink); border-color: transparent; }
.funnel__row span:last-child { color: var(--accent); }
.funnel__row:nth-child(5) span:last-child { color: var(--accent-ink); }
.funnel.in .funnel__row:nth-child(2){ transition-delay:.1s; } .funnel.in .funnel__row:nth-child(3){ transition-delay:.2s; }
.funnel.in .funnel__row:nth-child(4){ transition-delay:.3s; } .funnel.in .funnel__row:nth-child(5){ transition-delay:.4s; }

/* kanban */
.kanban { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.kanban__col { background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px; padding: 12px; }
.kanban__head { display: flex; justify-content: space-between; font-size: .78rem; color: var(--text-3); margin-bottom: 10px; font-weight: 600; }
.kanban__head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; margin-right: 6px; }
.kcard { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 11px; margin-bottom: 9px; opacity: 0; transform: translateY(10px); transition: .5s var(--ease); }
.kanban.in .kcard { opacity: 1; transform: none; }
.kcard__title { font-size: .82rem; font-weight: 600; }
.kcard__meta { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.kcard__amount { font-family: var(--font-display); font-weight: 700; font-size: .85rem; color: var(--accent); }
.kcard__av { width: 22px; height: 22px; border-radius: 50%; background: var(--grad-accent); }
.kcard__owner { display: flex; align-items: center; gap: 7px; font-size: .72rem; color: var(--text-3); margin-top: 9px; }
.kcard__owner .av { width: 18px; height: 18px; border-radius: 50%; background: var(--grad-accent); flex-shrink: 0; }

/* ---- leads report mock ---- */
.report__kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-bottom: 16px; }
.rkpi { background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 11px 12px; }
.rkpi__v { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; line-height: 1; }
.rkpi__v.ok { color: var(--accent); }
.rkpi__l { font-size: .62rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); margin-top: 6px; }
.cfunnel { display: grid; grid-template-columns: max-content minmax(0, 1fr) auto; column-gap: 12px; row-gap: 9px; align-items: center; }
.cfunnel__row { display: grid; grid-column: 1 / -1; grid-template-columns: 104px minmax(0, 1fr) 34px; grid-template-columns: subgrid; align-items: center; }
.cfunnel__name { font-size: .8rem; color: var(--text-2); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.cfunnel__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--accent)); flex-shrink: 0; }
.cfunnel__track { height: 24px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 7px; overflow: hidden; }
.cfunnel__fill { height: 100%; width: 0; background: var(--c, var(--accent)); border-radius: 7px; transition: width 1s var(--ease); }
.cfunnel__v { text-align: right; font-family: var(--font-display); font-weight: 700; font-size: .85rem; color: var(--text); }

/* ---- full-width deals board ---- */
.board-wrap { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--grad-surface); padding: clamp(12px, 2vw, 18px); }
.board-scroll { overflow-x: auto; padding-bottom: 4px; }
.kanban--board { grid-template-columns: repeat(5, minmax(188px, 1fr)); min-width: 980px; }
.kanban--board .kanban__col { background: var(--bg-2); }
.kanban__sum { font-size: .72rem; color: var(--text-3); margin: -4px 0 10px; font-weight: 600; }
.board__themes { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; }
.board__themes svg { width: 15px; height: 15px; color: var(--accent); }

/* ============================================================
   Why Ansygo — per-seat value
   ============================================================ */
/* ============================================================
   Pricing
   ============================================================ */
.price-toggle { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 44px; }
.price-toggle span { font-weight: 600; color: var(--text-3); transition: color .2s; }
.price-toggle span.active { color: var(--text); }
.switch { width: 56px; height: 30px; border-radius: var(--radius-pill); background: var(--surface-3); border: 1px solid var(--border-2); position: relative; cursor: pointer; flex-shrink: 0; transition: background .3s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--text); transition: transform .3s var(--ease); }
.switch.on { background: var(--grad-accent); }
.switch.on::after { transform: translateX(26px); background: var(--accent-ink); }
.save-badge { font-size: .78rem; color: var(--accent); font-weight: 700; padding: 3px 9px; border-radius: var(--radius-pill); background: var(--accent-soft); border: 1px solid var(--border-2); }

.pricing-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: start; gap: 14px; }
.plan { display: flex; flex-direction: column; padding: 24px 20px; min-width: 0; }
.plan--featured { border-color: var(--accent); box-shadow: var(--shadow-glow); }
.plan__badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); z-index: 4; white-space: nowrap; }
.plan__badge.pill--accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .55); }
.plan__num { font-size: .78rem; color: var(--text-3); font-weight: 600; }
.plan__icon { color: var(--accent); margin-bottom: 8px; line-height: 0; }
.plan__icon svg { width: 40px; height: 40px; }
.plan__name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; margin: 2px 0 4px; }
.plan__who { font-size: .82rem; line-height: 1.5; color: var(--text-3); min-height: 3em; }
.plan__price { display: flex; align-items: baseline; gap: 4px; margin: 16px 0 4px; }
.plan__price .amt { font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; }
.plan__price .per { color: var(--text-3); font-size: .85rem; }
.plan__annual { font-size: .78rem; color: var(--accent); min-height: 18px; }
.plan__cta { margin: 18px 0; }
.plan__list { display: flex; flex-direction: column; gap: 9px; }
.plan__list li { display: flex; gap: 9px; font-size: .86rem; color: var(--text-2); align-items: flex-start; }
.plan__list li svg { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.plan__list li.muted { color: var(--text-3); } .plan__list li.muted svg { color: var(--text-3); }

/* entry tiles under the plan cards — each opens the pricing modal on its tab */
.xlinks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: clamp(26px, 4vw, 40px); }
.xlink { display: flex; align-items: center; gap: 14px; padding: 18px; text-align: left; font: inherit; color: var(--text);
  background: var(--grad-surface); border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer;
  transition: border-color .2s, transform .2s var(--ease); }
.xlink:hover { border-color: var(--accent); transform: translateY(-2px); }
.xlink__icon { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px;
  background: var(--accent-soft); border: 1px solid var(--border-2); color: var(--accent); }
.xlink__icon svg { width: 21px; height: 21px; }
.xlink__body { flex: 1; min-width: 0; }
.xlink__title { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.xlink__sub { display: block; margin-top: 3px; font-size: .85rem; color: var(--text-2); line-height: 1.4; }
.xlink__arrow { color: var(--text-3); font-size: 1.15rem; transition: color .2s, transform .2s; }
.xlink:hover .xlink__arrow { color: var(--accent); transform: translateX(3px); }

/* telephony packages (Telephony tab) */
.tel-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 22px 0 16px; }
.tel { background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px; padding: 16px 14px; text-align: center; }
.tel__name { font-family: var(--font-display); font-weight: 800; font-size: .78rem; letter-spacing: .12em; color: var(--text-3); }
.tel__price { font-family: var(--font-display); font-weight: 800; font-size: 1.55rem; margin: 6px 0 4px; }
.tel__price span { font-size: .68rem; font-weight: 600; color: var(--text-3); }
.tel__lines { font-size: .82rem; color: var(--text-2); }

/* feature matrix */
.matrix-wrap { margin-top: 30px; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.matrix { width: 100%; border-collapse: collapse; min-width: 820px; font-size: .88rem; }
.matrix th, .matrix td { padding: 12px 16px; text-align: center; border-bottom: 1px solid var(--border); }
.matrix thead th { position: sticky; top: 0; background: var(--surface-2); z-index: 5; font-family: var(--font-display); }
.matrix thead th:first-child { text-align: left; }
.matrix td:first-child, .matrix th:first-child { text-align: left; color: var(--text-2); min-width: 240px; }
.matrix .cat td { background: var(--bg-2); font-family: var(--font-display); font-weight: 700; color: var(--accent); letter-spacing: .04em; font-size: .8rem; text-transform: uppercase; }
.matrix .yes { color: var(--accent); font-weight: 700; }
.matrix .no { color: var(--text-3); }
.matrix .plan-col-hl { background: var(--accent-soft); }
.matrix .planned { color: var(--amber); font-style: italic; font-size: .82rem; }

/* pricing modal: Plans / Telephony / Add-ons tabs. Pinned to the top so the tab bar
   stays put when a shorter tab shrinks the box. */
.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-start; justify-content: center; padding: 5vh 18px 18px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.62); }
.modal__box { position: relative; display: flex; flex-direction: column; width: min(1040px, 100%); max-height: 90vh; background: var(--surface-2); border: 1px solid var(--border-2); border-radius: var(--radius-lg); box-shadow: var(--shadow-glow); overflow: hidden; }
.modal__head { display: flex; align-items: center; gap: 0 12px; flex-wrap: wrap; padding: 0 14px 0 8px; border-bottom: 1px solid var(--border); }
.mx-tabs { display: flex; align-self: stretch; margin-right: auto; }
.mx-tabs button { position: relative; border: 0; background: none; cursor: pointer; color: var(--text-2);
  font: 700 .98rem/1 var(--font-display); padding: 22px 14px 20px; }
.mx-tabs button:hover, .mx-tabs button[aria-selected="true"] { color: var(--text); }
.mx-tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); }
.mx-tabs button:focus-visible { outline-offset: -4px; }
.modal__box:not([data-tab="plans"]) .mx-billing { display: none; }
.modal__box:focus { outline: none; }
.modal__close { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border-2); background: transparent; color: var(--text-2); font-size: 1.5rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: .2s; }
.modal__close:hover { color: var(--text); border-color: var(--accent); }
.modal__body { flex: 1; min-height: 0; overflow: auto; }
.mx-billing { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--border-2); border-radius: 999px; }
.mx-billing button { border: 0; background: transparent; color: var(--text-2); font-size: .8rem; padding: 6px 13px; border-radius: 999px; cursor: pointer; transition: .2s; }
.mx-billing button.active { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.matrix .mx-name { display: block; }
.matrix .mx-price { display: block; margin-top: 3px; color: var(--accent); font-weight: 700; font-size: .82rem; }
.matrix .mx-per { color: var(--text-3); font-weight: 400; font-size: .7rem; }
.matrix tbody td:first-child:not([colspan]) { position: sticky; left: 0; background: var(--surface-2); z-index: 4; }
.matrix thead th:first-child { left: 0; z-index: 6; }
.matrix-legend { display: flex; gap: 18px; flex-wrap: wrap; padding: 14px 16px; font-size: .82rem; color: var(--text-3); }
.matrix-legend .yes { color: var(--accent); font-weight: 700; }
.matrix-legend .planned { color: var(--amber); font-style: italic; }

/* Telephony and Add-ons tabs */
.mx-pane { padding: clamp(18px, 3vw, 30px); }
.mx-pane__title { font-size: 1.18rem; margin-bottom: 6px; }
.mx-pane__sub { font-size: .92rem; max-width: 640px; }
.mx-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; padding: 0; margin: 4px 0 0; font-size: .88rem; color: var(--text-2); }
.mx-facts li { display: inline-flex; align-items: center; gap: 8px; }
.mx-facts svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
.addons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.addon { background: var(--bg-2); border: 1px solid var(--border); border-radius: 16px; padding: 18px; }
.addon__head { display: flex; gap: 12px; align-items: flex-start; }
.addon__icon { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px;
  background: var(--accent-soft); border: 1px solid var(--border-2); color: var(--accent); }
.addon__icon svg { width: 19px; height: 19px; }
.addon__title { font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.addon__sub { font-size: .84rem; margin-top: 3px; }
.addon__prices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 16px; }
.addon__p { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 9px 4px; text-align: center; }
.addon__p.hl { background: var(--accent-soft); border-color: rgba(39, 224, 193, .3); }
.addon__p span { display: block; font-size: .72rem; color: var(--text-3); }
.addon__p b { display: block; margin-top: 3px; font-family: var(--font-display); font-size: 1.05rem; }
.addon__p b small { font-size: .66rem; font-weight: 600; color: var(--text-3); }
.addon__p.off b { color: var(--text-3); font-weight: 400; }
.addon__note { font-size: .8rem; color: var(--text-3); margin-top: 10px; }

/* mobile app strip (features) + official store badges (strip, footers) */
.app-strip { display: flex; align-items: center; gap: 18px 24px; flex-wrap: wrap; margin-top: clamp(26px, 4vw, 40px); }
.app-strip .card__icon { margin: 0; flex: none; }
.app-strip .card__icon svg { width: 24px; height: 24px; }
.app-strip__text { flex: 1 1 320px; min-width: 0; }
.app-strip__text h3 { font-size: 1.12rem; margin-bottom: 4px; }
.app-strip__text p { font-size: .92rem; margin: 0; }
.store-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.store-badges a { display: block; border-radius: 8px; transition: transform .2s var(--ease); }
.store-badges a:hover { transform: translateY(-2px); }
.store-badges img { display: block; height: 40px; width: auto; }
.footer__about .store-badges { margin-top: 18px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ============================================================
   Partners page
   ============================================================ */
.tier-grid { grid-template-columns: repeat(4, 1fr); align-items: stretch; }
.tier { display: flex; flex-direction: column; }
.tier--top { border-color: var(--accent); box-shadow: var(--shadow-glow); }
.tier__rate { font-family: var(--font-display); font-weight: 800; font-size: 3rem; line-height: 1; }
.tier--top .tier__rate { background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tier__name { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; margin-bottom: 4px; }
.tier__tag { font-size: .85rem; color: var(--text-3); margin-bottom: 18px; }
.tier__list { display: flex; flex-direction: column; gap: 11px; margin: 18px 0; }
.tier__list li { display: flex; gap: 10px; font-size: .9rem; align-items: flex-start; color: var(--text-2); }
.tier__list li svg { width: 17px; height: 17px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.tier__note { font-size: .8rem; line-height: 1.5; color: var(--text-3); margin: -6px 0 16px; }
.tier__foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--border); font-size: .85rem; color: var(--text-3); }
.tier-rules { max-width: 760px; margin: 26px auto 0; text-align: center; font-size: .88rem; color: var(--text-3); line-height: 1.55; }
.tier-rules p + p { margin-top: 8px; }
.tier-rules a { color: var(--accent); text-decoration: underline; }

/* ladder */
.ladder { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; align-items: end; margin-top: 10px; }
.rung { background: var(--grad-surface); border: 1px solid var(--border-2); border-radius: var(--radius); padding: 22px; text-align: center; position: relative; transform: translateY(20px); opacity: 0; transition: .6s var(--ease); }
.ladder.in .rung { transform: none; opacity: 1; }
.ladder.in .rung:nth-child(2){ transition-delay:.15s; } .ladder.in .rung:nth-child(3){ transition-delay:.3s; } .ladder.in .rung:nth-child(4){ transition-delay:.45s; }
.rung:nth-child(1){ min-height: 150px; } .rung:nth-child(2){ min-height: 180px; } .rung:nth-child(3){ min-height: 210px; } .rung:nth-child(4){ min-height: 240px; border-color: var(--accent); }
.rung__rate { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; color: var(--accent); }
.rung__name { font-weight: 600; margin-top: 4px; }

/* earnings calculator */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px,4vw,48px); align-items: center; }
.calc__controls { display: flex; flex-direction: column; gap: 24px; }
.ctrl__label { display: flex; justify-content: space-between; font-weight: 600; font-size: .92rem; margin-bottom: 12px; }
.ctrl__label b { color: var(--accent); font-family: var(--font-display); }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg button {
  flex: 1; min-width: 70px; padding: 12px 10px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border-2); border-radius: 12px;
  font-weight: 600; font-size: .86rem; color: var(--text-2); transition: .2s;
}
.seg button:hover { border-color: var(--accent); color: var(--text); }
.seg button.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.seg button span { display: block; font-size: .72rem; color: var(--text-3); font-weight: 500; }
.seg button.active span { color: var(--accent); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 99px; background: var(--surface-3); cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--accent), 0 0 14px var(--accent-glow); cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); border: 3px solid var(--bg); cursor: pointer; }

.calc__result { text-align: center; padding: clamp(28px,4vw,44px); background: var(--grad-surface); border: 1px solid var(--accent); border-radius: var(--radius-lg); box-shadow: var(--shadow-glow); }
.calc__result-label { font-size: .9rem; color: var(--text-3); }
.calc__big { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.6rem, 6vw, 3.8rem); line-height: 1; margin: 10px 0; }
.calc__big .cur { font-size: .5em; color: var(--accent); vertical-align: top; }
.calc__per { color: var(--text-3); font-size: .9rem; }
.calc__split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
.calc__split > div { background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.calc__split .v { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; }
.calc__split .l { font-size: .76rem; color: var(--text-3); margin-top: 2px; }
.calc__note { font-size: .8rem; color: var(--text-3); margin-top: 18px; }

/* steps to start */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.step { position: relative; padding-top: 14px; }
.step__n { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; background: var(--accent-soft); color: var(--accent); border: 1px solid var(--border-2); margin-bottom: 16px; }
.step h4 { font-family: var(--font-display); margin-bottom: 6px; }
.step p { font-size: .9rem; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 800px; margin-inline: auto; display: flex; flex-direction: column; gap: 12px; }
.faq__item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.faq__q { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; padding: 20px 22px; cursor: pointer; background: none; border: 0; text-align: left; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; }
.faq__q .chev { width: 22px; height: 22px; flex-shrink: 0; transition: transform .3s; color: var(--accent); }
.faq__item.open .chev { transform: rotate(180deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq__a p { padding: 0 22px 20px; font-size: .95rem; }

/* ============================================================
   CTA band + Forms
   ============================================================ */
.cta-band { text-align: center; padding: clamp(40px,6vw,72px); border-radius: var(--radius-lg); position: relative; overflow: hidden; border: 1px solid var(--border-2); background: var(--grad-surface); }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 50% -40%, var(--accent-soft), transparent 70%); }
.cta-band > * { position: relative; }
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { max-width: 560px; margin: 0 auto 28px; }
.cta-band__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.form-card { max-width: 640px; margin-inline: auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 600; color: var(--text-2); }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 12px;
  padding: 13px 15px; font-size: .95rem; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field textarea { resize: vertical; min-height: 110px; }
.field .err { font-size: .78rem; color: var(--danger); display: none; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--danger); }
.field.invalid .err { display: block; }
.form-success { display: none; text-align: center; padding: 30px; }
.form-success svg { width: 56px; height: 56px; color: var(--accent); margin: 0 auto 16px; }

/* pricing page (/pricing): cards + tel packages come from index.html, table + add-ons are rendered by build.js */
.pr-hero { padding-top: clamp(24px, 4vw, 56px); }
.pr-title { font-size: clamp(2.1rem, 4.6vw, 3.3rem); margin-top: 16px; }
.pr-hero__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.pr-note { text-align: center; margin-top: 26px; color: var(--text-3); font-size: .92rem; }
.pr-narrow { max-width: 820px; }
.pr-narrow h2 { margin-bottom: 22px; }
.pr-how { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.pr-how li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); line-height: 1.6; }
.pr-how svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 4px; }
.pr-morelink { text-align: center; margin-top: 10px; }
.pr-morelink a { color: var(--accent); font-weight: 600; font-size: .95rem; }
.pr-morelink a:hover { text-decoration: underline; }

/* get-a-portal page (/start): landing for ads and in-app links — on phones the form comes right after the title */
.page-get .nav__actions { margin-left: auto; }
.get { padding-block: clamp(16px, 4vw, 52px) clamp(36px, 5vw, 64px); }
.get__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); grid-template-areas: "intro form" "more form"; grid-template-rows: auto 1fr; column-gap: clamp(28px, 5vw, 72px); align-items: start; }
.get__intro { grid-area: intro; }
.get__form { grid-area: form; max-width: none; margin: 0; }
.get__more { grid-area: more; }
.get__title { font-size: clamp(2rem, 4.4vw, 3.1rem); margin: 16px 0 0; }
.get__sub { font-size: clamp(1.02rem, 1.5vw, 1.15rem); margin-top: 16px; max-width: 520px; }
.get__points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.get__points li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); }
.get__points svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 3px; }
.get__note { margin-top: 22px; font-size: .88rem; color: var(--text-3); max-width: 480px; }
.form-success .get__after { margin-top: 12px; font-size: .9rem; color: var(--text-3); }
.get-steps { padding-top: 0; }
.get-steps__title { font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin-bottom: 22px; }
.get-steps__more { margin-top: 26px; }
.get-steps__more a { color: var(--accent); font-weight: 600; }
.footer--min { margin-top: 0; padding-block: 0 28px; }
.footer--min .footer__bottom { margin-top: 0; padding-top: 24px; border-top: 0; }
.footer__links a { color: var(--text-2); }
.footer__links a:hover { color: var(--accent); }
@media (max-width: 860px) {
  .get__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "form" "more"; grid-template-rows: none; }
  .get__form { margin-top: 22px; }
  .get__more { margin-top: 26px; }
}
form.sent .form-body { display: none; }
form.sent .form-success { display: block; }
.form-error { margin-top: 14px; font-size: .9rem; line-height: 1.45; color: var(--danger); background: rgba(255,122,122,.09); border: 1px solid rgba(255,122,122,.32); border-radius: 12px; padding: 11px 14px; }
.btn[disabled], .btn.is-loading { opacity: .6; cursor: not-allowed; pointer-events: none; }
.consent__row { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.consent__row input { width: 18px; height: 18px; margin-top: 1px; flex: 0 0 auto; accent-color: var(--accent); cursor: pointer; }
.consent__row span { font-size: .85rem; font-weight: 400; color: var(--text-2); line-height: 1.5; }
.consent a { color: var(--accent); text-decoration: underline; }
.field.consent.invalid .consent__row span { color: var(--danger); }
.field.consent.invalid .consent__row input { outline: 2px solid var(--danger); outline-offset: 2px; }
.msgr__title { font-size: .85rem; font-weight: 600; color: var(--text-2); }
.msgr__row { display: flex; gap: 10px; flex-wrap: wrap; }
.msgr__chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--border-2); border-radius: 999px; background: var(--bg-2); font-size: .88rem; color: var(--text-2); cursor: pointer; user-select: none; transition: border-color .2s, background .2s, color .2s; }
.msgr__chip:hover { border-color: var(--accent); }
.msgr__chip input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.msgr__chip:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }

/* ============================================================
   Footer
   ============================================================ */
.footer { border-top: 1px solid var(--border); padding-block: 60px 36px; margin-top: 40px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 36px; }
.footer__about p { font-size: .92rem; margin-top: 16px; max-width: 320px; }
.footer h5 { font-family: var(--font-display); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); margin-bottom: 16px; }
.footer__col a { display: block; padding: 6px 0; font-size: .92rem; color: var(--text-2); transition: color .2s; }
.footer__col a:hover { color: var(--accent); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--border); font-size: .85rem; color: var(--text-3); }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; border: 1px solid var(--border-2); background: rgba(255,255,255,.02); transition: .2s; }
.footer__social a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.footer__social svg { width: 18px; height: 18px; }

/* ============================================================
   Scroll-reveal utilities
   ============================================================ */
/* default = visible (no-JS friendly); hidden only when .js is set */
.reveal, .reveal-left, .reveal-right, .reveal-scale { transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); will-change: opacity, transform; }
.js .reveal { opacity: 0; transform: translateY(28px); }
.js .reveal-left { opacity: 0; transform: translateX(-32px); }
.js .reveal-right { opacity: 0; transform: translateX(32px); }
.js .reveal-scale { opacity: 0; transform: scale(.92); }
.reveal.in, .reveal-left.in, .reveal-right.in, .reveal-scale.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
.reveal.d5 { transition-delay: .40s; }

.count { font-variant-numeric: tabular-nums; }

/* draw-in SVG paths */
.draw { stroke-dasharray: var(--len, 1000); stroke-dashoffset: var(--len, 1000); transition: stroke-dashoffset 1.6s var(--ease); }
.draw.in { stroke-dashoffset: 0; }

/* ---------- cookie banner (built by i18n.js; asks once, reopened from the footer) ---------- */
/* A light full-width strip: the same cool graphite tone, inverted, so it stands apart from the dark page.
   While it is open, i18n.js sets html.has-cookie + --cookie-h so the footer can still be scrolled into view. */
.cookie { --ck-ink: #0b0e13; --ck-text: #3a4653; --ck-link: #08806d;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; /* under the header (100): the open mobile menu covers it */
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 48px; align-items: center;
  padding: 20px max(var(--pad-x), calc((100% - var(--maxw)) / 2)) calc(20px + env(safe-area-inset-bottom, 0px));
  background: #eaf0f3; color: var(--ck-ink); box-shadow: 0 -24px 60px -24px rgba(0,0,0,.7); }
.cookie::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--grad-accent); }
.cookie[hidden] { display: none; }
.cookie__title { grid-column: 1; margin: 0 0 4px; font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--ck-ink); }
.cookie__text { grid-column: 1; max-width: 780px; margin: 0; font-size: .88rem; line-height: 1.5; color: var(--ck-text); }
.cookie__text a { color: var(--ck-link); font-weight: 600; }
.cookie__actions { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 10px; }
.cookie__actions .btn { min-width: 160px; padding: 0 18px; }
.cookie .btn--ghost { background: transparent; color: var(--ck-ink); border-color: rgba(11,14,19,.28); }
.cookie .btn--ghost:hover { border-color: var(--ck-ink); color: var(--ck-ink); }
.cookie :focus-visible { outline-color: var(--ck-link); }
html.has-cookie body { padding-bottom: var(--cookie-h, 0px); }
@media (max-width: 760px) {
  .cookie { grid-template-columns: minmax(0, 1fr); padding: 18px 16px calc(16px + env(safe-area-inset-bottom, 0px)); }
  .cookie__actions { grid-column: 1; grid-row: auto; margin-top: 14px; }
  .cookie__actions .btn { flex: 1; min-width: 0; padding: 0 12px; }
}

/* ============================================================
   News (/news, /ua/news, posts, home "What's new" block) — pages written by .claude/news.js
   ============================================================ */
.news-hero { padding-top: clamp(24px, 4vw, 52px); padding-bottom: clamp(24px, 3vw, 40px); }
.news-grid--list { margin-top: 18px; }
.news-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); margin-top: 16px; }
.news-hero .section-head { margin-bottom: 0; }
.news-none { text-align: center; color: var(--text-3); margin-top: 32px; }
.news-filters { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; align-items: center; margin-top: 24px; }
.chip-f { padding: 7px 15px; border-radius: 999px; border: 1px solid var(--border-2); color: var(--text-2); font: inherit; font-size: .88rem; background: rgba(255,255,255,.02); cursor: pointer; transition: border-color .2s, color .2s; }
.chip-f:hover { color: var(--text); }
.chip-f.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.chip-sep { width: 1px; height: 20px; background: var(--border-2); margin: 0 4px; }
@media (max-width: 600px) { .chip-sep { display: none; } }
.chip-rss { display: inline-flex; align-items: center; gap: 6px; color: var(--text-3); font-size: .85rem; margin-left: 6px; }
.chip-rss:hover { color: var(--text); }
.chip-rss svg { width: 14px; height: 14px; color: var(--amber); }

.news-featured { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: center; margin-top: 34px; padding: clamp(18px, 2.4vw, 26px); }
.news-featured--noimg { grid-template-columns: 1fr; }
.news-featured h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 12px 0 10px; }
.news-featured p { font-size: 1rem; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.news-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; transition: border-color .2s, transform .2s; }
.news-card:hover, .news-featured:hover { border-color: var(--border-2); transform: translateY(-3px); }
.news-card h3 { font-size: 1.05rem; line-height: 1.35; }
.news-card p { font-size: .9rem; margin: 0; }
.news-card .read, .news-featured .read { margin-top: auto; color: var(--accent); font-weight: 600; font-size: .9rem; }
.news-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: .8rem; color: var(--text-3); }
.news-more { text-align: center; margin-top: 30px; }
.news-empty { text-align: center; color: var(--text-3); margin-top: 34px; }
[data-news-tags][hidden], .news-empty[hidden], [data-news-link][hidden] { display: none !important; }
#news .section-head { margin-bottom: clamp(20px, 3vw, 30px); }

.badge-type { font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.badge-type.new { color: var(--accent); background: var(--accent-soft); }
.badge-type.improved { color: #93b4ff; background: rgba(120,160,255,.12); }
.badge-type.fixed { color: var(--amber); background: rgba(232,179,94,.1); }
.badge-type.digest { color: var(--text); background: rgba(255,255,255,.07); }
.avail-chip { font-size: .76rem; color: var(--text-2); border: 1px solid var(--border-2); border-radius: 999px; padding: 2px 9px; }

/* screenshots sit in a browser-like frame; an empty frame is a draft placeholder */
.shot { position: relative; aspect-ratio: 16 / 10; border-radius: 12px; border: 1px solid var(--border-2); overflow: hidden;
  background: linear-gradient(160deg, var(--surface-2), var(--bg-2)); display: grid; place-items: center; color: var(--text-3); font-size: .85rem; }
.shot::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 26px; background: rgba(255,255,255,.04); border-bottom: 1px solid var(--border); }
.shot::after { content: ""; position: absolute; top: 9px; left: 12px; width: 8px; height: 8px; border-radius: 50%; background: #ff5f57; box-shadow: 14px 0 #febc2e, 28px 0 #28c840; }
.shot span { display: inline-flex; align-items: center; gap: 8px; text-align: center; padding: 0 14px; }
.shot svg { width: 18px; height: 18px; flex: none; }
.shot--img { display: block; aspect-ratio: auto; padding-top: 26px; background: var(--surface-2); }
.shot--img img { display: block; width: 100%; height: auto; }
.news-card .shot--img, .news-featured .shot--img { aspect-ratio: 16 / 10; }
.news-card .shot--img img, .news-featured .shot--img img { height: 100%; object-fit: cover; object-position: top left; }
a.shot--img { cursor: zoom-in; }

/* post */
.post-wrap { padding-top: clamp(20px, 3vw, 40px); padding-bottom: clamp(24px, 3vw, 40px); }
.post { max-width: 780px; margin: 0 auto; }
.crumbs { font-size: .85rem; color: var(--text-3); }
.crumbs a { color: var(--text-2); }
.crumbs a:hover { color: var(--accent); }
.post h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin: 14px 0; }
.post__lead { font-size: 1.12rem; color: var(--text-2); line-height: 1.65; margin-top: 16px; }
.post figure { margin: 26px 0; }
.post figcaption { font-size: .82rem; color: var(--text-3); margin-top: 8px; text-align: center; }
.post__body h2 { font-size: 1.45rem; margin: 38px 0 12px; }
.post__body h3 { font-size: 1.1rem; margin: 26px 0 8px; }
.post__body p, .post__body li { color: var(--text-2); line-height: 1.75; }
.post__body p { margin: 0 0 14px; }
.post__body ul, .post__body ol { padding-left: 22px; margin: 0 0 16px; }
.post__body ul { list-style: disc; }
.post__body ol { list-style: decimal; }
.post__body li { margin-bottom: 6px; }
.post__body li::marker { color: var(--accent); }
.post__body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.post__body b, .post__body strong { color: var(--text); }
.avail { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin: 22px 0; border: 1px solid rgba(39,224,193,.3); border-radius: 14px; background: var(--accent-soft); color: var(--text); font-size: .95rem; line-height: 1.55; }
.avail svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 2px; }
.avail--note { border-color: rgba(232,179,94,.35); background: rgba(232,179,94,.08); }
.avail--note svg { color: var(--amber); }
.avail a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.toc { border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; margin: 24px 0 8px; background: rgba(255,255,255,.02); }
.toc b { display: block; font-family: var(--font-display); margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 20px; color: var(--text-2); list-style: decimal; }
.toc a:hover { color: var(--accent); }
.digest-item { border-top: 1px solid var(--border); padding-top: 26px; margin-top: 30px; }
.post__body .digest-item h2 { margin: 10px 0; }
.where { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .86rem; color: var(--text-3); margin-top: -4px; }
.where b { color: var(--text-2); font-weight: 600; }
.post-nav { display: flex; justify-content: space-between; gap: 14px; margin: 40px 0 0; padding-top: 22px; border-top: 1px solid var(--border); font-size: .92rem; }
.post-nav a { color: var(--text-2); max-width: 46%; }
.post-nav a:hover { color: var(--accent); }
.post-nav small { display: block; color: var(--text-3); font-size: .78rem; margin-bottom: 2px; }
.post-nav__next { text-align: right; margin-left: auto; }
.badge-type.news { color: #c9a8ff; background: rgba(170,130,255,.13); }
.news-tag { display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); }
.news-tag svg { width: 13px; height: 13px; color: var(--text-3); }

/* phone screenshots: a phone frame, 2–3 in a row; on cards the phone rises from the bottom edge */
.news-fig--phone, .post .news-fig--phone { max-width: 280px; margin: 26px auto; }
.shot--phone { display: block; aspect-ratio: auto; padding: 0; border: 7px solid #232a35; border-radius: 30px; background: var(--bg-2); box-shadow: 0 0 0 1px var(--border-2), 0 18px 40px rgba(0,0,0,.35); }
.shot--phone::before, .shot--phone::after, .shot--device::before, .shot--device::after { display: none; }
.shot--phone img { display: block; width: 100%; height: auto; border-radius: 23px; }
div.shot--phone { display: grid; place-items: center; aspect-ratio: 9 / 19.5; }
a.shot--phone { cursor: zoom-in; }
.shots-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin: 26px 0; }
.shots-row .news-fig--phone, .post .shots-row .news-fig--phone { flex: 0 1 220px; min-width: 0; margin: 0; }
.shot--device { display: flex; justify-content: center; align-items: flex-start; padding: 16px 0 0;
  background: radial-gradient(120% 90% at 50% 0%, rgba(39,224,193,.14), transparent 60%), linear-gradient(160deg, var(--surface-2), var(--bg-2)); }
.shot--device img { height: 125%; width: auto; max-width: none; border: 5px solid #232a35; border-bottom: 0; border-radius: 18px 18px 0 0; }
.shot--device > span { margin: auto; }

/* digest: blocks by area */
.post__body .digest-area { display: flex; align-items: center; gap: 10px; font-size: .95rem; text-transform: uppercase; letter-spacing: .07em; color: var(--accent); margin: 46px 0 0; }
.post__body .digest-area svg { width: 18px; height: 18px; }
.digest-area + .digest-item { margin-top: 14px; }
.post__body .digest-item h3 { font-size: 1.3rem; margin: 10px 0; }
.toc__group { display: flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); margin: 12px 0 4px; }
.toc__group svg { width: 14px; height: 14px; }
.avail--app .store-badges { margin-top: 10px; }
.news-draft { background: rgba(232,179,94,.14); color: var(--amber); text-align: center; font-size: .82rem; font-weight: 600; padding: 6px 12px; }

@media (max-width: 860px) {
  .news-featured { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .news-grid { grid-template-columns: 1fr; gap: 12px; }
  .news-card { gap: 8px; }
  .news-card .shot { display: none; }      /* phones: compact cards, only the featured post keeps its picture */
  .shots-row { gap: 12px; }
  .shots-row .news-fig--phone, .post .shots-row .news-fig--phone { flex: 1 1 140px; max-width: 200px; }   /* two phone screens side by side */
  .post-nav { flex-direction: column; }
  .post-nav a { max-width: none; }
  .post-nav__next { text-align: left; margin-left: 0; }
}

/* ============================================================
   Responsive
   ============================================================ */
/* header: five nav items + language + CTA need ~1010px, so below 1081px the links move into the burger menu */
@media (max-width: 1080px) {
  .nav { height: 74px; }
  .nav .brand { gap: 12px; }
  .nav .brand__mark { height: 52px; width: auto; }
  .nav .brand__word { font-size: 2.1rem; }
  section[id], [id] { scroll-margin-top: 92px; }
  .nav__links { display: none; position: fixed; inset: 74px 0 auto; max-height: calc(100vh - 74px); max-height: calc(100dvh - 74px); overflow-y: auto; flex-direction: column; gap: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: 14px var(--pad-x) 24px; margin: 0; }
  body.menu-open .nav__links { display: flex; }
  .nav__links a { padding: 14px 8px; border-radius: 0; border-bottom: 1px solid var(--border); font-size: 1rem; }
  .nav__links { align-items: stretch; text-align: center; }
  .nav__actions { margin-left: auto; }
  .burger { display: grid; }
}
@media (min-width: 1081px) and (max-width: 1240px) {
  .nav .brand { gap: 12px; }
  .nav .brand__mark { height: 60px; }
  .nav .brand__word { font-size: 2.3rem; }
}
@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 480px; }
  .feat-grid, .cols-3, .tier-grid { grid-template-columns: 1fr 1fr; }
  .showcase, .calc { grid-template-columns: 1fr; }
  .showcase--rev .showcase__media { order: 0; }
  .tier-grid { grid-template-columns: 1fr; }
  .ladder { grid-template-columns: 1fr; }
  .rung { min-height: auto !important; }
  .journey__track { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .jstep__arrow { display: none; }
  .xlinks { grid-template-columns: 1fr; gap: 10px; }
  .xlink { padding: 14px 16px; }
  .addons { grid-template-columns: 1fr; }
}
/* phones: the header keeps brand + language + burger; the CTA moves into the menu */
@media (max-width: 640px) {
  .nav__actions > .btn { display: none; }
  .nav__links .nav__cta {
    display: inline-flex; justify-content: center; margin-top: 16px;
    height: 48px; padding: 0 20px; border-radius: var(--radius-pill); border-bottom: 0;
    font-size: 1rem; font-weight: 700; color: var(--accent-ink); background: var(--grad-accent);
  }
  .nav__links .nav__cta:hover { color: var(--accent-ink); background: var(--grad-accent); }
}
@media (max-width: 560px) {
  .cols-2, .cols-3, .cols-4, .feat-grid, .pricing-grid, .form-grid, .calc__split, .footer__grid, .steps, .journey__track { grid-template-columns: 1fr; }
  .hero__stats { gap: 22px; }
  .float-chip { display: none; }
  .lang__btn span.lang-name { display: inline; }
  h1 { font-size: clamp(2rem, 9vw, 2.6rem); }

  /* compact header */
  .nav { height: 64px; gap: 10px; }
  .nav .brand { gap: 10px; }
  .nav .brand__mark { height: 44px; }
  .nav .brand__word { font-size: 1.8rem; }
  .nav__actions { gap: 8px; }
  .nav__links { inset: 64px 0 auto; max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px); }
  section[id], [id] { scroll-margin-top: 80px; }

  /* stacked, full-width calls to action */
  .hero__cta .btn, .cta-band__actions .btn { flex: 1 1 100%; }
  .btn--lg { padding: 0 22px; font-size: 1rem; }

  /* growth journey → compact vertical timeline */
  .journey__track { gap: 14px; }
  .jstep { display: grid; grid-template-columns: 56px 1fr; column-gap: 14px; align-items: center; text-align: left; }
  .jstep__node { grid-column: 1; grid-row: 1 / span 2; width: 56px; height: 56px; margin: 0; border-radius: 16px; }
  .jstep__node svg { width: 24px; height: 24px; }
  .jstep__num { width: 22px; height: 22px; font-size: .72rem; top: -7px; left: -7px; }
  .jstep h4 { grid-column: 2; align-self: end; margin: 0; font-size: 1rem; }
  .jstep p { grid-column: 2; align-self: start; margin: 0; font-size: .82rem; }

  /* mock UIs */
  .tel-grid { grid-template-columns: 1fr 1fr; }
  .report__kpis { grid-template-columns: 1fr 1fr; }
  .cfunnel { column-gap: 10px; }
  .cfunnel__name { font-size: .74rem; }
  .kanban--board { grid-template-columns: repeat(5, 210px); min-width: 0; }
  .board-scroll { scroll-snap-type: x proximity; }
  .kanban--board .kanban__col { scroll-snap-align: start; }

  /* comparison modal → full screen */
  .modal { padding: 0; align-items: stretch; }
  .modal__box { width: 100%; max-height: none; height: 100vh; height: 100dvh; border-radius: 0; border: 0; }
  .modal__head { padding: 0 10px 0 2px; }
  .mx-tabs { flex: 1; }
  .mx-tabs button { flex: 1; padding: 19px 4px 17px; font-size: .9rem; }
  .modal__close { order: 2; }
  .mx-billing { order: 3; flex: 1 1 100%; margin: 0 6px 10px; }
  .mx-billing button { flex: 1; }
  .addon__p b { font-size: .98rem; }
  .matrix { min-width: 640px; font-size: .8rem; }
  .matrix th, .matrix td { padding: 9px 10px; }
  .matrix td:first-child, .matrix th:first-child { min-width: 136px; max-width: 150px; font-size: .78rem; line-height: 1.3; }
  .matrix-legend { gap: 12px; padding: 12px 14px; }

  /* no zoom-on-focus on iOS */
  .field input, .field select, .field textarea { font-size: 16px; }
}
@media (max-width: 400px) {
  :root { --pad-x: 16px; }
  .hero__cta .btn, .cta-band__actions .btn { white-space: normal; height: auto; min-height: var(--bh); padding-block: 10px; line-height: 1.2; }
  .btn--lg { padding-inline: 18px; font-size: .95rem; }
  .nav .brand__mark { height: 40px; }
  .nav .brand__word { font-size: 1.6rem; }
  .lang__btn { padding-inline: 10px; }
  h1 { font-size: clamp(1.85rem, 9.5vw, 2.3rem); }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal, .reveal-left, .reveal-right, .reveal-scale, .funnel__row, .kcard, .rung { opacity: 1 !important; transform: none !important; }
  .draw { stroke-dashoffset: 0 !important; }
}
