@layer page {
/* Meridian · homepage (/)
   Light by default, dark via prefers-color-scheme. No JS, no inline styles (strict CSP).
   Token values come from the approved design canvas (Home.dc.html renderVals). */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: break-word;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: var(--accent-text); }

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

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

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 10;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--bg); }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* SVG colour hooks: presentation attributes are the light fallback, CSS switches them per theme */
.ink-fill { fill: var(--ink); }
.ink-stroke { stroke: var(--ink); }
.tile-fill { fill: var(--tile); }
.card-fill { fill: var(--card); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 16px 22px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--accent-fill); color: var(--on-accent); font-weight: 800; }
.btn-accent:hover { background: #CC661C; color: var(--on-accent); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost-feature { border: 1px solid var(--feature-line); color: var(--feature-ink); }
.btn-ghost-feature:hover { border-color: var(--feature-ink); color: var(--feature-ink); }
@media (prefers-color-scheme: dark) {
  .btn-accent:hover { background: #D8864D; }
}

/* ---------- Header ---------- */
.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand-mark { width: 30px; height: 30px; flex-shrink: 0; }
.brand-word { font-size: 22px; font-weight: 800; letter-spacing: -0.6px; }

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
}
.nav-link { color: var(--muted); text-decoration: none; }
.nav-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.nav-cta {
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
}
.nav-cta:hover { color: var(--bg); background: var(--muted); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: 48px;
  padding-bottom: 64px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: center;
}
.globe {
  position: absolute;
  right: -40px;
  top: -30px;
  width: 680px;
  height: 680px;
  max-width: none;
  pointer-events: none;
}
.globe-grid { stroke-opacity: var(--globe-grid); }
.globe-strong { stroke-opacity: var(--globe-strong); }

.hero-copy {
  position: relative;
  flex: 999 1 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.hero-copy h1 {
  font-size: 64px;
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -2px;
}
.hero-lede {
  font-size: 20px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 520px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.channels { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.channel {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--chip);
}
.channel svg { flex-shrink: 0; }

/* pipeline illustration */
.pipeline {
  position: relative;
  flex: 1 1 380px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  gap: 14px;
  align-items: center;
  box-shadow: var(--shadow);
}
.step-2 { margin-left: 28px; }
.step-3 { margin-left: 56px; }
.step-4 { margin-left: 84px; }
.step-reply {
  background: var(--feature);
  color: var(--feature-ink);
  border-color: var(--feature);
}
.step-booked { border: 2px solid var(--accent); padding: 15px 17px; }
.step-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--chip);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-reply .step-icon { background: var(--accent-fill); }
.step-text { flex: 1; min-width: 0; }
.step-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--accent-text);
}
.step-reply .step-label { color: var(--reply-label); }
.step-body { font-size: 15px; font-weight: 700; line-height: 1.4; }
.step-ok {
  font-size: 12px;
  font-weight: 800;
  color: var(--ok);
  background: var(--ok-bg);
  padding: 4px 8px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ---------- Services ---------- */
.services { background: var(--band); padding: 72px 0; }
.services-inner { display: flex; flex-direction: column; gap: 24px; }
.section-title {
  font-size: 40px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -1px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.card {
  text-decoration: none;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.card:hover {
  color: var(--ink);
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.card:focus-visible { border-radius: 20px; }
@media (prefers-reduced-motion: reduce) { .card, .card:hover { transition: none; transform: none; } }

.card-tile {
  height: 180px;
  background: var(--tile);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-tile-pair { gap: 28px; }
.card-tile svg { flex-shrink: 1; min-width: 0; }

.card-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.card-eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--accent-text);
}
.card-eyebrow-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.badge-new {
  font-size: 11px;
  font-weight: 800;
  background: var(--new-bg);
  color: var(--new-fg);
  padding: 2px 8px;
  border-radius: 999px;
  line-height: 14px;
}
.card-title { font-size: 22px; line-height: 1.25; font-weight: 800; letter-spacing: -0.4px; }
.card-text { font-size: 15px; line-height: 1.5; color: var(--muted); flex: 1; }
.card-cta {
  font-size: 15px;
  font-weight: 800;
  color: var(--accent-text);
  margin-top: 6px;
}
.card:hover .card-cta { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- How ---------- */
.how {
  padding-top: 80px;
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.how-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
}
.how-sub { font-size: 16px; color: var(--muted); }

.flow { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.flow-step {
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.flow-icon {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: var(--feature);
  display: flex;
  align-items: center;
  justify-content: center;
}
.flow-icon-accent { background: var(--accent-fill); }
.flow-title { font-size: 26px; line-height: 1.2; font-weight: 800; }
.flow-text { font-size: 15px; color: var(--muted); }
.flow-arrow { flex-shrink: 0; }
.flow-arrow svg { width: 48px; height: 24px; }

.promises { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.promise {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.tick { color: var(--accent-text); flex-shrink: 0; }

/* ---------- Founders + contact ---------- */
.team { background: var(--feature); color: var(--feature-ink); padding: 72px 0; }
.team :focus-visible { outline-color: var(--focus-on-feature); }
.team-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: space-between;
}
.contact { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.contact .section-title { line-height: 1.1; }
.contact-sub { font-size: 18px; opacity: 0.85; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

.founders { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.founder {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--feature-card);
  border-radius: 16px;
  padding: 16px 18px;
}
.founder picture { flex-shrink: 0; }
.founder-photo {
  width: 64px;
  height: 64px;
  border-radius: 32px;
  object-fit: cover;
}
.founder-initials {
  width: 64px;
  height: 64px;
  border-radius: 32px;
  flex-shrink: 0;
  background: var(--accent-fill);
  color: var(--on-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
}
.founder-text { flex: 1; min-width: 0; }
.founder-name { font-size: 17px; font-weight: 800; }
.founder-role { font-size: 14px; opacity: 0.75; }
.founder-link {
  color: var(--feature-ink);
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  text-underline-offset: 3px;
}
.founder-link:hover { color: var(--feature-ink); text-decoration-thickness: 2px; }

/* ---------- Footer ---------- */
.site-footer { padding: 36px 0 44px; }
.footer-inner { display: flex; flex-direction: column; gap: 22px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 28px 56px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; font-size: 14px; align-items: flex-start; }
.footer-head { font-weight: 800; color: var(--ink); }
.footer-col a { color: var(--muted); text-decoration: none; }
.footer-col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-legal { font-size: 13px; line-height: 1.6; color: var(--muted); }

/* ---------- Medium screens ---------- */
@media (max-width: 860px) {
  .flow { flex-direction: column; align-items: stretch; gap: 8px; }
  .flow-step { flex: none; }
  .flow-arrow { padding-left: 12px; }
  .flow-arrow svg { transform: rotate(90deg); }
}

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  
  .site-header { padding-top: 16px; padding-bottom: 16px; gap: 12px; }
  .main-nav { gap: 6px 16px; font-size: 14px; width: 100%; justify-content: space-between; }
  .nav-cta { padding: 10px 14px; }

  .hero { padding-top: 28px; padding-bottom: 48px; gap: 36px; }
  .globe { width: 440px; height: 440px; right: -150px; top: -20px; }
  .hero-copy { gap: 18px; flex-basis: 100%; }
  .hero-copy h1 { font-size: 42px; letter-spacing: -1.2px; line-height: 1.05; }
  .hero-lede { font-size: 18px; }
  .hero-actions .btn { flex: 1 1 auto; }

  .pipeline { flex-basis: 100%; gap: 10px; }
  .step { padding: 14px; gap: 12px; }
  .step-booked { padding: 13px; }
  .step-2 { margin-left: 12px; }
  .step-3 { margin-left: 24px; }
  .step-4 { margin-left: 36px; }
  .step-body { font-size: 14px; }

  .services { padding: 56px 0; }
  .section-title { font-size: 30px; letter-spacing: -0.6px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .card-tile { height: 160px; }
  .card-body { padding: 20px; }

  .how { padding-top: 56px; padding-bottom: 56px; gap: 28px; }
  .promise { width: 100%; }

  .team { padding: 56px 0; }
  .contact-actions .btn { flex: 1 1 auto; }
  .founder { padding: 14px; gap: 12px; }
  .founder-photo, .founder-initials { width: 52px; height: 52px; border-radius: 26px; }
  .founder-initials { font-size: 18px; }
}

@media (max-width: 380px) {
  .hero-copy h1 { font-size: 38px; }
  .main-nav { gap: 6px 8px; font-size: 13.5px; }
  .nav-cta { padding: 10px 12px; }
  .step-ok { padding: 3px 6px; }
}
}
