/* ════════════════════════════════════════════════════════════════
   Satvitech design system
   ════════════════════════════════════════════════════════════════ */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand colours */
  --navy-950: #0B1220;      /* Midnight Navy */
  --navy-900: #14243A;      /* Deep Blue */
  --navy-800: #1C3150;
  --navy-700: #2A4366;
  --cyan: #20C4D8;          /* Satellite Cyan */
  --cyan-soft: #8FE3EE;
  --cyan-ink: #087584;      /* cyan tone for text on light backgrounds (AA) */
  --cloud: #F4F7FB;         /* Cloud White */
  --white: #FFFFFF;
  --border: #DCE5EF;        /* Border Grey */
  --slate: #56657A;         /* Muted Slate, darkened for AA on Cloud White */
  --ink: #0B1220;
  --text: #24324A;
  --on-dark: #E8EEF6;
  --on-dark-muted: #A9B8CB;
  --line-dark: rgba(255, 255, 255, 0.10);
  --amber: #F2B544;
  --danger: #B42318;
  --success: #067647;

  /* Type */
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.1875rem;
  --fs-h3: 1.1875rem;
  --fs-h2: clamp(1.75rem, 1.2rem + 1.9vw, 2.5rem);
  --fs-h1: clamp(2.25rem, 1.4rem + 3.2vw, 3.6rem);

  /* Space (8px scale) */
  --s1: 0.25rem; --s2: 0.5rem; --s3: 0.75rem; --s4: 1rem; --s5: 1.5rem;
  --s6: 2rem; --s7: 3rem; --s8: 4rem; --s9: 6rem; --s10: 7.5rem;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.06);
  --shadow: 0 8px 24px -12px rgba(11, 18, 32, 0.18), 0 2px 6px rgba(11, 18, 32, 0.05);
  --shadow-lg: 0 30px 60px -30px rgba(11, 18, 32, 0.45);
  --container: 1240px;
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 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);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; letter-spacing: -0.022em; margin: 0; font-weight: 700; }
h3 { font-size: var(--fs-h3); line-height: 1.3; letter-spacing: -0.012em; font-weight: 650; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
main:focus { outline: none; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--cyan); color: var(--navy-950); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.icon { width: 1.25em; height: 1.25em; flex: none; stroke-width: 1.8; }

/* ── Eyebrows, leads ── */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-xs); font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan-ink); margin-bottom: var(--s4); }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: var(--fs-lg); line-height: 1.6; color: var(--slate); max-width: 40rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 1rem; letter-spacing: -0.005em; text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn-icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover .btn-icon { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: var(--fs-sm); }
.btn-primary { background: var(--navy-950); color: #fff; }
.btn-primary:hover { background: var(--navy-800); }
.btn-accent { background: var(--cyan); color: var(--navy-950); }
.btn-accent:hover { background: #4fd3e3; box-shadow: 0 6px 20px -8px rgba(32, 196, 216, .7); }
.btn-secondary { background: transparent; color: var(--ink); border-color: #b9c6d6; }
.btn-secondary:hover { border-color: var(--ink); background: var(--white); }
.btn-ghost-dark { background: transparent; color: var(--on-dark); border-color: rgba(255,255,255,.28); }
.btn-ghost-dark:hover { border-color: var(--cyan); color: #fff; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }

.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--cyan-ink); text-decoration: none; border-bottom: 1.5px solid transparent; padding: 4px 0; }
.text-link .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.text-link:hover { border-bottom-color: currentColor; }
.text-link:hover .icon { transform: translateX(3px); }
.prose a { color: var(--cyan-ink); text-underline-offset: 3px; }

/* ════════════════ Header ════════════════ */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 18, 32, 0.96); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line-dark); color: var(--on-dark); }
.header-inner { display: flex; align-items: center; gap: var(--s5); height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; margin-right: auto; border-radius: 6px; }
.logo-mark { width: 30px; height: 30px; color: currentColor; }
.brand-name { font-weight: 700; font-size: 1.25rem; letter-spacing: -0.03em; }
.desktop-nav { display: none; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: var(--radius-sm); background: none; border: 0; color: var(--on-dark-muted); font-size: var(--fs-sm); font-weight: 550; text-decoration: none; cursor: pointer; transition: color .2s, background-color .2s; }
.nav-link:hover, .nav-link[aria-expanded="true"] { color: #fff; background: rgba(255,255,255,.06); }
.nav-link[aria-current="page"], .nav-link.is-section { color: #fff; box-shadow: inset 0 -2px 0 var(--cyan); border-radius: 0; }
.chevron { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.nav-trigger[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.header-actions { display: flex; align-items: center; gap: var(--s3); }
.header-cta { display: none; }
.header-cta[aria-current="page"] { box-shadow: 0 0 0 2px var(--navy-950), 0 0 0 4px var(--cyan); }

.has-dropdown { position: relative; }
.dropdown { position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-38%); width: min(760px, 90vw); }
.dropdown:not([hidden]) { animation: dd-in .18s var(--ease); }
@keyframes dd-in { from { opacity: 0; transform: translate(-38%, -6px); } to { opacity: 1; transform: translate(-38%, 0); } }
.dropdown::before { content: ""; position: absolute; inset: -14px 0 auto 0; height: 14px; } /* hover bridge */
.dropdown-inner { display: grid; grid-template-columns: 240px 1fr; gap: 8px; padding: 10px; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--border); color: var(--text); }
.dd-overview { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: var(--radius); background: var(--navy-950); color: var(--on-dark); text-decoration: none; }
.dd-overview:hover { background: var(--navy-900); }
.dd-eyebrow { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--cyan); font-weight: 650; }
.dd-overview-title { font-weight: 650; font-size: 1.05rem; line-height: 1.35; color: #fff; }
.dd-more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: 600; color: var(--cyan-soft); }
.dd-more .icon { width: 16px; height: 16px; }
.dd-list { list-style: none; display: grid; gap: 2px; }
.dd-link { display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius); text-decoration: none; transition: background-color .15s; }
.dd-link:hover, .dd-link[aria-current="page"] { background: var(--cloud); }
.dd-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; background: #E6F8FB; color: var(--cyan-ink); flex: none; }
.dd-icon .icon { width: 20px; height: 20px; }
.dd-title { display: block; font-weight: 650; color: var(--ink); font-size: var(--fs-sm); line-height: 1.35; }
.dd-text { display: block; font-size: var(--fs-xs); color: var(--slate); line-height: 1.45; margin-top: 2px; }

.menu-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-sm); background: rgba(255,255,255,.06); border: 1px solid var(--line-dark); color: #fff; cursor: pointer; }
.menu-toggle .icon { width: 22px; height: 22px; }
.menu-close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-close { display: inline; }
.mobile-menu { border-top: 1px solid var(--line-dark); background: var(--navy-950); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; padding: var(--s4) 0 var(--s6); }
.m-list { list-style: none; }
.m-list > li { border-bottom: 1px solid var(--line-dark); }
.m-list a { display: flex; align-items: center; gap: 12px; min-height: 52px; color: #fff; text-decoration: none; font-weight: 600; font-size: 1.05rem; }
.m-list a[aria-current="page"] { color: var(--cyan); }
.m-sub { list-style: none; padding: 0 0 var(--s3) var(--s2); }
.m-sub a { min-height: 46px; font-weight: 500; font-size: var(--fs-sm); color: var(--on-dark-muted); }
.m-sub .icon { color: var(--cyan); width: 18px; height: 18px; }
.m-cta { width: 100%; margin-top: var(--s5); }
body.menu-open { overflow: hidden; }

@media (min-width: 640px) { .header-cta { display: inline-flex; } }
@media (min-width: 1024px) {
  .desktop-nav { display: block; }
  .menu-toggle, .mobile-menu { display: none !important; }
  .brand { margin-right: var(--s5); }
  .desktop-nav { margin-right: auto; }
}

/* ════════════════ Breadcrumbs ════════════════ */
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; list-style: none; font-size: var(--fs-xs); margin-bottom: var(--s6); }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 4px; }
.breadcrumbs a { text-decoration: none; color: inherit; opacity: .8; padding: 4px 0; }
.breadcrumbs a:hover { opacity: 1; text-decoration: underline; }
.breadcrumbs [aria-current] { font-weight: 600; }
.crumb-sep { width: 14px; height: 14px; opacity: .55; }

/* ════════════════ Page hero ════════════════ */
.page-hero { position: relative; padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 104px); overflow: hidden; }
.hero-dark { background: var(--navy-950); color: var(--on-dark); }
.hero-dark::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(143, 227, 238, .14) 1px, transparent 1.2px); background-size: 28px 28px; mask-image: linear-gradient(100deg, transparent 35%, #000 85%); -webkit-mask-image: linear-gradient(100deg, transparent 35%, #000 85%); }
.hero-dark h1 { color: #fff; }
.hero-dark .lead { color: var(--on-dark-muted); }
.hero-dark .eyebrow { color: var(--cyan); }
.hero-dark .breadcrumbs { color: var(--on-dark-muted); }
.hero-light { background: linear-gradient(180deg, var(--cloud), var(--white)); border-bottom: 1px solid var(--border); }
.hero-light .breadcrumbs { color: var(--slate); }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: var(--fs-h1); letter-spacing: -0.032em; max-width: 18ch; margin-bottom: var(--s5); }
.page-hero-grid { display: grid; gap: var(--s7); align-items: center; }
.hero-note { margin-top: var(--s5); font-size: var(--fs-sm); color: var(--on-dark-muted); display: flex; gap: 8px; align-items: center; }
.hero-light .hero-note { color: var(--slate); }
@media (min-width: 960px) {
  .has-visual .page-hero-grid { grid-template-columns: 1.02fr 1fr; gap: var(--s8); }
}

/* ════════════════ Sections ════════════════ */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.tone-white + .tone-white, .tone-cloud + .tone-cloud { padding-top: 0; }
.tone-white { background: var(--white); }
.tone-cloud { background: var(--cloud); }
.tone-navy { background: var(--navy-950); color: var(--on-dark); }
.tone-deep { background: var(--navy-900); color: var(--on-dark); }
.tone-navy h2, .tone-navy h3, .tone-deep h2, .tone-deep h3 { color: #fff; }
.tone-navy .eyebrow, .tone-deep .eyebrow { color: var(--cyan); }
.tone-navy .section-lead, .tone-deep .section-lead { color: var(--on-dark-muted); }
.section-heading { max-width: 46rem; margin-bottom: clamp(32px, 4vw, 56px); }
.section-heading h2 { font-size: var(--fs-h2); }
.section-heading.align-center { margin-left: auto; margin-right: auto; text-align: center; }
.section-heading.align-center .eyebrow { justify-content: center; }
.section-lead { margin-top: var(--s4); font-size: var(--fs-lg); color: var(--slate); line-height: 1.6; }
.prose { max-width: 42rem; }
.prose p + p { margin-top: var(--s4); }
.prose p { color: var(--slate); }
.prose strong { color: var(--ink); }
.tone-navy .prose p, .tone-deep .prose p { color: var(--on-dark-muted); }
.tone-navy .prose strong { color: #fff; }
.mt-6 { margin-top: var(--s6); }
.mt-7 { margin-top: var(--s7); }

/* ── Split ── */
.split { display: grid; gap: var(--s7); }
.split.align-center { align-items: center; }
.split.align-start { align-items: start; }
.split-text h2 { font-size: var(--fs-h2); margin-bottom: var(--s5); }
@media (min-width: 960px) {
  .split { grid-template-columns: 1fr 1.05fr; gap: var(--s8); }
  .split.reverse .split-text { order: 2; }
}

/* ── Feature cards ── */
.feature-grid { display: grid; gap: var(--s4); }
@media (min-width: 640px) { .feature-grid.cols-2, .feature-grid.cols-3, .feature-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .feature-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .feature-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
}
.feature-card { display: flex; flex-direction: column; gap: var(--s3); padding: var(--s6); background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); transition: border-color .2s, box-shadow .2s; }
.feature-card:hover { border-color: #c4d2e1; box-shadow: var(--shadow); }
.tone-white .feature-card { background: var(--cloud); border-color: transparent; }
.tone-white .feature-card:hover { background: var(--white); border-color: var(--border); }
.feature-card p { color: var(--slate); font-size: var(--fs-sm); line-height: 1.65; }
.feature-card .text-link { margin-top: auto; padding-top: var(--s2); }
.feature-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; background: #E3F6F9; color: var(--cyan-ink); margin-bottom: var(--s2); }
.feature-icon .icon { width: 22px; height: 22px; }
.tone-navy .feature-card, .tone-deep .feature-card { background: rgba(255,255,255,.03); border-color: var(--line-dark); }
.tone-navy .feature-card:hover, .tone-deep .feature-card:hover { border-color: rgba(32,196,216,.45); box-shadow: none; }
.tone-navy .feature-card p, .tone-deep .feature-card p { color: var(--on-dark-muted); }
.tone-navy .feature-icon, .tone-deep .feature-icon { background: rgba(32,196,216,.12); color: var(--cyan); }

/* ── Process steps ── */
.process { list-style: none; display: grid; gap: var(--s4); counter-reset: s; }
.process-step { position: relative; padding: var(--s5) var(--s5) var(--s5) 76px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.step-num { position: absolute; left: var(--s5); top: var(--s5); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--navy-950); color: var(--cyan); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.process-step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.process-step p { font-size: var(--fs-sm); color: var(--slate); line-height: 1.6; }
.process-dark .process-step { background: rgba(255,255,255,.03); border-color: var(--line-dark); }
.process-dark .process-step p { color: var(--on-dark-muted); }
.process-dark .step-num { background: var(--cyan); color: var(--navy-950); }
@media (min-width: 1024px) {
  .process.steps-5 { grid-template-columns: repeat(5, 1fr); }
  .process.steps-4 { grid-template-columns: repeat(4, 1fr); }
  .process.steps-3 { grid-template-columns: repeat(3, 1fr); }
  .process { gap: 0; }
  .process-step { padding: 72px var(--s5) var(--s5); border-radius: 0; border-right-width: 0; }
  .process-step:first-child { border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
  .process-step:last-child { border-radius: 0 var(--radius-lg) var(--radius-lg) 0; border-right-width: 1px; }
  .step-num { top: var(--s5); }
  .process-step::after { content: ""; position: absolute; top: calc(var(--s5) + 18px); left: calc(var(--s5) + 44px); right: var(--s5); height: 1px; background: linear-gradient(90deg, var(--border), transparent); }
  .process-dark .process-step::after { background: linear-gradient(90deg, rgba(255,255,255,.18), transparent); }
}

/* ── FAQ ── */
.faq { display: grid; gap: var(--s3); max-width: 52rem; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.faq-item[open] { border-color: #c4d2e1; box-shadow: var(--shadow-sm); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding: 18px 22px; cursor: pointer; list-style: none; font-weight: 600; color: var(--ink); min-height: 56px; border-radius: var(--radius); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { width: 20px; height: 20px; color: var(--cyan-ink); transition: transform .2s var(--ease); }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-answer { padding: 0 22px 20px; color: var(--slate); max-width: 46rem; }
.faq-layout { display: grid; gap: var(--s6); }
@media (min-width: 960px) { .faq-layout { grid-template-columns: 0.8fr 1.4fr; gap: var(--s8); } .faq-layout .section-heading { position: sticky; top: calc(var(--header-h) + 32px); } }

/* ── CTA band ── */
.cta-band { background: var(--navy-950); color: var(--on-dark); padding: clamp(56px, 8vw, 96px) 0; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(143,227,238,.13) 1px, transparent 1.2px); background-size: 28px 28px; mask-image: radial-gradient(ellipse at 85% 50%, #000, transparent 60%); -webkit-mask-image: radial-gradient(ellipse at 85% 50%, #000, transparent 60%); }
.cta-inner { position: relative; display: grid; gap: var(--s5); align-items: center; }
.cta-copy h2 { color: #fff; font-size: var(--fs-h2); max-width: 22ch; }
.cta-copy p { margin-top: var(--s4); color: var(--on-dark-muted); max-width: 40rem; font-size: var(--fs-lg); }
.cta-band .actions { margin-top: 0; }
@media (min-width: 960px) { .cta-inner { grid-template-columns: 1fr auto; gap: var(--s8); } }

/* ── Figures / imagery ── */
.frame { margin: 0; }
.frame-media { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: #9fa094; box-shadow: var(--shadow-lg); }
.frame-media > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.frame figcaption { margin-top: var(--s3); font-size: var(--fs-xs); color: var(--slate); line-height: 1.55; }
.hero-dark .frame figcaption, .tone-navy .frame figcaption { color: var(--on-dark-muted); }
.badge-illustrative { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: rgba(11,18,32,.82); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .01em; backdrop-filter: blur(6px); z-index: 3; }
.badge-illustrative .icon { width: 14px; height: 14px; color: var(--cyan); }
.overlay-layer { transition: opacity .35s var(--ease); }
.overlay-layer.is-hidden { opacity: 0; }

/* Segmented toggle */
.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 10px; background: var(--cloud); border: 1px solid var(--border); margin-bottom: var(--s4); flex-wrap: wrap; }
.seg button { min-height: 40px; padding: 0 16px; border-radius: 7px; border: 0; background: transparent; font-size: var(--fs-sm); font-weight: 600; color: var(--slate); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); }
.hero-dark .seg, .tone-navy .seg { background: rgba(255,255,255,.06); border-color: var(--line-dark); }
.hero-dark .seg button, .tone-navy .seg button { color: var(--on-dark-muted); }
.hero-dark .seg button[aria-pressed="true"], .tone-navy .seg button[aria-pressed="true"] { background: var(--cyan); color: var(--navy-950); }

/* Compare slider */
.compare .frame-media > .compare-top { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.compare-divider { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; background: #fff; transform: translateX(-1px); z-index: 2; box-shadow: 0 0 0 1px rgba(11,18,32,.25); pointer-events: none; }
.compare-divider::after { content: ""; position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1220' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center/20px no-repeat; transform: translate(-50%, -50%); box-shadow: var(--shadow); }
.date-tag { position: absolute; top: 12px; z-index: 2; padding: 5px 10px; border-radius: 6px; background: rgba(11,18,32,.82); color: #fff; font-size: 12px; font-weight: 650; letter-spacing: .02em; }
.date-tag.left { left: 12px; } .date-tag.right { right: 12px; }
.compare-range { width: 100%; margin-top: var(--s4); accent-color: var(--cyan); height: 32px; cursor: pointer; }
.compare-controls { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); align-items: center; justify-content: space-between; margin-top: var(--s2); }
.compare-controls label { font-size: var(--fs-sm); font-weight: 600; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: var(--fs-sm); font-weight: 600; min-height: 44px; }
.switch input { width: 20px; height: 20px; accent-color: var(--cyan-ink); }

/* Legend / tables */
.data-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--s5); box-shadow: var(--shadow-sm); }
.data-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); margin-bottom: var(--s4); flex-wrap: wrap; }
.data-card-head h3 { font-size: 1rem; }
.data-card-note { font-size: var(--fs-xs); color: var(--slate); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 320px; }
.data-table th { text-align: left; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--slate); font-weight: 650; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.data-table td { padding: 10px; border-bottom: 1px solid #edf1f6; color: var(--text); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 10px; vertical-align: -1px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.bar { height: 6px; border-radius: 4px; background: #edf1f6; overflow: hidden; min-width: 60px; }
.bar > span { display: block; height: 100%; border-radius: 4px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85em; }
pre.code-sample { margin: 0; padding: var(--s4); border-radius: var(--radius); background: var(--navy-950); color: #cfe9ee; font-size: 12.5px; line-height: 1.6; overflow-x: auto; }

/* ── Pipeline ── */
.pipeline { display: grid; gap: 10px; }
.pipe-stage { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--border); }
.pipe-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #E3F6F9; color: var(--cyan-ink); flex: none; }
.pipe-icon .icon { width: 20px; height: 20px; }
.pipe-title { display: block; font-weight: 650; color: var(--ink); font-size: var(--fs-sm); }
.pipe-text { display: block; font-size: var(--fs-xs); color: var(--slate); line-height: 1.5; margin-top: 2px; }
.pipeline { list-style: none; }
.pipe-copy { display: block; min-width: 0; }
.pipe-arrow { display: grid; place-items: center; color: var(--slate); transform: rotate(90deg); height: 18px; }
.pipe-arrow .icon { width: 18px; height: 18px; }
.pipeline-dark .pipe-stage { background: rgba(255,255,255,.04); border-color: var(--line-dark); }
.pipeline-dark .pipe-title { color: #fff; }
.pipeline-dark .pipe-text { color: var(--on-dark-muted); }
.pipeline-dark .pipe-icon { background: rgba(32,196,216,.14); color: var(--cyan); }
.pipeline-dark .pipe-arrow { color: var(--cyan); }
@media (min-width: 1024px) {
  .pipeline.horizontal { display: flex; align-items: stretch; gap: 8px; }
  .pipeline.horizontal .pipe-stage { flex: 1 1 0; flex-direction: column; gap: 12px; min-width: 0; }
  .pipeline.horizontal .pipe-arrow { transform: none; height: auto; flex: 0 0 22px; }
}

/* ── Related services ── */
.related-grid { display: grid; gap: var(--s4); }
@media (min-width: 768px) { .related-grid { grid-template-columns: repeat(3, 1fr); } }
.related-card { display: flex; flex-direction: column; gap: 8px; padding: var(--s5); border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--border); text-decoration: none; transition: border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.related-card:hover { border-color: var(--cyan); box-shadow: var(--shadow); transform: translateY(-2px); }
.related-title { font-weight: 650; color: var(--ink); }
.related-text { font-size: var(--fs-sm); color: var(--slate); }
.related-more { display: inline-flex; gap: 6px; align-items: center; margin-top: auto; padding-top: 6px; font-weight: 600; font-size: var(--fs-sm); color: var(--cyan-ink); }
.related-more .icon { width: 16px; height: 16px; }

/* ── Check list ── */
.check-list { list-style: none; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .icon { width: 20px; height: 20px; margin-top: 3px; color: var(--cyan-ink); stroke-width: 2.4; }
.check-dark .icon { color: var(--cyan); }
.check-dark li { color: var(--on-dark-muted); }

/* ── Callout ── */
.callout { display: flex; gap: var(--s4); padding: var(--s5); border-radius: var(--radius-lg); background: #EAF7FA; border: 1px solid #c8eaf0; }
.callout .icon { color: var(--cyan-ink); width: 24px; height: 24px; margin-top: 2px; }
.callout p { color: var(--text); font-size: var(--fs-sm); }
.callout strong { color: var(--ink); }

/* ════════════════ Home ════════════════ */
.home-hero { background: var(--navy-950); color: var(--on-dark); position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 112px); }
.home-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(143,227,238,.13) 1px, transparent 1.2px); background-size: 28px 28px; mask-image: linear-gradient(105deg, transparent 30%, #000 80%); -webkit-mask-image: linear-gradient(105deg, transparent 30%, #000 80%); pointer-events: none; }
.home-hero .container { position: relative; display: grid; gap: var(--s7); align-items: center; }
.home-hero h1 { color: #fff; font-size: clamp(2.5rem, 1.5rem + 3.9vw, 4.25rem); letter-spacing: -0.035em; line-height: 1.04; margin-bottom: var(--s5); max-width: 13ch; }
.home-hero h1 em { font-style: normal; color: var(--cyan); }
.home-hero .lead { color: var(--on-dark-muted); }
.home-hero .eyebrow { color: var(--cyan); }
.hero-support { margin-top: var(--s6); display: flex; align-items: center; gap: 10px; font-size: var(--fs-sm); color: var(--on-dark-muted); }
.hero-support .icon { color: var(--cyan); width: 18px; height: 18px; }
@media (min-width: 1024px) { .home-hero .container { grid-template-columns: 0.95fr 1.1fr; gap: var(--s8); } }
.hero-visual { position: relative; }
.hero-visual .frame-media { border: 1px solid rgba(255,255,255,.12); box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); }
.analysis-panel { position: relative; margin-top: -48px; margin-left: auto; margin-right: 16px; width: min(300px, 86%); z-index: 4; background: rgba(20, 36, 58, .96); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 16px 18px; box-shadow: 0 24px 48px -20px rgba(0,0,0,.7); backdrop-filter: blur(8px); }
.analysis-panel-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 10px; }
.analysis-panel ul { list-style: none; display: grid; gap: 6px; }
.analysis-panel li { display: flex; align-items: center; justify-content: space-between; font-size: var(--fs-sm); color: #fff; }
.analysis-panel li span:first-child { display: inline-flex; align-items: center; gap: 10px; }
.analysis-panel li b { font-variant-numeric: tabular-nums; }
.analysis-panel .dot { width: 10px; height: 10px; border-radius: 3px; }
.analysis-panel-foot { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-dark); font-size: 12px; color: var(--on-dark-muted); line-height: 1.5; }

.service-cards { display: grid; gap: var(--s5); }
@media (min-width: 720px) { .service-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1180px) { .service-cards.cols-4 { grid-template-columns: repeat(4, 1fr); } }
.service-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; transition: border-color .2s, box-shadow .25s var(--ease), transform .25s var(--ease); }
.service-card:hover { border-color: #b8c8da; box-shadow: var(--shadow); transform: translateY(-3px); }
.service-card-media { position: relative; aspect-ratio: 16 / 10; background: var(--navy-900); overflow: hidden; }
.service-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.service-card:hover .service-card-media img { transform: scale(1.04); }
.service-card-body { display: flex; flex-direction: column; gap: 10px; padding: var(--s5); flex: 1; }
.service-card-body .feature-icon { margin: -44px 0 4px; position: relative; z-index: 2; background: var(--navy-950); color: var(--cyan); box-shadow: 0 0 0 4px var(--white); }
.service-card h3 { font-size: 1.125rem; }
.service-card p { font-size: var(--fs-sm); color: var(--slate); }
.service-card .text-link { margin-top: auto; padding-top: 6px; font-size: var(--fs-sm); }
.media-tile { position: absolute; inset: 0; display: grid; place-items: center; background: var(--navy-950); }

.problem-grid { display: grid; gap: var(--s6); }
@media (min-width: 960px) { .problem-grid { grid-template-columns: 1fr 1fr; gap: var(--s8); align-items: start; } }
.compare-cols { display: grid; gap: var(--s4); }
@media (min-width: 640px) { .compare-cols { grid-template-columns: 1fr 1fr; } }
.compare-col { padding: var(--s5); border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--white); }
.compare-col h3 { font-size: 1rem; margin-bottom: var(--s4); display: flex; gap: 10px; align-items: center; }
.compare-col.after { background: var(--navy-950); border-color: var(--navy-950); }
.compare-col.after h3 { color: #fff; }
.compare-col .check-list { gap: 10px; font-size: var(--fs-sm); }
.compare-col.before .check-list .icon { color: var(--slate); }
.compare-col.after .check-list li { color: var(--on-dark-muted); }
.compare-col.after .check-list .icon { color: var(--cyan); }

.app-grid { display: grid; gap: var(--s4); }
@media (min-width: 640px) { .app-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .app-grid { grid-template-columns: repeat(3, 1fr); } }
.app-card { position: relative; padding: var(--s6) var(--s5) var(--s5); border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--border); overflow: hidden; }
.app-card::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--cyan), transparent 70%); opacity: .8; }
.app-card h3 { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; font-size: 1.05rem; }
.app-card h3 .icon { color: var(--cyan-ink); width: 22px; height: 22px; }
.app-card p { font-size: var(--fs-sm); color: var(--slate); }
.app-note { margin-top: var(--s5); font-size: var(--fs-sm); color: var(--slate); display: flex; gap: 10px; align-items: flex-start; }
.app-note .icon { color: var(--cyan-ink); margin-top: 3px; width: 18px; height: 18px; }

/* ════════════════ Services page ════════════════ */
.service-row { display: grid; gap: var(--s6); padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--border); align-items: center; }
.service-row:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 960px) { .service-row { grid-template-columns: 1fr 1fr; gap: var(--s8); } .service-row:nth-child(even) .service-row-media { order: -1; } }
.service-row-num { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; color: var(--cyan-ink); margin-bottom: var(--s3); display: block; }
.service-row h2 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); margin-bottom: var(--s4); }
.service-row p { color: var(--slate); }
.service-row .check-list { margin: var(--s5) 0 var(--s6); font-size: var(--fs-sm); }
.outputs-row { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.output-chip { display: flex; gap: 12px; align-items: center; padding: 16px 18px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--border); font-weight: 600; font-size: var(--fs-sm); color: var(--ink); }
.output-chip .icon { color: var(--cyan-ink); }
.source-cards { display: grid; gap: var(--s4); }
@media (min-width: 768px) { .source-cards { grid-template-columns: repeat(3, 1fr); } }
.factor-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s5); }
.factor-chips span { padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--line-dark); color: var(--on-dark); font-size: var(--fs-sm); }
.tone-cloud .factor-chips span, .tone-white .factor-chips span { background: var(--white); border-color: var(--border); color: var(--ink); }

/* Output previews */
.output-grid { display: grid; gap: var(--s5); }
@media (min-width: 960px) { .output-grid { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.output-stack { display: grid; gap: var(--s4); }
.count-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.count-tile { padding: 14px; border-radius: var(--radius); background: var(--cloud); border: 1px solid var(--border); }
.count-tile b { display: block; font-size: 1.6rem; color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.count-tile span { font-size: var(--fs-xs); color: var(--slate); display: flex; gap: 8px; align-items: center; margin-top: 4px; }

/* Engagement / two-model cards */
.model-cards { display: grid; gap: var(--s4); }
@media (min-width: 768px) { .model-cards { grid-template-columns: 1fr 1fr; } }
.model-card { padding: var(--s6); border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--white); }
.model-card h3 { display: flex; gap: 12px; align-items: center; margin-bottom: var(--s3); font-size: 1.15rem; }
.model-card h3 .icon { color: var(--cyan-ink); }
.model-card p { color: var(--slate); font-size: var(--fs-sm); }
.model-card .check-list { margin-top: var(--s4); font-size: var(--fs-sm); }
.model-card .tag { display: inline-block; margin-bottom: var(--s3); padding: 4px 10px; border-radius: 999px; background: #E3F6F9; color: var(--cyan-ink); font-size: 12px; font-weight: 650; letter-spacing: .03em; }

/* Mock UI window */
.ui-window { border-radius: var(--radius-lg); overflow: hidden; background: var(--navy-900); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); }
.ui-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--navy-950); border-bottom: 1px solid var(--line-dark); font-size: 12px; color: var(--on-dark-muted); }
.ui-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a3c58; display: inline-block; }
.ui-bar span { margin-left: 8px; }
.ui-body { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line-dark); }
@media (min-width: 560px) { .ui-body { grid-template-columns: 170px 1fr; } }
.ui-side { background: var(--navy-900); padding: 14px; display: grid; gap: 6px; align-content: start; }
.ui-side p { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--on-dark-muted); margin: 6px 0 2px; }
.ui-step { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--on-dark); padding: 7px 8px; border-radius: 6px; }
.ui-step .icon { width: 15px; height: 15px; color: var(--cyan); }
.ui-step.active { background: rgba(32,196,216,.12); }
.ui-step.todo { color: var(--on-dark-muted); }
.ui-step.todo .icon { color: var(--on-dark-muted); }
.ui-main { background: var(--navy-900); padding: 14px; display: grid; gap: 12px; }
.ui-main .frame-media { box-shadow: none; border-radius: 8px; }
.ui-rows { display: grid; gap: 6px; }
.ui-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 6px; background: rgba(255,255,255,.04); font-size: 12.5px; color: var(--on-dark); }
.ui-row .pill { padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 650; background: rgba(242,181,68,.16); color: var(--amber); }
.ui-row .pill.ok { background: rgba(123,224,166,.14); color: #7BE0A6; }

/* Imagery type cards */
.imagery-cards { display: grid; gap: var(--s4); }
@media (min-width: 720px) { .imagery-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .imagery-cards { grid-template-columns: repeat(5, 1fr); } }
.imagery-card { display: flex; flex-direction: column; gap: 10px; padding: var(--s5); border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--border); }
.imagery-card h3 { font-size: 1.02rem; }
.imagery-card p { font-size: var(--fs-sm); color: var(--slate); }
.imagery-card dl { margin: auto 0 0; padding-top: 10px; border-top: 1px solid var(--border); display: grid; gap: 6px; font-size: var(--fs-xs); }
.imagery-card dt { font-weight: 650; color: var(--ink); }
.imagery-card dd { margin: 0; color: var(--slate); }
.band-strip { display: flex; gap: 3px; height: 8px; }
.band-strip span { flex: 1; border-radius: 2px; }

/* Values grid (about) */
.values { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 720px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .values { grid-template-columns: repeat(3, 1fr); } }
.value { background: var(--white); padding: var(--s6); }
.value .num { font-size: var(--fs-xs); font-weight: 700; color: var(--cyan-ink); letter-spacing: .1em; }
.value h3 { margin: 10px 0 8px; }
.value p { color: var(--slate); font-size: var(--fs-sm); }
.mission { font-size: clamp(1.5rem, 1rem + 1.8vw, 2.4rem); line-height: 1.3; letter-spacing: -0.02em; color: #fff; font-weight: 600; max-width: 30ch; }
.mission em { font-style: normal; color: var(--cyan); }
.focus-list { display: grid; gap: var(--s4); }
.focus-item { display: grid; grid-template-columns: auto 1fr; gap: var(--s4); padding: var(--s5); border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--border); }
.focus-item .icon { width: 22px; height: 22px; color: var(--cyan-ink); margin-top: 2px; }
.focus-item h3 { font-size: 1.02rem; margin-bottom: 4px; }
.focus-item p { font-size: var(--fs-sm); color: var(--slate); }
.focus-item.not .icon { color: var(--slate); }
.pattern-visual { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid rgba(255,255,255,.12); }
.pattern-visual img { width: 100%; height: 100%; object-fit: cover; }

/* ════════════════ Contact / form ════════════════ */
.contact-grid { display: grid; gap: var(--s7); align-items: start; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1.55fr 1fr; gap: var(--s8); } .contact-aside { position: sticky; top: calc(var(--header-h) + 32px); } }
.form-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(20px, 4vw, 40px); box-shadow: var(--shadow); }
.form-card fieldset { border: 0; padding: 0; margin: 0 0 var(--s6); min-width: 0; }
.form-card legend { font-size: 1.15rem; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; padding: 0; margin-bottom: var(--s2); }
.legend-note { font-size: var(--fs-sm); color: var(--slate); margin-bottom: var(--s5); }
.form-grid { display: grid; gap: var(--s5); }
@media (min-width: 640px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; align-content: start; }
.field > label, .field-label { font-weight: 600; font-size: var(--fs-sm); color: var(--ink); }
.req { color: var(--danger); margin-left: 2px; }
.opt { font-weight: 500; color: var(--slate); font-size: var(--fs-xs); margin-left: 6px; }
.hint { font-size: var(--fs-xs); color: var(--slate); line-height: 1.5; }
.input { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1.5px solid #c9d5e3; background: var(--white); color: var(--ink); font-size: 1rem; transition: border-color .15s, box-shadow .15s; }
.input:hover { border-color: #9fb1c6; }
.input:focus { outline: none; border-color: var(--cyan-ink); box-shadow: 0 0 0 4px rgba(32,196,216,.22); }
textarea.input { min-height: 132px; resize: vertical; line-height: 1.55; }
select.input { appearance: none; -webkit-appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2356657A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.input[aria-invalid="true"] { border-color: var(--danger); background: #FFFBFA; }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(180,35,24,.15); }
.field-error { display: flex; gap: 6px; align-items: flex-start; color: var(--danger); font-size: var(--fs-sm); font-weight: 550; }
.field-error:empty { display: none; }
.field-error .icon { width: 16px; height: 16px; margin-top: 3px; }
.checks { display: grid; gap: 8px; }
@media (min-width: 640px) { .checks { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: 12px; align-items: center; min-height: 48px; padding: 10px 14px; border: 1.5px solid #dbe4ee; border-radius: var(--radius-sm); cursor: pointer; font-size: var(--fs-sm); transition: border-color .15s, background-color .15s; }
.check:hover { border-color: #9fb1c6; }
.check:has(input:checked) { border-color: var(--cyan-ink); background: #F0FAFC; }
.check input { width: 18px; height: 18px; accent-color: var(--cyan-ink); flex: none; }
.form-actions { display: flex; flex-wrap: wrap; gap: var(--s4); align-items: center; justify-content: space-between; padding-top: var(--s5); border-top: 1px solid var(--border); }
.form-actions .hint { max-width: 30rem; }
.error-summary { margin-bottom: var(--s5); padding: var(--s4) var(--s5); border-radius: var(--radius); background: #FEF3F2; border: 1px solid #FECDCA; color: #7A271A; }
.error-summary h2 { font-size: 1rem; color: #7A271A; margin-bottom: 6px; }
.error-summary ul { padding-left: 1.2em; font-size: var(--fs-sm); }
.error-summary a { color: #7A271A; font-weight: 600; }
.form-status { margin-top: var(--s5); padding: var(--s5); border-radius: var(--radius); border: 1px solid #c8eaf0; background: #EAF7FA; }
.form-status h2 { font-size: 1.05rem; margin-bottom: 6px; display: flex; gap: 10px; align-items: center; }
.form-status h2 .icon { color: var(--cyan-ink); }
.form-status p { font-size: var(--fs-sm); color: var(--text); }
.form-status p + p { margin-top: 8px; }
.form-status textarea { margin-top: var(--s4); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; min-height: 180px; }
.form-status .actions { margin-top: var(--s4); }
.aside-card { padding: var(--s6); border-radius: var(--radius-lg); background: var(--navy-950); color: var(--on-dark); }
.aside-card h2 { font-size: 1.25rem; color: #fff; margin-bottom: var(--s5); }
.next-steps { list-style: none; display: grid; gap: var(--s5); counter-reset: n; }
.next-steps li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; }
.next-steps li::before { counter-increment: n; content: counter(n); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(32,196,216,.14); color: var(--cyan); font-weight: 700; font-size: var(--fs-sm); }
.next-steps h3 { color: #fff; font-size: 1rem; margin-bottom: 4px; }
.next-steps p { color: var(--on-dark-muted); font-size: var(--fs-sm); }
.aside-note { margin-top: var(--s5); padding-top: var(--s5); border-top: 1px solid var(--line-dark); font-size: var(--fs-sm); color: var(--on-dark-muted); }
.aside-note a { color: var(--cyan); font-weight: 600; }
.aside-tips { margin-top: var(--s4); padding: var(--s5); border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--white); }
.aside-tips h2 { font-size: 1.02rem; margin-bottom: var(--s3); }
.aside-tips .check-list { font-size: var(--fs-sm); color: var(--slate); }

/* ════════════════ Footer ════════════════ */
.site-footer { background: var(--navy-950); color: var(--on-dark-muted); padding: clamp(48px, 6vw, 72px) 0 var(--s6); border-top: 1px solid var(--line-dark); }
.footer-cta { display: flex; flex-wrap: wrap; gap: var(--s5); align-items: center; justify-content: space-between; padding: var(--s6); border-radius: var(--radius-lg); background: var(--navy-900); border: 1px solid var(--line-dark); margin-bottom: var(--s8); }
.footer-cta-title { color: #fff; font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; }
.footer-cta-text { font-size: var(--fs-sm); margin-top: 4px; }
.footer-grid { display: grid; gap: var(--s7); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand p { margin-top: var(--s4); font-size: var(--fs-sm); max-width: 26rem; line-height: 1.7; }
.footer-heading { color: #fff; font-weight: 650; font-size: var(--fs-sm); margin-bottom: var(--s4); }
.footer-col ul { list-style: none; display: grid; gap: 4px; }
.footer-col a { display: inline-block; padding: 6px 0; text-decoration: none; font-size: var(--fs-sm); color: var(--on-dark-muted); transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { margin-top: var(--s8); padding-top: var(--s5); border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3); font-size: var(--fs-xs); }

/* ════════════════ 404 ════════════════ */
.notfound { min-height: 60vh; display: grid; align-items: center; }
.notfound .code { font-size: clamp(4rem, 12vw, 8rem); font-weight: 800; letter-spacing: -0.05em; color: var(--cyan); line-height: 1; }

/* ════════════════ Reveal motion ════════════════ */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Compare: overlay only on the Date B side */
.compare .frame-media { touch-action: pan-y; cursor: ew-resize; }
.compare .change-overlay { clip-path: inset(0 0 0 var(--pos, 50%)); }
.compare .change-overlay.is-hidden { opacity: 0; }

/* Prevent grid children from forcing horizontal overflow on small screens */
.output-grid > *, .output-stack > *, .split > *, .contact-grid > *, .page-hero-grid > *, .problem-grid > *, .faq-layout > *, .service-row > *, .home-hero .container > * { min-width: 0; }
@media (max-width: 479px) {
  .btn { white-space: normal; text-align: center; line-height: 1.3; padding-top: 10px; padding-bottom: 10px; }
  .actions .btn { width: 100%; }
}
.hero-dark .hint, .tone-navy .hint, .tone-deep .hint { color: var(--on-dark-muted); }
@media (max-width: 1023px) { .analysis-panel { margin: 12px 0 0; width: 100%; } }
.section.contact-section { padding-top: clamp(32px, 4vw, 56px); }
.footer-action { margin-top: var(--s5); }
.footer-action .btn { width: auto; }
.form-status.is-error { background: #FEF3F2; border-color: #FECDCA; }
.form-status.is-error h2 { color: #7A271A; }
.form-status a { color: var(--cyan-ink); font-weight: 600; }
