/* ==========================================================================
   Plumbix — Core stylesheet
   Order: reset → base → utilities → layout → components → sections
   Depends on: variables.css
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }

:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: var(--r-xs);
}

::selection { background: var(--cyan); color: var(--midnight); }

/* ---------- 2. Type ----------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--lh-snug);
  letter-spacing: var(--track-display);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.02em; }
h4 { font-size: var(--fs-h4); letter-spacing: -0.01em; }

p { text-wrap: pretty; }
.lead { font-size: var(--fs-lead); color: var(--text-muted); max-width: 62ch; }
.muted { color: var(--text-muted); }
.small { font-size: var(--fs-small); }

/* Eyebrow — the site's recurring label device. Encodes section role. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--royal);
  margin-bottom: var(--sp-4);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
}
.on-dark .eyebrow, .invert .eyebrow { color: var(--cyan); }

.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.on-dark .grad-text, .invert .grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; }

/* ---------- 3. Utilities ------------------------------------------------ */
.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }
.shell-wide { max-width: var(--shell-wide); }
.shell-narrow { max-width: 860px; }

.section { padding-block: var(--section-y); position: relative; }
.section-tight { padding-block: calc(var(--section-y) * 0.62); }
.section-alt { background: var(--surface-alt); }
.section-dark { background: var(--grad-deep); color: var(--text-invert); }
.section-dark p, .section-dark .lead { color: var(--text-invert-mut); }

.section-head { max-width: 720px; margin-bottom: var(--sp-8); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 + p { margin-top: var(--sp-4); }

.stack > * + * { margin-top: var(--sp-4); }
.center { text-align: center; }
.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;
}
.skip-link {
  position: absolute; left: var(--sp-4); top: -100px; z-index: 999;
  background: var(--midnight); color: #fff; padding: 0.75rem 1.25rem;
  border-radius: var(--r-sm); transition: top var(--t-fast) var(--ease);
}
.skip-link:focus { top: var(--sp-4); }

.grid { display: grid; gap: var(--sp-5); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Plume rule — signature divider. A hairline that swells to a cyan node. */
.plume-rule {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--line-strong) 18%, var(--royal) 50%, var(--line-strong) 82%, transparent);
  position: relative;
  margin-block: var(--sp-7);
}
.plume-rule::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 7px; height: 7px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--cyan);
  box-shadow: 0 0 0 5px rgba(34, 228, 242, 0.16);
}

/* ---------- 4. Buttons -------------------------------------------------- */
.btn {
  --btn-bg: var(--grad-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.6rem;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease),
              background-color var(--t-med) var(--ease), color var(--t-med) var(--ease);
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--btn-bg); color: #04091f; box-shadow: var(--sh-glow); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--grad-sheen);
  transform: translateX(-120%);
  transition: transform var(--t-slow) var(--ease);
}
.btn-primary:hover::after { transform: translateX(120%); }

.btn-solid { background: var(--midnight); color: #fff; }
.btn-solid:hover { background: var(--navy); }

.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: var(--surface);
}
.btn-ghost:hover { border-color: var(--royal); color: var(--royal); }
.on-dark .btn-ghost, .section-dark .btn-ghost {
  border-color: var(--line-invert); color: #fff; background: rgba(255, 255, 255, 0.04);
}
.on-dark .btn-ghost:hover, .section-dark .btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.btn-lg { padding: 1.05rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.85rem; }
.btn-block { display: flex; width: 100%; }

.btn-group { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* Text link with underline reveal */
.link-arrow {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--font-display); font-weight: 600; font-size: 0.94rem;
  color: var(--royal);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--t-med) var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.on-dark .link-arrow, .section-dark .link-arrow { color: var(--cyan); }

/* ---------- 5. Header / navigation ------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-med) var(--ease), background var(--t-med) var(--ease);
}
[data-theme="dark"] .site-header { background: rgba(7, 11, 24, 0.82); }
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: var(--sh-sm); }

.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-5); height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; flex: none; }
.brand svg { height: 30px; width: auto; }

.nav-menu { display: flex; align-items: center; gap: 0.15rem; }
.nav-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.55rem 0.85rem; border-radius: var(--r-sm);
  font-size: 0.93rem; font-weight: 500; color: var(--text-muted);
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.nav-link:hover { color: var(--text); background: var(--surface-alt); }
.nav-link[aria-current="page"] { color: var(--royal); font-weight: 600; }
.nav-link .caret { width: 11px; height: 11px; transition: transform var(--t-fast) var(--ease); }
.has-dropdown[aria-expanded="true"] .caret, .has-dropdown:hover .caret { transform: rotate(180deg); }

.nav-item { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 620px; padding: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.25rem;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease), visibility var(--t-med);
}
.nav-item.is-open .dropdown, .nav-item:hover .dropdown {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.dropdown a {
  display: block; padding: 0.7rem 0.85rem; border-radius: var(--r-sm);
  font-size: 0.9rem; font-weight: 500;
  transition: background var(--t-fast) var(--ease);
}
.dropdown a span { display: block; font-size: 0.78rem; color: var(--text-faint); font-weight: 400; margin-top: 2px; }
.dropdown a:hover { background: var(--surface-alt); }

.nav-actions { display: flex; align-items: center; gap: var(--sp-3); flex: none; }

.theme-toggle {
  width: 38px; height: 38px; border-radius: var(--r-pill);
  border: 1px solid var(--line); display: grid; place-items: center;
  color: var(--text-muted);
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.theme-toggle:hover { color: var(--royal); border-color: var(--royal); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.nav-toggle { display: none; width: 42px; height: 42px; border-radius: var(--r-sm); }
.nav-toggle span {
  display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor;
  margin: 4px auto; transition: transform var(--t-med) var(--ease), opacity var(--t-fast) var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 6. Hero ----------------------------------------------------- */
.hero {
  position: relative;
  background: var(--grad-deep);
  color: var(--text-invert);
  overflow: hidden;
  padding-block: clamp(4.5rem, 3rem + 7vw, 9rem) clamp(4rem, 2.5rem + 6vw, 8rem);
}
.hero-canvas {
  position: absolute; inset: 0; z-index: 0; opacity: 0.85;
  pointer-events: none;
}
.hero-veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(900px 480px at 78% 8%, rgba(44, 75, 255, 0.4), transparent 62%),
    radial-gradient(700px 420px at 12% 88%, rgba(34, 228, 242, 0.22), transparent 65%);
}
.hero .shell { position: relative; z-index: 2; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(2.5rem, 1rem + 5vw, 5rem);
  align-items: center;
}
.hero h1 { font-size: var(--fs-display); font-weight: 600; }
.hero .lead { color: var(--text-invert-mut); margin-top: var(--sp-5); max-width: 54ch; }
.hero .btn-group { margin-top: var(--sp-6); }

.hero-note {
  margin-top: var(--sp-6); display: flex; flex-wrap: wrap; gap: var(--sp-5);
  font-size: var(--fs-small); color: var(--text-invert-mut);
}
.hero-note span { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero-note svg { width: 16px; height: 16px; color: var(--cyan); flex: none; }

/* Signature element: the delivery panel — a glass console reading like a
   live pacing readout from a media buying desk. */
.panel {
  position: relative;
  border-radius: var(--r-xl);
  padding: var(--sp-5);
  background: var(--surface-glass);
  border: 1px solid var(--line-invert);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.85);
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4); padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--line-invert);
}
.panel-title { font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: rgba(255,255,255,.62); }
.panel-live { display: inline-flex; align-items: center; gap: 0.45rem; font-family: var(--font-mono); font-size: var(--fs-micro); color: var(--cyan); }
.panel-live i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(34, 228, 242, 0.7); animation: pulse-ring 2.4s var(--ease) infinite;
}
.panel-rows { display: grid; gap: var(--sp-4); padding-block: var(--sp-5); }
.panel-row { display: grid; grid-template-columns: 1fr auto; gap: 0.3rem 1rem; align-items: baseline; }
.panel-row dt { font-size: var(--fs-small); color: rgba(255,255,255,.66); }
.panel-row dd { font-family: var(--font-mono); font-size: 1.02rem; color: #fff; }
.panel-bar { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; }
.panel-bar i { display: block; height: 100%; border-radius: 3px; background: var(--grad-brand); width: 0; transition: width 1.4s var(--ease-out-soft); }
.panel-foot {
  border-top: 1px solid var(--line-invert); padding-top: var(--sp-4);
  font-size: var(--fs-micro); font-family: var(--font-mono); color: rgba(255,255,255,.5);
}
.panel-spark { width: 100%; height: 74px; margin-top: var(--sp-2); }
.panel-spark path.line { fill: none; stroke: var(--cyan); stroke-width: 2; stroke-linecap: round; }
.panel-spark path.area { fill: url(#plumbixSparkFill); stroke: none; }

/* ---------- 7. Statistics ---------------------------------------------- */
.stat-band { border-block: 1px solid var(--line); background: var(--surface); }
.section-dark .stat-band, .stat-band.invert { border-color: var(--line-invert); background: transparent; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat {
  padding: var(--sp-7) var(--sp-5);
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: 0; padding-left: 0; }
.invert .stat, .section-dark .stat { border-color: var(--line-invert); }
.stat-value {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.1rem, 1.4rem + 2.4vw, 3.2rem);
  letter-spacing: -0.035em; line-height: 1;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { margin-top: var(--sp-3); font-size: var(--fs-small); color: var(--text-muted); max-width: 24ch; }
.section-dark .stat-label { color: var(--text-invert-mut); }

/* ---------- 8. Cards ---------------------------------------------------- */
.card {
  position: relative;
  padding: var(--sp-6);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: var(--grad-brand); transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-slow) var(--ease-out-soft);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); border-color: var(--line-strong); }
.card:hover::before { transform: scaleX(1); }
.card h3 { margin-bottom: var(--sp-3); }
.card p { color: var(--text-muted); font-size: 0.96rem; }
.card-glass {
  background: var(--surface-glass); border-color: var(--line-invert); color: #fff;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.card-glass p { color: var(--text-invert-mut); }

.card-icon {
  width: 52px; height: 52px; border-radius: var(--r-md);
  display: grid; place-items: center; margin-bottom: var(--sp-5);
  background: linear-gradient(140deg, rgba(44,75,255,.12), rgba(34,228,242,.14));
  border: 1px solid rgba(44, 75, 255, 0.16);
  color: var(--royal);
}
.card-glass .card-icon { border-color: var(--line-invert); color: var(--cyan); background: rgba(255,255,255,.06); }
.card-icon svg { width: 24px; height: 24px; }

.card-list { margin-top: var(--sp-4); display: grid; gap: 0.55rem; }
.card-list li { position: relative; padding-left: 1.5rem; font-size: 0.92rem; color: var(--text-muted); }
.card-list li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 7px; height: 7px; border-radius: 2px; background: var(--grad-brand);
}
.card-glass .card-list li { color: var(--text-invert-mut); }

.card-link { margin-top: var(--sp-5); }

/* Media card (case studies, blog) */
.media-card {
  border-radius: var(--r-lg); overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); display: flex; flex-direction: column;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.media-card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }
.media-card figure { margin: 0; overflow: hidden; aspect-ratio: 16 / 10; background: var(--surface-alt); }
.media-card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease); }
.media-card:hover figure img { transform: scale(1.045); }
.media-body { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3); flex: 1; }
.tag {
  display: inline-flex; align-items: center; align-self: flex-start;
  padding: 0.28rem 0.7rem; border-radius: var(--r-pill);
  font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(44, 75, 255, 0.08); color: var(--royal); border: 1px solid rgba(44, 75, 255, 0.16);
}
.media-meta { margin-top: auto; padding-top: var(--sp-3); font-size: var(--fs-micro); font-family: var(--font-mono); color: var(--text-faint); border-top: 1px solid var(--line); }

.result-row { display: flex; flex-wrap: wrap; gap: var(--sp-5); margin-top: var(--sp-2); }
.result-row div strong { display: block; font-family: var(--font-display); font-size: 1.4rem; color: var(--royal); letter-spacing: -0.03em; }
.result-row div span { font-size: var(--fs-micro); color: var(--text-faint); }

/* ---------- 9. Logos / partners ---------------------------------------- */
.partner-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--sp-5); align-items: center; }
.partner {
  display: grid; place-items: center; padding: var(--sp-4) var(--sp-3);
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  letter-spacing: -0.01em; color: var(--text-faint);
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface); text-align: center;
  transition: color var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}
.partner:hover { color: var(--royal); border-color: rgba(44, 75, 255, 0.4); }
.section-dark .partner { background: rgba(255,255,255,.03); border-color: var(--line-invert); color: rgba(255,255,255,.62); }
.section-dark .partner:hover { color: var(--cyan); border-color: rgba(34,228,242,.4); }

/* ---------- 10. Process timeline --------------------------------------- */
.timeline { display: grid; gap: 0; counter-reset: step; }
.step {
  display: grid; grid-template-columns: 92px minmax(0, 1fr) minmax(0, 1.1fr);
  gap: var(--sp-5); align-items: start;
  padding-block: var(--sp-6);
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.section-dark .step { border-color: var(--line-invert); }
.step-index {
  font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.1em;
  color: var(--royal); padding-top: 0.35rem;
}
.section-dark .step-index { color: var(--cyan); }
.step h3 { letter-spacing: -0.02em; }
.step p { color: var(--text-muted); }
.section-dark .step p { color: var(--text-invert-mut); }
.step-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: var(--sp-4); }
.chip {
  padding: 0.3rem 0.75rem; border-radius: var(--r-pill);
  font-size: var(--fs-micro); font-family: var(--font-mono);
  border: 1px solid var(--line); color: var(--text-faint);
}
.section-dark .chip { border-color: var(--line-invert); color: rgba(255,255,255,.6); }

/* ---------- 11. Testimonials ------------------------------------------- */
.slider { position: relative; }
.slider-viewport { overflow: hidden; }
.slider-track { display: flex; transition: transform var(--t-slow) var(--ease-out-soft); }
.slide { flex: 0 0 100%; padding-inline: 2px; }

.quote {
  padding: clamp(1.75rem, 1rem + 2.4vw, 3.25rem);
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-md);
}
.section-dark .quote { background: var(--surface-glass); border-color: var(--line-invert); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: none; }
.quote blockquote {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.15rem, 0.95rem + 1.1vw, 1.75rem);
  line-height: 1.42; letter-spacing: -0.02em;
}
.quote figcaption { margin-top: var(--sp-5); display: flex; align-items: center; gap: var(--sp-4); }
.avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 600;
  color: #04091f; background: var(--grad-brand);
}
.quote cite { font-style: normal; font-weight: 600; display: block; }
.quote figcaption span { font-size: var(--fs-small); color: var(--text-muted); }
.section-dark .quote figcaption span { color: var(--text-invert-mut); }

.slider-nav { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); margin-top: var(--sp-5); }
.slider-dots { display: flex; gap: 0.5rem; }
.slider-dots button {
  width: 26px; height: 4px; border-radius: 3px; background: var(--line-strong);
  transition: background var(--t-fast) var(--ease), width var(--t-med) var(--ease);
}
.slider-dots button[aria-selected="true"] { background: var(--grad-brand); width: 44px; }
.slider-arrows { display: flex; gap: 0.5rem; }
.slider-arrows button {
  width: 42px; height: 42px; border-radius: var(--r-pill);
  border: 1px solid var(--line); display: grid; place-items: center; color: var(--text-muted);
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.section-dark .slider-arrows button { border-color: var(--line-invert); color: #fff; }
.slider-arrows button:hover { color: var(--royal); border-color: var(--royal); }
.section-dark .slider-arrows button:hover { color: var(--cyan); border-color: var(--cyan); }
.slider-arrows svg { width: 17px; height: 17px; }

/* ---------- 12. Pricing ------------------------------------------------- */
.price-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-4); align-items: stretch; }
.price {
  display: flex; flex-direction: column; gap: var(--sp-4);
  padding: var(--sp-6); border-radius: var(--r-lg);
  border: 1px solid var(--line); background: var(--surface);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.price:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.price-featured {
  border-color: transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--grad-brand) border-box;
  border: 1px solid transparent;
  box-shadow: var(--sh-glow);
}
.price-badge {
  align-self: flex-start; padding: 0.25rem 0.7rem; border-radius: var(--r-pill);
  font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--grad-brand); color: #04091f;
}
.price-name { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.02em; }
.price-amount { font-family: var(--font-display); font-size: 2.5rem; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.price-amount small { font-family: var(--font-body); font-size: 0.85rem; font-weight: 400; color: var(--text-faint); letter-spacing: 0; }
.price-desc { font-size: 0.92rem; color: var(--text-muted); }
.price ul { display: grid; gap: 0.6rem; margin-top: var(--sp-2); }
.price ul li { position: relative; padding-left: 1.6rem; font-size: 0.9rem; color: var(--text-muted); }
.price ul li::before {
  content: ""; position: absolute; left: 0; top: 0.35em; width: 15px; height: 15px; border-radius: 50%;
  background: rgba(44, 75, 255, 0.1);
}
.price ul li::after {
  content: ""; position: absolute; left: 4.5px; top: 0.62em; width: 6px; height: 3px;
  border-left: 2px solid var(--royal); border-bottom: 2px solid var(--royal);
  transform: rotate(-45deg);
}
.price .btn { margin-top: auto; }

.billing-toggle { display: inline-flex; padding: 4px; border-radius: var(--r-pill); background: var(--surface-alt); border: 1px solid var(--line); }
.billing-toggle button {
  padding: 0.5rem 1.1rem; border-radius: var(--r-pill); font-size: 0.87rem; font-weight: 600;
  color: var(--text-muted); transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.billing-toggle button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--sh-sm); }

/* ---------- 13. FAQ / accordion ---------------------------------------- */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.section-dark .faq { border-color: var(--line-invert); }
.faq-item { border-bottom: 1px solid var(--line); }
.section-dark .faq-item { border-color: var(--line-invert); }
.faq-q {
  width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-5);
  padding: var(--sp-5) 0; text-align: left;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.015em;
  transition: color var(--t-fast) var(--ease);
}
.faq-q:hover { color: var(--royal); }
.section-dark .faq-q:hover { color: var(--cyan); }
.faq-icon { flex: none; width: 24px; height: 24px; position: relative; margin-top: 3px; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; background: currentColor; border-radius: 2px;
  transform: translate(-50%, -50%);
}
.faq-icon::before { width: 14px; height: 2px; }
.faq-icon::after { width: 2px; height: 14px; transition: transform var(--t-med) var(--ease), opacity var(--t-fast); }
.faq-q[aria-expanded="true"] .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-med) var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a p { color: var(--text-muted); padding-bottom: var(--sp-5); max-width: 78ch; }
.section-dark .faq-a p { color: var(--text-invert-mut); }

/* ---------- 14. Forms --------------------------------------------------- */
.form { display: grid; gap: var(--sp-5); }
.field { display: grid; gap: 0.45rem; }
.field label { font-size: 0.88rem; font-weight: 600; }
.field .hint { font-size: var(--fs-micro); color: var(--text-faint); }
.field input, .field textarea, .field select {
  width: 100%; padding: 0.85rem 1rem;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--surface); color: var(--text);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a5570' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; background-size: 18px; padding-right: 2.6rem; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--royal); box-shadow: 0 0 0 3px rgba(44, 75, 255, 0.16); outline: none; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #d33a4b; }
.field-error { font-size: var(--fs-micro); color: #d33a4b; min-height: 1em; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); }

.check { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.88rem; color: var(--text-muted); }
.check input { width: 18px; height: 18px; flex: none; margin-top: 2px; accent-color: var(--royal); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-status { font-size: 0.9rem; border-radius: var(--r-sm); padding: 0.85rem 1rem; display: none; }
.form-status.is-visible { display: block; }
.form-status.ok { background: rgba(34, 228, 242, 0.1); border: 1px solid rgba(11, 185, 200, 0.4); color: #06626b; }
.form-status.err { background: rgba(211, 58, 75, 0.08); border: 1px solid rgba(211, 58, 75, 0.35); color: #a02233; }

.form-card {
  padding: clamp(1.5rem, 1rem + 2vw, 2.75rem);
  border-radius: var(--r-xl); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--sh-md);
}

/* ---------- 15. Page header (interior) --------------------------------- */
.page-head {
  background: var(--grad-deep); color: var(--text-invert);
  padding-block: clamp(3.25rem, 2rem + 5vw, 6rem);
  position: relative; overflow: hidden;
}
.page-head::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(720px 380px at 82% 0%, rgba(44, 75, 255, 0.42), transparent 62%),
    radial-gradient(520px 300px at 6% 100%, rgba(34, 228, 242, 0.18), transparent 68%);
}
.page-head .shell { position: relative; z-index: 1; }
.page-head h1 { max-width: 20ch; }
.page-head .lead { color: var(--text-invert-mut); margin-top: var(--sp-4); }

.breadcrumb { margin-bottom: var(--sp-5); }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-size: var(--fs-micro); font-family: var(--font-mono); color: rgba(255,255,255,.6); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; color: rgba(255,255,255,.32); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb [aria-current="page"] { color: #fff; }

/* ---------- 16. Prose (legal, articles) -------------------------------- */
.prose { max-width: 74ch; }
.prose > * + * { margin-top: var(--sp-4); }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem); margin-top: var(--sp-7); }
.prose h3 { margin-top: var(--sp-6); }
.prose p, .prose li { color: var(--text-muted); }
.prose ul, .prose ol { display: grid; gap: 0.6rem; padding-left: 1.3rem; }
.prose ul li { list-style: disc; }
.prose ol li { list-style: decimal; }
.prose a { color: var(--royal); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.prose th, .prose td { text-align: left; padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--line); }
.prose th { font-family: var(--font-display); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); }

.doc-note {
  padding: var(--sp-5); border-radius: var(--r-md);
  background: var(--surface-alt); border: 1px solid var(--line);
  font-size: 0.9rem; color: var(--text-muted);
}

.toc { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.toc h2 { font-size: 0.8rem; font-family: var(--font-mono); letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--text-faint); margin-bottom: var(--sp-4); }
.toc a { display: block; padding: 0.4rem 0; font-size: 0.88rem; color: var(--text-muted); border-left: 2px solid var(--line); padding-left: 0.9rem; }
.toc a:hover { color: var(--royal); border-color: var(--royal); }
.layout-doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 4.5rem); }

/* ---------- 17. Split feature ------------------------------------------ */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
.split-media { border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); background: var(--surface-alt); box-shadow: var(--sh-lg); }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.section-dark .split-media { border-color: var(--line-invert); }
.split.reverse .split-media { order: 2; }

.tick-list { display: grid; gap: var(--sp-4); margin-top: var(--sp-5); }
.tick-list li { display: grid; grid-template-columns: 26px 1fr; gap: 0.85rem; align-items: start; }
.tick-list svg { width: 22px; height: 22px; color: var(--royal); margin-top: 2px; }
.section-dark .tick-list svg { color: var(--cyan); }
.tick-list strong { display: block; font-family: var(--font-display); letter-spacing: -0.01em; }
.tick-list span { font-size: 0.93rem; color: var(--text-muted); }
.section-dark .tick-list span { color: var(--text-invert-mut); }

/* ---------- 18. CTA band ------------------------------------------------ */
.cta-band {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl);
  padding: clamp(2.25rem, 1.4rem + 3.5vw, 4.5rem);
  background: var(--grad-deep);
  color: var(--text-invert);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.cta-band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(620px 320px at 88% 12%, rgba(44, 75, 255, 0.5), transparent 60%),
              radial-gradient(460px 260px at 4% 96%, rgba(34, 228, 242, 0.22), transparent 66%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { max-width: 20ch; }
.cta-band p { color: var(--text-invert-mut); max-width: 56ch; margin-top: var(--sp-4); }
.cta-band .btn-group { margin-top: var(--sp-6); }

/* ---------- 19. Footer -------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--text-invert); padding-top: var(--sp-9); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); gap: var(--sp-6); }
.footer-brand svg { height: 30px; width: auto; margin-bottom: var(--sp-4); }
.footer-brand p { color: rgba(255,255,255,.6); font-size: 0.92rem; max-width: 34ch; }
.footer-col h3 { font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: var(--sp-4); font-weight: 500; }
.footer-col a { display: block; padding: 0.32rem 0; font-size: 0.9rem; color: rgba(255,255,255,.72); transition: color var(--t-fast) var(--ease); }
.footer-col a:hover { color: var(--cyan); }
.footer-contact { margin-top: var(--sp-5); font-size: 0.9rem; color: rgba(255,255,255,.72); display: grid; gap: 0.4rem; }
.footer-contact a:hover { color: var(--cyan); }
.footer-bottom {
  margin-top: var(--sp-8); padding-block: var(--sp-5);
  border-top: 1px solid var(--line-invert);
  display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: center; justify-content: space-between;
  font-size: var(--fs-small); color: rgba(255,255,255,.55);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.footer-legal a:hover { color: var(--cyan); }
.social { display: flex; gap: 0.5rem; }
.social a {
  width: 38px; height: 38px; border-radius: var(--r-pill); display: grid; place-items: center;
  border: 1px solid var(--line-invert); color: rgba(255,255,255,.7);
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.social a:hover { color: var(--cyan); border-color: var(--cyan); }
.social svg { width: 17px; height: 17px; }

/* ---------- 20. Cookie banner ------------------------------------------ */
.cookie-bar {
  position: fixed; left: var(--sp-4); right: var(--sp-4); bottom: var(--sp-4); z-index: 200;
  max-width: 560px; padding: var(--sp-5);
  background: var(--surface-glass-lite);
  backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-lg);
  transform: translateY(140%); transition: transform var(--t-slow) var(--ease-out-soft);
}
.cookie-bar.is-visible { transform: translateY(0); }
.cookie-bar h2 { font-size: 1.05rem; margin-bottom: var(--sp-2); }
.cookie-bar p { font-size: 0.88rem; color: var(--text-muted); }
.cookie-bar .btn-group { margin-top: var(--sp-4); }

/* ---------- 21. 404 ----------------------------------------------------- */
.error-page { min-height: 72vh; display: grid; place-items: center; text-align: center; background: var(--grad-deep); color: #fff; padding-block: var(--sp-9); }
.error-code {
  font-family: var(--font-display); font-weight: 600; line-height: 0.9;
  font-size: clamp(5rem, 2rem + 16vw, 12rem); letter-spacing: -0.06em;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- 22. Map placeholder ---------------------------------------- */
.map-embed {
  border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line);
  background: var(--surface-alt); min-height: 340px; position: relative;
}
.map-embed iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }
.map-fallback { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: var(--sp-6); color: var(--text-muted); font-size: 0.9rem; }

/* ---------- 23. Job / resource rows ------------------------------------ */
.row-list { border-top: 1px solid var(--line); }
.row-item {
  display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 0.7fr)) auto;
  gap: var(--sp-5); align-items: center; padding-block: var(--sp-5);
  border-bottom: 1px solid var(--line);
  transition: background var(--t-fast) var(--ease);
}
.row-item:hover { background: var(--surface-alt); }
.row-item h3 { font-size: 1.1rem; }
.row-item p { font-size: 0.9rem; color: var(--text-muted); }
.row-item .meta { font-family: var(--font-mono); font-size: var(--fs-micro); color: var(--text-faint); }
