:root {
  --bg: #f6f5f1;
  --paper: #ffffff;
  --ink: #0a0a0c;
  --ink-2: #2a2a2e;
  --ink-soft: #5e5e6a;
  --ink-softer: #9a9aa6;
  --line: #e6e4dc;
  --line-strong: #cfcdc4;
  --accent: #1a1a1e;
  --warn: #c33a3a;
  --good: #186b3e;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --serif: 'Newsreader', 'Times New Roman', Georgia, serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  min-height: 100vh;
}
a { color: inherit; }

/* ─── Top nav ─── */
.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 245, 241, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s, background 0.15s;
}
.topnav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.topnav-brand-dot {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, #5644ED, #8E7BFF);
  display: inline-block;
}
.topnav-brand-logo {
  height: 20px;
  width: auto;
  display: block;
  color: var(--ink);
}
.topnav-brand-divider {
  height: 16px;
  width: 1px;
  background: var(--line);
  display: inline-block;
}
.topnav-brand-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
}
.topnav-right { display: flex; gap: 18px; align-items: center; }
.topnav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s;
}
.topnav-link:hover { color: var(--ink); }
@media (max-width: 640px) {
  .topnav { padding: 14px 20px; }
  .topnav-right { gap: 12px; }
  .topnav-link { font-size: 12.5px; }
}

/* ─── Stage layout ─── */
.stage {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 32px 64px;
}
.stage.stage-cv {
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 24px;
  min-height: 0;
}
#stage-loading {
  min-height: calc(100vh - 64px);
  min-height: calc(100dvh - 64px);
}

/* ─── Hero (two-column) ─── */
.hero {
  width: 100%;
  max-width: 1180px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
  padding: 24px 0 56px;
}
.hero-copy { max-width: 540px; }
.hero-title-mark {
  background: linear-gradient(120deg, rgba(86,68,237,0.18), rgba(86,68,237,0.18));
  background-size: 100% 32%;
  background-repeat: no-repeat;
  background-position: 0 88%;
  padding: 0 4px;
}
@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { max-width: 100%; text-align: left; }
}
.form-shell {
  width: 100%;
  max-width: 520px;
  text-align: left;
  animation: fade-up 0.5s ease both;
}
.kicker {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 18px;
}
.hero-title em {
  font-style: italic;
  color: #5644ED;
}
.hero-sub {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 28px;
  max-width: 480px;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
  font-size: 13px;
}
.hero-trust li {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.hero-trust .check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #5644ED;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

/* Sample CV preview in the hero */
.hero-cv-preview {
  perspective: 1800px;
  display: flex;
  justify-content: center;
}
.hero-cv {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 38px 44px;
  width: 100%;
  max-width: 460px;
  box-shadow:
    0 24px 60px -16px rgba(15, 16, 16, 0.20),
    0 6px 18px -4px rgba(15, 16, 16, 0.08);
  transform: rotateY(-4deg) rotateX(2deg);
  transform-origin: top left;
  position: relative;
  font-family: var(--serif);
  color: var(--ink);
  overflow: hidden;
}
.hero-cv::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 75%, var(--paper) 100%);
  pointer-events: none;
}
.hero-cv-watermark {
  position: absolute;
  top: -10px;
  right: 18px;
  background: var(--ink);
  color: #fff;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  padding: 5px 10px;
  border-radius: 999px;
  transform: rotate(2deg);
  z-index: 2;
}
.hero-cv-name {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 2px;
}
.hero-cv-headline {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.hero-cv-rule {
  height: 1px;
  background: var(--ink);
  margin-bottom: 18px;
}
.hero-cv-section-title {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--ink);
  text-transform: uppercase;
  margin: 14px 0 8px;
}
.hero-cv-section-title:first-of-type { margin-top: 0; }
.hero-cv-summary {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 6px;
}
.hero-cv-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--ink-2);
  margin-bottom: 4px;
}
.hero-cv-row strong { color: var(--ink); font-weight: 700; }
.hero-cv-row span {
  color: var(--ink-softer);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.hero-cv-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  font-family: var(--sans);
}
.hero-cv-chips span {
  background: var(--bg);
  border-radius: 3px;
  padding: 2px 8px;
  font-size: 10.5px;
  color: var(--ink-2);
}
@media (max-width: 920px) {
  .hero-cv { transform: none; max-width: 100%; }
}

/* Skeleton-style placeholders inside the hero CV preview — they make the
   template look like a real document without inventing a person. */
.hero-cv-placeholder {
  background: linear-gradient(90deg, #eceaf6 0%, #f3f1fb 50%, #eceaf6 100%);
  background-size: 200% 100%;
  border-radius: 4px;
  display: block;
  animation: hero-shimmer 2.6s ease-in-out infinite;
}
.hero-cv-placeholder-lg { height: 22px; width: 58%; margin: 0 0 8px; }
.hero-cv-placeholder-sm { height: 12px; width: 78%; margin: 0 0 18px; border-radius: 3px; }
.hero-cv-placeholder-line { height: 10px; width: 100%; margin: 0 0 8px; border-radius: 3px; }
.hero-cv-placeholder-chip {
  display: inline-block;
  height: 18px;
  width: 64px;
  border-radius: 3px;
  background-image: linear-gradient(90deg, #eceaf6 0%, #f3f1fb 50%, #eceaf6 100%);
}
.hero-cv-placeholder-chip:nth-child(2) { width: 84px; }
.hero-cv-placeholder-chip:nth-child(3) { width: 56px; }
.hero-cv-placeholder-chip:nth-child(4) { width: 92px; }
@keyframes hero-shimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  box-shadow: 0 12px 32px rgba(20, 20, 20, 0.04);
}
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.form input {
  appearance: none;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 13px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.form input:focus {
  border-color: var(--ink);
  background: var(--paper);
  box-shadow: 0 0 0 3px rgba(10, 10, 12, 0.08);
}

.form-submit {
  appearance: none;
  background: var(--ink);
  color: #fff;
  border: 0;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  padding: 14px 22px;
  border-radius: 100px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.form-submit:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(10,10,12,0.25); background: #000; }
.form-submit:disabled { opacity: 0.6; cursor: wait; transform: none; }
.form-submit-arrow { font-size: 16px; line-height: 1; }

.form-status {
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 10px;
  text-align: center;
}
.form-status.error { background: rgba(195,58,58,0.08); color: var(--warn); }
.form-fineprint {
  font-size: 12px;
  color: var(--ink-softer);
  text-align: center;
  margin-top: 2px;
}

/* ─── Loading ─── */
.loading-shell {
  text-align: center;
  animation: fade-up 0.4s ease both;
}
.loader {
  display: inline-flex;
  align-items: flex-end;
  gap: 6px;
  height: 32px;
  margin-bottom: 22px;
}
.loader-bar {
  width: 6px;
  background: var(--ink);
  border-radius: 3px;
  animation: bounce 0.9s ease-in-out infinite;
}
.loader-bar:nth-child(1) { animation-delay: 0s;    height: 18px; }
.loader-bar:nth-child(2) { animation-delay: 0.15s; height: 28px; }
.loader-bar:nth-child(3) { animation-delay: 0.30s; height: 22px; }
@keyframes bounce {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1); }
}
.loading-headline {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 32px;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 8px;
}
.loading-substep {
  font-size: 14px;
  color: var(--ink-soft);
  font-family: var(--sans);
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── CV editor ─── */
.cv-toolbar {
  width: 100%;
  max-width: 820px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  margin-bottom: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  position: sticky;
  top: 18px;
  z-index: 10;
  box-shadow: 0 6px 16px rgba(20,20,20,0.04);
}
.cv-toolbar-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}
.cv-toolbar-sub {
  font-size: 11.5px;
  color: var(--ink-soft);
  margin-top: 2px;
}
.cv-toolbar-right { display: flex; gap: 8px; }
.btn-ghost {
  appearance: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 100px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-primary {
  appearance: none;
  background: var(--ink);
  color: #fff;
  border: 0;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.btn-primary:hover { background: #000; transform: translateY(-1px); }

/* ─── The CV paper ─── */
.cv {
  background: var(--paper);
  width: 100%;
  max-width: 820px;
  aspect-ratio: 1 / 1.414; /* A4-ish */
  min-height: 1080px;
  padding: 56px 64px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 24px 56px rgba(20, 20, 20, 0.08);
  animation: fade-up 0.45s ease both;
  font-family: var(--serif);
  font-size: 13.5px;
  line-height: 1.5;
}

.cv [contenteditable]:focus {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  background: rgba(0, 0, 0, 0.02);
}

.cv-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 22px;
}
.cv-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 42px;
  letter-spacing: -0.025em;
  line-height: 1;
  margin: 0 0 6px;
}
.cv-headline {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: 15px;
  color: var(--ink-2);
  margin: 0;
}
.cv-contact {
  font-family: var(--sans);
  font-size: 11.5px;
  color: var(--ink-2);
  text-align: right;
  line-height: 1.6;
}
.cv-contact a { color: inherit; text-decoration: none; }

.cv-section { margin-bottom: 22px; }
.cv-section:last-child { margin-bottom: 0; }
.cv-section-title {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line-strong);
}

.cv-summary {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
}

.cv-entry { margin-bottom: 10px; }
.cv-entry:last-child { margin-bottom: 0; }
.cv-entry-compact { margin-bottom: 6px; }
.cv-entry-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.cv-entry-title {
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: -0.005em;
  color: var(--ink);
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}
.cv-entry-role {
  font-weight: 700;
  color: var(--ink);
}
.cv-entry-company {
  font-weight: 600;
  color: var(--ink-2);
}
.cv-entry-title-sep {
  color: var(--ink-softer);
  font-weight: 400;
  font-size: 12.5px;
  margin: 0 2px;
}
.cv-entry-date {
  font-family: var(--sans);
  font-size: 11.5px;
  color: var(--ink-soft);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.cv-entry-meta {
  font-family: var(--sans);
  font-size: 11.5px;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.cv-entry-body {
  font-family: var(--serif);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
}

/* Empty editable fields get a soft placeholder via :before */
.cv-empty:empty::before,
.cv-empty[data-placeholder]:empty::before {
  content: attr(data-placeholder);
  color: var(--ink-softer);
  font-style: italic;
  pointer-events: none;
}
.cv-empty:focus::before { content: none; }

.cv-skills {
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-2);
}
.cv-skill-sep { color: var(--ink-softer); margin: 0 6px; }

.cv-list {
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-2);
}

/* ─── Share bar ─── */
.cv-share-bar {
  margin-top: 12px;
  background: #f7f3ec;
  border: 1px solid #e5dccd;
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
}
.cv-share-bar-label { color: #555; font-weight: 600; }
.cv-share-url {
  flex: 1;
  min-width: 220px;
  border: 1px solid #e5dccd;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  background: #fff;
  color: #111;
  font-family: ui-monospace, monospace;
}

/* ─── Print ─── */
@page { size: A4; margin: 16mm; }
@media print {
  body { background: #fff; }
  .topnav, .cv-toolbar { display: none !important; }
  .stage, .stage-cv { padding: 0 !important; min-height: 0; display: block; }
  .cv {
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    max-width: 100%;
    padding: 0;
    min-height: 0;
    aspect-ratio: auto;
  }
  .cv [contenteditable]:focus { outline: none !important; background: none !important; }
}

/* ─── Responsive ─── */
@media (max-width: 720px) {
  .topnav { padding: 14px 18px; }
  .stage { padding: 16px 18px 32px; }
  .hero-title { font-size: clamp(34px, 9vw, 48px); }
  .form { padding: 18px; }
  .cv-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px;
  }
  .cv-toolbar-right { justify-content: stretch; }
  .cv-toolbar-right .btn-ghost, .cv-toolbar-right .btn-primary { flex: 1 1 0; }
  .cv {
    padding: 28px 22px;
    min-height: 0;
    aspect-ratio: auto;
    font-size: 12.5px;
  }
  .cv-head { grid-template-columns: 1fr; }
  .cv-contact { text-align: left; }
  .cv-name { font-size: 30px; }
}

/* ───────────────── Landing-only sections ───────────────── */
/* Hide everything below the fold once the user starts generating */
body.is-generating .landing-extras { display: none; }

.strip {
  background: var(--ink);
  color: #fff;
  padding: 40px 24px;
}
.strip-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.strip-item { text-align: center; }
.strip-num {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: 6px;
}
.strip-label {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b9bbc1;
  font-weight: 500;
}
@media (max-width: 720px) {
  .strip-inner { grid-template-columns: repeat(2, 1fr); }
  .strip-num { font-size: 32px; }
}

.section {
  padding: 96px 24px;
}
.section-alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-inner { max-width: 1080px; margin: 0 auto; }
.section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #5644ED;
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 36px;
  max-width: 22ch;
}
.section-title em { font-style: italic; color: #5644ED; }
.section-sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: -20px 0 36px;
  max-width: 60ch;
}
@media (max-width: 640px) {
  .section { padding: 64px 20px; }
  .section-title { font-size: 28px; }
}

/* How it works */
.how-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.how-grid li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 26px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.how-grid li:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(20,20,20,0.06); }
.how-num {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 500;
  color: #5644ED;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
  line-height: 1;
}
.how-grid h3 {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
  letter-spacing: -0.005em;
}
.how-grid p {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.6;
}
.how-grid code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  background: var(--bg);
  border-radius: 4px;
  padding: 1px 6px;
}
@media (max-width: 820px) { .how-grid { grid-template-columns: 1fr; } }

/* Compare cards */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.compare-card {
  border-radius: 18px;
  padding: 32px 28px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.compare-good {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.compare-good .compare-badge {
  background: #5644ED;
  color: #fff;
}
.compare-bad .compare-badge {
  background: var(--bg);
  color: var(--ink-soft);
}
.compare-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.compare-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.compare-card li {
  padding: 10px 0;
  font-size: 14.5px;
  line-height: 1.5;
  border-bottom: 1px solid;
  border-color: var(--line);
  position: relative;
  padding-left: 22px;
}
.compare-card li:last-child { border-bottom: none; }
.compare-card li::before {
  position: absolute;
  left: 0;
  top: 11px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
}
.compare-bad li { color: var(--ink-soft); }
.compare-bad li::before { content: "✕"; color: #c33a3a; }
.compare-good li { color: #e6e6ea; border-color: #2a2a2e; }
.compare-good li::before { content: "✓"; color: #5644ED; }
.compare-card code {
  font-family: ui-monospace, monospace;
  font-size: 0.92em;
  background: rgba(255,255,255,0.06);
  padding: 1px 5px;
  border-radius: 3px;
}
.compare-bad code {
  background: var(--bg);
}
@media (max-width: 720px) { .compare-grid { grid-template-columns: 1fr; } }

/* Templates grid */
.tpl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.tpl-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 24px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.tpl-card:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
  box-shadow: 0 12px 28px rgba(15,16,16,0.06);
}
.tpl-card strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.tpl-card span {
  font-size: 13px;
  color: var(--ink-soft);
}
.tpl-card-all {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.tpl-card-all:hover { background: #000; }
.tpl-card-all strong { color: #fff; }
.tpl-card-all span { color: #5644ED; font-size: 20px; font-weight: 700; }
@media (max-width: 820px) { .tpl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tpl-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.faq li {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.faq h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 10px;
}
.faq p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
  max-width: 72ch;
}
.faq code {
  font-family: ui-monospace, monospace;
  font-size: 0.92em;
  background: var(--bg);
  padding: 1px 6px;
  border-radius: 3px;
}

/* Final CTA */
.section-cta {
  background: var(--ink);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.section-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 0%, rgba(86, 68, 237, 0.42), transparent 50%);
  pointer-events: none;
}
.cta-title {
  position: relative;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: #fff;
  margin: 0 0 14px;
}
.cta-sub {
  position: relative;
  font-size: 17px;
  color: #b9bbc1;
  margin: 0 0 32px;
}
.cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--ink);
  padding: 16px 32px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(255,255,255,0.18); }

/* Footer */
.footer {
  background: #0a0a0c;
  color: #c5c7cb;
  padding: 64px 24px 32px;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
}
.footer-tag {
  font-size: 14px;
  color: #8a8d94;
  margin: 12px 0 0;
  max-width: 36ch;
  line-height: 1.55;
}
.footer-tag a { color: #fff; text-decoration: underline; text-decoration-color: #5644ED; text-underline-offset: 3px; }
.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b6e74;
  margin-bottom: 6px;
}
.footer-col a {
  color: #c5c7cb;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: 1180px;
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid #1a1a1e;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #6b6e74;
  gap: 16px;
  flex-wrap: wrap;
}
@media (max-width: 820px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
}
