/* =========================================================
   4 Phases of Recovery — shared site styles
   Adapted from the Futurisynch design system specification
   ========================================================= */

:root {
  /* Brand reds */
  --red:        #C8202E;
  --red-bright: #E63946;
  --red-deep:   #8E1620;

  /* Hope/healing blues */
  --blue-light: #5BB8E5;
  --blue-deep:  #1F6FA8;

  /* Neutrals */
  --ink:    #0a0a0a;
  --ink-2:  #141416;
  --ink-3:  #1d1d20;
  --steel:  #2a2a2e;

  /* Lines */
  --line:      rgba(200, 32, 46, 0.22);
  --line-soft: rgba(255,255,255,0.06);
  --line-blue: rgba(91,184,229,0.22);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: rgba(255,255,255,0.92);
  background-color: var(--ink);
  background-image:
    linear-gradient(180deg,
      rgba(255,255,255,0.04) 0%,
      rgba(255,255,255,0.00) 18%,
      rgba(255,255,255,0.00) 60%,
      rgba(255,255,255,0.03) 78%,
      rgba(255,255,255,0.00) 100%),
    repeating-linear-gradient(90deg,
      rgba(255,255,255,0.012) 0px,
      rgba(255,255,255,0.012) 1px,
      rgba(0,0,0,0.00) 1px,
      rgba(0,0,0,0.00) 3px),
    radial-gradient(ellipse at 50% 0%,
      #2a2a2e 0%, #18181a 28%, #0a0a0a 65%, #050506 100%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 12% 8%,  rgba(200,32,46,0.18), transparent 38%),
    radial-gradient(circle at 88% 92%, rgba(31,111,168,0.14), transparent 42%);
}

body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

main, header, section, footer { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  z-index: 50;
  background: rgba(10,10,10,0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.brand-glyph {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 30%, rgba(200,32,46,0.25), transparent 60%),
    linear-gradient(180deg, rgba(40,40,44,0.9), rgba(14,14,16,0.9));
  font-weight: 800;
  font-size: 1rem;
  color: var(--red);
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand-text {
  display: flex; flex-direction: column; gap: 2px;
}
.brand-name {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--red);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.brand-sub {
  font-weight: 500;
  font-size: 0.62rem;
  color: var(--blue-light);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.85;
}

.nav-links {
  display: flex; align-items: center; gap: 6px;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}
.nav-links a:hover {
  border-color: var(--line);
  color: var(--red-bright);
}
.nav-links a.active {
  border-color: var(--red);
  background: rgba(200,32,46,0.08);
}

.nav-toggle {
  display: none;
  background: transparent;
  color: var(--red);
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 40px; height: 36px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle:hover { background: rgba(200,32,46,0.08); }
.nav-toggle svg { width: 18px; height: 18px; }

@media (max-width: 820px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav-links {
    position: absolute;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(10,10,10,0.96);
    border-bottom: 1px solid var(--line-soft);
    padding: 12px 24px 18px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    border-radius: 6px;
    padding: 12px 14px;
    border: 1px solid transparent;
  }
}

/* ---------- LAYOUT ---------- */
.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 140px 48px 80px;
}
.page-header { padding-bottom: 24px; }

.page-eyebrow {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--line-blue);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--blue-light);
  background: rgba(91,184,229,0.05);
}
.page-title {
  font-size: clamp(2.25rem, 6vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--red);
  margin: 18px 0 18px;
  max-width: 22ch;
}
.page-title .accent-blue { color: var(--blue-light); }

.page-lede {
  max-width: 640px;
  font-size: 1.02rem;
  line-height: 1.7;
  color: #ffffff;
  opacity: 0.92;
  margin: 0;
}

.section { margin: 80px 0; }
.section-eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--red);
  margin: 0 0 12px;
  max-width: 26ch;
}
.section-lede {
  max-width: 640px;
  font-size: 1rem;
  line-height: 1.75;
  color: #ffffff;
  opacity: 0.92;
  margin: 0 0 36px;
}

.hero {
  padding-top: 140px;
}

/* ---------- GRIDS ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px,100%), 1fr));
  gap: 22px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(360px,100%), 1fr));
  gap: 24px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px,100%), 1fr));
  gap: 18px;
}

/* ---------- CARDS ---------- */
.card {
  position: relative;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(28,28,32,0.85), rgba(14,14,16,0.88));
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute; top: 0; left: 14px; right: 14px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent, rgba(200,32,46,0.55), transparent);
}
.card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -22px rgba(200,32,46,0.55);
}
.card.accent-blue::before {
  background: linear-gradient(90deg,
    transparent, rgba(91,184,229,0.65), transparent);
}
.card.accent-blue { border-color: var(--line-blue); }
.card.accent-blue:hover {
  border-color: var(--blue-light);
  box-shadow: 0 18px 40px -22px rgba(91,184,229,0.55);
}
.card-eyebrow {
  display: block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 10px;
}
.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--red);
  margin: 0 0 10px;
  line-height: 1.25;
}
.card-desc {
  font-size: 0.94rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.92);
  margin: 0;
}

.card-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}
.card-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--blue-light);
  opacity: 0.95;
}
.card-list li + li { margin-top: 6px; }
.card-list li::before {
  content: "—";
  position: absolute; left: 0; top: 0;
  color: var(--blue-light);
  opacity: 0.6;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center; gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .25s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
  text-decoration: none;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--red-bright), var(--red-deep));
  box-shadow: 0 10px 28px -14px rgba(230,57,70,0.7);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -16px rgba(230,57,70,0.8);
}
.btn-ghost {
  color: var(--red);
  background: transparent;
  border-color: var(--line);
}
.btn-ghost:hover {
  background: rgba(200,32,46,0.08);
  border-color: var(--red);
  color: var(--red-bright);
}

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- PHASE ROW (numbered service-style row) ---------- */
.phase-row {
  display: grid;
  grid-template-columns: 110px 1fr 260px;
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--line-soft);
}
.phase-row:last-child { border-bottom: 1px solid var(--line-soft); }
.phase-num {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: 3rem;
  line-height: 1;
  color: var(--red);
  letter-spacing: -0.04em;
}
.phase-num small {
  display: block;
  margin-top: 10px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-light);
  line-height: 1;
}
.phase-body h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--red);
}
.phase-body p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.92);
  max-width: 56ch;
}
.phase-tags {
  margin-top: 14px;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.phase-tag {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-light);
  padding: 4px 9px;
  border: 1px solid var(--line-blue);
  border-radius: 999px;
  background: rgba(91,184,229,0.04);
}
.phase-deliverables {
  list-style: none;
  margin: 0; padding: 0;
}
.phase-deliverables li {
  position: relative;
  padding-left: 18px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--blue-light);
  opacity: 0.95;
}
.phase-deliverables li + li { margin-top: 4px; }
.phase-deliverables li::before {
  content: "—";
  position: absolute; left: 0; color: var(--blue-light); opacity: 0.6;
}

@media (max-width: 820px) {
  .phase-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .phase-num { font-size: 2.4rem; }
}

/* ---------- STAT / PILLAR strip ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px,100%), 1fr));
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(28,28,32,0.7), rgba(14,14,16,0.78));
}
.pillar {
  padding: 26px 24px;
  border-right: 1px solid var(--line-soft);
}
.pillar:last-child { border-right: none; }
.pillar-num {
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--red);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 12px;
}
.pillar-label {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--blue-light);
  opacity: 0.95;
}

@media (max-width: 820px) {
  .pillar { border-right: none; border-bottom: 1px solid var(--line-soft); }
  .pillar:last-child { border-bottom: none; }
}

/* ---------- TAGLINE strip (lists of three) ---------- */
.tagline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 22px 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(20,20,22,0.55);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--red);
  max-width: max-content;
  margin: 0 auto;
}
.tagline .dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--blue-light);
  opacity: 0.7;
}
.tagline .b { color: var(--blue-light); }

/* ---------- DOWNLOAD CARDS ---------- */
.dl-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dl-icon {
  width: 64px; height: 64px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(91,184,229,0.06);
  border: 1px solid var(--line-blue);
  color: var(--blue-light);
  margin-bottom: 6px;
}
.dl-icon svg { width: 30px; height: 30px; }
.dl-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-light);
}
.dl-meta .sep { opacity: 0.4; }
.dl-cta {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  transition: color .18s ease;
}
.card:hover .dl-cta { color: var(--red-bright); }
.dl-cta .arrow { transition: transform .18s ease; }
.card:hover .dl-cta .arrow { transform: translateX(4px); }

/* ---------- EXTRAS CARDS ---------- */
.extra-card {
  display: flex; flex-direction: column;
  gap: 12px;
}
.extra-link-row {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 12px;
}
.extra-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
  transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}
.extra-link:hover {
  border-color: var(--red);
  background: rgba(200,32,46,0.06);
  color: var(--red-bright);
}
.extra-link .arrow { color: var(--blue-light); opacity: 0.75; }
.extra-link.soon { opacity: 0.6; }
.extra-link.soon:hover {
  border-color: var(--line-soft);
  background: transparent;
  color: rgba(255,255,255,0.92);
  cursor: not-allowed;
}
.badge {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(91,184,229,0.08);
  color: var(--blue-light);
  border: 1px solid var(--line-blue);
}
.badge.warn {
  background: rgba(200,32,46,0.08);
  color: var(--red);
  border-color: var(--line);
}

/* ---------- FAQ ---------- */
.faq {
  border-top: 1px solid var(--line-soft);
}
.faq details {
  border-bottom: 1px solid var(--line-soft);
  padding: 18px 0;
  transition: border-color .25s ease;
}
.faq details[open] {
  border-bottom-color: var(--red);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: -0.005em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  color: var(--blue-light);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}
.faq details[open] .plus::before { content: "−"; }
.faq summary .plus::before { content: "+"; }
.faq .answer {
  margin-top: 12px;
  font-size: 0.96rem;
  line-height: 1.75;
  color: #fff;
  opacity: 0.92;
}

/* ---------- CONTACT FORM ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
}
@media (max-width: 920px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.form {
  display: grid;
  gap: 18px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}
.form label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 8px;
}
.form input,
.form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  background: rgba(20,20,22,0.6);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color .18s ease, background-color .18s ease;
}
.form input::placeholder,
.form textarea::placeholder {
  color: rgba(255,255,255,0.42);
}
.form input:focus,
.form textarea:focus {
  border-color: var(--red);
  background: rgba(20,20,22,0.85);
}
.form textarea { resize: vertical; min-height: 140px; }

.checkrow {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 4px;
}
.checkrow label {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  cursor: pointer;
  margin: 0;
  transition: border-color .18s ease, color .18s ease, background-color .18s ease;
}
.checkrow input { display: none; }
.checkrow label:hover { color: var(--red-bright); border-color: var(--line); }
.checkrow input:checked + span,
.checkrow label.checked {
  color: var(--red);
  border-color: var(--red);
  background: rgba(200,32,46,0.08);
}

.sidebar-block {
  padding: 22px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(28,28,32,0.7), rgba(14,14,16,0.78));
}
.sidebar-block + .sidebar-block { margin-top: 18px; }
.sidebar-block h4 {
  margin: 0 0 12px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-light);
}
.sidebar-block .v {
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: -0.005em;
}
.sidebar-block .sub {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  margin-top: 4px;
}

/* ---------- FOOTER ---------- */
.footer {
  margin-top: 60px;
  padding: 56px 0 28px;
  border-top: 1px solid var(--line-soft);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer h5 {
  margin: 0 0 14px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-light);
}
.footer p, .footer a, .footer li {
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.78);
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer ul li + li { margin-top: 4px; }
.footer a:hover { color: var(--red-bright); }
.footer .brand-blurb { max-width: 38ch; }
.footer-bottom {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}

/* ---------- HONEYPOT (hidden field, anti-bot) ---------- */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* ---------- FORM STATUS ---------- */
.form-status {
  margin-top: 4px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  background: rgba(20,20,22,0.6);
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.9);
  display: none;
}
.form-status.sending,
.form-status.ok,
.form-status.err { display: block; }
.form-status.sending {
  border-color: var(--line-blue);
  background: rgba(91,184,229,0.06);
  color: var(--blue-light);
}
.form-status.ok {
  border-color: rgba(76, 175, 110, 0.55);
  background: rgba(76, 175, 110, 0.08);
  color: #9ae6b4;
}
.form-status.err {
  border-color: var(--red);
  background: rgba(200,32,46,0.08);
  color: var(--red-bright);
}

.btn.is-loading {
  opacity: 0.7;
  cursor: progress;
  pointer-events: none;
}
.btn.is-loading .label::after {
  content: " …";
}

/* ---------- REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- UTIL ---------- */
.center { text-align: center; }
.muted { color: rgba(255,255,255,0.7); }
.text-blue { color: var(--blue-light); }
.text-red  { color: var(--red); }
.mt-20 { margin-top: 20px; } .mt-40 { margin-top: 40px; } .mt-60 { margin-top: 60px; }
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  margin: 60px 0;
}

/* =========================================================
   MOBILE OPTIMIZATIONS
   ========================================================= */

/* Tablet & narrow desktop */
@media (max-width: 820px) {
  .page { padding: 120px 28px 64px; }
  .section { margin: 56px 0; }
  .footer-inner { padding: 0 28px; }
  .nav-inner { padding: 0 20px; }
  .nav-links { padding: 12px 20px 18px; }

  .page-header { padding-bottom: 8px; }
  .page-title { margin: 14px 0 14px; }

  .grid-3, .grid-4 { gap: 14px; }
  .card { padding: 22px 20px; }

  .contact-grid { gap: 28px; }

  /* Tagline becomes a wrap-friendly chip cluster, not a forced pill */
  .tagline {
    border-radius: 14px;
    padding: 16px 18px;
    gap: 12px;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    max-width: 100%;
  }
}

/* Phones */
@media (max-width: 640px) {
  .page { padding: 100px 18px 52px; }
  .section { margin: 44px 0; }
  .footer-inner { padding: 0 18px; }
  .nav-inner { padding: 0 16px; }
  .nav { height: 60px; }
  .nav-links { top: 60px; }

  /* Hide the small brand tagline on phones to keep room for the menu button */
  .brand-sub { display: none; }
  .brand-name { font-size: 0.88rem; letter-spacing: 0.03em; }
  .brand-glyph { width: 34px; height: 34px; }

  /* Bigger tap target on the menu button (≥44px recommended) */
  .nav-toggle { width: 44px; height: 44px; }

  /* Tighter, more readable headings */
  .page-title { font-size: clamp(2rem, 9vw, 2.6rem); line-height: 1.08; }
  .section-title { font-size: clamp(1.5rem, 6.5vw, 2rem); line-height: 1.15; }
  .page-lede, .section-lede { font-size: 0.98rem; line-height: 1.65; }

  /* Buttons: tighter letter-spacing keeps labels on one line, larger tap area */
  .btn {
    padding: 14px 20px;
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    min-height: 48px;
    justify-content: center;
  }
  .btn-row { gap: 10px; }
  .btn-row .btn { flex: 1 1 auto; }

  /* Phase rows: compact stacked layout */
  .phase-row { padding: 24px 0; gap: 14px; }
  .phase-num { font-size: 2rem; display: flex; align-items: baseline; gap: 14px; }
  .phase-num small { display: inline; margin-top: 0; }
  .phase-body h3 { font-size: 1.18rem; }
  .phase-body p { font-size: 0.95rem; }

  /* Pillars: tighter padding */
  .pillar { padding: 22px 20px; }
  .pillar-num { font-size: 1.9rem; margin-bottom: 8px; }
  .pillar-label { font-size: 0.88rem; }

  /* Cards: tighter inside */
  .card { padding: 20px 18px; border-radius: 12px; }
  .card-title { font-size: 1.1rem; }
  .card-desc { font-size: 0.92rem; }
  .dl-icon { width: 56px; height: 56px; }
  .dl-icon svg { width: 26px; height: 26px; }

  /* FAQ rows: easier to tap, summary text wraps cleanly */
  .faq summary { font-size: 0.96rem; padding: 4px 0; }
  .faq details { padding: 16px 0; }
  .faq .answer { font-size: 0.93rem; }

  /* Forms: 16px font-size prevents iOS Safari auto-zoom on focus */
  .form { gap: 16px; }
  .form input,
  .form textarea {
    font-size: 16px;
    padding: 14px 14px;
  }
  .form textarea { min-height: 130px; }
  .form label { font-size: 0.68rem; letter-spacing: 0.18em; }

  /* Checkrow chips: bigger tap area, tighter spacing */
  .checkrow { gap: 6px; }
  .checkrow label {
    padding: 11px 13px;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    min-height: 40px;
  }

  /* Sidebar blocks: reduce padding */
  .sidebar-block { padding: 18px 18px; }

  /* Footer: tighten */
  .footer { margin-top: 40px; padding: 40px 0 22px; }
  .footer-grid { gap: 24px; }
  .footer-bottom { font-size: 0.74rem; }

  /* Divider less aggressive */
  .divider { margin: 40px 0; }

  /* Extras links: bigger tap targets */
  .extra-link { padding: 14px 14px; font-size: 0.86rem; min-height: 48px; }

  /* Inline overrides used in HTML files — keep these readable on phones */
  .card[style*="padding:36px"],
  .card[style*="padding:32px"] {
    padding: 22px 20px !important;
  }
}

/* Very small phones (iPhone SE, etc.) */
@media (max-width: 380px) {
  .page { padding: 94px 14px 48px; }
  .nav-inner { padding: 0 12px; gap: 8px; }
  .brand-name { font-size: 0.82rem; }
  .brand-glyph { width: 32px; height: 32px; font-size: 0.9rem; }
  .page-title { font-size: clamp(1.8rem, 9vw, 2.3rem); }
  .btn { padding: 13px 16px; font-size: 0.7rem; letter-spacing: 0.12em; }
  .tagline { font-size: 0.66rem; letter-spacing: 0.16em; padding: 14px 16px; }
}

/* Safe-area insets for notched phones */
@supports (padding: max(0px)) {
  .nav-inner {
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }
  .page {
    padding-left: max(18px, env(safe-area-inset-left));
    padding-right: max(18px, env(safe-area-inset-right));
  }
  .footer-inner {
    padding-left: max(18px, env(safe-area-inset-left));
    padding-right: max(18px, env(safe-area-inset-right));
  }
}

/* Tap highlight & smooth touch */
html { -webkit-tap-highlight-color: rgba(200,32,46,0.18); }
@media (hover: none) {
  /* Disable hover lifts on touch devices — they get stuck after tap */
  .card:hover { transform: none; }
  .btn-primary:hover { transform: none; }
}
