/* ============================================
   SHRAIX — shared stylesheet
   Palette: Navy background, Emerald accent, Slate secondary text, White primary text.
   Emerald/Slate only ever sit on navy. Light sections use navy text + navy accents.
   ============================================ */

:root {
  --navy: #0B1728;
  --navy-deep: #081220;
  --emerald: #00C98D;
  --emerald-deep: #00B07C;
  --slate: #98A6B8;
  --white: #FFFFFF;
  --cream: #F4F1EA;
  --cream-line: #E3DFD4;

  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --max-width: 1120px;
  --measure: 38rem; /* ~ under 80 characters */

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 6.5rem;

  --radius: 10px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
body {
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; margin: 0 0 var(--space-3); }
p { margin: 0 0 var(--space-3); }
ul, ol { margin: 0 0 var(--space-3); padding-left: 1.25em; }
button { font-family: inherit; }

/* Visible keyboard focus everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--emerald);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--emerald);
  color: var(--navy);
  padding: 0.75em 1.25em;
  z-index: 1000;
  font-weight: 600;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

/* ---------- Layout helpers ---------- */
.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}
.section {
  padding: var(--space-6) 0;
}
.section--tight { padding: var(--space-5) 0; }
.section--light {
  background: var(--cream);
  color: var(--navy);
}
.section--light h1, .section--light h2, .section--light h3 { color: var(--navy); }
.section-head {
  max-width: 42rem;
  margin-bottom: var(--space-4);
}
.measure { max-width: var(--measure); }
.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--slate);
  margin-bottom: var(--space-3);
}
.section--light .eyebrow { color: var(--navy); opacity: 0.65; }

.rule {
  width: 64px;
  height: 3px;
  background: var(--emerald);
  border: 0;
  margin: var(--space-2) 0 var(--space-3);
}
.section--light .rule { background: var(--navy); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn--primary {
  background: var(--emerald);
  color: var(--navy);
}
.btn--primary:hover { background: var(--emerald-deep); }
.btn--outline {
  background: transparent;
  border-color: var(--slate);
  color: var(--white);
}
.btn--outline:hover { border-color: var(--white); }
.section--light .btn--outline { border-color: var(--navy); color: var(--navy); }
.section--light .btn--outline:hover { background: var(--navy); color: var(--white); }

.link {
  color: var(--emerald);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}
.section--light .link { color: var(--navy); }
.link:hover { text-decoration-thickness: 2px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  border-bottom: 1px solid rgba(152, 166, 184, 0.18);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6em;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 1.05rem;
  color: var(--white);
}
.brand img { height: 30px; width: auto; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(152, 166, 184, 0.4);
  border-radius: 8px;
  color: var(--white);
  padding: 0.5em 0.7em;
  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.site-nav ul {
  display: flex;
  gap: var(--space-3);
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a:not(.btn) {
  text-decoration: none;
  color: var(--white);
  font-size: 0.95rem;
  padding: 0.3em 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover { border-bottom-color: var(--emerald); }

/* ---------- Hero ---------- */
.hero { padding-top: var(--space-6); padding-bottom: var(--space-6); }
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  max-width: 18ch;
}
.hero .sub {
  max-width: var(--measure);
  color: var(--slate);
  font-size: 1.1rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-4) 0;
}
.proof-points {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-4);
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0 0;
  color: var(--slate);
  font-size: 0.92rem;
  border-top: 1px solid rgba(152, 166, 184, 0.2);
  padding-top: var(--space-3);
}
.proof-points li { display: flex; align-items: center; gap: 0.5em; }
.proof-points li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  flex: none;
}

/* ---------- Evidence grid ---------- */
.evidence-meta {
  color: var(--slate);
  margin-bottom: var(--space-4);
}
.evidence-meta strong { color: var(--white); }
.evidence-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(152, 166, 184, 0.25);
  border-radius: var(--radius);
}
.evidence-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: 0.95rem;
}
.evidence-table caption { text-align: left; caption-side: top; }
.evidence-table th, .evidence-table td {
  padding: 0.9em 1em;
  text-align: center;
  border-bottom: 1px solid rgba(152, 166, 184, 0.15);
}
.evidence-table thead th {
  text-align: center;
  color: var(--slate);
  font-weight: 600;
  font-size: 0.88rem;
}
.evidence-table th[scope="row"] {
  text-align: left;
  font-weight: 600;
  color: var(--white);
}
.evidence-table tbody tr:last-child th,
.evidence-table tbody tr:last-child td { border-bottom: 0; }
.evidence-table tbody tr.is-standout {
  background: rgba(0, 201, 141, 0.1);
}
.evidence-table tbody tr.is-standout th { color: var(--emerald); }

.mark { display: inline-flex; font-weight: 700; }
.mark--named { color: var(--emerald); }
.mark--absent { color: var(--slate); }
.mark--animate {
  animation: mark-in 0.35s ease both;
}
@keyframes mark-in {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

.evidence-caption {
  margin-top: var(--space-4);
  padding-left: var(--space-3);
  border-left: 3px solid var(--emerald);
}
.evidence-caption p { margin: 0; }
.evidence-caption .lede { font-weight: 700; font-size: 1.1rem; }
.evidence-caption .dim { color: var(--slate); }

/* ---------- Definition block ---------- */
.definition {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1.45;
  max-width: 44rem;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  list-style: none;
  padding: 0;
  counter-reset: step;
}
.steps li {
  border-top: 2px solid var(--emerald);
  padding-top: var(--space-2);
}
.section--light .steps li { border-top-color: var(--navy); }
.steps .step-num {
  display: block;
  font-family: var(--font-head);
  font-size: 1.8rem;
  color: var(--emerald);
  margin-bottom: 0.3em;
}
.section--light .steps .step-num { color: var(--navy); }
.steps h3 { font-size: 1.1rem; margin-bottom: 0.4em; }
.steps p { color: var(--slate); margin: 0; }
.section--light .steps p { color: #4b5566; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}
.card {
  border: 1px solid rgba(152, 166, 184, 0.3);
  border-radius: var(--radius);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.card h3 { margin-bottom: 0; font-size: 1.3rem; }
.card .price { color: var(--emerald); font-weight: 700; font-size: 1.05rem; }
.card p { color: var(--slate); margin-bottom: 0; }
.card .btn { align-self: flex-start; margin-top: var(--space-2); }
.cards-note { color: var(--slate); margin-top: var(--space-3); }

/* ---------- Hold-us-to list ---------- */
.accountability-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-4);
  display: grid;
  gap: var(--space-2);
}
.accountability-list li {
  padding-left: 1.6em;
  position: relative;
}
.accountability-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--emerald);
}
.closing-line {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  max-width: 42rem;
  padding-top: var(--space-3);
  border-top: 1px solid rgba(152, 166, 184, 0.25);
}

/* ---------- Founder strip ---------- */
.founder-strip {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-4);
  align-items: center;
}
.founder-strip img {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
}
.founder-strip .body-col { max-width: var(--measure); }
.founder-strip h3 { font-size: 1.3rem; }
.founder-strip p { color: var(--slate); }

/* ---------- Forms ---------- */
.form-panel {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(152, 166, 184, 0.25);
  border-radius: var(--radius);
  padding: var(--space-4);
}
.section--light .form-panel { background: var(--white); border-color: var(--cream-line); }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
.form-grid .field--full { grid-column: 1 / -1; }
.field label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.4em;
  color: var(--slate);
}
.section--light .field label { color: #4b5566; }
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--navy-deep);
  border: 1px solid rgba(152, 166, 184, 0.4);
  color: var(--white);
  border-radius: 8px;
  padding: 0.75em 0.9em;
  font-size: 1rem;
  font-family: inherit;
}
.section--light .field input,
.section--light .field select,
.section--light .field textarea {
  background: var(--white);
  color: var(--navy);
  border-color: var(--cream-line);
}
.field textarea { resize: vertical; min-height: 6em; }
.form-panel .btn { margin-top: var(--space-1); }
.form-status {
  margin-top: var(--space-2);
  font-size: 0.92rem;
}
.form-status--success { color: var(--emerald); }
.form-status--error { color: #FF8C7A; }
.form-footnote {
  margin-top: var(--space-3);
  color: var(--slate);
  font-size: 0.92rem;
}

/* ---------- FAQ accordion ---------- */
.faq-list { border-top: 1px solid rgba(152, 166, 184, 0.25); }
.faq-item { border-bottom: 1px solid rgba(152, 166, 184, 0.25); }
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  color: inherit;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  padding: var(--space-2) 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
}
.faq-question .icon {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid var(--emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--emerald);
}
.section--light .faq-question .icon { border-color: var(--navy); color: var(--navy); }
.faq-question[aria-expanded="true"] .icon { transform: rotate(45deg); }
.faq-answer { padding: 0 0 var(--space-3); color: var(--slate); max-width: var(--measure); }
.section--light .faq-answer { color: #4b5566; }

/* ---------- Final CTA ---------- */
.final-cta { text-align: left; }
.final-cta .wrap { display: flex; flex-direction: column; gap: var(--space-3); align-items: flex-start; }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  border-top: 1px solid rgba(152, 166, 184, 0.18);
  padding: var(--space-6) 0 var(--space-4);
  color: var(--slate);
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-4);
}
.footer-brand { display: flex; align-items: center; gap: 0.6em; margin-bottom: var(--space-2); }
.footer-brand img { height: 26px; }
.footer-brand span { font-weight: 700; letter-spacing: 0.08em; color: var(--white); }
.footer-col h2 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: var(--space-2);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6em; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: var(--white); }
.footer-legal {
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(152, 166, 184, 0.18);
  font-size: 0.85rem;
  display: grid;
  gap: 0.6em;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
  padding: var(--space-3) 0 0;
  margin: 0;
  font-size: 0.85rem;
  color: var(--slate);
}
.breadcrumb li { display: flex; align-items: center; gap: 0.4em; }
.breadcrumb li:not(:last-child)::after { content: "/"; opacity: 0.5; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb li[aria-current="page"] { color: var(--white); }

/* Active nav link */
.site-nav a[aria-current="page"] { border-bottom-color: var(--emerald); }

/* ---------- Plain data tables (Areas, Retainer, Facts) ---------- */
.data-table-wrap { overflow-x: auto; border: 1px solid rgba(152, 166, 184, 0.25); border-radius: var(--radius); }
.data-table { width: 100%; border-collapse: collapse; min-width: 480px; font-size: 0.95rem; }
.data-table th, .data-table td { padding: 0.9em 1em; text-align: left; border-bottom: 1px solid rgba(152, 166, 184, 0.15); vertical-align: top; }
.data-table thead th { color: var(--slate); font-weight: 600; font-size: 0.85rem; }
.data-table tbody tr:last-child th, .data-table tbody tr:last-child td { border-bottom: 0; }
.section--light .data-table-wrap { border-color: var(--cream-line); }
.section--light .data-table th, .section--light .data-table td { border-color: var(--cream-line); }
.section--light .data-table thead th { color: #4b5566; }

/* ---------- Numbered process list (Audit "what we do") ---------- */
.numbered-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-3);
  counter-reset: num;
}
.numbered-list li {
  counter-increment: num;
  padding-left: 2.6em;
  position: relative;
}
.numbered-list li::before {
  content: counter(num);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.8em;
  height: 1.8em;
  border-radius: 50%;
  border: 1px solid var(--emerald);
  color: var(--emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}
.section--light .numbered-list li::before { border-color: var(--navy); color: var(--navy); }
.numbered-list strong { color: var(--white); }
.section--light .numbered-list strong { color: var(--navy); }

/* ---------- Simple bullet list (reuses the emerald-dot style, no bold prefix assumed) ---------- */
.dot-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.dot-list li { padding-left: 1.6em; position: relative; }
.dot-list li::before {
  content: "";
  position: absolute; left: 0; top: 0.55em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--emerald);
}
.section--light .dot-list li::before { background: var(--navy); }

/* ---------- Insights index ---------- */
.insight-card {
  border: 1px solid rgba(152, 166, 184, 0.3);
  border-radius: var(--radius);
  padding: var(--space-4);
  display: grid;
  gap: var(--space-2);
}
.insight-card .tag {
  font-size: 0.8rem;
  color: var(--emerald);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.insight-card h3 { margin-bottom: 0; font-size: 1.2rem; }
.insight-card p { color: var(--slate); margin-bottom: 0; }
.insight-list { display: grid; gap: var(--space-3); }

/* ---------- Legal pages ---------- */
.legal-content h2 { font-size: 1.3rem; margin-top: var(--space-5); }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--slate); }
.legal-content { max-width: var(--measure); }

/* ---------- Facts page ---------- */
.fact-table th[scope="row"] { color: var(--white); font-weight: 600; width: 40%; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: start;
}
.calendly-embed {
  border: 1px solid rgba(152, 166, 184, 0.25);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 630px;
}
.calendly-embed iframe { display: block; width: 100%; height: 630px; border: 0; }

/* ---------- 404 page ---------- */
.not-found { text-align: center; padding: var(--space-7) 0; }
.not-found .code { font-family: var(--font-head); font-size: 5rem; color: var(--emerald); margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 0.4em; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    border-bottom: 1px solid rgba(152, 166, 184, 0.18);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-2) var(--space-3) var(--space-3);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 0.7em 0; }
  .site-nav .btn { margin-top: var(--space-2); justify-content: center; }
  .site-header .wrap { position: relative; }

  .founder-strip { grid-template-columns: 1fr; text-align: left; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-5); }
  .section { padding: var(--space-5) 0; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; justify-content: center; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { justify-content: center; text-align: center; }
}
