/* =========================================================
   CertSmart — Main Stylesheet
   ========================================================= */

:root {
  --navy: #0A1D38;
  --navy-soft: #12294A;
  --gold: #F5B72E;
  --gold-soft: #FBE7BE;
  --red: #ED292D;
  --red-soft: #FBD6D6;
  --cream: #FCFAF5;
  --cream-alt: #FBF3E0;
  --text-dark: #16213A;
  --text-body: #3B4152;
  --text-muted: #6B7280;
  --border-soft: #EEE6D3;
  --white: #FFFFFF;

  --font-head: "Montserrat", "Trebuchet MS", sans-serif;
  --font-body: "Montserrat", "Segoe UI", sans-serif;

  --container: 1200px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-card: 0 4px 18px rgba(10, 29, 56, 0.06);
  --shadow-btn: 0 10px 20px rgba(237, 41, 45, 0.28);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--cream);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
main.justify-top { justify-content: flex-start; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--text-dark);
  margin: 0 0 0.4em;
  line-height: 1.15;
}
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn-primary {
  background: linear-gradient(180deg, #F2403F 0%, var(--red) 100%);
  color: var(--white);
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(237, 41, 45, 0.35);
}
.btn-primary:active { transform: translateY(0); }

/* ---------- Patent Pending bar ---------- */
.patent-bar {
  flex: 0 0 auto;
  background: linear-gradient(90deg, #F5B72E 0%, #ED292D 100%);
  color: var(--white);
  text-align: center;
  padding: 6px 16px;
  font-weight: 800;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.patent-bar svg { flex-shrink: 0; }

/* ---------- Header ---------- */
.site-header {
  flex: 0 0 auto;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 32px;
  max-width: var(--container);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  width: 108px;
  height: 46px;
  background: var(--white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.18);
  flex-shrink: 0;
}
.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px 8px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.main-nav a {
  color: #C9AE7C;
  font-weight: 600;
  font-size: 0.94rem;
  letter-spacing: 0.04em;
  padding: 6px 2px;
  position: relative;
  transition: color 0.2s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 3px;
  border-radius: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.main-nav a:hover { color: var(--gold); }
.main-nav a.active {
  color: var(--gold);
}
.main-nav a.active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}

/* ---------- Footer (slim, single row) ---------- */
.site-footer {
  flex: 0 0 auto;
  background: var(--navy);
  color: #A9B3C4;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.82rem;
}
.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.footer-left .brand-logo { width: 76px; height: 32px; border-radius: 8px; }
.footer-left span { color: var(--white); font-weight: 700; font-size: 0.88rem; }
.footer-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-nav a { color: #A9B3C4; transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--gold); }
.footer-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.footer-right a { color: #A9B3C4; transition: color 0.2s ease; }
.footer-right a:hover { color: var(--gold); }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.footer-social a:hover { background: var(--gold); }
.footer-copy { color: #8A93A6; white-space: nowrap; }

/* Hard guarantee: on the homepage, clamp to the viewport height and
   disable scrolling entirely on desktop/laptop widths. Mobile is
   exempt (below 721px) so it can scroll naturally if needed. */
@media (min-width: 721px) {
  html.single-screen,
  html.single-screen body {
    height: 100vh;
    overflow: hidden;
  }
  html.single-screen main {
    min-height: 0;
    overflow: hidden;
  }
}

/* ---------- Eyebrow / section heading helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--red);
  border-radius: 3px;
  display: inline-block;
}
.section-rule {
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: var(--gold);
  margin: 12px 0 16px;
}
.text-red { color: var(--red); }
.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }

/* ---------- Hero (Home) ---------- */
.hero {
  padding: 22px 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 30px;
  align-items: center;
}
.hero-copy-col { }
.hero-heading {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.hero-heading .line-gold { color: var(--gold); display: block; }
.hero-heading .line-red { color: var(--red); display: block; }

/* Entrance animations: headline lines swipe in from the left in
   sequence, then the rest of the hero content fades up after. Purely
   transform/opacity based, so it never affects layout height or
   triggers scrolling on the single-screen homepage. */
@keyframes swipeInWord {
  from { opacity: 0; transform: translateX(-46px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeUpIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes arrowFlow {
  0%, 100% { transform: translateX(0); opacity: 0.55; }
  50% { transform: translateX(5px); opacity: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-heading > span {
    opacity: 0;
    animation: swipeInWord 0.65s cubic-bezier(.22,.7,.25,1) both;
  }
  .hero-heading > span:nth-child(1) { animation-delay: 0.05s; }
  .hero-heading > span:nth-child(2) { animation-delay: 0.22s; }
  .hero-heading > span:nth-child(3) { animation-delay: 0.39s; }

  .hero .section-rule { opacity: 0; animation: fadeUpIn 0.5s ease both; animation-delay: 0.56s; }
  .hero-copy { opacity: 0; animation: fadeUpIn 0.55s ease both; animation-delay: 0.66s; }
  .feature-row .feature-item { opacity: 0; animation: fadeUpIn 0.55s ease both; }
  .feature-row .feature-item:nth-child(1) { animation-delay: 0.8s; }
  .feature-row .feature-item:nth-child(2) { animation-delay: 0.9s; }
  .feature-row .feature-item:nth-child(3) { animation-delay: 1.0s; }
  .hero-cta { opacity: 0; animation: fadeUpIn 0.55s ease both; animation-delay: 1.12s; }
  .hero-image img { opacity: 0; animation: fadeUpIn 0.8s ease both; animation-delay: 0.25s; }

  /* --- About page --- */
  .split-copy .eyebrow { opacity: 0; animation: fadeUpIn 0.45s ease both; animation-delay: 0.05s; }
  .split-copy h2 { opacity: 0; animation: swipeInWord 0.6s cubic-bezier(.22,.7,.25,1) both; animation-delay: 0.18s; }
  .split-copy .section-rule { opacity: 0; animation: fadeUpIn 0.45s ease both; animation-delay: 0.4s; }
  .split-copy .body-copy { opacity: 0; animation: fadeUpIn 0.5s ease both; animation-delay: 0.48s; }
  .split-copy .hero-cta { opacity: 0; animation: fadeUpIn 0.5s ease both; animation-delay: 0.6s; }
  .split-media img.device-shot { opacity: 0; animation: fadeUpIn 0.7s ease both; animation-delay: 0.3s; }
  .about-cards .about-card { opacity: 0; animation: fadeUpIn 0.5s ease both; }
  .about-cards .about-card:nth-child(1) { animation-delay: 0.72s; }
  .about-cards .about-card:nth-child(2) { animation-delay: 0.8s; }
  .about-cards .about-card:nth-child(3) { animation-delay: 0.88s; }
  .about-cards .about-card:nth-child(4) { animation-delay: 0.96s; }

  /* --- Vision page --- */
  .vision-copy-col .eyebrow { opacity: 0; animation: fadeUpIn 0.45s ease both; animation-delay: 0.05s; }
  .vision-copy-col h1 { opacity: 0; animation: swipeInWord 0.6s cubic-bezier(.22,.7,.25,1) both; animation-delay: 0.18s; }
  .vision-copy-col p { opacity: 0; animation: fadeUpIn 0.5s ease both; }
  .vision-copy-col p:nth-of-type(1) { animation-delay: 0.42s; }
  .vision-copy-col p:nth-of-type(2) { animation-delay: 0.5s; }
  .future-title { opacity: 0; animation: fadeUpIn 0.45s ease both; animation-delay: 0.62s; }
  .future-grid .future-item { opacity: 0; animation: fadeUpIn 0.5s ease both; }
  .future-grid .future-item:nth-child(1) { animation-delay: 0.72s; }
  .future-grid .future-item:nth-child(2) { animation-delay: 0.8s; }
  .future-grid .future-item:nth-child(3) { animation-delay: 0.88s; }
  .future-grid .future-item:nth-child(4) { animation-delay: 0.96s; }
  .future-grid .future-item:nth-child(5) { animation-delay: 1.04s; }
  .future-grid .future-item:nth-child(6) { animation-delay: 1.12s; }
  .vision-photo-frame { opacity: 0; animation: fadeUpIn 0.75s ease both; animation-delay: 0.3s; }

  /* --- How It Works page --- */
  .how-copy-col .eyebrow { opacity: 0; animation: fadeUpIn 0.45s ease both; animation-delay: 0.05s; }
  .how-copy-col h1 { opacity: 0; animation: swipeInWord 0.6s cubic-bezier(.22,.7,.25,1) both; animation-delay: 0.18s; }
  .how-copy-col .steps-label { opacity: 0; animation: fadeUpIn 0.45s ease both; animation-delay: 0.42s; }
  .steps-col .step-card { opacity: 0; animation: fadeUpIn 0.5s ease both; }
  .steps-col .step-card.step-1 { animation-delay: 0.54s; }
  .steps-col .step-card.step-2 { animation-delay: 0.64s; }
  .steps-col .step-card.step-3 { animation-delay: 0.74s; }
  .steps-col .step-arrow { opacity: 0; animation: fadeUpIn 0.4s ease both; }
  .steps-col .step-arrow:nth-of-type(1) { animation-delay: 0.6s; }
  .steps-col .step-arrow:nth-of-type(2) { animation-delay: 0.7s; }
  .steps-col .step-arrow svg {
    animation: arrowFlow 1.4s ease-in-out infinite;
  }
  .steps-col .step-arrow:nth-of-type(1) svg { animation-delay: 1.1s; }
  .steps-col .step-arrow:nth-of-type(2) svg { animation-delay: 1.5s; }
  .how-media-col .video-frame { opacity: 0; animation: fadeUpIn 0.75s ease both; animation-delay: 0.3s; }
  .how-cta-row .btn { opacity: 0; animation: fadeUpIn 0.5s ease both; animation-delay: 0.95s; }

  /* --- Contact page --- */
  .contact-copy .eyebrow { opacity: 0; animation: fadeUpIn 0.45s ease both; animation-delay: 0.05s; }
  .contact-copy h1 { opacity: 0; animation: swipeInWord 0.6s cubic-bezier(.22,.7,.25,1) both; animation-delay: 0.18s; }
  .contact-copy .section-rule { opacity: 0; animation: fadeUpIn 0.4s ease both; animation-delay: 0.38s; }
  .contact-copy .lead { opacity: 0; animation: fadeUpIn 0.5s ease both; animation-delay: 0.46s; }
  .contact-info-item { opacity: 0; animation: fadeUpIn 0.45s ease both; }
  .contact-info-item:nth-child(1) { animation-delay: 0.58s; }
  .contact-info-item:nth-child(2) { animation-delay: 0.66s; }
  .contact-form-card { opacity: 0; animation: fadeUpIn 0.7s ease both; animation-delay: 0.32s; }
}
.hero-copy {
  font-size: 1rem;
  color: var(--text-body);
  max-width: 46ch;
  margin-top: 14px;
}
.hero-image {
  display: flex;
  justify-content: center;
}
.hero-image img { max-width: 460px; width: 100%; }

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 22px;
}
.feature-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-icon svg { width: 20px; height: 20px; }
.feature-item h3 {
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.feature-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}
.hero-cta {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

/* ---------- Generic two-column section ---------- */
.split-section {
  padding: 20px 0;
}
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.split-grid.reverse .split-media { order: 2; }
.split-grid.reverse .split-copy { order: 1; }

.split-copy h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 800;
  text-transform: none;
}
.split-copy h2 .accent { color: var(--red); display: block; }
.split-copy .lead-text {
  color: var(--navy);
  font-size: 1.3rem;
}
.split-copy p.body-copy {
  font-size: 0.94rem;
  color: var(--text-body);
  max-width: 52ch;
}

.split-media { position: relative; padding-top: 6px; }
.split-media .dots-bg {
  position: absolute;
  inset: -14px -30px auto auto;
  width: 190px;
  opacity: 0.9;
  z-index: 0;
  pointer-events: none;
}
.split-media img.device-shot {
  position: relative;
  z-index: 1;
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
}

/* ---------- About cards ---------- */
.about-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.about-card {
  background: var(--white);
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  box-shadow: var(--shadow-card);
}
.about-card .card-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.about-card .card-icon svg { width: 20px; height: 20px; }
.about-card .card-icon.bg-red { background: var(--red); }
.about-card .card-icon.bg-gold { background: var(--gold); }
.about-card .card-icon.bg-navy { background: var(--navy); }
.about-card .card-icon.bg-outline {
  background: var(--white);
  border: 2px solid var(--navy);
}
.about-card h3 {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.about-card h3.text-red { color: var(--red); }
.about-card h3.text-gold { color: #C98A00; }
.about-card h3.text-navy { color: var(--navy); }
.about-card p {
  font-size: 0.78rem;
  color: var(--text-body);
  margin: 0;
  line-height: 1.35;
}

/* ---------- Vision page ---------- */
.vision-hero {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 65% 35%;
  align-items: stretch;
}
.vision-copy-col {
  padding: 16px 4vw 16px 0;
  margin-left: calc((100vw - var(--container)) / 2 + 32px);
  max-width: 700px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.vision-photo-col {
  display: flex;
  padding: 0;
}
.vision-photo-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}
.vision-photo-frame::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 46%;
  background: linear-gradient(0deg, rgba(6,14,28,0.8) 0%, rgba(6,14,28,0.0) 100%);
  z-index: 1;
  pointer-events: none;
}
.vision-photo-frame img.office {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vision-photo-frame img.karen {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 108%;
  max-width: 480px;
  object-fit: contain;
  z-index: 1;
}
.vision-quote {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 5%;
  width: 88%;
  max-width: 340px;
  color: var(--white);
  z-index: 2;
  text-align: center;
}
.vision-quote .quote-mark {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  margin-right: 3px;
  vertical-align: -0.08em;
}
.vision-quote p {
  font-style: italic;
  font-size: 0.85rem;
  margin-bottom: 5px;
  display: inline;
}
.vision-quote cite {
  display: block;
  color: var(--gold);
  font-style: normal;
  font-weight: 800;
  font-size: 0.82rem;
  margin-top: 6px;
}

.vision-copy-col h1 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 800;
}
.vision-copy-col h1 .accent { color: var(--red); display: block; }
.vision-copy-col p { font-size: 0.85rem; margin-bottom: 0.55em; }

.future-title {
  text-align: center;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--red);
  margin: 34px 0 16px;
}
.future-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 24px;
}
.future-item { display: flex; gap: 10px; align-items: flex-start; }
.future-item .future-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.future-item .future-icon svg { width: 16px; height: 16px; }
.future-item h3 {
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}
.future-item p { font-size: 0.72rem; color: var(--text-muted); margin: 0; line-height: 1.28; }

/* ---------- How it Works ---------- */
.how-hero {
  display: grid;
  grid-template-columns: 48% 1fr;
  align-items: start;
  background: var(--cream-alt);
}
.how-copy-col {
  padding: 12px 32px 12px 0;
  margin-left: calc((100vw - var(--container)) / 2 + 32px);
}
.how-copy-col h1 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 800;
}
.how-copy-col h1 .accent { color: var(--red); display: block; }
.how-copy-col .steps-label {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  margin: 18px 0 16px;
}

.how-media-col {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
}
.how-media-col .video-frame {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  max-width: 720px;
  width: 100%;
  overflow: hidden;
  background: #000;
}
.how-media-col .video-frame video {
  width: 100%;
  height: auto;
  display: block;
}

.steps-col {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 12px;
}
.step-card {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 20px 14px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  flex: 1 1 0;
  min-width: 0;
}
.step-card .step-glyph {
  width: 32px;
  height: 32px;
}
.step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  flex-shrink: 0;
}
.step-card .step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-family: var(--font-head);
  font-size: 1.05rem;
  flex-shrink: 0;
}
.step-card.step-1 .step-number { background: var(--red); }
.step-card.step-2 .step-number { background: var(--navy); }
.step-card.step-3 .step-number { background: var(--gold); }
.step-card .step-text { min-width: 0; }
.step-card h3 {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.2;
}
.step-card .step-rule {
  width: 26px;
  height: 3px;
  background: var(--navy);
  margin: 0 auto 8px;
  border-radius: 3px;
}
.step-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.3;
}
.how-cta-row {
  display: flex;
  justify-content: center;
  padding: 14px 0 18px;
  background: var(--cream-alt);
}

/* ---------- Contact page ---------- */
.contact-section { padding: 16px 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: start;
}
.contact-copy h1 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 800;
  margin-top: 8px;
}
.contact-copy h1 .accent { color: var(--red); }
.contact-copy p.lead {
  font-size: 0.9rem;
  max-width: 44ch;
  margin-top: 10px;
}
.contact-info-list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.contact-info-item .info-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-item .info-icon svg { width: 16px; height: 16px; }
.contact-info-item span { font-weight: 700; color: var(--navy); font-size: 0.92rem; }
.contact-info-item small {
  display: block;
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.contact-form-card {
  background: var(--cream-alt);
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  box-shadow: var(--shadow-card);
}
.contact-form-card h2 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-group { margin-bottom: 12px; }
.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 5px;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 0.88rem;
  color: var(--text-dark);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23163156' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 34px;
  cursor: pointer;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 183, 46, 0.25);
  outline: none;
}
.form-group textarea { min-height: 110px; resize: vertical; }

.form-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px;
}

.form-status {
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  display: none;
}
.form-status.show { display: block; }
.form-status.success { color: #1E8E3E; }
.form-status.error { color: var(--red); }

.btn-submit-row { margin-top: 4px; }


/* ---------- Page hero banner (shared, lightweight) ---------- */
.page-top-space { padding-top: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  main { justify-content: flex-start; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-heading { font-size: 2.1rem; }
  .hero-image { order: -1; }
  .hero-image img { max-width: 220px; }
  .feature-row { grid-template-columns: 1fr; gap: 14px; }

  .split-grid { grid-template-columns: 1fr; gap: 24px; }
  .split-grid.reverse .split-media { order: 1; }
  .split-grid.reverse .split-copy { order: 2; }
  .about-cards { grid-template-columns: 1fr 1fr; }

  .vision-hero { grid-template-columns: 1fr; }
  .vision-copy-col {
    margin-left: 0;
    max-width: 100%;
    padding: 30px 24px 20px;
  }
  .vision-photo-col { padding: 20px 24px; }
  .vision-photo-frame { width: 100%; height: auto; max-height: none; min-height: 0; aspect-ratio: 5 / 4; max-width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
  .vision-photo-frame img.karen { width: 76%; max-width: 300px; }
  .future-grid { grid-template-columns: 1fr 1fr; }

  .how-hero { grid-template-columns: 1fr; }
  .how-copy-col { margin-left: 0; max-width: 100%; padding: 30px 24px 10px; }
  .how-media-col { padding: 10px 24px 30px; }
  .how-cta-row { padding: 0 0 30px; }
  .steps-col { flex-direction: column; }
  .step-card { flex-direction: row; text-align: left; padding: 10px 14px; }
  .step-arrow { width: auto; height: 14px; transform: rotate(90deg); margin: 2px 0 2px 13px; }

  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { justify-content: center; text-align: center; }
}

@media (max-width: 720px) {
  .patent-bar { font-size: 0.64rem; padding: 6px 12px; line-height: 1.4; }
  .header-inner { padding: 10px 20px; }
  .brand-logo { width: 96px; height: 42px; border-radius: 9px; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 24px 26px;
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    z-index: 400;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .main-nav a { padding: 10px 0; width: 100%; }
  .nav-toggle { display: flex; }

  .container { padding: 0 20px; }
  .hero { padding: 20px 0; }
  .hero-heading { font-size: 1.7rem; }
  .split-section { padding: 20px 0; }
  .split-copy h2 { font-size: 1.4rem; }
  .about-cards { grid-template-columns: 1fr 1fr; }
  .future-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-card { padding: 20px; }
  .footer-inner { flex-direction: column; gap: 10px; padding: 12px 20px; }
  .footer-nav { justify-content: center; }
  .footer-right { flex-direction: column; gap: 6px; }
  .vision-copy-col { padding: 24px 20px 16px; }
  .how-copy-col { padding: 24px 20px 8px; }
}

/* Extra compactness on short viewports so header+content+footer fit
   without scrolling on smaller/scaled desktop displays. Placed at the
   end of the file so it wins the cascade over base component rules. */
@media (max-height: 760px) and (min-width: 721px) {
  .hero-heading { font-size: clamp(1.5rem, 3vw, 2.1rem); }
  .hero-copy { font-size: 0.9rem; }
  .feature-item p { font-size: 0.76rem; }
  .split-section { padding: 12px 0; }
  .split-copy h2 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
  .split-copy p.body-copy { font-size: 0.84rem; margin-bottom: 0.6em; }
  .about-cards { margin-top: 12px; gap: 10px; }
  .about-card { padding: 10px 12px; }
  .about-card .card-icon { width: 32px; height: 32px; }
  .about-card .card-icon svg { width: 16px; height: 16px; }
  .about-card p { font-size: 0.7rem; }
  .split-media img.device-shot { max-width: 380px; }
  .split-media { padding-top: 0; }
  .eyebrow { margin-bottom: 4px; }
  .section-rule { margin: 8px 0 10px; }
  .future-grid { gap: 8px 20px; }
  .contact-form-card { padding: 16px 22px; }
  .form-group { margin-bottom: 8px; }
  .how-media-col .video-frame { max-width: 320px; }
  .how-copy-col .steps-label { margin: 10px 0 8px; font-size: 0.92rem; }
  .step-card { padding: 6px 10px; }
  .step-card .step-number { width: 22px; height: 22px; font-size: 0.75rem; }
  .step-card p { font-size: 0.68rem; }
  .how-cta-row { padding: 8px 0 14px; }
}
