/*
  File: /assets/site.css
  Date: 2026-04-23
  Version: 0.2.0
  Changed:
  - Appended modal styles (.modal-overlay, .modal-box, .modal-tabs,
    .modal-pane, .modal-slug-input, .modal-error, etc.).
  - No existing styles modified.
*/

:root {
  --bg: #fbfcfe;
  --surface: #ffffff;
  --surface-muted: #f6f8fc;
  --border: #e6eaf2;
  --border-mid: #c9d2e3;
  --text-1: #0f172a;
  --text-2: #334155;
  --text-3: #64748b;
  --text-4: #94a3b8;
  --accent: #4f46e5;
  --accent-dark: #4338ca;
  --accent-soft: #eef2ff;
  --purple: #7c3aed;
  --purple-soft: #f5f3ff;
  --teal: #0f766e;
  --teal-soft: #ccfbf1;
  --amber: #b45309;
  --amber-soft: #fef3c7;
  --red: #b91c1c;
  --red-soft: #fee2e2;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 10px 24px rgba(79, 70, 229, 0.05);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.08), 0 20px 64px rgba(79, 70, 229, 0.06);
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1120px;
  --mono: 'IBM Plex Mono', monospace;
  --sans: 'Sora', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text-1);
  background: radial-gradient(circle at top left, #f4f6ff 0%, #fbfcfe 46%, #ffffff 100%);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.surface { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.surface-muted { background: var(--surface-muted); border: 1px solid var(--border); border-radius: var(--radius); }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.kicker::before {
  content: '';
  width: 20px;
  height: 1px;
  background: currentColor;
}
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section { padding: 76px 0; }
.section.alt {
  background: rgba(255,255,255,0.78);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-head { margin-bottom: 34px; }
.section-head h2 {
  margin: 12px 0 12px;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}
.section-head p {
  max-width: 62ch;
  color: var(--text-2);
  font-size: 15px;
}
.page-hero {
  padding: 92px 0 52px;
}
.page-hero.simple {
  padding-bottom: 24px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 36px;
  align-items: start;
}
.hero-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(2.8rem, 5.2vw, 4.7rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}
.hero-copy p {
  color: var(--text-2);
  font-size: 17px;
  max-width: 58ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero-side {
  padding: 24px;
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}
.hero-side h3 {
  margin: 0 0 10px;
  font-size: 16px;
}
.hero-side p,
.hero-side li { color: var(--text-2); font-size: 14px; }
.hero-side ul { margin: 14px 0 0; padding-left: 18px; }
.hero-side li + li { margin-top: 8px; }
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 22px;
}
.metric {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
.metric .value {
  display: block;
  font-family: var(--mono);
  font-size: 22px;
  color: var(--text-1);
}
.metric .label {
  font-size: 11px;
  color: var(--text-4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: -0.01em;
  color: var(--text-1);
}
.brand span { color: var(--text-3); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
  color: var(--text-2);
}
.nav-links a:hover { color: var(--accent); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 600;
  transition: 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary { background: var(--text-1); color: #fff; }
.btn-secondary:hover { background: #1f2937; }
.btn-outline { background: var(--surface); color: var(--text-1); border-color: var(--border-mid); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-soft { background: var(--accent-soft); color: var(--accent); }
.btn-soft:hover { background: #dde5ff; }
.btn-full { width: 100%; }

.card-grid-2,
.card-grid-3,
.card-grid-4,
.flow-grid,
.pricing-grid {
  display: grid;
  gap: 16px;
}
.card-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.flow-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card,
.flow-card,
.pricing-card,
.stat-card,
.audience-card,
.signal-card,
.cta-card,
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card,
.flow-card,
.signal-card,
.cta-card,
.form-card,
.pricing-card,
.audience-card,
.stat-card {
  padding: 22px;
}
.card h3,
.flow-card h3,
.pricing-card h3,
.signal-card h3,
.audience-card h3,
.cta-card h3,
.form-card h3,
.stat-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
}
.card p,
.flow-card p,
.pricing-card p,
.signal-card p,
.audience-card p,
.cta-card p,
.form-card p,
.stat-card p,
.card li,
.pricing-card li,
.audience-card li { color: var(--text-2); font-size: 14px; }
.card ul,
.pricing-card ul,
.audience-card ul { margin: 14px 0 0; padding-left: 18px; }
.card li + li,
.pricing-card li + li,
.audience-card li + li { margin-top: 8px; }
.plan-tag,
.mono-label,
.step-label,
.tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.plan-tag,
.mono-label,
.step-label { color: var(--text-4); }
.pricing-card.featured,
.audience-card.featured,
.cta-card.featured { border-color: var(--accent); box-shadow: var(--shadow-md); }
.price-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
}
.price {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.price-note { color: var(--text-3); font-size: 13px; }
.inline-link { color: var(--accent); }
.inline-link:hover { text-decoration: underline; }
.checklist {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.check {
  display: flex;
  gap: 10px;
  align-items: start;
  color: var(--text-2);
  font-size: 14px;
}
.check .dot {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
}

.split-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.small-note { color: var(--text-3); font-size: 13px; }
.callout {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-muted);
  color: var(--text-2);
  font-size: 14px;
}
.callout strong { color: var(--text-1); }
.callout.accent { background: var(--accent-soft); color: var(--accent-dark); border-color: #c7d2fe; }
.callout.warn { background: var(--amber-soft); color: #92400e; border-color: #fcd34d; }
.callout.teal { background: var(--teal-soft); color: #115e59; border-color: #99f6e4; }

footer.site-footer {
  padding: 34px 0 56px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--text-3);
  font-size: 12px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-links a:hover { color: var(--accent); }

input[type="text"],
input[type="email"],
textarea,
select {
  width: 100%;
  border: 1px solid var(--border-mid);
  border-radius: 10px;
  background: #fff;
  color: var(--text-1);
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}
textarea { min-height: 132px; resize: vertical; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.form-grid .full { grid-column: 1 / -1; }
.form-note { margin-top: 12px; color: var(--text-3); font-size: 12px; }
.hidden { display: none !important; }
.center { text-align: center; }

/* Demo */
.demo-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 18px;
  align-items: start;
}
.demo-panel,
.result-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.demo-panel-head,
.result-head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}
.window-dots { display: inline-flex; gap: 6px; }
.window-dots span {
  width: 8px; height: 8px; border-radius: 999px; display: inline-block;
}
.window-dots span:nth-child(1) { background: #dbeafe; }
.window-dots span:nth-child(2) { background: #c7d2fe; }
.window-dots span:nth-child(3) { background: #ddd6fe; }
.demo-panel-body { padding: 18px; }
.demo-field + .demo-field { margin-top: 16px; }
.demo-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.sample-btn,
.share-btn,
.copy-btn,
.mini-btn {
  border: 1px solid var(--border-mid);
  background: var(--surface);
  color: var(--text-2);
  border-radius: 999px;
  padding: 8px 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.sample-btn:hover,
.share-btn:hover,
.copy-btn:hover,
.mini-btn:hover { border-color: var(--accent); color: var(--accent); }
.demo-uploader {
  border: 1px dashed var(--border-mid);
  border-radius: 14px;
  padding: 16px;
  background: var(--surface-muted);
}
.upload-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.preview {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border);
}
.preview img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 10px;
}
.demo-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.demo-note-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.result-body { padding: 18px; }
.result-loading,
.result-error {
  padding: 22px 18px;
  color: var(--text-2);
  font-size: 14px;
}
.result-error { color: var(--red); }
.spinner {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  animation: spin 0.7s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.score-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-muted);
}
.score-line {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.score-value {
  font-family: var(--mono);
  font-size: 32px;
  line-height: 1;
}
.score-track-wrap { margin-top: 8px; }
.score-track-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--text-4);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}
.score-track {
  height: 6px;
  border-radius: 999px;
  position: relative;
  background: linear-gradient(90deg, #e0e7ff 0%, #c7d2fe 45%, #a7f3d0 100%);
}
.score-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.pill {
  padding: 6px 10px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  border: 1px solid var(--border);
  color: var(--text-2);
  background: #fff;
}
.pill.accent { background: var(--accent-soft); color: var(--accent-dark); border-color: #c7d2fe; }
.pill.teal { background: var(--teal-soft); color: #115e59; border-color: #99f6e4; }
.pill.amber { background: var(--amber-soft); color: #92400e; border-color: #fcd34d; }
.pill.red { background: var(--red-soft); color: #991b1b; border-color: #fecaca; }
.summary-card,
.breakdown-card,
.share-card {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
}
.breakdown-list {
  display: grid;
  gap: 12px;
}
.breakdown-item {
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.breakdown-item:first-child {
  border-top: none;
  padding-top: 0;
}
.breakdown-item h4 {
  margin: 0 0 6px;
  font-size: 13px;
  font-family: var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-4);
}
.breakdown-item p {
  margin: 0;
  color: var(--text-2);
  font-size: 14px;
}
.share-input-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.share-input-row input {
  flex: 1 1 280px;
  min-width: 0;
}
.banner-partial {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #fcd34d;
  background: var(--amber-soft);
  color: #92400e;
  font-size: 13px;
}

/* ══════════════════════════════════════════
   MODAL
   Added v0.2.0 — 2026-04-23
   ══════════════════════════════════════════ */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.modal-box {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  padding: 32px 28px 28px;
  transform: translateY(12px);
  transition: transform 0.2s ease;
}
.modal-overlay.active .modal-box {
  transform: translateY(0);
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  color: var(--text-3);
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.12s ease, color 0.12s ease;
}
.modal-close:hover {
  background: var(--surface-muted);
  color: var(--text-1);
}
.modal-brand {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-1);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.modal-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
}
.modal-tab {
  flex: 1;
  padding: 10px 0;
  border: none;
  background: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.modal-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.modal-tab:hover:not(.active) {
  color: var(--text-1);
}
.modal-pane {
  display: none;
}
.modal-pane.active {
  display: block;
}
.modal-sub {
  margin: 0 0 18px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.5;
}
.modal-label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 7px;
}
/* Workspace prefix input row */
.modal-input-row {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-mid);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.modal-input-row:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}
.modal-prefix,
.modal-suffix {
  padding: 0 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-4);
  white-space: nowrap;
  flex-shrink: 0;
  background: var(--surface-muted);
}
.modal-prefix { border-right: 1px solid var(--border); padding: 12px 10px; }
.modal-suffix { border-left: 1px solid var(--border); padding: 12px 10px; }
.modal-slug-input {
  flex: 1;
  min-width: 0;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #fff;
  padding: 12px 10px;
  font-size: 14px;
  color: var(--text-1);
  outline: none;
}
.modal-hint {
  margin: 8px 0 18px;
  color: var(--text-4);
  font-size: 12px;
  line-height: 1.5;
}
/* Standalone field (consumer email/password) */
.modal-field {
  display: block;
  width: 100%;
  border: 1px solid var(--border-mid);
  border-radius: 10px;
  background: #fff;
  color: var(--text-1);
  padding: 12px 14px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.modal-field:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}
.modal-error {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--red-soft);
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 13px;
}
.modal-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}
.modal-footer-note {
  margin: 0;
  color: var(--text-3);
  font-size: 13px;
}

/* ── RESPONSIVE ── */
@media (max-width: 980px) {
  .hero-grid,
  .demo-shell,
  .split-panel,
  .card-grid-3,
  .card-grid-4,
  .flow-grid,
  .pricing-grid,
  .card-grid-2 {
    grid-template-columns: 1fr;
  }
  .metric-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .wrap { padding: 0 18px; }
  .nav { min-height: 62px; }
  .nav-links { display: none; }
  .hero-copy h1 { font-size: clamp(2.2rem, 12vw, 3.3rem); }
  .page-hero { padding-top: 72px; }
  .metric-grid,
  .form-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .upload-row,
  .demo-note-row,
  .score-line { flex-direction: column; align-items: flex-start; }
  .modal-box { padding: 28px 18px 22px; }
  .modal-suffix { display: none; }
}
