/* Crowe Psychedelics landing page
   Mobile-first, iconic, biotech-editorial. Built with progressive
   enhancement — base styles target the narrowest viewport first,
   larger breakpoints layer on via min-width. */

:root {
  --ink:       #0c0f14;
  --ink-2:     #1e2430;
  --ink-dim:   #3b4252;
  --ink-soft:  #5a6478;
  --line:      #e3e6ec;
  --line-2:    #cfd4de;
  --paper:     #ffffff;
  --cream:     #f6f4ee;
  --cream-2:   #efece4;
  --accent:    #1a4b8a;
  --accent-hi: #2563a6;
  --accent-10: #1a4b8a1a;
  --gold:      #b28434;
  --mycelium:  #3a5a3a;
  --danger:    #a03030;

  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Source Serif Pro", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --shadow-card: 0 1px 2px rgba(12, 15, 20, 0.04), 0 4px 14px rgba(12, 15, 20, 0.04);
  --shadow-pop:  0 6px 24px -8px rgba(26, 75, 138, 0.28);
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
}

/* ─── Reset ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.6;
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  font-feature-settings: "cv11", "ss01", "ss03";
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* ─── Top bar (mobile-first) ─────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  gap: 12px;
}
.brand-link {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
}
.brand-mark { color: var(--accent); width: 24px; height: 24px; }
.brand-name {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.015em;
}
.brand-accent { color: var(--accent); }

/* Mobile: nav is hidden, toggle shown */
#nav {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 16px 20px;
  flex-direction: column;
  gap: 2px;
  box-shadow: var(--shadow-pop);
}
#nav.is-open { display: flex; }
#nav a {
  color: var(--ink-dim);
  font-size: 16px; font-weight: 500;
  padding: 14px 12px;
  border-radius: var(--r-sm);
  text-decoration: none;
}
#nav a:hover { background: var(--cream); color: var(--accent); }
.nav-cta {
  background: var(--ink) !important; color: var(--paper) !important;
  text-align: center; margin-top: 8px;
}
.nav-cta:hover { background: var(--accent) !important; }
.nav-toggle {
  background: transparent; border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 6px;
  color: var(--ink);
}

/* ─── Hero (mobile-first) ────────────────────────────────────────── */
.hero {
  padding: 48px 0 56px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--paper) 85%);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid; grid-template-columns: 1fr; gap: 32px;
  align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-soft);
  margin-bottom: 20px;
}
.eyebrow a { color: var(--accent); font-weight: 500; }
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-10);
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 8vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.h1-accent {
  color: var(--accent);
  font-style: italic;
}
.lede {
  font-size: clamp(16px, 3.8vw, 20px);
  line-height: 1.55;
  color: var(--ink-dim);
  margin: 0 0 28px;
  max-width: 60ch;
}
.cta-row {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 24px;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px;
  border-radius: var(--r-sm);
  font-weight: 600; font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  min-height: 44px; /* touch target */
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: var(--paper);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hi); border-color: var(--accent-hi);
  transform: translateY(-1px);
  box-shadow: var(--shadow-pop);
  text-decoration: none;
}
.btn-ghost {
  background: transparent; color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover { border-color: var(--ink); text-decoration: none; }
.hero-fine {
  font-size: 14px; color: var(--ink-soft);
  line-height: 1.6; margin: 24px 0 0;
}
.hero-fine a { color: var(--accent); font-weight: 500; }
.hero-fine em { color: var(--ink-dim); font-style: italic; }

/* Hero art */
.hero-art {
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--ink);
  order: -1; /* mobile: show SVG on top */
}
.mol-svg {
  width: 100%;
  max-width: 360px;
  height: auto;
}
.pulse {
  fill: var(--accent);
  opacity: 0.35;
  transform-origin: center;
  animation: pulse 3.2s ease-in-out infinite;
}
.p1 { animation-delay: 0s; }
.p2 { animation-delay: 0.7s; }
.p3 { animation-delay: 1.4s; }
.p4 { animation-delay: 2.1s; }
@keyframes pulse {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50%      { opacity: 0.75; transform: scale(1.25); }
}

/* ─── Trust strip (mobile-first) ─────────────────────────────────── */
.trust {
  padding: 32px 0;
  background: var(--ink);
  color: var(--paper);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.stat {
  display: flex; flex-direction: column; gap: 6px;
}
.stat-n {
  font-family: var(--serif);
  font-size: clamp(36px, 8vw, 52px);
  font-weight: 400;
  color: var(--paper);
  line-height: 1;
  display: inline-block;
}
.stat-n-suffix {
  font-family: var(--serif);
  font-size: clamp(24px, 5vw, 36px);
  color: var(--accent);
  margin-left: 2px;
}
.stat-l {
  font-size: 12px;
  color: #c3cedf;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.5;
}

/* ─── Slabs (mobile-first) ───────────────────────────────────────── */
.slab { padding: 64px 0; }
.slab-light { background: var(--cream); }
.slab-dark { background: var(--ink); color: var(--paper); }
.slab-dark .h2 { color: var(--paper); }
.slab-dark .slab-sub { color: #b0bac9; }
.slab-dark a { color: #7ab8f5; }
.slab-dark a:hover { color: #a8cdfa; }

.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 6vw, 40px);
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  line-height: 1.1;
}
.h2-row {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.h2-row .h2 { margin: 0; }
.slab-sub {
  font-size: clamp(15px, 3.4vw, 18px);
  color: var(--ink-dim);
  line-height: 1.6;
  margin: 0 0 40px;
  max-width: 65ch;
}

.badge-live {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--mycelium);
  color: var(--paper);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.badge-live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.35);
  animation: livepulse 1.8s ease-in-out infinite;
}
@keyframes livepulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}

/* ─── Grids + cards ──────────────────────────────────────────────── */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px 22px;
  box-shadow: var(--shadow-card);
}
.card-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-10);
  border-radius: var(--r-sm);
  color: var(--accent);
  margin-bottom: 16px;
}
.card h3 {
  font-size: 18px; font-weight: 600;
  margin: 0 0 10px;
}
.card p {
  color: var(--ink-dim);
  font-size: 15px;
  margin: 0;
}
.card-feature {
  border-color: var(--accent);
  border-width: 2px;
  position: relative;
}
.card-feature::before {
  content: "CORE";
  position: absolute; top: -10px; left: 22px;
  background: var(--accent); color: var(--paper);
  padding: 3px 9px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  border-radius: 3px;
}

/* ─── Live widgets ───────────────────────────────────────────────── */
.widget {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  margin-top: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.widget-head {
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--cream) 0%, var(--paper) 100%);
}
.widget-tag {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.widget-head h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
}
.widget-body {
  padding: 22px;
}
.widget-label {
  display: block;
  font-size: 13px; font-weight: 600;
  color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.widget-note {
  background: var(--cream);
  border-left: 3px solid var(--gold);
  padding: 12px 16px;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 14px;
  color: var(--ink-dim);
  margin: 0 0 18px;
}
.widget-note strong { color: var(--ink); }

.sel {
  width: 100%;
  padding: 12px 14px;
  font: inherit; font-size: 15px;
  background: var(--paper);
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-sm);
  color: var(--ink);
  margin-bottom: 18px;
  min-height: 44px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%235a6478' d='M4 6l4 5 4-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
}
.sel:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-10); }

.skel {
  padding: 14px 0;
  color: var(--ink-soft);
  font-size: 14px;
  font-style: italic;
}

/* Compound card */
.compound-card {
  background: var(--cream);
  border-radius: var(--r-md);
  padding: 18px 18px;
  border: 1px solid var(--line);
}
.cp-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px; flex-wrap: wrap;
  padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.cp-name {
  font-family: var(--serif);
  font-size: 24px; font-weight: 400;
  margin: 0 0 4px;
}
.cp-meta { font-size: 13px; color: var(--ink-soft); font-family: var(--mono); }
.cp-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.cp-pill {
  font-size: 11px; font-weight: 600;
  padding: 4px 9px; border-radius: 99px;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line-2);
  letter-spacing: 0.03em;
}
.cp-pill-sched { background: var(--danger); color: var(--paper); border-color: var(--danger); }
.cp-pill-bt { background: var(--gold); color: var(--paper); border-color: var(--gold); }
.cp-pill-fda { background: var(--accent); color: var(--paper); border-color: var(--accent); }

.cp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.cp-block h4 {
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-soft); margin: 0 0 8px; font-weight: 700;
}
.cp-block p, .cp-block li {
  margin: 0 0 4px; font-size: 14px; color: var(--ink-dim);
  line-height: 1.5;
}
.cp-block ul { margin: 0; padding-left: 0; list-style: none; }

/* Receptor bars */
.rec-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 6px;
  font-size: 13px;
}
.rec-name { font-family: var(--mono); color: var(--ink); font-weight: 600; font-size: 12.5px; }
.rec-bar {
  height: 8px; border-radius: 99px;
  background: var(--line);
  position: relative; overflow: hidden;
}
.rec-fill {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-hi));
  border-radius: 99px;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.rec-val { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); }

/* Cultivar matcher */
.chip-group {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 20px;
}
.chip {
  display: inline-flex; align-items: center;
  padding: 8px 14px;
  background: var(--paper);
  border: 1.5px solid var(--line-2);
  border-radius: 99px;
  font-size: 13px; font-weight: 500;
  color: var(--ink-dim);
  transition: all 0.15s ease;
  min-height: 38px;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.is-active {
  background: var(--accent); color: var(--paper); border-color: var(--accent);
}

.cultivar-list {
  display: flex; flex-direction: column; gap: 10px;
}
.cul-row {
  padding: 14px 16px;
  background: var(--cream);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
}
.cul-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 10px; flex-wrap: wrap;
  margin-bottom: 8px;
}
.cul-rank {
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.cul-name {
  font-family: var(--serif); font-size: 17px; margin: 2px 0;
}
.cul-score {
  font-family: var(--mono); font-weight: 700;
  font-size: 20px; color: var(--accent);
}
.cul-details {
  font-family: var(--mono); font-size: 12px;
  color: var(--ink-soft);
  display: flex; flex-wrap: wrap; gap: 14px;
}

/* Agent demo */
.agent-picker {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 18px;
}
.agent-btn {
  display: flex; flex-direction: column; gap: 4px;
  text-align: left;
  padding: 14px 16px;
  background: var(--paper);
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-md);
  color: var(--ink);
  transition: all 0.15s ease;
  position: relative;
  min-height: 60px;
}
.agent-btn:hover { border-color: var(--accent); }
.agent-btn.is-active {
  border-color: var(--accent);
  background: var(--accent-10);
  box-shadow: 0 0 0 1px var(--accent);
}
.agent-btn-name { font-weight: 700; font-size: 15px; }
.agent-btn-role { font-size: 13px; color: var(--ink-soft); }
.agent-btn-tag {
  position: absolute; top: 10px; right: 12px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gold);
}
.agent-query {
  padding: 14px 16px;
  background: var(--cream);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin-bottom: 18px;
}
.agent-query-label {
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  font-weight: 700; color: var(--accent); margin-bottom: 6px;
}
.agent-query-text {
  font-size: 14px; line-height: 1.5;
  color: var(--ink);
}
.agent-run-btn {
  width: 100%; justify-content: center;
  padding: 14px 20px; gap: 2px;
  flex-direction: column;
}
.agent-run-main { font-size: 15px; }
.agent-run-sub { font-size: 11px; opacity: 0.75; font-weight: 500; letter-spacing: 0.02em; }
.agent-output {
  margin: 18px 0 0;
  padding: 18px;
  background: var(--ink);
  color: #d8e4f5;
  font-family: var(--mono); font-size: 12.5px;
  line-height: 1.55;
  border-radius: var(--r-md);
  max-height: 440px;
  overflow: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.agent-output code { color: inherit; background: transparent; padding: 0; border: 0; font: inherit; }
.agent-output .cursor {
  display: inline-block; background: #7ab8f5; width: 7px; height: 14px;
  vertical-align: text-bottom;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ─── Pricing tiers ──────────────────────────────────────────────── */
.tiers .tier {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-card);
}
.tier-feature {
  border-color: var(--accent);
  border-width: 2px;
  position: relative;
}
.tier-feature::before {
  content: "FLAGSHIP";
  position: absolute; top: -10px; left: 24px;
  background: var(--accent); color: var(--paper);
  padding: 4px 10px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  border-radius: 3px;
}
.tier-badge {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.tier-badge-feature { color: var(--accent); }
.tier h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: 24px; margin: 0 0 10px;
}
.tier-price {
  font-family: var(--serif);
  font-size: 34px; font-weight: 400;
  color: var(--ink);
  margin: 0 0 20px;
}
.tier-price span {
  font-size: 14px; color: var(--ink-soft);
  font-family: var(--sans); font-weight: 400;
}
.tier ul {
  list-style: none; padding: 0; margin: 0 0 20px;
  flex: 1;
}
.tier li {
  padding: 6px 0 6px 22px;
  font-size: 14.5px; line-height: 1.5;
  color: var(--ink-dim);
  position: relative;
}
.tier li::before {
  content: "✓";
  position: absolute; left: 0; top: 6px;
  color: var(--accent); font-weight: 700;
}
.tier-tag {
  font-size: 13px; color: var(--ink-soft);
  font-style: italic;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  margin: auto 0 0;
}
.aside {
  margin-top: 32px;
  padding: 16px 20px;
  background: var(--cream);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 14px; color: var(--ink-dim);
  line-height: 1.6;
}
.aside strong { color: var(--ink); }

/* ─── Founder ────────────────────────────────────────────────────── */
.founder-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 28px;
}
.founder-portrait {
  display: flex; flex-direction: column; align-items: center;
  gap: 14px;
}
.portrait-disc {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50%;
  padding: 10px;
  box-shadow: var(--shadow-card);
}
.portrait-labels { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.label-pill {
  background: var(--paper); color: var(--ink-soft);
  border: 1px solid var(--line-2);
  padding: 5px 11px;
  border-radius: 99px;
  font-size: 12px; font-weight: 500;
}
.founder-name { margin-top: 4px; }
.founder-title {
  color: var(--accent); font-weight: 600;
  margin: 0 0 16px;
  font-size: 15px;
}
.founder-lede {
  font-size: 17px; line-height: 1.6;
  margin: 0 0 22px;
  color: var(--ink);
}
.founder-lede strong { color: var(--accent); }
.founder-bullets {
  list-style: none; padding: 0; margin: 0 0 24px;
}
.founder-bullets li {
  padding: 10px 0 10px 22px;
  border-top: 1px solid var(--line);
  font-size: 15px; line-height: 1.55;
  color: var(--ink-dim);
  position: relative;
}
.founder-bullets li::before {
  content: "◆"; position: absolute; left: 0; top: 10px;
  color: var(--accent); font-size: 10px;
}
.founder-bullets li:first-child { border-top: 0; }
.founder-bullets strong { color: var(--ink); }
.founder-quote {
  margin: 0; padding: 20px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-family: var(--serif);
  font-size: 17px; line-height: 1.55;
  color: var(--ink);
  font-style: italic;
}

/* ─── Samples ────────────────────────────────────────────────────── */
.sample-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px 22px;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-card);
}
.sample-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-pop);
  text-decoration: none;
}
.sample-tag {
  display: inline-block;
  background: var(--accent); color: var(--paper);
  padding: 3px 9px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 3px;
  margin-bottom: 14px;
}
.sample-card h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: 19px; line-height: 1.3;
  margin: 0 0 10px;
}
.sample-card p {
  color: var(--ink-dim);
  font-size: 14px;
  margin: 0 0 14px;
}
.sample-meta {
  font-family: var(--mono); font-size: 11.5px;
  color: var(--ink-soft); letter-spacing: 0.02em;
}
.sample-card code { font-size: 12px; }

/* ─── Contact ────────────────────────────────────────────────────── */
.contact-head { margin-bottom: 32px; }
.contact-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 32px;
}
.contact-block h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: 22px; margin: 0 0 12px;
  color: var(--paper);
}
.contact-role { color: #b0bac9; margin: 0 0 16px; font-size: 15px; }
.contact-links { font-size: 15px; }
.contact-block ul { list-style: none; padding: 0; margin: 0; }
.contact-block li {
  padding: 8px 0 8px 22px;
  color: #c3cedf;
  font-size: 14.5px; line-height: 1.5;
  position: relative;
}
.contact-block li::before {
  content: "→"; position: absolute; left: 0;
  color: var(--accent);
}

/* ─── Footer ─────────────────────────────────────────────────────── */
footer {
  background: var(--ink-2);
  color: #7a8499;
  padding: 40px 0 80px; /* extra bottom space for mobile sticky CTA */
  border-top: 1px solid #1a1f2a;
}
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 16px;
}
footer p { margin: 0 0 8px; font-size: 13px; line-height: 1.6; }
footer strong { color: #c3ced f; }
footer .fine { color: #4a5263; font-size: 12px; margin-top: 8px; }
footer a { color: #7ab8f5; }

/* ─── Mobile sticky CTA ─────────────────────────────────────────── */
.mobile-cta {
  position: fixed;
  bottom: 16px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent); color: var(--paper);
  padding: 14px 24px;
  border-radius: 99px;
  font-weight: 600; font-size: 15px;
  text-decoration: none;
  box-shadow: 0 10px 30px -8px rgba(26, 75, 138, 0.6),
              0 4px 12px -4px rgba(12, 15, 20, 0.3);
  z-index: 40;
  min-height: 48px;
  display: inline-flex; align-items: center;
}
.mobile-cta:hover {
  background: var(--accent-hi); color: var(--paper);
  text-decoration: none;
  transform: translateX(-50%) translateY(-2px);
}

/* Inline code */
code {
  font-family: var(--mono); font-size: 13px;
  background: var(--cream);
  padding: 1.5px 6px;
  border-radius: 3px;
  border: 1px solid var(--line);
}

/* ──────────────────────────────────────────────────────────────────
   BREAKPOINTS — progressive enhancement
────────────────────────────────────────────────────────────────── */

/* Small tablet: 560px+ */
@media (min-width: 560px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
  .cp-grid { grid-template-columns: 1fr 1fr; }
  .agent-picker { flex-direction: row; }
  .agent-btn { flex: 1; }
  .footer-grid { grid-template-columns: 1fr 2fr; }
  .sample-card-wide { grid-column: 1 / -1; }
  .founder-grid {
    grid-template-columns: 180px 1fr;
    align-items: start;
  }
  .founder-portrait { align-items: flex-start; position: sticky; top: 100px; }
}

/* Tablet / desktop: 900px+ */
@media (min-width: 900px) {
  .wrap { padding: 0 32px; }
  .top-wrap { padding: 16px 32px; }
  .nav-toggle { display: none; }
  #nav {
    display: flex !important;
    position: static;
    background: transparent;
    border: 0; padding: 0;
    flex-direction: row;
    box-shadow: none;
    gap: 4px;
  }
  #nav a {
    padding: 9px 14px;
    font-size: 14.5px;
    color: var(--ink-dim);
  }
  #nav a:hover { background: var(--cream); }
  .nav-cta { margin-top: 0 !important; padding: 9px 18px !important; }

  .hero { padding: 80px 0 72px; }
  .hero-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 56px;
  }
  .hero-art { order: 1; }
  .mol-svg { max-width: 400px; }

  .trust-grid { grid-template-columns: repeat(6, 1fr); }

  .slab { padding: 88px 0; }
  .grid { gap: 24px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }

  .mobile-cta { display: none; }
  footer { padding: 48px 0; }

  .founder-grid { grid-template-columns: 220px 1fr; gap: 56px; }
}

/* Large desktop: 1200px+ */
@media (min-width: 1200px) {
  .hero h1 { font-size: 62px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
}

/* Focus-visible: clear keyboard ring */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
