/* Turn On Your Leads — draft landing page styles.
   Palette: greens and blues. Specified tokens, plus documented AA adjustments below. */

:root {
  /* Shared tokens with site/site.css (same specified hex values). */
  --bg: #F5F8FA;
  --page: #F5F8FA;
  --card: #FFFFFF;
  --ink: #1E2A36;
  --muted: #4F5F6F;          /* secondary text; 6.2:1 on page (shared with site) */
  --navy: #1F3A5F;           /* header, footer, and the single dark band */
  --green: #2E8B57;          /* specified primary CTA */
  --cta: #2E8B57;
  --cta-brand: #2E8B57;
  --green-hover: #23704A;
  --cta-hover: #23704A;
  --green-deep: #1C5C3D;     /* hover for small buttons */
  --blue: #3A7CA5;
  --accent: #3A7CA5;
  --accent-text: #3A77A5;    /* AA: small text on --bg is 4.51:1; specified #3A7CA5 is 4.27:1 on --bg */
  --forest: #2F6B4F;
  --trust: #2F6B4F;
  --line: #DCE4EA;
  --alt: #EAF1F5;
  --input-line: #7A8690;     /* form controls: 3.72:1 on white (1.4.11) */
  --on-dark: #D6E2EC;
  --on-navy: #D6E2EC;
  --on-dark-2: #C9D6E2;
  --mint: #8FD6AE;           /* green on navy, 6.8:1 */
  --brand-on-dark: #8FD6AE;
  --sky: #9CC9E3;
  --glow: rgba(46, 139, 87, 0.35);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--page);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.15rem, 7.2vw, 3.7rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 5vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--trust);
  margin: 0 0 0.9em;
}
.lede { font-size: 1.1rem; color: var(--muted); max-width: 60ch; }
.lit { color: var(--cta-brand); }
h1 .lit { white-space: nowrap; }

/* Buttons */
/* Primary .btn is 1.2rem / 800 so it counts as WCAG large text (19.2px bold).
   White on specified #2E8B57 is 4.25:1 — short of 4.5:1 for normal text, over 3:1 for large text.
   Small header buttons (.btn-sm) use #23704A (6.02:1) so they pass at 0.9rem. Same approach as site.css. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  background: var(--green);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 1.2rem;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 0.8em 1.5em;
  font-family: inherit;
  box-shadow: 0 8px 24px -10px var(--glow);
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.btn:hover { background: var(--green-hover); transform: translateY(-1px); box-shadow: 0 0 0 5px rgba(46, 139, 87, 0.18), 0 10px 30px -10px var(--glow); }
.btn:focus-visible, a:focus-visible, summary:focus-visible, button:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  box-shadow: inset 0 0 0 2px var(--navy);
}
.btn-ghost:hover { background: rgba(31, 58, 95, 0.04); box-shadow: inset 0 0 0 2px var(--green); color: var(--forest); }
.section.dark .btn-ghost { color: #FFFFFF; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.4); }
.section.dark .btn-ghost:hover { background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 2px var(--mint); color: #FFFFFF; }
.btn-sm { background: var(--green-hover); padding: 0.6em 1.1em; font-size: 0.9rem; }
.btn-sm:hover { background: var(--green-deep); }
.btn-full { width: 100%; }


/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6em;
  text-decoration: none;
  color: #fff;
  min-width: 0;
}
.brand-name { font-weight: 800; letter-spacing: -0.01em; color: #fff; margin: 0; white-space: nowrap; }
.brand-name em { font-style: normal; color: var(--mint); }
.brand-switch {
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: var(--green);
  position: relative;
  box-shadow: 0 0 12px var(--glow);
  flex: none;
}
.brand-switch span {
  position: absolute;
  right: 3px;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #FFFFFF;
}

/* Header nav — same structure as the site pages, plus a mobile toggle */
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--on-dark); font-weight: 600; font-size: 0.92rem; padding: 0.45em 0.7em; border-radius: 999px; white-space: nowrap; }
.nav a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav a[aria-current="page"] { color: var(--mint); }
.nav .btn { color: #FFFFFF; margin-left: 8px; }
.nav .btn:hover { background: var(--green-deep); color: #FFFFFF; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px;
  flex-shrink: 0;
}
.menu-toggle-bar,
.menu-toggle-bar::before,
.menu-toggle-bar::after {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  position: relative;
  transition: transform 0.2s, opacity 0.2s;
}
.menu-toggle-bar::before,
.menu-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-toggle-bar::before { top: -7px; }
.menu-toggle-bar::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar::after { top: 0; transform: rotate(-45deg); }

.mobile-nav {
  display: none;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-nav.is-open { display: block; }
.mobile-nav .wrap {
  display: flex;
  flex-direction: column;
  padding-top: 8px;
  padding-bottom: 16px;
  gap: 2px;
}
.mobile-nav a {
  text-decoration: none;
  color: var(--on-dark);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75em 0.4em;
  border-radius: 10px;
}
.mobile-nav a:hover,
.mobile-nav a:focus { color: #fff; background: rgba(255,255,255,0.08); }
.mobile-nav a[aria-current="page"] { color: var(--mint); }
.mobile-nav .btn { color: #fff; margin-top: 8px; width: 100%; }

.cta-short { display: none; }

@media (max-width: 899px) {
  .nav .nav-link { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
}
@media (max-width: 520px) {
  .cta-long { display: none; }
  .cta-short { display: inline; }
  /* Brand + short CTA + toggle do not fit at 390px; CTA lives in the menu instead. */
  .nav .btn { display: none; }
}

/* Hero — light, with a green "on" glow */
.hero {
  background:
    radial-gradient(1100px 560px at 82% 28%, rgba(46, 139, 87, 0.16), transparent 60%),
    radial-gradient(800px 400px at 8% 90%, rgba(58, 124, 165, 0.08), transparent 55%),
    var(--page);
  color: var(--ink);
  padding: 56px 0 72px;
  overflow: hidden;
}
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero h1 { color: var(--ink); }
.hero-tagline {
  display: inline-block;
  font-style: italic;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
  transform: rotate(-2.8deg) skewX(-7deg);
  transform-origin: left center;
  margin: 0.12em 0 0.7em;
  padding: 0.06em 0.45em 0.16em 0.04em;
  max-width: 100%;
  text-shadow: 0 1px 0 rgba(255,255,255,0.7);
}
.hero-tagline .lit { color: var(--cta-brand); }
@media (max-width: 420px) {
  .hero-tagline {
    font-size: clamp(1.85rem, 9vw, 2.3rem);
    transform: rotate(-2.2deg) skewX(-5deg);
    padding-right: 0.2em;
  }
}
.sub { font-size: 1.12rem; color: var(--muted); max-width: 58ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.fine { font-size: 0.9rem; color: var(--muted); margin: 0; }
.fine strong { color: var(--trust); font-weight: 700; }

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 240px;
  padding-bottom: 32px;
}
.glow {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 139, 87, 0.45), transparent 65%);
  filter: blur(10px);
  z-index: 0;
  transition: opacity 0.4s, transform 0.4s;
}
.plate {
  position: relative;
  z-index: 1;
  width: 136px;
  height: 210px;
  border-radius: 22px;
  background: linear-gradient(160deg, #ffffff, #e6edf2);
  box-shadow: 0 30px 60px -24px rgba(31, 58, 95, 0.35), inset 0 1px 0 #fff, inset 0 -2px 0 rgba(31, 58, 95, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}
.screw {
  position: absolute;
  left: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c5d0da, #8a96a0);
}
.screw::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: 5px;
  height: 2px;
  background: #5a6570;
  transform: rotate(25deg);
}
.s1 { top: 18px; }
.s2 { bottom: 18px; }
.toggle {
  position: relative;
  width: 54px;
  height: 100px;
  border-radius: 14px;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #c5d0da;
  box-shadow: inset 0 3px 8px rgba(30, 42, 54, 0.25);
}
.knob {
  position: absolute;
  left: 5px;
  right: 5px;
  height: 47px;
  border-radius: 10px;
  bottom: 6px;
  background: linear-gradient(180deg, #ffffff, #e6edf2);
  box-shadow: 0 6px 10px rgba(30, 42, 54, 0.2);
  transition: all 0.25s;
}
.toggle.is-on .knob {
  bottom: 48px;
  background: linear-gradient(180deg, #57B480, var(--cta-brand));
  box-shadow: 0 0 22px var(--glow), 0 6px 10px rgba(30, 42, 54, 0.2);
}
.plate-label {
  position: absolute;
  right: 14px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #7a8690;
}
.plate-label.on { top: 44px; color: var(--trust); }
.plate-label.off { bottom: 44px; }
body.lights-off .glow { opacity: 0; }
body.lights-off .plate-label.on { color: #7a8690; }
.switch-hint {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  z-index: 2;
  white-space: nowrap;
}

/* Problem — stays light */
.problem { padding: 72px 0; }
.problem-grid { display: grid; gap: 16px; margin-top: 28px; }
.problem-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  border-top: 4px solid var(--accent);
}
.problem-card h3 { color: var(--navy); }
.problem-card p { color: var(--muted); margin: 0; }
.problem-close { margin: 28px 0 0; font-size: 1.05rem; color: var(--ink); }
.problem-close strong { color: var(--trust); }

/* Sections */
.section { padding: 72px 0; }
.section.alt { background: var(--alt); }
section[id] { scroll-margin-top: 80px; }

/* The single dark band */
.section.dark {
  background: var(--navy);
  color: #fff;
}
.section.dark h2 { color: #fff; }
.section.dark .lede,
.section.dark .demo-note { color: var(--on-dark); }
.section.dark .eyebrow { color: var(--mint); }
.section.dark .lit { color: var(--mint); text-shadow: 0 0 18px var(--glow); }

.steps {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  gap: 18px;
}
.steps li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px 22px;
}
.steps p { color: var(--muted); margin: 0; }
.step-num {
  display: inline-flex;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  background: var(--navy);
  color: var(--mint);
  box-shadow: 0 0 0 4px rgba(58, 124, 165, 0.18);
  margin-bottom: 14px;
}

.cards { display: grid; gap: 16px; margin-top: 28px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  border-top: 4px solid var(--cta-brand);
}
.section.alt .card { background: var(--page); }
.card p { color: var(--muted); margin: 0; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--trust); text-decoration: underline; text-underline-offset: 3px; }

.disclosure {
  margin-top: 36px;
  background: var(--card);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--trust);
}
.section.alt .disclosure { background: var(--page); }
.disclosure h3 { color: var(--navy); }
.disclosure p { margin: 0; color: var(--muted); }
.disclosure strong { color: var(--trust); }
.disclosure a { color: var(--accent-text); font-weight: 700; }
.disclosure a:hover { color: var(--trust); }

.cities { color: var(--muted); font-size: 1.05rem; }

.price-note {
  background: #E8F3EE;
  border: 1px solid #B7D4C6;
  color: var(--ink);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.95rem;
  margin: 8px 0 24px;
  max-width: 70ch;
}
.price-row { display: grid; gap: 14px; margin: 0 0 28px; }
.price-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--card);
  color: var(--muted);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--line);
}
.section.alt .price-item { background: var(--page); }
.price-item h3 { color: var(--navy); margin: 0 0 4px; font-size: 1rem; letter-spacing: 0.04em; text-transform: uppercase; }
.price-big {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--trust);
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.25;
}
.price-item p { margin: 0; }
.placeholder-text { color: var(--trust); font-weight: 700; }
.center { text-align: center; }

.more-link {
  display: inline-block;
  margin-top: 8px;
  font-weight: 700;
  color: var(--accent-text);
  text-decoration: none;
}
.more-link:hover { color: var(--trust); text-decoration: underline; text-underline-offset: 3px; }

/* FAQ */
details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 20px;
  margin-bottom: 12px;
}
summary {
  cursor: pointer;
  font-weight: 700;
  padding: 18px 28px 18px 0;
  list-style: none;
  position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 14px;
  font-size: 1.4rem;
  color: var(--trust);
  font-weight: 700;
}
details[open] summary::after { content: "\2212"; }
details p { color: var(--muted); margin: 0 0 18px; }

/* Form */
.form-grid { display: grid; gap: 32px; align-items: start; }
.form {
  background: var(--card);
  color: var(--ink);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 30px 60px -28px rgba(15, 30, 50, 0.55);
}
.form label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 14px; }
.form input, .form select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 0.8em 0.9em;
  font: inherit;
  font-weight: 400;
  border: 1px solid var(--input-line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
.form input:focus, .form select:focus {
  outline: 2px solid var(--cta);
  border-color: var(--cta);
}
.two { display: grid; gap: 0 14px; }
.form-note {
  background: #E8F3EE;
  border: 1px solid #B7D4C6;
  color: var(--ink);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.9rem;
  margin-bottom: 18px;
}
.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.demo-note { margin-top: 18px; font-size: 0.95rem; }
.demo-note .placeholder-text { color: var(--sky); }

/* Footer */
.footer {
  background: var(--navy);
  color: var(--on-dark-2);
  padding: 40px 0 28px;
  font-size: 0.92rem;
}
.footer-grid { display: grid; gap: 20px; }
.footer p { margin: 0 0 0.35em; }
.footer .brand-name { color: #fff; }
.footer .placeholder-text { color: var(--sky); }
.footer a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.footer a:hover { color: var(--brand-on-dark); }

/* Thanks page */
.thanks { padding: 72px 0 96px; }
.thanks .card {
  border-top-color: var(--trust);
  max-width: 640px;
  padding: 32px;
}


/* Standalone AI trust section */
.trust { padding-top: 24px; }
.trust-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 8px solid var(--forest);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: 0 16px 40px -28px rgba(31, 58, 95, 0.35);
  max-width: 860px;
}
.trust-card h2 { margin-bottom: 0.4em; }
.trust-card p { color: var(--muted); font-size: 1.08rem; max-width: 65ch; }
.trust-card p:last-child { margin-bottom: 0; }
.card-note {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

@media (min-width: 720px) {
  .problem-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .two { grid-template-columns: 1fr 1fr; }
  .price-row { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1.5fr 1.5fr; }
}
@media (min-width: 960px) {
  .hero { padding: 88px 0 100px; }
  .hero-grid { grid-template-columns: 1.4fr 1fr; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .form-grid { grid-template-columns: 1fr 1.15fr; }
  .hero-art { min-height: 400px; padding-bottom: 40px; }
  .plate { width: 200px; height: 310px; }
  .toggle { width: 64px; height: 120px; }
  .knob { left: 6px; right: 6px; height: 58px; }
  .toggle.is-on .knob { bottom: 56px; }
  .plate-label.on { top: 58px; }
  .plate-label.off { bottom: 58px; }
  .glow { width: 360px; height: 360px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
