/* Part 1/4: Design Tokens, Reset, Typography & Base Layout */
:root {
  --bg: #070b12;
  --surface: #0e1520;
  --text: #e8edf4;
  --muted: #8b97a8;
  --muted-strong: #aab6c6;
  --primary: #ffb02e;
  --line: rgb(232 237 244 / .12);
  --radius: 4px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --fs-xs: 13px;
  --fs-sm: 15px;
  --fs-base: 17px;
  --fs-lg: 22px;
  --fs-xl: 32px;
  --fs-2xl: 48px;
  --fs-3xl: 68px;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .35);
  --shadow-md: 0 8px 24px rgb(0 0 0 / .45);
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html {
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: rgb(255 176 46 / .4);
  text-underline-offset: 3px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

a:hover {
  color: var(--text);
  text-decoration-color: var(--primary);
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0 0 var(--space-4);
}

h1 { font-size: clamp(28px, 4vw, var(--fs-2xl)); font-weight: 700; }
h2 { font-size: clamp(22px, 3vw, var(--fs-xl)); font-weight: 700; margin-top: var(--space-7); }
h3 { font-size: var(--fs-lg); font-weight: 600; margin-top: var(--space-5); }

p {
  margin: 0 0 var(--space-4);
  max-width: 68ch;
  text-wrap: pretty;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: var(--space-2);
  background: var(--primary);
  color: var(--bg);
  padding: var(--space-2) var(--space-4);
  font-weight: 600;
  border-radius: var(--radius);
  z-index: 100;
}

.skip-link:focus {
  left: var(--space-4);
}

.site-main {
  flex: 1;
}


/* Part 2/4: Header, Navigation, Footer & Shared Components */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgb(7 11 18 / .92);
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.brand:hover {
  color: var(--primary);
}

.gf-site-icon {
  width: 30px;
  height: 30px;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-base);
  letter-spacing: -0.01em;
}

.brand-tag {
  font-size: 12px;
  color: var(--primary);
  border: 1px solid rgb(255 176 46 / .35);
  padding: 2px 6px;
  border-radius: var(--radius);
  line-height: 1.2;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--primary);
}

.nav-mobile {
  display: none;
  position: relative;
}

.nav-mobile summary {
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  padding: 7px 14px;
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  font-weight: 500;
}

.nav-mobile summary::-webkit-details-marker {
  display: none;
}

.nav-mobile-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 240px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: var(--space-2);
  display: flex;
  flex-direction: column;
  z-index: 60;
}

.nav-mobile-panel a {
  color: var(--text);
  text-decoration: none;
  padding: 10px 12px;
  font-size: var(--fs-sm);
  border-radius: var(--radius);
}

.nav-mobile-panel a:hover {
  background: rgb(255 176 46 / .12);
  color: var(--primary);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-xs);
  color: var(--primary);
  letter-spacing: 0.06em;
  margin-bottom: var(--space-2);
}

.rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  display: inline-block;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 46px;
  padding: 0 22px;
  border: none;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}

.btn-primary:hover {
  background: #ffc25c;
  color: var(--bg);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: var(--space-8);
  padding: var(--space-7) 0 var(--space-5);
  background: var(--surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--line);
}

.footer-heading {
  font-size: var(--fs-xs);
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-col a {
  color: var(--muted);
  text-decoration: none;
  font-size: var(--fs-sm);
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  padding-top: var(--space-4);
}

.footer-bottom p {
  font-size: var(--fs-xs);
  color: var(--muted);
  max-width: none;
  margin: 0;
}


/* Part 3/4: Meme Generator Tool Shell, Template Strip, Canvas & Controls */
.tool-hero {
  padding: var(--space-5) 0 var(--space-6);
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 80% 0%, rgb(255 176 46 / .06), transparent 52%);
}

.hero-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3) var(--space-4);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.hero-bar h1 {
  margin-bottom: 0;
  font-size: clamp(26px, 3.2vw, 38px);
}

.hero-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted-strong);
  max-width: none;
}

.tool-shell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
}

.jm-strip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.jm-label-sm {
  font-size: var(--fs-xs);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
}

.jm-strip-meta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.jm-swipe-hint {
  display: none;
  font-size: 12px;
  color: var(--primary);
}

.jm-strip {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
  scrollbar-color: rgb(255 176 46 / .35) transparent;
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
}

.jm-thumb-btn {
  flex: 0 0 116px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.jm-thumb-btn:hover {
  border-color: rgb(255 176 46 / .55);
  color: var(--text);
  transform: translateY(-1px);
}

.jm-thumb-btn.is-active {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
  color: var(--primary);
}

.jm-thumb-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 2px;
  background: var(--bg);
}

.jm-thumb-name {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jm-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: var(--space-5);
  align-items: start;
}

.jm-stage-wrap {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-3);
}

.jm-canvas-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 2px;
}

.jm-canvas-box.is-tall {
  aspect-ratio: 9 / 16;
  max-height: 540px;
  margin-inline: auto;
}

.jm-canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  cursor: grab;
  touch-action: none;
}

.jm-canvas.is-dragging {
  cursor: grabbing;
}

.jm-stage-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-top: var(--space-2);
  font-size: 12px;
  color: var(--muted);
}

.jm-controls {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.jm-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.jm-field-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.jm-field label {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text);
}

.jm-counter {
  font-size: var(--fs-xs);
  color: var(--muted);
}

.jm-input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  transition: border-color 160ms ease;
}

.jm-input:focus {
  border-color: var(--primary);
  outline: none;
}

.jm-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  padding-top: var(--space-2);
}

.jm-actions .btn-primary {
  flex: 1 1 190px;
}

.jm-ratio-group {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
}

.jm-ratio-btn {
  height: 46px;
  padding: 0 14px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.jm-ratio-btn.is-active {
  background: rgb(255 176 46 / .18);
  color: var(--primary);
}

.jm-status {
  margin: 0;
  font-size: var(--fs-xs);
  color: var(--muted);
  min-height: 18px;
}

.jm-color-bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  padding-top: var(--space-1);
}

.jm-swatch-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 4px 10px 4px 6px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 500;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease;
}

.jm-swatch-btn:hover {
  border-color: rgb(255 176 46 / .55);
  transform: translateY(-1px);
}

.jm-swatch-btn[aria-pressed="true"] {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.jm-swatch-dot {
  width: 24px;
  height: 24px;
  border-radius: var(--radius);
  border: 1px solid rgb(255 255 255 / .2);
  flex-shrink: 0;
}

.jm-more-colors {
  position: relative;
}

.jm-more-colors summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted-strong);
  font-size: var(--fs-xs);
  font-weight: 500;
}

.jm-more-colors summary::-webkit-details-marker {
  display: none;
}

.jm-more-panel {
  margin-top: var(--space-2);
  padding: var(--space-3);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.jm-more-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.jm-more-label {
  font-size: 12px;
  color: var(--muted-strong);
  min-width: 84px;
}

.jm-color-input {
  width: 38px;
  height: 36px;
  padding: 2px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.jm-bg-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 12px;
  cursor: pointer;
}

.jm-bg-chip[aria-pressed="true"] {
  border-color: var(--primary);
  color: var(--primary);
}

.jm-bg-dot {
  width: 14px;
  height: 14px;
  border-radius: 2px;
  border: 1px solid rgb(128 128 128 / .4);
}


/* Part 4/4: Content Pages, Prose, Timeline, Crew, FAQ, CTA & Mobile Responsive */
.home-body,
.page-wrap {
  padding-top: var(--space-6);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-xs);
  color: var(--muted);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--primary);
}

.page-header {
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--space-6);
}

.page-lead {
  font-size: var(--fs-lg);
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 0;
  max-width: 64ch;
}

.prose {
  max-width: 74ch;
}

.home-prose {
  max-width: none;
}

.prose ul,
.prose ol {
  margin: 0 0 var(--space-5);
  padding-left: var(--space-5);
  max-width: 68ch;
}

.prose li {
  margin-bottom: var(--space-2);
}

.prose blockquote {
  margin: var(--space-5) 0;
  padding: var(--space-4) var(--space-5);
  background: var(--surface);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text);
  max-width: 68ch;
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-5) 0;
  font-size: var(--fs-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.prose th,
.prose td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.prose th {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgb(255 176 46 / .05);
}

.prose tr:last-child td {
  border-bottom: none;
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 2px 6px;
  border-radius: var(--radius);
  color: var(--primary);
}

/* Homepage 3-step numbered list */
.prose ol.steps-list,
.home-prose ol {
  list-style: none;
  counter-reset: step;
  padding-left: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  max-width: none;
}

.home-prose ol li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4);
  margin: 0;
}

.home-prose ol li::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--primary);
  margin-bottom: var(--space-2);
}

/* Template showcase cards on /templates */
.tpl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
  margin: var(--space-5) 0;
}

.tpl-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4);
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: var(--space-4);
  align-items: center;
}

.tpl-card img {
  width: 128px;
  height: 128px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.tpl-card h3 {
  margin: 0 0 var(--space-2);
  font-size: var(--fs-lg);
}

.tpl-card p {
  font-size: var(--fs-sm);
  color: var(--muted);
  margin-bottom: var(--space-3);
}

/* Horizontal timeline on /timeline */
.timeline-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
  margin: var(--space-5) 0;
  position: relative;
}

.timeline-node {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: var(--space-4);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--primary);
  margin-bottom: var(--space-2);
}

.timeline-node h3 {
  margin: 0 0 var(--space-2);
  font-size: var(--fs-base);
}

.timeline-node p {
  font-size: var(--fs-sm);
  color: var(--muted);
  margin: 0;
}

/* Compact variant list on /keys */
.variant-list {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0 var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  max-width: 68ch;
}

.variant-list li {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: var(--space-3);
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  margin: 0;
  font-size: var(--fs-sm);
}

.variant-list li:last-child {
  border-bottom: none;
}

/* Crew index grid on /crew */
.crew-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  margin: var(--space-5) 0;
}

.crew-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-5);
}

.crew-card h3 {
  margin: 0 0 var(--space-2);
}

.crew-card p {
  font-size: var(--fs-sm);
  color: var(--muted);
  margin-bottom: var(--space-3);
}

/* FAQ Accordion */
.faq-section {
  margin-top: var(--space-7);
  padding-top: var(--space-6);
  border-top: 1px solid var(--line);
}

.faq-section h2 {
  margin-top: 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 74ch;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.faq-item summary {
  cursor: pointer;
  padding: var(--space-4);
  font-weight: 600;
  font-size: var(--fs-base);
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--primary);
  font-size: var(--fs-lg);
  line-height: 1;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-answer {
  padding: 0 var(--space-4) var(--space-4);
  color: var(--muted);
  font-size: var(--fs-sm);
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* CTA Panel */
.cta-panel {
  margin-top: var(--space-7);
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid rgb(255 176 46 / .35);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.cta-title {
  font-family: var(--font-head);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-1);
}

.cta-desc {
  font-size: var(--fs-sm);
  color: var(--muted);
  margin: 0;
}

/* Mobile Responsive */
@media (max-width: 860px) {
  .site-nav {
    display: none;
  }
  .nav-mobile {
    display: block;
  }
  .jm-workspace {
    grid-template-columns: 1fr;
  }
  .timeline-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tpl-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    padding-inline: 16px;
  }
  .tool-hero {
    padding: 12px 0 16px;
  }
  .hero-bar {
    display: block;
    margin-bottom: var(--space-3);
  }
  .tool-hero h1,
  .hero-bar h1 {
    font-size: 30px;
    line-height: 1.15;
    letter-spacing: -0.01em;
  }
  .hero-note {
    display: block;
    margin-top: 8px;
    font-size: 13px;
  }
  .tool-shell {
    padding: var(--space-3);
  }
  .brand-tag {
    display: none;
  }
  .jm-swipe-hint {
    display: inline;
  }
  .home-prose ol,
  .crew-grid,
  .timeline-track,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .tpl-card {
    grid-template-columns: 1fr;
  }
  .tpl-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }
  .variant-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .jm-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .jm-actions .btn-primary {
    flex: none;
    width: 100%;
    height: 46px;
  }
  .jm-ratio-group {
    width: 100%;
  }
  .jm-ratio-btn {
    flex: 1;
  }
  .jm-color-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .jm-swatch-btn,
  .jm-more-colors summary,
  .jm-bg-chip {
    min-height: 44px;
    width: 100%;
    justify-content: flex-start;
  }
  .jm-more-colors {
    grid-column: 1 / -1;
  }
  .jm-bg-chip {
    width: auto;
    flex: 1 1 calc(50% - 6px);
  }
  .cta-panel .btn-primary {
    width: 100%;
  }
}
