/* ==========================================================================
   FishEdge.live — v3 styles
   Trimmed for a one-person side-project marketing site.
   Tokens adopted from mockup v3; motion from M1 design system.
   ========================================================================== */

/* ==========================================================================
   1. TOKENS (mockup-aligned)
   ========================================================================== */

:root {
  /* Backgrounds */
  --abyss: #071017;
  --ocean: #061824;
  --ink: #0d1117;
  --surface: #101820;
  --surface-2: #14222d;
  --line: rgba(177, 211, 231, 0.14);

  /* Brand (mockup v3 — reference blue + reference green) */
  --blue: #14558B;
  --blue-bright: #19a7ff;
  --blue-dim: rgba(20, 85, 139, 0.20);
  --blue-glow: rgba(20, 85, 139, 0.45);
  --green: #55b84b;
  --green-light: #6aa84f;
  --green-dim: rgba(85, 184, 75, 0.18);
  --orange: #ff7a1f;

  /* Text */
  --ice: #f8fafc;
  --muted: #8ca2b1;

  /* Type */
  --display: "Space Grotesk", "Avenir Next", "Helvetica Neue", sans-serif;
  --body: "Inter", "SF Pro Text", "Helvetica Neue", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  /* Spacing */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 36px;
  --s-7: 64px;
  --s-8: 100px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --t-fast: 120ms;
  --t-mid: 200ms;
  --t-slow: 420ms;

  /* Layout */
  --rail: 1200px;
  --margin: 32px;
  --header-h: 168px;
}

/* ==========================================================================
   2. BASE
   ========================================================================== */

* { box-sizing: border-box; }
html {
  background: var(--abyss);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}
body {
  margin: 0;
  background: var(--abyss);
  color: var(--ice);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  background-image:
    radial-gradient(circle at 75% 4%, rgba(25, 167, 255, 0.08), transparent 30rem),
    var(--abyss);
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue-bright); }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--blue-bright); color: var(--ink); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   3. LAYOUT
   ========================================================================== */

.shell {
  max-width: var(--rail);
  margin: 0 auto;
  padding: 0 var(--margin);
}

main {
  min-height: 100vh;
  padding-top: var(--header-h);
}

/* ==========================================================================
   4. HEADER + NAV
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 50;
  background: rgba(7, 16, 23, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .shell {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
}
.brand {
  display: flex;
  align-items: center;
  color: var(--ice);
  flex: none;
}
.brand .logo-full {
  /* Deliberately large brand lockup: 2× the previous 72px treatment. */
  height: 144px;
  width: auto;
  display: block;
  flex: none;
}

.primary-nav {
  display: flex;
  gap: var(--s-5);
  font-size: 13px;
  color: var(--muted);
}
.primary-nav a {
  transition: color var(--t-fast) var(--ease);
}
.primary-nav a:hover,
.primary-nav a.is-current {
  color: var(--blue-bright);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--s-4);
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--s-1);
  padding: 8px 12px;
  color: var(--ice);
  cursor: pointer;
  font-size: 13px;
}

/* ==========================================================================
   5. BUTTONS
   ========================================================================== */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid var(--blue-bright);
  border-radius: var(--s-1);
  background: var(--blue-bright);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.015em;
  cursor: pointer;
  transition: transform var(--t-mid) var(--ease),
              box-shadow var(--t-mid) var(--ease),
              background var(--t-mid) var(--ease);
}
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(25, 167, 255, 0.22);
  color: var(--ink);
}
.button:active {
  transform: translateY(0);
}
.button-ghost {
  background: transparent;
  color: var(--ice);
  border-color: var(--line);
}
.button-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ice);
  border-color: var(--blue-bright);
  box-shadow: none;
}
.button-sm {
  min-height: 38px;
  padding: 0 18px;
  font-size: 12px;
}
.button .arrow {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

/* ==========================================================================
   6. HERO
   ========================================================================== */

.hero {
  position: relative;
  padding: var(--s-6) 0 var(--s-7);
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.10;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(95, 167, 207, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95, 167, 207, 0.13) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to right, black, transparent 80%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-6);
  align-items: center;
  position: relative;
  z-index: 1;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--blue-bright);
  font-weight: 600;
  text-transform: uppercase;
}
.kicker .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-bright);
  box-shadow: 0 0 12px var(--blue-bright);
}
.kicker.green .live-dot { background: var(--green); box-shadow: 0 0 10px var(--green); }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0;
  color: var(--ice);
}
h1 {
  font-size: clamp(40px, 4.6vw, 68px);
  margin: var(--s-4) 0 var(--s-5);
}
h1 .accent { color: var(--blue-bright); }
h2 {
  font-size: clamp(32px, 3.2vw, 48px);
  letter-spacing: -0.03em;
}
h3 {
  font-size: 22px;
  letter-spacing: -0.01em;
  font-weight: 700;
}

.hero-copy > p {
  max-width: 480px;
  color: #b3c4d1;
  font-size: 17px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin: var(--s-5) 0 var(--s-5);
}

/* ==========================================================================
   7. PRODUCT FRAME (the dashboard hero card)
   ========================================================================== */

.product-frame {
  position: relative;
  z-index: 1;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--s-2);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
}
.product-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.product-toolbar .left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}
.product-toolbar .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}
.product-body {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  min-height: 360px;
}
.map-slot {
  position: relative;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(25, 167, 255, 0.10), transparent 60%),
    radial-gradient(ellipse at 70% 70%, rgba(46, 212, 122, 0.08), transparent 50%),
    #050d12;
  border-right: 1px solid var(--line);
  overflow: hidden;
  min-height: 360px;
}
.map-slot .scan-line {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  top: 60%;
  opacity: 0.4;
}
.map-slot .grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(95, 167, 207, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95, 167, 207, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
}
.map-slot .front {
  position: absolute;
  height: 2px;
  background: var(--blue-bright);
  box-shadow: 0 0 12px rgba(25, 167, 255, 0.6);
  border-radius: 1px;
}
.map-slot .front-a { top: 40%; left: 20%; width: 50%; }
.map-slot .front-b { top: 60%; left: 30%; width: 40%; opacity: 0.7; }
.map-slot .front-c { top: 25%; left: 50%; width: 30%; opacity: 0.5; }
.map-slot .waypoint {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--blue-bright);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--blue-bright);
}
.map-slot .waypoint-a { top: 38%; left: 24%; }
.map-slot .waypoint-b { top: 58%; left: 60%; }
.map-slot .map-label {
  position: absolute;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
  background: rgba(7, 16, 23, 0.7);
  padding: 4px 8px;
  border-radius: var(--s-1);
}
.map-slot .map-label-1 { top: 16%; left: 14%; }
.map-slot .map-label-2 { top: 70%; left: 70%; }
.map-slot .map-label-3 { top: 30%; right: 14%; }

.evidence-panel {
  padding: 20px 18px;
  background: var(--ocean);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.evidence-panel .eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--blue-bright);
  font-weight: 600;
  text-transform: uppercase;
}
.evidence-panel h4 {
  margin: 0 0 4px;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ice);
}
.evidence-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.evidence-row b {
  color: var(--ice);
  font-weight: 600;
}
.evidence-row .check {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green);
  position: relative;
  flex-shrink: 0;
}
.evidence-row .check::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid var(--ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.evidence-row .label-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.product-frame .data-note {
  text-align: right;
  padding: 8px 18px 12px;
  color: var(--muted);
  font-size: 10px;
  font-family: var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-top: 1px solid var(--line);
}

/* ==========================================================================
   8. SECTIONS
   ========================================================================== */

.section {
  padding: var(--s-7) 0;
  border-top: 1px solid var(--line);
}
.section.dark {
  background: var(--ocean);
  border-top-color: transparent;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--s-5);
  margin-bottom: var(--s-6);
  flex-wrap: wrap;
}
.section-heading .eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--blue-bright);
  font-weight: 600;
  text-transform: uppercase;
  margin: 0 0 var(--s-3);
}
.section-heading p {
  max-width: 540px;
  color: var(--muted);
  margin: var(--s-3) 0 0;
}
.text-link {
  color: var(--blue-bright);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: gap var(--t-fast) var(--ease);
}
.text-link:hover { gap: 12px; color: var(--blue-bright); }
.text-link .arrow {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

/* ==========================================================================
   9. FEATURE GRID
   ========================================================================== */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.feature-card {
  background: var(--abyss);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  position: relative;
  min-height: 280px;
}
.feature-card .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 600;
}
.feature-card .num.blue { color: var(--blue-bright); }
.feature-card .num.green { color: var(--green); }
.feature-card .num.orange { color: var(--orange); }
.feature-card h3 {
  font-size: 20px;
  margin: 0;
}
.feature-card p {
  color: var(--muted);
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}
.feature-card ul {
  list-style: none;
  padding: 0;
  margin: var(--s-3) 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.feature-card li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  font-family: var(--mono);
  letter-spacing: 0.04em;
}
.feature-card li::before {
  content: '↗';
  color: var(--blue-bright);
}
.feature-card.wide {
  grid-column: span 2;
}

/* ==========================================================================
   10. STATS / NUMBERS STRIP
   ========================================================================== */

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.metric-strip > div {
  background: var(--abyss);
  padding: var(--s-5) var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.metric-strip .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--blue-bright);
}
.metric-strip strong {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  color: var(--ice);
}
.metric-strip p {
  color: var(--muted);
  margin: 0;
  font-size: 13px;
}

/* ==========================================================================
   11. PRINCIPLES
   ========================================================================== */

.principles {
  background: var(--ocean);
  padding: var(--s-7) 0;
}
.principle-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin-top: var(--s-5);
}
.principle-grid article {
  background: var(--ocean);
  padding: var(--s-5);
}
.principle-grid b {
  display: block;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: var(--s-2);
}
.principle-grid span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

/* ==========================================================================
   12. CTA SECTION (final)
   ========================================================================== */

.cta {
  text-align: center;
  padding: var(--s-8) 0;
  border-top: 1px solid var(--line);
}
.cta h2 {
  font-size: clamp(40px, 4.5vw, 64px);
  margin: var(--s-4) 0 var(--s-3);
}
.cta p {
  color: var(--muted);
  font-size: 17px;
  max-width: 540px;
  margin: 0 auto var(--s-5);
}

/* ==========================================================================
   13. FOOTER
   ========================================================================== */

footer {
  background: var(--ocean);
  padding: var(--s-6) 0 var(--s-5);
  border-top: 1px solid var(--line);
  margin-top: var(--s-7);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: var(--s-6);
  margin-bottom: var(--s-6);
}
.footer-brand p {
  color: var(--muted);
  margin: var(--s-3) 0 0;
  font-size: 14px;
  max-width: 280px;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
.footer-links strong {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: var(--s-3);
}
.footer-links a {
  display: block;
  color: var(--muted);
  font-size: 13px;
  padding: 4px 0;
}
.footer-links a:hover { color: var(--blue-bright); }
.footer-base {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-3);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-base .status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-base .status .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

/* ==========================================================================
   14. INNER PAGE LAYOUT
   ========================================================================== */

.page-hero {
  padding: var(--s-7) 0 var(--s-6);
  position: relative;
  border-bottom: 1px solid var(--line);
}
.page-hero .eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--blue-bright);
  font-weight: 600;
  text-transform: uppercase;
  margin: 0 0 var(--s-3);
}
.page-hero h1 {
  margin: var(--s-3) 0 var(--s-4);
}
.page-hero .lead {
  max-width: 640px;
  color: #b3c4d1;
  font-size: 18px;
  line-height: 1.7;
  margin: 0 0 var(--s-5);
}

.prose {
  max-width: 720px;
}
.prose h2 {
  font-size: 28px;
  margin: var(--s-7) 0 var(--s-4);
  letter-spacing: -0.02em;
}
.prose h3 {
  font-size: 20px;
  margin: var(--s-6) 0 var(--s-3);
}
.prose p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
  margin: 0 0 var(--s-4);
}
.prose ul, .prose ol {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
  margin: 0 0 var(--s-5);
  padding-left: var(--s-5);
}
.prose li { margin-bottom: var(--s-2); }
.prose code {
  font-family: var(--mono);
  font-size: 14px;
  background: var(--surface);
  padding: 2px 6px;
  border-radius: var(--s-1);
  color: var(--blue-bright);
}
.prose pre {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--s-2);
  padding: var(--s-4);
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
}
.prose a { color: var(--blue-bright); border-bottom: 1px solid var(--blue-dim); }
.prose a:hover { border-bottom-color: var(--blue-bright); }
.prose blockquote {
  border-left: 3px solid var(--blue);
  margin: var(--s-5) 0;
  padding: var(--s-2) var(--s-5);
  color: var(--ice);
  font-style: italic;
}

/* ==========================================================================
   15. BLOG INDEX + POSTS
   ========================================================================== */

.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.post-list li {
  background: var(--abyss);
  padding: var(--s-5);
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: var(--s-5);
  align-items: center;
  transition: background var(--t-fast) var(--ease);
}
.post-list li:hover {
  background: var(--surface);
}
.post-list time {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.post-list h3 {
  font-size: 18px;
  margin: 0;
  font-weight: 600;
}
.post-list p {
  color: var(--muted);
  margin: var(--s-1) 0 0;
  font-size: 13px;
}
.post-list .arrow-link {
  color: var(--blue-bright);
  font-size: 18px;
  font-weight: 700;
  font-family: var(--mono);
}

.tag {
  display: inline-block;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: var(--s-1);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}
.tag.blue { color: var(--blue-bright); border-color: var(--blue-dim); }
.tag.green { color: var(--green); border-color: var(--green-dim); }
.tag.orange { color: var(--orange); border-color: rgba(255, 122, 31, 0.2); }

/* ==========================================================================
   16. DATA TABLE (what's live / what's not)
   ========================================================================== */

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--s-5) 0;
  font-size: 14px;
}
.data-table th, .data-table td {
  padding: var(--s-3) var(--s-4);
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.data-table th {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.data-table td:first-child { color: var(--ice); font-weight: 600; }
.data-table tr:last-child td { border-bottom: 0; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}
.status-pill.live {
  background: var(--green-dim);
  color: var(--green);
}
.status-pill.live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}
.status-pill.beta {
  background: var(--blue-dim);
  color: var(--blue-bright);
}
.status-pill.roadmap {
  background: rgba(140, 162, 177, 0.1);
  color: var(--muted);
}

/* ==========================================================================
   17. FORM (Pilot / Free Early Access)
   ========================================================================== */

.form-shell {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--s-7);
  padding: var(--s-7) 0;
}
.form-intro h2 { margin-bottom: var(--s-4); }
.form-intro p { color: var(--muted); font-size: 16px; }

form.lead-form {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
form.lead-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
form.lead-form input,
form.lead-form select,
form.lead-form textarea {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--s-1);
  padding: 12px 14px;
  font-family: var(--body);
  font-size: 15px;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ice);
  font-weight: 400;
  transition: border-color var(--t-fast) var(--ease);
}
form.lead-form input:focus,
form.lead-form select:focus,
form.lead-form textarea:focus {
  outline: none;
  border-color: var(--blue-bright);
  box-shadow: 0 0 0 3px var(--blue-dim);
}
form.lead-form textarea {
  min-height: 120px;
  resize: vertical;
}
form.lead-form .check {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  text-transform: none;
  letter-spacing: normal;
  font-family: var(--body);
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
}
form.lead-form .check input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue-bright);
}
.form-status {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--green);
  margin: 0;
  min-height: 1.4em;
}
.form-status.error { color: var(--orange); }

/* ==========================================================================
   18. AUTH-AWARE NAV (Supabase session detection)
   ========================================================================== */

body.is-authed .auth-only-logged-out { display: none; }
body:not(.is-authed) .auth-only-logged-in { display: none; }

/* ==========================================================================
   19. UTILITIES
   ========================================================================== */

.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.center { text-align: center; }
.spacer-sm { height: var(--s-4); }
.spacer-md { height: var(--s-5); }
.spacer-lg { height: var(--s-6); }
.hide-mobile { display: initial; }
.show-mobile { display: none; }

/* ==========================================================================
   20. RESPONSIVE
   ========================================================================== */

@media (max-width: 950px) {
  :root { --header-h: 144px; }
  .brand .logo-full { height: 116px; }
  .hero-inner { grid-template-columns: 1fr; gap: var(--s-5); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card.wide { grid-column: span 2; }
  .principle-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-strip { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(3, 1fr); }
  .form-shell { grid-template-columns: 1fr; gap: var(--s-5); }
  .product-body { grid-template-columns: 1fr; }
  .map-slot { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 640px) {
  :root {
    --margin: 18px;
    --header-h: 104px;
  }
  .brand .logo-full { height: 82px; max-width: 72vw; }
  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--abyss);
    border-top: 1px solid var(--line);
    flex-direction: column;
    padding: var(--s-4) var(--margin);
    gap: var(--s-3);
  }
  .primary-nav.is-open { display: flex; }
  .menu-toggle { display: inline-flex; }
  .header-actions .button { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card.wide { grid-column: span 1; }
  .principle-grid { grid-template-columns: 1fr; }
  .post-list li { grid-template-columns: 1fr; gap: var(--s-2); }
  .post-list time { order: -1; }
  h1 { font-size: 40px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .button { width: 100%; }
  .footer-links { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; align-items: flex-start; }
  .hide-mobile { display: none; }
  .show-mobile { display: initial; }
}
