/* RetainScout — calm, professional static styles */

:root {
  --ink: #1a2332;
  --ink-soft: #3d4a5c;
  --muted: #5c6b7e;
  --line: #d8e0ea;
  --paper: #f7f5f1;
  --paper-deep: #efebe4;
  --white: #ffffff;
  --navy: #1e3a5f;
  --navy-deep: #152a45;
  --teal: #2a6f6b;
  --teal-soft: #e8f3f2;
  --gold: #a67c52;
  --error: #9b2c2c;
  --error-bg: #fdf2f2;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 12px 40px rgba(26, 35, 50, 0.08);
  --shadow-lg: 0 24px 60px rgba(26, 35, 50, 0.14);
  --font: "Source Sans 3", system-ui, -apple-system, sans-serif;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --max: 1120px;
  --narrow: 720px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light;
  background: #f7f6f2;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy-deep);
  margin: 0 0 0.75rem;
}

h1 { font-size: clamp(2.15rem, 4.5vw, 3.15rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.35rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1rem; color: var(--ink-soft); }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--navy); }

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

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

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}
.narrow { width: min(100% - 2rem, var(--narrow)); margin-inline: auto; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 0.75rem;
}

.lead {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 36em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}
.btn--primary {
  background: var(--navy);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--navy-deep);
  color: var(--white);
}
.btn--secondary {
  background: var(--teal);
  color: var(--white);
}
.btn--secondary:hover {
  background: #1f5855;
  color: var(--white);
}
.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}
.btn--ghost:hover {
  border-color: var(--navy);
  background: var(--white);
}
.btn--full { width: 100%; }

/* Password gate */
.gate {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}
.gate[hidden] { display: none !important; }
.gate__backdrop {
  position: absolute;
  inset: 0;
  /* Let the editorial landing canvas remain visible behind the modal. */
  background: rgba(20, 20, 18, 0.18);
}
.gate__panel {
  position: relative;
  width: min(100%, 420px);
  background: var(--white);
  border-radius: 16px;
  padding: 2.25rem 2rem 1.75rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.gate__mark {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 1rem;
}
.gate__title {
  font-size: 1.85rem;
  margin-bottom: 0.5rem;
}
.gate__desc {
  font-size: 0.98rem;
  margin-bottom: 1.5rem;
}
.gate__form input {
  width: 100%;
  font: inherit;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  background: var(--paper);
}
.gate__form input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(42, 111, 107, 0.2);
}
.gate__form input[aria-invalid="true"] {
  border-color: var(--error);
  background: var(--error-bg);
}
.gate__error {
  color: var(--error);
  font-size: 0.92rem;
  font-weight: 500;
  margin: 0 0 0.75rem;
  text-align: left;
}
.gate__footnote {
  margin: 1.25rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Site shell */
.site[hidden] { display: none !important; }

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--navy-deep);
  font-weight: 600;
}
.logo__mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 700;
}
.logo__text {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.98rem;
}
.nav a:hover { color: var(--navy); }
.nav__cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 0.55rem 1rem;
  border-radius: 999px;
}
.nav__cta:hover { background: var(--navy-deep); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
}

/* Hero */
.hero {
  padding: 3.5rem 0 4rem;
  background:
    linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: start;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0 1.5rem;
}
.hero__trust {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 500;
}
.hero__trust li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.hero__trust li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

.hero__card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.hero__card-title {
  font-size: 1.45rem;
  margin-bottom: 1.25rem;
}
.steps {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  gap: 1.15rem;
}
.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
}
.steps__num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal);
  font-weight: 700;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
}
.steps strong {
  display: block;
  color: var(--navy-deep);
  margin-bottom: 0.15rem;
}
.steps p {
  margin: 0;
  font-size: 0.92rem;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}
.section--muted {
  background: var(--white);
  border-block: 1px solid var(--line);
}
.section--accent {
  background: #f3f2ee;
  color: #111111;
  border-block: 1px solid rgba(18, 18, 18, 0.1);
}
.section__head {
  max-width: 40em;
  margin-bottom: 2.5rem;
}
.section__head--light h2,
.section__head--light .eyebrow {
  color: #111111;
}
.section__head--light .eyebrow { color: #4f5550; }
.section__head--light .section__lede { color: #4a4a46; }
.section__lede {
  font-size: 1.1rem;
  margin: 0;
}

.cards {
  display: grid;
  gap: 1.25rem;
}
.cards--3 {
  grid-template-columns: repeat(3, 1fr);
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.section--muted .card {
  background: var(--paper);
}
.card__icon {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 0.75rem;
}
.card h3 { margin-bottom: 0.5rem; }
.card p:last-child { margin-bottom: 0; }

.criteria-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.criteria {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.criteria h3 { margin-bottom: 0.75rem; }
.criteria ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ink-soft);
}
.criteria li { margin-bottom: 0.45rem; }
.criteria li:last-child { margin-bottom: 0; }

.example-banner {
  background: var(--teal-soft);
  border: 1px solid #c5e0dd;
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.15rem;
  margin-bottom: 1.25rem;
}
.example-banner p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--navy-deep);
}
.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  background: #f6eee4;
  border: 1px solid #e8d5c0;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}
.card--example .meta {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 0.65rem;
}

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.compare__col {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.compare__col--alt {
  background: var(--paper-deep);
}
.compare ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ink-soft);
}
.compare li { margin-bottom: 0.5rem; }

.callout {
  background: var(--white);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
}
.callout h3 { font-size: 1.15rem; }
.callout__source {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0.75rem 0 0;
}

.retainer-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
  counter-reset: rs;
}
.retainer-steps li {
  counter-increment: rs;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1rem;
  background: #284b70;
  border: 1px solid #52708f;
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
}
.retainer-steps li::before {
  content: counter(rs);
  grid-row: 1 / span 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #406486;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  align-self: start;
}
.retainer-steps strong {
  color: var(--white);
  font-size: 1.05rem;
}
.retainer-steps span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  grid-column: 2;
}

/* Inquiry */
.inquiry-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}
.checklist {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}
.checklist li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.65rem;
  color: var(--ink-soft);
  font-weight: 500;
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

.inquiry__panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.form__row {
  margin-bottom: 1rem;
}
.form__row--2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy-deep);
  margin-bottom: 0.35rem;
}
.field .optional {
  font-weight: 400;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(42, 111, 107, 0.18);
  background: var(--white);
}
.field textarea { resize: vertical; min-height: 110px; }
.form__hint {
  color: var(--error);
  font-size: 0.92rem;
  font-weight: 500;
  margin: 0 0 0.75rem;
}
.form__fineprint {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 1rem 0 0;
}

.success {
  text-align: center;
  padding: 1.5rem 0.5rem;
}
.success__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 700;
}
.success__next {
  background: var(--paper);
  border-radius: var(--radius-sm);
  padding: 1rem;
  text-align: left;
  font-size: 0.95rem;
}

.ai-handoff {
  margin: 1.5rem 0;
  padding: 1.25rem;
  background: var(--teal-soft);
  border: 1px solid #c5e0dd;
  border-radius: var(--radius);
  text-align: left;
}
.ai-handoff__intro h4 {
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.2;
  color: var(--navy-deep);
  margin: 0 0 0.5rem;
}
.ai-handoff__intro .eyebrow {
  margin-bottom: 0.35rem;
}
.ai-handoff__intro p:last-child {
  font-size: 0.94rem;
  margin-bottom: 1rem;
}
.ai-handoff__steps {
  margin: 0 0 1.15rem;
  padding: 0 0 0 1.25rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.ai-handoff__steps li { margin-bottom: 0.45rem; }
.ai-handoff__steps li:last-child { margin-bottom: 0; }
.ai-handoff__actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.15rem;
}
.ai-handoff__actions .btn {
  width: 100%;
  padding-inline: 0.75rem;
}
.ai-handoff__copy {
  padding-top: 1rem;
  border-top: 1px solid rgba(42, 111, 107, 0.2);
}
.ai-handoff__copy label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy-deep);
  margin-bottom: 0.35rem;
}
.ai-handoff__copy textarea {
  display: block;
  width: 100%;
  min-height: 145px;
  resize: vertical;
  font: 0.88rem/1.5 var(--font);
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.7rem;
}
.ai-handoff__copy textarea:focus {
  outline: 3px solid rgba(42, 111, 107, 0.22);
  outline-offset: 1px;
}
.ai-handoff__copy-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.65rem;
}
.copy-status {
  font-size: 0.88rem;
  color: var(--teal);
  font-weight: 600;
}

/* Disclaimer & footer */
.disclaimer {
  padding: 3rem 0;
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
}
.disclaimer h2 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}
.disclaimer p {
  font-size: 0.95rem;
  color: var(--muted);
}

.footer {
  background: #111111;
  color: rgba(255, 255, 255, 0.75);
  padding: 2.25rem 0;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: end;
}
.logo--footer { color: var(--white); margin-bottom: 0.5rem; }
.logo--footer .logo__mark { background: rgba(255, 255, 255, 0.15); }
.footer__tag {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
}
.footer__meta {
  text-align: right;
  font-size: 0.88rem;
}
.footer__meta p { margin: 0 0 0.35rem; color: rgba(255, 255, 255, 0.6); }
.footer a { color: #9fd0cc; text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 900px) {
  .hero__grid,
  .inquiry-layout,
  .cards--3,
  .criteria-grid,
  .compare {
    grid-template-columns: 1fr;
  }
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1rem 1rem;
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--line);
  }
  .nav__cta {
    text-align: center;
    margin-top: 0.5rem;
    border-bottom: none !important;
  }
  .form__row--2 { grid-template-columns: 1fr; }
  .footer__meta { text-align: left; }
}

@media (max-width: 520px) {
  .hero { padding: 2.5rem 0 3rem; }
  .section { padding: 3.25rem 0; }
  .hero__actions .btn { width: 100%; }
  .ai-handoff__actions { grid-template-columns: 1fr; }
}

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

/* (removed conflicting dark canvas — light Harvey-style lander only) */
.ai-handoff__intro h3,
.ai-handoff__instructions h4 { color: var(--navy-deep); }
.ai-handoff__instructions h4 {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
}
.ai-handoff__prompt-help {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0.4rem 0 0;
}
.btn.is-disabled,
.btn:disabled,
.ai-handoff__actions .is-disabled {
  cursor: not-allowed;
  opacity: 0.45;
  pointer-events: auto;
}
.btn:disabled { pointer-events: none; }
#inquiry-reset { margin-top: 1rem; }


/* Password gate state: the preview remains visible, inert, and behind the modal. */
body.has-gate .site {
  pointer-events: none;
  user-select: none;
}

/* Light editorial preview canvas — original styling, with no third-party marks or copy. */
body {
  background: #f7f6f2;
}
.header {
  background: rgba(250, 249, 246, 0.96);
  border-bottom-color: rgba(18, 18, 18, 0.13);
}
.header .logo,
.header .nav a { color: #111111; }
.header .nav a:hover { color: #4a4a46; }
.header .logo__mark {
  background: #111111;
  color: #ffffff;
}
.header .nav__cta {
  background: #111111;
  color: #ffffff !important;
}
.header .nav__cta:hover { background: #2d2d2a; }

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: calc(100svh - var(--header-h));
  padding: clamp(5rem, 11vh, 9rem) 0 clamp(5rem, 12vh, 9.5rem);
  overflow: hidden;
  background:
    radial-gradient(ellipse 54% 58% at 86% 22%, rgba(216, 226, 226, 0.58), transparent 70%),
    radial-gradient(ellipse 42% 54% at 8% 92%, rgba(232, 222, 211, 0.48), transparent 72%),
    linear-gradient(135deg, #fbfaf8 0%, #f8f7f4 52%, #f4f3ef 100%);
  border-bottom: 1px solid rgba(18, 18, 18, 0.13);
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(52vw, 720px);
  aspect-ratio: 1;
  right: -12vw;
  top: -34%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 213, 213, 0.32), transparent 67%);
  filter: blur(10px);
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 24% 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(26, 26, 24, 0.11), transparent);
}
.hero__grid {
  width: 100%;
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
}
.hero__content { max-width: 720px; }
.hero h1 {
  max-width: 12ch;
  color: #111111;
  font-size: clamp(3.3rem, 7.2vw, 6.7rem);
  letter-spacing: -0.045em;
  line-height: 0.97;
  text-wrap: balance;
}
.hero .eyebrow { color: #4f5550; letter-spacing: 0.14em; }
.hero .lead {
  max-width: 30em;
  margin-top: 1.75rem;
  color: #343633;
  font-size: clamp(1.08rem, 1.7vw, 1.28rem);
  line-height: 1.55;
}
.hero__actions { margin-top: 2.25rem; }
.hero .btn--primary { background: #111111; color: #ffffff; }
.hero .btn--primary:hover { background: #2d2d2a; color: #ffffff; }
.hero .btn--ghost {
  color: #111111;
  border-color: rgba(17, 17, 17, 0.28);
}
.hero .btn--ghost:hover {
  color: #111111;
  border-color: rgba(17, 17, 17, 0.65);
  background: rgba(17, 17, 17, 0.04);
}
.hero__trust { color: #555954; }
.hero__trust li::before { background: #111111; }
.hero__card {
  align-self: center;
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(17, 17, 17, 0.14);
  box-shadow: 0 24px 60px rgba(17, 17, 17, 0.1);
}

/* Keep the gate's reading surface solid white, never translucent. */
.gate__panel { background: #ffffff; }

@media (max-width: 900px) {
  .hero { min-height: auto; }
  .hero h1 { max-width: 14ch; }
}

/* iOS Safari unlock/layout hardening. Keep viewport effects inside the page. */
html,
body {
  overflow-x: hidden;
}

body {
  min-width: 0;
}

.header {
  padding-top: env(safe-area-inset-top);
}

.footer {
  padding-bottom: calc(2.25rem + env(safe-area-inset-bottom));
}

.gate {
  padding-top: calc(1.5rem + env(safe-area-inset-top));
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
}

@supports (height: 100vh) {
  .hero {
    min-height: calc(100vh - var(--header-h) - env(safe-area-inset-top));
  }
}

@supports (height: 100svh) {
  .hero {
    min-height: calc(100svh - var(--header-h) - env(safe-area-inset-top));
  }
}

@supports (height: 100dvh) {
  .hero {
    min-height: calc(100dvh - var(--header-h) - env(safe-area-inset-top));
  }
}

.hero {
  contain: paint;
}

.hero::before,
.hero::after {
  contain: paint;
  max-width: 100%;
  pointer-events: none;
}

.ai-handoff__actions {
  display: flex;
  flex-wrap: wrap;
}

.ai-handoff__actions .btn {
  flex: 1 1 calc(50% - 0.65rem);
  min-width: 10rem;
}

@media (max-width: 900px) {
  .nav {
    top: calc(var(--header-h) + env(safe-area-inset-top));
  }

  .hero {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: auto;
    padding-top: 3rem;
    padding-bottom: 3.5rem;
  }

  .hero h1 {
    max-width: 11ch;
    font-size: clamp(2.6rem, 12vw, 4.25rem);
    line-height: 0.98;
  }

  .hero .lead {
    font-size: 1.08rem;
  }

  .ai-handoff__actions .btn {
    flex-basis: 100%;
    min-width: 0;
  }
}


/* After save: keep AI actions above the fold on mobile */
@media (max-width: 640px) {
  #inquiry.is-saved .inquiry-fields,
  #inquiry.is-saved .inquiry__form-fields,
  .inquiry__panel.is-saved .field-grid,
  .inquiry__panel.is-saved .form-fields {
    display: none;
  }
  .ai-handoff__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }
  .ai-handoff__actions .btn {
    width: 100%;
    min-height: 44px;
  }
  body.has-gate .hero { min-height: 100svh; }
}


/* Saved state: AI buttons above the fold on mobile */
#inquiry.is-saved .inquiry__intro { display: none; }
#inquiry.is-saved .inquiry__panel { max-width: 720px; margin-inline: auto; }
#inquiry.is-saved .ai-handoff__intro,
#inquiry.is-saved .ai-handoff__instructions { display: none; }
#inquiry.is-saved .ai-handoff__prompt-help { display: none; }
#inquiry.is-saved .success {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
}
#inquiry.is-saved .success h3 { font-size: 1.15rem; margin: 0 0 0.25rem; }
#inquiry.is-saved .success p { margin: 0; font-size: 0.95rem; }
#inquiry.is-saved .ai-handoff__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin: 0 0 0.85rem;
}
#inquiry.is-saved .ai-handoff__actions .btn {
  width: 100%;
  min-height: 48px;
  justify-content: center;
}
@media (max-width: 640px) {
  #inquiry.is-saved .section,
  #inquiry.is-saved { padding-top: 1.25rem; }
  #inquiry.is-saved .ai-prompt { max-height: 5.5rem; overflow: auto; font-size: 0.85rem; }
}
