/* ==========================================================================
   RepoTruth — Homepage styles
   Dark enterprise · teal spectrum · Georgia headings · system-sans body
   Desktop-first, fluid, accessibility-first.
   ========================================================================== */

:root {
  /* Surfaces */
  --bg: #060810;
  --bg-elev-1: #0a0d16;
  --bg-elev-2: #0e131e;
  --bg-elev-3: #121826;

  /* Teal spectrum */
  --teal-300: #2dd4bf;
  --teal-400: #14b8a6;
  --teal-700: #0f766e;
  --teal-soft: rgba(45, 212, 191, 0.12);
  --teal-line: rgba(45, 212, 191, 0.28);

  /* Text */
  --text: #e8edf3;
  --text-soft: #c2ccd8;
  --text-muted: #8a97a6;
  --text-faint: #66727f;

  /* Lines & borders */
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);

  /* Type */
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Noto Sans", sans-serif;

  /* Layout */
  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 14px;
  --radius-sm: 10px;
  --header-h: 72px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ----- Reset / base --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--teal-300); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--teal-400); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.15; letter-spacing: -0.01em; }
ul { margin: 0; padding: 0; }
li { list-style: none; }
em { font-style: italic; color: var(--text); }
strong { font-weight: 600; color: var(--text); }

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

/* ----- Accessibility helpers ------------------------------------------------ */
.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 200;
  background: var(--teal-400);
  color: #04110f;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; color: #04110f; }

:focus-visible {
  outline: 2px solid var(--teal-300);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ----- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
              border-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn-primary {
  background: linear-gradient(180deg, var(--teal-300), var(--teal-400));
  color: #04110f;
  box-shadow: 0 8px 28px -12px rgba(45, 212, 191, 0.55);
}
.btn-primary:hover { color: #04110f; transform: translateY(-2px); box-shadow: 0 14px 34px -12px rgba(45, 212, 191, 0.6); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { color: var(--text); border-color: var(--teal-line); background: var(--teal-soft); transform: translateY(-2px); }
.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* ----- Header --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 8, 16, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(6, 8, 16, 0.9);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark {
  width: 14px; height: 14px; border-radius: 4px;
  background: linear-gradient(140deg, var(--teal-300), var(--teal-700));
  box-shadow: 0 0 0 4px var(--teal-soft);
}
.brand-name { font-family: var(--serif); font-size: 1.32rem; letter-spacing: -0.01em; }

.primary-nav ul { display: flex; align-items: center; gap: 1.6rem; }
.primary-nav a {
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.4rem 0;
  position: relative;
}
.primary-nav a:hover { color: var(--text); }
.primary-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1px; background: var(--teal-300);
  transition: width 0.25s var(--ease);
}
.primary-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle-bar { display: block; width: 20px; height: 2px; background: var(--text); margin: 0 auto; transition: transform 0.25s var(--ease), opacity 0.2s var(--ease); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  border-top: 1px solid var(--line);
  background: var(--bg-elev-1);
}
.mobile-nav ul { display: flex; flex-direction: column; padding: 0.75rem var(--gutter) 1.25rem; gap: 0.25rem; }
.mobile-nav a { display: block; padding: 0.85rem 0.25rem; color: var(--text-soft); border-bottom: 1px solid var(--line); font-size: 1.02rem; }
.mobile-nav a:hover { color: var(--text); }
.mobile-nav .btn { margin-top: 0.85rem; border-bottom: none; }

/* ----- Section scaffolding -------------------------------------------------- */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-kicker {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-300);
  margin: 0 0 1rem;
}
.section-title { font-size: clamp(1.8rem, 3.6vw, 2.85rem); margin: 0; color: var(--text); }
.section-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-muted); margin: 1.1rem 0 0; }
.section-foot { color: var(--text-muted); max-width: 760px; margin: 2.25rem 0 0; font-size: 1.05rem; }
.editorial { font-size: clamp(1.08rem, 1.7vw, 1.3rem); color: var(--text-soft); max-width: 820px; line-height: 1.7; }
.anchor-line {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  color: var(--text);
  max-width: 880px;
  margin: 2.5rem 0 0;
  line-height: 1.4;
}

/* ----- Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(4.5rem, 11vw, 9rem) 0 clamp(3.5rem, 7vw, 6rem);
  background:
    radial-gradient(1100px 520px at 18% -10%, rgba(20, 184, 166, 0.16), transparent 60%),
    radial-gradient(900px 480px at 92% 0%, rgba(15, 118, 110, 0.14), transparent 62%);
  border-bottom: 1px solid var(--line);
}
.hero-inner { max-width: 900px; }
.eyebrow {
  font-family: var(--sans);
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--teal-300);
  margin: 0 0 1.25rem;
}
.hero-title { font-size: clamp(2.7rem, 7vw, 5rem); margin: 0; color: var(--text); line-height: 1.04; }
.hero-sub { font-size: clamp(1.2rem, 2.4vw, 1.6rem); color: var(--text-soft); max-width: 760px; margin: 1.5rem 0 0; line-height: 1.45; }
.hero-body { font-size: clamp(1rem, 1.5vw, 1.15rem); color: var(--text-muted); max-width: 720px; margin: 1.6rem 0 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2.25rem 0 0; }

.trust-strip {
  display: flex; flex-wrap: wrap; gap: 0.6rem 0.65rem;
  margin: 2.75rem 0 0; padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.trust-strip li {
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.02em;
  color: var(--text-soft);
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}

/* ----- Problem -------------------------------------------------------------- */
.section-problem { background: linear-gradient(180deg, var(--bg), var(--bg-elev-1)); }
.problem-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  margin: 2.5rem 0 0;
}
.problem-card {
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  border-left: 2px solid var(--teal-700);
  border-radius: var(--radius-sm);
  padding: 1.4rem 1.5rem;
  font-family: var(--serif);
  font-size: 1.08rem;
  color: var(--text-soft);
  line-height: 1.45;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.problem-card:hover { transform: translateY(-3px); border-left-color: var(--teal-300); background: var(--bg-elev-3); }

/* ----- Category ------------------------------------------------------------- */
.category-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1rem; }
.category-block {
  background: var(--bg-elev-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
}
.category-block h3, .category-insufficient h3, .observatory-body h3 {
  font-size: 1.35rem; color: var(--text); margin: 0 0 0.85rem;
}
.category-block p { color: var(--text-muted); margin: 0; }
.category-insufficient {
  margin-top: 1.5rem; padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev-1);
}
.category-insufficient ul { display: grid; gap: 1rem; margin-top: 0.5rem; }
.category-insufficient li { color: var(--text-muted); padding-left: 1.25rem; position: relative; }
.category-insufficient li::before {
  content: ""; position: absolute; left: 0; top: 0.7rem;
  width: 6px; height: 6px; border-radius: 50%; background: var(--teal-400);
}

/* ----- Diagnostic Package (flagship) --------------------------------------- */
.section-package {
  background:
    radial-gradient(900px 500px at 100% 0%, rgba(15, 118, 110, 0.1), transparent 60%),
    var(--bg-elev-1);
  border-block: 1px solid var(--line);
}
.package-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.package-intro p { color: var(--text-soft); }
.package-why { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--text-muted); }
.package-why span {
  display: block; font-family: var(--sans); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-300); margin-bottom: 0.6rem;
}
.package-intro .btn { margin-top: 2rem; }

.package-spine {
  position: relative;
  padding-left: 0;
  counter-reset: spine;
}
.package-spine::before {
  content: ""; position: absolute;
  left: 23px; top: 22px; bottom: 22px; width: 2px;
  background: linear-gradient(180deg, var(--teal-300), var(--teal-700));
  opacity: 0.5;
}
.spine-item {
  position: relative;
  display: grid; grid-template-columns: 48px 1fr; gap: 1.1rem;
  align-items: start;
  padding: 0.85rem 1rem 0.85rem 0;
  border-radius: var(--radius-sm);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.spine-item:hover { background: rgba(255, 255, 255, 0.02); transform: translateX(3px); }
.spine-index {
  position: relative; z-index: 1;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--teal-300);
  background: var(--bg-elev-3);
  border: 1px solid var(--teal-line);
  border-radius: 12px;
}
.spine-text h3 { font-size: 1.18rem; color: var(--text); margin: 0.4rem 0 0.3rem; }
.spine-text p { margin: 0; color: var(--text-muted); font-size: 0.98rem; }
.spine-emphasis .spine-index { background: var(--teal-soft); color: var(--teal-300); box-shadow: 0 0 0 4px var(--teal-soft); }
.spine-emphasis .spine-text h3 { color: var(--teal-300); }

/* ----- Decision moments ----------------------------------------------------- */
.moment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.moment-card {
  background: var(--bg-elev-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.7rem;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.moment-card:hover { transform: translateY(-4px); border-color: var(--teal-line); box-shadow: 0 18px 40px -24px rgba(45, 212, 191, 0.4); }
.moment-card h3 { font-size: 1.25rem; color: var(--text); margin: 0 0 0.6rem; }
.moment-card p { margin: 0; color: var(--text-muted); font-size: 0.98rem; }

/* ----- How it works --------------------------------------------------------- */
.section-how { background: var(--bg-elev-1); border-block: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.step {
  position: relative;
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; margin-bottom: 1rem;
  font-family: var(--serif); font-size: 1.15rem; color: var(--teal-300);
  border: 1px solid var(--teal-line); border-radius: 50%;
  background: var(--teal-soft);
}
.step h3 { font-size: 1.1rem; color: var(--text); margin: 0 0 0.5rem; }
.step p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }

/* ----- Guarantees ----------------------------------------------------------- */
.section-guarantees {
  background:
    radial-gradient(800px 440px at 0% 100%, rgba(20, 184, 166, 0.08), transparent 60%),
    var(--bg);
}
.guarantee-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.5rem; }
.guarantee-card {
  background: var(--bg-elev-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.guarantee-card:hover { transform: translateY(-3px); border-color: var(--teal-line); background: var(--bg-elev-3); }
.guarantee-card h3 {
  font-size: 1.22rem; color: var(--teal-300); margin: 0 0 0.7rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.guarantee-card h3::before {
  content: ""; width: 8px; height: 8px; border-radius: 2px;
  background: var(--teal-300); box-shadow: 0 0 0 4px var(--teal-soft);
}
.guarantee-card p { margin: 0; color: var(--text-soft); font-size: 0.98rem; }

/* ----- Unknown philosophy --------------------------------------------------- */
.section-unknown {
  background: linear-gradient(180deg, var(--bg), var(--bg-elev-1));
  border-top: 1px solid var(--line);
}
.unknown-inner { max-width: 880px; }
.unknown-principle {
  margin: 2.5rem 0 0;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border: 1px solid var(--teal-line);
  border-left: 3px solid var(--teal-300);
  border-radius: var(--radius);
  background: var(--teal-soft);
}
.unknown-principle p {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.8vw, 2rem);
  line-height: 1.4;
  color: var(--text);
  margin: 0;
}
.unknown-principle .hl { color: var(--teal-300); font-style: italic; }

/* ----- Observatory ---------------------------------------------------------- */
.section-observatory { background: var(--bg-elev-1); border-block: 1px solid var(--line); }
.observatory-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.observatory-body p { color: var(--text-muted); }
.observatory-body p:first-child { color: var(--text-soft); font-size: 1.1rem; }
.observatory-body h3 { margin-top: 1.75rem; }
.observatory-statement {
  border: 1px solid var(--teal-line);
  border-radius: var(--radius);
  background:
    radial-gradient(400px 300px at 50% 0%, rgba(45, 212, 191, 0.12), transparent 70%),
    var(--bg-elev-3);
  padding: clamp(2rem, 4vw, 3rem);
  text-align: center;
}
.observatory-tag {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0;
  color: var(--text);
}
.observatory-tag:last-child { color: var(--teal-300); }

/* ----- Proof ---------------------------------------------------------------- */
.proof-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.proof-card {
  background: var(--bg-elev-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.proof-card:hover { transform: translateY(-3px); border-color: var(--teal-line); }
.proof-card h3 { font-size: 1.3rem; color: var(--text); margin: 0 0 0.75rem; }
.proof-card p { margin: 0; color: var(--text-muted); }

/* ----- Closing -------------------------------------------------------------- */
.section-closing {
  text-align: center;
  background:
    radial-gradient(900px 500px at 50% 120%, rgba(20, 184, 166, 0.16), transparent 60%),
    var(--bg);
  border-top: 1px solid var(--line);
}
.closing-inner { max-width: 820px; margin: 0 auto; }
.closing-title { font-size: clamp(1.9rem, 4.4vw, 3rem); margin: 0; color: var(--text); }
.closing-sub { font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--teal-300); margin: 1.1rem 0 0; }
.closing-body { color: var(--text-muted); margin: 1.5rem auto 0; max-width: 680px; }
.closing-cta { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin: 2.25rem 0 0; }
.closing-reassure { color: var(--text-faint); font-size: 0.92rem; margin: 1.75rem 0 0; letter-spacing: 0.02em; }

/* ----- Footer --------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-elev-1); padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem; }
.footer-trust {
  display: flex; flex-wrap: wrap; gap: 0.6rem 0.65rem;
  padding-bottom: 2.5rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--line);
}
.footer-trust li {
  font-size: 0.78rem; font-weight: 500; color: var(--text-muted);
  padding: 0.35rem 0.8rem; border: 1px solid var(--line); border-radius: 999px;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand .brand-name { font-size: 1.4rem; color: var(--text); }
.footer-brand p { color: var(--text-muted); margin: 0.6rem 0 0; max-width: 280px; }
.footer-col h4 {
  font-family: var(--sans); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-faint); margin: 0 0 1rem;
}
.footer-col ul { display: grid; gap: 0.6rem; }
.footer-col a { color: var(--text-soft); font-size: 0.95rem; }
.footer-col a:hover { color: var(--teal-300); }
.footer-base { margin-top: 2.75rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.footer-base p { color: var(--text-faint); font-size: 0.88rem; margin: 0; text-align: center; }

/* ----- Reveal animation ----------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .package-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .observatory-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
}

@media (max-width: 900px) {
  .primary-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn-primary { display: none; }
  .problem-cards { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: 1fr; }
  .moment-grid { grid-template-columns: repeat(2, 1fr); }
  .guarantee-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .problem-cards,
  .moment-grid,
  .guarantee-grid,
  .steps { grid-template-columns: 1fr; }
  .hero-cta .btn,
  .closing-cta .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-brand p { max-width: none; }
  .trust-strip li { font-size: 0.78rem; }
}

/* ----- Reduced motion ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .btn:hover,
  .moment-card:hover,
  .problem-card:hover,
  .guarantee-card:hover,
  .proof-card:hover,
  .spine-item:hover { transform: none; }
}

/* ==========================================================================
   Diagnostic Package page — minimal additions (reuse all tokens above)
   ========================================================================== */

/* Centered reading measure for full-width spine / editorial blocks */
.measure { max-width: 880px; margin-inline: auto; }

/* Package spine: "does / does not" notes (no red — "does not" is neutral, not alarming) */
.spine-note {
  display: flex; gap: 0.65rem; align-items: baseline;
  margin: 0.55rem 0 0; font-size: 0.92rem; color: var(--text-muted);
}
.spine-note-key {
  flex: none; min-width: 84px;
  font-family: var(--sans); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-300);
}
.spine-note--not { color: var(--text-faint); }
.spine-note--not .spine-note-key { color: var(--text-faint); }

/* Synthetic sample callout (reuses teal tokens; no hover/motion) */
.callout {
  border: 1px solid var(--teal-line);
  border-radius: var(--radius);
  background:
    radial-gradient(500px 280px at 50% 0%, rgba(45, 212, 191, 0.1), transparent 70%),
    var(--bg-elev-2);
  padding: clamp(1.9rem, 4vw, 3rem);
  text-align: center;
}
.callout h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); color: var(--text); margin: 0 0 1rem; }
.callout p { color: var(--text-soft); margin: 0 auto; max-width: 640px; }
.callout .btn { margin-top: 1.75rem; }
.callout .callout-note { color: var(--text-faint); font-size: 0.86rem; margin-top: 1.25rem; }

/* ==========================================================================
   Trust page — minimal additions
   "Never" charter list + accessible FAQ accordion (native <details>)
   ========================================================================== */

/* "What we never do" — charter rows (no red; restraint stated plainly) */
.never-list { display: grid; gap: 0.75rem; max-width: 880px; margin-inline: auto; }
.never-item {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem 1.1rem; align-items: baseline;
  background: var(--bg-elev-2);
  border: 1px solid var(--line-strong);
  border-left: 2px solid var(--teal-700);
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.4rem;
}
.never-item .never-key {
  font-family: var(--serif); font-size: 1.12rem; color: var(--text);
  white-space: nowrap;
}
.never-item .never-why { color: var(--text-muted); font-size: 0.96rem; margin: 0; }

/* FAQ accordion — native details/summary, fully keyboard accessible */
.faq { display: grid; gap: 0.85rem; max-width: 820px; margin-inline: auto; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-elev-2);
  overflow: hidden;
}
.faq-item > summary {
  list-style: none; cursor: pointer;
  padding: 1.15rem 1.4rem;
  font-family: var(--serif); font-size: 1.1rem; color: var(--text);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: "+"; flex: none; color: var(--teal-300);
  font-family: var(--sans); font-size: 1.4rem; line-height: 1;
}
.faq-item[open] > summary::after { content: "\2013"; }
.faq-item > summary:focus-visible { outline: 2px solid var(--teal-300); outline-offset: -2px; }
.faq-item > summary:hover { color: var(--teal-300); }
.faq-answer { padding: 0 1.4rem 1.3rem; color: var(--text-muted); }
.faq-answer p { margin: 0; }

/* Three-step variant (responsive; collapses to one column on small screens) */
.steps--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) { .steps--3 { grid-template-columns: 1fr; } }

/* Four-step variant (responsive) */
.steps--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) { .steps--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .steps--4 { grid-template-columns: 1fr; } }

/* Active page state (wayfinding) — makes the current nav item visible */
.primary-nav a[aria-current="page"] { color: var(--text); }
.primary-nav a[aria-current="page"]::after { width: 100%; }
.mobile-nav a[aria-current="page"] { color: var(--teal-300); }

/* i18n language switcher (Phase 0: mount stays [hidden] → renders nothing).
   Styles are inert until app.js reveals the mount when >1 language exists. */
.lang-switch[hidden] { display: none; }
.lang-switch { display: inline-flex; align-items: center; margin-inline-start: 4px; }
.lang-switch__d { position: relative; }
.lang-switch__btn {
  list-style: none; cursor: pointer; color: var(--muted);
  font-size: 0.85rem; padding: 6px 10px 6px 8px; border-radius: 8px;
  border: 1px solid var(--line); white-space: nowrap;
  display: inline-flex; align-items: center;
}
.lang-switch__icon { height: 17px; width: auto; margin-inline-end: 7px; border-radius: 4px; }
.lang-switch__btn::-webkit-details-marker { display: none; }
.lang-switch__d[open] .lang-switch__btn { color: var(--text); }
.lang-switch__list {
  position: absolute; inset-inline-end: 0; margin-top: 6px; padding: 6px;
  list-style: none; min-width: 160px; z-index: 60;
  background: var(--bg-elev, #0b0f1a); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,.45);
}
.lang-switch__list a {
  display: block; padding: 8px 10px; border-radius: 6px;
  color: var(--muted); text-decoration: none; font-size: 0.9rem;
}
.lang-switch__list a:hover, .lang-switch__list a:focus-visible { color: var(--text); background: rgba(45,212,191,.08); }
.lang-switch__list a[aria-current="true"] { color: var(--teal-300); }

/* Brand logo image (header) — replaces the former CSS gradient mark */
.brand-mark { display: block; width: auto; height: 26px; border-radius: 0; background: none; box-shadow: none; }

/* Hero logo (homepage) — hugs the inline-start in both LTR and RTL */
.hero-logo { display: block; height: 120px; width: auto; margin-block-end: 20px; margin-inline-end: auto; }
@media (max-width: 540px) { .hero-logo { height: 92px; } }

/* Observatory section CTA */
.observatory-cta { margin-block-start: 28px; }

/* Request form (request.html) */
.rt-form { display: grid; gap: 16px; max-width: 580px; margin-block-start: 30px; }
.rt-form label { font-size: 0.9rem; color: var(--text); font-weight: 600; margin-block-end: -8px; }
.rt-form input, .rt-form textarea {
  width: 100%; background: rgba(255,255,255,.03); border: 1px solid var(--line);
  border-radius: 10px; padding: 13px 15px; color: var(--text); font: inherit; transition: border-color .15s;
}
.rt-form input:focus-visible, .rt-form textarea:focus-visible { outline: none; border-color: var(--teal-300); }
.rt-form textarea { min-height: 130px; resize: vertical; }
.rt-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.rt-form button { justify-self: start; margin-block-start: 6px; }
.form-boundary {
  margin-block-start: 22px; padding: 14px 18px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(45,212,191,.05); color: var(--text); font-size: 0.92rem;
}
.form-ok {
  display: none; margin-block-start: 30px; padding: 20px 22px; border-radius: 12px;
  border: 1px solid var(--teal-700); background: rgba(45,212,191,.08); color: var(--text);
}
.form-doctrine { margin-block-start: 26px; color: var(--muted); font-size: 0.82rem; letter-spacing: .01em; }
.form-err { margin-block-start: 16px; padding: 13px 16px; border-radius: 10px; border: 1px solid #7f1d1d; background: rgba(220,38,38,.09); color: #fecaca; font-size: 0.92rem; }
.form-err[hidden] { display: none; }
