/* Auth & Onboarding Styles */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--matcha-50);
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
}

/* Industry subpages */
.industry-page {
  background: var(--bg-primary);
  color: var(--text-dark);
}

.industry-main {
  padding-top: 96px;
}

.industry-nav-link {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
}

.industry-hero {
  padding: var(--space-4xl) 0 var(--space-3xl);
  overflow: hidden;
}

.industry-hero-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.industry-kicker {
  display: inline-flex;
  margin-bottom: var(--space-md);
  color: var(--accent-hover);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.industry-hero h1 {
  font-size: clamp(2.6rem, 5.4vw, 5.4rem);
  line-height: 1.02;
  margin-bottom: var(--space-lg);
}

.industry-hero p {
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1.75;
}

.industry-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: var(--space-lg);
}

.industry-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--space-lg);
}

.industry-proof-row span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(107,125,83,0.2);
  background: rgba(197,212,160,0.28);
  color: var(--accent-hover);
  border-radius: var(--radius-full);
  padding: 7px 12px;
  font-size: 0.84rem;
  font-weight: 700;
}

.industry-hero-image {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: 0 26px 72px rgba(0,0,0,0.14);
  position: relative;
}

.industry-hero-image img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.industry-hero-image::after {
  content: none;
}

.industry-section {
  padding: var(--space-3xl) 0;
}

.industry-section.is-muted {
  background: var(--bg-cream);
}

.industry-section-header {
  max-width: 820px;
  margin-bottom: var(--space-xl);
}

.industry-section-header h2 {
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  line-height: 1.08;
  margin-bottom: var(--space-md);
}

.industry-section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.industry-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
}

.industry-card-grid.is-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.industry-card-grid.is-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.industry-card {
  background: #FFFFFF;
  border: 1px solid rgba(34,38,43,0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: 0 10px 32px rgba(0,0,0,0.04);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.industry-card:hover {
  transform: translateY(-3px);
  border-color: rgba(107,125,83,0.22);
  box-shadow: 0 16px 38px rgba(0,0,0,0.07);
}

.industry-card h3 {
  font-size: 1.08rem;
  margin-bottom: var(--space-sm);
}

.industry-card p {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.65;
}

.industry-metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.industry-metric {
  border-top: 1px solid rgba(34,38,43,0.12);
  padding-top: var(--space-md);
}

.industry-metric strong {
  display: block;
  color: var(--text-dark);
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.industry-metric span {
  color: var(--text-muted);
  font-weight: 700;
  line-height: 1.45;
}

.industry-split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: var(--space-3xl);
  align-items: center;
}

.industry-split-media {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: var(--bg-cream);
}

.industry-split-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.industry-content-map {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-lg);
  align-items: stretch;
}

.industry-map-panel {
  background: #22262B;
  color: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
}

.industry-map-panel h2,
.industry-map-panel p {
  color: inherit;
}

.industry-map-panel p {
  opacity: 0.78;
  line-height: 1.7;
}

.industry-idea-list {
  display: grid;
  gap: var(--space-sm);
}

.industry-idea {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-md);
  align-items: start;
  background: #FFFFFF;
  border: 1px solid rgba(34,38,43,0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
}

.industry-idea span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--text-dark);
  font-weight: 800;
}

.industry-idea h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.industry-idea p {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.55;
  margin: 0;
}

.industry-mini-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--space-lg);
  color: var(--accent-hover);
  font-weight: 800;
}

.industry-mini-note::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.industry-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-sm);
  list-style: none;
  margin: 0;
  padding: 0;
}

.industry-list li {
  background: #FFFFFF;
  border: 1px solid rgba(34,38,43,0.08);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  color: var(--text-dark);
  font-weight: 600;
  position: relative;
  padding-left: 40px;
}

.industry-list li::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 1.15em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.industry-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
}

.industry-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-light);
  color: #22262B;
  font-weight: 800;
  margin-bottom: var(--space-md);
}

.industry-reassurance {
  background: var(--accent-light);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  max-width: 920px;
}

.industry-reassurance h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: var(--space-md);
}

.industry-reassurance p {
  color: var(--text-dark);
  font-size: 1.05rem;
  line-height: 1.75;
}

.industry-cta {
  background: #22262B;
  color: #FFFFFF;
  border-radius: var(--radius-2xl);
  padding: var(--space-3xl);
  text-align: center;
}

.industry-cta h2 {
  color: #FFFFFF;
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: var(--space-md);
}

.industry-cta p {
  color: rgba(255,255,255,0.78);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto var(--space-xl);
}

@media (max-width: 900px) {
  .industry-hero-grid,
  .industry-card-grid,
  .industry-card-grid.is-four,
  .industry-card-grid.is-two,
  .industry-steps,
  .industry-metric-row,
  .industry-split,
  .industry-content-map {
    grid-template-columns: 1fr;
  }

  .industry-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .industry-main {
    padding-top: 84px;
  }

  .industry-nav-link {
    font-size: 0.82rem;
  }

  .industry-hero,
  .industry-section {
    padding: var(--space-xl) 0;
  }

  .industry-hero h1 {
    font-size: clamp(2.05rem, 12vw, 3.15rem);
  }

  .industry-hero p {
    font-size: 1rem;
    line-height: 1.65;
  }

  .industry-hero-actions .btn-primary,
  .industry-hero-actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .industry-cta,
  .industry-reassurance {
    padding: var(--space-xl);
  }
}

.auth-page::before {
  content: '';
  position: absolute;
  top: -20vh;
  left: -20vw;
  width: 60vw;
  height: 60vh;
  background: radial-gradient(circle, var(--matcha-200) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0.4;
  pointer-events: none;
}

.auth-page::after {
  content: '';
  position: absolute;
  bottom: -20vh;
  right: -20vw;
  width: 60vw;
  height: 60vh;
  background: radial-gradient(circle, var(--matcha-100) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0.4;
  pointer-events: none;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl) var(--space-xl);
  box-shadow: 0 24px 48px rgba(0,0,0,0.06);
  position: relative;
  z-index: 10;
  border: 1px solid rgba(0,0,0,0.05);
}

.auth-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.auth-header .nav-logo {
  justify-content: center;
  margin-bottom: var(--space-lg);
  font-size: 1.75rem;
}

.auth-header h1 {
  font-size: 2rem;
  margin-bottom: var(--space-xs);
}

.auth-form .form-group {
  margin-bottom: var(--space-md);
}

.auth-form label {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0,0,0,0.1);
  background: var(--bg-cream);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.auth-form input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-primary);
  box-shadow: 0 0 0 3px rgba(139, 158, 107, 0.2);
}

.auth-form .btn-primary {
  width: 100%;
  justify-content: center;
  margin-top: var(--space-md);
}

.auth-separator {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 24px 0;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.auth-separator::before,
.auth-separator::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.auth-separator::before {
  margin-right: 12px;
}

.auth-separator::after {
  margin-left: 12px;
}

.auth-footer {
  text-align: center;
  margin-top: var(--space-xl);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--accent);
  font-weight: 500;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* Onboarding Specifics */
.onboarding-card {
  max-width: 680px;
}
.progress-bar {
  display: flex;
  gap: 8px;
  margin-bottom: var(--space-2xl);
}
.progress-step {
  flex: 1;
  height: 6px;
  background: rgba(0,0,0,0.06);
  border-radius: 3px;
  overflow: hidden;
}
.progress-step.active .progress-fill {
  width: 100%;
  height: 100%;
  background: var(--accent);
}
.progress-step.completed .progress-fill {
  width: 100%;
  height: 100%;
  background: var(--accent);
  opacity: 0.5;
}

.onboarding-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.option-card {
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.option-card:hover {
  border-color: var(--accent);
  background: var(--matcha-50);
}

.option-card.selected {
  border-color: var(--accent);
  background: var(--matcha-50);
  box-shadow: 0 0 0 2px var(--accent);
}

/* Legal Pages */
.legal-page {
  padding-top: 160px;
  padding-bottom: 80px;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  padding: var(--space-3xl);
  border-radius: var(--radius-xl);
  box-shadow: 0 12px 32px rgba(0,0,0,0.03);
}

.legal-content h1 {
  font-size: 2.5rem;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.legal-content h2 {
  font-size: 1.5rem;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.legal-content h3 {
  font-size: 1.25rem;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.legal-content p {
  margin-bottom: var(--space-md);
}

.legal-content ul {
  margin-bottom: var(--space-md);
  padding-left: var(--space-xl);
  list-style-type: disc;
}

.legal-content li {
  margin-bottom: var(--space-xs);
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .auth-page {
    align-items: flex-start;
    padding: var(--space-lg);
  }

  .auth-card {
    margin-top: 88px;
    padding: var(--space-2xl) var(--space-lg);
  }

  .onboarding-options {
    grid-template-columns: 1fr;
  }

  .legal-page {
    padding-top: 120px;
    padding-bottom: 48px;
  }

  .legal-content {
    padding: var(--space-xl) var(--space-lg);
  }

  .legal-content h1 {
    font-size: 1.9rem;
  }

  .legal-content h2 {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .auth-page {
    padding: var(--space-md);
  }

  .auth-card {
    margin-top: 80px;
    padding: var(--space-xl) var(--space-md);
    border-radius: var(--radius-lg);
  }

  .auth-header h1 {
    font-size: 1.65rem;
  }

  .auth-form input[type="text"],
  .auth-form input[type="email"],
  .auth-form input[type="password"] {
    padding: 13px 14px;
    font-size: 16px;
  }

  .legal-content {
    padding: var(--space-lg) var(--space-md);
  }

  .legal-content ul {
    padding-left: var(--space-lg);
  }
}
