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

:root {
  /* One brand color (logo navy), cool grays that match it, one signal color for actions */
  --navy: #293f7a;
  --navy-deep: #16214a;
  --accent: #f2c230;
  --accent-hover: #e3b11c;
  --bg: #ffffff;
  --bg-alt: #f3f5f9;
  --ink: #121a33;
  --muted: #5b6475;
  --line: #e1e5ed;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 24px; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; }
p { margin: 0 0 1em; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 32px; }

.label { display: flex; align-items: center; gap: 10px; margin: 0 0 24px; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--navy); }
.label-light { color: #fff; }
.square { width: 7px; height: 7px; background: var(--accent); }

/* Header */

.nav { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.logo { display: block; line-height: 0; }
.logo img { display: block; width: 140px; height: auto; }
.nav-cta { padding: 10px 16px; background: var(--navy); color: #fff; font-size: 0.9rem; font-weight: 500; text-decoration: none; }
.nav-cta:hover { background: var(--navy-deep); }

/* Hero: the form panel and the photo are two separate blocks with a gap between them */

.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 16px;
  min-height: 700px;
}
.lead { grid-column: 2; grid-row: 1; }
.photo-box {
  grid-column: 1;
  grid-row: 1;
  container-type: inline-size;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 48px;
  overflow: hidden;
  border-radius: 8px;
  color: #fff;
}
.photo { position: absolute; top: 0; left: 0; width: 125%; height: 125%; max-width: none; object-fit: cover; }
/* One flat tint keeps white text readable on the photo */
.shade { position: absolute; inset: 0; background: rgba(22, 33, 74, 0.62); }
.stage-copy { position: relative; }

.hero h1 {
  font-size: clamp(2.4rem, 9.2cqw, 4rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.sub { margin: 28px 0 0; max-width: 24em; font-size: 1.2rem; line-height: 1.55; color: #fff; }

/* Form */

.lead { display: flex; flex-direction: column; justify-content: center; padding: 40px 36px 32px; background: var(--bg-alt); color: var(--ink); border-radius: 8px; }
.lead-label { margin: 0; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--navy); }
.lead-why { margin: 12px 0 24px; font-size: 1.3rem; line-height: 1.3; letter-spacing: -0.025em; }
.lead-error { padding: 10px 14px; background: #fbeceb; color: #8a1f1a; font-size: 0.92rem; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; }
.field-wide { grid-column: 1 / -1; position: relative; }
.field label { display: block; margin-bottom: 6px; font-size: 0.85rem; color: var(--muted); }
.field input, .field select {
  display: block;
  width: 100%;
  height: 46px;
  padding: 0 12px;
  border: 1px solid #d6dbe5;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
.field select { appearance: none; padding-right: 36px; }
.field-wide::after { content: ""; position: absolute; right: 16px; bottom: 20px; width: 7px; height: 7px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); pointer-events: none; }
.field input:focus, .field select:focus { outline: 2px solid var(--navy); outline-offset: -1px; }

.btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 15px 20px;
  border: 0;
  background: var(--accent);
  color: var(--navy-deep);
  font: inherit;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--accent-hover); }
.btn-main { font-weight: 600; font-size: 1.1rem; line-height: 1.3; }
.btn-sub { font-size: 0.85rem; opacity: 0.8; }
.lead .btn { margin-top: 24px; }
.lead-note { margin: 14px 0 0; font-size: 0.82rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Demo */

.demo {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 16px;
  padding-top: 88px;
  padding-bottom: 88px;
}
.demo-copy { display: flex; flex-direction: column; justify-content: center; padding: 48px; background: var(--bg-alt); border-radius: 8px; }
.nobr { white-space: nowrap; }
.section-title { max-width: 14em; margin-bottom: 16px; font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 400; line-height: 1.1; letter-spacing: -0.035em; }
.demo-text { margin: 0; max-width: 28em; color: var(--muted); }

/* The video sits in a navy frame, like a screen; the play control is a bar below it, not on top */
.player { container-type: inline-size; padding: 10px; background: var(--navy-deep); border-radius: 8px; }
.screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 4px; background: #fff; cursor: pointer; }
.screen video { display: block; width: 100%; height: 100%; object-fit: cover; }
/* While playing, the bar is hidden and the screen grows by the bar height (50px), so the box keeps its size */
.player.playing .screen { cursor: auto; aspect-ratio: auto; height: calc(100cqw * 9 / 16 + 50px); background: var(--navy-deep); }
.player.playing video { object-fit: contain; }

.player-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 6px 2px;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.play-icon { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); }
.play-icon::after { content: ""; position: absolute; top: 50%; left: 50%; margin: -6px 0 0 -3px; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent var(--navy-deep); }
.player-bar:hover .play-icon { background: var(--accent-hover); }
.bar-text { font-size: 0.95rem; font-weight: 500; }
.bar-time { margin-left: auto; font-size: 0.9rem; color: rgba(255, 255, 255, 0.6); font-variant-numeric: tabular-nums; }
.player.playing .player-bar { display: none; }

/* Questions: one dark panel with three columns and thin lines between them */

.objections { padding: 0 0 88px; }
.q-block { padding: 56px 56px 48px; background: var(--navy-deep); border-radius: 8px; color: #fff; }
.q-block .label { margin-bottom: 48px; }
.points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.points li { padding: 0 40px; }
.points li:first-child { padding-left: 0; }
.points li:last-child { padding-right: 0; }
.points li + li { border-left: 1px solid rgba(255, 255, 255, 0.18); }
.points h3 { margin-bottom: 20px; font-size: 1.65rem; font-weight: 400; line-height: 1.2; letter-spacing: -0.03em; }
.points p { margin: 0; color: rgba(255, 255, 255, 0.74); }
.btn-inline { display: inline-flex; width: auto; margin-top: 56px; padding: 16px 32px; }

/* Footer */

.foot { background: var(--navy-deep); color: rgba(255, 255, 255, 0.72); padding: 40px 0; font-size: 0.88rem; }
.foot-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.foot img { display: block; width: 108px; height: auto; }
.foot nav { display: flex; gap: 28px; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }

/* Legal pages and thank-you page */

.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; height: 84px; }
.legal { padding: 72px 32px 112px; max-width: 760px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 400; letter-spacing: -0.04em; line-height: 1.1; margin-bottom: 28px; }
.legal h2 { font-size: 1.2rem; font-weight: 500; letter-spacing: -0.02em; margin: 40px 0 8px; }
.placeholder { font-size: 0.9rem; background: var(--bg-alt); padding: 12px 16px; }

/* Smaller screens: photo with headline first, form below it */

@media (max-width: 960px) {
  .stage { grid-template-columns: 1fr; gap: 12px; min-height: 0; }
  .photo-box { grid-column: 1; grid-row: 1; min-height: 440px; justify-content: flex-end; padding: 32px 28px 28px; }
  .photo { width: 100%; height: 100%; }
  .lead { grid-column: 1; grid-row: 2; padding: 32px 28px 28px; }
  .demo { grid-template-columns: 1fr; gap: 12px; }
  .demo-copy { padding: 32px 28px; }
  .q-block { padding: 40px 28px 32px; }
  .q-block .label { margin-bottom: 32px; }
  .points { grid-template-columns: 1fr; }
  .points li, .points li:first-child, .points li:last-child { padding: 28px 0; }
  .points li:first-child { padding-top: 0; }
  .points li + li { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.18); }
  .btn-inline { margin-top: 32px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav { height: 64px; padding: 0 20px; }
  .logo img { width: 116px; }
  .nav-cta { padding: 8px 12px; font-size: 0.82rem; }
  .photo-box { min-height: 400px; padding: 24px 20px 22px; }
  .sub { font-size: 1.06rem; margin-top: 16px; }
  .lead { padding: 28px 20px 24px; }
  .lead-why { font-size: 1.15rem; }
  .fields { gap: 14px 10px; }
  .btn-main { font-size: 1.05rem; }
  .btn-inline { display: flex; width: 100%; }
  .demo { padding: 56px 16px; }
  .demo-copy { padding: 28px 20px; }
  .player { padding: 8px; border-radius: 12px; }
  .objections { padding-bottom: 64px; }
  .q-block { padding: 32px 20px 24px; }
  .points h3 { font-size: 1.4rem; }
  .top .wrap { height: 64px; padding: 0 20px; }
  .legal { padding: 40px 20px 72px; }
}

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

/* Motion: a few calm fades, only for people who have not turned motion off */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) var(--d, 0ms), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) var(--d, 0ms);
  }
  .js .reveal.is-in { opacity: 1; transform: none; }

  .js .photo { transform: scale(1.045); transition: transform 1.8s cubic-bezier(0.16, 1, 0.3, 1); }
  .js .photo.is-in { transform: none; }

  .btn, .nav-cta, .play-icon, .field input, .field select { transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease; }
  .btn:active, .nav-cta:active { transform: translateY(1px); }
}
