/* ============================================================
   Lakehouse Delivery Partners — Design System
   Tokens: paper, ink, lake, reed, sediment, mist
   Type: Fraunces (display) + Public Sans (body/UI) + IBM Plex Mono (code)
   ============================================================ */

:root {
  --paper: #F7F8F9;
  --paper-strong: #F0F3F4;
  --ink: #111827;
  --ink-soft: #374151;
  --lake: #0F766E;
  --lake-deep: #0A5C58;
  --reed: #14B8A6;
  --sediment: #E5E7EB;
  --sediment-deep: #D1D5DB;
  --mist: #EEF2F3;
  --mist-strong: #E5E7EB;
  --shadow: rgba(17, 24, 39, 0.05);
  --shadow-strong: rgba(17, 24, 39, 0.09);

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --container: 1160px;
  --radius: 12px;
  --radius-sm: 10px;

  --step--1: clamp(0.85rem, 0.82rem + 0.15vw, 0.95rem);
  --step-0: clamp(1.05rem, 1rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.4vw, 1.5rem);
  --step-2: clamp(1.55rem, 1.4rem + 0.7vw, 1.9rem);
  --step-3: clamp(1.9rem, 1.6rem + 1.2vw, 2.5rem);
  --step-4: clamp(2.4rem, 1.9rem + 2vw, 3.25rem);
  --step-5: clamp(2.8rem, 2.1rem + 3vw, 4rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h1 { font-size: var(--step-5); font-weight: 560; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); font-family: var(--font-body); font-weight: 700; }

p { margin: 0 0 1em; max-width: 62ch; }
p.lead { font-size: var(--step-1); max-width: 48ch; color: #2C4247; }
.measure-wide { max-width: 72ch; }

a { color: var(--lake); text-underline-offset: 0.15em; }
a:hover { color: var(--reed); }

code, .mono { font-family: var(--font-mono); font-size: 0.92em; }
pre {
  font-family: var(--font-mono);
  background: var(--ink);
  color: #DCEFEC;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.6;
}
pre .muted { color: #7FA5A0; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 0.75rem 1.25rem;
  z-index: 1000; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2.5px solid var(--sediment); outline-offset: 2px; }

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

/* ---------- Header / Nav ---------- */
.site-header {
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  background: rgba(255,255,255,0.88);
  backdrop-filter: saturate(120%) blur(8px);
  position: sticky; top: 0; z-index: 100;
  box-shadow: none;
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0;
}
.wordmark {
  font-family: var(--font-display); font-weight: 600; font-size: 1.25rem;
  color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 0.55rem;
}
.wordmark:hover { color: var(--ink); }
.wordmark .mark { color: var(--lake); }
.nav-links {
  display: flex; align-items: center; gap: 2rem;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.98rem;
}
.nav-links a[aria-current="page"] { color: var(--lake); }
.nav-links a:hover { color: var(--lake); }
.nav-cta {
  display: inline-flex; align-items: center;
  background: var(--ink);
  color: #fff;
  padding: 0.68rem 1.2rem; border-radius: 999px;
  font-weight: 700; text-decoration: none; font-size: 0.95rem;
  box-shadow: none;
}
.nav-cta:hover { background: var(--lake); color: #fff; }

.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--ink); border-radius: var(--radius);
  padding: 0.45rem 0.6rem; cursor: pointer;
}
.nav-toggle svg { display: block; }

@media (max-width: 860px) {
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; background: var(--paper);
    flex-direction: column; align-items: flex-start; gap: 0; border-bottom: 1px solid var(--mist);
    max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
  .nav-links.open { max-height: 320px; }
  .nav-links li { width: 100%; }
  .nav-links a, .nav-links .nav-cta { display: block; padding: 1rem 1.5rem; width: 100%; border-top: 1px solid var(--mist); border-radius: 0; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 700; font-size: 0.98rem;
  padding: 0.88rem 1.45rem; border-radius: 999px;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  box-shadow: none;
}
.btn:hover { transform: none; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--lake); color: #fff; }
.btn-ghost { border-color: rgba(17, 24, 39, 0.12); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--lake); color: var(--lake); }
.btn-ghost-light { border-color: rgba(255,255,255,0.3); color: #fff; background: rgba(255,255,255,0.03); }
.btn-ghost-light:hover { border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.75rem; }

/* ---------- Hero ---------- */
.hero {
  padding: 4.5rem 0 3.5rem;
  position: relative;
}
.hero::before { display: none; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.85fr; gap: 3rem; align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero h1 { max-width: 14ch; }
.hero-diagram {
  width: 100%; height: auto;
  display: block;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

/* ---------- Section rhythm ---------- */
section { padding: 4.5rem 0; }
.section-tight { padding: 3rem 0; }
.section-head { max-width: 56ch; margin-bottom: 2.75rem; }
.section-band {
  background: #f2f5f5;
  border-top: 1px solid rgba(17, 24, 39, 0.06);
  border-bottom: 1px solid rgba(17, 24, 39, 0.06);
}
.section-dark { background: #111827; color: #EAF2F1; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: #B9D2CE; }
.section-dark a:not(.btn) { color: #9FDCD3; }

hr.rule { border: none; border-top: 1px solid var(--mist); margin: 0; }

/* ---------- Definition-style list (problem section) ---------- */
.issue-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid rgba(18,36,42,0.08); }
@media (max-width: 760px) { .issue-list { grid-template-columns: 1fr; } }
.issue {
  padding: 2rem 2.25rem 2rem 0; border-bottom: 1px solid rgba(18,36,42,0.08);
}
.issue:nth-child(odd) { border-right: 1px solid rgba(18,36,42,0.08); padding-left: 0; }
.issue:nth-child(even) { padding-left: 2.25rem; }
@media (max-width: 760px) { .issue:nth-child(odd), .issue:nth-child(even) { border-right: none; padding-left: 0; } }
.issue h3 { font-size: var(--step-1); font-family: var(--font-body); font-weight: 700; margin-bottom: 0.4em; }
.issue p { color: #3E5459; margin: 0; max-width: 44ch; }

/* ---------- Capability grid (the stack) ---------- */
.cap-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid rgba(17,24,39,0.08); border-left: 1px solid rgba(17,24,39,0.08); }
@media (min-width: 760px) { .cap-grid { grid-template-columns: repeat(4, 1fr); } }
.cap {
  border-right: 1px solid rgba(17,24,39,0.08); border-bottom: 1px solid rgba(17,24,39,0.08);
  padding: 1.75rem 1.5rem; min-height: 190px; display: flex; flex-direction: column; gap: 0.6rem;
  background: rgba(255,255,255,0.35);
  transition: none;
}
.cap:hover { transform: none; box-shadow: none; }
.cap svg { width: 26px; height: 26px; color: var(--lake); }
.cap h4 { margin: 0; font-size: 1.05rem; }
.cap p { margin: 0; font-size: 0.94rem; color: #3E5459; }
.cap a.jump { font-size: 0.88rem; font-weight: 700; text-decoration: none; margin-top: auto; }

/* ---------- Numbered process ---------- */
.process-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--mist); }
.process-item { display: grid; grid-template-columns: 3rem 1fr; gap: 1.25rem; padding: 1.75rem 0; border-bottom: 1px solid var(--mist); }
.process-num { font-family: var(--font-display); font-size: 1.5rem; color: var(--lake); font-weight: 600; }
.process-item h3 { font-size: var(--step-1); font-family: var(--font-body); font-weight: 700; margin-bottom: 0.3em; }
.process-item p { margin: 0; color: #3E5459; }

/* ---------- Comparison table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid rgba(17,24,39,0.08); border-radius: var(--radius); box-shadow: none; }
table.compare { width: 100%; border-collapse: collapse; min-width: 680px; background: rgba(255,255,255,0.7); }
table.compare caption { text-align: left; font-weight: 700; padding: 1rem 1.25rem; border-bottom: 1px solid rgba(17,24,39,0.08); }
table.compare th, table.compare td { text-align: left; padding: 1rem 1.25rem; border-bottom: 1px solid rgba(17,24,39,0.08); vertical-align: top; font-size: 0.95rem; }
table.compare thead th { font-family: var(--font-body); font-weight: 700; background: #f4f6f7; }
table.compare th[scope="row"] { font-weight: 700; white-space: nowrap; }
table.compare td.us, table.compare th.us { background: rgba(15,118,110,0.03); }
table.compare tbody tr:last-child td, table.compare tbody tr:last-child th { border-bottom: none; }

/* ---------- Pricing cards ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: start; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card { border: 1.5px solid rgba(17,24,39,0.08); border-radius: var(--radius); padding: 2rem; background: #fff; display: flex; flex-direction: column; gap: 1.1rem; box-shadow: none; }
.price-card.featured { border-color: rgba(15,118,110,0.28); box-shadow: none; }
.price-card .tag { font-size: 0.85rem; font-weight: 700; color: var(--lake); }
.price-card h3 { font-size: 1.4rem; margin-bottom: 0; }
.price-card .price { font-family: var(--font-display); font-size: 1.9rem; color: var(--ink); }
.price-card .sub { color: #3E5459; font-size: 0.92rem; margin-top: -0.6rem; }
.price-card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.price-card li { padding-left: 1.4rem; position: relative; font-size: 0.95rem; color: #2C4247; }
.price-card li::before { content: "\2713"; position: absolute; left: 0; color: var(--lake); font-weight: 700; }
.price-card .btn { margin-top: auto; justify-content: center; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid rgba(18,36,42,0.08); }
.faq-item { border-bottom: 1px solid rgba(18,36,42,0.08); }
.faq-item summary {
  cursor: pointer; padding: 1.4rem 0; font-weight: 700; font-size: 1.05rem;
  display: flex; justify-content: space-between; align-items: center; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--font-display); font-size: 1.4rem; color: var(--lake); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding-bottom: 1.4rem; color: #3E5459; max-width: 68ch; }

/* ---------- CTA band ---------- */
.cta-band { text-align: left; }
.cta-band .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2rem; }
.cta-band h2 { margin-bottom: 0.3em; }
.cta-band p { margin: 0; color: #B9D2CE; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; max-width: 640px; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field.full { grid-column: 1 / -1; }
label { font-weight: 700; font-size: 0.92rem; }
input, select, textarea {
  font-family: var(--font-body); font-size: 1rem; padding: 0.8rem 0.95rem;
  border: 1.5px solid rgba(18,36,42,0.12); border-radius: var(--radius-sm); background: rgba(255,255,255,0.75); color: var(--ink);
  box-shadow: inset 0 1px 2px rgba(18,36,42,0.02);
}
input:focus, select:focus, textarea:focus { border-color: var(--lake); box-shadow: 0 0 0 4px rgba(11,110,118,0.08); }
textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.85rem; color: #3E5459; max-width: 640px; }

/* ---------- Contact strip ---------- */
.contact-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; border-top: 1px solid var(--mist); padding-top: 2.5rem; margin-top: 2.5rem; }
@media (max-width: 760px) { .contact-strip { grid-template-columns: 1fr; } }
.contact-strip h4 { font-size: 0.95rem; text-transform: none; margin-bottom: 0.3em; }
.contact-strip a { font-weight: 700; text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer { background: #111827; color: #B9D2CE; padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; } }
.footer-grid h4 { color: #fff; font-size: 0.95rem; margin-bottom: 0.9rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-grid a { color: #B9D2CE; text-decoration: none; font-size: 0.95rem; }
.footer-grid a:hover { color: #fff; }
.footer-word { font-family: var(--font-display); font-size: 1.3rem; color: #fff; margin-bottom: 0.6rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: 0.85rem; color: #7FA5A0; }
.footer-stack-note { font-size: 0.85rem; color: #7FA5A0; max-width: 60ch; }

/* ---------- Utility ---------- */
.eyebrow-plain { font-weight: 700; color: var(--lake); font-size: 0.95rem; margin-bottom: 0.6rem; }
.kicker-page { padding: 2.5rem 0 0.5rem; }
.text-center { text-align: center; }
