/* ============================================================
   Emails for Supabase — shared design system
   Extracted from the original single-page index.html and
   extended with prose, tables, FAQ, pricing and byline blocks
   used across the landing, about, comparison and legal pages.
   No build step: every page links this file directly.
   ============================================================ */

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

:root {
  --bg:           #0a0a0a;
  --surface:      #111111;
  --surface-2:    #181818;
  --border:       rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);
  --accent:       #27E3A7;
  --accent-dim:   rgba(39, 227, 167, 0.12);
  --accent-hover: #1CC99A;
  --text:         #EDEDEF;
  --text-muted:   #8A8A9A;
  --radius:       10px;
  --error:        #FF5555;
  --error-dim:    rgba(255, 85, 85, 0.1);
  --maxw:         1080px;
  --prose:        720px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

code, pre, .mono {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', Menlo, Consolas, monospace;
}

/* ── Nav ─────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px;
  height: 60px;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.nav-logo:hover { text-decoration: none; }
.nav-logo svg { flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

.nav-links a.nav-cta {
  font-size: 14px;
  font-weight: 600;
  color: #0a0a0a;
  background: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  padding: 7px 16px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.nav-links a.nav-cta:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #0a0a0a; text-decoration: none; }
.nav-links a.nav-cta:active { transform: scale(0.97); }

/* ── Nav dropdown (JS-free, <details>) ───────────────────── */
.nav-dropdown { position: relative; }
.nav-dropdown > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.15s;
}
.nav-dropdown > summary::-webkit-details-marker { display: none; }
.nav-dropdown > summary::after {
  content: '';
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.15s;
  margin-top: -3px;
}
.nav-dropdown > summary:hover,
.nav-dropdown[open] > summary { color: var(--text); }
.nav-dropdown[open] > summary::after { transform: rotate(-135deg); margin-top: 2px; }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  min-width: 260px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  z-index: 200;
}
.nav-links .nav-dropdown-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
}
.nav-links .nav-dropdown-menu a:hover {
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--accent); color: #0a0a0a; }
.btn-primary:hover { background: var(--accent-hover); }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-hover);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 100px 24px 80px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(39, 227, 167, 0.10) 0%, transparent 70%);
  pointer-events: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px solid rgba(39, 227, 167, 0.3);
  border-radius: 99px;
  background: rgba(39, 227, 167, 0.07);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.12;
  max-width: 760px;
  margin-bottom: 24px;
  background: linear-gradient(160deg, #ffffff 0%, #a0a0b0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 40px;
  line-height: 1.7;
}

/* ── URL form ────────────────────────────────────────────── */
.url-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 540px;
}

.url-wrap {
  display: flex;
  align-items: center;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.15s, box-shadow 0.15s;
  overflow: hidden;
}

.url-wrap:focus-within {
  border-color: rgba(39, 227, 167, 0.45);
  box-shadow: 0 0 0 3px rgba(39, 227, 167, 0.08);
}

.url-wrap.error {
  border-color: rgba(255, 85, 85, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 85, 85, 0.07);
}

.url-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 14px 4px 14px 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  caret-color: var(--accent);
  min-width: 0;
}

.url-input::placeholder { color: var(--text-muted); }

.url-submit {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 4px;
  background: var(--accent);
  border: none;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  color: #0a0a0a;
}
.url-submit:hover { background: var(--accent-hover); }
.url-submit:active { transform: scale(0.93); }
.url-submit svg { display: block; transition: transform 0.15s; }
.url-submit:hover svg { transform: translateX(2px); }

.url-error {
  font-size: 13px;
  color: var(--error);
  text-align: left;
  width: 100%;
  padding-left: 4px;
  min-height: 18px;
}

.hero-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ── Generic section + container ─────────────────────────── */
.section {
  padding: 72px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.section.tight { padding: 48px 24px; }

.container {
  max-width: var(--prose);
  margin: 0 auto;
  padding: 96px 24px 80px;
}

.section-label {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-title {
  text-align: center;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 56px;
}

/* ── Prose (about, legal, comparison copy) ───────────────── */
.prose h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.14;
  margin-bottom: 20px;
  -webkit-text-fill-color: initial;
  background: none;
  color: var(--text);
}
.prose h2 {
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 44px 0 14px;
}
.prose h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 28px 0 10px;
}
.prose p { margin-bottom: 16px; color: #cfcfd6; }
.prose ul, .prose ol { margin: 0 0 18px 22px; }
.prose li { margin-bottom: 8px; color: #cfcfd6; }
.prose .lead {
  font-size: 1.12rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 28px;
}
.prose strong { color: var(--text); }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }

/* ── Guide layout: sidebar TOC + prose, side by side ─────── */
/* Flex row sized to fit its children (sidebar + gap + 720px prose, ~1000px
   with padding) — the browser computes the fit, no hand-tuned breakpoint math. */
.container.guide-layout {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  width: fit-content;
  max-width: 100%;
}
.guide-content {
  flex: 1 1 var(--prose);
  max-width: var(--prose);
  min-width: 0;
}
.toc-sidebar {
  position: sticky;
  top: 96px;
  flex: 0 0 200px;
  width: 200px;
  max-height: calc(100vh - 128px);
  overflow-y: auto;
}
.toc-sidebar .toc-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.toc-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--border);
}
.toc-sidebar li { margin: 0; }
.toc-sidebar a {
  display: block;
  padding: 5px 0 5px 14px;
  margin-left: -1px;
  border-left: 1px solid transparent;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-muted);
}
.toc-sidebar a:hover { color: var(--text); }
.toc-sidebar a.active {
  color: var(--accent);
  border-left-color: var(--accent);
}
/* Sub-menu: nested nav for a section's H3s — smaller, dimmer, its own indented rail.
   Collapsed by default; JS opens only the section currently on screen. */
.toc-sidebar .toc-sub {
  display: none;
  margin: 2px 0 6px 13px;
}
.toc-sidebar .toc-sub.open { display: block; }
.toc-sidebar .toc-sub a {
  padding-top: 4px;
  padding-bottom: 4px;
  font-size: 12px;
  opacity: 0.8;
}
.toc-sidebar .toc-sub a.active { opacity: 1; }
@media (max-width: 1023px) {
  .toc-sidebar { display: none; }
}

/* ── Figures / diagrams ──────────────────────────────────── */
.prose figure.diagram { margin: 28px 0; }
.diagram-frame {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #0a0a0a;
  overflow: hidden;
}
.diagram-scaler { position: relative; width: 100%; aspect-ratio: 1200 / 640; }
.diagram-canvas { position: absolute; top: 0; left: 0; transform-origin: top left; }
.prose figure.diagram figcaption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
}

.meta-line {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* ── Value props (three-up) ──────────────────────────────── */
.value-props {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
}
.value-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.02em; }
.value-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ── Callout ─────────────────────────────────────────────── */
.callout {
  border: 1px solid rgba(39, 227, 167, 0.25);
  background: rgba(39, 227, 167, 0.05);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 24px 0;
}
.callout.warn {
  border-color: rgba(255, 200, 80, 0.28);
  background: rgba(255, 200, 80, 0.05);
}
.callout p { color: #cfcfd6; margin: 0; font-size: 15px; }
.callout strong { color: var(--text); }

/* ── Email chips ─────────────────────────────────────────── */
.email-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 99px;
  background: var(--surface);
  font-size: 13px;
  color: var(--text);
}
.chip.free { border-color: rgba(39, 227, 167, 0.4); }
.chip .tag {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.chip.paid .tag { color: var(--text-muted); }

/* ── Email meta (subject / preheader) ────────────────────── */
.email-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 22px;
  font-size: 13.5px;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin: 14px 0 6px;
}
.email-meta strong { color: var(--text); }

/* ── Code / variables block ──────────────────────────────── */
.code-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.8;
  color: #cfcfd6;
  margin: 18px 0;
}
.code-block .k { color: var(--accent); }
.code-block .c { color: var(--text-muted); }

/* ── Image placeholders (TEMPORARY — swap each for the real <img>) ── */
.img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  border: 1.5px dashed var(--border-hover);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 26px 22px;
  margin: 24px 0;
}
.img-ph-tag {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(39, 227, 167, 0.4);
  border-radius: 99px;
  padding: 3px 11px;
}
.img-ph-title { font-size: 15px; font-weight: 600; color: var(--text); }
.img-ph-desc { font-size: 13.5px; color: var(--text-muted); max-width: 540px; line-height: 1.55; }
.img-ph-alt { font-size: 12.5px; color: var(--text-muted); font-style: italic; }
.img-placeholder code { color: var(--accent); font-style: normal; }

/* ── Article figures (real images) ───────────────────────── */
/* Break out wider than the ~720px text column for legibility on wide
   infographics, but never wider than the viewport — fully responsive. */
.article-figure {
  width: min(100vw - 32px, 720px);
  margin: 28px 0;
  margin-left: 50%;
  transform: translateX(-50%);
}
.article-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: contain;
  margin: auto 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.article-figure figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .article-figure { width: 100%; margin-left: 0; transform: none; }
}

/* ── Tables (variables ref, comparison matrix) ───────────── */
.table-scroll {
  overflow-x: auto;
  margin: 20px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 560px;
}
.data-table th, .data-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.data-table thead th {
  background: var(--surface-2);
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.01em;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table td code, .data-table th code {
  color: var(--accent);
  font-size: 13px;
  white-space: nowrap;
}
.data-table td.good { color: var(--accent); }
.data-table td.mid  { color: #E0C060; }
.data-table td.bad  { color: var(--text-muted); }
.data-table tbody th {
  background: var(--surface);
  font-weight: 600;
}

/* ── Pricing ─────────────────────────────────────────────── */
.pricing {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.price-card.featured { border-color: rgba(39, 227, 167, 0.4); }
.price-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.price-name { font-size: 15px; font-weight: 600; }
.price-amount { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; }
.price-amount small { font-size: 13px; font-weight: 500; color: var(--text-muted); }
.badge-soon {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 3px 9px;
}
.price-card ul { list-style: none; display: flex; flex-direction: column; gap: 9px; margin: 4px 0; }
.price-card li { font-size: 14px; color: #cfcfd6; padding-left: 24px; position: relative; }
.price-card li::before {
  content: '';
  position: absolute; left: 4px; top: 8px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
}
.price-card.paid li::before { background: var(--text-muted); }
.price-note { font-size: 12px; color: var(--text-muted); margin-top: auto; }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq { max-width: var(--prose); margin: 0 auto; }
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 600;
  font-size: 15.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  color: var(--accent);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  flex-shrink: 0;
}
.faq details[open] summary::after { content: '\2212'; }
.faq .faq-body { padding: 0 20px 18px; color: #cfcfd6; font-size: 15px; }
.faq .faq-body p { margin-bottom: 12px; }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ── Trust strip / byline ────────────────────────────────── */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  padding: 8px 0;
}
.trust-strip a { color: var(--text); }

.byline {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 28px 0;
}
.byline .avatar {
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid rgba(39, 227, 167, 0.25);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--accent);
}
.byline .avatar.lg { width: 64px; height: 64px; font-size: 18px; }
.byline .avatar img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.byline .who { font-size: 14px; }
.byline .who strong { display: block; color: var(--text); }
.byline .who span { color: var(--text-muted); }

/* ── Steps (how it works) ────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s;
  position: relative;
  overflow: hidden;
}
.step-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(39, 227, 167, 0.03) 0%, transparent 60%);
  pointer-events: none;
}
.step-card:hover { border-color: var(--border-hover); }
.step-number {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(39, 227, 167, 0.2);
}
.step-card h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.step-card p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* ── Your projects ───────────────────────────────────────── */
.projects { padding: 0 24px 72px; max-width: var(--maxw); margin: 0 auto; }
.projects .section-title { margin-bottom: 36px; }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.proj-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.15s;
}
.proj-card:hover, .proj-card:focus-visible {
  border-color: rgba(39, 227, 167, 0.45);
  transform: translateY(-2px);
  text-decoration: none;
}
.proj-card:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(39, 227, 167, 0.35); }
.proj-logo { display: flex; align-items: center; height: 44px; }
.proj-logo img { max-height: 44px; max-width: 160px; object-fit: contain; }
.proj-swatch {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 8px;
  border: 1px solid var(--border); font-size: 18px; font-weight: 700;
}
.proj-name { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.proj-meta { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.proj-open {
  margin-top: 6px;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', Menlo, Consolas, monospace;
  font-size: 12px; font-weight: 600; letter-spacing: 0.05em;
  color: var(--text-muted); transition: color 0.15s;
}
.proj-card:hover .proj-open, .proj-card:focus-visible .proj-open { color: var(--accent); }

/* ── Divider ─────────────────────────────────────────────── */
.divider { max-width: var(--maxw); margin: 0 auto; height: 1px; background: var(--border); }

/* ── Footer ──────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px 32px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 22px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-links a { font-size: 14px; color: var(--text-muted); }
.footer-links a:hover { color: var(--text); }
.footer-brand { font-size: 14px; color: var(--text-muted); }
.footer-disclaimer {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 720px;
}
.footer-copy { font-size: 12.5px; color: var(--text-muted); margin-top: 14px; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .steps, .value-props, .pricing { grid-template-columns: 1fr; }
  .hero { padding: 72px 20px 64px; }
  .container { padding: 72px 20px 64px; }
  .nav-links { gap: 16px; }
}

@media (max-width: 560px) {
  nav { padding: 0 14px; }
  .nav-logo span { display: none; }
  .nav-links { gap: 14px; }
  .nav-links a.hide-sm { display: none; }
  .nav-links a.nav-cta { padding: 7px 13px; }
  /* Anchor the dropdown to the nav's right edge so it can't clip off-screen */
  .nav-dropdown { position: static; }
  .nav-dropdown-menu {
    left: auto;
    right: 16px;
    min-width: 0;
    width: calc(100vw - 32px);
    max-width: 340px;
  }
}
