:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fb;
  --text: #0b1220;
  --text-strong: rgba(11, 18, 32, 0.92);
  --text-soft: rgba(11, 18, 32, 0.78);
  --text-muted: rgba(11, 18, 32, 0.72);
  --text-faint: rgba(11, 18, 32, 0.62);
  --muted: #4b5565;

  --surface: rgba(255, 255, 255, 0.76);
  --surface-2: rgba(255, 255, 255, 0.78);
  --surface-3: rgba(255, 255, 255, 0.92);
  --surface-hero: rgba(255, 255, 255, 0.72);
  --surface-muted: rgba(11, 18, 32, 0.03);
  --surface-muted-2: rgba(11, 18, 32, 0.035);
  --surface-muted-3: rgba(11, 18, 32, 0.04);
  --surface-muted-4: rgba(11, 18, 32, 0.055);

  --border: rgba(11, 18, 32, 0.12);
  --border-2: rgba(11, 18, 32, 0.10);
  --border-3: rgba(11, 18, 32, 0.08);
  --border-4: rgba(11, 18, 32, 0.06);
  --shadow: 0 12px 30px rgba(11, 18, 32, 0.08);
  --shadow-soft: 0 8px 18px rgba(11, 18, 32, 0.06);
  --accent: #155eef;
  --accent-ink: #0b1220;
  --radius: 16px;
  --radius-sm: 12px;
  --container: 1120px;
  --ring: 0 0 0 4px rgba(21, 94, 239, 0.18);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Inter", "Noto Sans", "Apple Color Emoji",
    "Segoe UI Emoji";

  --bg-grad-1: rgba(21, 94, 239, 0.14);
  --bg-grad-2: rgba(11, 18, 32, 0.05);
  --alt-bg-1: rgba(247, 248, 251, 0.8);
  --alt-bg-2: rgba(247, 248, 251, 0.55);
  --header-bg: rgba(255, 255, 255, 0.78);
  --menu-bg: rgba(255, 255, 255, 0.96);
  --dot: rgba(11, 18, 32, 0.16);
  --thumb-line: rgba(11, 18, 32, 0.10);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0f1a;
  --bg-soft: #0f1629;
  --text: #eef2ff;
  --text-strong: rgba(238, 242, 255, 0.92);
  --text-soft: rgba(238, 242, 255, 0.84);
  --text-muted: rgba(238, 242, 255, 0.76);
  --text-faint: rgba(238, 242, 255, 0.62);
  --muted: #a9b4c8;

  --surface: rgba(13, 19, 34, 0.78);
  --surface-2: rgba(13, 19, 34, 0.82);
  --surface-3: rgba(13, 19, 34, 0.92);
  --surface-hero: rgba(13, 19, 34, 0.78);
  --surface-muted: rgba(238, 242, 255, 0.06);
  --surface-muted-2: rgba(238, 242, 255, 0.07);
  --surface-muted-3: rgba(238, 242, 255, 0.08);
  --surface-muted-4: rgba(238, 242, 255, 0.10);

  --border: rgba(238, 242, 255, 0.18);
  --border-2: rgba(238, 242, 255, 0.16);
  --border-3: rgba(238, 242, 255, 0.14);
  --border-4: rgba(238, 242, 255, 0.12);

  --shadow: 0 14px 34px rgba(0, 0, 0, 0.46);
  --shadow-soft: 0 10px 22px rgba(0, 0, 0, 0.36);

  --accent: #6ea8ff;
  --accent-ink: #eef2ff;

  --bg-grad-1: rgba(110, 168, 255, 0.14);
  --bg-grad-2: rgba(238, 242, 255, 0.06);
  --alt-bg-1: rgba(15, 22, 41, 0.84);
  --alt-bg-2: rgba(15, 22, 41, 0.62);
  --header-bg: rgba(11, 15, 26, 0.74);
  --menu-bg: rgba(11, 15, 26, 0.92);
  --dot: rgba(238, 242, 255, 0.22);
  --thumb-line: rgba(238, 242, 255, 0.16);
}

@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] {
    color-scheme: dark;
    --bg: #0b0f1a;
    --bg-soft: #0f1629;
    --text: #eef2ff;
    --text-strong: rgba(238, 242, 255, 0.92);
    --text-soft: rgba(238, 242, 255, 0.84);
    --text-muted: rgba(238, 242, 255, 0.76);
    --text-faint: rgba(238, 242, 255, 0.62);
    --muted: #a9b4c8;

    --surface: rgba(13, 19, 34, 0.78);
    --surface-2: rgba(13, 19, 34, 0.82);
    --surface-3: rgba(13, 19, 34, 0.92);
    --surface-hero: rgba(13, 19, 34, 0.78);
    --surface-muted: rgba(238, 242, 255, 0.06);
    --surface-muted-2: rgba(238, 242, 255, 0.07);
    --surface-muted-3: rgba(238, 242, 255, 0.08);
    --surface-muted-4: rgba(238, 242, 255, 0.10);

    --border: rgba(238, 242, 255, 0.18);
    --border-2: rgba(238, 242, 255, 0.16);
    --border-3: rgba(238, 242, 255, 0.14);
    --border-4: rgba(238, 242, 255, 0.12);

    --shadow: 0 14px 34px rgba(0, 0, 0, 0.46);
    --shadow-soft: 0 10px 22px rgba(0, 0, 0, 0.36);

    --accent: #6ea8ff;
    --accent-ink: #eef2ff;

    --bg-grad-1: rgba(110, 168, 255, 0.14);
    --bg-grad-2: rgba(238, 242, 255, 0.06);
    --alt-bg-1: rgba(15, 22, 41, 0.84);
    --alt-bg-2: rgba(15, 22, 41, 0.62);
    --header-bg: rgba(11, 15, 26, 0.74);
    --menu-bg: rgba(11, 15, 26, 0.92);
    --dot: rgba(238, 242, 255, 0.22);
    --thumb-line: rgba(238, 242, 255, 0.16);
  }
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: radial-gradient(1200px 600px at 85% -10%, var(--bg-grad-1), transparent 55%),
    radial-gradient(800px 500px at 10% 15%, var(--bg-grad-2), transparent 55%), var(--bg);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 2 * 20px));
  margin: 0 auto;
}

.section {
  padding: clamp(56px, 6vw, 92px) 0;
}

.section.alt {
  background: linear-gradient(180deg, var(--alt-bg-1), var(--alt-bg-2));
  border-top: 1px solid var(--border-4);
  border-bottom: 1px solid var(--border-4);
}

.muted {
  color: var(--muted);
}

.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;
}

.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  transform: translateY(-140%);
  transition: transform 180ms ease;
  z-index: 50;
}
.skip-link:focus {
  transform: translateY(0);
  outline: none;
  box-shadow: var(--shadow-soft), var(--ring);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: saturate(1.4) blur(10px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--border-3);
}

.progress {
  height: 3px;
  background: transparent;
}
.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(21, 94, 239, 0.35), var(--accent));
  box-shadow: 0 8px 18px rgba(21, 94, 239, 0.18);
  transform-origin: left center;
}
html[data-theme="dark"] .progress-bar {
  background: linear-gradient(90deg, rgba(110, 168, 255, 0.28), var(--accent));
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--accent);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-mark .brand-icon--dark {
  display: none;
}

html[data-theme="dark"] .brand-mark .brand-icon--light {
  display: none;
}
html[data-theme="dark"] .brand-mark .brand-icon--dark {
  display: block;
}

@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] .brand-mark .brand-icon--light {
    display: none;
  }
  html[data-theme="auto"] .brand-mark .brand-icon--dark {
    display: block;
  }
}

.brand-text {
  display: grid;
  line-height: 1.05;
}

.brand-name {
  font-weight: 720;
  letter-spacing: -0.02em;
  font-size: 1.18rem;
}

.brand-sub {
  font-size: 1.04rem;
  color: #155EEF;
  font-weight: 700;
}

.theme-switch {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface-muted-3);
  border: 1px solid var(--border-3);
}
.theme-option {
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-soft);
  padding: 6px 8px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 630;
  letter-spacing: 0;
  line-height: 1.1;
}
.theme-option[aria-pressed="true"] {
  background: var(--surface-3);
  border-color: var(--border-2);
  color: var(--text-strong);
  box-shadow: 0 6px 14px rgba(11, 18, 32, 0.06);
}
html[data-theme="dark"] .theme-option[aria-pressed="true"] {
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.32);
}
@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] .theme-option[aria-pressed="true"] {
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.32);
  }
}
.theme-option:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.theme-select {
  display: none;
}
.theme-select select {
  border: 1px solid var(--border);
  background: var(--surface-3);
  color: var(--text-strong);
  border-radius: 999px;
  padding: 9px 12px;
  font-weight: 650;
  letter-spacing: -0.01em;
  box-shadow: 0 1px 0 rgba(11, 18, 32, 0.04);
}
.theme-select select:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.site-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}

.nav-toggle:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.nav-toggle-lines {
  display: block;
  width: 18px;
  height: 12px;
  position: relative;
}
.nav-toggle-lines::before,
.nav-toggle-lines::after,
.nav-toggle-lines {
  background: transparent;
}
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--text-soft);
  transition: transform 180ms ease, top 180ms ease, opacity 180ms ease;
}
.nav-toggle-lines::before {
  top: 1px;
}
.nav-toggle-lines::after {
  top: 9px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  min-width: 0;
}

.nav-link {
  padding: 8px 9px;
  border-radius: 12px;
  color: var(--text-strong);
  font-weight: 520;
  font-size: 0.96rem;
  white-space: nowrap;
}
.nav-link:hover {
  background: var(--surface-muted-3);
}
.nav-link:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}
.nav-link.is-active {
  color: var(--accent);
  background: rgba(21, 94, 239, 0.1);
}

.nav-cta {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(21, 94, 239, 0.12);
  color: var(--accent);
  font-weight: 650;
  border: 1px solid rgba(21, 94, 239, 0.22);
  font-size: 0.96rem;
  white-space: nowrap;
}
.nav-cta:hover {
  background: rgba(21, 94, 239, 0.16);
}
.nav-cta:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

/* Hero */
.hero {
  padding-top: clamp(46px, 6vw, 76px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: start;
}

.hero-copy,
.hero-card {
  min-width: 0;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface-muted-3);
  border: 1px solid var(--border-3);
  color: var(--text-strong);
  font-weight: 560;
  width: fit-content;
}

.hero-title {
  font-size: clamp(2.05rem, 4.3vw, 3.15rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 14px 0 10px;
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--text-soft);
  max-width: 58ch;
  margin: 0;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 22px 0 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-strong);
  cursor: pointer;
  font-weight: 650;
  letter-spacing: -0.01em;
  box-shadow: 0 1px 0 rgba(11, 18, 32, 0.04);
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

/* Ensure the HTML `hidden` attribute always hides elements (override .btn display). */
[hidden] {
  display: none !important;
}
.btn-sm {
  padding: 9px 12px;
  font-size: 0.94rem;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.btn-primary {
  background: var(--accent);
  color: white;
  border-color: rgba(21, 94, 239, 0.5);
  box-shadow: 0 14px 30px rgba(21, 94, 239, 0.18);
}
.btn-primary:hover {
  background: #0f55df;
}

.btn-secondary {
  background: var(--surface-muted-2);
  border-color: var(--border);
}
.btn-secondary:hover {
  background: var(--surface-muted-4);
}

.hero-trust {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--muted);
  font-weight: 540;
}
.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-trust li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(21, 94, 239, 0.65);
  box-shadow: 0 0 0 3px rgba(21, 94, 239, 0.12);
}

.hero-card {
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface-hero);
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow);
}

.preview {
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--border-2);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.preview-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: linear-gradient(180deg, var(--surface-muted-2), rgba(11, 18, 32, 0.02));
  border-bottom: 1px solid var(--border-3);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--dot);
}
.preview-url {
  margin-left: 8px;
  font-size: 0.92rem;
  color: var(--text-faint);
}

.preview-body {
  padding: 16px;
}
.preview-badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(21, 94, 239, 0.10);
  color: var(--accent);
  border: 1px solid rgba(21, 94, 239, 0.18);
  font-weight: 650;
  width: fit-content;
}
.preview-h {
  margin-top: 10px;
  font-weight: 760;
  letter-spacing: -0.02em;
  font-size: 1.1rem;
}
.preview-p {
  margin-top: 6px;
  color: var(--text-muted);
}
.preview-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.metric {
  border-radius: 14px;
  padding: 10px;
  background: var(--surface-muted);
  border: 1px solid var(--border-4);
}
.metric-k {
  color: var(--text-faint);
  font-size: 0.86rem;
}
.metric-v {
  font-weight: 760;
  letter-spacing: -0.02em;
}
.preview-cta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.pill {
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(21, 94, 239, 0.22);
  background: rgba(21, 94, 239, 0.10);
  color: var(--accent);
  font-weight: 650;
  font-size: 0.92rem;
}
.pill-muted {
  border-color: var(--border);
  background: var(--surface-muted-2);
  color: var(--text-muted);
  font-weight: 600;
}
.hero-note {
  margin: 12px 0 0;
  color: var(--text-muted);
}

/* Section headings */
.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
  max-width: 78ch;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  letter-spacing: -0.02em;
}
.section-head p {
  margin: 0;
  color: var(--text-muted);
}
.section-head.compact {
  margin-bottom: 16px;
}

/* Cards */
.cards {
  display: grid;
  gap: 14px;
}
.cards-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.card h3 {
  margin: 12px 0 8px;
  letter-spacing: -0.02em;
}
.card p {
  margin: 0 0 12px;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(21, 94, 239, 0.10);
  border: 1px solid rgba(21, 94, 239, 0.18);
  color: var(--accent);
}
.card-icon svg {
  width: 22px;
  height: 22px;
}

.list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
}
.list li {
  margin: 6px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.pricing-head h3 {
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.pricing-head p {
  margin: 0;
}
.price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 14px 0 12px;
}
.price-from {
  color: var(--text-faint);
  font-weight: 700;
}
.price-value {
  font-weight: 820;
  letter-spacing: -0.03em;
  font-size: 1.9rem;
}
.pricing-list {
  margin: 0 0 14px;
  padding-left: 18px;
  color: var(--text-muted);
}
.pricing-list li {
  margin: 8px 0;
}
.pricing-cta {
  width: 100%;
}
.pricing {
  position: relative;
}
.pricing.is-featured {
  border-color: rgba(21, 94, 239, 0.30);
  box-shadow: var(--shadow);
}
.pricing-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(21, 94, 239, 0.12);
  color: var(--accent);
  border: 1px solid rgba(21, 94, 239, 0.22);
  font-weight: 750;
  font-size: 0.92rem;
}
.pricing-note {
  margin: 14px 0 0;
  max-width: 86ch;
}

/* Two col + panels */
.two-col {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  align-items: start;
}

.checks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  color: var(--text-soft);
  font-weight: 560;
}
.checks li {
  padding-left: 28px;
  position: relative;
}
.checks li::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 8px;
  background: rgba(21, 94, 239, 0.12);
  border: 1px solid rgba(21, 94, 239, 0.22);
  position: absolute;
  left: 0;
  top: 2px;
  box-shadow: 0 8px 16px rgba(21, 94, 239, 0.08);
}
.checks li::after {
  content: "✓";
  position: absolute;
  left: 5px;
  top: 0px;
  color: var(--accent);
  font-weight: 760;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.panel h3 {
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.panel-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.mini {
  border-radius: 14px;
  padding: 12px;
  background: var(--surface-muted);
  border: 1px solid var(--border-4);
}
.mini-k {
  font-size: 0.86rem;
  color: var(--text-faint);
}
.mini-v {
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Projects */
.project-thumb {
  display: block;
  height: 200px;
  border-radius: 14px;
  border: 1px solid var(--border-2);
  background: linear-gradient(180deg, rgba(21, 94, 239, 0.10), rgba(21, 94, 239, 0.02));
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  margin-bottom: 12px;
}
.project-thumb:focus-visible {
  outline: none;
  box-shadow: var(--ring), var(--shadow-soft);
}
.thumb-top {
  height: 34px;
  background: var(--surface-muted);
  border-bottom: 1px solid var(--border-3);
}
.thumb-body {
  padding: 14px;
  display: grid;
  gap: 10px;
}
.thumb-illustration {
  width: 100%;
  height: 78px;
  display: block;
  object-fit: contain;
}
.project-thumb--photo {
  background: var(--surface-muted);
  display: grid;
  place-items: center;
}
.project-thumb--photo .thumb-illustration {
  height: 100%;
  object-fit: contain;
  padding: 0;
}
.thumb-line {
  height: 10px;
  border-radius: 999px;
  background: var(--thumb-line);
}
.thumb-pill {
  height: 30px;
  width: 44%;
  border-radius: 999px;
  background: rgba(21, 94, 239, 0.16);
  border: 1px solid rgba(21, 94, 239, 0.22);
}
.w50 {
  width: 50%;
}
.w55 {
  width: 55%;
}
.w60 {
  width: 60%;
}
.w70 {
  width: 70%;
}
.w75 {
  width: 75%;
}
.w80 {
  width: 80%;
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tag {
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-muted);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.92rem;
}

.project-title {
  text-decoration: none;
}
.project-title:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 10px;
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.project-link::after {
  content: "→";
}
.project-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.project-links .project-link {
  margin-top: 12px;
}
.project-link-muted {
  color: var(--text-muted);
  font-weight: 650;
}
.project-link-muted:hover {
  color: var(--accent);
}
.project-link:hover {
  color: #0f55df;
}
.project-link:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 10px;
}

/* Case pages */
.crumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--text-faint);
  font-weight: 650;
}
.crumbs a {
  color: inherit;
}
.crumbs a:hover {
  color: var(--accent);
}
.crumbs-sep {
  opacity: 0.6;
}

.case-hero {
  padding-top: clamp(46px, 6vw, 76px);
}
.case-hero h1 {
  margin: 12px 0 10px;
  font-size: clamp(2.0rem, 4.1vw, 3.0rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.case-hero .lead {
  margin: 0;
  color: var(--text-soft);
  max-width: 70ch;
}
.case-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.case-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
  align-items: start;
  margin-top: 20px;
}
.case-aside {
  position: sticky;
  top: 96px;
}
.case-aside .card {
  padding: 16px;
}
.case-aside h3 {
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}
.case-kv {
  display: grid;
  gap: 10px;
  margin: 0;
}
.case-kv div {
  display: grid;
  gap: 2px;
  padding: 10px;
  border-radius: 14px;
  background: var(--surface-muted);
  border: 1px solid var(--border-4);
}
.case-k {
  color: var(--text-faint);
  font-size: 0.9rem;
  font-weight: 700;
}
.case-v {
  font-weight: 760;
  letter-spacing: -0.01em;
}
.case-section {
  margin-top: 18px;
}
.case-section h2 {
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  font-size: 1.35rem;
}
.case-section p {
  margin: 0 0 10px;
  color: var(--text-muted);
}
.case-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
}
.case-list li {
  margin: 8px 0;
}
.case-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.case-stat {
  border-radius: 14px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow-soft);
}
.case-stat .k {
  color: var(--text-faint);
  font-size: 0.9rem;
  font-weight: 700;
}
.case-stat .v {
  font-weight: 820;
  letter-spacing: -0.02em;
  margin-top: 4px;
}
.case-gallery {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.case-shot {
  margin: 0;
  height: 120px;
  border-radius: 14px;
  border: 1px solid var(--border-2);
  background: var(--surface-3);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.case-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 980px) {
  .case-grid {
    grid-template-columns: 1fr;
  }
  .case-aside {
    position: static;
  }
  .case-stats {
    grid-template-columns: 1fr;
  }
  .case-gallery {
    grid-template-columns: 1fr;
  }
}

/* Why grid */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.why {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-soft);
}
.why-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: rgba(21, 94, 239, 0.10);
  border: 1px solid rgba(21, 94, 239, 0.18);
}
.why-icon svg {
  width: 22px;
  height: 22px;
}
.why h3 {
  margin: 12px 0 6px;
  letter-spacing: -0.02em;
}
.why p {
  margin: 0;
}

/* Steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow-soft);
}
.step-num {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(21, 94, 239, 0.10);
  border: 1px solid rgba(21, 94, 239, 0.18);
  color: var(--accent);
  font-weight: 780;
}
.step-body h3 {
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.step-body p {
  margin: 0;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 18px;
  align-items: start;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.mini-card {
  border-radius: 14px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow-soft);
}
.mini-card a {
  text-decoration: underline;
  text-decoration-color: rgba(11, 18, 32, 0.18);
  text-underline-offset: 3px;
}
.mini-card a:hover {
  text-decoration-color: rgba(21, 94, 239, 0.45);
}

.form {
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.form-row {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}
.form-row label {
  font-weight: 650;
  letter-spacing: -0.01em;
}
.form-row input,
.form-row select,
.form-row textarea {
  border: 1px solid var(--border-2);
  background: var(--surface-3);
  color: var(--text);
  border-radius: 14px;
  padding: 12px 12px;
  box-shadow: 0 1px 0 rgba(11, 18, 32, 0.04);
}
.form-row textarea {
  resize: vertical;
  min-height: 120px;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  box-shadow: var(--ring);
  border-color: rgba(21, 94, 239, 0.45);
}
.form-row-inline {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
}
.form-row-inline input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 4px;
}
.field-error {
  margin: 0;
  color: #b42318;
  font-weight: 600;
  min-height: 1.2em;
}

.linklike {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(21, 94, 239, 0.35);
  text-underline-offset: 3px;
  font-weight: 650;
}
.linklike:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 8px;
}

.glossary-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed rgba(21, 94, 239, 0.45);
  text-underline-offset: 3px;
}
.glossary-link:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 6px;
}
.glossary-link:hover {
  color: var(--accent);
  border-bottom-color: rgba(21, 94, 239, 0.75);
}

.form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.form-note {
  margin: 0;
  font-size: 0.95rem;
}

.toast {
  margin: 12px 0 0;
  min-height: 1.2em;
  font-weight: 650;
  color: var(--text-soft);
}
.toast.is-success {
  color: #067647;
}
.toast.is-error {
  color: #b42318;
}

/* Footer */
.site-footer {
  padding: 28px 0 22px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  align-items: start;
  gap: 18px;
  padding-top: 10px;
  border-top: 1px solid var(--border-3);
}
.footer-brand {
  max-width: 44ch;
}
.footer-title {
  font-weight: 760;
  letter-spacing: -0.02em;
}
.footer-head {
  font-size: 0.92rem;
  font-weight: 720;
  letter-spacing: -0.01em;
  color: var(--text-strong);
  margin: 2px 0 10px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: flex-start;
}
.footer-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.footer-link {
  cursor: pointer;
  font-weight: 600;
  color: var(--muted);
}
.footer-link:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}
.footer-link-min {
  border: 1px solid transparent;
  background: transparent;
  padding: 7px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.94rem;
  text-decoration: none;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}
.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-icon {
  width: 16px;
  height: 16px;
  color: var(--muted);
}
.footer-link-min:hover {
  color: var(--text-strong);
  background: var(--surface-muted-3);
  border-color: var(--border-3);
}
.footer-link-min:hover .footer-icon {
  color: var(--text-strong);
}
.footer-link-min:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}
.footer-bottom {
  padding-top: 14px;
}

/* Footer (mobile) */
.footer-contact {
  display: grid;
  gap: 4px;
  line-height: 1.4;
}

@media (max-width: 720px) {
  .project-thumb {
    height: 220px;
  }

  .site-footer {
    padding: 22px 0 18px;
  }

  .footer-inner {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .footer-brand {
    max-width: none;
    order: 4;
    padding-top: 12px;
    border-top: 1px solid var(--border-3);
  }

  .footer-col {
    padding-top: 10px;
    border-top: 1px solid var(--border-3);
  }

  .footer-head {
    margin-bottom: 6px;
  }

  .footer-list {
    gap: 4px;
    width: 100%;
  }

  .footer-link-min {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 12px;
    border-radius: 12px;
  }

  .footer-bottom {
    padding-top: 12px;
  }
}

/* Dialogs */
.dialog {
  border: none;
  padding: 0;
  background: transparent;
}

html.funnel-open,
body.funnel-open {
  overflow: hidden;
  overflow-x: hidden;
  height: 100%;
  overscroll-behavior: none;
}
.dialog::backdrop {
  background: rgba(11, 18, 32, 0.5);
  backdrop-filter: blur(8px);
}
.dialog-inner {
  width: min(720px, calc(100vw - 24px));
  border-radius: var(--radius);
  background: var(--surface-3);
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow);
  padding: 18px;
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-3);
}
.dialog-head h2 {
  margin: 0;
  letter-spacing: -0.02em;
}
.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-muted-2);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}
.icon-btn:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}
.dialog-body {
  padding: 12px 0;
  color: var(--text-soft);
}
.dialog-body h3 {
  margin: 14px 0 8px;
  color: var(--text);
}
.dialog-body p {
  margin: 0 0 10px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-3);
}

/* Lead funnel */
#lead-funnel {
  padding: 0;
  overflow-x: hidden;
}
#lead-funnel .dialog-inner {
  max-height: calc(100dvh - 24px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#lead-funnel .dialog-head {
  flex: 0 0 auto;
}
#lead-funnel .funnel-progress {
  flex: 0 0 auto;
}
#lead-funnel .funnel-form {
  flex: 1 1 auto;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  overscroll-behavior: contain;
  touch-action: pan-y;
  overflow-x: hidden;
}
#lead-funnel .funnel-actions {
  position: sticky;
  bottom: 0;
  background: var(--surface-3);
  margin: 0 -18px;
  padding: 12px 18px 14px;
  border-top: 1px solid var(--border-3);
}
.funnel-sub {
  margin: 6px 0 0;
  max-width: 56ch;
}
.funnel-progress {
  height: 8px;
  border-radius: 999px;
  background: var(--surface-muted-3);
  border: 1px solid var(--border-3);
  margin: 14px 0;
  overflow: hidden;
}
.funnel-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), rgba(21, 94, 239, 0.65));
  border-radius: 999px;
  transition: width 220ms ease;
}
.funnel-title {
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.funnel-form {
  display: grid;
  gap: 14px;
}
.funnel-step {
  border: none;
  padding: 0;
  margin: 0;
}
.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.choice {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface-3);
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(11, 18, 32, 0.03);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.choice input {
  position: absolute;
  opacity: 0;
  inset: 0;
  pointer-events: none;
}
.choice-title {
  font-weight: 720;
  letter-spacing: -0.02em;
  color: var(--text);
}
.choice:hover {
  border-color: var(--border-2);
  box-shadow: 0 12px 26px rgba(11, 18, 32, 0.08);
  transform: translateY(-1px);
}
.choice.is-selected {
  border-color: rgba(21, 94, 239, 0.55);
  box-shadow: 0 14px 30px rgba(21, 94, 239, 0.14);
}
html[data-theme="dark"] .choice.is-selected {
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}
.choice:focus-within {
  box-shadow: var(--ring);
}
.funnel-row {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}
.funnel-check {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
}
.funnel-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 4px;
}
.funnel-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.funnel-form input,
.funnel-form select,
.funnel-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 14px;
  padding: 12px 12px;
  color: var(--text);
}
.funnel-form textarea {
  resize: vertical;
}
.funnel-form input:focus-visible,
.funnel-form select:focus-visible,
.funnel-form textarea:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}
.funnel-error {
  margin: 0;
  color: var(--text-soft);
  font-weight: 650;
}
.funnel-error.is-error {
  color: #b42318;
}
.funnel-error.is-success {
  color: #067647;
}
html[data-theme="dark"] .funnel-error {
  color: var(--text-soft);
}
html[data-theme="dark"] .funnel-error.is-error {
  color: #fca5a5;
}
html[data-theme="dark"] .funnel-error.is-success {
  color: #6ce9a6;
}
.funnel-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border-3);
}
.funnel-actions-right {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.glossary-hero .lead {
  max-width: 70ch;
}
.glossary-toc {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.glossary-chip {
  padding: 14px;
  border-radius: 16px;
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.glossary-chip:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-soft);
}
.glossary-chip-k {
  font-weight: 760;
  letter-spacing: -0.02em;
}
.glossary {
  display: grid;
  gap: 12px;
}
.glossary-card {
  padding: 18px;
}
.glossary-card h2 {
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.glossary-card p {
  margin: 0 0 10px;
}


/* Responsive */
@media (max-width: 1120px) {
  /* Header / Navigation: prevent wrapping "verzogen" layouts */
  .theme-switch {
    display: none;
  }
  .theme-select {
    display: inline-flex;
    align-items: center;
  }
  .theme-select select {
    padding: 8px 11px;
    font-size: 0.92rem;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .nav-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: min(340px, calc(100vw - 32px));
    background: var(--menu-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 10px;
    display: grid;
    gap: 6px;
    max-height: calc(100vh - 92px);
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    transform-origin: top right;
    transform: scale(0.98);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
  }
  .nav-menu::-webkit-scrollbar {
    width: 10px;
  }
  .nav-menu::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.5);
    border-radius: 999px;
    border: 3px solid transparent;
    background-clip: content-box;
  }
  .nav-menu::-webkit-scrollbar-track {
    background: transparent;
  }

  .site-nav.is-open .nav-menu {
    opacity: 1;
    transform: scale(1);
    visibility: visible;
    pointer-events: auto;
  }
  .nav-link,
  .nav-cta {
    padding: 11px 12px;
    border-radius: 14px;
  }
  .nav-cta {
    justify-content: center;
  }
}

@media (max-width: 980px) {
  .cards-3 {
    grid-template-columns: 1fr;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-cards {
    grid-template-columns: 1fr;
  }
  .glossary-toc {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-card {
    order: 2;
  }
  .hero-copy {
    order: 1;
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }
  .funnel-two {
    grid-template-columns: 1fr;
  }
  #lead-funnel .dialog-inner {
    width: min(720px, calc(100vw - 16px));
    max-height: calc(100dvh - 16px);
    padding: 14px;
  }
  #lead-funnel .funnel-actions {
    margin: 0 -14px;
    padding: 12px 14px 14px;
    flex-wrap: wrap;
    align-items: center;
  }
  #lead-funnel .funnel-actions-right {
    width: auto;
    display: inline-flex;
    flex-wrap: wrap;
  }
  #lead-funnel .funnel-actions .btn {
    width: auto;
  }
  .glossary-toc {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px 10px;
  }
}

@media (max-width: 560px) {
  /* Phone: use full-height dialog so nothing overflows */
  #lead-funnel {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    border: none;
  }
  #lead-funnel .dialog-inner {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    margin: 0;
    padding: 14px;
  }
  #lead-funnel .dialog-head {
    position: sticky;
    top: 0;
    background: var(--surface-3);
    margin: -14px -14px 0;
    padding: 14px 14px 10px;
    z-index: 2;
  }
  #lead-funnel .funnel-progress {
    position: sticky;
    top: 74px;
    background: var(--surface-3);
    margin: 0 -14px;
    padding: 12px 14px 0;
    z-index: 1;
  }
  /* On small screens do NOT overlay questions with sticky actions */
  #lead-funnel .funnel-actions {
    position: static;
    margin: 0;
    padding: 12px 0 0;
    border-top: 1px solid var(--border-3);
    background: transparent;
    flex-direction: column;
    align-items: stretch;
  }
  #lead-funnel .funnel-actions-right {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  #lead-funnel .funnel-actions .btn {
    padding: 10px 12px;
    border-radius: 12px;
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn,
  .nav-menu,
  .skip-link,
  .nav-toggle-lines::before,
  .nav-toggle-lines::after {
    transition: none !important;
  }
  .progress-bar {
    transition: none !important;
  }
}

/* Cookie consent banner */
.consent-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9998;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #111827;
  color: #f9fafb;
  border-radius: 999px;
  padding: 12px 16px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  font-size: 14px;
}

/* Scroll-to-top */
.scroll-top {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 9997;
  border: 1px solid var(--border);
  background: var(--surface-3);
  color: var(--text-strong);
  border-radius: 999px;
  padding: 12px 14px;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  font-weight: 650;
  letter-spacing: -0.01em;
}
.scroll-top:hover {
  background: var(--surface);
}
.scroll-top:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}
.consent-fab:hover {
  background: #0b1220;
}
.consent-fab:focus-visible {
  outline: none;
  box-shadow: var(--ring), 0 10px 30px rgba(0, 0, 0, 0.25);
}

.consent-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 9998;
}

.consent-modal {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  width: min(960px, calc(100vw - 24px));
  background: #0f172a;
  color: #f9fafb;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  overflow: hidden;
}

.consent-inner {
  padding: 20px;
}
.consent-header {
  display: flex;
  gap: 16px;
  align-items: start;
  justify-content: space-between;
  margin-bottom: 12px;
}
.consent-title {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.consent-text {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.95rem;
}
.consent-links {
  margin-top: 10px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.consent-link {
  border: none;
  background: transparent;
  padding: 0;
  color: #93c5fd;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  font-weight: 650;
}
.consent-link:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 8px;
}

.consent-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 18px;
}
.consent-category {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
}
.consent-category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.consent-category h3 {
  margin: 0 0 6px 0;
  font-size: 1rem;
}
.consent-category p {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.92rem;
}
.consent-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

/* Consent buttons: ensure readable contrast on dark modal */
.consent-modal .btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: #f9fafb;
  box-shadow: none;
}
.consent-modal .btn:hover {
  background: rgba(255, 255, 255, 0.09);
}
.consent-modal .btn:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}
.consent-modal .btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.18);
  color: #f9fafb;
}
.consent-modal .btn-outline:hover {
  background: rgba(255, 255, 255, 0.06);
}
.consent-modal .btn-secondary {
  background: #374151;
  border-color: rgba(255, 255, 255, 0.14);
  color: #f9fafb;
}
.consent-modal .btn-secondary:hover {
  background: #4b5563;
}
.consent-modal .btn-primary {
  background: #2563eb;
  border-color: rgba(37, 99, 235, 0.6);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.25);
}
.consent-modal .btn-primary:hover {
  background: #1d4ed8;
}

/* Toggle switch */
.switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 30px;
  flex-shrink: 0;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: #475569;
  transition: 0.2s;
  border-radius: 999px;
}
.slider::before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  top: 4px;
  background: white;
  transition: 0.2s;
  border-radius: 50%;
}
.switch input:checked + .slider {
  background: var(--accent);
}
.switch input:checked + .slider::before {
  transform: translateX(22px);
}
.switch input:disabled + .slider {
  background: #065f46;
  opacity: 0.9;
  cursor: not-allowed;
}

.consent-status {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #bfdbfe;
  min-height: 1.2em;
}

@media (min-width: 720px) {
  .consent-grid {
    grid-template-columns: 1fr 1fr;
  }
}
