/* =============================================================
   NYMBL - Premium Landing Page Visual System
   White / Black / Red  ·  Mobile-first  ·  High-conversion
   ============================================================= */

/* -- Design Tokens ---------------------------------------------- */
:root {
  color-scheme: light;

  /* Ink */
  --ink-strong: #0a0a0a;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --ink-muted: #717171;
  --ink-faint: #999;

  /* Surfaces */
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-muted: #f7f7f8;
  --surface-subtle: #f0f0f2;

  /* Accent - Red */
  --accent: #dc2626;
  --accent-hover: #b91c1c;
  --accent-light: #fef2f2;
  --accent-glow: rgba(220, 38, 38, 0.12);

  /* Warning - Yellow (sparingly) */
  --warn: #f59e0b;
  --warn-light: #fffbeb;

  /* Borders */
  --border: #e5e5e5;
  --border-strong: #d4d4d4;
  --border-focus: rgba(220, 38, 38, 0.45);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04), 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.04);
  --shadow-xl: 0 24px 60px rgba(0,0,0,.10), 0 8px 20px rgba(0,0,0,.04);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Layout */
  --page-max: 1120px;
  --page-narrow: 640px;

  /* Typography */
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;

  /* Transitions */
  --ease: cubic-bezier(.25,.46,.45,.94);
  --duration: 200ms;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1rem; }

h1, h2, h3, h4, h5 {
  margin: 0 0 .75rem;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--ink-strong);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }

/* -- Layout ----------------------------------------------------- */
.page-wrap {
  width: min(var(--page-max), calc(100% - 40px));
  margin: 0 auto;
}

.page-narrow {
  width: min(var(--page-narrow), calc(100% - 40px));
  margin: 0 auto;
}

/* -- Navigation ------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--ink-strong);
}

.nav-logo span {
  color: var(--accent);
}

.nav-tagline {
  font-size: 0.8rem;
  color: var(--ink-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* -- Hero Section ---------------------------------------------- */
.hero {
  padding: 64px 0 48px;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: stretch;
}

.hero-content {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding-top: 16px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--accent-light);
  border: 1px solid rgba(220,38,38,.12);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

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

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.4); }
}

.hero h1 {
  margin-bottom: 20px;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero-sub {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 28px;
  max-width: 480px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 32px;
  margin-bottom: 0px;
  transform: translateY(-34px);
}

.proof-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--ink-muted);
  font-weight: 500;
}

.proof-item svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

/* -- Form Card ------------------------------------------------- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
}

.form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #ef4444, var(--accent));
}

.form-card-header {
  text-align: center;
  margin-bottom: 28px;
}

.form-card-header h2 {
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.form-card-header p {
  color: var(--ink-muted);
  font-size: 0.9rem;
  margin: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.form-group.full {
  grid-column: 1 / -1;
}

.occupation-picker {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 30;
  display: none;
  max-height: 240px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-lg);
  -webkit-overflow-scrolling: touch;
}

.occupation-picker.is-open {
  display: block;
}

.occupation-option {
  width: 100%;
  display: block;
  padding: 11px 12px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink-strong);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.occupation-option + .occupation-option {
  margin-top: 4px;
}

.occupation-option.active,
.occupation-option:hover {
  background: var(--accent-light);
  color: var(--accent);
}

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink-strong);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--ink-faint);
}

.form-input:hover,
.form-textarea:hover {
  border-color: var(--border-strong);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

/* Hide number input spinners on salary field */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

.form-control-stack {
  position: relative;
}

.form-hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.typeahead {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  max-height: 260px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.typeahead-option {
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-strong);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.typeahead-option:hover,
.typeahead-option.is-active {
  background: var(--accent-light);
  color: var(--accent);
}

/* -- Buttons --------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 28px;
  border: 0;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--ink-strong);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: #000;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-danger {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(220,38,38,.25);
}

.btn-danger:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(220,38,38,.3);
}

.btn-full {
  width: 100%;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: .6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn[aria-busy="true"] {
  position: relative;
}

.btn[aria-busy="true"]::after {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  animation: spin .7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* -- CTA (legacy class compat) -------------------------------- */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 28px;
  border: 0;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(220,38,38,.25);
}

.cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(220,38,38,.3);
}

.cta:disabled,
.cta[aria-disabled="true"] {
  opacity: .6;
  cursor: not-allowed;
  transform: none !important;
}

.cta[aria-busy="true"] { position: relative; }
.cta[aria-busy="true"]::after {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  animation: spin .7s linear infinite;
}

.cta.secondary {
  background: var(--ink-strong);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.cta.secondary:hover {
  background: #000;
}

/* -- Urgency Banner -------------------------------------------- */
.urgency-strip {
  background: var(--ink-strong);
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.urgency-strip .accent {
  color: #ef4444;
  font-weight: 800;
}

/* -- Social Proof Bar ------------------------------------------ */
.proof-bar {
  width: min(100%, 520px);
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  box-shadow: var(--shadow-md);
}

.proof-bar-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.proof-stat {
  text-align: left;
}

.proof-stat-number {
  display: block;
  margin-bottom: 6px;
  font-size: clamp(1.45rem, 2vw, 1.95rem);
  font-weight: 800;
  line-height: 1;
  color: var(--ink-strong);
  letter-spacing: -0.03em;
}

.proof-stat-label {
  display: block;
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--ink-muted);
  font-weight: 600;
}

.proof-bar-compact {
  margin-top: auto;
}

.proof-bar-compact .proof-stat-label {
  max-width: 11ch;
}

/* -- What You Get Section -------------------------------------- */
.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--surface-muted);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: box-shadow var(--duration) var(--ease),
              transform var(--duration) var(--ease);
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.6;
}

/* -- How It Works ---------------------------------------------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  counter-reset: step;
}

.step-item {
  text-align: center;
  counter-increment: step;
  position: relative;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ink-strong);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 auto 16px;
}

.step-item h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.step-item p {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.55;
}

/* -- Threat Levels --------------------------------------------- */
.threat-scale {
  display: flex;
  gap: 4px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 24px;
  margin-bottom: 8px;
}

.threat-level-bar {
  flex: 1;
  height: 8px;
  background: var(--border);
  transition: background var(--duration) var(--ease);
}

.threat-level-bar.active { background: var(--accent); }
.threat-level-bar.level-1 { background: #22c55e; }
.threat-level-bar.level-2 { background: #84cc16; }
.threat-level-bar.level-3 { background: #f59e0b; }
.threat-level-bar.level-4 { background: #f97316; }
.threat-level-bar.level-5 { background: #dc2626; }

.threat-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--ink-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* -- Preview Panel --------------------------------------------- */
.hidden {
  display: none !important;
}

#preview-panel {
  padding: 72px 0;
}

.preview-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.preview-header {
  background: var(--ink-strong);
  color: #fff;
  padding: 32px;
  text-align: center;
}

.preview-header h2 {
  color: #fff;
  margin-bottom: 4px;
  font-size: 1.5rem;
}

.preview-header p {
  color: rgba(255,255,255,.65);
  margin: 0;
  font-size: 0.9rem;
}

.preview-body {
  padding: 32px;
}

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.metric {
  padding: 20px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
  text-align: center;
}

.metric-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.metric-value {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink-strong);
}

.metric-value.threat-severe { color: var(--accent); }
.metric-value.threat-high { color: #f97316; }
.metric-value.threat-moderate { color: #f59e0b; }
.metric-value.threat-low { color: #84cc16; }
.metric-value.threat-minimal { color: #22c55e; }

.why-box {
  padding: 20px 24px;
  border-left: 3px solid var(--accent);
  background: var(--accent-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 28px;
}

.why-box p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  font-weight: 500;
}

/* -- Safe Result Banner --------------------------------------- */
#safe-banner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 18px;
  margin: 8px 0 24px;
  padding: 30px 34px 32px;
  border: 1px solid rgba(34, 197, 94, 0.42);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 24%),
    linear-gradient(135deg, #1fbe58 0%, #22c55e 48%, #25cf63 100%);
  box-shadow:
    0 22px 44px rgba(34, 197, 94, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

#safe-banner::before {
  content: none;
  display: none;
}

#safe-banner::after {
  content: '';
  position: absolute;
  right: -80px;
  bottom: -96px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 72%);
  pointer-events: none;
}

#safe-banner p {
  margin: 0;
  flex: 1 0 100%;
  max-width: 34ch;
  color: #ffffff !important;
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.045em;
  text-wrap: balance;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

#safe-share-button {
  position: relative;
  z-index: 1;
  order: 2;
  width: fit-content;
  min-height: 54px;
  padding: 0 24px;
  border: none;
  border-radius: var(--radius-full);
  background: #ffffff;
  color: #166534;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.14);
  transition:
    transform var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease),
    filter var(--duration) var(--ease);
}

#safe-share-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.18);
  filter: saturate(1.05);
}

#safe-share-button:active {
  transform: translateY(0);
}

.safe-share-actions {
  position: relative;
  z-index: 1;
  order: 3;
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.safe-share-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 18px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition:
    transform var(--duration) var(--ease),
    background var(--duration) var(--ease),
    border-color var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease);
}

.safe-share-link:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
}

.safe-share-copy {
  appearance: none;
  cursor: pointer;
  font-family: var(--font-body);
}

/* -- Paywall / Checkout ---------------------------------------- */
.paywall-section {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  margin-top: 8px;
}

.paywall-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.paywall-header h3 {
  margin: 0;
  font-size: 1.2rem;
}

.price-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: var(--ink-strong);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
}

#value-points {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

#value-points li {
  padding: 10px 0 12px 28px;
  position: relative;
  color: var(--ink);
  line-height: 1.55;
}

#value-points li .value-point-title {
  display: block;
  margin-bottom: 2px;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--ink-strong);
  line-height: 1.3;
}

#value-points li .value-point-copy {
  display: block;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

#value-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23dc2626'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E") no-repeat center / contain;
}

.checkout-box {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.checkout-box .form-group {
  margin-bottom: 16px;
}

.divider-or {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
  color: var(--ink-muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.divider-or::before,
.divider-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.card-fields-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  background: var(--surface);
}

.card-field {
  min-height: 44px;
  margin-bottom: 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  background: var(--surface);
  transition: border-color var(--duration) var(--ease);
}

.card-field:last-child { margin-bottom: 0; }

.card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.secure-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--ink-muted);
  font-weight: 500;
}

.secure-badge svg {
  width: 14px;
  height: 14px;
}

/* -- Error & Status -------------------------------------------- */
.error {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-top: 8px;
}

.status {
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-top: 8px;
  white-space: pre-line;
}

/* -- FAQ ------------------------------------------------------- */
.faq-list {
  max-width: 680px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-strong);
  cursor: pointer;
  text-align: left;
  gap: 16px;
}

.faq-question:hover { color: var(--accent); }

.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform var(--duration) var(--ease);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms var(--ease);
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding-bottom: 20px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* -- Footer ---------------------------------------------------- */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-inner {
  display: grid;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 18px;
}

.footer p {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin: 0;
}

.footer a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

/* -- Content Pages --------------------------------------------- */
.content-page {
  background:
    radial-gradient(circle at top left, rgba(220, 38, 38, 0.04), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}

.content-hero {
  padding-bottom: 10px;
}

.content-lede {
  font-size: 1.125rem;
  line-height: 1.78;
  color: var(--ink-soft);
  max-width: 720px;
}

.content-updated {
  margin-top: 18px;
  color: var(--ink-muted);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.content-body {
  display: grid;
  gap: 28px;
}

.content-block {
  padding: 28px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.content-block h2 {
  margin-bottom: 14px;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
}

.content-block p:last-child {
  margin-bottom: 0;
}

.content-list {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--ink-soft);
}

.content-list li + li {
  margin-top: 10px;
}

.content-cta {
  padding: 32px 28px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, #111111 0%, #1d1d1d 100%);
  color: #ffffff;
  box-shadow: var(--shadow-lg);
}

.content-cta h2,
.content-cta p {
  color: #ffffff;
}

.content-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}

.content-cta .btn-primary {
  background: #ffffff;
  color: var(--ink-strong);
}

.content-cta .btn-primary:hover {
  background: #f2f2f2;
}

/* -- Certified Safe Share Page -------------------------------- */
.share-safe-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(34, 197, 94, 0.12), rgba(255, 255, 255, 0) 32%),
    linear-gradient(180deg, #ffffff 0%, #f7f7f8 100%);
}

.share-safe-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 20px;
}

.share-safe-frame {
  width: min(880px, 100%);
  display: grid;
  gap: 20px;
  padding: 36px 36px 32px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-xl);
  text-align: center;
}

.share-safe-badge {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: var(--radius-full);
  background: rgba(21, 128, 61, 0.1);
  color: #15803d;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.share-safe-frame h1 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1;
}

.share-safe-lede {
  max-width: 58ch;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 1.03rem;
  line-height: 1.75;
}

.share-safe-card {
  display: block;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(220, 38, 38, 0.12);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.08);
  transition:
    transform var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease);
}

.share-safe-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.share-safe-card img {
  width: 100%;
  height: auto;
}

.share-safe-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.share-safe-primary,
.share-safe-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--radius-full);
  font-size: 0.96rem;
  font-weight: 800;
  transition:
    transform var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease),
    background var(--duration) var(--ease),
    border-color var(--duration) var(--ease);
}

.share-safe-primary {
  background: linear-gradient(135deg, var(--accent), #ef4444);
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(220, 38, 38, 0.18);
}

.share-safe-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 36px rgba(220, 38, 38, 0.22);
}

.share-safe-secondary {
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--ink-strong);
}

.share-safe-secondary:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.share-safe-footnote {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.88rem;
}

/* -- Success Page ---------------------------------------------- */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.success-card {
  max-width: 560px;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 48px 40px;
  text-align: center;
}

.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #f0fdf4;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.success-icon svg {
  width: 36px;
  height: 36px;
  color: #22c55e;
}

.success-card h1 {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.success-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.success-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0;
  padding: 20px;
  background: var(--surface-muted);
  border-radius: var(--radius-md);
}

.success-meta dt {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.success-meta dd {
  margin: 4px 0 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink-strong);
}

.generating-state {
  padding: 40px 0;
}

.generating-spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

.generating-state p {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* -- Responsive ------------------------------------------------ */
@media (max-width: 960px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-content {
    text-align: center;
    display: block;
    min-height: auto;
    padding-top: 0;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-proof {
    justify-content: center;
  }

  .proof-bar {
    margin-left: auto;
    margin-right: auto;
  }

  .proof-stat {
    text-align: center;
  }

  .proof-bar-compact .proof-stat-label {
    max-width: none;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .snapshot-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 40px 0 32px;
  }

  .occupation-picker {
    max-height: min(42vh, 260px);
  }

  .hero-proof {
    margin-top: 24px;
    transform: translateY(-6px);
  }

  .form-card {
    padding: 28px 20px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .snapshot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .preview-body {
    padding: 24px 20px;
  }

  .preview-header {
    padding: 24px 20px;
  }

  .paywall-header {
    flex-direction: column;
    align-items: flex-start;
  }

  #safe-share-button,
  .safe-share-link {
    width: 100%;
  }

  .safe-share-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  #safe-banner {
    padding: 24px 22px 24px;
  }

  #safe-banner p {
    font-size: clamp(1.7rem, 7vw, 2.2rem);
    max-width: none;
  }

  .card-row {
    grid-template-columns: 1fr;
  }

  .success-card {
    padding: 36px 24px;
  }

  .success-meta {
    grid-template-columns: 1fr;
  }

  .share-safe-frame {
    padding: 28px 20px 24px;
    border-radius: 24px;
  }

  .share-safe-actions {
    flex-direction: column;
  }

  .share-safe-primary,
  .share-safe-secondary {
    width: 100%;
  }

  .content-block {
    padding: 24px 20px;
  }

  .content-cta {
    padding: 28px 22px;
  }

  .content-cta-actions {
    flex-direction: column;
  }

  .content-cta-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .btn-full-mobile {
    width: 100%;
  }

  .proof-bar {
    width: 100%;
    padding: 16px 14px;
  }

  .proof-bar-inner {
    gap: 12px;
  }

  .proof-stat-number {
    font-size: 1.3rem;
  }

  .proof-stat-label {
    font-size: 0.69rem;
    line-height: 1.3;
  }

  .nav-tagline {
    display: none;
  }
}
