/* =========================================================
   Policy Pilot — one page site
   assets/css/style.css
   Tokens at the top · sections top-to-bottom · responsive in
   one block at the bottom (desktop-first).
   ========================================================= */

/* ---------- 1. Design tokens ---------- */
:root {
  --navy:        #001C53;
  --navy-bright: #063B7A;
  --lime:        #CFFF02;
  --lime-hover:  #D9FF38;
  --olive:       #608000;   /* lime, darkened for text on white */
  --olive-lead:  #80A900;
  --ink:         #081C43;
  --muted:       #58647A;
  --line:        #DFE5ED;
  --surface:     #F6F8FB;
  --white:       #FFFFFF;

  --font: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  --container: 1160px;
  --gutter: 24px;
  --radius: 24px;
  --radius-sm: 9px;
  --shadow: 0 24px 70px rgba(0, 28, 83, .14);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
button, input, select { font: inherit; }

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

/* ---------- 3. Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Small uppercase kicker used above headings */
.eyebrow {
  margin: 0 0 20px;
  color: var(--olive);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow span { color: var(--lime); }
.eyebrow--light { color: var(--lime); }

/* Shared button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 26px;
  font-weight: 800;
  color: var(--navy);
  background: var(--lime);
  border: 0;
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 28px rgba(207, 255, 2, .18);
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover:not(:disabled) { transform: translateY(-2px); background: var(--lime-hover); }
.btn:focus-visible { outline: 3px solid rgba(3, 83, 183, .35); outline-offset: 3px; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

/* ---------- 4. Header ---------- */
.site-header { background: var(--white); }
.site-header .container {
  display: flex;
  align-items: center;
  min-height: 96px;
}
.logo { display: block; }
.logo img { width: 150px; height: auto; }

/* ---------- 5. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 100px;
  background:
    radial-gradient(circle at 75% 42%, rgba(219, 230, 248, .68), transparent 31%),
    linear-gradient(145deg, #fff 0%, #fff 54%, #f4f7fb 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  align-items: center;
  gap: 48px;
}

.hero__title {
  max-width: 690px;
  color: var(--navy);
  font-size: clamp(3.2rem, 6.2vw, 5.7rem);
  line-height: .98;
  font-weight: 800;
  letter-spacing: -.055em;
}

.hero__lead {
  max-width: 560px;
  margin: 34px 0 22px;
  padding-left: 24px;
  border-left: 4px solid var(--lime);
  color: var(--olive-lead);
  font-size: clamp(1.25rem, 2.1vw, 1.65rem);
  font-weight: 750;
  line-height: 1.34;
}

.hero__body {
  max-width: 550px;
  color: #30415F;
  font-size: 1.07rem;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 34px;
}
.hero__seelink {
  color: var(--navy);
  font-weight: 750;
  text-decoration: none;
}
.hero__seelink span { display: inline-block; margin-left: 5px; transition: transform .2s ease; }
.hero__seelink:hover span { transform: translateY(3px); }

/* Hero visual — CSS browser card + padlock + status chip */
.hero__media { position: relative; min-height: 500px; isolation: isolate; }

.hero__browser {
  position: absolute;
  z-index: 1;
  top: 30px; right: 0;
  width: 86%; height: 390px;
  border: 1px solid #D6DDE7;
  border-radius: 24px;
  background: rgba(255, 255, 255, .91);
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}
.hero__browser-bar {
  display: flex;
  gap: 9px;
  height: 58px;
  padding: 23px;
  border-radius: 23px 23px 0 0;
  background: linear-gradient(100deg, #063D7F, var(--navy));
}
.hero__browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #fff; opacity: .93; }
.hero__rows { display: grid; gap: 28px; padding: 40px 32px 32px 53%; }
.hero__row { display: flex; align-items: center; gap: 13px; }
.hero__row b {
  display: grid; place-items: center;
  width: 27px; height: 27px; flex: 0 0 auto;
  border-radius: 50%;
  background: var(--lime); color: var(--navy);
}
.hero__row span { width: 100%; height: 9px; border-radius: 99px; background: #D6DCE5; }

.hero__lock {
  position: absolute;
  z-index: 2;
  left: -3%; bottom: 3px;
  width: 78%;
  filter: drop-shadow(0 25px 22px rgba(0, 28, 83, .2));
}

.hero__status {
  position: absolute;
  z-index: 3;
  right: -1%; bottom: 18px;
  width: 47%; min-height: 138px;
  padding: 26px;
  border: 1px solid #E4E8EE;
  border-radius: 20px;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 22px 45px rgba(0, 28, 83, .15);
  transform: rotate(3deg);
}
.hero__status b { display: block; margin-bottom: 20px; color: var(--navy); }
.hero__status b span {
  display: inline-grid; place-items: center;
  width: 27px; height: 27px; margin-right: 8px;
  border-radius: 50%; background: var(--lime);
}
.hero__status i { display: block; width: 74%; height: 8px; margin: 9px 0 0 40px; border-radius: 99px; background: #D5DCE5; }
.hero__status i:last-child { width: 32%; background: var(--lime); }

.hero__dots {
  position: absolute;
  z-index: 0;
  width: 430px; height: 260px;
  opacity: .34;
  background-image: radial-gradient(var(--lime) 1.15px, transparent 1.15px);
  background-size: 12px 12px;
  mask-image: linear-gradient(90deg, transparent, #000, transparent);
  transform: rotate(-14deg);
  pointer-events: none;
}
.hero__dots--one { right: -70px; top: 130px; }
.hero__dots--two { left: 36%; bottom: -75px; }

/* ---------- 6. Benefits ---------- */
.benefits { padding: 100px 0 112px; background: var(--surface); }
.benefits__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 44px;
}
.benefits__heading .eyebrow { margin-bottom: 10px; }
.benefits__title {
  color: var(--navy);
  font-size: clamp(2.2rem, 4vw, 3.7rem);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -.045em;
}
.benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--white);
  border: 1px solid #E4E8EE;
  border-radius: var(--radius);
  box-shadow: 0 20px 55px rgba(0, 28, 83, .08);
}
.benefit { padding: 42px 38px; }
.benefit + .benefit { border-left: 1px solid var(--line); }
.benefit__icon {
  display: grid; place-items: center;
  width: 68px; height: 68px;
  margin-bottom: 26px;
  border-radius: 50%;
  background: var(--lime); color: var(--navy);
  font-size: 1.7rem; font-weight: 900; letter-spacing: -7px; text-indent: -6px;
  box-shadow: 0 10px 24px rgba(160, 201, 0, .2);
}
.benefit__title { margin-bottom: 11px; color: var(--navy); font-size: 1.25rem; letter-spacing: -.02em; }
.benefit__text { color: var(--muted); }

/* ---------- 7. Sign-up ---------- */
.signup { padding: 104px 0; background: var(--white); }
.signup__panel {
  position: relative;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 82px;
  overflow: hidden;
  padding: clamp(38px, 6vw, 74px);
  border-radius: 28px;
  color: var(--white);
  background:
    radial-gradient(circle at 78% 25%, #063F82 0, transparent 34%),
    linear-gradient(120deg, #001640, var(--navy) 67%, #012761);
  box-shadow: 0 28px 70px rgba(0, 28, 83, .2);
}
.signup__panel::after {
  content: "";
  position: absolute;
  right: -70px; bottom: -70px;
  width: 430px; height: 320px;
  opacity: .17;
  background-image: radial-gradient(var(--lime) 1px, transparent 1px);
  background-size: 11px 11px;
  transform: rotate(-12deg);
  pointer-events: none;
}
.signup__intro, .signup__form-wrap { position: relative; z-index: 2; }
.signup__title { color: var(--white); font-size: clamp(2.2rem, 4vw, 3.7rem); line-height: 1.06; font-weight: 800; letter-spacing: -.045em; }
.signup__intro p { max-width: 420px; margin-top: 24px; color: #D7E2F3; font-size: 1.08rem; }
.signup__note {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 48px;
  color: var(--lime);
  font-weight: 700;
  line-height: 1.35;
}
.signup__note-lock {
  display: grid; place-items: center;
  width: 51px; height: 51px; flex: none;
  border: 2px solid var(--lime);
  border-radius: 15px;
  font-size: 1.8rem;
}

/* Form */
.signup__form { display: grid; gap: 18px; }
.signup__field { display: grid; gap: 7px; }
.signup__field label { color: #EDF3FB; font-size: .86rem; font-weight: 750; }
.signup__form input {
  width: 100%;
  min-height: 56px;
  padding: 0 17px;
  color: var(--navy);
  background: var(--white);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.signup__form input::placeholder { color: #80899B; }
.signup__form input:hover { border-color: #BDD0EA; }
.signup__form input:focus {
  outline: 0;
  border-color: var(--lime);
  box-shadow: 0 0 0 4px rgba(207, 255, 2, .16);
}
.signup__form input[aria-invalid="true"] { border-color: #FF9A9A; }

/* Honeypot — hidden from people, visible to naive bots */
.hp {
  position: absolute !important;
  left: -10000px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.cf-turnstile { min-height: 65px; }
.turnstile-fallback { margin: 0; font-size: .84rem; line-height: 1.45; color: #FFD2D2; }
.turnstile-fallback a { color: var(--lime); }

.signup__form .btn { width: 100%; margin-top: 2px; }

.form-message { min-height: 1.2em; margin: 0; font-size: .9rem; font-weight: 700; color: var(--lime); }
.form-message--error { color: #FFD2D2; }

.signup__privacy { margin-top: 4px; color: #CDD9EA; font-size: .83rem; line-height: 1.45; }
.signup__privacy span { margin-right: 7px; color: var(--lime); }

/* ---------- 8. Footer ---------- */
.site-footer { padding: 44px 0; background: var(--surface); border-top: 1px solid var(--line); }
.footer__inner {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  align-items: center;
  gap: 38px;
}
.footer__logo img { width: 118px; }
.footer__blurb { max-width: 470px; color: #42516A; font-size: .9rem; line-height: 1.55; }
.footer__copy { white-space: nowrap; color: var(--navy); font-size: .9rem; }

/* ---------- 9. Responsive (desktop-first) ---------- */
@media (max-width: 980px) {
  .hero { padding-top: 60px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { width: min(640px, 100%); min-height: 490px; margin: 0 auto; order: -1; }
  .signup__panel { grid-template-columns: 1fr; gap: 48px; }
  .signup__intro p { max-width: 600px; }
}

@media (max-width: 760px) {
  :root { --gutter: 20px; }

  .logo img { width: 122px; }
  .hero { padding: 48px 0 72px; }
  .hero__title { font-size: clamp(2.8rem, 13vw, 4.4rem); }
  .hero__actions { flex-direction: column; align-items: stretch; gap: 16px; }
  .hero__seelink { text-align: center; }
  .hero__media { min-height: 400px; margin-top: 12px; }
  .hero__browser { width: 92%; height: 330px; }
  .hero__rows { padding-left: 55%; }
  .hero__lock { left: -6%; width: 77%; }
  .hero__status { width: 51%; min-height: 116px; padding: 19px; font-size: .84rem; }
  .hero__status i { margin-left: 31px; }

  .benefits { padding: 76px 0; }
  .benefits__heading { display: block; }
  .benefits__grid { grid-template-columns: 1fr; }
  .benefit + .benefit { border-left: 0; border-top: 1px solid var(--line); }

  .signup { padding: 70px 0; }
  .signup__panel { padding: 38px 24px; border-radius: 22px; }
  .signup__note { margin-top: 34px; }

  .footer__inner { grid-template-columns: 1fr; justify-items: start; gap: 20px; }
}

@media (max-width: 480px) {
  .hero__media { min-height: 320px; }
  .hero__browser { top: 20px; height: 270px; border-radius: 16px; }
  .hero__browser-bar { height: 45px; padding: 17px; border-radius: 15px 15px 0 0; }
  .hero__browser-bar i { width: 8px; height: 8px; }
  .hero__rows { gap: 17px; padding: 27px 20px 20px 56%; }
  .hero__row b { width: 20px; height: 20px; font-size: .68rem; }
  .hero__lock { bottom: 0; width: 76%; }
  .hero__status { right: -3%; bottom: 3px; width: 54%; min-height: 91px; padding: 13px; border-radius: 13px; font-size: .68rem; }
  .hero__status b { margin-bottom: 10px; }
  .hero__status b span { width: 19px; height: 19px; margin-right: 3px; }
  .hero__status i { height: 5px; margin: 5px 0 0 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
