/* =========================================================
   HostVerdict — Nexcess vs Kinsta comparison
   ========================================================= */

:root {
  /* surfaces */
  --bg: #fbfaf7;
  --paper: #f3f1ea;
  --surface: #ffffff;
  --night: #0a0c11;
  --night-2: #12151d;

  /* ink */
  --ink: #0d0f14;
  --ink-2: #353a46;
  --muted: #646b78;
  --line: #e6e3da;
  --line-strong: #d6d2c6;

  --on-dark: #f4f2ee;
  --on-dark-2: rgba(244, 242, 238, .72);
  --on-dark-line: rgba(255, 255, 255, .12);

  /* providers (validated categorical pair) */
  --nx: #e8590c;
  --nx-strong: #cc470d;
  --nx-deep: #a8390a;
  --nx-soft: #fff0e6;
  --kn: #6741d9;
  --kn-soft: #f0ecff;

  --good: #15803d;

  /* type */
  --f-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --f-body: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --f-serif: "Instrument Serif", Georgia, serif;

  /* shape & motion */
  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --shadow: 0 1px 2px rgba(13, 15, 20, .04), 0 8px 24px -12px rgba(13, 15, 20, .12);
  --shadow-lg: 0 30px 80px -30px rgba(13, 15, 20, .35);
  --ease: cubic-bezier(.22, 1, .36, 1);

  --header-h: 68px;
  --gutter: clamp(16px, 4vw, 32px);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 700; letter-spacing: -0.025em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--nx); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
  text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }

[data-lucide], .lucide { width: 1.1em; height: 1.1em; stroke-width: 2; flex: none; }

/* ---------- atoms ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: #fff; --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: .7em 1.25em;
  border-radius: 999px; border: 1px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: .95rem; line-height: 1.1; letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s, box-shadow .25s, border-color .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--sm { min-height: 40px; padding: .55em 1em; font-size: .875rem; }
.btn--lg { min-height: 52px; padding: .9em 1.5em; font-size: 1rem; }
.btn--primary { --btn-bg: var(--nx-strong); box-shadow: 0 10px 30px -12px rgba(232, 89, 12, .7), inset 0 1px 0 rgba(255,255,255,.18); }
.btn--primary:hover { --btn-bg: var(--nx-deep); }
.btn--glass { --btn-bg: rgba(255,255,255,.08); --btn-bd: rgba(255,255,255,.22); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--glass:hover { --btn-bg: rgba(255,255,255,.16); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-strong); }
.btn--outline:hover { --btn-bd: var(--ink); }
.btn--dark { --btn-bg: var(--ink); }
.btn--dark:hover { --btn-bg: #000; }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); }

.linklike { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none; }
.linklike:hover { text-decoration: underline; }

.pill {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .45em .95em; border-radius: 999px;
  font-size: .82rem; font-weight: 500;
  border: 1px solid var(--line); background: var(--surface);
}
.pill--glass { color: var(--on-dark); background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.16); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }

.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; flex: none; }
.swatch--nx { background: var(--nx); }
.swatch--kn { background: var(--kn); }
.brand-tag { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; font-size: .9rem; }
.brand-tag--lg { font-family: var(--f-display); font-size: 1.35rem; letter-spacing: -0.02em; }
.brand-tag--lg .swatch { width: 14px; height: 14px; border-radius: 4px; }

.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .875rem; color: var(--ink-2); }
.legend > span { display: inline-flex; align-items: center; gap: 8px; }

.eyebrow { display: inline-block; font-family: var(--f-mono); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.fine { font-size: .8rem; color: var(--muted); line-height: 1.55; }
.fine a { color: var(--ink-2); }
.fine--center { text-align: center; margin-top: 20px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }

/* ---------- topbar & header ---------- */
.topbar { background: var(--night); color: var(--on-dark-2); font-size: .8rem; border-bottom: 1px solid var(--on-dark-line); position: relative; z-index: 60; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 8px; }
.topbar__inner > span { display: inline-flex; align-items: center; gap: 8px; }
.topbar a { color: var(--on-dark); text-underline-offset: 3px; white-space: nowrap; }

.header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  color: var(--on-dark);
  background: rgba(10, 12, 17, .35);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--on-dark-line);
  transition: background-color .35s, color .35s, border-color .35s;
}
.header.is-light { color: var(--ink); background: rgba(251, 250, 247, .82); border-bottom-color: var(--line); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__mark { width: 30px; height: 30px; }
.logo__word { font-family: var(--f-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.03em; }
.nav__list { display: flex; gap: 4px; }
.nav__list a { display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-size: .92rem; font-weight: 500; opacity: .82; transition: opacity .2s, background-color .2s; }
.nav__list a:hover { opacity: 1; background: rgba(127, 127, 127, .14); }
.header__actions { display: flex; align-items: center; gap: 10px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid currentColor; border-color: rgba(127,127,127,.35); background: transparent; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: calc(var(--header-h) * -1);
  padding-top: calc(var(--header-h) + clamp(48px, 9vw, 110px));
  background: var(--night); color: var(--on-dark);
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__photo { position: absolute; inset: -8% 0 auto; width: 100%; height: 116%; object-fit: cover; opacity: .38; filter: saturate(.7) contrast(1.05); }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,12,17,.55) 0%, rgba(10,12,17,.78) 55%, var(--night) 100%), linear-gradient(90deg, rgba(10,12,17,.92) 0%, rgba(10,12,17,.35) 70%); }
.hero__glow { position: absolute; width: 46vw; height: 46vw; max-width: 640px; max-height: 640px; border-radius: 50%; filter: blur(90px); opacity: .42; }
.hero__glow--nx { background: var(--nx); left: -12%; top: 20%; }
.hero__glow--kn { background: var(--kn); right: -10%; top: -10%; opacity: .38; }
.hero__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-bottom: clamp(56px, 8vw, 96px); }
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }
.hero__title { font-size: clamp(2.5rem, 6.2vw, 5.2rem); font-weight: 750; letter-spacing: -0.04em; line-height: .98; }
.hero__line { display: block; }
.hero__line + .hero__line { margin-top: .12em; font-size: .62em; font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; color: var(--on-dark-2); }
.vs-word { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--on-dark-2); letter-spacing: 0; padding-inline: .05em; }
.hero__title em, .verdict em {
  font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em;
  background: linear-gradient(90deg, #ff8a4c, #b69cff); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .06em;
}
.hero__lead { max-width: 56ch; font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: var(--on-dark-2); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__note { display: flex; align-items: flex-start; gap: 8px; font-size: .82rem; color: var(--on-dark-2); max-width: 60ch; }
.hero__note svg { margin-top: 2px; color: #4ade80; }
.hero__note a { color: var(--on-dark); }

/* versus card */
.vs-card {
  position: relative;
  padding: 22px; border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.12);
}
.vs-card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .8rem; color: var(--on-dark-2); margin-bottom: 18px; flex-wrap: wrap; }
.vs-card__date { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: .74rem; }
.vs-card__cols { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: stretch; }
.vs-col { padding: 18px 16px; border-radius: var(--r); background: rgba(10,12,17,.55); border: 1px solid rgba(255,255,255,.08); min-width: 0; }
.vs-col--nx { box-shadow: inset 0 3px 0 var(--nx); }
.vs-col--kn { box-shadow: inset 0 3px 0 var(--kn); }
.vs-col__plan { font-size: .78rem; color: var(--on-dark-2); margin-top: 6px; }
.vs-col__price { display: flex; align-items: baseline; margin: 14px 0 14px; font-family: var(--f-display); font-weight: 700; letter-spacing: -0.04em; }
.vs-col__price .cur { font-size: 1.4rem; opacity: .7; margin-right: 2px; }
.vs-col__price [data-count] { font-size: clamp(2.6rem, 4.5vw, 3.4rem); line-height: 1; font-variant-numeric: tabular-nums; }
.vs-col__price .per { font-family: var(--f-body); font-size: .85rem; font-weight: 500; letter-spacing: 0; color: var(--on-dark-2); margin-left: 4px; }
.vs-col__list { display: grid; gap: 8px; font-size: .84rem; color: var(--on-dark); }
.vs-col__list li { display: flex; align-items: center; gap: 8px; }
.vs-col__list svg { color: var(--on-dark-2); width: 15px; height: 15px; }
.vs-badge { align-self: center; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--on-dark); color: var(--ink); font-family: var(--f-display); font-weight: 800; font-size: .8rem; letter-spacing: 0; box-shadow: 0 0 0 6px rgba(255,255,255,.08); }
.vs-card__foot { margin-top: 14px; font-size: .74rem; color: var(--on-dark-2); }

/* marquee */
.marquee { border-top: 1px solid var(--on-dark-line); padding-block: 18px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; gap: 40px; padding-right: 40px; }
.marquee__group li { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; font-size: .92rem; color: var(--on-dark-2); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding-block: clamp(72px, 10vw, 128px); }
.section--tint { background: var(--paper); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); letter-spacing: -0.035em; }
.section-head p { margin-top: 16px; font-size: 1.06rem; color: var(--ink-2); }
.section-head p a { color: var(--ink); text-underline-offset: 3px; }
.section-head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section-head--row > div { max-width: 640px; }

/* scoreboard */
#glance .legend { margin-bottom: 16px; }
.scoreboard { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.score {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px;
  padding: 22px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color .25s, transform .35s var(--ease), box-shadow .35s;
}
.score:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow); }
.score__n { font-family: var(--f-mono); font-size: .8rem; color: var(--muted); }
.score__q h3 { font-size: 1.1rem; letter-spacing: -0.02em; }
.score__q p { margin-top: 4px; font-size: .9rem; color: var(--muted); }
.winner { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: .82rem; font-weight: 600; white-space: nowrap; }
.winner--nx { background: var(--nx-soft); }
.winner--kn { background: var(--kn-soft); }

/* pricing */
.pricing-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 20px; align-items: start; }
.chart-card, .calc { padding: clamp(20px, 3vw, 32px); margin: 0; position: relative; }
.chart-card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 26px; }
.chart-card__head h3, .calc h3 { font-size: 1.15rem; letter-spacing: -0.02em; }

.bar-chart { --label-w: 150px; position: relative; padding-bottom: 28px; }
.bar-chart__grid { position: absolute; left: var(--label-w); right: 44px; top: 0; bottom: 0; pointer-events: none; }
.bar-chart__tick { position: absolute; top: 0; bottom: 22px; width: 1px; background: var(--line); }
.bar-chart__tick span { position: absolute; bottom: -22px; left: 0; transform: translateX(-50%); font-family: var(--f-mono); font-size: .72rem; color: var(--muted); white-space: nowrap; }
.bar-chart__rows { position: relative; display: grid; gap: 6px; }
.bar-row { display: grid; grid-template-columns: var(--label-w) 1fr; align-items: center; min-height: 40px; cursor: default; border-radius: 8px; }
.bar-row__label { display: flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--ink-2); padding-right: 12px; min-width: 0; }
.bar-row__label span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row__track { position: relative; display: flex; align-items: center; margin-right: 44px; height: 40px; }
.bar-row__bar { height: 20px; border-radius: 0 4px 4px 0; transform-origin: left center; transition: filter .2s; }
.bar-row__bar--nx { background: var(--nx); }
.bar-row__bar--kn { background: var(--kn); }
.bar-row__val { margin-left: 8px; font-family: var(--f-mono); font-size: .82rem; font-weight: 500; color: var(--ink); white-space: nowrap; }
.bar-row:hover .bar-row__bar, .bar-row:focus-visible .bar-row__bar { filter: brightness(1.12); }
.bar-chart.is-hovering .bar-row:not(:hover):not(:focus-visible) .bar-row__bar { opacity: .45; }
.chart-tip {
  position: absolute; z-index: 5; pointer-events: none; min-width: 180px;
  padding: 12px 14px; border-radius: 12px; background: var(--ink); color: #fff; font-size: .8rem; line-height: 1.5;
  box-shadow: var(--shadow-lg); transform: translate(-50%, calc(-100% - 12px));
}
.chart-tip strong { display: flex; align-items: center; gap: 8px; font-size: .86rem; margin-bottom: 4px; }
.chart-tip dl { display: grid; grid-template-columns: auto auto; gap: 2px 14px; margin: 0; }
.chart-tip dt { color: rgba(255,255,255,.65); }
.chart-tip dd { margin: 0; text-align: right; font-family: var(--f-mono); }

.table-view { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.table-view summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: .88rem; font-weight: 500; color: var(--ink-2); list-style: none; }
.table-view summary::-webkit-details-marker { display: none; }
.table-view table { margin-top: 12px; font-size: .86rem; }
.table-view th, .table-view td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table-view th { font-weight: 600; color: var(--muted); font-size: .78rem; }
.table-scroll { overflow-x: auto; }

/* calculator */
.calc__controls { display: grid; gap: 16px; margin-top: 20px; }
.field { display: grid; gap: 8px; }
.field__label { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 500; color: var(--ink-2); }
.field__label output { font-weight: 600; color: var(--ink); }
.field select {
  appearance: none; -webkit-appearance: none; width: 100%; min-height: 46px; padding: 10px 40px 10px 14px;
  border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23353a46' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 14px center;
  font-size: .92rem; cursor: pointer; transition: border-color .2s;
}
.field select:hover { border-color: var(--ink-2); }
.seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); width: max-content; }
.seg button { border: 0; background: transparent; padding: 8px 18px; border-radius: 999px; font-size: .88rem; font-weight: 500; cursor: pointer; color: var(--ink-2); transition: background-color .25s, color .25s, box-shadow .25s; min-height: 36px; }
.seg button[aria-checked="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(13,15,20,.12); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--ink) var(--fill, 0%), var(--line) var(--fill, 0%)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: var(--line); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--ink); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); box-shadow: 0 2px 6px rgba(0,0,0,.15); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); }

.calc__out { margin: 24px 0 14px; padding: 18px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--line); display: grid; gap: 12px; }
.calc__row { display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 12px; }
.calc__name { display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 500; }
.calc__track { height: 20px; display: flex; align-items: center; }
.calc__bar { display: block; height: 20px; width: 0; border-radius: 0 4px 4px 0; transition: width .7s var(--ease); }
.calc__bar--nx { background: var(--nx); }
.calc__bar--kn { background: var(--kn); }
.calc__val { font-family: var(--f-mono); font-weight: 500; font-size: .95rem; min-width: 64px; text-align: right; font-variant-numeric: tabular-nums; }
.calc__summary { margin-top: 4px; padding-top: 12px; border-top: 1px dashed var(--line-strong); font-size: .95rem; color: var(--ink-2); }
.calc__summary strong { color: var(--ink); }

/* comparison table */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: .9rem; font-weight: 500; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__ui { position: relative; width: 44px; height: 26px; border-radius: 999px; background: var(--line-strong); transition: background-color .25s; flex: none; }
.switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .3s var(--ease); }
.switch input:checked + .switch__ui { background: var(--ink); }
.switch input:checked + .switch__ui::after { transform: translateX(18px); }
.switch input:focus-visible + .switch__ui { outline: 2px solid var(--nx); outline-offset: 3px; }

.table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); -webkit-overflow-scrolling: touch; }
.ctable { min-width: 680px; font-size: .92rem; }
.ctable th, .ctable td { padding: 15px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.ctable thead th { position: sticky; top: 0; background: var(--surface); font-size: .95rem; padding-block: 18px; border-bottom: 1px solid var(--line-strong); }
.ctable thead th:first-child { color: var(--muted); font-weight: 500; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; font-family: var(--f-mono); }
.ctable tbody th[scope="row"] { font-weight: 500; color: var(--ink-2); width: 30%; }
.ctable td { width: 35%; color: var(--ink); }
.ctable tbody tr:not(.ctable__group):hover { background: var(--bg); }
.ctable__group th { background: var(--paper); font-family: var(--f-mono); font-size: .74rem; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-block: 10px; }
.ctable tbody tr:last-child th, .ctable tbody tr:last-child td { border-bottom: 0; }
.ctable.is-diff tr[data-same] { display: none; }
.yes { display: inline-flex; align-items: flex-start; gap: 6px; }
.yes svg { color: var(--good); margin-top: 3px; }
.na { color: var(--muted); font-style: italic; }

/* features */
.feature { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.feature + .feature { margin-top: clamp(56px, 8vw, 96px); }
.feature--flip .feature__media { order: 2; }
.feature__media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: var(--line); }
.feature__media img { width: 100%; height: 118%; object-fit: cover; position: absolute; top: -9%; left: 0; }
.feature__chip { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(13,15,20,.72); color: #fff; font-size: .84rem; font-weight: 500; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.feature__body h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -0.03em; }
.feature__body > p { margin-top: 14px; color: var(--ink-2); font-size: 1.04rem; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
.duo__col { padding: 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.duo__col ul { margin-top: 12px; display: grid; gap: 8px; }
.duo__col li { position: relative; padding-left: 16px; font-size: .9rem; color: var(--ink-2); line-height: 1.45; }
.duo__col li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }

/* choose */
.choose { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.choose__card { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; padding: clamp(24px, 3.5vw, 40px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; }
.choose__card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; }
.choose__card--nx::before { background: var(--nx); }
.choose__card--kn::before { background: var(--kn); }
.choose__card--nx { background: linear-gradient(180deg, var(--nx-soft), var(--surface) 55%); }
.choose__card--kn { background: linear-gradient(180deg, var(--kn-soft), var(--surface) 55%); }
.checklist { display: grid; gap: 12px; flex: 1; }
.checklist li { display: flex; gap: 10px; color: var(--ink-2); }
.checklist svg { margin-top: 4px; color: var(--good); }

/* verdict */
.verdict { position: relative; isolation: isolate; overflow: hidden; background: var(--night); color: var(--on-dark); padding-block: clamp(80px, 12vw, 150px); }
.verdict__bg { position: absolute; inset: -10% 0 auto; width: 100%; height: 120%; object-fit: cover; opacity: .22; z-index: -1; filter: grayscale(.4); }
.verdict::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 20% 0%, rgba(232,89,12,.28), transparent 55%), radial-gradient(ellipse at 90% 100%, rgba(103,65,217,.3), transparent 55%), linear-gradient(180deg, rgba(10,12,17,.5), rgba(10,12,17,.85)); }
.verdict__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.verdict blockquote { margin: 0; }
.verdict blockquote p { font-family: var(--f-display); font-size: clamp(1.5rem, 3.2vw, 2.5rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.03em; max-width: 34ch; }
.verdict__by { color: var(--on-dark-2); font-size: .9rem; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { padding: 28px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.step__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--paper); margin-bottom: 20px; }
.step__icon svg { width: 22px; height: 22px; }
.step h3 { font-size: 1.2rem; }
.step p { margin-top: 10px; color: var(--ink-2); font-size: .95rem; }

/* faq */
.faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq-layout .section-head { position: sticky; top: calc(var(--header-h) + 24px); margin-bottom: 0; }
.faq { display: grid; gap: 10px; }
.faq details { border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); transition: border-color .25s, box-shadow .25s; }
.faq details[open] { border-color: var(--line-strong); box-shadow: var(--shadow); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.02rem; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { transition: transform .35s var(--ease); color: var(--muted); }
.faq details[open] summary svg { transform: rotate(45deg); color: var(--ink); }
.faq__a { padding: 0 22px 22px; color: var(--ink-2); }
.faq__a a { color: var(--ink); text-underline-offset: 3px; }

/* cta band */
.cta-band { padding-block: clamp(56px, 8vw, 88px); background: linear-gradient(120deg, #f06a1f 0%, #e8590c 40%, #7d4fe0 100%); color: #fff; }
.cta-band__inner { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); letter-spacing: -0.035em; max-width: 18ch; }
.cta-band p { margin-top: 10px; opacity: .9; }
.cta-band__btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* footer */
.footer { background: var(--night); color: var(--on-dark-2); padding-top: clamp(56px, 8vw, 88px); font-size: .9rem; }
.footer a { color: var(--on-dark-2); text-decoration: none; }
.footer a:hover { color: var(--on-dark); text-decoration: underline; text-underline-offset: 3px; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--on-dark-line); }
.footer__brand p { margin-top: 14px; max-width: 34ch; }
.logo--light { color: var(--on-dark); }
.footer__nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer h4 { font-family: var(--f-mono); font-size: .74rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark); margin-bottom: 14px; }
.footer__nav ul { display: grid; gap: 8px; }
.footer .linklike { color: var(--on-dark-2); font-size: inherit; }
.footer .linklike:hover { color: var(--on-dark); }
.footer__legal { display: grid; gap: 12px; padding-block: 32px; border-bottom: 1px solid var(--on-dark-line); font-size: .8rem; line-height: 1.65; }
.footer__legal strong { color: var(--on-dark); font-weight: 600; }
.footer__legal a { text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 24px 32px; font-size: .8rem; }

/* cookie banner + modal */
.cookie {
  position: fixed; z-index: 90; left: 16px; right: 16px; bottom: 16px; margin-inline: auto; max-width: 980px;
  display: flex; align-items: center; gap: 20px 28px; flex-wrap: wrap; justify-content: space-between;
  padding: 20px 22px; border-radius: var(--r-lg);
  background: rgba(18, 21, 29, .96); color: var(--on-dark); border: 1px solid var(--on-dark-line);
  box-shadow: var(--shadow-lg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  animation: cookieIn .6s var(--ease) both;
}
@keyframes cookieIn { from { opacity: 0; transform: translateY(24px); } }
.cookie__text { flex: 1 1 380px; }
.cookie h2 { font-size: 1.05rem; margin-bottom: 6px; }
.cookie p { font-size: .86rem; color: var(--on-dark-2); }
.cookie a { color: var(--on-dark); }
.cookie__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie .btn--outline, .cookie-modal .btn--outline { --btn-fg: var(--on-dark); --btn-bd: rgba(255,255,255,.25); }
.cookie .btn--outline:hover, .cookie-modal .btn--outline:hover { --btn-bd: var(--on-dark); }

.cookie-modal { width: min(560px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--on-dark-line); border-radius: var(--r-lg); background: var(--night-2); color: var(--on-dark); box-shadow: var(--shadow-lg); }
.cookie-modal::backdrop { background: rgba(10,12,17,.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.cookie-modal__inner { padding: 26px; display: grid; gap: 14px; }
.cookie-modal h2 { font-size: 1.3rem; }
.cookie-modal > form > p { color: var(--on-dark-2); font-size: .9rem; }
.pref { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 16px; border-radius: var(--r); background: rgba(255,255,255,.04); border: 1px solid var(--on-dark-line); cursor: pointer; }
.pref h3 { font-size: .98rem; font-family: var(--f-body); font-weight: 600; letter-spacing: 0; }
.pref p { font-size: .82rem; color: var(--on-dark-2); margin-top: 2px; }
.pref__always { font-size: .78rem; font-family: var(--f-mono); color: #4ade80; white-space: nowrap; }
.cookie-modal .switch__ui { background: rgba(255,255,255,.2); }
.cookie-modal .switch input:checked + .switch__ui { background: var(--nx-strong); }
.cookie-modal__btns { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 6px; }

/* ---------- legal pages ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; margin-top: calc(var(--header-h) * -1); padding: calc(var(--header-h) + clamp(48px, 7vw, 88px)) 0 clamp(40px, 6vw, 72px); background: var(--night); color: var(--on-dark); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 10% 0%, rgba(232,89,12,.3), transparent 55%), radial-gradient(ellipse at 100% 20%, rgba(103,65,217,.32), transparent 50%); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); letter-spacing: -0.04em; margin-top: 18px; }
.page-hero p { margin-top: 14px; color: var(--on-dark-2); max-width: 62ch; }
.breadcrumbs { display: flex; gap: 8px; font-size: .84rem; color: var(--on-dark-2); }
.breadcrumbs a { color: var(--on-dark); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

.legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); padding-block: clamp(48px, 7vw, 88px); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); font-size: .86rem; }
.toc h2 { font-family: var(--f-mono); font-size: .74rem; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; }
.toc ol { display: grid; gap: 2px; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; line-height: 1.4; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--ink); border-left-color: var(--nx); font-weight: 500; }

.prose { max-width: 74ch; color: var(--ink-2); font-size: 1rem; }
.prose > * + * { margin-top: 1em; }
.prose h2 { color: var(--ink); font-size: 1.55rem; letter-spacing: -0.025em; margin-top: 2.2em; padding-top: .2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { color: var(--ink); font-size: 1.15rem; letter-spacing: -0.015em; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; list-style: disc; }
.prose ol { padding-left: 1.2em; list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--muted); }
.prose a { color: var(--ink); text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.prose table { font-size: .9rem; border: 1px solid var(--line); border-radius: var(--r-sm); display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose thead th { background: var(--paper); color: var(--ink); font-weight: 600; white-space: nowrap; }
.callout { padding: 18px 20px; border-radius: var(--r); background: var(--nx-soft); border: 1px solid #fbd5bd; color: var(--ink); }
.callout--neutral { background: var(--paper); border-color: var(--line); }
.ph { background: #fff4c2; border-radius: 4px; padding: 0 4px; color: var(--ink); font-weight: 500; }
.updated { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: .78rem; color: var(--on-dark-2); margin-top: 18px; }

.contact-card { display: grid; gap: 14px; padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.contact-card form { display: grid; gap: 12px; }
.contact-card input, .contact-card textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg); font: inherit; }
.contact-card textarea { min-height: 140px; resize: vertical; }

/* ---------- Lenis smooth scroll (from lenis@1.1.13/dist/lenis.css) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ---------- reveal (progressive enhancement) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-hero], .js [data-hero-card] { opacity: 0; }
/* safety net: if scripts never run, show content after a moment */
.js:not(.motion-ready) [data-reveal],
.js:not(.motion-ready) [data-hero],
.js:not(.motion-ready) [data-hero-card] { animation: failsafe 0s 2.5s forwards; }
@keyframes failsafe { to { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; }
  .vs-card { max-width: 560px; }
  .pricing-grid { grid-template-columns: 1fr; }
}
@media (max-width: 920px) {
  .nav { position: absolute; top: var(--header-h); left: 0; right: 0; }
  .nav__list {
    flex-direction: column; gap: 0; padding: 12px var(--gutter) 20px;
    background: rgba(251, 250, 247, .98); color: var(--ink); border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px -20px rgba(0,0,0,.25);
    clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .4s var(--ease), visibility .4s;
  }
  .nav__list.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
  .nav__list a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; opacity: 1; }
  .burger { display: block; }
  .scoreboard { grid-template-columns: 1fr; }
  .feature, .feature--flip { grid-template-columns: 1fr; }
  .feature--flip .feature__media { order: 0; }
  .choose { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .faq-layout { grid-template-columns: 1fr; }
  .faq-layout .section-head { position: static; }
  .footer__top { grid-template-columns: 1fr; }
  .legal { grid-template-columns: 1fr; }
  .toc { position: static; padding: 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .topbar__inner { flex-direction: column; align-items: flex-start; gap: 4px; padding-block: 8px; }
  .header__actions .btn { display: none; }
  .hero__ctas .btn { width: 100%; }
  .vs-card { padding: 14px; }
  .vs-card__cols { grid-template-columns: 1fr 1fr; }
  .vs-badge { display: none; }
  .vs-col { padding: 14px 12px; }
  .vs-col__list { font-size: .78rem; }
  .score { grid-template-columns: 1fr auto; gap: 12px; padding: 18px; }
  .score__n { display: none; }
  .bar-chart { --label-w: 108px; }
  .bar-row__label { font-size: .78rem; }
  .duo { grid-template-columns: 1fr; }
  .calc__row { grid-template-columns: 76px 1fr auto; gap: 8px; }
  .footer__nav { grid-template-columns: 1fr 1fr; }
  .cookie { left: 8px; right: 8px; bottom: 8px; padding: 16px; }
  .cookie__btns { width: 100%; }
  .cookie__btns .btn { flex: 1 1 auto; }
  .section-head--row .switch { margin-top: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee__group[aria-hidden="true"] { display: none; }
  .js [data-reveal], .js [data-hero], .js [data-hero-card] { opacity: 1; transform: none; }
}

/* comparison table → stacked rows on phones (no sideways scrolling) */
@media (max-width: 640px) {
  .ctable { min-width: 0; font-size: .9rem; }
  .ctable, .ctable thead, .ctable tbody { display: block; }
  .ctable tr { display: grid; grid-template-columns: 1fr 1fr; }
  .ctable thead th:first-child { display: none; }
  .ctable thead th { position: static; padding: 14px 16px; }
  .ctable thead th:last-child, .ctable td:last-child { border-left: 1px solid var(--line); }
  .ctable tbody th[scope="row"] { grid-column: 1 / -1; width: auto; padding: 14px 16px 4px; border-bottom: 0; font-size: .8rem; color: var(--muted); }
  .ctable td { width: auto; padding: 4px 16px 14px; }
  .ctable__group th { grid-column: 1 / -1; padding-inline: 16px; }
}
