/* GrantDrop Design System
   Light & clean. Inter font. Green accent. Professional.
   -------------------------------------------------------- */

/* --- Skip link (accessibility) --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--green-600, #16a34a);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 1000;
  font-size: 0.875rem;
  text-decoration: none;
}
.skip-link:focus {
  top: 0;
}

/* --- Global focus-visible (accessibility) --- */
a:focus-visible,
button:focus-visible,
select:focus-visible,
[role="switch"]:focus-visible,
[role="tab"]:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 2px solid var(--green-500, #22c55e);
  outline-offset: 2px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Colors */
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --green-50: #f0fdf4;
  --green-100: #dcfce7;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-700: #15803d;
  --red-50: #fef2f2;
  --red-500: #ef4444;
  --red-600: #dc2626;
  --amber-50: #fffbeb;
  --amber-500: #f59e0b;
  --blue-50: #eff6ff;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;

  /* Spacing scale (4px base) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;
  --s-20: 80px;
  --s-24: 96px;

  /* Type scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --max-width: 1200px;
  --nav-height: 64px;

  /* v0 Brand Tokens */
  --brand-bg: #fafaf7;
  --brand-card: #ffffff;
  --brand-border: #e8e5e0;
  --brand-primary: #15803d;
  --brand-accent: #d97706;
  --brand-accent-fg: #ffffff;
  --brand-muted: #6b7280;  /* was #9ca3af (2.9:1 contrast); #6b7280 = 4.6:1 on --brand-bg, passing WCAG AA */
  --brand-secondary: #f5f5f0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* clip instead of hidden — Safari iOS ignores overflow-x:hidden on html */
  overflow-x: hidden; /* fallback for older browsers */
  overflow-x: clip; /* Safari iOS: clip works where hidden doesn't */
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--gray-800);
  background: var(--brand-bg);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: clip;
  overflow-x: hidden;
  width: 100%;
  -webkit-text-size-adjust: 100%;
}

/* Prevent horizontal scroll on all pages */
section, .page-content, .v0-hero, .landing-section, .landing-section--tinted,
footer, .footer-v0, header, nav { max-width: 100%; overflow-x: clip; }
img, video, svg, table, pre, code { max-width: 100%; }

html { scroll-behavior: smooth; }

a {
  color: var(--green-600);
  text-decoration: none;
  transition: color 0.15s var(--ease);
}

a:hover {
  color: var(--green-700);
}

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

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.25;
  font-weight: 600;
  color: var(--gray-900);
  letter-spacing: -0.02em;
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p {
  color: var(--gray-600);
  max-width: 65ch;
}

.text-sm { font-size: var(--text-sm); }
.text-xs { font-size: var(--text-xs); }
.text-muted { color: var(--gray-500); }
.text-center { text-align: center; }

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--s-6);
}

.page-content {
  padding-top: calc(var(--nav-height) + var(--s-10));
  padding-bottom: var(--s-20);
  min-height: 100vh;
}

/* Landing page: break out of container constraints */
.page-content--landing { padding-top: 0; padding-bottom: 0; }
.page-content--landing > .container { max-width: none; padding: 0; }

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 20px 0;
  background: transparent;
  z-index: 100;
  display: flex;
  align-items: center;
  transition: all 0.3s;
}

.nav--scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
}

.nav--scrolled .nav-logo-svg { height: 28px; }

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: relative;
}

.nav-logo {
  display: flex;
  align-items: center;
}

/* App nav links (authenticated pages) */
.app-nav-link {
  display: flex; align-items: center; gap: 8px;
  font-size: var(--text-sm); font-weight: 500;
  color: var(--brand-muted); transition: color 0.15s;
  text-decoration: none;
}
.app-nav-link:hover { color: var(--gray-900); }
.app-nav-link--active { color: var(--brand-primary); }
.app-nav-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 9999px; background: var(--brand-primary); color: #fff;
  font-size: var(--text-xs); font-weight: 600; margin-left: 4px;
}

.nav-logo-svg {
  height: 32px;
  width: auto;
  transition: height 0.3s;
}

/* Legacy text logo fallback */
.nav-logo-text {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -0.03em;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--s-1);
  color: var(--gray-600);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  list-style: none;
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(26, 26, 26, 0.8);
  transition: color 0.15s var(--ease);
}

.nav-links a:hover {
  color: var(--gray-900);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-5);
  font-size: var(--text-sm);
  font-weight: 500;
  font-family: inherit;
  line-height: 1;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s var(--ease);
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--green-500);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--green-600);
  color: var(--white);
  border-color: var(--green-600);
}

.btn-primary:hover {
  background: var(--green-700);
  border-color: var(--green-700);
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--gray-700);
  border-color: var(--gray-300);
}

.btn-secondary:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
}

.btn-lg {
  padding: var(--s-4) var(--s-8);
  font-size: var(--text-base);
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: var(--s-2) var(--s-3);
  font-size: var(--text-xs);
}

/* --- Cards --- */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--s-6);
  transition: box-shadow 0.2s var(--ease);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

/* --- Forms --- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--gray-700);
}

.form-input {
  padding: var(--s-3) var(--s-4);
  font-size: var(--text-base);
  font-family: inherit;
  color: var(--gray-800);
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
  width: 100%;
}

.form-input:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.form-input::placeholder {
  color: var(--gray-400);
}

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

/* --- Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px var(--s-2);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

.badge-blue {
  background: var(--blue-50);
  color: var(--blue-600);
}

.badge-gray {
  background: var(--gray-100);
  color: var(--gray-600);
}


/* --- Alert / Flash messages --- */
.flash {
  padding: var(--s-3) var(--s-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: var(--s-6);
}

.flash-success {
  background: var(--green-50);
  color: var(--green-700);
  border: 1px solid var(--green-100);
}

.flash-error {
  background: var(--red-50);
  color: var(--red-600);
  border: 1px solid #fecaca;
}

.flash-info {
  background: var(--blue-50);
  color: var(--blue-600);
  border: 1px solid #bfdbfe;
}

/* Corner toast (auto-dismiss) — replaces full-width flash banners */
.flash-toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  padding: 12px 20px; border-radius: var(--radius-md);
  font-size: var(--text-sm); font-weight: 500;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  transition: opacity 0.4s, transform 0.4s;
  max-width: 340px;
  animation: toast-in 0.3s ease-out;
}
.flash-toast-success { background: var(--green-50); color: var(--green-700); border: 1px solid var(--green-200); }
.flash-toast-error { background: var(--red-50); color: var(--red-600); border: 1px solid #fecaca; }
.flash-toast-info { background: #fff; color: var(--gray-700); border: 1px solid var(--gray-200); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* --- Empty state --- */
.empty-state {
  text-align: center;
  padding: var(--s-16) var(--s-6);
}

.empty-state h3 {
  margin-bottom: var(--s-2);
}

/* --- Dashboard card grid + upgrade overlay --- */
.match-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.match-upgrade-overlay {
  background: var(--brand-card);
  border: 2px dashed var(--brand-border);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  margin: 16px 0;
}

/* Toast animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* (v0 landing styles are at the bottom of this file) */


/* --- Utility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.mt-2 { margin-top: var(--s-2); }
.mt-4 { margin-top: var(--s-4); }
.mt-6 { margin-top: var(--s-6); }
.mt-8 { margin-top: var(--s-8); }
.mb-4 { margin-bottom: var(--s-4); }
.mb-6 { margin-bottom: var(--s-6); }
.mb-8 { margin-bottom: var(--s-8); }

/* --- Responsive --- */
@media (max-width: 768px) {
  :root {
    --nav-height: 56px;
  }

  .hero h1 {
    font-size: var(--text-3xl);
  }

  .hero-tagline {
    font-size: var(--text-2xl);
  }

  .hero p {
    font-size: var(--text-base);
  }

  .steps {
    grid-template-columns: 1fr;
    gap: var(--s-6);
  }

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

  .pricing-three {
    grid-template-columns: 1fr;
  }

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

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

  .match-card-actions {
    flex-direction: row;
    align-items: center;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .nav {
    padding: 8px 0;
  }

  .nav--scrolled {
    padding: 8px 0;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: var(--s-4) var(--s-6);
    gap: var(--s-3);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    z-index: 100;
  }

  .nav-links--open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a, .nav-links .btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: var(--s-2) 0;
  }

  .stats-bar {
    gap: var(--s-6);
  }

  .stat-number {
    font-size: var(--text-2xl);
  }

  .data-sources {
    gap: var(--s-4);
  }

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

@media (max-width: 480px) {
  .container {
    padding: 0 var(--s-4);
  }

  h1 { font-size: var(--text-2xl); }
  h2 { font-size: var(--text-xl); }
}

/* --- Match card enhancements (Phase 3B) --- */
.match-card-body {
  min-width: 0;
}

.match-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--s-4);
}

.match-score-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.match-score {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--gray-800);
}

/* Headline from Claude analysis */
.match-headline {
  font-size: var(--text-sm);
  color: var(--gray-600);
  margin-top: var(--s-2);
  line-height: 1.5;
  font-style: italic;
}

/* Expandable analysis */
.match-details {
  margin-top: var(--s-2);
}

.match-details summary {
  user-select: none;
}

.match-analysis {
  margin-top: var(--s-3);
  padding: var(--s-3);
  background: var(--gray-50);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.analysis-section {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
}

.analysis-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.analysis-label-good { color: var(--green-600); }
.analysis-label-gap { color: var(--amber-500); }
.analysis-label-tip { color: var(--blue-600); }

.analysis-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.analysis-list li {
  font-size: var(--text-sm);
  color: var(--gray-600);
  padding-left: var(--s-4);
  position: relative;
}

.analysis-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gray-400);
}

.dim-value {
  width: 24px;
  text-align: right;
  flex-shrink: 0;
  color: var(--gray-500);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--gray-400);
  cursor: pointer;
  transition: all 0.15s var(--ease);
}

.btn-icon:hover {
  border-color: var(--gray-300);
  color: var(--gray-600);
}

.btn-save.active {
  background: var(--green-50);
  border-color: var(--green-500);
  color: var(--green-600);
}

.btn-dismiss:hover {
  border-color: var(--red-500);
  color: var(--red-500);
  background: var(--red-50);
}

/* Dimmed non-match cards */
.match-card-dim {
  opacity: 0.7;
}

.match-card-dim:hover {
  opacity: 1;
}

/* --- Pipeline board --- */
.pipeline-select {
  font-size: var(--text-xs);
  font-family: inherit;
  padding: 2px var(--s-2);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--gray-600);
  cursor: pointer;
  flex: 1;
}

.pipeline-select:focus {
  outline: none;
  border-color: var(--green-500);
}



/* ==========================================================================
   V0 LANDING PAGE STYLES
   ========================================================================== */

/* Serif heading font */
.font-serif { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; }

/* Paper texture overlay */
.paper-texture { position: relative; background: var(--brand-bg); }
.paper-texture::before {
  content: ''; position: absolute; inset: 0; opacity: 0.015; pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.paper-texture > * { position: relative; z-index: 1; }

/* Scroll-aware sticky header */
.nav--scrolled { background: rgba(255,255,255,0.95); backdrop-filter: blur(8px); box-shadow: var(--shadow-sm); }
.nav--scrolled .nav-logo { font-size: var(--text-lg); }

/* Accent button (amber CTA) */
.btn-accent {
  background: var(--brand-accent); color: var(--brand-accent-fg);
  border: none; font-weight: 500; cursor: pointer; transition: background 0.15s;
}
.btn-accent:hover { background: #b45309; color: var(--brand-accent-fg); }

/* --- Landing Sections --- */
.landing-section { padding: 64px 0; }
.landing-section--card { background: var(--brand-card); }
.landing-section--tinted { background: #fdf5ef; }

.landing-container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.landing-heading { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; color: var(--gray-900); }
.landing-subtext { color: var(--brand-muted); line-height: 1.7; }
.text-accent { color: var(--brand-accent); font-weight: 600; }
.text-primary-brand { color: var(--brand-primary); }

/* Hero */
.v0-hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 64px 0 48px; }
.v0-hero h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); line-height: 1.15; margin-bottom: 24px; text-wrap: balance; }
.v0-hero h1 .text-primary-brand { color: var(--brand-primary); }
.v0-hero .hero-desc { font-size: clamp(1rem, 2vw, 1.25rem); max-width: 640px; margin: 0 auto 32px; }
.v0-hero .hero-cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; }

/* Match breakdown mockup (landing page feature section) */
.match-badge { background: rgba(21,128,61,0.1); color: var(--brand-primary); font-weight: 600; padding: 4px 12px; border-radius: 9999px; font-size: var(--text-sm); }
.dim-row { display: flex; align-items: center; gap: 12px; }
.dim-label { font-size: var(--text-xs); color: var(--brand-muted); width: 112px; flex-shrink: 0; }
.dim-bar { flex: 1; height: 8px; background: var(--brand-secondary); border-radius: 9999px; overflow: hidden; }
.dim-bar-fill { height: 100%; background: var(--brand-primary); border-radius: 9999px; }
.dim-score { font-size: var(--text-xs); font-weight: 600; width: 32px; text-align: right; }

/* Trust bar */
.trust-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 32px; margin-top: 64px; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: var(--text-sm); color: var(--brand-muted); }
.trust-check { color: var(--brand-primary); flex-shrink: 0; }

/* Problem cards */
.pain-cards { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.pain-card {
  display: flex; align-items: flex-start; gap: 20px; padding: 24px;
  background: var(--brand-bg); border-radius: 12px; border: 1px solid var(--brand-border);
  transition: box-shadow 0.2s;
}
.pain-card:hover { box-shadow: var(--shadow-md); }
.pain-card:nth-child(2) { margin-left: 64px; }
.pain-card:nth-child(3) { margin-left: 32px; }
.pain-icon { color: rgba(21,128,61,0.6); flex-shrink: 0; }
.pain-card h3 { font-family: 'DM Serif Display', Georgia, serif; font-size: var(--text-xl); margin-bottom: 8px; }

/* Wave divider */
.wave-divider { margin-top: 48px; }
.wave-divider svg { display: block; width: 100%; height: 64px; }

/* How it works - 3 column */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; max-width: 1040px; margin: 0 auto; }
.step-num { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-family: 'DM Serif Display', Georgia, serif; font-size: var(--text-lg); }
.step-header { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.step-header h3 { font-family: 'DM Serif Display', Georgia, serif; font-size: var(--text-xl); }

/* Step mockups */
.mockup { background: var(--brand-card); border-radius: 8px; border: 1px solid var(--brand-border); box-shadow: var(--shadow-sm); overflow: hidden; }
.mockup-field { background: var(--brand-secondary); border-radius: 4px; padding: 8px 12px; font-size: var(--text-sm); }
.mockup-label { font-size: var(--text-xs); color: var(--brand-muted); margin-bottom: 4px; }

/* Draft mockup tabs */
.draft-tabs { display: flex; border-bottom: 1px solid var(--brand-border); }
.draft-tab {
  padding: 10px 16px; font-size: var(--text-sm); font-weight: 500; color: var(--brand-muted);
  background: none; border: none; border-bottom: 2px solid transparent; cursor: pointer;
  font-family: inherit; transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.draft-tab:hover { color: var(--gray-700); }
.draft-tab--active {
  color: var(--brand-primary); background: rgba(21,128,61,0.06);
  border-bottom-color: var(--brand-primary);
}
.draft-fade {
  position: absolute; bottom: 0; left: 0; right: 0; height: 64px;
  background: linear-gradient(to bottom, transparent 0%, rgba(255,255,255,0.7) 35%, var(--brand-card) 100%);
  pointer-events: none;
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px;
}
.draft-fade::after {
  content: "Sample excerpt \2014  full drafts include 10 sections, 3,000+ words";
  font-size: 10px; color: var(--brand-muted); letter-spacing: 0.01em;
  pointer-events: none;
}
.steps-grid .draft-fade { height: 48px; }
.steps-grid .draft-fade::after { content: "Sample \2014  full drafts are 10 sections"; font-size: 9px; }

/* Trust stats */
.trust-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; text-align: center; }
.trust-stats .stat-big { font-family: 'DM Serif Display', Georgia, serif; font-size: clamp(2.25rem, 4vw, 3rem); color: var(--brand-primary); margin-bottom: 8px; }

/* Feature rows */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-bottom: 64px; }
.feature-row:last-child { margin-bottom: 0; }
.feature-row--reverse .feature-text { order: 2; }
.feature-row--reverse .feature-visual { order: 1; }
.feature-icon { color: var(--brand-primary); margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.feature-icon h3 { font-family: 'DM Serif Display', Georgia, serif; font-size: var(--text-2xl); }
.feature-badge { background: rgba(217,119,6,0.1); color: var(--brand-accent); font-size: var(--text-xs); padding: 2px 8px; border-radius: 4px; font-weight: 500; }
.feature-badge--green { background: rgba(21,128,61,0.1); color: var(--brand-primary); }

/* Pipeline mockup */
.pipeline-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; text-align: center; }
.pipeline-col-label { font-size: var(--text-xs); color: var(--brand-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.pipeline-mini-card { background: var(--brand-secondary); border-radius: 8px; padding: 8px; text-align: left; margin-bottom: 8px; }
.pipeline-mini-card--active { background: rgba(21,128,61,0.1); border: 1px solid rgba(21,128,61,0.2); }

/* Analysis mockup */
.analysis-item { display: flex; gap: 12px; }
.analysis-bar { width: 6px; border-radius: 3px; flex-shrink: 0; }
.analysis-bar--green { background: var(--brand-primary); }
.analysis-bar--amber { background: var(--brand-accent); }

/* Digest mockup */
.digest-header { background: rgba(21,128,61,0.05); padding: 12px 20px; border-bottom: 1px solid var(--brand-border); display: flex; align-items: center; gap: 12px; }
.digest-icon { width: 32px; height: 32px; background: var(--brand-primary); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; }
.digest-item { display: flex; align-items: center; gap: 12px; padding: 12px 20px; }
.digest-score { width: 40px; height: 40px; border-radius: 50%; background: rgba(21,128,61,0.1); display: flex; align-items: center; justify-content: center; font-size: var(--text-sm); font-weight: 600; color: var(--brand-primary); flex-shrink: 0; }
.digest-new { background: rgba(217,119,6,0.1); color: var(--brand-accent); font-size: var(--text-xs); padding: 2px 8px; border-radius: 4px; font-weight: 500; }

/* ROI Calculator */
.roi-card { background: var(--brand-card); border-radius: 16px; border: 1px solid var(--brand-border); padding: 40px; box-shadow: var(--shadow-lg); max-width: 900px; margin: 0 auto; }
.roi-slider { width: 100%; height: 12px; border-radius: 9999px; appearance: none; background: var(--brand-secondary); cursor: pointer; accent-color: var(--brand-primary); }
.roi-slider::-webkit-slider-thumb { appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-primary); cursor: pointer; }
.roi-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.roi-result-card { border-radius: 12px; padding: 24px; text-align: center; }
.roi-result-card--primary { background: rgba(21,128,61,0.1); }
.roi-result-card--accent { background: rgba(217,119,6,0.1); }
.roi-result-card--neutral { background: var(--brand-secondary); }
.roi-big { font-family: 'DM Serif Display', Georgia, serif; font-size: clamp(2.5rem, 5vw, 3.75rem); font-weight: 400; margin: 8px 0; }
.roi-label { font-size: var(--text-sm); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }

/* Pricing v0 */
.v0-pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 900px; margin: 0 auto; }
.v0-pricing-card {
  background: var(--brand-bg); border-radius: 16px; padding: 32px; position: relative;
  transition: box-shadow 0.2s; border: 2px solid rgba(21,128,61,0.2);
}
.v0-pricing-card:hover { box-shadow: var(--shadow-lg); }
.v0-pricing-card--featured { border-color: var(--brand-accent); box-shadow: var(--shadow-lg); }
.v0-pricing-popular {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--brand-accent); color: #fff; font-size: var(--text-sm); font-weight: 500;
  padding: 4px 16px; border-radius: 9999px;
}
.v0-pricing-price { font-family: 'DM Serif Display', Georgia, serif; font-size: var(--text-4xl); margin-bottom: 4px; }
.v0-pricing-features { list-style: none; padding: 0; margin: 0 0 32px; }
.v0-pricing-features li { display: flex; align-items: flex-start; gap: 12px; padding: 6px 0; }
.v0-pricing-check { color: var(--brand-primary); flex-shrink: 0; margin-top: 2px; }

/* Toggle switch */
.toggle-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.toggle-btn { position: relative; width: 48px; height: 24px; border-radius: 12px; border: none; cursor: pointer; transition: background 0.2s; }
.toggle-btn--on { background: var(--brand-primary); }
.toggle-btn--off { background: var(--gray-300); }
.toggle-knob { position: absolute; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left 0.2s; }
.toggle-btn--on .toggle-knob { left: 28px; }
.toggle-btn--off .toggle-knob { left: 4px; }
.toggle-label { font-size: var(--text-sm); cursor: pointer; }
.toggle-label--active { color: var(--gray-900); font-weight: 500; }
.toggle-label--inactive { color: var(--brand-muted); }

/* FAQ Accordion */
.faq-list { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.faq-item { background: var(--brand-card); border-radius: 12px; border: 1px solid var(--brand-border); overflow: hidden; transition: box-shadow 0.2s; }
.faq-item--open { box-shadow: var(--shadow-md); }
.faq-trigger { width: 100%; background: none; border: none; text-align: left; padding: 20px 24px; font-size: var(--text-base); font-weight: 500; color: var(--gray-900); cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-family: inherit; }
.faq-trigger svg { transition: transform 0.2s; flex-shrink: 0; }
.faq-item--open .faq-trigger svg { transform: rotate(180deg); }
.faq-answer { padding: 0 24px 20px; color: var(--brand-muted); line-height: 1.7; display: none; }
.faq-item--open .faq-answer { display: block; }

/* Footer v0 */
.footer-v0 { padding: 64px 0; background: var(--brand-card); border-top: 1px solid var(--brand-border); }
.footer-v0-inner { display: flex; flex-direction: column; align-items: center; gap: 32px; }
.footer-v0-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px; }
.footer-v0-nav a { font-size: var(--text-sm); color: var(--brand-muted); transition: color 0.15s; }
.footer-v0-nav a:hover { color: var(--gray-900); }
.footer-v0-bottom { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--brand-border); display: flex; justify-content: space-between; width: 100%; }

/* Fade in up animation */
.fade-in-up { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.fade-in-up.visible { opacity: 1; transform: translateY(0); }
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* Tablet responsive for landing */
@media (max-width: 1024px) {
  .steps-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .steps-grid > :last-child { grid-column: 1 / -1; max-width: 480px; margin: 0 auto; }
  .feature-row { gap: 32px; }
}

/* Mobile responsive for landing */
@media (max-width: 768px) {
  .steps-grid { grid-template-columns: 1fr; gap: 40px; }
  .steps-grid > :last-child { max-width: none; }
  .trust-stats { grid-template-columns: 1fr; gap: 24px; }
  .feature-row { grid-template-columns: 1fr; gap: 24px; }
  .feature-row--reverse .feature-text { order: 1; }
  .feature-row--reverse .feature-visual { order: 2; }
  .roi-results { grid-template-columns: 1fr; }
  .v0-pricing { grid-template-columns: 1fr; }
  .pain-card:nth-child(2), .pain-card:nth-child(3) { margin-left: 0; }
  .trust-bar { flex-direction: column; gap: 16px; }
  .footer-v0-bottom { flex-direction: column; align-items: center; gap: 8px; }
}

/* iPhone / small mobile fixes */
@media (max-width: 480px) {
  /* Comparison table: horizontal scroll instead of overflow */
  .compare-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -16px; padding: 0 16px; }
  .compare-table-wrap table { min-width: 420px; font-size: 13px; }
  /* Tighter padding on sections */
  section { padding-left: 16px !important; padding-right: 16px !important; }
}

/* ==========================================================================
   AUTH PAGES (login, onboarding)
   ========================================================================== */
.page-content--auth { padding-top: 0; padding-bottom: 0; min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--brand-bg); }
.page-content--auth > .container { max-width: none; padding: 16px; display: flex; align-items: center; justify-content: center; }

.auth-card-wrapper { width: 100%; max-width: 448px; }
.auth-card { background: var(--brand-card); border-radius: 12px; border: 1px solid var(--brand-border); padding: 40px; box-shadow: var(--shadow-sm); }
@media (max-width: 640px) { .auth-card { padding: 24px; } }

.auth-google-btn {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; padding: 12px 16px; background: var(--brand-card);
  border: 1px solid var(--brand-border); border-radius: 8px;
  font-weight: 500; color: var(--gray-900); text-decoration: none;
  transition: box-shadow 0.15s; font-size: var(--text-sm);
}
.auth-google-btn:hover { box-shadow: var(--shadow-md); color: var(--gray-900); }

.auth-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0; }
.auth-divider-line { flex: 1; height: 1px; background: var(--brand-border); }
.auth-divider-text { font-size: var(--text-sm); color: var(--brand-muted); background: var(--brand-card); padding: 0 12px; }

.auth-input {
  width: 100%; padding: 12px 16px; border-radius: 8px;
  border: 1px solid var(--brand-border); background: var(--brand-bg);
  color: var(--gray-900); font-size: var(--text-base);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.auth-input:focus { outline: none; border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(21,128,61,0.1); }
.auth-input::placeholder { color: var(--brand-muted); }

.auth-submit-btn {
  width: 100%; padding: 12px 16px; border-radius: 8px; border: none;
  background: var(--brand-primary); color: #fff; font-weight: 500;
  font-size: var(--text-base); cursor: pointer; transition: background 0.15s;
  font-family: inherit;
}
.auth-submit-btn:hover { background: #116b33; }
.auth-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Onboarding-specific */
.auth-card-wrapper--wide { max-width: 660px; }
.auth-onboarding-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(21,128,61,0.1); display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px; color: var(--brand-primary);
}
.auth-input--large { font-size: var(--text-lg); text-align: center; letter-spacing: 0.05em; padding: 16px; }
.auth-textarea {
  width: 100%; padding: 12px 16px; border-radius: 8px;
  border: 1px solid var(--brand-border); background: var(--brand-bg);
  color: var(--gray-900); font-size: var(--text-base); resize: none;
  font-family: inherit; transition: border-color 0.15s;
}
.auth-textarea:focus { outline: none; border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(21,128,61,0.1); }

/* ==========================================================================
   V0 MATCH CARDS + DASHBOARD COMPONENTS
   ========================================================================== */
.v0-match-card {
  background: var(--brand-card); border-radius: 12px; border: 1px solid var(--brand-border);
  margin-bottom: 16px; transition: all 0.2s;
}
.v0-match-card--saved {
  border-left: 4px solid var(--brand-primary);
  background: rgba(21,128,61,0.02);
  border-top-color: var(--brand-border);
  border-right-color: var(--brand-border);
  border-bottom-color: var(--brand-border);
}

/* Badges */
.v0-badge {
  display: inline-flex; align-items: center; padding: 4px 10px;
  border-radius: 9999px; font-size: var(--text-xs); font-weight: 500;
  background: var(--brand-secondary); color: var(--gray-900);
}
.v0-badge--blue { background: #dbeafe; color: #1e40af; }
.v0-badge--green { background: #dcfce7; color: #166534; }
.v0-badge--amber { background: #fef3c7; color: #92400e; }
.v0-badge--red { background: #fee2e2; color: #991b1b; }
.v0-badge--gray { background: #f3f4f6; color: #6b7280; }

/* Expandable sections */
.v0-expand summary { list-style: none; }
.v0-expand summary::-webkit-details-marker { display: none; }
.v0-expand-trigger {
  display: flex; align-items: center; gap: 8px; font-size: var(--text-sm);
  font-weight: 500; color: var(--brand-muted); cursor: pointer; user-select: none;
}
.v0-expand-trigger:hover { color: var(--gray-900); }
.v0-expand-chevron { transition: transform 0.2s; }
.v0-expand[open] .v0-expand-chevron { transform: rotate(180deg); }

/* Deep dive button */
.v0-deep-dive-btn {
  display: flex; align-items: center; gap: 8px; font-size: var(--text-sm);
  font-weight: 500; color: var(--brand-primary); background: none; border: none;
  cursor: pointer; padding: 0; font-family: inherit; transition: opacity 0.15s;
}
.v0-deep-dive-btn:hover { opacity: 0.8; }
.v0-deep-dive-btn:disabled { opacity: 0.5; }

/* Action buttons (icon squares) */
.v0-action-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--brand-border);
  background: none; color: var(--brand-muted); cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  text-decoration: none;
}
.v0-action-btn:hover { color: var(--gray-900); border-color: rgba(26,26,26,0.2); }
.v0-action-btn--active { border-color: var(--brand-primary); background: rgba(21,128,61,0.1); color: var(--brand-primary); }

/* Draft Application button */
.v0-draft-btn {
  display: inline-flex; align-items: center; padding: 8px 16px;
  font-size: var(--text-sm); font-weight: 500; color: var(--brand-primary);
  border: 1px solid var(--brand-primary); border-radius: 8px;
  text-decoration: none; transition: background 0.15s;
}
.v0-draft-btn:hover { background: rgba(21,128,61,0.05); color: var(--brand-primary); }

/* Pipeline card */
.v0-pipeline-card {
  background: var(--brand-card); border-radius: 8px; border: 1px solid var(--brand-border);
  padding: 16px; box-shadow: var(--shadow-sm); margin-bottom: 12px;
}
.v0-select {
  width: 100%; font-size: var(--text-xs); padding: 10px 8px; border-radius: 4px;
  border: 1px solid var(--brand-border); background: var(--brand-bg);
  font-family: inherit; min-height: 40px;
}
.v0-select:focus { outline: none; border-color: var(--brand-primary); }

/* Settings tabs */
.v0-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--brand-border); }
.v0-tab {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  font-size: var(--text-sm); font-weight: 500; color: var(--brand-muted);
  background: none; border: none; border-bottom: 2px solid transparent;
  cursor: pointer; font-family: inherit; transition: color 0.15s;
}
.v0-tab:hover { color: var(--gray-900); }
.v0-tab--active { color: var(--brand-primary); border-bottom-color: var(--brand-primary); }
.v0-tab-content { display: none; }
.v0-tab-content--active { display: block; }

/* Settings card */
.v0-settings-card {
  background: var(--brand-card); border: 1px solid var(--brand-border);
  border-radius: 8px; padding: 24px;
}
.v0-label { display: block; font-size: var(--text-sm); font-weight: 500; margin-bottom: 4px; }
.v0-input {
  width: 100%; padding: 8px 12px; border: 1px solid var(--brand-border);
  border-radius: 8px; background: var(--brand-bg); font-size: var(--text-sm);
  font-family: inherit; transition: border-color 0.15s;
}
.v0-input:focus { outline: none; border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(21,128,61,0.08); }
.v0-input--error { border-color: var(--red-600, #dc2626); }
.v0-input--error:focus { border-color: var(--red-600, #dc2626); box-shadow: 0 0 0 3px rgba(220,38,38,0.12); }
.v0-form-error { font-size: var(--text-sm); color: var(--red-600, #dc2626); margin-top: 4px; }

/* Notification toggles */
.v0-toggle-row {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px 0; border-bottom: 1px solid var(--brand-border);
}
.v0-toggle {
  width: 44px; height: 24px; border-radius: 12px; background: var(--gray-300);
  position: relative; cursor: pointer; flex-shrink: 0; transition: background 0.2s;
  box-sizing: border-box;
}
/* Invisible touch target expander — meets Apple's 44×44px minimum */
.v0-toggle::before {
  content: ''; position: absolute; top: -10px; left: -4px; right: -4px; bottom: -10px;
}
.v0-toggle::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%; background: #fff;
  transition: left 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.v0-toggle:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 2px; }
.v0-toggle--on { background: var(--brand-primary); }
.v0-toggle--on::after { left: 23px; }

/* Draft type selection cards */
.v0-type-card {
  padding: 16px; border-radius: 8px; border: 2px solid var(--brand-border);
  cursor: pointer; transition: border-color 0.15s, background 0.15s; text-align: left;
}
.v0-type-card:hover { border-color: rgba(26,26,26,0.2); }
.v0-type-card:focus-within { outline: 2px solid var(--brand-primary); outline-offset: 2px; }
.v0-type-card:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 2px; }
.v0-type-card--selected { border-color: var(--brand-primary); background: rgba(21,128,61,0.03); }

/* Email row hover */
.v0-email-row { transition: background 0.15s; }
.v0-email-row:hover { background: var(--brand-secondary); }

/* Program tags */
.v0-tag {
  display: inline-flex; align-items: center; padding: 4px 12px;
  background: rgba(21,128,61,0.08); color: var(--brand-primary);
  border-radius: 9999px; font-size: var(--text-sm); font-weight: 500;
}

@media (max-width: 768px) {
  .v0-settings-card { padding: 16px; }
  .v0-settings-card [style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; }
}

/* ==========================================================================
   DASHBOARD V0 RESKIN
   ========================================================================== */

/* Glassmorphic header — applied to .nav on dashboard pages only */
.dashboard-page ~ .nav,
body.is-dashboard .nav,
.nav.nav--dashboard {
  background: rgba(255,255,255,0.8) !important;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(232,229,224,0.5);
}

/* Dashboard page: sticky nav (not fixed), reduce top padding */
.page-content.dashboard-page > .container { max-width: 72rem; }

/* --- Match card v0 reskin: hover lift + shadow --- */
.v0-match-card {
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.v0-match-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* --- Card layout: score ring + content side by side --- */
.v0-card-layout { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 640px) { .v0-card-layout { flex-direction: row; gap: 24px; } }
.v0-card-content { flex: 1; min-width: 0; }

/* --- Circular SVG score chart --- */
.v0-score-ring-wrap {
  flex-shrink: 0; position: relative; width: 80px; height: 80px;
  display: flex; align-items: flex-start; justify-content: center;
}
@media (max-width: 639px) { .v0-score-ring-wrap { margin: 0 auto; } }
.v0-score-ring { transform: rotate(-90deg); }
.v0-score-ring-bg { fill: none; stroke: #f5f5f0; stroke-width: 8; }
.v0-score-ring-fill { fill: none; stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset 0.6s ease; }
.v0-score-ring-fill--green { stroke: var(--brand-primary); }
.v0-score-ring-fill--amber { stroke: var(--brand-accent); }
.v0-score-ring-fill--gray { stroke: var(--brand-muted); }
.v0-score-text {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: var(--text-xl); font-weight: 700;
}
.v0-score-text--green { color: var(--brand-primary); }
.v0-score-text--amber { color: var(--brand-accent); }
.v0-score-text--gray { color: var(--brand-muted); }

/* --- Card header row --- */
.v0-card-header { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
@media (min-width: 640px) { .v0-card-header { flex-direction: row; align-items: flex-start; justify-content: space-between; } }

/* --- Thin dimension bars on card face (5 columns on large) --- */
.v0-dim-grid { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 16px; }
@media (min-width: 640px) { .v0-dim-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .v0-dim-grid { grid-template-columns: repeat(5, 1fr); } }
.v0-dim-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.v0-dim-label { font-size: var(--text-xs); color: var(--brand-muted); }
.v0-dim-value { font-size: var(--text-xs); font-weight: 500; color: var(--gray-900); }
.v0-dim-track { height: 4px; width: 100%; overflow: hidden; border-radius: 9999px; background: #f5f5f0; }
.v0-dim-fill { height: 100%; border-radius: 9999px; transition: width 0.5s; }
.v0-dim-fill--green { background: var(--brand-primary); }
.v0-dim-fill--amber { background: var(--brand-accent); }
.v0-dim-fill--gray { background: var(--brand-muted); }

/* --- "Why this match?" toggle (sparkle icon version) --- */
.v0-why-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--text-sm); color: var(--brand-muted); background: none; border: none;
  cursor: pointer; padding: 0; font-family: inherit; transition: color 0.15s;
}
.v0-why-toggle:hover { color: var(--gray-900); }

/* --- Expanded analysis: two-column strengths/gaps grid --- */
.v0-analysis-panel {
  margin-top: 16px; padding: 16px; border-radius: 8px;
  background: rgba(245,245,240,0.5);
}
.v0-analysis-grid { display: grid; gap: 16px; margin-top: 16px; }
@media (min-width: 640px) { .v0-analysis-grid { grid-template-columns: 1fr 1fr; } }
.v0-analysis-heading {
  display: flex; align-items: center; gap: 8px;
  font-size: var(--text-sm); font-weight: 500; margin-bottom: 8px;
}
.v0-analysis-heading--green { color: var(--brand-primary); }
.v0-analysis-heading--amber { color: var(--brand-accent); }
.v0-analysis-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.v0-analysis-list li { display: flex; align-items: flex-start; gap: 8px; font-size: var(--text-sm); color: var(--gray-900); }
.v0-dot { margin-top: 6px; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.v0-dot--green { background: var(--brand-primary); }
.v0-dot--amber { background: var(--brand-accent); }

/* Strategic tip callout */
.v0-tip-callout {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 12px; border-radius: 8px; margin-top: 16px;
  background: rgba(254,243,199,0.5);
}
.v0-tip-callout svg { flex-shrink: 0; color: var(--brand-accent); margin-top: 2px; }
.v0-tip-callout p { font-size: var(--text-sm); color: var(--gray-900); margin: 0; max-width: none; }

/* --- Upgrade banner: amber gradient, NOT full-width orange --- */
.v0-upgrade-banner {
  border-radius: 12px; border: 1px solid rgba(217,119,6,0.3);
  background: linear-gradient(to right, #fef3c7, rgba(254,243,199,0.5));
  padding: 16px; margin-bottom: 24px;
}
@media (min-width: 640px) { .v0-upgrade-banner { padding: 24px; } }
.v0-upgrade-banner-inner {
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
}
@media (min-width: 640px) {
  .v0-upgrade-banner-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .v0-upgrade-banner .btn-accent { width: auto; }
}
.v0-upgrade-icon {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; background: rgba(217,119,6,0.2); flex-shrink: 0;
}

/* --- Upgrade overlay with blurred preview cards --- */
.v0-upgrade-overlay { position: relative; overflow: hidden; border-radius: 12px; border: 1px solid var(--brand-border); margin: 16px 0; }
.v0-blur-bg { pointer-events: none; position: absolute; inset: 0; padding: 24px; filter: blur(4px); }
.v0-blur-card { display: flex; gap: 16px; padding: 16px; border-radius: 12px; background: var(--brand-card); opacity: 0.6; margin-bottom: 16px; }
.v0-blur-score { width: 64px; height: 64px; border-radius: 50%; background: rgba(21,128,61,0.2); display: flex; align-items: center; justify-content: center; font-size: var(--text-lg); font-weight: 700; color: var(--brand-primary); flex-shrink: 0; }
.v0-blur-lines { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.v0-blur-line { height: 16px; border-radius: 4px; background: #f5f5f0; }
.v0-blur-bars { display: flex; gap: 8px; }
.v0-blur-bar { height: 4px; flex: 1; border-radius: 4px; background: #f5f5f0; }
.v0-upgrade-cta {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(to top, var(--brand-card), rgba(255,255,255,0.95), rgba(255,255,255,0.8));
  padding: 64px 24px; text-align: center;
}
.v0-upgrade-cta-icon { width: 64px; height: 64px; border-radius: 50%; background: rgba(21,128,61,0.1); display: flex; align-items: center; justify-content: center; margin-bottom: 24px; }
.v0-upgrade-cta h3 { font-family: 'DM Serif Display', Georgia, serif; font-size: var(--text-2xl); margin-bottom: 8px; font-weight: 400; }
.v0-upgrade-cta p { color: var(--brand-muted); max-width: 28rem; margin: 0 auto 24px; }
.v0-upgrade-features { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 32px; }
.v0-upgrade-feature { display: flex; align-items: center; gap: 8px; font-size: var(--text-sm); }
.v0-upgrade-feature svg { color: var(--brand-primary); width: 16px; height: 16px; }

/* --- Matching progress: animated sparkle + bar --- */
.v0-matching-progress {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 64px 16px; text-align: center; max-width: 480px; margin: 0 auto;
}
.v0-sparkle-wrap { position: relative; margin-bottom: 32px; }
.v0-sparkle-ping {
  position: absolute; inset: 0; border-radius: 50%;
  background: rgba(21,128,61,0.2); animation: v0-ping 1.5s cubic-bezier(0,0,0.2,1) infinite;
}
.v0-sparkle-circle {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 80px; height: 80px; border-radius: 50%; background: rgba(21,128,61,0.1);
}
.v0-sparkle-icon { color: var(--brand-primary); animation: v0-pulse 2s ease-in-out infinite; }
.v0-progress-track {
  width: 100%; max-width: 28rem; height: 8px; overflow: hidden;
  border-radius: 9999px; background: #f5f5f0; margin-bottom: 16px;
}
.v0-progress-fill { height: 100%; border-radius: 9999px; background: var(--brand-primary); transition: width 0.5s; }

@keyframes v0-ping { 0% { transform: scale(1); opacity: 0.8; } 75%, 100% { transform: scale(1.6); opacity: 0; } }
@keyframes v0-pulse { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }

/* --- Labeled action buttons (icon + text, for clarity) --- */
.v0-labeled-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 8px; border: 1px solid var(--brand-border);
  background: none; color: var(--brand-muted); cursor: pointer;
  font-size: var(--text-sm); font-weight: 500; font-family: inherit;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  text-decoration: none; white-space: nowrap;
}
.v0-labeled-btn:hover { color: var(--gray-900); border-color: rgba(26,26,26,0.2); background: var(--brand-secondary); }
.v0-labeled-btn--active { border-color: var(--brand-primary); background: rgba(21,128,61,0.1); color: var(--brand-primary); }
.v0-labeled-btn--muted:hover { color: var(--red-600); border-color: rgba(220,38,38,0.2); background: rgba(220,38,38,0.05); }

/* --- Glowing "Why this match?" toggle --- */
.v0-why-toggle {
  background: linear-gradient(135deg, rgba(21,128,61,0.06), rgba(217,119,6,0.06));
  border: 1px solid rgba(21,128,61,0.15);
  border-radius: 8px; padding: 10px 14px;
  animation: v0-glow-pulse 3s ease-in-out infinite;
}
.v0-why-toggle:hover {
  background: linear-gradient(135deg, rgba(21,128,61,0.12), rgba(217,119,6,0.1));
  border-color: rgba(21,128,61,0.3);
  animation: none;
}
@keyframes v0-glow-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(21,128,61,0); }
  50% { box-shadow: 0 0 12px 2px rgba(21,128,61,0.12); }
}

/* Fade-in-up animation for cards */
.v0-fade-in { opacity: 0; animation: v0-fade-in-up 0.6s ease-out forwards; }
@keyframes v0-fade-in-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ==========================================================================
   PIPELINE PAGE — VERTICAL ACCORDION
   ========================================================================== */

/* Stage sections */
.v0-pipe-stages { display: flex; flex-direction: column; gap: 10px; }
.v0-pipe-stage {
  border: 1px solid var(--brand-border); border-radius: 12px;
  background: var(--brand-card); overflow: hidden;
}

/* Stage header — full-width clickable bar */
.v0-pipe-stage-header {
  display: flex; align-items: center; gap: 10px; padding: 16px 20px;
  cursor: pointer; user-select: none; font-size: var(--text-sm); font-weight: 600;
  transition: background 0.15s; border: none; background: none; width: 100%;
  font-family: inherit; color: inherit; text-align: left;
}
.v0-pipe-stage-header:hover { background: var(--brand-secondary); }

/* Chevron rotates on open */
.v0-pipe-stage-chevron {
  transition: transform 0.25s ease; color: var(--brand-muted); flex-shrink: 0;
}
.v0-pipe-stage--open .v0-pipe-stage-chevron { transform: rotate(180deg); }

/* Stage icon colors */
.v0-pipe-stage-icon { flex-shrink: 0; }
.v0-pipe-stage--muted .v0-pipe-stage-icon { color: var(--brand-muted); }
.v0-pipe-stage--accent .v0-pipe-stage-icon { color: var(--brand-accent); }
.v0-pipe-stage--primary .v0-pipe-stage-icon { color: var(--brand-primary); }
.v0-pipe-stage--green .v0-pipe-stage-icon { color: #16a34a; }
.v0-pipe-stage--muted .v0-pipe-stage-header { border-left: 3px solid var(--brand-muted); }
.v0-pipe-stage--accent .v0-pipe-stage-header { border-left: 3px solid var(--brand-accent); }
.v0-pipe-stage--primary .v0-pipe-stage-header { border-left: 3px solid var(--brand-primary); }
.v0-pipe-stage--green .v0-pipe-stage-header { border-left: 3px solid #16a34a; }

.v0-pipe-stage-label { flex: 1; }
.v0-pipe-stage-count {
  font-size: var(--text-xs); font-weight: 500; padding: 2px 10px;
  border-radius: 9999px; background: var(--brand-secondary); color: var(--brand-muted);
}

/* Expand body with animation */
.v0-pipe-stage-body {
  display: none; flex-direction: column; gap: 10px;
  padding: 0 16px 16px;
}
.v0-pipe-stage--open .v0-pipe-stage-body {
  display: flex;
  animation: v0-pipe-expand 0.25s ease-out;
}
@keyframes v0-pipe-expand {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Empty stage message */
.v0-pipe-stage-empty {
  color: var(--brand-muted); font-size: var(--text-sm);
  text-align: center; padding: 24px 16px;
  align-self: stretch;
}

/* Pipeline card — full width, no left indent */
.v0-pipe-card {
  background: var(--brand-secondary); border: 1px solid var(--brand-border);
  border-radius: 10px; padding: 16px 20px;
  border-left: 3px solid var(--brand-border);
  overflow-wrap: break-word; word-break: break-word;
  transition: box-shadow 0.2s, transform 0.2s;
}
.v0-pipe-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.v0-pipe-card--muted { border-left-color: var(--brand-muted); }
.v0-pipe-card--accent { border-left-color: var(--brand-accent); }
.v0-pipe-card--primary { border-left-color: var(--brand-primary); }
.v0-pipe-card--green { border-left-color: #16a34a; }

/* Score pill */
.v0-pipe-score {
  display: inline-flex; align-items: center; padding: 3px 10px;
  border-radius: 9999px; font-size: var(--text-xs); font-weight: 600; flex-shrink: 0;
}
.v0-pipe-score--green { background: rgba(21,128,61,0.1); color: var(--brand-primary); }
.v0-pipe-score--amber { background: rgba(217,119,6,0.1); color: var(--brand-accent); }
.v0-pipe-score--gray { background: var(--brand-secondary); color: var(--brand-muted); }

/* Deadline pill */
.v0-pipe-deadline {
  display: inline-flex; align-items: center; padding: 2px 8px;
  border-radius: 9999px; font-size: var(--text-xs); font-weight: 500;
}
.v0-pipe-deadline--red { background: rgba(220,38,38,0.1); color: var(--red-600); }
.v0-pipe-deadline--amber { background: rgba(217,119,6,0.1); color: var(--brand-accent); }
.v0-pipe-deadline--gray { background: var(--brand-secondary); color: var(--brand-muted); }

/* Stage dropdown select */
.v0-pipe-stage-select {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 12px; border: 1px solid var(--brand-border); border-radius: 6px;
  font-size: var(--text-xs); font-family: inherit; background: var(--brand-card);
  color: var(--gray-900); cursor: pointer; min-height: 28px;
}
.v0-pipe-stage-select:focus { outline: none; border-color: var(--brand-primary); }

/* Card action links */
.v0-pipe-action {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: var(--text-xs); color: var(--brand-muted); text-decoration: none;
  padding: 5px 10px; border-radius: 6px; transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.v0-pipe-action:hover { color: var(--gray-900); background: rgba(0,0,0,0.04); }
.v0-pipe-action--primary { color: var(--brand-primary); }
.v0-pipe-action--primary:hover { color: var(--brand-primary); background: rgba(21,128,61,0.06); }

/* Empty state (no grants at all) */
.v0-pipe-empty-state {
  display: flex; flex-direction: column; align-items: center;
  padding: 80px 16px; text-align: center;
}
.v0-pipe-empty-icon {
  position: relative; width: 64px; height: 64px; border-radius: 50%;
  background: rgba(21,128,61,0.1); display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}

/* ==========================================================================
   SETTINGS PAGE RESKIN
   ========================================================================== */

/* Settings page wrapper */
.v0-settings-page { max-width: 56rem; margin: 0 auto; }

/* Card component (reusable) */
.v0-card {
  background: var(--brand-card); border: 1px solid var(--brand-border);
  border-radius: 12px; overflow: hidden;
}
.v0-card-head {
  padding: 24px 24px 0;
}
.v0-card-head h2 {
  font-family: 'DM Serif Display', Georgia, serif; font-size: var(--text-xl);
  font-weight: 400; margin-bottom: 4px;
}
.v0-card-head p { font-size: var(--text-sm); color: var(--brand-muted); margin: 0; }
.v0-card-body { padding: 24px; }

/* Form grid */
.v0-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.v0-form-grid--full { grid-column: 1 / -1; }
@media (max-width: 640px) { .v0-form-grid { grid-template-columns: 1fr; } }

/* Tab bar: icon-only on mobile */
@media (max-width: 640px) {
  .v0-tab span { display: none; }
  .v0-tab { padding: 12px 12px; }
}

/* Pricing cards */
.v0-pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
@media (max-width: 640px) { .v0-pricing-grid { grid-template-columns: 1fr; } }
.v0-pricing-card {
  border: 1px solid var(--brand-border); border-radius: 12px; padding: 20px;
}
.v0-pricing-card--featured {
  border: 2px solid var(--brand-primary); position: relative;
}
.v0-pricing-badge {
  position: absolute; top: -10px; left: 16px;
  padding: 2px 10px; border-radius: 9999px;
  background: var(--brand-primary); color: #fff;
  font-size: var(--text-xs); font-weight: 500;
}

/* Features grid */
.v0-features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 640px) { .v0-features-grid { grid-template-columns: 1fr; } }
.v0-feature-row {
  display: flex; align-items: center; gap: 8px; font-size: var(--text-sm);
}
.v0-feature-row svg { color: var(--brand-primary); flex-shrink: 0; }

/* Danger zone card */
.v0-danger-card {
  background: var(--brand-card); border: 1px solid rgba(220,38,38,0.3);
  border-radius: 12px; overflow: hidden;
}
.v0-danger-card .v0-card-head h2 { color: var(--red-600); }

/* Notification toggle: "Coming soon" badge */
.v0-coming-soon {
  display: inline-flex; padding: 2px 8px; border-radius: 9999px;
  background: var(--brand-secondary); color: var(--brand-muted);
  font-size: var(--text-xs); font-weight: 500;
}

/* ==========================================================================
   UPGRADE PAGE RESKIN
   ========================================================================== */

.v0-upgrade-page {
  min-height: calc(100vh - var(--nav-height) - 40px);
  display: flex; align-items: center; justify-content: center; padding: 48px 16px;
}
.v0-upgrade-inner { max-width: 36rem; width: 100%; text-align: center; }

/* Stage preview flow */
.v0-stage-flow {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 24px 16px; background: rgba(245,245,240,0.3); border-radius: 12px;
  border: 1px solid var(--brand-border); margin-bottom: 32px; overflow: hidden;
  position: relative;
}
.v0-stage-flow::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, transparent 60%, var(--brand-bg));
}
.v0-stage-mockup {
  width: 80px; height: 110px; border: 2px dashed var(--brand-border); border-radius: 8px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.5);
}
@media (min-width: 640px) { .v0-stage-mockup { width: 96px; height: 128px; } }
.v0-stage-mockup svg { color: var(--brand-muted); margin-bottom: 8px; }
.v0-stage-mockup span { font-size: var(--text-xs); color: var(--brand-muted); }
.v0-stage-arrow { color: var(--brand-muted); opacity: 0.5; flex-shrink: 0; }

/* Features card (green tinted) */
.v0-pro-features-card {
  background: rgba(21,128,61,0.05); border-radius: 12px; padding: 24px;
  margin-bottom: 32px; text-align: left;
}
.v0-pro-features-card .v0-feature-label {
  display: flex; align-items: center; gap: 8px; font-size: var(--text-sm);
  font-weight: 500; color: var(--brand-primary); margin-bottom: 16px;
}
.v0-pro-feature {
  display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px;
}
.v0-pro-feature-check {
  width: 20px; height: 20px; border-radius: 50%; background: rgba(21,128,61,0.1);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px;
}
.v0-pro-feature-check svg { color: var(--brand-primary); }

/* ============================================================
   Draft Editor — v0 reskin (round 2)
   ============================================================ */
.v0-draft-layout {
  display: grid; grid-template-columns: 220px 1fr 280px;
  min-height: calc(100vh - var(--nav-height) - 60px);
}
.v0-draft-nav {
  position: sticky; top: var(--nav-height); height: calc(100vh - var(--nav-height));
  overflow-y: auto; border-right: 1px solid var(--brand-border); padding: var(--s-4);
  background: var(--white);
}
.v0-draft-nav-label {
  font-size: var(--text-xs); font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--brand-muted); margin-bottom: var(--s-4);
}
.v0-draft-nav-item {
  display: block; width: 100%; text-align: left; padding: var(--s-2) var(--s-3);
  border-radius: var(--radius-sm); font-size: var(--text-sm); color: var(--brand-muted);
  text-decoration: none; margin-bottom: 1px; transition: background 0.15s, color 0.15s;
}
.v0-draft-nav-item:hover { background: var(--gray-50); color: var(--gray-900); }
.v0-draft-nav-item.active { background: var(--green-50); color: var(--green-700); font-weight: 500; }
.v0-draft-nav-actions {
  margin-top: var(--s-6); padding-top: var(--s-6); border-top: 1px solid var(--brand-border);
  display: flex; flex-direction: column; gap: var(--s-2);
}
.v0-draft-editor { padding: var(--s-8) var(--s-8); max-width: 760px; margin: 0 auto; }
.v0-draft-title {
  font-family: 'DM Serif Display', Georgia, serif; font-size: var(--text-2xl);
  font-weight: 400; color: var(--gray-900); margin-bottom: var(--s-2);
}
.v0-draft-section { margin-bottom: var(--s-8); scroll-margin-top: calc(var(--nav-height) + var(--s-6)); }
.v0-draft-section-title { font-size: var(--text-lg); font-weight: 600; color: var(--gray-900); margin-bottom: var(--s-2); }
.v0-draft-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s-2) var(--s-3); background: var(--gray-50);
  border: 1px solid var(--brand-border); border-bottom: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.v0-draft-toolbar-btns { display: flex; gap: var(--s-1); }
.v0-draft-toolbar-btn {
  padding: 4px 8px; border: none; background: transparent; border-radius: var(--radius-sm);
  cursor: pointer; font-size: var(--text-sm); color: var(--gray-600); transition: background 0.1s;
  display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px;
}
.v0-draft-toolbar-btn:hover { background: var(--gray-200); }
.v0-draft-toolbar-btn.active { background: var(--green-100); color: var(--green-700); }
.v0-draft-wc { font-size: var(--text-xs); color: var(--brand-muted); }
.v0-draft-content {
  outline: none; min-height: 80px; line-height: 1.7; color: var(--gray-800);
  padding: var(--s-3) var(--s-4); border: 1px solid var(--brand-border);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: border-color 0.15s; white-space: pre-wrap;
}
.v0-draft-content:focus { border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(21,128,61,0.08); background: var(--white); }
.v0-draft-content p { margin-bottom: var(--s-3); }
.v0-draft-content ul, .v0-draft-content ol { padding-left: var(--s-6); margin-bottom: var(--s-3); }
.v0-draft-content li { margin-bottom: var(--s-1); }
.v0-draft-panel {
  position: sticky; top: var(--nav-height); height: calc(100vh - var(--nav-height));
  overflow-y: auto; border-left: 1px solid var(--brand-border); padding: var(--s-4);
  background: var(--gray-50);
}
.v0-draft-panel-section { margin-bottom: var(--s-6); }
.v0-draft-panel-title {
  font-size: var(--text-xs); font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--brand-muted); margin-bottom: var(--s-3);
}
.v0-draft-regen {
  width: 100%; display: flex; align-items: center; justify-content: center;
  gap: var(--s-2); padding: var(--s-2) var(--s-3); border: 1px solid var(--brand-border);
  border-radius: var(--radius-sm); background: white; font-size: var(--text-sm);
  color: var(--gray-700); cursor: pointer; font-family: inherit;
  transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.15s;
}
.v0-draft-regen:hover { border-color: var(--green-500); background: var(--green-50); color: var(--green-700); transform: translateY(-1px); }
.v0-draft-regen:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
@media (max-width: 1100px) {
  .v0-draft-layout { grid-template-columns: 220px 1fr; }
  .v0-draft-panel { display: none; }
}
@media (max-width: 900px) {
  .v0-draft-layout { grid-template-columns: 1fr; }
  .v0-draft-nav { display: none; }
}
@media (max-width: 600px) { .v0-draft-editor { padding: var(--s-4) var(--s-3); } }

/* ============================================================
   Draft Generating — v0 reskin (round 2)
   ============================================================ */
.v0-gen-wrapper { min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.v0-gen-inner { width: 100%; max-width: 448px; animation: v0-fade-in-up 0.5s ease-out; }
.v0-gen-header { text-align: center; margin-bottom: 32px; }
.v0-gen-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%; background: var(--green-50); margin-bottom: 24px;
}
.v0-gen-icon svg { width: 32px; height: 32px; color: var(--brand-primary); }
.v0-gen-row { display: flex; align-items: center; gap: 12px; }
.v0-gen-step {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-sm); font-weight: 500; transition: all 0.3s;
}
.v0-gen-step--pending { background: var(--gray-50); color: var(--brand-muted); }
.v0-gen-step--active { background: var(--green-50); color: var(--brand-primary); }
.v0-gen-step--done { background: var(--brand-primary); color: #fff; }
.v0-gen-step--error { background: var(--red-600, #dc2626); color: #fff; }
.v0-gen-label { font-size: var(--text-sm); transition: color 0.3s, font-weight 0.2s; }
.v0-gen-label--pending { color: var(--brand-muted); }
.v0-gen-label--active { color: var(--gray-900); font-weight: 600; }
.v0-gen-label--done { color: var(--brand-primary); font-weight: 500; }
.v0-gen-label--error { color: var(--red-600, #dc2626); }
.v0-gen-footer { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--brand-border); text-align: center; }
.v0-gen-error {
  display: none; margin-top: 24px; padding: 16px; border-radius: 12px;
  background: rgba(220,38,38,0.04); border: 1px solid rgba(220,38,38,0.25);
}
.v0-gen-error p { font-size: var(--text-sm); color: #991b1b; margin: 0; }
.v0-gen-error a { display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; font-size: var(--text-sm); color: var(--brand-primary); }

/* ============================================================
   Onboarding Phase 2 — v0 reskin (round 2)
   ============================================================ */
.v0-ob-profile {
  border: 1px solid var(--brand-border); border-radius: 12px; padding: 20px;
  margin-bottom: 24px; background: var(--brand-bg);
}
.v0-ob-profile-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.v0-ob-profile-top h2 {
  font-family: 'DM Serif Display', Georgia, serif; font-size: var(--text-xl);
  font-weight: 400; margin: 0; line-height: 1.3;
}
.v0-ob-meta { font-size: var(--text-sm); color: var(--brand-muted); margin-bottom: 16px; }
.v0-ob-mission-status { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: var(--text-sm); }
.v0-ob-tos { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; margin-bottom: 12px; }
.v0-ob-tos span { font-size: var(--text-sm); color: var(--gray-600); }
.v0-ob-tos a { color: var(--brand-primary); text-decoration: underline; }

/* ============================================================
   Alerts — reusable v0 component
   ============================================================ */
.v0-alert { padding: 16px; border-radius: 12px; margin-bottom: 16px; display: flex; align-items: flex-start; gap: 12px; }
.v0-alert-icon { flex-shrink: 0; margin-top: 2px; }
.v0-alert-body {}
.v0-alert-title { font-weight: 500; margin-bottom: 4px; }
.v0-alert-text { font-size: var(--text-sm); color: var(--gray-700); }
.v0-alert-text a { color: var(--brand-primary); }
.v0-alert--success { background: var(--green-50); border: 1px solid rgba(21,128,61,0.3); }
.v0-alert--success .v0-alert-title { color: var(--brand-primary); }
.v0-alert--success .v0-alert-icon svg { color: var(--brand-primary); }
.v0-alert--danger { background: rgba(220,38,38,0.04); border: 1px solid rgba(220,38,38,0.25); }
.v0-alert--danger .v0-alert-title { color: #991b1b; }
.v0-alert--danger .v0-alert-icon svg { color: #dc2626; }
.v0-alert--warning { background: rgba(245,158,11,0.06); border: 1px solid rgba(217,119,6,0.25); }
.v0-alert--warning .v0-alert-title { color: #92400e; }
.v0-alert--warning .v0-alert-icon svg { color: var(--brand-accent); }

/* ============================================================
   Scholarship — v0 reskin (round 2)
   ============================================================ */
.v0-scholarship-page { max-width: 700px; margin: 0 auto; }
.v0-scholarship-header { text-align: center; margin-bottom: 40px; }
.v0-scholarship-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%; background: var(--green-50); margin-bottom: 24px;
}
.v0-scholarship-icon svg { color: var(--brand-primary); }

/* ==========================================================================
   VOICE INPUT (Web Speech API)
   ========================================================================== */
.voice-input-wrap {
  position: relative;
  display: block;
}

textarea.voice-input-active {
  padding-right: 56px;
}

.voice-mic-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--gray-300);
  background: var(--white);
  color: var(--gray-500);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 1;
  padding: 0;
}

.voice-mic-btn:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
  color: var(--gray-700);
}

.voice-mic-btn--listening {
  background: var(--red-50);
  border-color: #ef4444;
  color: #dc2626;
  animation: voice-pulse 1.5s ease-in-out infinite;
}

.voice-mic-btn--listening:hover {
  background: #fee2e2;
}

@keyframes voice-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

.voice-mic-tooltip {
  position: absolute;
  bottom: 56px;
  right: 0;
  background: var(--gray-800);
  color: #fff;
  font-size: var(--text-xs);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  animation: voice-tooltip-in 0.3s ease forwards 1s;
}

.voice-mic-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 16px;
  border: 5px solid transparent;
  border-top-color: var(--gray-800);
}

@keyframes voice-tooltip-in {
  to { opacity: 1; }
}

/* ==========================================================================
   5x YEARLY BADGE
   ========================================================================== */
.v0-5x-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 9999px;
  background: var(--green-100);
  color: var(--green-700);
  font-size: var(--text-xs);
  font-weight: 600;
  margin-left: 4px;
  vertical-align: middle;
}

/* ==========================================================================
   MOBILE TOUCH TARGET FIXES (44px minimum per WCAG 2.5.5)
   ========================================================================== */
@media (max-width: 768px) {
  .v0-deep-dive-btn {
    padding: 12px 0;
    min-height: 44px;
  }
  .btn-icon {
    width: 44px;
    height: 44px;
  }
  .v0-labeled-btn {
    padding: 12px 14px;
    min-height: 44px;
  }
  .btn-sm {
    min-height: 44px;
    padding: 10px 14px;
  }
  .v0-tab {
    min-width: 44px;
    min-height: 44px;
  }
}

/* === METAPROMPT 1: Feedback & Tracking Styles === */

/* --- Dismiss Feedback Modal --- */
.v0-dismiss-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: v0-dismiss-fade-in 0.2s ease;
}
@keyframes v0-dismiss-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.v0-dismiss-modal {
  background: var(--brand-card-bg, #fff);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  animation: v0-dismiss-slide-up 0.25s ease;
}
@keyframes v0-dismiss-slide-up {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.v0-dismiss-title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: 4px;
}
.v0-dismiss-subtitle {
  font-size: var(--text-sm);
  color: var(--brand-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}
.v0-dismiss-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.v0-dismiss-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1.5px solid var(--brand-border);
  border-radius: 100px;
  background: transparent;
  font-size: var(--text-sm);
  color: var(--brand-fg, #1a1a1a);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.v0-dismiss-pill:hover {
  border-color: var(--brand-primary);
  background: var(--brand-primary-bg, rgba(22, 163, 74, 0.06));
}
.v0-dismiss-pill--active {
  border-color: var(--brand-primary);
  background: var(--brand-primary);
  color: #fff;
}
.v0-dismiss-note-wrap {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}
.v0-dismiss-note-wrap--open {
  max-height: 200px;
  opacity: 1;
}
.v0-dismiss-note {
  width: 100%;
  border: 1.5px solid var(--brand-border);
  border-radius: 10px;
  padding: 12px;
  font-size: var(--text-sm);
  font-family: inherit;
  resize: vertical;
  min-height: 72px;
  max-height: 150px;
  margin-bottom: 4px;
}
.v0-dismiss-note:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}
.v0-dismiss-char-count {
  font-size: var(--text-xs);
  color: var(--brand-muted);
  text-align: right;
  margin-bottom: 12px;
}
.v0-dismiss-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--brand-border);
}
.v0-dismiss-submit {
  padding: 10px 20px;
  border-radius: 10px;
  background: var(--brand-primary);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
}
.v0-dismiss-submit:hover { opacity: 0.9; }
.v0-dismiss-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.v0-dismiss-skip {
  background: none;
  border: none;
  color: var(--brand-muted);
  font-size: var(--text-sm);
  cursor: pointer;
  padding: 8px 12px;
}
.v0-dismiss-skip:hover { color: var(--brand-fg, #1a1a1a); }

/* --- Match Quality Rating Widget --- */
.v0-rating-widget {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  animation: v0-rating-fade-in 0.3s ease;
}
@keyframes v0-rating-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.v0-rating-label {
  font-size: var(--text-xs);
  color: var(--brand-muted);
  white-space: nowrap;
}
.v0-rating-btns {
  display: inline-flex;
  gap: 4px;
}
.v0-rating-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1.5px solid var(--brand-border);
  background: transparent;
  cursor: pointer;
  color: var(--brand-muted);
  transition: all 0.15s ease;
}
.v0-rating-btn:hover {
  border-color: var(--brand-primary);
}
.v0-rating-btn svg {
  width: 16px;
  height: 16px;
}
.v0-rating-btn--poor.v0-rating-btn--selected {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
}
.v0-rating-btn--okay.v0-rating-btn--selected {
  border-color: #9ca3af;
  background: rgba(156, 163, 175, 0.08);
  color: #6b7280;
}
.v0-rating-btn--great.v0-rating-btn--selected {
  border-color: #16a34a;
  background: rgba(22, 163, 74, 0.08);
  color: #16a34a;
}
.v0-rating-thanks {
  font-size: var(--text-xs);
  color: var(--brand-primary);
  font-weight: 500;
  animation: v0-rating-fade-in 0.3s ease;
}
.v0-rating-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-xs);
  color: var(--brand-muted);
  margin-top: 12px;
}
.v0-rating-indicator svg {
  width: 14px;
  height: 14px;
}

/* --- Pipeline Stats Banner --- */
.v0-pipe-stats-banner {
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.06) 0%, rgba(202, 138, 4, 0.06) 100%);
  border: 1.5px solid rgba(22, 163, 74, 0.15);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.v0-pipe-stats-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(202, 138, 4, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #ca8a04;
}
.v0-pipe-stats-content {
  flex: 1;
  min-width: 0;
}
.v0-pipe-stats-title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: 6px;
}
.v0-pipe-stats-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: var(--text-sm);
  color: var(--brand-muted);
}
.v0-pipe-stats-number {
  font-weight: 700;
  color: var(--brand-fg, #1a1a1a);
}
.v0-pipe-stats-number--gold {
  color: #ca8a04;
}
.v0-pipe-stats-divider {
  width: 1px;
  height: 16px;
  background: var(--brand-border);
}

/* --- Pipeline Card Detail Fields --- */
.v0-pipe-detail-section {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--brand-border);
}
.v0-pipe-detail-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  color: var(--brand-muted);
  margin-bottom: 4px;
}
.v0-pipe-detail-row svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}
.v0-pipe-detail-value {
  font-weight: 500;
  color: var(--brand-fg, #1a1a1a);
}
.v0-pipe-detail-value--green {
  color: #16a34a;
  font-weight: 700;
}
.v0-pipe-detail-add {
  font-size: var(--text-xs);
  color: var(--brand-primary);
  cursor: pointer;
  background: none;
  border: none;
  padding: 2px 0;
  margin-top: 4px;
}
.v0-pipe-detail-add:hover {
  text-decoration: underline;
}
.v0-pipe-detail-edit {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.v0-pipe-detail-input {
  width: 100%;
  padding: 6px 8px;
  border: 1.5px solid var(--brand-border);
  border-radius: 6px;
  font-size: var(--text-xs);
  font-family: inherit;
}
.v0-pipe-detail-input:focus {
  outline: none;
  border-color: var(--brand-primary);
}
.v0-pipe-detail-input--error {
  border-color: #ef4444;
}
.v0-pipe-detail-error-tip {
  font-size: 10px;
  color: #ef4444;
  margin-top: 2px;
}
.v0-pipe-card--green {
  background: rgba(22, 163, 74, 0.03);
}

/* Mobile: dismiss modal as bottom sheet */
@media (max-width: 640px) {
  .v0-dismiss-backdrop {
    align-items: flex-end;
  }
  .v0-dismiss-modal {
    border-radius: 20px 20px 0 0;
    max-width: 100%;
    animation: v0-dismiss-slide-up-mobile 0.3s ease;
  }
  @keyframes v0-dismiss-slide-up-mobile {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }
}

/* === END METAPROMPT 1 === */

/* === METAPROMPT 2: Onboarding, Recommendations & Templates === */

/* --- Visually hidden but accessible (for chip inputs) --- */
.v0-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Onboarding Preference Chips --- */
.v0-pref-section {
  margin-bottom: 20px;
  border: none;
  padding: 0;
}
.v0-pref-label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 8px;
  color: var(--gray-900);
  padding: 0;
}
.v0-pref-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.v0-pref-chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  min-height: 44px;
  border-radius: 20px;
  border: 1.5px solid var(--gray-300, #d1d5db);
  background: var(--gray-50, #f9fafb);
  color: var(--gray-700, #374151);
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}
.v0-pref-chip:focus-within {
  outline: 2px solid var(--brand-primary, #15803d);
  outline-offset: 2px;
}
.v0-pref-chip:hover {
  border-color: var(--brand-green, #15803d);
  background: #f0fdf4;
}
.v0-pref-chip--selected {
  border-color: var(--brand-green, #15803d);
  background: #dcfce7;
  color: #14532d;
  font-weight: 500;
}
.v0-pref-skip {
  background: none;
  border: none;
  color: var(--brand-muted, #64748b);
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
  padding: 4px;
}
.v0-pref-skip:hover {
  color: var(--gray-900, #111827);
}

/* --- Draft Template Library --- */
.v0-draft-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
}
.v0-tmpl-save-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-400, #9ca3af);
  padding: 4px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s;
}
.v0-tmpl-save-btn:hover {
  color: var(--brand-green, #15803d);
}
.v0-tmpl-save-form {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
  padding: 6px 0;
}
.v0-tmpl-name-input {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid var(--gray-300, #d1d5db);
  border-radius: 6px;
  font-size: 0.85rem;
  font-family: inherit;
}
.v0-tmpl-save-confirm {
  padding: 6px 14px;
  border: none;
  border-radius: 6px;
  background: var(--brand-green, #15803d);
  color: white;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.v0-tmpl-save-confirm:hover {
  background: #166534;
}
.v0-tmpl-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100, #f3f4f6);
  gap: 8px;
}
.v0-tmpl-row:last-child {
  border-bottom: none;
}
.v0-tmpl-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.v0-tmpl-name {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gray-900, #111827);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.v0-tmpl-source {
  font-size: 0.78rem;
  color: var(--brand-muted, #64748b);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.v0-tmpl-use-btn {
  padding: 4px 12px;
  border: 1px solid var(--brand-green, #15803d);
  border-radius: 6px;
  background: none;
  color: var(--brand-green, #15803d);
  font-size: 0.82rem;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  flex-shrink: 0;
}
.v0-tmpl-use-btn:hover {
  background: #f0fdf4;
}

/* --- Program inline input --- */
.v0-program-input-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}
.v0-program-input-row[hidden] {
  display: none;
}

/* === END METAPROMPT 2 === */

/* ================================================================
   ONBOARDING TUTORIAL — first-time guided tour
   ================================================================ */

/* Tooltip card */
.tut-tooltip {
  position: fixed;
  z-index: 9999;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.05);
  padding: 24px;
  max-width: 380px;
  width: calc(100vw - 32px);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: auto;
}
.tut-tooltip--visible {
  opacity: 1;
  transform: translateY(0);
}
.tut-tooltip h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.25rem;
  color: var(--gray-900, #111827);
  margin: 0 0 8px;
  line-height: 1.3;
}
.tut-tooltip p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--brand-muted, #64748b);
  margin: 0 0 6px;
}
.tut-tooltip p:last-of-type { margin-bottom: 0; }

/* Spotlight ring around target element */
.tut-spotlight {
  position: fixed;
  z-index: 9997;
  border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(0,0,0,0.55);
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
}
.tut-spotlight--pulse {
  animation: tut-pulse 2s ease-in-out infinite;
}
@keyframes tut-pulse {
  0%, 100% { box-shadow: 0 0 0 9999px rgba(0,0,0,0.55), 0 0 0 0 rgba(21,128,61,0.3); }
  50%      { box-shadow: 0 0 0 9999px rgba(0,0,0,0.55), 0 0 0 6px rgba(21,128,61,0.15); }
}

/* Progress dots */
.tut-progress {
  display: flex;
  gap: 6px;
  margin-top: 16px;
  align-items: center;
}
.tut-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-border, #e5e7eb);
  transition: background 0.2s, transform 0.2s;
}
.tut-dot--active {
  background: var(--brand-primary, #15803d);
  transform: scale(1.25);
}
.tut-dot--done {
  background: var(--brand-primary, #15803d);
  opacity: 0.5;
}

/* Nav row: progress dots left, buttons right */
.tut-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}
.tut-nav-btns {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Buttons */
.tut-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: background 0.15s, transform 0.1s;
}
.tut-btn:active { transform: scale(0.97); }
.tut-btn--primary {
  background: var(--brand-primary, #15803d);
  color: #fff;
}
.tut-btn--primary:hover { background: #116c34; }
.tut-btn--ghost {
  background: none;
  color: var(--brand-muted, #64748b);
  padding: 8px 10px;
}
.tut-btn--ghost:hover { color: var(--gray-900, #111827); }

/* Skip link */
.tut-skip {
  font-size: 0.78rem;
  color: var(--brand-muted, #64748b);
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.tut-skip:hover { color: var(--gray-900, #111827); }

/* Welcome modal (step 0) — centered overlay */
.tut-welcome {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.tut-welcome--visible { opacity: 1; }
.tut-welcome-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px 36px 32px;
  max-width: 440px;
  width: calc(100vw - 32px);
  text-align: center;
  transform: scale(0.95) translateY(12px);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.tut-welcome--visible .tut-welcome-card {
  transform: scale(1) translateY(0);
}
.tut-welcome-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.tut-welcome-card h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.5rem;
  color: var(--gray-900, #111827);
  margin: 0 0 8px;
}
.tut-welcome-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--brand-muted, #64748b);
  margin: 0 0 24px;
}
.tut-welcome-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

/* Target element highlight — raised above backdrop */
.tut-target-highlight {
  position: relative;
  z-index: 9998 !important;
  pointer-events: auto !important;
}

/* Feature hint icons in tooltip */
.tut-feature-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 4px;
}
.tut-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--gray-700, #374151);
  line-height: 1.5;
}
.tut-feature-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.tut-feature-icon--green { background: #dcfce7; color: #15803d; }
.tut-feature-icon--amber { background: #fef3c7; color: #d97706; }
.tut-feature-icon--blue  { background: #dbeafe; color: #2563eb; }

/* Mobile adjustments */
@media (max-width: 640px) {
  .tut-tooltip {
    max-width: calc(100vw - 24px);
    padding: 20px;
  }
  .tut-welcome-card {
    padding: 32px 24px 24px;
  }
  .tut-tooltip h3 { font-size: 1.1rem; }
}
