/* ============================================================
   ClaimClean — Marketing Site Design System
   Brand: ClaimClean blue #5792CC on charcoal / white,
   matching the product app's dark & light themes.
   Theme system: light is default (:root); dark overrides live
   on :root[data-theme="dark"]. Dark "band" sections (heroes,
   CTA, footer) stay charcoal in both themes via --band-* tokens.
   ============================================================ */

:root {
  /* Brand */
  --brand: #5792cc;
  --brand-strong: #4680be;
  --brand-deep: #3a6ea8;
  --brand-soft: #85b2dd;
  --brand-tint: rgba(87, 146, 204, 0.12);
  --brand-glow: rgba(87, 146, 204, 0.2);
  --link: #4680be;

  /* Status */
  --amber-500: #f59e0b;
  --green-500: #4caf7d;
  --red-500: #e5484d;

  /* Content surfaces (light theme) */
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #fafcfe;
  --text: #2e3338;
  --heading: #24292f;
  --muted: #5a6472;
  --muted-2: #8a93a0;
  --line: #e3e9f0;
  --shadow-sm: 0 1px 2px rgba(30, 41, 59, 0.05), 0 2px 8px rgba(30, 41, 59, 0.05);
  --shadow-md: 0 2px 6px rgba(30, 41, 59, 0.06), 0 12px 32px rgba(30, 41, 59, 0.1);

  /* Charcoal bands — dark in BOTH themes (heroes, CTA, footer, product mock) */
  --band-bg: #1a1b1e;
  --band-bg-deep: #141518;
  --band-surface: rgba(255, 255, 255, 0.045);
  --band-surface-2: rgba(255, 255, 255, 0.07);
  --band-line: rgba(255, 255, 255, 0.09);
  --band-text: #e7eaee;
  --band-muted: #a2aab4;
  --shadow-band: 0 4px 12px rgba(8, 10, 13, 0.3), 0 24px 64px rgba(8, 10, 13, 0.42);

  /* Hero (theme-aware: light hero in light mode, charcoal in dark) */
  --hero-bg-base: #eef4fa;
  --hero-glow-a: rgba(87, 146, 204, 0.2);
  --hero-glow-b: rgba(87, 146, 204, 0.1);
  --hero-grid: rgba(87, 146, 204, 0.09);
  --hero-text: #232a33;
  --hero-muted: #52606f;
  --hero-line: rgba(58, 110, 168, 0.16);
  --hero-chip-bg: rgba(255, 255, 255, 0.65);
  --accent-a: #3a6ea8;
  --accent-b: #5792cc;

  /* Header (theme-aware glass) */
  --head-glass: rgba(255, 255, 255, 0.85);
  --head-text: #2e3338;
  --head-text-dim: rgba(46, 51, 56, 0.78);
  --head-hover: rgba(46, 51, 56, 0.06);
  --head-line: rgba(30, 41, 59, 0.08);
  --head-drop: rgba(255, 255, 255, 0.98);
  --head-shadow: 0 8px 30px rgba(30, 41, 59, 0.1);

  /* Type & layout */
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "Inter", -apple-system, "Segoe UI", sans-serif;
  --container: 1180px;
  --radius: 14px;
  --radius-lg: 22px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.55s;
}

:root[data-theme="dark"] {
  --link: #85b2dd;

  /* Content surfaces (charcoal, matching the product app) */
  --bg: #161719;
  --surface: #1e2023;
  --surface-2: #24262a;
  --text: #dfe3e8;
  --heading: #f0f3f6;
  --muted: #9ba3ae;
  --muted-2: #6f7883;
  --line: rgba(255, 255, 255, 0.09);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.35), 0 12px 32px rgba(0, 0, 0, 0.4);

  --band-bg: #121316;
  --band-bg-deep: #0e0f11;

  /* Hero goes charcoal */
  --hero-bg-base: #131417;
  --hero-glow-a: rgba(87, 146, 204, 0.16);
  --hero-glow-b: rgba(87, 146, 204, 0.07);
  --hero-grid: rgba(148, 178, 210, 0.05);
  --hero-text: #f2f5f8;
  --hero-muted: #a2aab4;
  --hero-line: rgba(255, 255, 255, 0.1);
  --hero-chip-bg: rgba(255, 255, 255, 0.05);
  --accent-a: #85b2dd;
  --accent-b: #aecdea;

  --head-glass: rgba(14, 15, 17, 0.82);
  --head-text: #eef1f4;
  --head-text-dim: rgba(231, 234, 238, 0.8);
  --head-hover: rgba(255, 255, 255, 0.07);
  --head-line: rgba(255, 255, 255, 0.08);
  --head-drop: rgba(20, 21, 24, 0.98);
  --head-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.3s, color 0.3s;
}

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

a {
  color: var(--link);
  text-decoration: none;
}

::selection {
  background: rgba(87, 146, 204, 0.3);
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  color: inherit;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.02rem; }

p {
  margin: 0 0 1em;
}

.lead {
  font-size: clamp(1.02rem, 1.5vw, 1.185rem);
  line-height: 1.7;
  color: var(--muted);
}

.on-dark .lead,
.lead.on-dark {
  color: var(--band-muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-strong);
  margin-bottom: 1.1rem;
}

:root[data-theme="dark"] .eyebrow {
  color: var(--brand-soft);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-soft));
}

.on-dark .eyebrow {
  color: var(--brand-soft);
}

/* ---------- Layout primitives ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.section-tight {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

:root[data-theme="dark"] .section-alt {
  background: #191b1e;
}

.section-dark {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(87, 146, 204, 0.12), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(87, 146, 204, 0.05), transparent 65%),
    var(--band-bg);
  color: var(--band-text);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2.2rem, 5vw, 3.4rem);
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head.center .eyebrow {
  justify-content: center;
}

.section-head h2 {
  color: var(--heading);
}

.section-dark .section-head h2,
.on-dark h2 {
  color: #f2f5f8;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out),
    background-color 0.25s, border-color 0.25s, color 0.25s;
  will-change: transform;
}

.btn svg {
  width: 15px;
  height: 15px;
  flex: none;
  transition: transform 0.25s var(--ease-out);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: #fff;
  box-shadow: 0 1px 2px rgba(58, 110, 168, 0.4), 0 8px 24px rgba(87, 146, 204, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 2px 4px rgba(58, 110, 168, 0.4), 0 12px 32px rgba(87, 146, 204, 0.4);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--heading);
  border-color: rgba(90, 100, 114, 0.35);
}

.btn-ghost:hover {
  border-color: var(--brand);
  background: var(--brand-tint);
}

.on-dark .btn-ghost,
.btn-ghost.on-dark {
  color: var(--band-text);
  border-color: rgba(231, 234, 238, 0.25);
}

.on-dark .btn-ghost:hover,
.btn-ghost.on-dark:hover {
  border-color: rgba(231, 234, 238, 0.5);
  background: rgba(231, 234, 238, 0.06);
}

.btn-lg {
  padding: 0.95rem 1.9rem;
  font-size: 1rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background-color 0.35s, border-color 0.35s, box-shadow 0.35s;
  border-bottom: 1px solid transparent;
  color: var(--head-text);
}

.site-header.scrolled {
  background: var(--head-glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--head-line);
  box-shadow: var(--head-shadow);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 76px;
}

/* Visual order: brand · nav · toggles (nav-side sits between brand and
   nav-menu in the DOM so the drawer overlay doesn't cover it on mobile) */
.nav-wrap .brand { order: 0; }
.nav-wrap .nav-menu { order: 1; }
.nav-wrap .nav-side { order: 2; }

@media (min-width: 981px) {
  .nav-wrap .nav-menu { margin-left: auto; }
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--head-text);
  flex: none;
}

.brand .lockup {
  height: 46px;
  width: auto;
}

.brand .lockup .c-mark {
  fill: var(--brand);
}

.brand .lockup .c-contrast {
  fill: currentColor;
}

.site-footer .brand {
  color: var(--band-text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links > li {
  position: relative;
}

.nav-links > li > a,
.nav-links > li > button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.85rem;
  border: 0;
  background: none;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--head-text-dim);
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s;
}

.nav-links > li > a:hover,
.nav-links > li > button:hover,
.nav-links > li > a.active,
.nav-links > li.open > button {
  color: var(--head-text);
  background: var(--head-hover);
}

.nav-links .caret {
  width: 9px;
  height: 9px;
  transition: transform 0.25s var(--ease-out);
}

.nav-links li.open .caret {
  transform: rotate(180deg);
}

.nav-drop {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 250px;
  padding: 0.5rem;
  background: var(--head-drop);
  border: 1px solid var(--head-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s var(--ease-out), transform 0.22s var(--ease-out), visibility 0.22s;
  list-style: none;
  margin: 0;
}

.nav-links li.open .nav-drop,
.nav-links li:hover .nav-drop,
.nav-links li:focus-within .nav-drop {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-drop a {
  display: block;
  padding: 0.6rem 0.8rem;
  border-radius: 9px;
  color: var(--head-text-dim);
  font-size: 0.9rem;
  transition: background-color 0.18s, color 0.18s;
}

.nav-drop a:hover {
  background: var(--brand-tint);
  color: var(--head-text);
}

.nav-drop a small {
  display: block;
  font-size: 0.76rem;
  color: var(--muted-2);
  margin-top: 1px;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-cta .btn {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
}

/* Theme toggle + mobile hamburger cluster */

.nav-side {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: none;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border: 1px solid var(--head-line);
  border-radius: 10px;
  background: none;
  color: var(--head-text-dim);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s, transform 0.25s var(--ease-out);
}

.theme-toggle:hover {
  color: var(--head-text);
  border-color: var(--brand);
  background: var(--brand-tint);
  transform: rotate(12deg);
}

.theme-toggle svg {
  width: 17px;
  height: 17px;
}

.theme-toggle .ic-sun { display: none; }
.theme-toggle .ic-moon { display: block; }

:root[data-theme="dark"] .theme-toggle .ic-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .ic-moon { display: none; }

/* Mobile nav */

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--head-line);
  border-radius: 10px;
  background: none;
  cursor: pointer;
  position: relative;
  flex: none;
}

.nav-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  border-radius: 2px;
  background: var(--head-text);
  transition: transform 0.3s var(--ease-out), opacity 0.3s, top 0.3s var(--ease-out);
}

.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 25px; }

body.nav-open .nav-toggle span:nth-child(1) { top: 19px; transform: rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--head-drop);
    padding: 1.25rem clamp(1.25rem, 4vw, 2.5rem) 3rem;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.28s var(--ease-out), transform 0.28s var(--ease-out), visibility 0.28s;
  }

  body.nav-open .nav-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
  }

  .nav-links > li > a,
  .nav-links > li > button {
    width: 100%;
    justify-content: space-between;
    font-size: 1.05rem;
    padding: 0.85rem 0.5rem;
  }

  .nav-drop {
    position: static;
    transform: none;
    min-width: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    display: none;
    padding: 0 0 0.5rem 0.85rem;
  }

  .nav-links li.open .nav-drop {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-links li:hover .nav-drop {
    transform: none;
  }

  .nav-cta {
    margin-top: 1.25rem;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-cta .btn {
    width: 100%;
    padding: 0.9rem;
    font-size: 1rem;
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .site-header {
    background: var(--head-glass);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
}

@media (min-width: 981px) {
  .nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }
}

/* ---------- Hero (theme-aware) ---------- */

.hero,
.page-hero {
  position: relative;
  background:
    radial-gradient(1200px 600px at 75% -20%, var(--hero-glow-a), transparent 60%),
    radial-gradient(800px 500px at 10% 20%, var(--hero-glow-b), transparent 60%),
    var(--hero-bg-base);
  color: var(--hero-text);
  overflow: hidden;
  transition: background-color 0.3s;
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--hero-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, black 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, black 30%, transparent 75%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--brand-glow) 0%, rgba(87, 146, 204, 0.05) 38%, transparent 68%);
  opacity: 0.55;
  pointer-events: none;
  transform: translate(-50%, -50%);
  left: 70%;
  top: 30%;
  z-index: 0;
}

.hero-home {
  padding: calc(76px + clamp(3.5rem, 8vw, 6.5rem)) 0 clamp(4rem, 8vw, 6.5rem);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero h1,
.page-hero h1 {
  color: var(--hero-text);
  margin-bottom: 1.1rem;
}

.hero h1 .accent,
.page-hero h1 .accent {
  background: linear-gradient(100deg, var(--accent-a), var(--accent-b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead,
.page-hero .lead {
  color: var(--hero-muted);
  max-width: 560px;
  margin-bottom: 1.9rem;
}

/* Ghost buttons inside heroes follow hero text color */
.hero .btn-ghost,
.page-hero .btn-ghost {
  color: var(--hero-text);
  border-color: var(--hero-line);
}

.hero .btn-ghost:hover,
.page-hero .btn-ghost:hover {
  border-color: var(--brand);
  background: var(--brand-tint);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 0.95rem 0.42rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--hero-line);
  background: var(--hero-chip-bg);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--hero-muted);
  margin-bottom: 1.5rem;
}

.hero-badge .dot {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-tint);
}

.hero-badge .dot::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 12px rgba(87, 146, 204, 0.9);
  animation: pulse-dot 2.6s infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.7); opacity: 0.6; }
}

.hero-footnote {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 2.1rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--hero-line);
}

.hero-footnote .item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  color: var(--hero-muted);
}

.hero-footnote .item svg {
  width: 16px;
  height: 16px;
  color: var(--brand);
  flex: none;
}

/* ---------- Page hero (interior pages) ---------- */

.page-hero {
  padding: calc(76px + clamp(3rem, 6vw, 4.8rem)) 0 clamp(3rem, 6vw, 4.8rem);
}

.page-hero::before {
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at 50% 0%, black 25%, transparent 72%);
  mask-image: radial-gradient(ellipse 90% 90% at 50% 0%, black 25%, transparent 72%);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  max-width: 780px;
}

.page-hero .lead {
  max-width: 640px;
}

.page-hero .btn-row {
  margin-top: 1.9rem;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--muted-2);
  margin-bottom: 1.4rem;
}

.crumbs a {
  color: var(--hero-muted);
}

.crumbs a:hover {
  color: var(--hero-text);
}

.crumbs .sep {
  opacity: 0.45;
}

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  gap: 1.4rem;
}

.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 980px) {
  .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.7rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
    border-color 0.35s, background-color 0.3s;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(87, 146, 204, 0.45);
}

.card h3 {
  color: var(--heading);
}

/* Mouse-tracked spotlight (set --mx / --my via JS) */
.spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%),
    rgba(87, 146, 204, 0.1), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.spotlight:hover::after {
  opacity: 1;
}

.section-dark .card,
.card.dark {
  background: var(--band-surface);
  border-color: var(--band-line);
  color: var(--band-text);
  box-shadow: none;
}

.section-dark .card:hover,
.card.dark:hover {
  border-color: rgba(133, 178, 221, 0.45);
  box-shadow: 0 16px 48px rgba(8, 10, 13, 0.5);
}

.section-dark .card h3,
.card.dark h3 {
  color: #f2f5f8;
}

.section-dark .card p,
.card.dark p {
  color: var(--band-muted);
}

.card .icon-chip {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(87, 146, 204, 0.15), rgba(133, 178, 221, 0.1));
  border: 1px solid rgba(87, 146, 204, 0.3);
  color: var(--brand-strong);
  margin-bottom: 1.15rem;
}

:root[data-theme="dark"] .card .icon-chip,
.section-dark .card .icon-chip,
.card.dark .icon-chip {
  color: var(--brand-soft);
}

.card .icon-chip svg {
  width: 22px;
  height: 22px;
}

.card .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand-strong);
  background: var(--brand-tint);
  border: 1px solid rgba(87, 146, 204, 0.3);
  border-radius: 999px;
  padding: 0.22rem 0.7rem;
  margin-bottom: 0.9rem;
}

:root[data-theme="dark"] .card .tag,
.section-dark .card .tag,
.card.dark .tag {
  color: var(--brand-soft);
}

.card ul.feature-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

ul.feature-list li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.94rem;
  color: var(--muted);
}

.section-dark ul.feature-list li,
.card.dark ul.feature-list li,
.on-dark ul.feature-list li {
  color: var(--band-muted);
}

ul.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%235792cc" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round"><path d="M5 13l4 4L19 7"/></svg>')
    center / 10px no-repeat,
    rgba(87, 146, 204, 0.14);
}

.card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.3rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--brand-strong);
}

:root[data-theme="dark"] .card .card-link,
.card.dark .card-link,
.section-dark .card .card-link {
  color: var(--brand-soft);
}

.card .card-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.25s var(--ease-out);
}

.card:hover .card-link svg {
  transform: translateX(4px);
}

/* Card media (generated imagery) */
.card .card-media {
  margin: -1.8rem -1.7rem 1.3rem;
  height: 150px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.card .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.card:hover .card-media img {
  transform: scale(1.045);
}

/* ---------- Workflow diagram ---------- */

.workflow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.6rem;
  align-items: stretch;
  counter-reset: wf;
}

.workflow.w3 { grid-template-columns: repeat(3, 1fr); }
.workflow.w6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 1100px) {
  .workflow,
  .workflow.w3,
  .workflow.w6 {
    grid-template-columns: repeat(2, 1fr);
  }

  .workflow .wf-node:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .workflow,
  .workflow.w3,
  .workflow.w6 {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin: 0 auto;
  }

  .workflow .wf-node:not(:last-child)::after {
    display: block;
    top: auto;
    bottom: -0.65rem;
    left: 50%;
    right: auto;
    width: 2px;
    height: 0.7rem;
    background: linear-gradient(180deg, rgba(87, 146, 204, 0.6), rgba(87, 146, 204, 0.15));
  }
}

.wf-node {
  position: relative;
  background: var(--band-surface);
  border: 1px solid var(--band-line);
  border-radius: var(--radius);
  padding: 1.3rem 1.1rem 1.2rem;
  text-align: left;
  transition: transform 0.35s var(--ease-out), border-color 0.35s, box-shadow 0.35s;
}

.wf-node:hover {
  transform: translateY(-4px);
  border-color: rgba(133, 178, 221, 0.5);
  box-shadow: 0 14px 40px rgba(8, 10, 13, 0.45);
}

.wf-node .wf-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--brand-soft);
  background: rgba(87, 146, 204, 0.14);
  border: 1px solid rgba(87, 146, 204, 0.35);
  margin-bottom: 0.85rem;
}

.wf-node h4 {
  font-size: 0.98rem;
  color: #f2f5f8;
  margin-bottom: 0.3rem;
}

.wf-node p {
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--band-muted);
  margin: 0;
}

.wf-node .wf-human {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.8rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--brand-soft);
}

.wf-node .wf-human svg {
  width: 13px;
  height: 13px;
}

.wf-node:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -0.65rem;
  width: 0.7rem;
  height: 2px;
  background: linear-gradient(90deg, rgba(87, 146, 204, 0.6), rgba(87, 146, 204, 0.15));
}

/* ---------- Numbered steps ---------- */

.step-list {
  display: grid;
  gap: 1rem;
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}

.step-list li {
  position: relative;
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.3rem 1.15rem 4.2rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-out), border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
}

.step-list li:hover {
  transform: translateX(4px);
  border-color: rgba(87, 146, 204, 0.5);
  box-shadow: var(--shadow-md);
}

.step-list li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--brand-strong);
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-tint);
  border: 1px solid rgba(87, 146, 204, 0.3);
}

:root[data-theme="dark"] .step-list li::before {
  color: var(--brand-soft);
}

.step-list li strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--heading);
  margin-bottom: 0.15rem;
}

.step-list li span {
  font-size: 0.92rem;
  color: var(--muted);
}

/* Step lists inside dark bands */
.section-dark .step-list li,
.on-dark .step-list li {
  background: var(--band-surface);
  border-color: var(--band-line);
  box-shadow: none;
}

.section-dark .step-list li strong,
.on-dark .step-list li strong {
  color: #f2f5f8;
}

.section-dark .step-list li span,
.on-dark .step-list li span {
  color: var(--band-muted);
}

.section-dark .step-list li::before,
.on-dark .step-list li::before {
  color: var(--brand-soft);
}

/* ---------- Split layout ---------- */

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.split .visual {
  position: relative;
}

/* ---------- Pills ---------- */

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--text);
  transition: border-color 0.25s, transform 0.25s var(--ease-out), background-color 0.3s;
}

.pill:hover {
  border-color: rgba(87, 146, 204, 0.55);
  transform: translateY(-2px);
}

.pill svg {
  width: 15px;
  height: 15px;
  color: var(--brand-strong);
  flex: none;
}

:root[data-theme="dark"] .pill svg {
  color: var(--brand-soft);
}

.on-dark .pill {
  background: var(--band-surface);
  border-color: var(--band-line);
  color: var(--band-text);
}

.on-dark .pill svg {
  color: var(--brand-soft);
}

/* ---------- Callout / note ---------- */

.note {
  display: flex;
  gap: 0.85rem;
  padding: 1.05rem 1.25rem;
  border-radius: var(--radius);
  background: rgba(87, 146, 204, 0.08);
  border: 1px solid rgba(87, 146, 204, 0.3);
  font-size: 0.92rem;
  color: var(--text);
}

.note svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--brand-strong);
  margin-top: 0.15rem;
}

:root[data-theme="dark"] .note svg {
  color: var(--brand-soft);
}

.note.amber {
  background: rgba(245, 158, 11, 0.07);
  border-color: rgba(245, 158, 11, 0.3);
}

.note.amber svg {
  color: var(--amber-500);
}

.on-dark .note {
  color: var(--band-text);
  background: rgba(87, 146, 204, 0.09);
}

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  background:
    radial-gradient(900px 400px at 50% 120%, rgba(87, 146, 204, 0.25), transparent 65%),
    var(--band-bg-deep);
  color: var(--band-text);
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 178, 210, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 178, 210, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 50% 100%, black 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 90% at 50% 100%, black 20%, transparent 75%);
}

.cta-band .container {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-top: clamp(4rem, 8vw, 6rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

.cta-band h2 {
  color: #f2f5f8;
  max-width: 640px;
  margin: 0 auto 0.9rem;
}

.cta-band p {
  color: var(--band-muted);
  max-width: 560px;
  margin: 0 auto 2rem;
}

.cta-band .btn-row {
  justify-content: center;
}

.cta-band .eyebrow {
  color: var(--brand-soft);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--band-bg-deep);
  color: var(--band-muted);
  border-top: 1px solid var(--band-line);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--band-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 2.2rem;
  margin-bottom: 3rem;
}

@media (max-width: 980px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand p {
  max-width: 300px;
  font-size: 0.88rem;
  margin-top: 1rem;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--band-muted);
  opacity: 0.75;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.footer-col a {
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.6rem;
  border-top: 1px solid var(--band-line);
  font-size: 0.8rem;
}

.footer-bottom .disclaimer {
  max-width: 640px;
  font-size: 0.76rem;
  line-height: 1.6;
  opacity: 0.8;
}

/* ---------- Product mockup (charcoal app frame, both themes) ---------- */

.dash-frame {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #26282c, #17181b);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-band);
  padding: 0.9rem;
  will-change: transform;
  transform-style: preserve-3d;
}

.dash-frame::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(87, 146, 204, 0.55), transparent 30%, transparent 70%, rgba(133, 178, 221, 0.35));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.dash {
  border-radius: 12px;
  background: #1b1c1f;
  border: 1px solid rgba(255, 255, 255, 0.09);
  overflow: hidden;
  font-size: 0.72rem;
  color: #e7eaee;
}

.dash-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #a2aab4;
}

.dash-top .dots {
  display: flex;
  gap: 5px;
}

.dash-top .dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.dash-top .title {
  font-weight: 600;
  color: #dfe4e9;
  letter-spacing: 0.02em;
}

/* App tab bar (Summary / Claims / Messaging / Settings) */
.dash-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.55rem 0.9rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dash-tabs span {
  padding: 0.4rem 0.75rem;
  border-radius: 8px 8px 0 0;
  font-size: 0.68rem;
  font-weight: 600;
  color: #8b939e;
}

.dash-tabs span.active {
  color: #fff;
  background: rgba(87, 146, 204, 0.16);
  box-shadow: inset 0 -2px 0 var(--brand);
}

.dash-body {
  padding: 0.9rem;
  display: grid;
  gap: 0.7rem;
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.dash-stat {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  padding: 0.6rem 0.7rem;
}

.dash-stat .k {
  color: #8b939e;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dash-stat .v {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: #f2f5f8;
  margin-top: 2px;
}

.dash-stat .v em {
  font-style: normal;
  font-size: 0.62rem;
  color: var(--brand-soft);
  margin-left: 4px;
}

/* Tiny bar chart for the Summary tab mock */
.dash-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 54px;
  padding: 0.35rem 0.2rem 0;
}

.dash-bars i {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, rgba(87, 146, 204, 0.9), rgba(87, 146, 204, 0.35));
  min-height: 12%;
}

.dash-rows {
  display: grid;
  gap: 0.45rem;
}

.dash-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.7rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 9px;
  padding: 0.55rem 0.7rem;
  transition: border-color 0.25s, background-color 0.25s;
}

.dash-row:hover {
  border-color: rgba(87, 146, 204, 0.45);
  background: rgba(255, 255, 255, 0.07);
}

.dash-row .c {
  min-width: 0;
}

.dash-row .id {
  font-weight: 600;
  color: #e5eaef;
}

.dash-row .desc {
  color: #8b939e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.66rem;
}

.badge {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.badge.signal {
  color: #ffd9a8;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge.clear {
  color: #b1e6c8;
  background: rgba(76, 175, 125, 0.13);
  border: 1px solid rgba(76, 175, 125, 0.32);
}

.badge.review {
  color: #bcd7f7;
  background: rgba(87, 146, 204, 0.15);
  border: 1px solid rgba(87, 146, 204, 0.35);
}

.dash-scan {
  position: relative;
  overflow: hidden;
}

.dash-scan::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(87, 146, 204, 0.07), transparent);
  animation: scan 4.5s var(--ease-out) infinite;
  pointer-events: none;
}

@keyframes scan {
  0% { left: -40%; }
  60%, 100% { left: 110%; }
}

/* Floating chips around the dashboard */
.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  background: rgba(20, 21, 24, 0.94);
  border: 1px solid rgba(87, 146, 204, 0.45);
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(8, 10, 13, 0.5);
  font-size: 0.74rem;
  font-weight: 600;
  color: #e2e9f0;
  z-index: 2;
  animation: floaty 7s ease-in-out infinite;
}

.float-chip svg {
  width: 15px;
  height: 15px;
  color: var(--brand-soft);
  flex: none;
}

.float-chip.a { top: -16px; right: 8%; animation-delay: 0.6s; }
.float-chip.b { bottom: -14px; left: 4%; animation-delay: 1.8s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@media (max-width: 640px) {
  .float-chip { display: none; }
}

/* ---------- LinkedIn embeds ---------- */

.li-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.4rem;
  align-items: start;
}

.li-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
}

.li-card:hover {
  transform: translateY(-3px);
  border-color: rgba(87, 146, 204, 0.5);
  box-shadow: var(--shadow-md);
}

.li-card iframe {
  display: block;
  width: 100%;
  border: 0;
  background: #fff;
}

/* ---------- Comparison table ---------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

table.matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 640px;
}

table.matrix th,
table.matrix td {
  text-align: left;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

table.matrix th {
  font-family: var(--font-display);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: var(--surface-2);
}

table.matrix tr:last-child td {
  border-bottom: 0;
}

table.matrix tr:hover td {
  background: rgba(87, 146, 204, 0.045);
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  gap: 0.9rem;
  max-width: 800px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s, background-color 0.3s;
  overflow: hidden;
}

.faq details[open] {
  border-color: rgba(87, 146, 204, 0.5);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--heading);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  background:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%235792cc" stroke-width="2.6" stroke-linecap="round"><path d="M6 9l6 6 6-6"/></svg>')
    center / contain no-repeat;
  transition: transform 0.3s var(--ease-out);
}

.faq details[open] summary::after {
  transform: rotate(180deg);
}

.faq .faq-body {
  padding: 0 1.3rem 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Forms ---------- */

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  box-shadow: var(--shadow-md);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.field label .req {
  color: var(--red-500);
}

.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  padding: 0.72rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
  width: 100%;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted-2);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(87, 146, 204, 0.16);
}

.checkbox-row {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.86rem;
  color: var(--muted);
}

.checkbox-row input {
  margin-top: 0.25rem;
  width: 17px;
  height: 17px;
  accent-color: var(--brand);
  flex: none;
}

.form-status {
  display: none;
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 500;
}

.form-status.ok {
  display: block;
  background: rgba(87, 146, 204, 0.12);
  border: 1px solid rgba(87, 146, 204, 0.4);
  color: var(--brand-strong);
}

:root[data-theme="dark"] .form-status.ok {
  color: var(--brand-soft);
}

.form-status.err {
  display: block;
  background: rgba(229, 72, 77, 0.07);
  border: 1px solid rgba(229, 72, 77, 0.3);
  color: var(--red-500);
}

/* ---------- Reveal on scroll ---------- */

/* Reveal styles only apply when JS has stamped the root element,
   so content is never hidden if scripts fail to load. */
html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

html.js .reveal.in-view {
  opacity: 1;
  transform: none;
}

/* Stagger helpers */
.reveal.d1 { --reveal-delay: 0.08s; }
.reveal.d2 { --reveal-delay: 0.16s; }
.reveal.d3 { --reveal-delay: 0.24s; }
.reveal.d4 { --reveal-delay: 0.32s; }
.reveal.d5 { --reveal-delay: 0.4s; }

/* ---------- Utility ---------- */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.75rem; }
.mt-2 { margin-top: 1.5rem; }
.mt-3 { margin-top: 2.5rem; }
.mb-2 { margin-bottom: 1.5rem; }
.max-720 { max-width: 720px; }
.max-820 { max-width: 820px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--brand-strong);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: 0 0 10px 0;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html.js .reveal {
    opacity: 1;
    transform: none;
  }
}
