/* ─── Design tokens ──────────────────────────────────────────────────────── */
:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --ink: #1a1523;
  --muted: #4b5563;
  --line: #8ecbff;
  --line-strong: rgba(120, 190, 255, 0.7);
  --line-soft: rgba(120, 190, 255, 0.45);

  /* Brand — vibrant purple */
  --brand: #7c3aed;
  --brand-dark: #5b21b6;
  --brand-soft: #f3f0ff;

  /* Accent palette */
  --amber: #f59e0b;
  --amber-soft: #fffbeb;
  --orange: #f97316;
  --orange-soft: #fff7ed;
  --green: #10b981;
  --green-soft: #ecfdf5;
  --pink: #ec4899;
  --pink-soft: #fdf2f8;
  --blue: #3b82f6;
  --blue-soft: #eff6ff;

  /* Semantic */
  --danger: #dc2626;
  --danger-soft: #fee2e2;
  --success: #059669;
  --success-soft: #d1fae5;

  --shadow: 0 4px 24px rgba(124, 58, 237, 0.1);
  --shadow-lg: 0 12px 48px rgba(124, 58, 237, 0.14);
  --radius: 20px;
}

/* ─── Reset ──────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

a { color: inherit; text-decoration: none; }

input, select, textarea, button { font: inherit; }

textarea, input, select {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  background: var(--surface-strong);
  color: var(--ink);
  transition: border-color 0.15s;
}
textarea:focus, input:focus, select:focus {
  outline: none;
  border-color: var(--brand);
}

label {
  display: inline-block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ─── App layout (authenticated pages) ──────────────────────────────────── */
.layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 272px 1fr;
}

.sidebar {
  padding: 1.5rem 1.25rem;
  background: #1e1b4b;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.brand-logo-image {
  display: block;
  width: 2.8rem;
  height: 2.8rem;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  color: #1a1523;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.brand strong { color: #ffffff; font-size: 1.05rem; }
.brand small  { color: rgba(255,255,255,0.55); font-size: 0.78rem; display: block; }

.brand strong,
.page-head h1,
.card h2 {
  font-family: "Fraunces", serif;
}

.nav-group {
  display: grid;
  gap: 0.3rem;
  margin-bottom: 2rem;
}

.nav-group a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.15s, color 0.15s;
}
.nav-group a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}
.nav-group a.active {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.sidebar-panel {
  margin-top: auto;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-panel .eyebrow { color: rgba(255,255,255,0.45); margin: 0 0 0.2rem; }
.sidebar-panel strong  { color: #ffffff; font-size: 0.95rem; }

.brand small,
.eyebrow,
.help-text,
.empty-state,
.list-row p,
.pipeline-step p {
  color: var(--muted);
}

.main-shell {
  padding: 2.5rem 2.5rem 2.5rem;
  min-height: 100vh;
  background: var(--bg);
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.page-head h1 {
  margin: 0.2rem 0 0;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* ─── Grid helpers ───────────────────────────────────────────────────────── */
.grid               { display: grid; gap: 1.25rem; }
.grid-2             { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3             { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4             { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.job-summary-strip  { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.85rem; margin-bottom: 1rem; }

/* ─── Cards ──────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.card h2 {
  font-size: 1.3rem;
  margin: 0 0 1rem;
}

.stat-card { position: relative; overflow: hidden; }
.stat-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  border-radius: 20px 20px 0 0;
}
.stat-card:nth-child(1)::before { background: var(--brand); }
.stat-card:nth-child(2)::before { background: var(--amber); }
.stat-card:nth-child(3)::before { background: var(--green); }

.stat-card strong, .metric {
  display: block;
  font-family: "Fraunces", serif;
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 0.35rem;
  margin-top: 0.5rem;
}

.stack { display: grid; gap: 0.85rem; }
.compact { gap: 0.5rem; }

/* ─── List rows ──────────────────────────────────────────────────────────── */
.section-head, .list-row, .button-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.list-row {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: var(--brand-soft);
  border: 1px solid rgba(124, 58, 237, 0.08);
  transition: background 0.15s;
}
.list-row:hover { background: #ede9fe; }

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.button, button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.75rem 1.4rem;
  font-weight: 700;
  font-size: 0.95rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #ffffff;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
}
.button:hover { opacity: 0.9; transform: translateY(-1px); }

.button.secondary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.button.secondary:hover { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }

.button.amber {
  background: linear-gradient(135deg, var(--amber), var(--orange));
  color: #1a1523;
}

.button.ghost {
  background: transparent;
  color: var(--brand);
  border: 2px solid var(--brand);
}
.button.ghost:hover { background: var(--brand-soft); }

/* ─── Chips / badges ─────────────────────────────────────────────────────── */
.chip, .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  background: var(--brand-soft);
  color: var(--brand);
}

.badge {
  background: var(--amber-soft);
  color: #92400e;
}

.chip.subtle {
  background: rgba(124, 58, 237, 0.08);
  color: var(--muted);
}

/* ─── Messages ───────────────────────────────────────────────────────────── */
.message {
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  font-size: 0.95rem;
}
.message.success { border-color: var(--success); background: var(--success-soft); }
.message.warning { border-color: var(--amber);   background: var(--amber-soft);   }
.message.error   { border-color: var(--danger);  background: var(--danger-soft);  }

/* ─── Quota bar ──────────────────────────────────────────────────────────── */
.quota-bar {
  padding: 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  display: grid;
  gap: 0.45rem;
  margin-top: 0.85rem;
}
.quota-bar-track {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
}
.quota-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  transition: width 0.35s ease;
}
.quota-bar-fill.full { background: #ef4444; }

/* ─── Live pipeline UI ───────────────────────────────────────────────────── */
.live-meta { display: flex; align-items: center; gap: 0.65rem; flex-wrap: wrap; }
.live-shell { display: grid; gap: 0.9rem; }
.live-topbar { display: grid; grid-template-columns: minmax(0, 1.7fr) auto; gap: 1rem; align-items: start; }
.live-status-block { display: grid; gap: 0.55rem; }

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 700;
}
.live-badge.active  { background: #fef3c7; color: #92400e; }
.live-badge.complete{ background: var(--success-soft); color: var(--success); }
.live-badge.error   { background: var(--danger-soft); color: var(--danger); }
.live-badge.queued  { background: var(--brand-soft); color: var(--muted); }

.live-badge-dot {
  width: 0.65rem; height: 0.65rem;
  border-radius: 999px;
  background: currentColor;
  position: relative; flex-shrink: 0;
}
.live-badge.active .live-badge-dot::after {
  content: "";
  position: absolute; inset: -0.3rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.22);
  animation: live-pulse 1.6s ease-out infinite;
}

.live-headline { font-size: 1.1rem; line-height: 1.45; }

.live-counter-grid { display: grid; grid-template-columns: repeat(3, minmax(110px, 1fr)); gap: 0.65rem; }
.live-counter-card, .live-mini-stats div {
  display: grid; gap: 0.2rem;
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: var(--surface);
}
.live-counter-card span, .live-mini-stats span, .progress-inline-head span { color: var(--muted); font-size: 0.82rem; }
.live-counter-card strong, .live-mini-stats strong { font-size: 1rem; }
.live-counter-card.warning { border-color: var(--amber); background: var(--amber-soft); }

.compact-callout { padding: 0.75rem 0.95rem; border-radius: 14px; font-size: 0.94rem; border: 1.5px solid var(--line); }
.compact-callout.warning { background: var(--amber-soft); border-color: var(--amber); }
.compact-callout.error   { background: var(--danger-soft); border-color: var(--danger); }

.live-progress-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: end; }
.progress-inline { display: grid; gap: 0.45rem; }
.progress-inline-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.compact-track { height: 0.65rem; }
.live-mini-stats { display: grid; grid-template-columns: repeat(4, minmax(72px, 1fr)); gap: 0.65rem; }

.step-strip { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.step-pill {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.45rem 0.8rem; border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--surface); font-size: 0.85rem; color: var(--muted);
}
.step-pill.current { border-color: var(--amber); background: var(--amber-soft); color: #92400e; }
.step-pill.complete { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.step-pill-dot { width: 0.5rem; height: 0.5rem; border-radius: 999px; background: currentColor; flex-shrink: 0; }

.live-feed-head { align-items: end; }
.activity-feed { display: grid; gap: 0.4rem; max-height: 320px; overflow: auto; padding-right: 0.2rem; }
.activity-line {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.9rem; align-items: start;
  padding: 0.7rem 0.85rem; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--surface);
}
.activity-line-main p { margin: 0.3rem 0 0; color: var(--ink); }
.activity-step-tag {
  display: inline-flex; align-items: center;
  border-radius: 999px; padding: 0.2rem 0.55rem;
  background: var(--brand-soft); color: var(--brand);
  font-size: 0.72rem; font-weight: 700;
}
.activity-line.info    { border-left: 3px solid var(--brand); }
.activity-line.warning { border-left: 3px solid var(--amber); }
.activity-line.error   { border-left: 3px solid var(--danger); }

.progress-track { width: 100%; height: 0.8rem; border-radius: 999px; overflow: hidden; background: var(--line); }
.progress-bar { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--pink)); transition: width 0.35s ease; }

.pipeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.85rem; }
.pipeline-step { display: flex; gap: 0.8rem; padding: 0.9rem 1rem; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); }
.pipeline-step.complete { border-color: var(--brand); background: var(--brand-soft); }
.pipeline-step.current  { border-color: var(--amber); background: var(--amber-soft); }
.pipeline-dot { width: 0.85rem; height: 0.85rem; border-radius: 999px; margin-top: 0.25rem; background: var(--line); }
.pipeline-step.complete .pipeline-dot { background: var(--brand); }
.pipeline-step.current  .pipeline-dot { background: var(--amber); }

.outline-block { padding: 0.8rem; border-radius: 14px; background: var(--brand-soft); }
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

.code-panel { white-space: pre-wrap; background: #0f0d1a; color: #e2e8f0; border-radius: 16px; padding: 1rem; min-height: 420px; overflow: auto; }

.preview { line-height: 1.75; }
.preview h1, .preview h2, .preview h3 { font-family: "Fraunces", serif; }

.checkbox-grid ul { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; padding: 0; margin: 0; }
.checkbox-grid li { display: flex; align-items: center; gap: 0.5rem; }
.checkbox-grid input { width: auto; }
.checkbox-row { display: grid; gap: 0.35rem; }
.checkbox-label { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; cursor: pointer; }
.checkbox-label input[type="checkbox"] { width: 1.1rem; height: 1.1rem; flex-shrink: 0; accent-color: var(--brand); }

.draft-preview img { max-width: 100%; border-radius: 12px; margin: 1rem 0; }
.form-card { max-width: 760px; }
.error-text { color: var(--danger); font-size: 0.88rem; margin-top: 0.25rem; }
.metric-small { font-size: 1.8rem; }
.activity-time { color: var(--muted); white-space: nowrap; font-size: 0.8rem; }

.overview-pill {
  display: grid; gap: 0.25rem;
  padding: 1rem 1.1rem; border-radius: 18px;
  border: 1.5px solid var(--line); background: var(--surface); box-shadow: var(--shadow);
}
.overview-pill strong { font-size: 1.7rem; font-family: "Fraunces", serif; }

.activity-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.activity-stat-card {
  display: grid;
  gap: 0.3rem;
}

.activity-stat-card strong {
  font-size: 1.7rem;
  font-family: "Fraunces", serif;
  line-height: 1.05;
}

.activity-stat-label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.activity-stat-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.activity-list {
  display: grid;
  gap: 0.85rem;
}

.activity-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  border: 1.5px solid var(--line);
}

.activity-card.scheduled { background: var(--brand-soft); border-color: rgba(124, 58, 237, 0.18); }
.activity-card.pending { background: var(--amber-soft); border-color: rgba(245, 158, 11, 0.28); }
.activity-card.paused { background: var(--blue-soft); border-color: rgba(59, 130, 246, 0.2); }
.activity-card.failed { background: var(--danger-soft); border-color: rgba(220, 38, 38, 0.2); }
.activity-card.published { background: var(--green-soft); border-color: rgba(16, 185, 129, 0.22); }

.activity-card-main {
  min-width: 0;
  display: grid;
  gap: 0.35rem;
}

.activity-card-topline {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.activity-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  font-size: 0.77rem;
  font-weight: 700;
}

.activity-status-pill.scheduled { background: rgba(124, 58, 237, 0.12); color: var(--brand); }
.activity-status-pill.pending { background: rgba(245, 158, 11, 0.18); color: #92400e; }
.activity-status-pill.paused { background: rgba(59, 130, 246, 0.12); color: var(--blue); }
.activity-status-pill.failed { background: rgba(220, 38, 38, 0.12); color: var(--danger); }
.activity-status-pill.published { background: rgba(16, 185, 129, 0.12); color: var(--green); }

.activity-card-time {
  font-size: 0.85rem;
  color: var(--muted);
}

.activity-card-title {
  margin: 0;
  font-size: 1rem;
  font-family: "Fraunces", serif;
}

.activity-card-meta,
.activity-card-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.activity-card-note {
  color: var(--danger);
}

.activity-card-link {
  font-size: 0.84rem;
  color: var(--brand);
  word-break: break-all;
}

.activity-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex-shrink: 0;
}

.activity-danger-button {
  color: var(--danger);
  border-color: rgba(220, 38, 38, 0.22);
}

@keyframes live-pulse {
  0%   { transform: scale(0.85); opacity: 0.75; }
  70%  { transform: scale(1.45); opacity: 0; }
  100% { transform: scale(1.45); opacity: 0; }
}

/* ─── Stage output ───────────────────────────────────────────────────────── */
.stage-output { display: grid; gap: 0.9rem; }
.stage-meta-row { display: flex; align-items: flex-start; gap: 0.65rem; flex-wrap: wrap; }
.stage-meta-row strong { white-space: nowrap; margin-top: 0.1rem; }
.chip-group { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.serp-keyword-group { border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; }
.serp-keyword-label { margin: 0; padding: 0.6rem 1rem; background: var(--brand-soft); font-weight: 700; font-size: 0.85rem; color: var(--brand); }
.serp-result-list { display: grid; gap: 0; }
.serp-result-row { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) auto; align-items: start; gap: 0.75rem; padding: 0.65rem 1rem; border-top: 1.5px solid var(--line); }
.serp-pos { font-size: 0.76rem; font-weight: 700; color: var(--muted); padding-top: 0.15rem; text-align: right; }
.serp-result-body { display: grid; gap: 0.2rem; }
.serp-title { font-weight: 600; font-size: 0.88rem; color: var(--brand); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(124,58,237,0.25); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.serp-snippet { margin: 0; font-size: 0.8rem; color: var(--muted); line-height: 1.4; }

.pattern-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.pattern-stat { padding: 0.85rem 1rem; border-radius: 12px; background: var(--brand-soft); border: 1px solid rgba(124,58,237,0.12); display: grid; gap: 0.25rem; }
.pattern-stat span { font-size: 0.8rem; color: var(--muted); }
.pattern-stat strong { font-size: 1.3rem; }

.topic-summary-list { display: grid; gap: 0; border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; }
.topic-summary-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem 1rem; border-top: 1.5px solid var(--line); }
.topic-summary-row:first-child { border-top: none; }
.topic-summary-main { display: grid; gap: 0.15rem; min-width: 0; }
.topic-summary-main strong { font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topic-summary-main .help-text { margin: 0; }
.badge.complete { background: var(--brand-soft); color: var(--brand); }
.badge.warning  { background: var(--amber-soft); color: #92400e; }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .layout, .job-summary-strip, .grid-2, .grid-3, .grid-4, .split-layout { grid-template-columns: 1fr; }
  .sidebar { height: auto; position: static; }
  .page-head, .section-head, .button-row, .list-row, .live-topbar, .live-progress-row, .activity-line { flex-direction: column; align-items: flex-start; }
  .live-topbar, .live-progress-row, .activity-line { display: grid; grid-template-columns: 1fr; }
  .live-counter-grid, .live-mini-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .activity-stats-grid { grid-template-columns: 1fr; }
  .activity-card,
  .activity-actions,
  .activity-card-topline { flex-direction: column; align-items: flex-start; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   LANDING PAGE
   ═══════════════════════════════════════════════════════════════════════════ */

.landing-body {
  position: relative;
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(191, 247, 222, 0.35), transparent 20%),
    linear-gradient(180deg, #fdfdfb 0%, #fcfcfa 100%);
  color: #161616;
}
.landing-body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 100vh;
  background: linear-gradient(180deg, #d6f7e7 0%, #bfeedd 100%);
  z-index: 1;
  pointer-events: none;
}
.landing-body .brand strong,
.landing-body .hero-h1,
.landing-body .section-h2,
.landing-body .feat-card h3,
.landing-body .step-body strong,
.landing-body .author-info strong,
.landing-body .site-footer-column h3,
.landing-body .cta-band .section-h2 {
  font-family: "Plus Jakarta Sans", sans-serif;
}
.landing-body .button,
.landing-body button.button {
  border-radius: 14px;
  background: #161616;
  color: #ffffff;
  box-shadow: none;
  transform: none;
}
.landing-body .button:hover,
.landing-body button.button:hover {
  opacity: 0.94;
  transform: none;
}
.landing-body .button.secondary,
.landing-body .button.ghost {
  background: rgba(255,255,255,0.82);
  color: #161616;
  border: 1px solid var(--line-strong);
}
.landing-body .button.secondary:hover,
.landing-body .button.ghost:hover {
  background: #ffffff;
  border-color: #59b7ff;
  color: #161616;
}
.landing-body .button.amber {
  background: #161616;
  color: #ffffff;
}

/* ── Nav ── */
.landing-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(250, 250, 249, 0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 10px 30px rgba(17, 17, 17, 0.04);
}
.landing-nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 1220px;
  margin: 0 auto;
  padding: 1.05rem 2.5rem 0.95rem;
  background: transparent;
}
.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.landing-nav-links a {
  color: #6c6c6a;
  font-size: 0.93rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}
.landing-nav-links a:hover,
.landing-nav-links a:focus-visible {
  color: #111111;
}
.landing-nav-actions { display: flex; align-items: center; gap: 0.65rem; }
.landing-brand-copy { display: grid; gap: 0.1rem; }
.landing-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.96);
  color: #151515;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.05);
}
.landing-nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  margin: 0.16rem 0;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.landing-nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(0.38rem) rotate(45deg);
}
.landing-nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.landing-nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-0.38rem) rotate(-45deg);
}
.landing-nav .brand strong { color: #151515; font-size: 1.16rem; }
.landing-nav .brand small  { color: #5b6472; font-size: 0.76rem; }
.landing-nav .brand-mark   { background: #151515; color: #fff; }
.landing-nav .brand-logo-image { width: 2.75rem; height: 2.75rem; }

/* ── Hero ── */
.hero-section {
  position: relative;
  overflow: hidden;
  background: transparent;
  padding: 3.6rem 2.5rem 4.5rem;
  text-align: left;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1220px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(460px, 1fr);
  gap: 4rem;
  align-items: start;
}

.hero-copy {
  max-width: 520px;
  justify-self: start;
  text-align: left;
  padding-top: 1rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.24rem 0.7rem;
  border-radius: 999px;
  background: #ffffff;
  color: #7f7f7a;
  font-size: 0.74rem;
  font-weight: 700;
  margin-bottom: 1.35rem;
  border: 1px solid var(--line-soft);
  box-shadow: 0 2px 12px rgba(17, 17, 17, 0.04);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero-h1 {
  font-size: clamp(1.5rem, 2.75vw, 2.375rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #151515;
  margin: 0 0 1.35rem;
  font-weight: 800;
}
.hero-h1 span {
  color: #151515;
}
.hero-h1 .hero-accent {
  color: #5b6cff;
}

.hero-sub {
  font-size: 0.98rem;
  color: #4b5563;
  max-width: 440px;
  margin: 0 0 1.8rem;
  line-height: 1.7;
}

.hero-cta-row {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}
.hero-cta-row .button { font-size: 0.94rem; padding: 0.88rem 1.5rem; }

.hero-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: #3b5bdb;
  font-weight: 700;
}

.hero-media {
  width: 100%;
  display: flex;
  align-self: end;
}

.hero-video-shell {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 0.8rem;
  border-radius: 26px;
  border: 1px solid var(--line-soft);
  background: rgba(255,255,255,0.92);
  box-shadow: 0 14px 42px rgba(17,17,17,0.06);
}

.hero-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 18px;
  background: #fbfbf9;
}

.features-section {
  background: transparent;
  padding: 4.5rem 2.5rem;
}
.features-inner { max-width: 1220px; margin: 0 auto; }

.section-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9c8bff;
  margin-bottom: 0.9rem;
}
.section-h2 {
  font-size: clamp(1.05rem, 1.95vw, 1.65rem);
  letter-spacing: -0.045em;
  margin: 0 0 0.85rem;
  line-height: 1.02;
  font-weight: 800;
  color: #121212;
}
.section-sub {
  color: #4b5563;
  font-size: 0.96rem;
  max-width: 560px;
  line-height: 1.72;
}

.features-grid-6 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 2.8rem;
}

.feat-card {
  background: rgba(255,255,255,0.72);
  border-radius: 24px;
  padding: 1.5rem;
  border: 1px solid var(--line-soft);
  box-shadow: 0 6px 24px rgba(17,17,17,0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.feat-card:hover { border-color: var(--line-strong); box-shadow: 0 10px 32px rgba(17,17,17,0.06); }

.feat-icon {
  width: 2.65rem; height: 2.65rem;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  color: #1d1d1b;
  border: 1px solid rgba(17,17,17,0.04);
}
.feat-icon.purple { background: #f4f0ff; }
.feat-icon.amber  { background: #fff7e9; }
.feat-icon.green  { background: #eefaf3; }
.feat-icon.orange { background: #fff2ea; }
.feat-icon.blue   { background: #eef4ff; }
.feat-icon.pink   { background: #fdf0f7; }

.feat-card h3 {
  font-size: 0.885rem;
  margin: 0 0 0.45rem;
  letter-spacing: -0.03em;
}
.feat-card p { margin: 0; color: #4b5563; line-height: 1.7; font-size: 0.91rem; }

/* ── Pipeline / How it works ── */
.pipeline-section {
  background: transparent;
  padding: 4.5rem 2.5rem;
}
.pipeline-inner { max-width: 1220px; margin: 0 auto; }
.pipeline-subtitle { max-width: 680px; }
.pipeline-steps { display: grid; gap: 1.25rem; max-width: 700px; margin: 3rem auto 0; }
.pipeline-steps-compact {
  max-width: 1120px;
  gap: 1rem;
  justify-items: center;
}
.pipeline-step-row {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.25rem;
  border-radius: 26px;
  background: rgba(255,255,255,0.74);
  border: 1px solid var(--line-soft);
  transition: border-color 0.15s;
}
.pipeline-step-row:hover { border-color: var(--line-strong); }
.pipeline-step-row-manual,
.pipeline-step-row-auto {
  position: relative;
  padding-top: 3rem;
}
.pipeline-step-row-manual {
  width: min(100%, 540px);
  background: linear-gradient(180deg, #fbf9ff 0%, #ffffff 100%);
  border-color: rgba(161, 146, 255, 0.26);
  box-shadow: 0 8px 28px rgba(17,17,17,0.04);
}
.pipeline-step-row-auto {
  display: block;
  width: 100%;
  background: linear-gradient(180deg, #fbfdfc 0%, #ffffff 100%);
  border-color: rgba(186, 232, 210, 0.75);
  box-shadow: 0 8px 28px rgba(17,17,17,0.04);
  text-align: left;
}
.pipeline-step-type {
  position: absolute;
  top: 1rem;
  left: 1.25rem;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.69rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.pipeline-step-row-manual .pipeline-step-type {
  background: #f4f0ff;
  color: #7a61ff;
}
.pipeline-step-row-auto .pipeline-step-type {
  background: #eefaf3;
  color: #29a16c;
}
.pipeline-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a192ff;
  font-size: 1.7rem;
  font-weight: 800;
}
.pipeline-flow-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.9rem;
  padding-top: 0.15rem;
}
.pipeline-flow-step {
  min-width: 0;
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 0.7rem;
  padding: 1.05rem 0.95rem 0.95rem;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(17,17,17,0.05);
  min-height: 170px;
}
.pipeline-flow-step:nth-child(1),
.pipeline-flow-step:nth-child(2),
.pipeline-flow-step:nth-child(3) {
  grid-column: span 2;
}
.pipeline-flow-step:nth-child(4) {
  grid-column: 2 / span 2;
}
.pipeline-flow-step:nth-child(5) {
  grid-column: 4 / span 2;
}
.pipeline-flow-step .step-body {
  text-align: left;
}
.pipeline-flow-step .step-body strong {
  min-height: 2.45rem;
}
.step-num {
  width: 2.3rem; height: 2.3rem; flex-shrink: 0;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.88rem;
}
.step-num.s1 { background: #f4f0ff; color: #7a61ff; }
.step-num.s2 { background: #fff7e9; color: #be7b12; }
.step-num.s3 { background: #eefaf3; color: #2c9a67; }
.step-num.s4 { background: #fff2ea; color: #dc7b38; }
.step-num.s5 { background: #fdf0f7; color: #dc5b9a; }
.step-num.s6 { background: #eef4ff; color: #5988ff; }
.step-body strong { display: block; font-size: 0.98rem; margin-bottom: 0.25rem; letter-spacing: -0.03em; color: #171717; }
.step-body p { margin: 0; color: #4b5563; font-size: 0.89rem; line-height: 1.68; }

/* ── Testimonials ── */
.testimonials-section {
  background: transparent;
  padding: 4.5rem 2.5rem;
  text-align: center;
}
.testimonials-section .section-h2 { color: #161616; }
.testimonials-section .section-sub { color: #4b5563; margin: 0 auto; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1rem;
  max-width: 1120px;
  margin: 3rem auto 0;
  text-align: left;
}
.testimonial-card {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  padding: 1.75rem;
  display: grid;
  gap: 1rem;
  box-shadow: 0 8px 28px rgba(17,17,17,0.04);
}
.testimonial-card blockquote {
  margin: 0;
  font-style: normal;
  color: #1f1f1d;
  line-height: 1.75;
  font-size: 0.95rem;
}
.testimonial-author { display: flex; align-items: center; gap: 0.85rem; }
.author-avatar {
  width: 2.6rem; height: 2.6rem; border-radius: 999px;
  background: #f4f0ff;
  color: #7a61ff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.85rem; flex-shrink: 0;
}
.author-info strong { display: block; font-size: 0.9rem; color: #151515; }
.author-info span   { color: #4b5563; font-size: 0.82rem; }

/* ── CTA band ── */
.cta-band {
  max-width: 1120px;
  margin: 1rem auto 0;
  background: rgba(255,255,255,0.82);
  border: 1px solid var(--line-soft);
  border-radius: 32px;
  padding: 3.8rem 2rem;
  text-align: center;
  box-shadow: 0 12px 34px rgba(17,17,17,0.04);
}
.cta-band .section-h2 { max-width: 600px; margin: 0 auto 1rem; }
.cta-band p { color: #4b5563; font-size: 0.95rem; margin: 0 0 1.75rem; line-height: 1.72; }

/* ── Footer ── */
.public-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(124,58,237,0.08), transparent 34%),
    radial-gradient(circle at top right, rgba(245,158,11,0.08), transparent 32%),
    #fefefe;
}
.public-main {
  padding-bottom: 4rem;
}
.public-hero {
  padding: 5rem 2rem 2rem;
}
.public-hero-inner,
.public-content {
  max-width: 1100px;
  margin: 0 auto;
}
.public-intro {
  max-width: 760px;
  margin: 1rem 0 0;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--muted);
}
.public-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.public-card {
  display: grid;
  gap: 1rem;
  padding: 1.6rem;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 48px rgba(26, 21, 35, 0.06);
}
.public-card h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.public-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}
.feature-page-main {
  padding-bottom: 5rem;
}
.feature-detail-list {
  display: grid;
  gap: 1.35rem;
}
.feature-detail-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 1.4rem;
  align-items: center;
  padding: 1.4rem;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 48px rgba(26, 21, 35, 0.06);
}
.feature-detail-row-reverse {
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
}
.feature-detail-row-reverse .feature-detail-copy {
  order: 2;
}
.feature-detail-row-reverse .feature-detail-visual {
  order: 1;
}
.feature-detail-copy {
  display: grid;
  gap: 0.8rem;
  align-content: center;
  padding: 0.6rem 0.4rem;
}
.feature-detail-kicker {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5b6cff;
}
.feature-detail-copy h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.feature-detail-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.82;
  max-width: 52ch;
}
.feature-detail-visual {
  display: grid;
  place-items: center;
  padding: 0.75rem;
  border-radius: 26px;
  border: 1px solid var(--line-soft);
  background:
    radial-gradient(circle at top left, rgba(142, 203, 255, 0.18), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 255, 0.94));
}
.feature-detail-visual svg {
  display: block;
  width: 100%;
  height: auto;
}
.svg-card {
  fill: #ffffff;
  stroke: rgba(120, 190, 255, 0.62);
  stroke-width: 2;
}
.svg-pill {
  fill: rgba(91, 108, 255, 0.12);
}
.svg-bar,
.svg-line,
.svg-node,
.svg-node.alt,
.svg-accent-soft,
.svg-globe {
  stroke: rgba(120, 190, 255, 0.68);
  stroke-width: 2;
}
.svg-bar,
.svg-line {
  fill: rgba(142, 203, 255, 0.16);
}
.svg-line.light {
  fill: rgba(91, 108, 255, 0.12);
}
.svg-node {
  fill: rgba(142, 203, 255, 0.18);
}
.svg-node.alt {
  fill: rgba(91, 108, 255, 0.12);
}
.svg-accent {
  fill: rgba(91, 108, 255, 0.85);
}
.svg-accent-soft {
  fill: rgba(142, 203, 255, 0.22);
}
.svg-globe {
  fill: rgba(142, 203, 255, 0.12);
}
.svg-stroke {
  fill: none;
  stroke: #324155;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}
.public-legal-layout {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}
.public-legal-section {
  display: grid;
  gap: 1rem;
  padding: 0 0 2rem;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}
.public-legal-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.public-legal-section h2 {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #161616;
}
.public-legal-section p {
  margin: 0;
  color: #5e5e5a;
  font-size: 0.96rem;
  line-height: 1.82;
}
.contact-main {
  padding-top: 2rem;
}
.contact-shell {
  max-width: 1220px;
  margin: 0 auto;
  padding: 2rem 2.5rem 4.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 460px);
  gap: 4rem;
  align-items: start;
}
.contact-copy {
  max-width: 520px;
  display: grid;
  gap: 1rem;
}
.contact-title {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  color: #161616;
}
.contact-intro {
  max-width: 440px;
  margin: 0;
  color: #70706c;
  font-size: 0.95rem;
  line-height: 1.8;
}
.contact-direct-list {
  display: grid;
  gap: 0.25rem;
  margin-top: 0.5rem;
}
.contact-direct-list p {
  margin: 0;
  color: #3d3d3a;
  font-size: 0.93rem;
}
.contact-support-link {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #161616;
  text-decoration: underline;
  text-underline-offset: 0.18rem;
}
.contact-topic-grid {
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}
.contact-topic-card {
  display: grid;
  gap: 0.65rem;
  align-content: start;
  min-height: 168px;
  padding: 1.15rem 1.05rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line-soft);
  box-shadow: 0 8px 26px rgba(17, 17, 17, 0.04);
}
.contact-topic-card h2 {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #161616;
}
.contact-topic-card p {
  margin: 0;
  color: #4b5563;
  font-size: 0.84rem;
  line-height: 1.75;
}
.contact-topic-card-detail p {
  color: #4a4a46;
}
.contact-form-card {
  display: grid;
  gap: 0.65rem;
  padding: 1.8rem;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line-soft);
  box-shadow: 0 14px 42px rgba(17, 17, 17, 0.06);
}
.contact-form-card h2 {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #161616;
}
.contact-form-card > p {
  margin: 0 0 0.35rem;
  color: #4b5563;
  font-size: 0.86rem;
}
.contact-form {
  display: grid;
  gap: 0.8rem;
}
.contact-form-row {
  display: grid;
  gap: 0.3rem;
}
.contact-form-row-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}
.contact-form label {
  display: none;
}
.contact-form input,
.contact-form textarea {
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: #ffffff;
  padding: 0.82rem 1rem;
  color: #161616;
  box-shadow: none;
}
.contact-form textarea {
  resize: vertical;
  min-height: 132px;
}
.contact-submit {
  width: 100%;
  justify-content: center;
  margin-top: 0.35rem;
  border-radius: 999px;
  padding: 0.9rem 1.2rem;
}
.contact-flash {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.6;
}
.contact-flash.success {
  background: #eefaf3;
  color: #236b49;
  border: 1px solid rgba(41, 161, 108, 0.16);
}
.contact-field-error {
  color: #c2410c;
  font-size: 0.8rem;
}
.error-main {
  padding-top: 1rem;
}
.error-shell {
  min-height: 60vh;
  display: grid;
  place-items: center;
  padding: 2rem 1.5rem 4rem;
}
.error-card {
  width: min(100%, 720px);
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding: 3rem 2rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line-soft);
  border-radius: 32px;
  box-shadow: 0 16px 44px rgba(17, 17, 17, 0.05);
}
.error-icon {
  width: 5rem;
  height: 5rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff4e8;
  color: #d97706;
}
.error-icon svg {
  width: 2.75rem;
  height: 2.75rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}
.error-title {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(1.4rem, 2.4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #161616;
}
.error-copy {
  max-width: 520px;
  margin: 0;
  color: #666662;
  font-size: 0.98rem;
  line-height: 1.8;
}
.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.public-pricing-hero {
  padding-bottom: 2rem;
}
.public-pricing-page {
  display: grid;
  gap: 1.75rem;
}
.public-pricing-banner {
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: 3.2rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255, 221, 196, 0.88), rgba(243, 210, 255, 0.88)),
    rgba(255, 255, 255, 0.86);
  display: grid;
  justify-items: center;
  text-align: center;
  box-shadow: 0 24px 56px rgba(26, 21, 35, 0.06);
}
.public-pricing-intro {
  max-width: 640px;
}
.public-pricing-layout {
  width: min(100%, 1100px);
  margin: 0 auto;
}
.public-pricing-board {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1fr);
  gap: 1.4rem;
  padding: 1.8rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 20px 48px rgba(26, 21, 35, 0.05);
}
.public-pricing-plan {
  display: grid;
  gap: 1.4rem;
  padding: 1.8rem;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 38px rgba(26, 21, 35, 0.08);
}
.public-pricing-plan-top {
  display: grid;
  gap: 0.7rem;
}
.public-pricing-plan-kicker {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
}
.public-pricing-rate {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.public-pricing-rate strong {
  font-family: "Fraunces", serif;
  font-size: 3rem;
  line-height: 1;
  color: var(--ink);
}
.public-pricing-rate span {
  color: var(--muted);
  font-weight: 600;
}
.public-pricing-plan-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}
.public-pricing-form {
  display: grid;
  gap: 1.2rem;
}
.public-pricing-slider-wrap {
  display: grid;
  gap: 0.8rem;
}
.public-pricing-slider-wrap label {
  font-weight: 700;
  color: var(--ink);
}
.public-pricing-slider-wrap input[type="range"] {
  width: 100%;
}
.public-pricing-scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.86rem;
  color: var(--muted);
}
.public-pricing-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}
.public-pricing-summary div {
  display: grid;
  gap: 0.3rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(124, 58, 237, 0.06);
  border: 1px solid rgba(124, 58, 237, 0.1);
}
.public-pricing-summary span {
  font-size: 0.85rem;
  color: var(--muted);
}
.public-pricing-summary strong {
  font-size: 1.4rem;
  color: var(--ink);
}
.public-pricing-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.public-pricing-bullets li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--ink);
  line-height: 1.6;
}
.public-pricing-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.46rem;
  height: 0.46rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--pink));
}
.public-pricing-button {
  justify-content: center;
}
.public-pricing-help {
  margin: 0;
}
.public-pricing-story {
  display: grid;
  gap: 1.25rem;
  align-content: start;
}
.public-pricing-story-card {
  display: grid;
  gap: 0.9rem;
  padding: 1.8rem;
  border-radius: 28px;
  background: rgba(245, 245, 247, 0.92);
  border: 1px solid rgba(26, 21, 35, 0.06);
}
.public-pricing-story-card h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: 2rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.public-pricing-story-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}
.public-pricing-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.public-pricing-feature {
  display: grid;
  gap: 0.7rem;
  padding: 1.25rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(26, 21, 35, 0.06);
}
.public-pricing-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--ink);
  background: rgba(124, 58, 237, 0.08);
}
.public-pricing-feature h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--ink);
}
.public-pricing-feature p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}
.public-pricing-faq-section {
  width: min(100%, 1100px);
  margin: 0 auto;
}
.public-pricing-faq-shell {
  display: grid;
  gap: 1.4rem;
  padding: 2rem;
  border-radius: 28px;
  background: rgba(245, 245, 247, 0.92);
  border: 1px solid rgba(26, 21, 35, 0.06);
}
.public-pricing-faq-head {
  display: grid;
  gap: 0.5rem;
}
.public-pricing-faq-head .section-h3 {
  margin: 0;
}
.public-pricing-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.4rem;
}
.public-pricing-faq-item {
  display: grid;
  gap: 0.55rem;
}
.public-pricing-faq-item h3 {
  margin: 0;
  font-size: 1.04rem;
  color: var(--ink);
}
.public-pricing-faq-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}
.public-pricing-cta-wrap {
  width: min(100%, 1100px);
  margin: 0 auto;
}
.public-pricing-cta {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 1rem;
  padding: 3.2rem 2rem;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 224, 201, 0.88), rgba(238, 210, 255, 0.88)),
    rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.public-pricing-cta h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
}
.public-pricing-cta p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}
.public-pricing-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.public-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.public-list li {
  position: relative;
  padding-left: 1.3rem;
  line-height: 1.6;
  color: var(--ink);
}
.public-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--amber));
}
.site-footer {
  margin-top: 4rem;
  background: transparent;
  color: #161616;
}
.site-footer-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr);
  gap: 2rem;
  align-items: start;
  border-top: 1px solid rgba(17,17,17,0.08);
}
.site-footer-logo .brand-mark {
  background: #151515;
}
.site-footer-logo .brand-logo-image {
  width: 2.8rem;
  height: 2.8rem;
}
.site-footer-logo strong {
  font-size: 1.12rem;
}
.site-footer-brand {
  display: grid;
  gap: 1rem;
}
.site-footer-brand p {
  margin: 0;
  max-width: 360px;
  color: #72726f;
  line-height: 1.7;
  font-size: 0.92rem;
}
.site-footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.site-footer-column {
  display: grid;
  gap: 0.85rem;
  align-content: start;
}
.site-footer-column h3 {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a9a95;
}
.site-footer-column a {
  color: #565652;
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
  font-size: 0.92rem;
}
.site-footer-column a:hover {
  color: #141414;
  transform: translateX(2px);
}
.site-footer-bottom {
  border-top: 1px solid rgba(17,17,17,0.08);
  padding: 1rem 2.5rem 1.5rem;
}
.site-footer-bottom p {
  max-width: 1220px;
  margin: 0 auto;
  color: #9a9a95;
  font-size: 0.88rem;
}
.landing-footer {
  display: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   AUTH PAGES
   ═══════════════════════════════════════════════════════════════════════════ */
.auth-body {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), transparent 42%),
    radial-gradient(circle at top right, rgba(124,58,237,0.10), transparent 34%),
    linear-gradient(180deg, #fbfaf8 0%, #f7f4ee 100%);
}
.auth-page {
  max-width: 1320px;
  margin: 0 auto;
  padding: 1.15rem 2.5rem 3rem;
}
.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  gap: 2.25rem;
  align-items: start;
}
.auth-copy-panel {
  padding: 0.35rem 0.5rem 1rem 0.15rem;
  align-self: start;
}
.auth-kicker {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.84);
  border: 1px solid var(--line-strong);
  color: #4b5563;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}
.auth-copy-panel h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(1.5rem, 2.75vw, 2.375rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 1rem;
  max-width: 13ch;
}
.auth-copy {
  max-width: 44rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
  margin: 0 0 1.5rem;
}
.auth-usp-list {
  display: grid;
  gap: 0.9rem;
  max-width: 38rem;
}
.auth-usp-item {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.75);
  border: 1px solid var(--line-strong);
  box-shadow: 0 12px 28px rgba(17,17,17,0.04);
}
.auth-usp-item strong {
  color: var(--ink);
  font-size: 0.97rem;
}
.auth-usp-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}
.auth-card {
  width: 100%;
  max-width: 510px;
  padding: 2.35rem;
  border-radius: 28px;
  background: rgba(255,255,255,0.94);
  border: 1.5px solid var(--line-strong);
  box-shadow: 0 28px 70px rgba(124,58,237,0.10);
  backdrop-filter: blur(16px);
  align-self: center;
}
.auth-brand { display: flex; justify-content: center; margin-bottom: 1.75rem; }
.auth-brand .brand-mark { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; }
.auth-brand .brand strong { color: var(--ink); }
.auth-brand .brand small  { color: var(--muted); }
.auth-brand .brand-logo-image { width: 3.1rem; height: 3.1rem; }
.auth-title {
  font-family: "Fraunces", serif;
  font-size: 2rem;
  text-align: center;
  margin: 0 0 1.75rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.auth-footer-link { text-align: center; margin-top: 1.25rem; color: var(--muted); font-size: 0.92rem; }
.auth-footer-link a { color: var(--brand); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.auth-divider { height: 1px; background: var(--line); margin: 1.5rem 0; }
.social-auth-shell {
  display: grid;
  gap: 1.1rem;
}
.social-auth-copy {
  display: grid;
  gap: 0.9rem;
}
.social-auth-lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
  text-align: center;
}
.social-auth-usp {
  display: grid;
  gap: 0.75rem;
}
.social-auth-usp > div {
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: rgba(124,58,237,0.05);
  border: 1px solid var(--line-strong);
}
.social-auth-usp strong {
  display: block;
  color: var(--ink);
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}
.social-auth-usp p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}
.social-auth-actions {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.3rem;
}
.social-auth-form {
  display: grid;
}
.social-auth-form .button {
  width: 100%;
  justify-content: center;
  padding: 0.95rem 1rem;
  font-size: 1rem;
}
.social-auth-backlink {
  text-align: center;
  color: var(--brand);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-size: 0.92rem;
}

@media (max-width: 640px) {
  .landing-nav {
    padding: 0;
  }
  .landing-nav-shell {
    padding: 0.9rem 1rem;
    flex-wrap: wrap;
    gap: 0.85rem;
  }
  .landing-nav .brand {
    min-width: 0;
    flex: 1 1 auto;
    gap: 0.75rem;
  }
  .landing-nav-links {
    display: none;
  }
  .landing-brand-copy strong {
    font-size: 1.05rem;
    line-height: 1.15;
  }
  .landing-brand-copy small {
    font-size: 0.78rem;
  }
  .landing-nav-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }
  .landing-nav-actions {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 40px rgba(26, 21, 35, 0.08);
  }
  .landing-nav-actions.is-open {
    display: flex;
  }
  .landing-nav-actions .button {
    width: 100%;
    justify-content: center;
  }
  .auth-page {
    padding: 1rem 1rem 2rem;
  }
  .auth-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .auth-copy-panel {
    padding: 0.25rem 0 0;
  }
  .auth-copy-panel h2 {
    max-width: none;
    font-size: clamp(1.5rem, 2.75vw, 2.375rem);
  }
  .auth-copy {
    font-size: 0.96rem;
  }
  .auth-card {
    padding: 1.35rem;
  }
  .public-hero {
    padding: 3.75rem 1.25rem 1.25rem;
  }
  .public-pricing-banner,
  .public-pricing-board,
  .public-pricing-faq-shell,
  .public-pricing-cta {
    padding-left: 1.35rem;
    padding-right: 1.35rem;
  }
  .public-pricing-board,
  .public-pricing-feature-grid,
  .public-pricing-faq-grid {
    grid-template-columns: 1fr;
  }
  .public-pricing-plan,
  .public-pricing-story-card,
  .public-pricing-faq-shell {
    padding: 1.35rem;
  }
  .public-pricing-summary {
    grid-template-columns: 1fr;
  }
  .public-pricing-rate strong {
    font-size: 2.35rem;
  }
  .public-card-grid {
    grid-template-columns: 1fr;
  }
  .contact-shell {
    padding: 1.5rem 1.25rem 3.5rem;
  }
  .contact-topic-grid,
  .contact-form-row-two {
    grid-template-columns: 1fr;
  }
  .site-footer-inner {
    padding: 2rem 1.25rem;
    grid-template-columns: 1fr;
  }
  .site-footer-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .site-footer-bottom {
    padding: 1rem 1.25rem 1.5rem;
  }
  .features-grid-6, .testimonials-grid { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .hero-section {
    padding: 4rem 1.25rem 3rem;
    text-align: left;
  }
  .landing-nav-links {
    gap: 1rem;
  }
  .public-pricing-board,
  .public-pricing-feature-grid,
  .public-pricing-faq-grid {
    grid-template-columns: 1fr;
  }
  .feature-detail-row,
  .feature-detail-row-reverse {
    grid-template-columns: 1fr;
  }
  .feature-detail-row-reverse .feature-detail-copy,
  .feature-detail-row-reverse .feature-detail-visual {
    order: initial;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
  }
  .hero-copy,
  .hero-sub {
    max-width: 100%;
  }
  .hero-cta-row {
    justify-content: flex-start;
  }
  .hero-media {
    align-self: auto;
  }
  .hero-video-shell {
    height: auto;
  }
  .hero-video {
    height: auto;
    aspect-ratio: auto;
  }
  .contact-shell {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .contact-copy,
  .contact-intro {
    max-width: 100%;
  }
  .pipeline-steps-compact {
    width: 100%;
  }
  .pipeline-arrow {
    min-height: 1.5rem;
  }
  .pipeline-flow-grid {
    grid-template-columns: 1fr;
  }
  .pipeline-flow-step,
  .pipeline-flow-step:nth-child(1),
  .pipeline-flow-step:nth-child(2),
  .pipeline-flow-step:nth-child(3),
  .pipeline-flow-step:nth-child(4),
  .pipeline-flow-step:nth-child(5) {
    grid-column: auto;
    min-height: 0;
  }
  .pipeline-flow-step .step-body strong {
    min-height: 0;
  }
}
