/* ============================================
   WebCliniK — Design System (navy / white)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Navy anchors. Deep green is the secondary — "healthy / go", links, framing.
     Warm coral is spent once: urgency and the single primary action.
     The ground is a warmed off-white so the page never reads as monotone grey. */
  --paper: #FBFAF7;
  --paper-alt: #F2F0E9;
  --ink: #12233D;
  --ink-soft: #45566E;
  --primary: #12233D;
  --primary-dark: #0B1830;

  --forest: #0F6B4F;
  --forest-soft: #E1EDE7;
  --accent: #0F6B4F;
  --accent-soft: #E1EDE7;

  --accent-warm: #E8734F;
  --accent-warm-soft: #F8E3D9;
  --accent-teal: #1F9E86;
  --accent-teal-soft: #D7F0EA;

  --muted: #6B7280;
  --border: #E5E1D7;
  --white: #FFFFFF;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --max-width: 1160px;
  --radius: 6px;
  --radius-lg: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.3rem, 4.6vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: var(--accent); }

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-block;
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.85rem; font-weight: 500; letter-spacing: 0.02em;
  padding: 13px 24px; border-radius: var(--radius); border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-accent { background: var(--accent-warm); color: var(--white); }
.btn-accent:hover { background: #D5623C; transform: translateY(-1px); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 250, 247, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; max-width: var(--max-width); margin: 0 auto; }
.logo { display: inline-flex; align-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.logo span { color: var(--ink); }
.logo-mark { width: 26px; height: 26px; flex-shrink: 0; display: block; margin-right: 9px; }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-family: var(--font-mono); font-size: 0.85rem; color: var(--ink-soft); text-decoration: none; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; }
.nav-cta-mobile { display: none; }
.nav-links .nav-cta-mobile a,
.nav-links .nav-cta-mobile a:hover { color: var(--white); margin-bottom: 4px; }

@media (max-width: 860px) {
  .nav-links { position: fixed; top: 65px; left: 0; right: 0; background: var(--paper); flex-direction: column; padding: 20px 24px; gap: 18px; border-bottom: 1px solid var(--border); display: none; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-right > .btn { display: none; }
  .nav-cta-mobile { display: block; }
}

/* ---------- Section rhythm ---------- */
section { padding: 88px 0; }
.section-alt { background: var(--paper-alt); }
.section-dark { background: var(--primary-dark); color: var(--paper); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: #A9B8CC; }
.section-head { max-width: 620px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Hero ---------- */
.hero {
  padding: 84px 0 76px;
  background: linear-gradient(to bottom, #FBFAF7, #EEF0F4);
}
.hero .container { max-width: 1120px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: start;
}

.hero-left { max-width: 520px; }

.hero-headline {
  font-size: clamp(2.5rem, 4.8vw, 3.8rem);
  line-height: 1.1;
  max-width: 22ch;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 1.05rem;
  max-width: 48ch;
  margin: 0 0 32px;
  color: var(--ink-soft);
}

.audit-bar-wrap { max-width: 620px; }

.hero-right {
  /* static — no sticky */
}

/* Label above the audit bar */
.audit-bar-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  margin: 0 0 10px;
}

@media (max-width: 900px) {
  .hero .container { max-width: 100%; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-left { max-width: 100%; }
  .hero-right { max-width: 560px; }
}

@media (max-width: 700px) {
  .hero { padding: 56px 0 48px; }
}

/* ---------- Method animation (hero right) ---------- */
.method-animation {
  background: var(--paper-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
}
.method-eyebrow {
  font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--muted); display: block; margin-bottom: 24px;
}
.method-track { position: relative; padding-left: 30px; display: flex; flex-direction: column; gap: 30px; }
.method-track::before {
  content: ''; position: absolute; left: 8px; top: 4px; bottom: 4px; width: 2px; background: var(--border);
}
.method-node { position: relative; }
.method-dot {
  position: absolute; left: -30px; top: 1px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.method-dot::after {
  content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-warm);
  opacity: 0; transform: scale(0.5);
  animation: method-pulse-dot 9s ease-in-out infinite;
  animation-delay: calc(var(--i) * 2.2s);
}
.method-label {
  font-family: var(--font-mono); font-size: 0.82rem; line-height: 1.5; color: var(--muted);
  animation: method-pulse-label 9s ease-in-out infinite;
  animation-delay: calc(var(--i) * 2.2s);
}
@keyframes method-pulse-dot {
  0%, 100% { opacity: 0; transform: scale(0.5); border-color: var(--border); }
  8% { opacity: 1; transform: scale(1.25); }
  16%, 30% { opacity: 1; transform: scale(1); }
  45% { opacity: 0; transform: scale(0.5); }
}
@keyframes method-pulse-label {
  0%, 100% { color: var(--muted); }
  12%, 30% { color: var(--ink); }
  45% { color: var(--muted); }
}
@media (prefers-reduced-motion: reduce) {
  .method-dot::after, .method-label { animation: none; opacity: 1; color: var(--ink); }
}

/* ---------- Audit bar (hero capture) ---------- */
.audit-bar {
  display: flex; align-items: stretch; gap: 6px;
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 999px; padding: 6px;
  box-shadow: 0 1px 3px rgba(18, 35, 61, 0.06);
}
.audit-bar input[type="text"] {
  flex: 1; border: none; background: transparent;
  padding: 14px 18px; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
}
.audit-bar input[type="text"]:focus { outline: none; }
.audit-bar .btn { border-radius: 999px; white-space: nowrap; }
.audit-bar-hint { text-align: left; font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); margin-top: 12px; }

.audit-form.hidden { display: none; }
.audit-confirm { display: none; text-align: center; padding: 10px 0; }
.audit-confirm.active { display: block; }
.audit-confirm h3 { margin-bottom: 8px; }

@media (max-width: 560px) {
  .audit-bar { flex-direction: column; border-radius: var(--radius-lg); }
  .audit-bar input[type="text"] { padding: 12px 14px; }
  .audit-bar .btn { border-radius: var(--radius); }
}

/* Loading / error / results states */
.audit-form.hidden { display: none; }
.audit-loading, .audit-error, .audit-results { display: none; }
.audit-loading.active, .audit-error.active, .audit-results.active { display: block; }

.audit-loading {
  text-align: center; padding: 18px 0;
  font-family: var(--font-mono); font-size: 0.85rem; color: var(--ink-soft);
}
.audit-loading .dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink); margin-right: 10px; vertical-align: middle;
  animation: loading-pulse 1s ease-in-out infinite;
}
@keyframes loading-pulse { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }

.audit-error { text-align: center; padding: 14px 0; }
.audit-error p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }

.audit-results { text-align: left; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }

/* match line */
.audit-match { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.audit-match b { color: var(--ink); }
.audit-match a { color: var(--accent); text-decoration: underline; cursor: pointer; }

/* score + verdict */
.audit-verdict-row { display: flex; gap: 18px; align-items: center; }
.audit-dial { position: relative; width: 96px; height: 96px; flex-shrink: 0; }
.audit-dial svg { transform: rotate(-90deg); display: block; }
.audit-dial-track { fill: none; stroke: var(--border); stroke-width: 8; }
.audit-dial-arc { fill: none; stroke: var(--accent-warm); stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset 0.9s ease-out; }
.audit-dial-num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--ink); }
.audit-verdict-text { min-width: 0; }
.audit-score { font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted); margin: 0 0 4px; }
.audit-score b { font-family: var(--font-display); font-size: 1rem; color: var(--ink); font-weight: 700; }
.audit-context {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* notice (non-healthcare / website mismatch) */
.audit-notice { background: var(--accent-soft); color: var(--ink); border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; padding: 10px 14px; margin: 16px 0 0; font-size: 0.85rem; }

/* findings */
.audit-findings { list-style: none; margin: 16px 0 0; padding: 0; }
.af-row {
  display: grid; grid-template-columns: 10px 1fr auto; gap: 12px; align-items: start;
  padding: 11px 0; border-bottom: 1px solid var(--border);
  opacity: 0; transform: translateY(6px); transition: opacity 0.4s ease, transform 0.4s ease;
}
.af-row.in { opacity: 1; transform: translateY(0); }
.af-row:last-child { border-bottom: none; }
.af-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; background: var(--border); }
.af-dot.urgent { background: var(--accent-warm); }
.af-dot.clear { background: var(--forest); }
.af-body { min-width: 0; }
.af-title { display: block; font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.af-desc { display: block; font-size: 0.82rem; color: var(--muted); margin-top: 1px; }
.af-fig { font-family: var(--font-mono); font-size: 0.74rem; color: var(--ink-soft); white-space: nowrap; text-align: right; line-height: 1.35; }
.af-bench { color: var(--muted); }

/* "+N more" — a contact hook, not an expander */
.audit-more { background: var(--paper-alt); border-radius: var(--radius); padding: 12px 14px; margin: 14px 0 0; font-size: 0.85rem; color: var(--ink-soft); }
.audit-more b { color: var(--ink); }

/* CTA ladder: email report -> WhatsApp */
.audit-cta { margin-top: 16px; }
.audit-email-form { display: flex; gap: 8px; }
.audit-email-form input {
  flex: 1; padding: 11px 12px; border: 1.5px solid var(--border); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.9rem; background: var(--paper); color: var(--ink);
}
.audit-email-form input:focus { outline: none; border-color: var(--accent); }
.audit-email-form .btn { white-space: nowrap; }
.audit-email-msg { display: block; font-family: var(--font-mono); font-size: 0.78rem; margin-top: 8px; }
.audit-email-msg.ok { color: var(--accent-teal); }
.audit-email-msg.warn { color: var(--accent-warm); }
.audit-cta-wa { display: block; text-align: center; margin-top: 12px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); text-decoration: underline; }
.audit-cta-wa:hover { color: var(--accent); }

/* again link */
.audit-again { text-align: center; margin-top: 16px; }
.audit-again a, .audit-again span { font-family: var(--font-mono); font-size: 0.78rem; }
.audit-again a { color: var(--muted); text-decoration: underline; cursor: pointer; }
.audit-again a:hover { color: var(--accent); }
.audit-again span { color: var(--muted); }

/* ---------- Demo panel ---------- */
.demo-checking {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

.demo-pulse {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.demo-pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--accent-warm);
  animation: demo-ring-expand 1.6s ease-out infinite;
  opacity: 0;
}

.demo-pulse-dot {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--accent-warm);
}

@keyframes demo-ring-expand {
  0%   { transform: scale(0.7); opacity: 0.9; }
  100% { transform: scale(2.2); opacity: 0;   }
}

@media (prefers-reduced-motion: reduce) {
  .demo-pulse-ring { animation: none; opacity: 0.4; }
}

.demo-checking-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
}

.demo-checking[hidden] { display: none; }

.demo-redact { filter: blur(5px); user-select: none; }

/* Dimmed — when real audit is running */
.demo-panel[data-state="dimmed"] {
  opacity: 0.35;
  pointer-events: none;
  transition: opacity 250ms ease;
}

/* Gone — after crossfade completes */
.demo-panel[data-state="gone"],
.demo-panel[hidden] {
  display: none;
}

.audit-privacy-link { color: var(--muted); text-decoration: underline; }
.audit-privacy-link:hover { color: var(--accent); }

@media (max-width: 560px) {
  .audit-verdict-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .audit-email-form { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; transition: transform 0.15s ease, border-color 0.15s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--accent); }
.card .tag {
  font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted); display: block; margin-bottom: 10px;
}
.card h3 { margin-bottom: 10px; }
.card ul { padding-left: 18px; margin: 14px 0; color: var(--ink-soft); font-size: 0.92rem; }
.card ul li { margin-bottom: 6px; }
.card-price {
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted);
  border-top: 1px solid var(--border); padding-top: 14px; margin-top: 16px;
}

/* ---------- Service buckets (services.html) ---------- */
.service-bucket { margin-bottom: 80px; padding-bottom: 80px; border-bottom: 1px solid var(--border); }
.service-bucket:last-child { border-bottom: none; margin-bottom: 0; }
.service-bucket-header { margin-bottom: 36px; max-width: 640px; }
.service-bucket-intro { font-size: 1rem; color: var(--ink-soft); line-height: 1.65; margin: 12px 0 0; }
.service-bucket-cta { margin-top: 28px; }

/* ---------- How It Works (connected track) ---------- */
.hiw-track { display: flex; align-items: stretch; gap: 0; position: relative; }
.hiw-stage {
  flex: 1; position: relative; padding: 0 18px;
  opacity: 0; transform: translateY(14px); animation: hiw-rise 0.6s ease forwards;
}
.hiw-stage:nth-child(1) { animation-delay: 0.05s; }
.hiw-stage:nth-child(2) { animation-delay: 0.35s; }
.hiw-stage:nth-child(3) { animation-delay: 0.65s; }
@keyframes hiw-rise { to { opacity: 1; transform: translateY(0); } }

.hiw-num {
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--accent);
  border: 1.5px solid var(--accent-soft); background: var(--accent-soft);
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
  position: relative; z-index: 2;
}
.hiw-stage:last-child .hiw-num { background: var(--ink); border-color: var(--ink); color: var(--white); }

.hiw-connector { position: absolute; top: 15px; left: -50%; width: 100%; height: 1.5px; background: var(--border); z-index: 1; }
.hiw-stage:first-child .hiw-connector { display: none; }

.hiw-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 20px 22px; height: 100%; }
.hiw-stage:last-child .hiw-card { border-color: var(--ink); background: var(--primary-dark); }
.hiw-stage:last-child .hiw-card h3, .hiw-stage:last-child .hiw-card p { color: var(--white); }
.hiw-stage:last-child .hiw-card p { color: #A9B8CC; }
.hiw-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.hiw-card p { font-size: 0.92rem; margin: 0 0 12px; line-height: 1.55; }
.hiw-tag {
  font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--muted); display: inline-block;
}
.hiw-stage:last-child .hiw-tag { color: #7690AD; }

@media (max-width: 700px) {
  .hiw-track { flex-direction: column; gap: 20px; }
  .hiw-connector { display: none !important; }
}

/* ---------- Audit trust note ---------- */
.audit-trust-note {
  text-align: left; font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--muted); margin-top: 8px;
}

/* ---------- Audit results secondary CTA (email) ---------- */
.audit-cta-secondary { text-align: center; margin-top: 10px; }
.audit-cta-secondary a { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); text-decoration: underline; }
.audit-cta-secondary a:hover { color: var(--accent); }

/* ---------- Testimonial / proof (kept for testimonials.html) ---------- */
.proof-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center;
}
.quote {
  font-family: var(--font-body); font-style: italic; font-size: 1.15rem; color: var(--ink);
  border-left: 3px solid var(--accent); padding-left: 20px; margin: 0 0 14px;
}
.quote-attr { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 20px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; color: var(--ink);
}
.faq-q .icon { font-family: var(--font-mono); color: var(--accent); font-size: 1.2rem; flex-shrink: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-a-inner { padding: 0 0 20px; color: var(--ink-soft); max-width: 640px; }
.faq-item.open .faq-a { max-height: 400px; }

/* ---------- Forms (contact etc.) ---------- */
.form-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; }
.field { margin-bottom: 14px; }
.field label {
  display: block; font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-soft);
  margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.04em;
}
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.98rem; background: var(--paper); color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--white); }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary-dark); color: #A9B8CC; padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-grid h4 { color: var(--white); font-size: 0.85rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: #A9B8CC; text-decoration: none; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--white); }
.footer-logo { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--white); margin-bottom: 12px; display: block; }
.footer-tag { font-size: 0.92rem; max-width: 280px; color: #8DA0BC; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px;
  display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.75rem;
  color: #7690AD; flex-wrap: wrap; gap: 12px;
}
.footer-bottom a { color: #7690AD; }

/* ---------- Page header (inner pages) ---------- */
.page-header { padding: 56px 0 40px; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.legal-body h2 { margin-top: 2em; font-size: 1.3rem; }
.legal-body p, .legal-body li { color: var(--ink-soft); }
.legal-body { max-width: 760px; }

.about-contact-line { font-family: var(--font-mono); font-size: 0.85rem; color: var(--muted); margin-top: 24px; }
.about-contact-line a { color: var(--accent); }

/* ---------- Step 4: pain / process / who's-behind ---------- */
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pain { border-left: 2px solid var(--border); padding: 4px 0 4px 18px; }
.pain-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--white); border: 1px solid var(--border); color: var(--ink); margin-bottom: 14px; }
.pain-icon svg { width: 20px; height: 20px; }
.pain h3 { font-size: 1.05rem; margin-bottom: 8px; }
.pain p { font-size: 0.95rem; margin: 0; }
.pain-note { margin-top: 34px; font-family: var(--font-mono); font-size: 0.82rem; color: var(--muted); }
.pain-note a { color: var(--forest); }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 32px;
}

.service-card {
  background: var(--paper);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.service-card h3 {
  font-size: 1.15rem;
  line-height: 1.25;
  margin: 0;
}

.service-card p {
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
}

.service-covers {
  font-size: 0.84rem !important;
  color: var(--muted) !important;
}

.service-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

@media (max-width: 700px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 28px 24px; }
}

.process-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 22px; position: relative; }
.process-flow::before {
  content: ''; position: absolute; left: 16px; right: 16px; top: 16px; height: 2px;
  background: var(--border); z-index: 0;
}
.pf-step { position: relative; z-index: 1; padding-top: 0; }
.pf-mark {
  width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.85rem; font-weight: 600;
  background: var(--paper); color: var(--ink); border: 2px solid var(--border);
}
.pf-step h3 { font-size: 1.02rem; margin: 16px 0 6px; }
.pf-step p { font-size: 0.92rem; margin: 0; line-height: 1.55; }
.pf-step.is-fix .pf-mark { background: var(--forest); border-color: var(--forest); color: var(--white); }
.pf-step.is-contact .pf-mark { background: var(--accent-warm); border-color: var(--accent-warm); color: var(--white); }
/* sequential settle when the row scrolls in */
.process-flow .pf-step { opacity: 0; transform: translateY(10px); transition: opacity 0.45s ease, transform 0.45s ease; }
.process-flow.in .pf-step { opacity: 1; transform: translateY(0); transition-delay: calc(var(--i) * 130ms); }
@media (prefers-reduced-motion: reduce) {
  .process-flow .pf-step { opacity: 1; transform: none; transition: none; }
}

.process-alt {
  margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
}
.process-alt p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }

.who-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: center; }
.who-photo { position: relative; display: grid; place-items: center; border-radius: var(--radius-lg); overflow: hidden; background: var(--paper-alt); border: 1px solid var(--border); aspect-ratio: 4 / 5; }
.who-photo::after { content: 'Photo'; position: absolute; font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); letter-spacing: 0.08em; }
.who-photo img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block; }
.who-text h2 { max-width: 20ch; }
.who-text .btn { margin-top: 8px; }

@media (max-width: 820px) {
  .pain-grid { grid-template-columns: 1fr; gap: 20px; }
  .process-flow { grid-template-columns: 1fr; gap: 24px; }
  .process-flow::before { display: none; }
  .pf-step { display: grid; grid-template-columns: 34px 1fr; column-gap: 14px; }
  .pf-step h3 { margin-top: 4px; grid-column: 2; }
  .pf-step p { grid-column: 2; }
  .who-grid { grid-template-columns: 1fr; gap: 28px; }
  .who-photo { max-width: 280px; }
  .process-alt { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .hiw-track { flex-direction: column; }
  .proof-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .footer-bottom { flex-direction: column; }
}
