/* weresume.cloud — Modern Design System (OKLCH Color Space) */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Newsreader:ital,opsz,wght@1,6..72,400;0,6..72,500&display=swap');

:root {
  --bg-page: oklch(0.985 0.004 285);
  --bg-card: #ffffff;
  --bg-card-subtle: oklch(0.99 0.003 285);
  --bg-dark: oklch(0.2 0.02 285);
  --bg-dark-card: oklch(0.24 0.018 285);
  --bg-dark-card-border: oklch(0.32 0.02 285);
  
  --text-main: oklch(0.2 0.02 285);
  --text-muted: oklch(0.46 0.015 285);
  --text-dim: oklch(0.55 0.015 285);
  --text-light: oklch(0.96 0.004 285);
  
  --primary: oklch(0.55 0.15 285);
  --primary-hover: oklch(0.47 0.15 285);
  --primary-subtle: oklch(0.95 0.035 285);
  --primary-tint: oklch(0.94 0.045 285);
  
  --success: oklch(0.55 0.13 150);
  --success-bg: oklch(0.95 0.04 150);
  --success-dark: oklch(0.4 0.11 150);
  
  --warning-bg: oklch(0.96 0.02 60);
  --warning-dark: oklch(0.48 0.1 60);
  
  --border-light: oklch(0.92 0.008 285);
  --border-card: oklch(0.91 0.008 285);
  --border-subtle: oklch(0.94 0.006 285);
  --border-dark: oklch(0.32 0.02 285);

  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: 'Newsreader', Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
  max-width: 100%;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

a:hover {
  color: var(--primary-hover);
}

img, svg {
  vertical-align: middle;
}

/* ==========================================================================
   Header & Navigation (Responsive Drawer)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(0.985 0.004 285 / 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
  height: clamp(60px, 7vw, 72px);
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  flex: none;
  min-height: 44px;
}

.brand-text {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-tld {
  font-weight: 500;
  color: var(--primary);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14.5px;
  font-weight: 500;
  color: oklch(0.42 0.015 285);
}

.site-nav a {
  color: inherit;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  padding: 6px 0;
}

.site-nav a:hover {
  color: var(--primary);
}

.nav-badge-new {
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--success-bg);
  color: var(--success-dark);
  letter-spacing: 0.04em;
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-actions .btn-signin {
  font-size: 14.5px;
  font-weight: 600;
  color: oklch(0.42 0.015 285);
  padding: 10px 10px;
  white-space: nowrap;
}

.header-actions .btn-signin:hover {
  color: var(--primary);
}

/* Mobile Menu Button */
.mobile-toggle-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid oklch(0.9 0.01 285);
  background: #ffffff;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: oklch(0.25 0.02 285);
  cursor: pointer;
  padding: 0;
}

/* Mobile Drawer Menu */
.mobile-menu-drawer {
  display: none;
  border-top: 1px solid var(--border-light);
  background: oklch(0.985 0.004 285);
  padding: 8px clamp(16px, 4vw, 32px) 24px;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
}

.mobile-menu-drawer.open {
  display: block;
  animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 4px;
  border-bottom: 1px solid oklch(0.93 0.008 285);
  color: oklch(0.22 0.02 285);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  min-height: 48px;
}

.mobile-nav-link .nav-arrow {
  color: oklch(0.6 0.02 285);
  font-size: 18px;
}

.mobile-drawer-cta {
  margin-top: 18px;
  display: block;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff !important;
  background: var(--primary);
  padding: 15px;
  border-radius: 999px;
}

/* ==========================================================================
   Buttons & Common Components
   ========================================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #ffffff !important;
  font-size: 14.5px;
  font-weight: 700;
  padding: 11px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  min-height: 44px;
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 14px oklch(0.55 0.15 285 / 0.25);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: oklch(0.25 0.02 285) !important;
  border: 1px solid oklch(0.88 0.01 285);
  font-size: 14.5px;
  font-weight: 700;
  padding: 11px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  min-height: 44px;
}

.btn-secondary:hover {
  border-color: oklch(0.7 0.02 285);
  background: oklch(0.98 0.005 285);
}

.btn-secondary:active {
  transform: scale(0.98);
}

/* Section Header Typography */
.section-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}

.section-title {
  margin: 12px 0 0;
  font-size: clamp(27px, 3.4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 800;
  text-wrap: balance;
}

.section-desc {
  margin: 14px 0 0;
  font-size: clamp(15px, 1.4vw, 16.5px);
  line-height: 1.6;
  color: var(--text-muted);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(30px, 6vw, 76px) clamp(20px, 4vw, 32px) clamp(48px, 7vw, 88px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: clamp(40px, 5vw, 64px);
  align-items: center;
}

.hero-badges-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--success-bg);
  color: var(--success-dark);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  min-height: 38px;
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
}

.pill-link-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--primary-subtle);
  color: oklch(0.45 0.15 285);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  min-height: 38px;
  transition: all 0.15s ease;
}

.pill-link-badge:hover {
  background: oklch(0.92 0.05 285);
  color: var(--primary-hover);
}

.hero-title {
  margin: 22px 0 0;
  font-size: clamp(36px, 5.2vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 800;
  text-wrap: balance;
}

.hero-title .serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--primary);
}

.hero-subtitle {
  margin: 22px 0 0;
  font-size: clamp(16px, 1.6vw, 18.5px);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 520px;
  text-wrap: pretty;
}

.hero-cta-group {
  margin-top: 30px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-cta-group .btn-primary,
.hero-cta-group .btn-secondary {
  flex: 1 1 200px;
  max-width: 280px;
  text-align: center;
  font-size: 16px;
  padding: 16px 24px;
}

.hero-stats {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, max-content));
  gap: clamp(14px, 4vw, 34px);
}

.stat-item .stat-num {
  font-size: clamp(19px, 2.2vw, 25px);
  font-weight: 800;
  letter-spacing: -0.8px;
  white-space: nowrap;
}

.stat-item .stat-label {
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--text-dim);
  font-weight: 500;
}

/* Hero Preview Card */
.hero-preview-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 14px 18px 26px;
}

.hero-card-container {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.hero-preview-bg {
  position: absolute;
  inset: 22px -14px -18px 26px;
  background: var(--primary-tint);
  border-radius: 26px;
}

.hero-preview-viewport {
  width: 100%;
  max-width: 420px;
  height: calc(min(100vw - 72px, 420px) * 1.41436);
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

.hero-preview-scaler {
  position: absolute;
  top: 0;
  left: 0;
  width: 794px;
  height: 1123px;
  transform-origin: 0 0;
  transform: scale(calc(min(100vw - 72px, 420px) / 794));
}

.hero-preview-card {
  position: relative;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid oklch(0.9 0.01 285);
  box-shadow: 0 24px 60px -30px oklch(0.35 0.06 285 / 0.45);
  padding: 26px 28px;
}

.badge-ats {
  position: absolute;
  top: -16px;
  right: -14px;
  background: #ffffff;
  border: 1px solid oklch(0.9 0.01 285);
  border-radius: 14px;
  padding: 11px 15px;
  box-shadow: 0 14px 34px -18px oklch(0.3 0.05 285 / 0.45);
}

.badge-pdf {
  position: absolute;
  bottom: -20px;
  left: -18px;
  background: #ffffff;
  border: 1px solid oklch(0.9 0.01 285);
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: 0 14px 34px -18px oklch(0.3 0.05 285 / 0.45);
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   Module 1: Three Documents, One Account (#modules)
   ========================================================================== */
.modules-section {
  border-top: 1px solid var(--border-light);
  background: #ffffff;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(44px, 7vw, 84px) clamp(20px, 4vw, 32px);
}

.modules-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
}

.module-card {
  border: 1px solid var(--border-card);
  border-radius: 16px;
  background: var(--bg-card-subtle);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--text-main);
  transition: all 0.2s ease;
  text-decoration: none;
}

.module-card:hover {
  border-color: oklch(0.7 0.08 285);
  box-shadow: 0 16px 34px -24px oklch(0.35 0.06 285 / 0.5);
  color: var(--text-main);
}

.module-preview-box {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: oklch(0.96 0.008 285);
  display: flex;
  justify-content: center;
  padding-top: 20px;
  line-height: 0;
}

.module-preview-sheet {
  width: 210px;
  border-radius: 4px 4px 0 0;
  overflow: hidden;
  box-shadow: 0 14px 30px -16px oklch(0.3 0.05 285 / 0.5);
  background: #ffffff;
}

.module-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  line-height: 1;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 5px 8px;
  border-radius: 6px;
  background: var(--success-bg);
  color: var(--success-dark);
}

.module-body {
  padding: 18px 20px 20px;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.module-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.module-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
  text-wrap: pretty;
}

.module-meta {
  margin-top: auto;
  padding-top: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: oklch(0.5 0.13 285);
}

/* ==========================================================================
   Module 2: Letters Section (#letters)
   ========================================================================== */
.letters-section {
  border-top: 1px solid var(--border-light);
}

.letters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.timeline-steps {
  margin-top: 26px;
  display: grid;
}

.timeline-step {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 16px;
}

.timeline-marker-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary-subtle);
  color: oklch(0.45 0.15 285);
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.timeline-num.pro {
  background: var(--primary);
  color: #ffffff;
}

.timeline-line {
  flex: 1;
  width: 2px;
  background: oklch(0.9 0.02 285);
  margin: 4px 0;
}

.timeline-content {
  padding-bottom: 20px;
}

.timeline-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 7px;
}

.timeline-title {
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.timeline-pro-badge {
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--primary);
  color: #ffffff;
}

.timeline-body {
  margin-top: 4px;
  font-size: 14.5px;
  line-height: 1.55;
  color: oklch(0.5 0.015 285);
}

/* Letters Visual Right Column */
.letters-visual-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 18px;
  align-items: start;
}

.letter-sheet-mockup {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid oklch(0.9 0.01 285);
  box-shadow: 0 24px 50px -30px oklch(0.35 0.06 285 / 0.5);
  background: #ffffff;
  padding: 24px 22px;
  font-size: 10px;
  line-height: 1.5;
  color: #1a1a1a;
  max-width: 280px;
  justify-self: center;
}

.letter-sheet-mockup .recipient {
  font-size: 9.5px;
  line-height: 1.4;
  color: #374151;
  white-space: pre-line;
}

.letter-sheet-mockup .subj-row {
  margin: 12px 0 8px;
  font-weight: 700;
  font-size: 11px;
  color: #111;
  border-bottom: 1.5px solid var(--primary);
  padding-bottom: 3px;
}

.professor-review-card {
  background: var(--bg-dark);
  color: var(--text-light);
  border-radius: 16px;
  padding: 22px;
}

.review-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.review-card-header .label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: oklch(0.75 0.09 285);
}

.review-card-header .pill {
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  background: oklch(0.3 0.04 150);
  color: oklch(0.85 0.1 150);
}

.score-transition {
  margin-top: 14px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.score-progress-bar {
  margin-top: 10px;
  height: 7px;
  border-radius: 999px;
  background: oklch(0.3 0.02 285);
  overflow: hidden;
}

.score-progress-fill {
  width: 88%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), oklch(0.62 0.13 150));
}

.review-feedback-list {
  margin-top: 16px;
  display: grid;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.5;
}

.review-feedback-item {
  display: flex;
  gap: 9px;
}

/* ==========================================================================
   Module 3: Marriage Biodata Section (#biodata)
   ========================================================================== */
.biodata-section {
  background: oklch(0.97 0.008 285);
  border-top: 1px solid var(--border-light);
}

.biodata-header-grid {
  padding: 0 clamp(20px, 4vw, 32px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 24px 64px;
  align-items: end;
}

.biodata-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.lang-chip {
  font-size: 13.5px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid oklch(0.9 0.01 285);
  color: oklch(0.32 0.02 285);
}

.biodata-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.biodata-stat-card {
  background: #ffffff;
  border: 1px solid oklch(0.91 0.008 285);
  border-radius: 12px;
  padding: 12px 14px;
}

.biodata-stat-val {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.6px;
}

.biodata-stat-lbl {
  font-size: 12px;
  color: oklch(0.52 0.015 285);
  font-weight: 500;
}

/* Horizontal Snap Rail */
.biodata-scroll-rail {
  margin-top: 30px;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px clamp(20px, 4vw, 32px) 14px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.biodata-scroll-rail::-webkit-scrollbar {
  height: 6px;
}

.biodata-scroll-rail::-webkit-scrollbar-thumb {
  background: oklch(0.85 0.01 285);
  border-radius: 999px;
}

.biodata-card {
  flex: none;
  width: 170px;
  scroll-snap-align: start;
}

.biodata-preview-frame {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid oklch(0.9 0.01 285);
  box-shadow: 0 14px 28px -20px oklch(0.3 0.05 285 / 0.5);
  height: 240px;
  background: #ffffff;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 14px 12px;
}

.biodata-card-name {
  margin-top: 9px;
  font-size: 14px;
  font-weight: 700;
}

.biodata-card-cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

/* ==========================================================================
   Template Gallery (#templates)
   ========================================================================== */
.templates-section {
  border-top: 1px solid var(--border-light);
  background: #ffffff;
}

.filter-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  max-width: 100%;
  padding-bottom: 4px;
}

.filter-btn {
  flex: none;
  font-size: 13.5px;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 999px;
  background: oklch(0.97 0.005 285);
  border: 1px solid oklch(0.91 0.008 285);
  color: oklch(0.42 0.015 285);
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 40px;
}

.filter-btn.active {
  background: var(--bg-dark);
  border-color: var(--bg-dark);
  color: #ffffff;
}

.templates-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

.template-card {
  border: 1px solid var(--border-card);
  border-radius: 14px;
  background: var(--bg-card-subtle);
  padding: 10px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: all 0.2s ease;
}

.template-card:hover {
  border-color: oklch(0.7 0.08 285);
  box-shadow: 0 16px 34px -24px oklch(0.35 0.06 285 / 0.5);
}

.template-preview-window {
  position: relative;
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid oklch(0.93 0.008 285);
  height: 220px;
  background: #ffffff;
}

.badge-tpl-free {
  position: absolute;
  top: 8px;
  right: 8px;
  line-height: 1;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--success-bg);
  color: var(--success-dark);
}

.badge-tpl-ats {
  position: absolute;
  bottom: 8px;
  right: 8px;
  line-height: 1;
  white-space: nowrap;
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  background: oklch(0.97 0.005 285);
  border: 1px solid oklch(0.92 0.008 285);
  color: oklch(0.42 0.015 285);
}

.template-info {
  padding: 12px 4px 4px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.template-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.template-role {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: oklch(0.5 0.13 285);
  margin-top: 3px;
}

.template-blurb {
  font-size: 12.5px;
  color: var(--text-dim);
  margin-top: 5px;
  line-height: 1.45;
  flex: 1;
}

.template-btn {
  margin-top: 10px;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary);
}

.template-btn:hover {
  color: var(--primary-hover);
}

/* ==========================================================================
   How It Works (#how)
   ========================================================================== */
.steps-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(14px, 2vw, 24px);
}

.step-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: clamp(20px, 2.4vw, 28px);
}

.step-num {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--primary-subtle);
  color: oklch(0.45 0.15 285);
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-title {
  margin-top: 18px;
  font-size: clamp(17px, 1.7vw, 20px);
  font-weight: 700;
  letter-spacing: -0.5px;
}

.step-body {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ==========================================================================
   ATS Score Section (#ats - Dark)
   ========================================================================== */
.ats-section {
  background: var(--bg-dark);
  color: var(--text-light);
}

.ats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.ats-checklist {
  margin-top: 24px;
  display: grid;
  gap: 10px;
  max-width: 480px;
}

.ats-check-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-dark-card);
  border: 1px solid oklch(0.31 0.02 285);
  border-radius: 10px;
  padding: 12px 15px;
}

.ats-draft-card {
  background: var(--bg-dark-card);
  border: 1px solid var(--border-dark);
  border-radius: 18px;
  padding: clamp(20px, 2.6vw, 32px);
}

/* ==========================================================================
   The Paid Part: AI Section (#ai)
   ========================================================================== */
.ai-section {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
}

.ai-compare-row {
  margin-top: 36px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr);
  align-items: stretch;
}

.ai-draft-box {
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: clamp(18px, 2.2vw, 26px);
  background: var(--bg-card-subtle);
}

.ai-arrow-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 -10px;
  position: relative;
  z-index: 2;
}

.ai-arrow-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #fff;
}

.ai-arrow-circle .arrow-mobile {
  display: none;
}

.ai-arrow-circle .arrow-desktop {
  display: inline;
}

@media (max-width: 860px) {
  .ai-arrow-circle .arrow-mobile {
    display: inline;
  }
  .ai-arrow-circle .arrow-desktop {
    display: none;
  }
}

.ai-enhanced-box {
  border: 1px solid oklch(0.78 0.09 285);
  border-radius: 14px;
  padding: clamp(18px, 2.2vw, 26px);
  background: oklch(0.975 0.018 285);
}

.ai-features-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 20px;
}

.ai-feat-col {
  border-top: 2px solid oklch(0.9 0.03 285);
  padding-top: 14px;
}

/* ==========================================================================
   Comparison Section (Responsive Desktop Table + Mobile Cards)
   ========================================================================== */
.comparison-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(44px, 7vw, 84px) clamp(20px, 4vw, 32px);
}

.compare-table-wrap {
  margin-top: 32px;
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: 16px;
  overflow: hidden;
}

.compare-header-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  background: oklch(0.98 0.004 285);
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: oklch(0.42 0.015 285);
}

.compare-header-col-brand {
  padding: 18px 22px;
  background: var(--primary);
  color: #ffffff;
  font-size: 14px;
}

.compare-data-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  border-bottom: 1px solid oklch(0.95 0.006 285);
  font-size: 14.5px;
}

.compare-cell-brand {
  padding: 17px 22px;
  font-weight: 700;
  color: oklch(0.42 0.12 150);
  background: oklch(0.985 0.012 285);
}

/* Mobile Comparison Cards */
.compare-cards-mobile {
  display: none;
  margin-top: 22px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 10px;
}

.compare-card-item {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: 13px;
  padding: 14px 15px;
}

.compare-card-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
}

.compare-card-us {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.compare-card-us-tag {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 5px;
  background: var(--primary);
  color: #ffffff;
}

.compare-card-us-val {
  font-size: 15px;
  font-weight: 800;
  color: oklch(0.42 0.12 150);
}

.compare-card-others {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid oklch(0.95 0.006 285);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 12px;
  color: var(--text-dim);
}

/* ==========================================================================
   Pricing Section (#pricing)
   ========================================================================== */
.pricing-section {
  background: oklch(0.97 0.008 285);
  border-top: 1px solid var(--border-light);
}

.pricing-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(14px, 2.4vw, 24px);
  align-items: start;
}

.pricing-card-free {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: 18px;
  padding: clamp(22px, 2.6vw, 32px);
}

.pricing-card-pro {
  background: var(--bg-dark);
  color: #ffffff;
  border-radius: 18px;
  padding: clamp(22px, 2.6vw, 32px);
  box-shadow: 0 30px 60px -34px oklch(0.35 0.08 285 / 0.55);
}

/* ==========================================================================
   FAQ Section (#faq)
   ========================================================================== */
.faq-section {
  background: #ffffff;
  border-top: 1px solid var(--border-light);
}

.faq-list {
  margin-top: 30px;
  border-top: 1px solid var(--border-light);
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
  padding: clamp(16px, 2vw, 22px) 4px;
  cursor: pointer;
}

.faq-trigger {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  user-select: none;
}

.faq-q {
  flex: 1;
  font-size: clamp(15.5px, 1.6vw, 18px);
  font-weight: 700;
  letter-spacing: -0.4px;
  line-height: 1.4;
}

.faq-icon {
  font-size: 20px;
  color: oklch(0.6 0.02 285);
  font-weight: 500;
  line-height: 1.2;
}

.faq-body {
  display: none;
  margin-top: 10px;
  max-width: 760px;
  font-size: 15px;
  line-height: 1.65;
  color: oklch(0.42 0.015 285);
  text-wrap: pretty;
}

.faq-item.active .faq-body {
  display: block;
  animation: fadeIn 0.2s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ==========================================================================
   Final CTA Banner
   ========================================================================== */
.final-cta-container {
  background: var(--primary);
  border-radius: clamp(20px, 2.4vw, 24px);
  padding: clamp(28px, 5vw, 66px) clamp(22px, 4.6vw, 56px);
  color: #ffffff;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-light);
  background: oklch(0.985 0.004 285);
}

.footer-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 48px) clamp(20px, 4vw, 32px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: 28px 32px;
}

.footer-brand-col {
  max-width: 280px;
}

.footer-links-col {
  display: grid;
  gap: 4px;
  font-size: 13.5px;
  color: oklch(0.48 0.015 285);
  align-content: start;
}

.footer-links-col a {
  color: inherit;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.footer-links-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid oklch(0.93 0.008 285);
  padding: 20px clamp(20px, 4vw, 32px);
  text-align: center;
  font-size: 12.5px;
  color: var(--text-dim);
}

.footer-column-title {
  font-weight: 800;
  color: oklch(0.25 0.02 285);
  margin-bottom: 8px;
  font-size: 13.5px;
}

.footer-links {
  display: grid;
  gap: 4px;
}

/* ==========================================================================
   Legal Documents Layout (Terms, Privacy, Refund, Contact)
   ========================================================================== */
.legal-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.legal-header {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 32px;
  margin-bottom: 40px;
}

.legal-header h1 {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin: 8px 0 12px;
}

.legal-meta {
  font-size: 14px;
  color: var(--text-dim);
}

.legal-body {
  font-size: 16px;
  line-height: 1.75;
  color: oklch(0.3 0.015 285);
}

.legal-body h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: var(--text-main);
  margin: 44px 0 16px;
}

.legal-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 28px 0 12px;
}

.legal-body p {
  margin: 0 0 18px;
}

.legal-body ul, .legal-body ol {
  margin: 0 0 22px;
  padding-left: 24px;
}

.legal-body li {
  margin-bottom: 8px;
}

.callout-box {
  background: var(--primary-subtle);
  border-left: 4px solid var(--primary);
  padding: 18px 22px;
  border-radius: 0 12px 12px 0;
  margin: 26px 0;
  font-size: 15px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .site-nav {
    display: none;
  }
  .header-actions .btn-primary {
    display: none;
  }
  .mobile-toggle-btn {
    display: flex;
  }
  .templates-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
  #top,
  .hero-section {
    grid-template-columns: 1fr !important;
  }
  #letters > div {
    grid-template-columns: 1fr !important;
  }
  #biodata > div > div:first-child {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 860px) {
  .ai-compare-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .ai-arrow-divider {
    margin: -12px 0;
  }
  .compare-table-wrap {
    display: none;
  }
  .compare-cards-mobile {
    display: grid;
  }
}

@media (max-width: 640px) {
  .header-container {
    gap: 8px;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    width: 100%;
  }
  .brand-logo {
    gap: 8px;
    flex-shrink: 0;
  }
  .brand-text {
    font-size: 17px;
  }
  .header-actions {
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
  }
  .header-actions .btn-signin {
    padding: 8px 6px;
    font-size: 13.5px;
  }
  .hero-section,
  #top {
    padding: 24px 16px 36px !important;
    gap: 28px !important;
    grid-template-columns: 1fr !important;
  }
  .hero-card-container {
    max-width: 100%;
  }
  .hero-preview-bg {
    inset: 14px 2px -14px 10px;
  }
  .badge-ats {
    top: -10px;
    right: 4px;
    padding: 7px 11px;
  }
  .badge-pdf {
    bottom: -12px;
    left: 4px;
    padding: 7px 11px;
    font-size: 11px;
  }
  .hero-stats,
  #top .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
  }
  .hero-cta-group a,
  #top .hero-cta-group a {
    flex: 1 1 100% !important;
    max-width: 100% !important;
  }
  #modules > div {
    padding: 36px 16px !important;
  }
  #modules > div > div:last-child {
    grid-template-columns: 1fr !important;
  }
  #letters > div {
    padding: 36px 16px !important;
    gap: 32px !important;
    grid-template-columns: 1fr !important;
  }
  #letters > div > div:last-child {
    grid-template-columns: 1fr !important;
  }
  #biodata > div {
    padding: 36px 0 !important;
  }
  #biodata > div > div:first-child {
    padding: 0 16px !important;
    gap: 24px !important;
    grid-template-columns: 1fr !important;
  }
  #biodata > div > div:last-child {
    padding: 4px 16px 12px !important;
  }
  .templates-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .template-preview-window {
    height: 160px;
  }
  .template-card {
    padding: 8px;
  }
  .biodata-card {
    width: 150px;
  }
  .biodata-preview-frame {
    height: 210px;
  }
}
