/*
-=*=--=*=--=*=--=*=--=*=--=*=--=*=--=*=-
File: static/css/site.css
Summary: Primary site stylesheet for global layout, components, and marketing page visuals.
Author: Frank Robles
-=*=--=*=--=*=--=*=--=*=--=*=--=*=--=*=-
*/

html,
:root {
  color-scheme: only light;
  forced-color-adjust: none;
  --brand: #e87300;
  --brand-strong: #cc6500;
  --brand-soft: #fff1df;
  --ink: #0d0d0d;
  --muted: #6f655f;
  --surface: #ffffff;
  --surface-alt: #f8f6f4;
  --surface-chip: #f6f0eb;
  --line: #e9e3e0;
  --line-strong: #ded6d1;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Raleway", "Roboto", "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(900px 380px at 90% -20%, #fef1df 0%, transparent 58%),
    radial-gradient(900px 380px at -10% 0%, #f7f3ef 0%, transparent 55%),
    var(--surface-alt);
  color: var(--ink);
  color-scheme: only light;
  forced-color-adjust: none;
}

p,
ul,
ol,
li,
h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

a {
  color: var(--brand-strong);
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.1rem;
}

.section-block {
  margin: 1.6rem 0;
}

.site-header {
  background: var(--brand);
  border-bottom: 1px solid #d8670d;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 8px 28px rgba(216, 103, 13, 0.18);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 1rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  margin-left: 0.75rem;
  text-decoration: none;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.2);
}

.site-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.22);
}

.brand {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

main.container {
  padding-top: 1.2rem;
}

.hero,
.welcome-hero,
.popular-tests,
.referral-banner,
.home-process,
.home-proof,
.home-cta-row,
.front-door,
.how-it-works,
.cns-trust,
.audience,
.card,
.form-card,
.form-note,
.faq-item,
.test-card,
.proof-card,
.assessment-card,
.hero--home {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(13, 13, 13, 0.06);
}

.eyebrow {
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--brand-strong);
}

.welcome-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.95fr;
  gap: 1rem;
  padding: 1.5rem;
}

.welcome-hero__subhead {
  margin: 0.4rem 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
}

.welcome-hero h1 {
  margin: 0.25rem 0 0.55rem;
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.05;
}

.welcome-hero__lede {
  margin-bottom: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
  max-width: 64ch;
}

.welcome-hero__media {
  display: grid;
  gap: 0.65rem;
  align-content: center;
}

.media-card {
  border-radius: 12px;
  padding: 1rem;
  color: #2a2a2a;
  min-height: 84px;
  border: 1px solid rgba(111, 101, 95, 0.2);
  background:
    linear-gradient(125deg, #ffe4c8 0%, #f8f6f4 60%, #ffffff 100%);
  font-weight: 600;
}

.media-card--top,
.media-card--mid,
.media-card--bot {
  border-left: 5px solid var(--brand);
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.9rem;
}

.btn {
  display: inline-block;
  text-decoration: none;
  padding: 0.73rem 1rem;
  border-radius: 11px;
  border: 1px solid transparent;
  color: #fff;
  background: var(--brand);
  font-weight: 700;
  font-size: 0.95rem;
}

.btn:hover {
  background: #d96d00;
}

.btn-secondary {
  color: var(--brand);
  background: #fff;
  border-color: #e9a45c;
}

.btn-secondary:hover {
  background: #fff4e8;
}

.section-heading {
  margin-bottom: 0.85rem;
}

.popular-tests {
  margin-top: 1.2rem;
  padding: 1.2rem;
}

.popular-tests h2 {
  margin-bottom: 0.2rem;
}

.popular-tests__grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.test-card {
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 1rem;
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

.test-card--coming-soon {
  opacity: 0.9;
}

.test-card p {
  color: var(--muted);
  line-height: 1.45;
}

.test-card .btn {
  align-self: flex-start;
}

.test-card__footer {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.55rem;
}

.test-card__meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.test-status {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.24rem 0.68rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.test-status--coming-soon {
  color: #8d7b6e;
  background: #f2ebe5;
}

.referral-banner {
  margin-top: 1rem;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  background: #fff8ef;
}

.referral-banner .btn,
.home-cta-row .btn {
  margin: 0;
}

.referral-banner p {
  color: var(--muted);
}

.referral-banner [aria-disabled="true"] {
  cursor: not-allowed;
}

.home-process {
  margin-top: 1rem;
  padding: 1.2rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: 0.95fr 1.2fr;
  align-items: stretch;
}

.home-process__media {
  border-radius: 14px;
  min-height: 280px;
  background:
    linear-gradient(145deg, #f6f0eb 0%, #edd8c4 50%, #fff4e8 100%);
  border: 1px solid var(--line-strong);
}

.home-process__content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.process-list {
  margin: 0.65rem 0 0;
  padding-left: 1.05rem;
  display: grid;
  gap: 0.85rem;
}

.process-list li p {
  margin-bottom: 0;
  color: var(--muted);
}

.process-list li h3 {
  margin-bottom: 0.2rem;
}

.home-proof {
  margin-top: 1rem;
  padding: 1.1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.proof-card {
  padding: 1rem;
  border-radius: 13px;
  background: #fff;
}

.home-cta-row {
  margin-top: 1rem;
  padding: 1.1rem;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-cta-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  background: #fff;
}

.cta-dropdown {
  display: block;
  margin-top: 0.65rem;
}

.cta-dropdown summary {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.62rem 0.75rem;
  border: 1px solid #dfd4ca;
  border-radius: 10px;
  background: #fffcf9;
  font-weight: 700;
}

.cta-dropdown summary::marker {
  display: none;
}

.cta-dropdown__menu {
  margin: 0.55rem 0 0;
  padding: 0.45rem;
  border-radius: 10px;
  border: 1px dashed var(--line);
  background: #fff;
}

.cta-dropdown__menu li {
  list-style: none;
  margin: 0.35rem 0;
}

.cta-dropdown__menu a {
  text-decoration: none;
  font-weight: 600;
}

.proof-card ul,
.home-proof ul,
.steps-grid,
.card-grid,
.audience-grid,
.faq-grid,
.cart-grid {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
}

.faq-item {
  margin-top: 0.5rem;
  padding: 0.6rem 0.85rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
}

.card-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card,
.assessment-card,
.audience-card,
.step-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
}

.card h3,
.card h2,
.assessment-card h3,
.audience-card h3,
.step-card h3 {
  margin-bottom: 0.45rem;
}

.step-card p,
.card p,
.assessment-card p,
.audience-card p {
  color: var(--muted);
}

.hero {
  padding: 1.35rem;
}

.hero--home {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.1fr 0.95fr;
}

.lede {
  max-width: 64ch;
  color: var(--muted);
  line-height: 1.55;
}

.lede--headline {
  font-weight: 700;
}

.section-block {
  margin: 1.4rem 0;
}

.form-card {
  margin: 1rem 0 2rem;
  padding: 1.1rem;
}

.form-card label {
  display: block;
  margin-top: 0.95rem;
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.form-card input[type="text"],
.form-card input[type="email"] {
  width: 100%;
  border: 1px solid #ddd0c4;
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  font-size: 1rem;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin-top: 1rem;
}

.small-text {
  color: var(--muted);
  font-size: 0.92rem;
}

.pill {
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  background: #f6eee6;
  color: #8a633e;
  margin-right: 0.45rem;
  display: inline-block;
}

.screeners-lead,
.section-block > header,
.cart .section-block {
  padding: 0.45rem 0.1rem;
}

.site-footer {
  margin: 2rem 0 1.5rem;
  padding: 1.2rem 0 1.5rem;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer p {
  margin: 0;
}

.dot-sep {
  margin: 0 0.4rem;
}

.site-footer a {
  color: var(--muted);
}

@media (max-width: 960px) {
  .site-nav {
    justify-content: flex-start;
  }

  .welcome-hero,
  .hero--home {
    grid-template-columns: 1fr;
  }

  .home-process,
  .home-proof,
  .home-cta-row {
    grid-template-columns: 1fr;
  }

  .front-door-steps,
  .steps-grid,
  .audience-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header .container {
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
  }

  .site-nav a {
    margin-left: 0.45rem;
    margin-top: 0.35rem;
  }

  .welcome-hero,
  .front-door,
  .referral-banner,
  .home-process,
  .home-proof,
  .home-cta-row,
  .how-it-works,
  .cns-trust,
  .audience,
  .section-block,
  .form-card,
  .card,
  .proof-card,
  .test-card {
    padding: 1rem;
  }

  .hero {
    padding: 1rem;
  }

  .site-footer .container {
    flex-direction: column;
  }
}


.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-call {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

.welcome-hero__content p {
  margin-bottom: 0.55rem;
}

.screener-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.35rem;
  padding: 0;
  margin: 0.6rem 0 0;
  list-style: none;
}

.screener-highlights li {
  background: #fff4e8;
  border: 1px solid #efd5bf;
  color: #6f655f;
  border-radius: 999px;
  display: inline-flex;
  width: fit-content;
  padding: 0.24rem 0.62rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.home-proof,
.home-cta-row,
.popular-tests,
.referral-banner {
  width: 100%;
}

.proof-card .test-status,
.test-card .test-status {
  margin-top: 0.2rem;
}

.welcome-hero__media {
  min-height: 250px;
}

.hero--home {
  align-items: center;
}

.audience-grid {
  margin-top: 0.8rem;
}

.site-footer a {
  text-underline-offset: 0.12em;
}

.home-cta-card .cta-dropdown,
.home-process__content .cta-dropdown {
  width: 100%;
}

.welcome-hero__media:empty::before {
  content: "";
  display: block;
  min-height: 100%;
}

.welcome-hero__media {
  background:
    linear-gradient(150deg, #fff4e8 0%, #f2e5de 50%, #f7f3f1 100%);
}

.intake-flow-steps {
  margin: 0;
  padding-left: 1.1rem;
}

.form-card .btn {
  border: none;
}
