/* ==========================================================================
   LeeAI.ai — shared stylesheet (v1)
   Tone: clean, calm, professional. Confidence through restraint.
   Palette: deep navy primary, ONE teal-green accent (CTAs + 1–2 key phrases).
   ========================================================================== */

:root {
  /* Brand palette */
  --navy: #0F2A47;          /* deep navy primary */
  --navy-deep: #0B2038;     /* darker navy for closing band */
  --accent: #0C7A5E;        /* single teal-green accent (AA on white & navy) */
  --accent-hover: #0A6450;

  /* Surfaces + text */
  --bg: #FFFFFF;
  --bg-tint: #F4F7F8;       /* soft off-white section tint */
  --text: #1F2A37;          /* dark slate body text */
  --muted: #586876;
  --border: #E1E7EC;
  --border-strong: #CBD5DD;

  /* Focus ring (functional, high-contrast) */
  --focus: #0C7A5E;

  /* Type + rhythm */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          Helvetica, Arial, sans-serif;
  --maxw: 1120px;
  --maxw-text: 720px;
  --radius: 12px;
  --radius-sm: 8px;
  --band-y: clamp(3.5rem, 8vw, 6.5rem); /* vertical band padding */
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  color: var(--navy);
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

strong { font-weight: 600; color: var(--navy); }

/* --- Accessibility helpers ------------------------------------------------ */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1.1rem;
  z-index: 100;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
  text-decoration: none;
}

.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;
}

/* Honeypot: kept in the DOM (not display:none) but pushed off-screen so bots
   still fill it while people never see it. */
.hp-field {
  position: absolute !important;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- Layout --------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2rem);
}

.band { padding-block: var(--band-y); }
.band--tint { background: var(--bg-tint); }
.band--navy { background: var(--navy); }
.band--navy h1, .band--navy h2, .band--navy h3 { color: #fff; }

.measure { max-width: var(--maxw-text); }

/* --- Buttons (single reusable primary CTA) -------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.2;
  padding: 0.95rem 1.6rem;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: center;
  transition: background-color 0.18s ease, transform 0.05s ease;
}
.btn-primary:hover { background: var(--accent-hover); text-decoration: none; color: #fff; }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--accent);
}
/* On the navy band, give the white focus ring a navy halo so it stays visible */
.band--navy .btn-primary:focus-visible {
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.35);
}

.link-secondary {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  color: var(--accent);
}
.band--navy .link-secondary { color: #BfeFe2; }

.accent-text { color: var(--accent); }
.band--navy .accent-text { color: #7FE3C7; }

/* --- Header --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}
.wordmark {
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.wordmark:hover { text-decoration: none; }
.wordmark .dot { color: var(--accent); }
.site-header .btn-primary { padding: 0.65rem 1.1rem; font-size: 0.95rem; }

/* --- Hero ----------------------------------------------------------------- */
.hero { padding-block: clamp(3.5rem, 9vw, 7rem); }
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero__lead { max-width: 38ch; }
.hero__sub {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--muted);
  margin-top: 0.2rem;
}
.hero__ctas {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: 1.8rem;
}
.hero__trust {
  margin-top: 1.4rem;
  font-style: italic;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Calm abstract flow graphic (no robots/AI art) */
.flow-art { width: 100%; height: auto; }

/* --- Generic content blocks ---------------------------------------------- */
.lead-line {
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin-bottom: 0.8em;
}

/* Solution: two-part band */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.capability-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.capability-list li { padding-left: 0; }
.capability-list strong { display: block; color: var(--navy); }

/* --- Offer card (Section 4 — the product anchor) -------------------------- */
.offer-card {
  background: #fff;
  border: 2px solid var(--border-strong);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.8rem);
  box-shadow: 0 18px 40px -28px rgba(15, 42, 71, 0.45);
  max-width: 760px;
  margin-inline: auto;
}
.offer-card__def { font-size: 1.12rem; color: var(--text); }
.outcome-list {
  list-style: none;
  margin: 1.4rem 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
.outcome-list li {
  position: relative;
  padding-left: 1.9rem;
}
.outcome-list li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.55em;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 3px;
  background: var(--accent);
}
.offer-card__run { font-weight: 600; color: var(--navy); }
.offer-card .btn-primary { margin-top: 0.6rem; }

/* --- More systems grid ---------------------------------------------------- */
.systems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem 1.4rem;
  margin-top: 2rem;
}
.system-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.2rem;
}
.system-item strong { display: block; color: var(--navy); margin-bottom: 0.15rem; }
.system-item span { color: var(--muted); font-size: 0.98rem; }

/* --- How it works (3 steps) ---------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 2.5rem);
  margin-top: 2.2rem;
  counter-reset: step;
}
.step { }
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 1rem;
}
.step h3 { margin-bottom: 0.4em; }

/* --- Proof / trust band --------------------------------------------------- */
.trust-block { display: grid; gap: 1.6rem; max-width: var(--maxw-text); }
.trust-block h3 { margin-bottom: 0.3em; }
.trust-note {
  font-style: italic;
  color: var(--muted);
  border-left: 3px solid var(--border-strong);
  padding-left: 1.1rem;
}

/* --- FAQ ------------------------------------------------------------------ */
.faq { max-width: var(--maxw-text); margin-top: 1.8rem; }
.faq__item {
  border-bottom: 1px solid var(--border);
}
.faq__q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  margin: 0;
  padding: 1.15rem 2.5rem 1.15rem 0;
  font-family: inherit;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  position: relative;
}
.faq__q::after {
  content: "";
  position: absolute;
  right: 0.4rem;
  top: 50%;
  width: 0.7rem;
  height: 0.7rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq__q[aria-expanded="true"]::after {
  transform: translateY(-30%) rotate(225deg);
}
.faq__a {
  padding: 0 0 1.2rem;
  color: var(--text);
  max-width: 64ch;
}
.faq__a[hidden] { display: none; }

/* --- Footer --------------------------------------------------------------- */
.site-footer {
  background: var(--navy-deep);
  color: #C7D2DC;
  padding-block: 2.4rem;
  font-size: 0.97rem;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1.5rem;
}
.site-footer a { color: #E5EBF0; }
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  align-items: center;
}
.site-footer__links .sep { color: #5C7488; }

/* --- Forms (/review) ------------------------------------------------------ */
.form-wrap { max-width: 760px; }
.form-intro { color: var(--muted); }
.form-intro .takes { font-weight: 600; color: var(--text); }

.fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 2.2rem;
}
.fieldset > legend {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  padding: 0;
  margin-bottom: 1.1rem;
}

.field { margin-bottom: 1.3rem; }
.field > label,
.group-label {
  display: block;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.45rem;
}
.field .optional { font-weight: 400; color: var(--muted); font-size: 0.9em; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="url"],
.field select {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  padding: 0.8rem 0.9rem;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #fff;
}
.field input:focus-visible,
.field select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--accent);
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: #B42318;
}

.hint { color: var(--muted); font-size: 0.92rem; margin-top: 0.35rem; }

.error-text {
  color: #B42318;
  font-size: 0.92rem;
  margin-top: 0.4rem;
  font-weight: 500;
}
.error-text[hidden] { display: none; }

/* Choice chips (multi-select + single-select quick taps) */
.choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.choice {
  position: relative;
}
.choice input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
}
.choice label {
  display: inline-flex;
  align-items: center;
  min-height: 48px;            /* large tap target */
  padding: 0.6rem 1.05rem;
  border: 1.5px solid var(--border-strong);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 500;
  color: var(--text);
  background: #fff;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.choice label:hover { border-color: var(--accent); }
.choice input:checked + label {
  border-color: var(--accent);
  background: rgba(12, 122, 94, 0.08);
  color: var(--navy);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--accent);
}
.choice input:focus-visible + label {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.qual-question { margin-bottom: 1.6rem; }

/* Consent block */
.consent {
  background: var(--bg-tint);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.3rem 1.4rem;
  margin: 1.5rem 0 1.8rem;
}
.consent p { font-size: 0.98rem; }
.consent__sms {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin: 0.9rem 0;
}
.consent__sms input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
  accent-color: var(--accent);
}
.consent__sms label { font-size: 0.95rem; color: var(--text); }
.consent__optional { font-style: italic; color: var(--muted); font-size: 0.9rem; }
.consent__legal { font-size: 0.92rem; margin-top: 0.6rem; }

/* Disabled SMS consent (production launch gate) */
.consent__gate {
  border-left: 3px solid var(--border-strong);
  padding-left: 0.9rem;
  margin-top: 0.6rem;
}
.consent__sms.is-disabled label { color: var(--muted); }
.consent__gate-note { font-size: 0.88rem; color: var(--muted); margin-top: 0.4rem; }

.form-status {
  margin: 1rem 0;
  font-weight: 500;
}
.form-status.is-error { color: #B42318; }

/* --- Simple content page (privacy / terms / thank-you) -------------------- */
.simple-page { padding-block: clamp(3rem, 8vw, 5.5rem); }
.simple-page .measure { margin-inline: 0; }
.simple-page .meta-note { color: var(--muted); }

/* --- Motion: subtle reveal, respect reduced-motion ----------------------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__lead { max-width: none; margin-inline: auto; }
  .hero__ctas { justify-content: center; }
  .hero__art { order: 2; margin-top: 1.5rem; }
  .hero .btn-primary { width: 100%; }
  .split { grid-template-columns: 1fr; }
  .systems-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 17px; }
  .site-header .btn-primary { padding: 0.6rem 0.85rem; font-size: 0.88rem; }
  .systems-grid { grid-template-columns: 1fr; }
  .offer-card .btn-primary,
  .band--navy .btn-primary { width: 100%; }
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
}
