/* ============================================================
   AutoClarity — getautoclarity.com
   Design system: "diagnostic studio" — deep navy, electric blue,
   glass surfaces, restrained motion. System font stack only.
   ============================================================ */

:root {
  /* Ink */
  --bg: #060b18;
  --bg-elev-1: #0a1226;
  --bg-elev-2: #0d1830;

  /* Accent */
  --blue: #2f6bff;
  --blue-bright: #5b8cff;
  --blue-soft: #9db9ff;
  --cyan: #56d4ff;

  /* Text */
  --text: #f4f7ff;
  --text-2: #aab6d3;
  --text-3: #7d89a8;

  /* Semantic */
  --amber: #ffb454;
  --red: #ff6b70;
  --green: #3dd68c;

  /* Surfaces */
  --glass: rgba(148, 176, 255, 0.055);
  --glass-strong: rgba(148, 176, 255, 0.09);
  --line: rgba(148, 176, 255, 0.14);
  --line-soft: rgba(148, 176, 255, 0.08);

  /* Shape */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;

  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 20px 50px rgba(2, 6, 18, 0.55);
  --shadow-phone: 0 2px 0 rgba(255, 255, 255, 0.06) inset, 0 40px 90px rgba(2, 6, 18, 0.7), 0 12px 30px rgba(2, 6, 18, 0.5);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --space: clamp(76px, 12vw, 148px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  caret-color: transparent;
}

/* Restore a real insertion caret only where text can actually be edited.
   Text selection remains enabled everywhere else. */
input,
textarea,
[contenteditable]:not([contenteditable="false"]) {
  caret-color: auto;
}

/* ---------- Page-wide ambient system ----------
   Public marketing pages opt in with data-fx-full. Isolation keeps the
   fixed negative layers above the body paint but below every real control. */
body[data-fx-full] { isolation: isolate; }

body[data-fx-full]::before,
body[data-fx-full]::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body[data-fx-full]::before {
  z-index: -3;
  background:
    radial-gradient(ellipse 74% 54% at 14% -8%, rgba(47, 107, 255, 0.15) 0%, rgba(47, 107, 255, 0.035) 46%, transparent 75%),
    radial-gradient(ellipse 58% 48% at 96% 22%, rgba(86, 178, 255, 0.085) 0%, rgba(47, 107, 255, 0.025) 47%, transparent 74%),
    radial-gradient(ellipse 72% 52% at 35% 112%, rgba(37, 86, 216, 0.09) 0%, transparent 72%),
    linear-gradient(180deg, #060b18 0%, #071024 48%, #060b18 100%);
}

body[data-fx-full]::after {
  z-index: -2;
  background-image:
    linear-gradient(rgba(148, 176, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 176, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 11%, #000 89%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 11%, #000 89%, transparent 100%);
}

img { max-width: 100%; height: auto; }

h1, h2, h3 { margin: 0; font-weight: 750; letter-spacing: -0.02em; text-wrap: balance; }

p { margin: 0; }

a { color: var(--blue-bright); }

::selection { background: rgba(47, 107, 255, 0.45); color: #fff; }

/* ---------- Accessibility helpers ---------- */

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; }

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 14px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.btn-primary {
  background: linear-gradient(180deg, #4079ff 0%, var(--blue) 55%, #2456d8 100%);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 12px 28px rgba(37, 84, 220, 0.38);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 16px 34px rgba(37, 84, 220, 0.5);
}
.btn-primary:active { transform: translateY(0); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 6px 16px rgba(37, 84, 220, 0.4); }

.btn-service {
  background: linear-gradient(180deg, #65e9ab 0%, var(--green) 58%, #28b979 100%);
  color: #03140d;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.42) inset, 0 12px 28px rgba(33, 168, 104, 0.25);
}
.btn-service:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #7aefb8 0%, #49dc99 58%, #31c584 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.48) inset, 0 16px 34px rgba(33, 168, 104, 0.34);
}
.btn-service:active {
  transform: translateY(0);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.32) inset, 0 6px 16px rgba(33, 168, 104, 0.24);
}

.btn-ghost {
  background: var(--glass);
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { background: var(--glass-strong); border-color: rgba(148, 176, 255, 0.28); }

.btn-lg { padding: 16px 30px; font-size: 17px; border-radius: 16px; }
.btn-xl { padding: 18px 38px; font-size: 18px; border-radius: 18px; }
.btn-nav { padding: 9px 18px; font-size: 15px; border-radius: 12px; }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top);
  background: transparent;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.nav.is-scrolled {
  background: rgba(7, 12, 26, 0.82);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  backdrop-filter: saturate(150%) blur(16px);
  box-shadow: 0 1px 0 var(--line-soft);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.nav-brand img { border-radius: 8px; }

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-links a:hover { color: var(--text); background: var(--glass); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-ppi-cta { gap: 8px; }
.nav-ppi-short { display: none; }

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(3, 20, 13, 0.12), 0 0 12px rgba(3, 20, 13, 0.32);
  flex: 0 0 auto;
}

@media (max-width: 780px) {
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }
}

@media (max-width: 520px) {
  .nav-inner { gap: 10px; padding: 10px 14px; }
  .nav-brand span { display: none; }
  .nav-actions { gap: 6px; margin-left: auto; }
  .nav-actions .btn-nav { padding: 8px 11px; font-size: 13.5px; border-radius: 11px; }
  .nav-ppi-full { display: none; }
  .nav-ppi-short { display: inline; }
}

/* ---------- Pointer / touch ambience ----------
   main.js creates these decorative, non-interactive layers only for opted-in
   public pages and only when motion preferences allow it. */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 960px;
  height: 960px;
  margin: -480px 0 0 -480px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(47, 107, 255, 0.13) 0%, rgba(47, 107, 255, 0.055) 32%, rgba(47, 107, 255, 0) 70%);
  opacity: 0;
  transform: translate3d(-1200px, -1200px, 0);
  transition: opacity 0.5s ease;
  will-change: transform;
}
.cursor-glow.is-on { opacity: 1; }
.cursor-glow.is-on.is-idle { opacity: 0.62; }
.cursor-glow.is-touch {
  width: 680px;
  height: 680px;
  margin: -340px 0 0 -340px;
  background: radial-gradient(circle, rgba(47, 107, 255, 0.15) 0%, rgba(47, 107, 255, 0.055) 34%, rgba(47, 107, 255, 0) 72%);
  transition-duration: 0.65s;
}

.neon-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(125, 190, 255, 0.34) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 190, 255, 0.34) 1px, transparent 1px),
    linear-gradient(rgba(47, 107, 255, 0.08) 0, rgba(86, 178, 255, 0.16) 4px, rgba(47, 107, 255, 0.08) 8px, transparent 9px),
    linear-gradient(90deg, rgba(47, 107, 255, 0.08) 0, rgba(86, 178, 255, 0.16) 4px, rgba(47, 107, 255, 0.08) 8px, transparent 9px);
  background-size: 64px 64px;
  background-position: 0 0, 0 0, 0 -4px, -4px 0;
  -webkit-mask-image: radial-gradient(circle 1px at -200px -200px, #000 0%, transparent 100%);
  mask-image: radial-gradient(circle 1px at -200px -200px, #000 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.48s ease;
}
.neon-grid.is-on { opacity: 1; }
.neon-grid.is-on.is-idle { opacity: 0.34; transition-duration: 1s; }
.neon-grid.is-touch { transition-duration: 0.7s; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(120px, 16vw, 180px) 22px clamp(40px, 6vw, 90px);
  overflow: clip;
}

.home-hero {
  padding: clamp(112px, 9vw, 138px) 22px clamp(58px, 4.5vw, 72px);
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}
.hero-glow-1 {
  width: 720px; height: 720px;
  top: -320px; left: 50%;
  transform: translateX(-78%);
  background: radial-gradient(circle, rgba(47, 107, 255, 0.34) 0%, rgba(47, 107, 255, 0) 65%);
}
.hero-glow-2 {
  width: 640px; height: 640px;
  top: 60px; right: -260px;
  background: radial-gradient(circle, rgba(86, 178, 255, 0.16) 0%, rgba(86, 178, 255, 0) 65%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 176, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 176, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 10%, black 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 10%, black 30%, transparent 75%);
}

/* The page-wide grid replaces the old hero-only copy and avoids moiré. */
body[data-fx-full] .hero-grid { display: none; }

.hero-inner {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--blue-soft);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.eyebrow-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(61, 214, 140, 0.9);
}

.hero h1 {
  font-size: clamp(37px, 5.4vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.033em;
  font-weight: 800;
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(92deg, var(--blue-bright), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: clamp(17px, 2vw, 19px);
  line-height: 1.65;
  color: var(--text-2);
  max-width: 33em;
  margin-bottom: 30px;
}

.hero-ppi-card {
  position: relative;
  margin: 0 0 30px;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid rgba(61, 214, 140, 0.34);
  border-radius: 24px;
  background:
    radial-gradient(110% 150% at 0% 0%, rgba(61, 214, 140, 0.15) 0%, rgba(61, 214, 140, 0) 55%),
    linear-gradient(180deg, rgba(13, 33, 37, 0.92), rgba(8, 22, 31, 0.94));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 22px 52px rgba(2, 12, 16, 0.38);
  overflow: hidden;
}
.hero-ppi-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -92px;
  bottom: -112px;
  border-radius: 50%;
  background: rgba(61, 214, 140, 0.11);
  filter: blur(22px);
  pointer-events: none;
}

.ppi-availability {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 11px;
  color: #75eeb5;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.075em;
  line-height: 1.3;
  text-transform: uppercase;
}
.ppi-availability .status-dot {
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(61, 214, 140, 0.12), 0 0 13px rgba(61, 214, 140, 0.65);
}

.hero-ppi-card h2 {
  max-width: 16em;
  margin-bottom: 10px;
  font-size: clamp(23px, 3vw, 29px);
  font-weight: 780;
  letter-spacing: -0.026em;
  line-height: 1.12;
}

.ppi-summary {
  position: relative;
  max-width: 42em;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.58;
}

.ppi-proof {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  color: #c7d7d9;
  font-size: 13px;
  font-weight: 650;
}
.ppi-proof li {
  position: relative;
  padding-left: 14px;
}
.ppi-proof li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  transform: translateY(-50%);
}

.hero-ppi-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.hero-ppi-actions .btn { padding: 13px 18px; font-size: 15px; border-radius: 14px; }

.ppi-separation {
  position: relative;
  margin-top: 12px;
  color: var(--text-3);
  font-size: 12.5px;
  line-height: 1.5;
}

.app-path-label {
  margin-bottom: 11px;
  color: var(--blue-soft);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-fineprint {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--text-3);
}

.hero-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 26px 0 0;
}
.hero-chips li {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(10, 18, 38, 0.6);
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 600;
}

/* A quiet cue that helps the first viewport feel intentional without
   competing with either primary CTA. */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--blue-soft);
  opacity: 0.68;
  transform: translateX(-50%);
  transition: opacity 0.35s ease, background 0.2s ease, border-color 0.2s ease;
}
.scroll-cue:hover,
.scroll-cue:focus-visible {
  opacity: 1;
  background: rgba(47, 107, 255, 0.08);
}
.scroll-cue.is-dismissed:not(:focus-visible) {
  opacity: 0;
  pointer-events: none;
}
.scroll-cue > span,
.scroll-cue > span::after {
  display: block;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
}
.scroll-cue > span {
  position: relative;
  margin-top: -5px;
  transform: rotate(45deg);
  animation: cue-drift 3.1s ease-in-out infinite;
}
.scroll-cue > span::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  opacity: 0.46;
  transform: none;
}

@keyframes cue-drift {
  0%, 100% { transform: translateY(0) rotate(45deg); }
  50% { transform: translateY(5px) rotate(45deg); }
}

/* ---------- Phone ---------- */

.hero-visual { position: relative; }

.phone-scene {
  position: relative;
  width: min(340px, 82vw);
  margin: 0 auto;
  perspective: 1400px;
}

.phone {
  position: relative;
  border-radius: 46px;
  padding: 12px;
  background: linear-gradient(160deg, #2a3550 0%, #10182c 40%, #0a1122 100%);
  border: 1px solid rgba(170, 195, 255, 0.22);
  box-shadow: var(--shadow-phone);
  transform-style: preserve-3d;
}

.phone-scene .phone {
  transform: rotateY(calc(var(--tilt-x, 0) * 1deg)) rotateX(calc(var(--tilt-y, 0) * 1deg));
  transition: transform 0.25s ease-out;
}

.phone::after {
  /* directional light sweep on the glass */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 46px;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0) 30%);
  pointer-events: none;
}

.phone-notch {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 26px;
  border-radius: 14px;
  background: #05080f;
  z-index: 3;
}

.phone-screen {
  position: relative;
  border-radius: 36px;
  background: #f4f6fb;
  color: #101828;
  padding: 58px 14px 18px;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* in-app UI recreation (light, matches the real app) */
.app-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
}
.app-topbar-center { justify-content: center; text-align: center; }
.app-back { color: #2563eb; font-size: 24px; font-weight: 700; line-height: 1; }
.app-title { display: flex; flex-direction: column; }
.app-title strong { font-size: 15.5px; font-weight: 800; letter-spacing: -0.02em; color: #0f172a; }
.app-title span { font-size: 11.5px; color: #64748b; }

.app-safety {
  border-radius: 16px;
  border: 1px solid #ffd8d9;
  background: #fff1f1;
  padding: 12px 13px;
}
.app-safety-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  color: #d92d31;
  font-size: 13.5px;
}
.app-safety-head strong { font-weight: 800; }
.app-safety-icon {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #d92d31;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.app-safety p { font-size: 12px; line-height: 1.5; color: #7f1d1d; }
.app-safety-action { margin-top: 5px; }

.app-card {
  border-radius: 16px;
  border: 1px solid #e6eaf2;
  background: #fff;
  padding: 12px 13px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}
.app-card-label {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 5px;
}
.app-issue { display: block; font-size: 16px; font-weight: 800; letter-spacing: -0.02em; color: #0f172a; }

.app-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.app-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef4ff;
  border: 1px solid #d8e4ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 700;
}
.app-pill-amber { background: #fff7e8; border-color: #fde3b3; color: #b45309; }

.app-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: #334155;
}
.app-list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 4px;
}
.app-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #2563eb;
}
.app-list-num { counter-reset: steps; }
.app-list-num li { padding-left: 22px; counter-increment: steps; }
.app-list-num li::before {
  content: counter(steps);
  width: 15px; height: 15px;
  left: 0; top: 2px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 6px;
}
.app-tile {
  border-radius: 15px;
  border: 1px solid #e6eaf2;
  background: #fff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  padding: 14px 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
.app-tile-icon {
  width: 34px; height: 34px;
  border-radius: 11px;
  background: #eef4ff;
  color: #2563eb;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-footnote {
  margin-top: auto;
  padding-top: 10px;
  text-align: center;
  font-size: 10.5px;
  color: #64748b;
}

.app-progress {
  height: 5px;
  border-radius: 99px;
  background: #e2e8f0;
  overflow: hidden;
}
.app-progress span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #2563eb, #4e8cff);
}

.app-question { margin-top: 8px; }
.app-question > strong {
  display: block;
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin-bottom: 12px;
}
.app-answers { display: flex; flex-direction: column; gap: 8px; }
.app-answer {
  border-radius: 13px;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 11px 13px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}
.app-answer.is-picked {
  border-color: #2563eb;
  background: #eef4ff;
  color: #1d4ed8;
  box-shadow: 0 0 0 1px #2563eb inset;
}

/* floating glass chips around the hero phone */
.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(13, 22, 44, 0.78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.float-chip-1 { top: -18px; left: -26px; animation: float-a 7s ease-in-out infinite; }
.float-chip-2 { bottom: -18px; right: -26px; animation: float-b 8s ease-in-out 0.8s infinite; }

.float-chip-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.float-dot-green { background: var(--green); box-shadow: 0 0 10px rgba(61, 214, 140, 0.8); }
.float-dot-blue { background: var(--blue-bright); box-shadow: 0 0 10px rgba(91, 140, 255, 0.8); }

@keyframes float-a {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
@keyframes float-b {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

.visual-note {
  position: relative;
  margin-top: 18px;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-3);
  max-width: 40em;
  margin-left: auto;
  margin-right: auto;
}

.hero-visual .visual-note { margin-top: 42px; }

@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .lede { margin-left: auto; margin-right: auto; }
  .hero-ppi-card { max-width: 680px; margin-left: auto; margin-right: auto; text-align: left; }
  .hero-ctas { justify-content: center; }
  .hero-chips { justify-content: center; }
  .hero-visual { margin-top: 26px; }
  .float-chip-1 { left: -10px; top: -16px; }
  .float-chip-2 { right: -10px; bottom: -16px; }
  .scroll-cue {
    position: relative;
    left: auto;
    bottom: auto;
    margin: 22px auto -4px;
    transform: none;
  }
}

@media (max-width: 400px) {
  .float-chip { font-size: 11.5px; padding: 8px 11px; }
  .float-chip-1 { left: -4px; }
  .float-chip-2 { right: -4px; }
}

@media (max-width: 600px) {
  .hero { padding: 100px 16px 54px; }
  .home-hero { padding-bottom: 48px; }
  .eyebrow { margin-bottom: 15px; }
  .hero h1 { margin-bottom: 16px; }
  .lede { margin-bottom: 23px; line-height: 1.55; }
  .hero-ppi-card { margin-bottom: 24px; padding: 21px 18px; border-radius: 20px; }
  .hero-ppi-card h2 { font-size: 24px; }
  .ppi-summary { font-size: 14.5px; }
  .ppi-proof { gap: 7px 14px; }
  .hero-ppi-actions { display: grid; grid-template-columns: 1fr; }
  .hero-ppi-actions .btn { width: 100%; }
  .app-ctas { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .app-ctas .btn { min-width: 0; padding: 13px 12px; font-size: 14px; }
  .hero-chips { display: none; }
  .hero-visual { margin-top: 14px; }
}

/* ---------- Sections ---------- */

.section { position: relative; padding: var(--space) 22px; }
.section-alt {
  background: linear-gradient(180deg, rgba(13, 24, 48, 0.55) 0%, rgba(13, 24, 48, 0.15) 100%);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.section-inner { max-width: 1160px; margin: 0 auto; }
.section-narrow { max-width: 860px; text-align: center; }

.section-head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }

.kicker {
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 14px;
}

.section h2 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.028em;
  margin-bottom: 16px;
}

.section-sub {
  font-size: clamp(16px, 1.9vw, 18px);
  line-height: 1.65;
  color: var(--text-2);
}

/* ---------- Demo (how it works) ---------- */

.demo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.demo-steps { display: flex; flex-direction: column; gap: 14px; }

.demo-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  text-align: left;
  padding: 18px 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-soft);
  background: var(--glass);
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.demo-step:hover { border-color: var(--line); background: var(--glass-strong); }
.demo-step.is-active {
  border-color: rgba(91, 140, 255, 0.55);
  background: linear-gradient(180deg, rgba(47, 107, 255, 0.14), rgba(47, 107, 255, 0.05));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 14px 34px rgba(20, 50, 130, 0.35);
}

.demo-step-num {
  width: 30px; height: 30px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--glass-strong);
  border: 1px solid var(--line);
  color: var(--blue-soft);
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, color 0.18s ease;
}
.demo-step.is-active .demo-step-num {
  background: linear-gradient(180deg, #4079ff, #2456d8);
  border-color: transparent;
  color: #fff;
}

.demo-step-body { display: flex; flex-direction: column; gap: 4px; }
.demo-step-body strong { font-size: 17px; font-weight: 750; letter-spacing: -0.015em; }
.demo-step-body span { font-size: 14.5px; line-height: 1.55; color: var(--text-2); }

.demo-phone-wrap { display: flex; flex-direction: column; align-items: center; }
.phone-demo { width: min(320px, 80vw); }

.demo-screen[hidden] { display: none; }

.demo-screen.is-entering { animation: screen-in 0.4s ease both; }

@keyframes screen-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 940px) {
  .demo { grid-template-columns: 1fr; }
  .demo-phone-wrap { order: -1; }
}

/* ---------- Feature grid ---------- */

.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  border-radius: var(--r-lg);
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(148, 176, 255, 0.07), rgba(148, 176, 255, 0.025));
  box-shadow: var(--shadow-card);
  padding: 26px 24px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover { transform: translateY(-3px); border-color: var(--line); }

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: rgba(47, 107, 255, 0.16);
  border: 1px solid rgba(91, 140, 255, 0.35);
  color: var(--blue-soft);
  margin-bottom: 16px;
}
.feature-icon svg { width: 23px; height: 23px; }

.feature-card h3 { font-size: 18px; letter-spacing: -0.015em; margin-bottom: 8px; }
.feature-card p { font-size: 14.5px; line-height: 1.6; color: var(--text-2); }

@media (max-width: 940px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- Coverage ---------- */

.coverage {
  margin-top: 48px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-soft);
  background: var(--glass);
  padding: clamp(24px, 4vw, 40px);
  text-align: center;
}
.coverage h3 { font-size: 20px; letter-spacing: -0.02em; margin-bottom: 20px; }

.coverage-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
}
.coverage-list li {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(10, 18, 38, 0.55);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
}

/* ---------- Founder expertise + inspection bridge ---------- */

.expertise-section {
  padding-top: clamp(72px, 7vw, 96px);
  padding-bottom: clamp(72px, 7vw, 96px);
  background:
    radial-gradient(60% 52% at 12% 30%, rgba(47, 107, 255, 0.105), transparent 72%),
    linear-gradient(180deg, rgba(8, 16, 34, 0.08), rgba(8, 16, 34, 0.26));
  border-top: 1px solid rgba(148, 176, 255, 0.07);
}

body[data-page="home"] #how-it-works {
  padding-top: clamp(70px, 7vw, 96px);
}

.founder-story {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
}

.founder-story-copy { grid-column: 2; grid-row: 1; }
.founder-story-copy h2 { max-width: 14em; }
.founder-identity {
  margin: -2px 0 22px;
  color: var(--blue-soft);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.025em;
}

.mechanic-body {
  max-width: 660px;
  margin: 0 0 17px;
  color: var(--text-2);
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.72;
}
.founder-identity + .mechanic-body { color: #dce5fb; }

.mechanic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.mechanic-chips li {
  padding: 7px 13px;
  border: 1px solid rgba(91, 140, 255, 0.32);
  border-radius: 999px;
  background: rgba(47, 107, 255, 0.09);
  color: var(--blue-soft);
  font-size: 13px;
  font-weight: 700;
}
.founder-story-cta { margin-top: 26px; }

.founder-story-media {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0;
  justify-self: center;
}
.founder-story-media picture {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(115, 159, 255, 0.28);
  border-radius: 26px 26px 0 0;
  background: var(--bg-elev-1);
  box-shadow:
    0 0 0 1px rgba(47, 107, 255, 0.04),
    -18px 0 54px rgba(47, 107, 255, 0.16),
    var(--shadow-card);
}
.founder-story-media img { display: block; width: 100%; height: auto; }
.founder-story-media figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border: 1px solid rgba(115, 159, 255, 0.22);
  border-top: 0;
  border-radius: 0 0 18px 18px;
  background: rgba(9, 18, 39, 0.82);
  color: var(--text);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.founder-story-media figcaption strong { font-size: 14px; }
.founder-story-media figcaption span { color: var(--text-3); font-size: 12.5px; }

.ppi-bridge {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.42fr);
  gap: clamp(26px, 4vw, 54px);
  align-items: center;
  margin: clamp(58px, 8vw, 88px) 0 0;
  padding: clamp(26px, 4vw, 38px);
  border-color: rgba(61, 214, 140, 0.28);
  background:
    radial-gradient(70% 180% at 0% 20%, rgba(61, 214, 140, 0.12), transparent 70%),
    linear-gradient(135deg, rgba(10, 29, 34, 0.89), rgba(8, 19, 31, 0.82));
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}
.ppi-bridge h2 { max-width: 21em; }
.ppi-bridge-action { position: relative; }
.ppi-bridge .hero-ppi-actions { display: grid; margin-top: 0; }
.ppi-bridge .hero-ppi-actions .btn { width: 100%; }
.ppi-bridge:focus-within {
  border-color: rgba(61, 214, 140, 0.48);
  box-shadow: 0 0 0 1px rgba(61, 214, 140, 0.08), 0 24px 62px rgba(2, 12, 16, 0.48);
}

@media (max-width: 820px) {
  .founder-story { grid-template-columns: 1fr; gap: 38px; }
  .founder-story-copy { grid-column: 1; grid-row: 1; }
  .founder-story-media { grid-column: 1; grid-row: 2; max-width: 320px; }
  .founder-story-copy h2 { max-width: 18em; }
  .ppi-bridge { grid-template-columns: 1fr; }
  .ppi-bridge .hero-ppi-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .expertise-section { padding-top: 72px; }
  .founder-story { gap: 32px; }
  .founder-story-media { max-width: 300px; }
  .founder-story-media figcaption { align-items: flex-start; flex-direction: column; gap: 2px; }
  .mechanic-chips { gap: 7px; }
  .ppi-bridge { margin-bottom: 0; }
  .ppi-bridge .hero-ppi-actions { grid-template-columns: 1fr; }
}

/* ---------- Video ---------- */

.video-shell {
  max-width: 380px;
  margin: 0 auto;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  background: #000;
}

.video-frame iframe { display: block; width: 100%; height: 100%; border: 0; }

.video-cta { margin-top: 36px; text-align: center; }

/* ---------- Final CTA ---------- */

.final-cta { overflow: clip; }

.final-cta-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 90% at 50% 115%, rgba(47, 107, 255, 0.34) 0%, rgba(47, 107, 255, 0) 70%);
  pointer-events: none;
}

.final-cta .section-inner { position: relative; }

.final-icon {
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(2, 6, 18, 0.7);
  margin-bottom: 26px;
}

.final-cta h2 { margin-bottom: 14px; }
.final-cta .section-sub { margin-bottom: 30px; }
.final-cta .hero-fineprint { margin-top: 16px; }

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

.footer {
  border-top: 1px solid var(--line-soft);
  background: rgba(5, 9, 19, 0.7);
  padding: 56px 22px calc(40px + env(safe-area-inset-bottom));
}

.footer-inner { max-width: 1160px; margin: 0 auto; }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 30px;
}
.footer-brand img { border-radius: 7px; }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  max-width: 640px;
}

.footer-col h3 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
}
.footer-col p { font-size: 15px; line-height: 1.6; color: var(--text-2); margin-bottom: 8px; }
.footer-col a { color: var(--blue-bright); font-weight: 600; text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.footer-muted { color: var(--text-3); font-size: 13.5px; }

.footer-disclaimer {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-3);
  max-width: 760px;
}

/* ---------- Reveal on scroll ---------- */
/* Content is fully visible by default; animation applies only
   when JS adds .js-anim to <html> (and reduced motion is off). */

.js-anim .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js-anim .reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (hover: hover) and (pointer: fine) {
  .btn-ghost:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(20, 50, 130, 0.2);
  }
  .ppi-bridge:hover {
    border-color: rgba(61, 214, 140, 0.38);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 26px 60px rgba(2, 12, 16, 0.44);
  }
}

@media (hover: none), (pointer: coarse) {
  .btn:hover,
  .feature-card:hover { transform: none; }
}

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

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

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

  .float-chip-1,
  .float-chip-2,
  .scroll-cue > span { animation: none !important; }

  .phone-scene .phone { transform: none !important; }

  .js-anim .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
