/* Alza Partners — shared styles */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #FAF8F4;
  --surface: #FFFFFF;
  --ink:     #14213D;
  --muted:   #4A5263;
  --accent:  #1F4D3A;
  --accent-ink: #163A2B;
  --tint:    #EEF2EC;
  --line:    #E6E1D8;
  --amber:   #7A4E0B;
  --serif:   'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --max:     1100px;
  --gutter:  clamp(1.25rem, 5vw, 2.5rem);
  --r:       10px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-ink); }

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

.skip {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: 6px;
}
.skip:focus { top: 1rem; color: #fff; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
section[id] { scroll-margin-top: 80px; }

/* ── Type ─────────────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); letter-spacing: -0.015em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.75rem); line-height: 1.04; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.85rem); line-height: 1.12; }
h3 { font-size: 1.35rem; line-height: 1.25; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.lede { font-size: clamp(1.08rem, 1.8vw, 1.22rem); color: var(--muted); line-height: 1.65; max-width: 38rem; }
.muted { color: var(--muted); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0 1.5rem;
  background: var(--accent); color: #fff;
  font: 600 0.98rem/1 var(--sans);
  border-radius: 8px; text-decoration: none;
  transition: background-color 0.2s ease;
}
.btn:hover { background: var(--accent-ink); color: #fff; }
.btn-sm { min-height: 40px; padding: 0 1.1rem; font-size: 0.9rem; }
.btn-light { background: #fff; color: var(--accent); }
.btn-light:hover { background: var(--tint); color: var(--accent-ink); }

.text-link { font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ── Nav ──────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 248, 244, 0.94);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 68px; }
.wordmark {
  font-family: var(--serif); font-size: 1.35rem; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.wordmark:hover { color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a { color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.nav-links a:hover { color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 2rem; }
@media (max-width: 760px) { .nav-links { display: none; } }

/* Mobile menu */
.menu-toggle {
  display: none;
  width: 44px; height: 44px; margin-right: -10px;
  align-items: center; justify-content: center;
  background: none; border: 0; border-radius: 8px;
  color: var(--ink); cursor: pointer;
}
.menu-toggle:hover { color: var(--accent); }
.menu-toggle path { transition: transform 0.2s ease, opacity 0.2s ease; transform-origin: 12px 12px; }
.menu-toggle[aria-expanded="true"] .l1 { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .l2 { opacity: 0; }
.menu-toggle[aria-expanded="true"] .l3 { transform: translateY(-5px) rotate(-45deg); }
@media (prefers-reduced-motion: reduce) { .menu-toggle path { transition: none; } }

.mobile-menu { border-top: 1px solid var(--line); background: var(--bg); }
.mobile-menu ul { list-style: none; padding-top: 0.5rem; padding-bottom: 1rem; }
.mobile-menu li + li { border-top: 1px solid var(--line); }
.mobile-menu a {
  display: block; padding: 0.95rem 0;
  color: var(--ink); text-decoration: none;
  font-family: var(--serif); font-size: 1.3rem;
}
.mobile-menu a:hover { color: var(--accent); }

@media (max-width: 760px) {
  .nav-right { gap: 0.75rem; }
  .menu-toggle { display: inline-flex; }
}
@media (min-width: 761px) { .mobile-menu { display: none; } }

/* ── Sections ─────────────────────────────────────────────── */
.section { padding: clamp(4.5rem, 10vw, 8rem) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 44rem; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.section-head h2 { margin-bottom: 1rem; }

/* Hero */
.hero { padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(4.5rem, 9vw, 7rem); }
.hero-grid { display: grid; gap: clamp(3rem, 6vw, 4.5rem); align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; } }
.hero h1 { margin-bottom: 1.5rem; }
.hero .lede { margin-bottom: 2.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-bottom: 2rem; }
.hero-note { font-size: 0.92rem; color: var(--muted); display: flex; gap: 0.6rem; align-items: flex-start; max-width: 34rem; }
.hero-note svg { flex-shrink: 0; margin-top: 0.2rem; color: var(--accent); }

/* Tracker card */
.tracker {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(20,33,61,0.04), 0 12px 32px -12px rgba(20,33,61,0.12);
  overflow: hidden;
  max-width: 460px; width: 100%;
  justify-self: center;
}
.tracker-head {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--line);
}
.tracker-title { font-weight: 600; font-size: 0.95rem; }
.tag {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0.2rem 0.6rem;
}
.tracker-meta { font-size: 0.8rem; color: var(--muted); padding: 0.75rem 1.25rem 0; }
.tracker ul { list-style: none; padding: 0.5rem 1.25rem 1.25rem; }
.tracker li { padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.tracker li:last-child { border-bottom: 0; padding-bottom: 0; }
.client { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.45rem; }
.docs { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.doc {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.8rem; line-height: 1.2; padding: 0.3rem 0.6rem; border-radius: 6px;
}
.doc.ok { background: var(--tint); color: var(--accent); }
.doc.wait { background: #FBF3E4; color: var(--amber); }
.doc svg { width: 13px; height: 13px; }

/* Problem */
.problem-list { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .problem-list { grid-template-columns: 1fr 1fr; column-gap: 3rem; } }
.problem-list li {
  display: flex; gap: 1rem; align-items: baseline;
  padding: 1.35rem 0; border-bottom: 1px solid var(--line);
  font-size: 1.08rem;
}
.problem-list .n { font-family: var(--serif); color: var(--accent); font-size: 1rem; min-width: 1.75rem; }

/* Cards */
.cards { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(1.75rem, 3vw, 2.25rem);
}
.icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--tint); color: var(--accent);
  margin-bottom: 1.5rem;
}
.card h3 { margin-bottom: 0.9rem; }
.card ul { list-style: none; display: grid; gap: 0.55rem; }
.card li { color: var(--muted); padding-left: 1.1rem; position: relative; font-size: 0.98rem; }
.card li::before { content: ''; position: absolute; left: 0; top: 0.7em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* Steps */
.steps { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--ink); }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { padding: 1.75rem 1.5rem 1.75rem 0; }
@media (max-width: 759px) { .steps li { border-bottom: 1px solid var(--line); } }
.step-n { font-family: var(--serif); font-size: 2.25rem; color: var(--accent); line-height: 1; margin-bottom: 1.25rem; display: block; }
.steps h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.steps p { color: var(--muted); font-size: 0.98rem; }

/* Guarantee band */
.band { background: var(--accent); color: #fff; padding: clamp(4rem, 9vw, 6.5rem) 0; }
.band .eyebrow { color: #CFE3D6; }
.band blockquote {
  font-family: var(--serif); font-size: clamp(1.5rem, 3.2vw, 2.3rem); line-height: 1.3;
  max-width: 52rem; letter-spacing: -0.01em;
}

/* Security */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 900px) { .split { grid-template-columns: 0.9fr 1.1fr; } }
.checklist { list-style: none; border-top: 1px solid var(--line); }
.checklist li { display: flex; gap: 1rem; align-items: flex-start; padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
.checklist svg { flex-shrink: 0; margin-top: 0.25rem; color: var(--accent); }

/* Founding */
.founding { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: clamp(2rem, 6vw, 4rem); display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .founding { grid-template-columns: 1.4fr auto; } }
.founding h2 { margin-bottom: 1rem; }

/* About */
.about { max-width: 48rem; }
.about p:not(.eyebrow) { font-family: var(--serif); font-size: clamp(1.35rem, 2.6vw, 1.85rem); line-height: 1.4; }

/* FAQ */
.faq { border-top: 1px solid var(--line); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.35rem 0; font-weight: 600; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex-shrink: 0; width: 20px; height: 20px; position: relative; color: var(--accent); }
.faq summary .pm::before, .faq summary .pm::after { content: ''; position: absolute; left: 3px; right: 3px; top: 9px; height: 2px; background: currentColor; border-radius: 1px; transition: transform 0.2s ease; }
.faq summary .pm::after { transform: rotate(90deg); }
.faq details[open] summary .pm::after { transform: rotate(0deg); }
.faq details p { color: var(--muted); padding: 0 2.5rem 1.5rem 0; max-width: 44rem; }

/* Final CTA */
.final { text-align: center; }
.final h2 { font-size: clamp(2.2rem, 5vw, 3.5rem); margin-bottom: 2rem; }
.final .alt { margin-top: 1.25rem; color: var(--muted); font-size: 0.98rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0; font-size: 0.92rem; color: var(--muted); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.footer-row ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }

/* Legal / simple pages */
.legal { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.legal .wrap { max-width: 46rem; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 0.75rem; }
.legal .updated { color: var(--muted); margin-bottom: 2.5rem; font-size: 0.95rem; }
.legal h2 { font-size: 1.5rem; margin: 2.5rem 0 0.75rem; }
.legal p, .legal li { color: var(--ink); margin-bottom: 0.9rem; }
.legal ul { padding-left: 1.25rem; margin-bottom: 1rem; }
.notfound { min-height: 60vh; display: grid; align-content: center; }
.notfound p { margin: 1rem 0 2rem; }

/* Fade-in (only when JS adds .js and motion is OK) */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
