/* SeeSight marketing site
   Light, calm, editorial. SeeSight brand: navy primary, periwinkle accent, cool light background. */

:root {
  /* Brand palette */
  --primary: #0B1F5C;
  --accent: #8FB4FF;
  --accent-deep: #7AA3F7;
  --accent-ink: #0B1F5C;
  --bg: #F4F7FE;
  --bg-soft: #E9EEFA;
  --surface: #FFFFFF;
  --line: #D8E1F3;
  --line-strong: #C3CEE6;
  --ink: #0A1633;
  --ink-2: #2E3A5C;
  --muted: #52608A;
  --navy: #0B1F5C;
  --navy-2: #142A6E;
  --navy-line: #263C82;
  --on-navy: #EEF2FF;
  --on-navy-muted: #AAB7DC;
  /* Claim statuses */
  --ok-bg: #E0F1EA; --ok-fg: #2D6A4F;
  --warn-bg: #FDF0D9; --warn-fg: #7A5310;
  --bad-bg: #F6E0E0; --bad-fg: #8E2A22;
  --draft-bg: #E6EAF5; --draft-fg: #52608A;

  --font-display: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --shadow-sm: 0 1px 2px rgba(10, 22, 51, .05), 0 2px 8px rgba(10, 22, 51, .04);
  --shadow: 0 2px 4px rgba(10, 22, 51, .04), 0 12px 32px rgba(10, 22, 51, .08);
  --shadow-lg: 0 4px 10px rgba(10, 22, 51, .05), 0 30px 70px rgba(10, 22, 51, .14);

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 136px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.05; letter-spacing: -0.035em; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.band-navy :focus-visible, .cta-band :focus-visible, .site-footer :focus-visible { outline-color: var(--accent); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px;
  text-decoration: none; font-weight: 600; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section-tight { padding: calc(var(--section) * .6) 0; }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-deep); box-shadow: 0 0 0 3px rgba(143, 180, 255, .35); }
.display { font-size: clamp(44px, 7.4vw, 96px); line-height: .98; letter-spacing: -0.045em; }
.h2 { font-size: clamp(34px, 4.8vw, 60px); }
.h3 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.025em; line-height: 1.15; }
.serif { font-family: var(--font-serif); font-weight: 400; font-style: italic; letter-spacing: -0.02em; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); line-height: 1.55; max-width: 60ch; }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.mark { background: linear-gradient(transparent 62%, rgba(143, 180, 255, .85) 62%, rgba(143, 180, 255, .85) 92%, transparent 92%); padding: 0 .05em; }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head .lead { margin-top: 20px; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--primary); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 0;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: 16px; letter-spacing: -0.01em; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(11, 31, 92, .28); background: var(--navy-2); }
.btn:active { transform: translateY(0); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-dark { --btn-bg: var(--primary); --btn-fg: #fff; }
.btn-dark:hover { background: var(--navy-2); box-shadow: 0 10px 24px rgba(10, 22, 51, .25); }
.btn-outline { --btn-bg: transparent; --btn-fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn-outline:hover { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--ink), 0 10px 24px rgba(10, 22, 51, .08); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 17px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none;
  border-bottom: 1.5px solid currentColor; padding-bottom: 2px;
}
.link-arrow:hover .arrow { transform: translateX(3px); }
.link-arrow .arrow { transition: transform .25s var(--ease); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 36px; }
.center .actions { justify-content: center; }

/* ---------- Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244, 247, 254, .72);
  backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(244, 247, 254, .86); }
.nav { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo { flex-shrink: 0; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -0.03em; }
.logo img { height: 21px; width: auto; display: block; }
.nav > nav { margin-left: auto; }
.nav-links { display: flex; gap: 4px; list-style: none; }
.nav-links a { white-space: nowrap; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-2);
  transition: background-color .2s, color .2s;
}
.nav-links a:hover { background: rgba(10, 22, 51, .06); color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); background: rgba(10, 22, 51, .07); }
.nav-cta { margin-left: 8px; display: flex; align-items: center; gap: 10px; }
.menu-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: transparent; cursor: pointer; align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 18px; height: 1.8px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .3s var(--ease), background-color .2s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu { display: none; }

@media (max-width: 1200px) {
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-menu {
    display: block; position: fixed; inset: 72px 0 0 0; z-index: 99; background: var(--bg);
    padding: 24px var(--gutter) 40px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
  }
  .menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .25s var(--ease), transform .25s var(--ease); }
  .menu-open { overflow: hidden; }
  .mobile-menu ul { list-style: none; border-top: 1px solid var(--line); }
  .mobile-menu li a {
    display: flex; justify-content: space-between; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line);
    font-family: var(--font-display); font-size: 28px; font-weight: 600; letter-spacing: -0.03em; text-decoration: none;
  }
  .mobile-menu li a[aria-current="page"] { color: var(--muted); }
  .mobile-menu .btn { width: 100%; margin-top: 28px; }
  .mobile-menu .mobile-login { margin-top: 12px; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 7vw, 96px); position: relative; }
.hero .eyebrow { margin-bottom: 24px; }
.hero .lead { margin-top: 28px; }
.hero-center { text-align: center; }
.hero-center .display { max-width: 15ch; margin: 0 auto; }
.hero-center .lead { margin-left: auto; margin-right: auto; }
.hero-center .actions { justify-content: center; }

.hero-split { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.hero-split .lead { margin-top: 0; }
.hero-split .actions { margin-top: 28px; }
.hero-split.is-stats { align-items: center; grid-template-columns: 1.1fr 1fr; }
.hero-split.is-stats .lead { margin-top: 28px; }

@media (max-width: 860px) {
  .hero-split, .hero-split.is-stats { grid-template-columns: 1fr; align-items: start; }
}

/* Home hero stage: web screen with phone overlap */
.stage { position: relative; margin: clamp(48px, 7vw, 88px) auto 0; max-width: 1080px; padding-right: clamp(0px, 6vw, 72px); }
.stage::before {
  content: ""; position: absolute; inset: 12% -4% -8% -4%; z-index: -1; border-radius: 48px;
  background: radial-gradient(60% 60% at 50% 40%, rgba(143, 180, 255, .55), rgba(143, 180, 255, 0) 70%);
  filter: blur(10px);
}
.stage .phone { position: absolute; right: 0; bottom: -40px; width: clamp(150px, 22vw, 250px); }

/* ---------- Device frames ---------- */
.browser {
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  border: 1px solid rgba(10, 22, 51, .08); overflow: hidden;
}
.browser-bar { display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 16px; background: #F8FAFF; border-bottom: 1px solid var(--line); }
.browser-dots { display: flex; gap: 7px; }
.browser-dots i { width: 11px; height: 11px; border-radius: 50%; background: #CDD6EA; }
.browser-url { flex: 1; max-width: 360px; margin: 0 auto; height: 26px; border-radius: 8px; background: var(--bg-soft); font-size: 12px; color: var(--muted); display: flex; align-items: center; justify-content: center; }
.browser-body { display: block; background: var(--bg); }
.browser-body img { display: block; width: 100%; height: auto; }

.phone {
  position: relative; background: #0E1530; border-radius: 40px; padding: 9px;
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px #26304F;
}
.phone-screen { position: relative; aspect-ratio: 1170 / 2720; border-radius: 32px; overflow: hidden; background: var(--surface); }
.phone-screen { container-type: inline-size; }
/* A thin status bar keeps the notch clear of the app header */
.phone-status { position: absolute; top: 0; left: 0; right: 0; height: 6.9%; display: flex; align-items: center; justify-content: space-between; padding: 0 9% 0 11%; font-size: clamp(8px, 2.6cqw + 4px, 12px); font-weight: 600; color: var(--ink); }
.phone-status i { width: 1.9em; height: .95em; border-radius: .3em; border: 1.5px solid currentColor; position: relative; }
.phone-status i::after { content: ""; position: absolute; inset: 1.5px; right: 30%; background: currentColor; border-radius: 1px; }
.phone-screen img { position: absolute; top: 6.9%; left: 0; width: 100%; height: 93.1%; object-fit: cover; object-position: top; }
.phone-screen::before { content: ""; position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 32%; height: 20px; border-radius: 999px; background: #0E1530; z-index: 3; }

/* Status chips */
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px; font-size: 10px; font-weight: 600; background: var(--draft-bg); color: var(--draft-fg); white-space: nowrap; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; }
.chip.ok { background: var(--ok-bg); color: var(--ok-fg); }
.chip.warn { background: var(--warn-bg); color: var(--warn-fg); }
.chip.bad { background: var(--bad-bg); color: var(--bad-fg); }
.chip.info { background: rgba(143, 180, 255, .3); color: var(--primary); }

/* ---------- Cards & grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 960px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border-radius: var(--radius); padding: 32px; border: 1px solid rgba(10, 22, 51, .06);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card h3 { margin: 22px 0 10px; }
.card p { color: var(--ink-2); }
.icon {
  width: 48px; height: 48px; border-radius: 14px; background: var(--bg); display: grid; place-items: center; color: var(--ink);
}
.icon svg { width: 24px; height: 24px; }

/* Problem section */
.problem { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.problem .h2 { max-width: 12ch; }
.pain-list { list-style: none; border-top: 1px solid var(--line-strong); }
.pain-list li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line-strong); }
.pain-list .num { font-family: var(--font-serif); font-style: italic; font-size: 28px; line-height: 1; color: var(--muted); }
.pain-list h3 { font-size: 20px; letter-spacing: -0.02em; margin-bottom: 6px; }
.pain-list p { color: var(--ink-2); }
@media (max-width: 860px) { .problem { grid-template-columns: 1fr; } }

/* Stat tiles */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat {
  background: var(--surface); border-radius: var(--radius); padding: 28px 28px 30px; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between;
  border: 1px solid rgba(10, 22, 51, .06); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.stat:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.stat-num { font-family: var(--font-display); font-weight: 600; font-size: clamp(64px, 8vw, 104px); line-height: .9; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 16px; color: var(--ink-2); max-width: 18ch; line-height: 1.4; }
.stat.is-lime { background: var(--accent); }
.stat.is-navy { background: var(--navy); color: var(--on-navy); }
.stat.is-navy .stat-label { color: var(--on-navy-muted); }
@media (max-width: 960px) { .stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .stat { min-height: 180px; padding: 22px; } }

.stats-2x2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stats-2x2 .stat { min-height: 200px; }
.stats-2x2 .stat-num { font-size: clamp(56px, 6vw, 88px); }
.stats-2x2 .stat-word { font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 3vw, 40px); letter-spacing: -0.04em; line-height: 1; }

/* Role tabs */
.tabs { background: var(--surface); border-radius: var(--radius-xl); padding: clamp(20px, 3vw, 40px); border: 1px solid rgba(10, 22, 51, .06); }
.tablist { display: inline-flex; gap: 4px; padding: 5px; background: var(--bg); border-radius: 999px; position: relative; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tablist::-webkit-scrollbar { display: none; }
.tab-ind { position: absolute; top: 5px; bottom: 5px; left: 0; border-radius: 999px; background: var(--ink); transition: transform .4s var(--ease), width .4s var(--ease); z-index: 0; }
.tab {
  position: relative; z-index: 1; border: 0; background: transparent; padding: 10px 20px; border-radius: 999px; cursor: pointer;
  font-weight: 600; font-size: 15px; color: var(--ink-2); transition: color .3s; white-space: nowrap;
}
.tab[aria-selected="true"] { color: var(--bg); }
.tabpanel { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; margin-top: clamp(28px, 4vw, 48px); }
.tabpanel[hidden] { display: none; }
.tabpanel.is-entering > * { animation: rise .55s var(--ease) both; }
.tabpanel.is-entering > :nth-child(2) { animation-delay: .08s; }
.tabpanel h3 { font-size: clamp(28px, 3.2vw, 40px); }
.tabpanel .lead { margin-top: 16px; font-size: 18px; }
.checks { list-style: none; margin-top: 24px; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; color: var(--ink-2); }
.checks li::before {
  content: ""; width: 22px; height: 22px; border-radius: 50%; margin-top: 2px;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1F5C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.tab-visual { background: var(--bg); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 36px); display: grid; place-items: center; min-height: 380px; }
.tab-visual .phone { width: min(220px, 60%); }
.tab-visual .browser { width: 100%; }
@media (max-width: 860px) { .tabpanel { grid-template-columns: 1fr; } .tab-visual { min-height: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Feature + screen blocks (alternating) */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.feature + .feature { margin-top: clamp(72px, 9vw, 128px); }
.feature:nth-child(even) .feature-visual { order: -1; }
.feature .num-tag { font-family: var(--font-serif); font-style: italic; font-size: 22px; color: var(--muted); display: block; margin-bottom: 14px; }
.feature h3 { font-size: clamp(30px, 3.6vw, 46px); max-width: 16ch; }
.feature .lead { margin-top: 20px; }
.feature-visual {
  border-radius: var(--radius-xl); background: var(--bg-soft); padding: clamp(28px, 4vw, 56px); display: grid; place-items: center; min-height: 460px; overflow: hidden; position: relative;
}
.feature-visual .phone { width: min(240px, 70%); }
.feature-visual .browser { width: 100%; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature-visual { order: 0; }
  .feature-visual { min-height: 0; }
}

/* Three phones hero */
.phones { display: flex; justify-content: center; align-items: flex-end; gap: clamp(12px, 3vw, 36px); margin-top: clamp(48px, 7vw, 88px); position: relative; }
.phones::before { content: ""; position: absolute; left: 10%; right: 10%; bottom: 10%; height: 60%; border-radius: 50%; background: radial-gradient(closest-side, rgba(143, 180, 255, .6), rgba(143, 180, 255, 0)); z-index: -1; filter: blur(20px); }
.phones .phone { width: clamp(150px, 22vw, 260px); }
.phones .phone:nth-child(1) { transform: translateY(32px) rotate(-4deg); }
.phones .phone:nth-child(3) { transform: translateY(32px) rotate(4deg); }
@media (max-width: 600px) {
  .phones .phone { width: 46%; }
  .phones .phone:nth-child(1) { display: none; }
  .phones .phone:nth-child(3) { transform: translateY(24px) rotate(3deg); }
}

/* Wide dashboard hero */
.dash-hero { margin-top: clamp(48px, 6vw, 80px); position: relative; }
.dash-hero::before { content: ""; position: absolute; inset: 20% 5% -6% 5%; background: var(--navy); border-radius: 48px; z-index: -1; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 16px; counter-reset: step; list-style: none; }
.steps.cols-3 { --cols: 3; }
.steps.cols-5 { --cols: 5; }
.step { position: relative; padding: 28px 24px 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid rgba(10, 22, 51, .06); counter-increment: step; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step::before {
  content: counter(step, decimal-leading-zero); display: inline-grid; place-items: center; height: 34px; min-width: 34px; padding: 0 10px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; margin-bottom: 44px;
}
.step h3 { font-size: 20px; letter-spacing: -0.02em; margin-bottom: 8px; line-height: 1.2; }
.step p { color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 1080px) { .steps.cols-5 { --cols: 3; } }
@media (max-width: 960px) { .steps { --cols: 2; } .steps.cols-3 { --cols: 3; } }
@media (max-width: 760px) { .steps.cols-3, .steps.cols-5 { --cols: 1; } }
@media (max-width: 560px) { .steps { --cols: 1; } .step::before { margin-bottom: 24px; } }

/* Four-step flow hero (How it works) */
.flow { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: clamp(56px, 7vw, 88px); position: relative; }
.flow::before { content: ""; position: absolute; top: 31px; left: 12.5%; right: 12.5%; height: 2px; background: var(--line-strong); }
.flow::after { content: ""; position: absolute; top: 31px; left: 12.5%; height: 2px; width: 0; background: var(--ink); transition: width 1.6s var(--ease) .2s; }
.flow.is-in::after { width: 75%; }
.flow li { position: relative; text-align: center; padding: 0 12px; }
.flow .dot {
  position: relative; z-index: 1; width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 2px solid var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 22px;
  transition: background-color .4s, transform .4s var(--ease);
}
.flow li:hover .dot { background: var(--accent); transform: scale(1.06); }
.flow li:last-child .dot { background: var(--accent); }
.flow h3 { font-size: 21px; letter-spacing: -0.02em; margin-bottom: 8px; }
.flow p { color: var(--ink-2); font-size: 15.5px; max-width: 24ch; margin: 0 auto; }
.flow .who { display: inline-block; margin-bottom: 10px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 860px) {
  .flow { grid-template-columns: 1fr; gap: 28px; text-align: left; }
  .flow::before { top: 32px; bottom: 32px; left: 31px; right: auto; width: 2px; height: auto; }
  .flow::after { top: 32px; left: 31px; width: 2px; height: 0; transition: height 1.6s var(--ease) .2s; }
  .flow.is-in::after { width: 2px; height: calc(100% - 64px); }
  .flow li { display: grid; grid-template-columns: 64px 1fr; gap: 0 20px; text-align: left; padding: 0; }
  .flow .dot { margin: 0; grid-row: span 3; }
  .flow p { margin: 0; }
}

/* Status timeline */
.status-line { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; list-style: none; }
.status-line li { border-top: 3px solid var(--line-strong); padding-top: 18px; }
.status-line li.done { border-color: var(--ink); }
.status-line li.now { border-color: var(--accent-deep); }
.status-line strong { display: block; font-family: var(--font-display); font-size: 20px; letter-spacing: -0.02em; margin-bottom: 6px; }
.status-line p { color: var(--ink-2); font-size: 15px; }
@media (max-width: 760px) { .status-line { grid-template-columns: 1fr 1fr; gap: 24px 12px; } }

/* Decisions */
.decisions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.decision { border-radius: var(--radius); padding: 24px; background: var(--navy-2); border: 1px solid var(--navy-line); transition: transform .35s var(--ease), border-color .35s; }
.decision:hover { transform: translateY(-6px); border-color: var(--accent); }
.decision .chip { margin-bottom: 18px; }
.decision h3 { font-size: 21px; letter-spacing: -0.02em; margin-bottom: 8px; color: var(--on-navy); }
.decision p { color: var(--on-navy-muted); font-size: 15px; }
@media (max-width: 960px) { .decisions { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .decisions { grid-template-columns: 1fr; } }

/* Navy band */
.band-navy { background: var(--navy); color: var(--on-navy); }
.band-navy .lead, .band-navy .muted { color: var(--on-navy-muted); }
.band-navy .eyebrow { color: var(--on-navy-muted); }
.band-navy .card { background: var(--navy-2); border-color: var(--navy-line); }
.band-navy .card p { color: var(--on-navy-muted); }
.band-navy .card .icon { background: rgba(255, 255, 255, .06); color: var(--accent); }
.band-navy .card:hover { box-shadow: 0 20px 50px rgba(0, 0, 0, .3); }
.rounded-band { border-radius: var(--radius-xl); margin: 0 clamp(8px, 1.4vw, 20px); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-grid .section-head { position: sticky; top: 110px; margin-bottom: 0; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } .faq-grid .section-head { position: static; } }
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(18px, 1.6vw, 21px); letter-spacing: -0.02em; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline-offset: 0; }
.faq .plus { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); position: relative; transition: background-color .3s, transform .4s var(--ease), border-color .3s; }
.faq .plus::before, .faq .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.8px; background: var(--ink); transform: translate(-50%, -50%); border-radius: 2px; }
.faq .plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .4s var(--ease); }
.faq details[open] .plus { background: var(--accent); border-color: var(--accent-deep); transform: rotate(180deg); }
.faq details[open] .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq summary:hover .plus { border-color: var(--ink); }
.faq-body { overflow: hidden; }
.faq-body p { padding: 0 56px 26px 0; color: var(--ink-2); }

/* Closing CTA band */
.cta-band {
  position: relative; overflow: hidden; background: var(--navy); color: var(--on-navy); border-radius: var(--radius-xl);
  padding: clamp(56px, 8vw, 112px) clamp(24px, 6vw, 88px); text-align: center; isolation: isolate;
}
.cta-band::before {
  content: ""; position: absolute; width: 640px; height: 640px; left: 50%; top: -340px; transform: translateX(-50%); z-index: -1;
  background: radial-gradient(closest-side, rgba(143, 180, 255, .38), rgba(143, 180, 255, 0)); pointer-events: none;
}
.cta-band .h2 { max-width: 16ch; margin: 0 auto; font-size: clamp(36px, 5.4vw, 72px); }
.cta-band .lead { color: var(--on-navy-muted); margin: 22px auto 0; }
.cta-band .actions { justify-content: center; }
.cta-band .small { margin-top: 18px; font-size: 14px; color: var(--on-navy-muted); }
.cta-band .small a { color: var(--on-navy); }

/* ---------- Footer ---------- */
.site-footer { padding: clamp(64px, 8vw, 104px) 0 36px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--line-strong); }
.footer-tag { font-family: var(--font-display); font-size: clamp(26px, 3vw, 36px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 600; max-width: 16ch; margin-top: 20px; }
.footer-tag .muted { color: var(--muted); }
.footer-col h2 { font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { text-decoration: none; color: var(--ink-2); }
.footer-col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; font-size: 14px; color: var(--muted); }
.footer-bottom a { color: inherit; }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Demo modal ---------- */
.modal {
  border: 0; padding: 0; width: min(960px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); border-radius: var(--radius-lg);
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); overflow: hidden;
}
.modal::backdrop { background: rgba(13, 27, 46, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal[open] { animation: modal-in .35s var(--ease); }
.modal[open]::backdrop { animation: fade-in .3s ease; }
.modal-inner { display: flex; flex-direction: column; height: min(760px, calc(100dvh - 24px)); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 16px 16px 24px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 20px; letter-spacing: -0.02em; }
.modal-head p { font-size: 14px; color: var(--muted); margin-top: 2px; }
.modal-close { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; display: grid; place-items: center; transition: background-color .2s; }
.modal-close:hover { background: var(--bg); }
.modal-close svg { width: 18px; height: 18px; }
.modal-body { position: relative; flex: 1; min-height: 0; background: var(--bg); }
.modal-body iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.modal-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 15px; }
.modal-foot { padding: 12px 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.modal-foot a { color: var(--ink); font-weight: 600; }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .card:hover, .stat:hover, .step:hover, .decision:hover, .btn:hover { transform: none; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .card { padding: 24px; }
  .faq-body p { padding-right: 0; }
  .actions .btn { width: 100%; }
  .actions .link-arrow { margin: 4px auto 0; }
}

/* Chips on the navy band need solid fills for contrast */
.decision .chip.ok { background: var(--ok-bg); color: var(--ok-fg); }
.decision .chip.bad { background: var(--bad-bg); color: var(--bad-fg); }
.decision .chip.warn { background: var(--warn-bg); color: var(--warn-fg); }
.decision .chip.info { background: var(--on-navy); color: var(--navy); }

@media (max-width: 600px) {
  .stage { padding-right: 0; }
  .stage .phone { width: 40%; right: -6px; bottom: -64px; }
}
.modal-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 32px 24px; text-align: center; }
.modal-fallback h3 { font-size: clamp(28px, 4vw, 40px); max-width: 16ch; }
.modal-fallback p { color: var(--ink-2); max-width: 46ch; }
.modal-fallback .btn { margin-top: 8px; }
.modal-inner:has(.modal-fallback) { height: auto; }
.modal-body:has(.modal-fallback) { flex: none; }
.modal-body .modal-fallback { position: static; padding: clamp(48px, 8vw, 80px) 24px; }

/* CTA on the navy band uses the accent so it stands out */
.cta-band .btn { --btn-bg: var(--accent); --btn-fg: var(--accent-ink); }
.cta-band .btn:hover { background: #fff; box-shadow: 0 10px 24px rgba(143, 180, 255, .35); }
.site-footer .logo img { height: 22px; }
@media (max-width: 480px) { .nav .logo img { height: 17px; } }

/* Feature blocks that show a web screen get more width and less padding so the screen stays readable */
@media (min-width: 861px) {
  .feature:has(.browser) { grid-template-columns: .8fr 1.25fr; gap: clamp(32px, 4.5vw, 64px); }
  .feature:nth-child(even):has(.browser) { grid-template-columns: 1.25fr .8fr; }
}
.feature-visual:has(.browser) { padding: clamp(16px, 2.6vw, 36px); min-height: 0; }

/* Phones: role tabs share the full width so no label is cut off */
@media (max-width: 600px) {
  .tablist { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; overflow: visible; }
  .tab { padding: 10px 4px; font-size: 14px; text-align: center; }
}
@media (max-width: 360px) { .tab { font-size: 13px; } }
/* Phones: web screenshots fade out at the right edge instead of ending in cut-off text */
@media (max-width: 720px) {
  .browser-body img { -webkit-mask-image: linear-gradient(90deg, #000 72%, transparent 98%); mask-image: linear-gradient(90deg, #000 72%, transparent 98%); }
}

/* ---------- Sections added from the admin panel ---------- */
.shot-plain img { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.prose { max-width: 72ch; }
.prose p { color: var(--ink-2); font-size: 18px; line-height: 1.65; }
.prose p + p { margin-top: 1em; }
.prose .actions { margin-top: 28px; }
