/* ==========================================================================
   HostDuel — SiteGround vs Hostinger comparison
   ========================================================================== */

:root {
  /* Surfaces & text */
  --bg: #f6f8fb;
  --surface: #ffffff;
  --tint: #eef2f8;
  --ink: #0b1220;
  --text: #1c2536;
  --muted: #566176;
  --line: #e2e8f0;
  --line-strong: #cfd8e3;

  /* Dark sections */
  --dark: #070d1a;
  --dark-2: #0f1a2e;
  --on-dark: #eef2f8;
  --on-dark-muted: #a9b5c9;

  /* Provider identity (also used in the chart) */
  --sg: #2a78d6;
  --sg-strong: #1d5fb0;
  --sg-soft: #e8f1fc;
  --hg: #eb6834;
  --hg-strong: #b93f0d;
  --hg-soft: #fdefe8;

  /* Brand & status */
  --accent: #10b981;
  --accent-strong: #047857;
  --accent-soft: #e3f8ef;
  --warn: #a15c07;
  --warn-soft: #fff6e5;
  --bad: #b42318;

  /* Type */
  --font-head: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Shape */
  --radius-lg: 24px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, .06);
  --shadow: 0 1px 2px rgba(11, 18, 32, .05), 0 12px 32px -14px rgba(11, 18, 32, .22);
  --shadow-lg: 0 30px 80px -30px rgba(3, 8, 20, .6);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
a { color: var(--sg-strong); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
button { font: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; }
table { border-collapse: collapse; width: 100%; }
small { font-size: .85em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

[tabindex="-1"]:focus { outline: none; }

/* Hero is hidden until GSAP animates it in; shown immediately without motion, and after 3s as a safety net */
.js [data-hero], .js [data-hero-card] { opacity: 0; animation: reveal-fallback 0s 3s forwards; }
.no-motion [data-hero], .no-motion [data-hero-card] { opacity: 1; animation: none; }
@keyframes reveal-fallback { to { opacity: 1; visibility: visible; } }

.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: 10px; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 860px; }
.muted { color: var(--muted); }

/* ---------- Scroll progress ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--sg), var(--accent), var(--hg)); }

/* ---------- Ad disclosure bar ---------- */
.adbar { background: var(--warn-soft); border-bottom: 1px solid #f3dfb4; color: #5c3b06; font-size: .84rem; line-height: 1.5; }
.adbar__inner { display: flex; gap: 10px; align-items: flex-start; padding-top: 9px; padding-bottom: 9px; }
.adbar svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--warn); }
.adbar p { margin: 0; }
.adbar a { color: #5c3b06; font-weight: 600; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; }
.logo b { color: var(--accent-strong); font-weight: 800; }
.logo__mark { width: 32px; height: 32px; }
.logo--light { color: #fff; }
.logo--light b { color: #34d399; }
.logo:hover { color: var(--ink); }
.logo--light:hover { color: #fff; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 10px 14px; border-radius: 10px; transition: background .2s, color .2s; }
.nav a:not(.btn):hover { background: var(--tint); color: var(--ink); }
.nav__cta { margin-left: 8px; }

.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 12px; border: 1px solid transparent; font-family: var(--font-head); font-weight: 700; font-size: .95rem; line-height: 1.2; text-decoration: none; white-space: nowrap; transition: transform .2s var(--ease), box-shadow .2s, background .2s, color .2s, border-color .2s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .9rem; }
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { color: #fff; box-shadow: 0 10px 24px -10px rgba(11, 18, 32, .6); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { color: #fff; background: #1b2740; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--tint); color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { color: var(--ink); box-shadow: 0 12px 30px -10px rgba(255, 255, 255, .35); }
.btn-outline-light { background: rgba(255, 255, 255, .04); color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn-outline-light:hover { color: #fff; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .5); }
.btn-sg { background: var(--sg-strong); color: #fff; }
.btn-sg:hover { color: #fff; background: #174e93; box-shadow: 0 12px 26px -12px rgba(29, 95, 176, .8); }
.btn-hg { background: var(--hg-strong); color: #fff; }
.btn-hg:hover { color: #fff; background: #9a330a; box-shadow: 0 12px 26px -12px rgba(185, 63, 13, .8); }
.linklike { background: none; border: 0; padding: 0; color: inherit; text-align: left; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Pills / tags ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-family: var(--font-head); font-weight: 700; font-size: .82rem; line-height: 1.4; }
.pill--sg { background: var(--sg-soft); color: var(--sg-strong); box-shadow: inset 0 0 0 1px rgba(42, 120, 214, .25); }
.pill--hg { background: var(--hg-soft); color: var(--hg-strong); box-shadow: inset 0 0 0 1px rgba(235, 104, 52, .28); }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.tag svg { width: 14px; height: 14px; }
.tag--sg { background: rgba(42, 120, 214, .18); color: #a9cdf7; }
.tag--hg { background: rgba(235, 104, 52, .18); color: #ffc2a6; }
.eyebrow { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-strong); margin-bottom: 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--dark); color: var(--on-dark); padding: clamp(56px, 9vw, 112px) 0 clamp(64px, 9vw, 120px); }
.hero__bg { position: absolute; inset: 0; z-index: -3; }
.hero__bg img { width: 100%; height: 120%; object-fit: cover; opacity: .38; transform-origin: center top; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(60% 70% at 15% 20%, rgba(42, 120, 214, .35), transparent 60%),
  radial-gradient(50% 60% at 90% 80%, rgba(235, 104, 52, .25), transparent 60%),
  linear-gradient(180deg, rgba(7, 13, 26, .55) 0%, rgba(7, 13, 26, .92) 100%); }
.hero__grid { position: absolute; inset: 0; z-index: -1; opacity: .5; 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: 56px 56px; mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%); }
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5.2vw, 3.9rem); font-weight: 800; letter-spacing: -.035em; margin-bottom: 20px; }
.vs-word { display: inline-block; font-size: .62em; vertical-align: .18em; padding: .05em .45em; border-radius: 999px; background: linear-gradient(90deg, var(--sg), var(--hg)); color: #fff; letter-spacing: 0; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--on-dark-muted); max-width: 600px; margin-bottom: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.hero__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--on-dark); font-size: .92rem; }
.hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero__facts svg { width: 18px; height: 18px; color: #34d399; }

.chip { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; margin-bottom: 22px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); color: var(--on-dark); font-size: .85rem; font-weight: 500; }
.chip__dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .2); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } }

/* VS card (glass) */
.vs-card { position: relative; padding: 22px; border-radius: var(--radius-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: var(--shadow-lg); }
.vs-card__cols { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.vs-side { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 20px 18px; border-radius: 18px; background: rgba(7, 13, 26, .55); border: 1px solid rgba(255, 255, 255, .08); }
.vs-side--sg { box-shadow: inset 0 3px 0 var(--sg); }
.vs-side--hg { box-shadow: inset 0 3px 0 var(--hg); }
.vs-side h2 { color: #fff; font-size: 1.35rem; margin: 6px 0 0; }
.vs-side__score { margin: 0; font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; line-height: 1; color: #fff; }
.vs-side__score small { font-size: .95rem; color: var(--on-dark-muted); font-weight: 600; margin-left: 2px; }
.vs-side__best { margin: 0; color: var(--on-dark); font-size: .9rem; font-weight: 500; }
.vs-side__price { margin: 4px 0 10px; color: var(--on-dark-muted); font-size: .88rem; line-height: 1.45; }
.vs-side__price strong { color: #fff; font-size: 1.15rem; }
.vs-side .btn { margin-top: auto; padding-left: 12px; padding-right: 12px; }
.vs-badge { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--ink); font-family: var(--font-head); font-weight: 800; font-size: .9rem; box-shadow: 0 8px 24px rgba(0, 0, 0, .35), 0 0 0 6px rgba(255, 255, 255, .08); z-index: 2; }
.vs-card__note { margin: 14px 4px 0; font-size: .78rem; color: var(--on-dark-muted); line-height: 1.5; }
.vs-card__note a { color: #fff; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--tint { background: var(--tint); }
.section__head { max-width: 760px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.section__head h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 800; }
.section__head p:not(.eyebrow) { color: var(--muted); font-size: 1.06rem; margin: 0; }
.section__head--left { text-align: left; margin-left: 0; }
.section__head--light h2 { color: #fff; }
.section__head--light .eyebrow { color: #34d399; }

/* ---------- Verdict ---------- */
.verdict { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.verdict__card { position: relative; display: flex; flex-direction: column; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.verdict__card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; }
.verdict__card--sg::before { background: var(--sg); }
.verdict__card--hg::before { background: var(--hg); }
.verdict__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.verdict__score { color: var(--muted); font-weight: 600; }
.verdict__score b { font-family: var(--font-head); font-size: 1.6rem; color: var(--ink); }
.verdict__card h3 { font-size: 1.4rem; }
.verdict__card .btn { align-self: flex-start; margin-top: auto; }

.checklist { list-style: none; display: grid; gap: 12px; margin: 6px 0 22px; }
.checklist li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; }
.checklist svg { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); margin-top: 1px; }
.checklist--sm { gap: 10px; font-size: .95rem; }
.tradeoff { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--warn-soft); color: #5c3b06; font-size: .92rem; margin-bottom: 22px; }
.tradeoff svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--warn); }

/* ---------- Scorecard ---------- */
.scores { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.scores .section__head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 32px); }
.scores__legend { display: flex; gap: 20px; margin-top: 24px; font-weight: 600; font-size: .92rem; }
.scores__legend span { display: inline-flex; align-items: center; gap: 8px; }
.swatch { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.swatch--sg { background: var(--sg); }
.swatch--hg { background: var(--hg); }
.scores__list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); }
.score-row { padding: 16px 0; border-bottom: 1px solid var(--line); }
.score-row:first-child { padding-top: 0; }
.score-row__label { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.score-row__label svg { width: 20px; height: 20px; color: var(--muted); }
.bar { display: grid; grid-template-columns: 92px 1fr 36px; gap: 12px; align-items: center; font-size: .86rem; color: var(--muted); }
.bar + .bar { margin-top: 6px; }
.bar b { color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.bar__track { height: 10px; border-radius: 999px; background: var(--tint); overflow: hidden; }
.bar__fill { display: block; height: 100%; width: calc(var(--v) * 1%); border-radius: 999px; transform-origin: 0 50%; }
.bar__fill--sg { background: var(--sg); }
.bar__fill--hg { background: var(--hg); }
.score-total { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.score-total div { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--tint); font-weight: 600; font-size: .92rem; }
.score-total div:first-child { box-shadow: inset 4px 0 0 var(--sg); }
.score-total div:last-child { box-shadow: inset 4px 0 0 var(--hg); }
.score-total b { font-family: var(--font-head); font-size: 1.5rem; color: var(--ink); }

/* ---------- Infrastructure band ---------- */
.band { position: relative; isolation: isolate; overflow: hidden; background: var(--dark); color: var(--on-dark); padding: clamp(72px, 10vw, 128px) 0; }
.band__bg { position: absolute; inset: 0; z-index: -2; }
.band__bg img { width: 100%; height: 120%; object-fit: cover; opacity: .55; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 13, 26, .85), rgba(7, 13, 26, .55) 50%, rgba(7, 13, 26, .9)); }
.infra { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.infra__col { padding: clamp(22px, 3vw, 32px); border-radius: var(--radius-lg); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.infra__col h3 { margin-bottom: 20px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0; }
.stats div { padding: 16px; border-radius: 14px; background: rgba(7, 13, 26, .5); }
.stats dt { font-size: .8rem; color: var(--on-dark-muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; margin-bottom: 4px; }
.stats dd { margin: 0; font-family: var(--font-head); font-weight: 800; font-size: clamp(1.1rem, 2vw, 1.45rem); color: #fff; line-height: 1.25; }
.stats dd small { font-weight: 600; color: var(--on-dark-muted); font-size: .7em; }
.band__note { margin: 24px 0 0; text-align: center; font-size: .82rem; color: var(--on-dark-muted); }

/* ---------- Comparison table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); -webkit-overflow-scrolling: touch; }
.table-wrap:focus-visible { outline-offset: 4px; }
.ctable { min-width: 720px; font-size: .95rem; }
.ctable th, .ctable td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.ctable thead th { position: sticky; top: 0; background: var(--surface); padding-top: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line-strong); }
.ctable thead th:first-child { font-family: var(--font-head); color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.ctable tbody th[scope="row"] { width: 24%; font-family: var(--font-head); font-weight: 700; color: var(--ink); }
.ctable td { width: 38%; }
.ctable td small { color: var(--muted); }
.ctable tbody tr:not(.ctable__group):hover { background: #fafbfd; }
.ctable__group th { background: var(--tint); color: var(--muted); font-family: var(--font-head); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; padding-top: 12px; padding-bottom: 12px; }
.ctable td.win { background: linear-gradient(90deg, rgba(16, 185, 129, .07), transparent 70%); }
.ctable td.win::after { content: "Edge"; display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); font-family: var(--font-head); font-weight: 700; font-size: .72rem; vertical-align: 1px; }
.edge-inline { display: inline-block; padding: 0 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); font-family: var(--font-head); font-weight: 700; font-size: .8rem; }
.yes, .no { display: inline-flex; align-items: center; gap: 8px; }
.yes svg, .no svg { width: 18px; height: 18px; flex: none; }
.yes svg { color: var(--accent-strong); }
.no svg { color: var(--muted); }
.no { color: var(--muted); }
.table-hint { display: none; align-items: center; justify-content: center; gap: 8px; margin: -12px 0 12px; font-size: .85rem; color: var(--muted); }
.table-hint svg { width: 18px; height: 18px; }
.fineprint { margin: 16px 0 0; font-size: .82rem; color: var(--muted); text-align: center; }

/* ---------- Pricing ---------- */
.segmented { display: flex; width: max-content; max-width: 100%; margin: 0 auto 28px; padding: 5px; gap: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.segmented button { min-height: 42px; padding: 8px 20px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-family: var(--font-head); font-weight: 700; font-size: .92rem; transition: background .25s var(--ease), color .25s; }
.segmented button:hover { color: var(--ink); }
.segmented button[aria-selected="true"] { background: var(--ink); color: #fff; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 920px; margin: 0 auto; }
.plan { display: flex; flex-direction: column; padding: clamp(22px, 3vw, 32px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.plan--sg { border-top: 4px solid var(--sg); }
.plan--hg { border-top: 4px solid var(--hg); }
.plan header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.plan header h3 { margin: 0; font-size: 1.3rem; }
.plan__price { margin: 0; color: var(--muted); font-weight: 600; }
.plan__price span { font-family: var(--font-head); font-weight: 800; font-size: 2.8rem; line-height: 1; color: var(--ink); letter-spacing: -.03em; }
.plan__renew { margin: 8px 0 18px; padding-bottom: 18px; border-bottom: 1px dashed var(--line-strong); font-size: .9rem; color: var(--muted); }
.plan__renew b { color: var(--ink); }
.plan .btn { margin-top: auto; }

.cost { margin-top: clamp(40px, 6vw, 64px); padding: clamp(20px, 3vw, 36px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.cost__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: flex-end; margin-bottom: 24px; }
.cost__head h3 { font-size: 1.4rem; margin-bottom: 4px; }
.cost__head p { margin: 0; }
.cost__tiles { display: flex; gap: 12px; flex-wrap: wrap; }
.tile { min-width: 170px; padding: 12px 16px; border-radius: 14px; background: var(--tint); }
.tile span { display: block; font-size: .8rem; color: var(--muted); font-weight: 600; }
.tile b { font-family: var(--font-head); font-size: 1.5rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.tile--sg { box-shadow: inset 4px 0 0 var(--sg); }
.tile--hg { box-shadow: inset 4px 0 0 var(--hg); }
.cost__chart { position: relative; height: clamp(260px, 38vw, 380px); }
.cost__table { margin-top: 18px; }
.cost__table summary { cursor: pointer; font-weight: 600; color: var(--sg-strong); width: max-content; padding: 6px 0; }
.table-wrap--plain { box-shadow: none; margin-top: 10px; border-radius: var(--radius); }
.mini-table th, .mini-table td { padding: 10px 16px; border-bottom: 1px solid var(--line); text-align: left; font-variant-numeric: tabular-nums; }
.mini-table thead th { background: var(--tint); font-family: var(--font-head); font-size: .85rem; }
.cost .fineprint { text-align: left; }

/* ---------- Feature tabs ---------- */
.tabs__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 28px; }
.tabs__list button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-family: var(--font-head); font-weight: 700; font-size: .92rem; transition: background .25s, color .25s, border-color .25s; }
.tabs__list button svg { width: 18px; height: 18px; }
.tabs__list button:hover { border-color: var(--line-strong); }
.tabs__list button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tabs__panel { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(18px, 3vw, 28px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.tabs__panel[hidden] { display: none; }
.tabs__media { margin: 0; border-radius: 18px; overflow: hidden; aspect-ratio: 25 / 18; background: var(--tint); }
.tabs__media img { width: 100%; height: 100%; object-fit: cover; }
.tabs__body h3 { font-size: 1.6rem; margin-top: 14px; }
.tabs__body > p { color: var(--muted); }
.edge-badge { display: inline-block; padding: 5px 12px; border-radius: 999px; font-family: var(--font-head); font-weight: 700; font-size: .8rem; }
.edge-badge--sg { background: var(--sg-soft); color: var(--sg-strong); }
.edge-badge--hg { background: var(--hg-soft); color: var(--hg-strong); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.split > div { padding: 16px; border-radius: 14px; background: var(--tint); }
.split h4 { font-size: .95rem; margin-bottom: 10px; }
.split > div:first-child h4 { color: var(--sg-strong); }
.split > div:last-child h4 { color: var(--hg-strong); }
.dots { list-style: none; display: grid; gap: 8px; font-size: .92rem; }
.dots li { position: relative; padding-left: 16px; }
.dots li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }

/* ---------- Pros & cons ---------- */
.pc { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pc__card { padding: clamp(22px, 3vw, 32px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.pc__card h3 { margin-bottom: 18px; }
.pc__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pc__h { display: flex; align-items: center; gap: 8px; font-size: 1rem; }
.pc__h svg { width: 18px; height: 18px; }
.pc__h--pro { color: var(--accent-strong); }
.pc__h--con { color: var(--bad); }
.pclist { list-style: none; display: grid; gap: 10px; font-size: .94rem; }
.pclist li { position: relative; padding-left: 22px; }
.pclist li::before { position: absolute; left: 0; top: 0; font-weight: 800; font-family: var(--font-head); }
.pclist--pro li::before { content: "+"; color: var(--accent-strong); }
.pclist--con li::before { content: "−"; color: var(--bad); }

/* ---------- Use cases ---------- */
.uses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.use { display: flex; flex-direction: column; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.use:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -24px rgba(11, 18, 32, .35); }
.use figure { margin: 0; aspect-ratio: 10 / 7; overflow: hidden; background: var(--tint); }
.use img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.use:hover img { transform: scale(1.05); }
.use__body { padding: 20px; }
.use__body h3 { font-size: 1.12rem; margin: 12px 0 8px; }
.use__body p { margin: 0; color: var(--muted); font-size: .93rem; }

/* ---------- Methodology ---------- */
.method { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.method__media { margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); background: var(--tint); }
.method__media img { width: 100%; height: 100%; object-fit: cover; }
.method__body h2 { font-size: clamp(1.75rem, 3.4vw, 2.4rem); font-weight: 800; }
.steps { list-style: none; counter-reset: s; display: grid; gap: 16px; margin: 20px 0 24px; }
.steps li { counter-increment: s; position: relative; padding-left: 48px; color: var(--muted); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--ink); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: .9rem; }
.steps b { color: var(--ink); }
.method__note { display: flex; gap: 12px; padding: 16px; border-radius: 14px; background: var(--accent-soft); color: #064e3b; font-size: .94rem; margin: 0; }
.method__note svg { width: 22px; height: 22px; flex: none; color: var(--accent-strong); }
.method__note a { color: #064e3b; font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: box-shadow .25s, border-color .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; min-height: 56px; padding: 16px 22px; cursor: pointer; list-style: none; font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 1.04rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; flex: none; color: var(--muted); transition: transform .3s var(--ease); }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq__a { padding: 0 22px 18px; color: var(--muted); }
.faq__a p { margin: 0; }

/* ---------- Final CTA ---------- */
.cta { position: relative; isolation: isolate; overflow: hidden; background: var(--dark); color: var(--on-dark); padding: clamp(72px, 10vw, 128px) 0; text-align: center; }
.cta__bg { position: absolute; inset: 0; z-index: -2; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 80% at 50% 0%, rgba(16, 185, 129, .25), transparent 60%), linear-gradient(180deg, rgba(7, 13, 26, .75), rgba(7, 13, 26, .95)); }
.cta h2 { color: #fff; font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 800; }
.cta p { color: var(--on-dark-muted); font-size: 1.08rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 28px 0 16px; }
.cta__fine { font-size: .82rem !important; }

/* ---------- Footer ---------- */
.footer { background: #050a14; color: var(--on-dark-muted); padding: 64px 0 32px; font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer__brand p { margin-top: 14px; max-width: 320px; }
.footer h3 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer a, .footer .linklike { color: var(--on-dark-muted); text-decoration: none; }
.footer a:hover, .footer .linklike:hover { color: #fff; text-decoration: underline; }
.footer__legal { padding-top: 28px; font-size: .82rem; line-height: 1.65; }
.footer__legal strong { color: var(--on-dark); }
.footer__bottom { margin: 20px 0 0; }

/* ---------- Cookie consent ---------- */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 150; display: flex; gap: 20px; align-items: center; justify-content: space-between; max-width: 1100px; margin: 0 auto; padding: 20px 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 24px 60px -20px rgba(11, 18, 32, .45); }
.consent[hidden] { display: none; }
.consent h2 { font-size: 1.05rem; margin-bottom: 4px; }
.consent p { margin: 0; font-size: .9rem; color: var(--muted); }
.consent__actions { display: flex; gap: 8px; flex: none; flex-wrap: wrap; }
.consent-dialog { width: min(560px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 20px; box-shadow: 0 40px 100px -30px rgba(3, 8, 20, .6); color: var(--text); }
.consent-dialog::backdrop { background: rgba(7, 13, 26, .55); backdrop-filter: blur(4px); }
.consent-dialog__form { padding: 24px; }
.consent-dialog header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.consent-dialog header h2 { margin: 0; font-size: 1.3rem; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 12px; background: var(--tint); color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }
.consent-opt { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.consent-opt h3 { font-size: 1rem; margin-bottom: 2px; }
.consent-opt p { margin: 0; font-size: .88rem; color: var(--muted); }
.consent-dialog footer { display: flex; justify-content: flex-end; gap: 8px; padding-top: 18px; }
.switch { position: relative; flex: none; width: 48px; height: 28px; cursor: pointer; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch__ui { position: absolute; inset: 0; border-radius: 999px; background: var(--line-strong); transition: background .2s; pointer-events: none; }
.switch__ui::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .25s var(--ease); }
.switch input:checked + .switch__ui { background: var(--accent-strong); }
.switch input:checked + .switch__ui::after { transform: translateX(20px); }
.switch input:disabled + .switch__ui { opacity: .6; }
.switch input:focus-visible + .switch__ui { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- Legal pages ---------- */
.page-hero { background: var(--dark); color: var(--on-dark); padding: clamp(48px, 7vw, 80px) 0; position: relative; overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 80% at 10% 0%, rgba(42, 120, 214, .3), transparent 60%), radial-gradient(40% 70% at 95% 100%, rgba(16, 185, 129, .2), transparent 60%); }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; margin-bottom: 8px; }
.page-hero p { margin: 0; color: var(--on-dark-muted); }
.legal { padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 96px); }
.legal__layout { display: grid; grid-template-columns: 240px 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.legal__toc { position: sticky; top: calc(var(--header-h) + 24px); padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); font-size: .9rem; }
.legal__toc h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 10px; }
.legal__toc ol { list-style: none; display: grid; gap: 4px; }
.legal__toc a { display: block; padding: 6px 8px; border-radius: 8px; color: var(--text); text-decoration: none; }
.legal__toc a:hover { background: var(--tint); }
.prose { max-width: 760px; padding: clamp(22px, 4vw, 44px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.prose h2 { font-size: 1.35rem; margin-top: 2em; padding-top: .2em; }
.prose > section:first-child > h2 { margin-top: 0; }
.prose code { font-size: .86em; padding: 1px 6px; border-radius: 6px; background: var(--tint); }
.prose section { scroll-margin-top: calc(var(--header-h) + 16px); }
.prose h3 { font-size: 1.08rem; margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; display: grid; gap: 6px; }
.prose table { margin: 0 0 1.2em; font-size: .9rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--tint); font-family: var(--font-head); }
.prose .table-wrap { box-shadow: none; border-radius: 12px; margin-bottom: 1.2em; }
.prose .table-wrap table { margin: 0; min-width: 560px; }
.callout { padding: 16px 18px; border-radius: 14px; background: var(--warn-soft); border: 1px solid #f3dfb4; color: #5c3b06; margin: 0 0 1.4em; }
.callout--info { background: var(--sg-soft); border-color: #cfe1f7; color: #123f75; }
.callout strong { color: inherit; }
.contact-card { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 0 0 1.4em; }
.contact-card > div { padding: 18px; border-radius: 14px; background: var(--tint); }
.contact-card h3 { margin: 0 0 6px; font-size: 1rem; }
.contact-card p { margin: 0; font-size: .94rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .uses { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .hero__inner, .scores, .method, .tabs__panel { grid-template-columns: 1fr; }
  .scores .section__head { position: static; }
  .hero__copy { text-align: left; }
  .vs-card { max-width: 620px; }
  .legal__layout { grid-template-columns: 1fr; }
  .legal__toc { display: none; }
}

@media (max-width: 860px) {
  .burger { display: block; }
  .nav { position: fixed; inset: var(--nav-top, 110px) 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px var(--gutter) 20px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s var(--ease), visibility .25s; }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 12px; font-size: 1rem; }
  .nav__cta { margin: 10px 0 0; }
  .verdict, .plans, .pc, .infra { grid-template-columns: 1fr; }
  .consent { flex-direction: column; align-items: stretch; }
  .consent__actions { justify-content: stretch; }
  .consent__actions .btn { flex: 1; }
}

@media (max-width: 600px) {
  .adbar { font-size: .78rem; }
  .vs-card { padding: 14px; }
  .vs-card__cols { grid-template-columns: 1fr; gap: 22px; }
  .vs-badge { width: 40px; height: 40px; font-size: .8rem; }
  .vs-side { padding: 18px 16px; }
  .vs-side__score { font-size: 2.2rem; }
  .hero__actions .btn { flex: 1 1 100%; }
  .uses, .split, .pc__cols, .score-total { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stats div { padding: 12px; }
  .bar { grid-template-columns: 78px 1fr 32px; gap: 8px; }
  .segmented { width: 100%; }
  .segmented button { flex: 1; padding: 8px 10px; }
  .cost__tiles, .tile { width: 100%; }
  .tile { min-width: 0; flex: 1 1 140px; }
  .footer__grid { grid-template-columns: 1fr; }
  .ctable { min-width: 620px; font-size: .9rem; }
  .ctable th, .ctable td { padding: 14px 14px; }
  .ctable tbody th[scope="row"], .ctable thead th:first-child { position: sticky; left: 0; z-index: 1; width: 128px; min-width: 128px; background: var(--surface); box-shadow: 1px 0 0 var(--line); }
  .ctable thead th:first-child { z-index: 2; }
  .ctable__group th { position: sticky; left: 0; }
  .table-hint { display: flex; }
  .faq summary { padding: 14px 16px; font-size: .98rem; }
  .faq__a { padding: 0 16px 16px; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
