/* ============================================
   ProdSys.com — Shared Stylesheet
   Modern SaaS aesthetic, responsive, no frameworks
   ============================================ */

:root {
  /* Brand colors */
  --brand-blue: #185FA5;
  --brand-blue-dark: #0C447C;
  --brand-blue-light: #E6F1FB;
  --brand-blue-muted: #B5D4F4;

  /* Industry palette */
  --color-green: #1D9E75;
  --color-green-dark: #085041;
  --color-green-light: #E1F5EE;

  --color-purple: #3C3489;
  --color-purple-light: #EEEDFE;

  --color-amber: #BA7517;
  --color-amber-dark: #633806;
  --color-amber-light: #FAEEDA;

  --color-rose: #72243E;
  --color-rose-light: #FBEAF0;

  --color-brown: #712B13;
  --color-brown-light: #FAECE7;

  /* Neutrals */
  --color-bg: #FFFFFF;
  --color-bg-soft: #F9FAFB;
  --color-bg-tertiary: #F3F4F6;
  --color-border: #E5E7EB;
  --color-border-strong: #D1D5DB;
  --color-text: #111827;
  --color-text-secondary: #4B5563;
  --color-text-tertiary: #9CA3AF;

  /* Status colors */
  --color-success: #1D9E75;
  --color-success-bg: #E1F5EE;
  --color-success-text: #085041;
  --color-warning: #BA7517;
  --color-warning-bg: #FAEEDA;
  --color-warning-text: #633806;
  --color-danger: #791F1F;
  --color-danger-bg: #FCEBEB;

  /* Spacing & sizing */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --container-max: 1200px;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Monaco, "Cascadia Code", monospace;
}

/* ============================================
   Reset & base
   ============================================ */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 500;
  line-height: 1.2;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================================
   Layout utilities
   ============================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-tight {
  padding: 48px 0;
}

.section-bg-soft {
  background: var(--color-bg-soft);
}

.section-bg-tertiary {
  background: var(--color-bg-tertiary);
}

.divider {
  border-top: 1px solid var(--color-border);
}

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

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
  color: var(--color-text);
}

.nav-logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--brand-blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
}

.nav-links {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: var(--color-text-secondary);
}

.nav-links a {
  transition: color 0.15s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--color-text);
  font-weight: 500;
}

/* Dropdown menu under nav items */
.nav-links li {
  position: relative;
}

.nav-links .nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: -16px;
  margin-top: 8px;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 8px;
  min-width: 240px;
  flex-direction: column;
  gap: 0;
  z-index: 100;
}

.nav-links li:hover > .nav-dropdown,
.nav-links li:focus-within > .nav-dropdown {
  display: flex;
}

/* Invisible bridge so the dropdown doesn't close when moving from trigger to menu */
.nav-links li:has(> .nav-dropdown)::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: 6px;
  color: var(--color-text);
  font-weight: 500;
  font-size: 14px;
  transition: background-color 0.12s, color 0.12s;
  white-space: nowrap;
}

.nav-dropdown a:hover {
  background: var(--color-bg-soft);
  color: var(--brand-blue);
  font-weight: 500;
}

.nav-dropdown a .nav-dropdown-desc {
  display: block;
  font-size: 12px;
  color: var(--color-text-secondary);
  font-weight: 400;
  margin-top: 2px;
}

.nav-dropdown a:hover .nav-dropdown-desc {
  color: var(--color-text-secondary);
}

/* Visual cue for items with dropdown */
.nav-links a.has-dropdown::after {
  content: '▾';
  margin-left: 4px;
  font-size: 10px;
  opacity: 0.6;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
}

.nav-actions a:not(.btn) {
  color: var(--color-text-secondary);
  transition: color 0.15s;
}

.nav-actions a:not(.btn):hover {
  color: var(--color-text);
}

/* Language switcher dropdown */
.lang-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.lang-switcher-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 0.12s, color 0.12s;
  user-select: none;
}

.lang-switcher-trigger:hover {
  background: var(--color-bg-soft);
  color: var(--color-text);
}

.lang-switcher-trigger::after {
  content: '▾';
  font-size: 10px;
  opacity: 0.6;
}

.lang-switcher-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 6px;
  min-width: 180px;
  flex-direction: column;
  gap: 0;
  z-index: 100;
}

.lang-switcher:hover > .lang-switcher-menu,
.lang-switcher:focus-within > .lang-switcher-menu {
  display: flex;
}

/* Hover-bridge */
.lang-switcher::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 10px;
}

.lang-switcher-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--color-text);
  font-weight: 500;
  font-size: 14px;
  transition: background-color 0.12s, color 0.12s;
  white-space: nowrap;
}

.lang-switcher-menu a:hover {
  background: var(--color-bg-soft);
  color: var(--brand-blue);
}

.lang-switcher-menu a.active {
  color: var(--brand-blue);
  font-weight: 600;
}

.lang-switcher-menu a.active::after {
  content: '✓';
  margin-left: auto;
  font-size: 12px;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--color-text);
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand-blue);
  color: white;
}

.btn-primary:hover {
  background: var(--brand-blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(24, 95, 165, 0.2);
}

.btn-secondary {
  background: white;
  color: var(--color-text);
  border-color: var(--color-border-strong);
}

.btn-secondary:hover {
  background: var(--color-bg-soft);
  border-color: var(--color-text-secondary);
}

.btn-on-dark {
  background: white;
  color: var(--brand-blue);
}

.btn-on-dark:hover {
  background: var(--color-bg-soft);
}

.btn-ghost-on-dark {
  background: transparent;
  color: white;
  border-color: var(--brand-blue-muted);
}

.btn-ghost-on-dark:hover {
  background: rgba(255,255,255,0.1);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 13px;
}

.btn-lg {
  padding: 14px 26px;
  font-size: 15px;
}

/* ============================================
   Eyebrow & section headings
   ============================================ */
.eyebrow {
  display: inline-block;
  background: var(--brand-blue-light);
  color: var(--brand-blue-dark);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-header.left {
  text-align: left;
  margin: 0 0 40px;
}

.section-title {
  font-size: 36px;
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  padding: 80px 0 64px;
  text-align: center;
}

.hero-title {
  font-size: 48px;
  font-weight: 500;
  line-height: 1.1;
  max-width: 720px;
  margin: 0 auto 18px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--color-text-secondary);
  max-width: 580px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  text-align: left;
}

.hero-split .hero-title {
  margin-left: 0;
  margin-right: 0;
  font-size: 40px;
}

.hero-split .hero-subtitle {
  margin-left: 0;
  margin-right: 0;
}

.hero-split .hero-actions {
  justify-content: flex-start;
}

/* ============================================
   Trust bar
   ============================================ */
.trust-bar {
  background: var(--color-bg-tertiary);
  padding: 28px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.trust-bar-label {
  text-align: center;
  font-size: 11px;
  color: var(--color-text-tertiary);
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.trust-bar-logos {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.trust-logo {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-tertiary);
  letter-spacing: 0.5px;
}

/* ============================================
   Stats bar
   ============================================ */
.stats-bar-section {
  padding: 32px 0;
  background: var(--color-bg-tertiary);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 32px 0;
  background: var(--color-bg-tertiary);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 32px;
  font-weight: 500;
  color: var(--brand-blue);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  color: var(--color-text-secondary);
}

/* ============================================
   Card grids
   ============================================ */
.cards-grid {
  display: grid;
  gap: 16px;
}

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

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.card-hoverable:hover {
  border-color: var(--color-border-strong);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 20px;
}

.card-icon-blue { background: var(--brand-blue-light); color: var(--brand-blue-dark); }
.card-icon-green { background: var(--color-green-light); color: var(--color-green-dark); }
.card-icon-purple { background: var(--color-purple-light); color: var(--color-purple); }
.card-icon-amber { background: var(--color-amber-light); color: var(--color-amber-dark); }
.card-icon-rose { background: var(--color-rose-light); color: var(--color-rose); }
.card-icon-brown { background: var(--color-brown-light); color: var(--color-brown); }

.card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.card-text {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ============================================
   Testimonial
   ============================================ */
.testimonial {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.testimonial-mark {
  font-family: var(--font-serif);
  font-size: 36px;
  color: var(--brand-blue);
  line-height: 1;
  margin-bottom: 12px;
}

.testimonial-quote {
  font-family: var(--font-serif);
  font-size: 22px;
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-blue-light);
  color: var(--brand-blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
}

.testimonial-name {
  text-align: left;
}

.testimonial-name-line1 {
  font-size: 14px;
  font-weight: 600;
}

.testimonial-name-line2 {
  font-size: 13px;
  color: var(--color-text-secondary);
}

/* ============================================
   CTA section
   ============================================ */
.cta-section {
  background: var(--brand-blue);
  padding: 72px 24px;
  text-align: center;
  color: white;
}

.cta-title {
  font-size: 32px;
  font-weight: 500;
  margin-bottom: 12px;
}

.cta-subtitle {
  font-size: 15px;
  color: var(--brand-blue-muted);
  margin-bottom: 28px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

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

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--color-text);
  color: white;
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--brand-blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
}

.footer-tagline {
  font-size: 13px;
  color: #9CA3AF;
  line-height: 1.6;
  margin-bottom: 16px;
  max-width: 280px;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #D1D5DB;
  margin-bottom: 14px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 14px;
  color: #9CA3AF;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #9CA3AF;
}

.footer-locale {
  display: flex;
  gap: 16px;
}

/* ============================================
   Form elements
   ============================================ */
.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: inherit;
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color 0.15s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(24, 95, 165, 0.1);
}

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

/* ============================================
   Pricing cards
   ============================================ */
.pricing-toggle {
  display: inline-flex;
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-md);
  padding: 4px;
  gap: 4px;
  margin: 0 auto 32px;
}

.pricing-toggle-btn {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--color-text-secondary);
  background: transparent;
  font-weight: 500;
}

.pricing-toggle-btn.active {
  background: white;
  color: var(--color-text);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.pricing-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card.featured {
  border: 2px solid var(--brand-blue);
  box-shadow: 0 8px 24px rgba(24, 95, 165, 0.1);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-blue);
  color: white;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 12px;
}

.pricing-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 36px;
  font-weight: 500;
  margin-bottom: 4px;
}

.pricing-price .unit {
  font-size: 14px;
  color: var(--color-text-secondary);
  font-weight: 400;
}

.pricing-meta {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
}

.pricing-description {
  background: var(--color-bg-soft);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  margin-bottom: 18px;
}

.pricing-card.featured .pricing-description {
  background: var(--brand-blue-light);
  color: var(--brand-blue-dark);
}

.pricing-features {
  flex: 1;
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pricing-features li {
  font-size: 14px;
  color: var(--color-text-secondary);
  padding-left: 24px;
  position: relative;
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-green);
  font-weight: bold;
}

/* ============================================
   Tags / badges
   ============================================ */
.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.badge-success { background: var(--color-success-bg); color: var(--color-success-text); }
.badge-warning { background: var(--color-warning-bg); color: var(--color-warning-text); }
.badge-danger { background: var(--color-danger-bg); color: var(--color-danger); }
.badge-info { background: var(--brand-blue-light); color: var(--brand-blue-dark); }
.badge-planned { background: #F4F4F2; color: #6B7280; border: 1px dashed #C8C8C5; }

.lang-tag {
  display: inline-block;
  padding: 6px 14px;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  font-size: 13px;
  color: var(--color-text-secondary);
  transition: all 0.15s;
}

.lang-tag:hover {
  background: var(--brand-blue);
  color: white;
  border-color: var(--brand-blue);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .cards-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .hero-title { font-size: 40px; }
  .section-title { font-size: 30px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-toggle.open + .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: white;
    padding: 16px 24px;
    border-bottom: 1px solid var(--color-border);
    gap: 14px;
  }

  /* On mobile: show dropdown items as nested list, not hover-popup */
  .nav-links .nav-dropdown {
    display: flex;
    position: static;
    margin-top: 4px;
    margin-left: 16px;
    padding: 4px 0;
    border: none;
    box-shadow: none;
    min-width: auto;
    background: transparent;
  }
  .nav-links .nav-dropdown a {
    padding: 6px 0;
    font-size: 13px;
  }
  .nav-links a.has-dropdown::after { display: none; }
  .nav-links .nav-dropdown a .nav-dropdown-desc { display: none; }

  .nav-actions .nav-login { display: none; }

  .hero { padding: 56px 0 40px; }
  .hero-title { font-size: 32px; }
  .hero-subtitle { font-size: 15px; }
  .hero-split {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .hero-split .hero-actions { justify-content: center; }

  .section { padding: 56px 0; }
  .section-title { font-size: 26px; }

  .cards-grid-2,
  .cards-grid-3,
  .cards-grid-4 { grid-template-columns: 1fr; }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .stat-number { font-size: 26px; }

  .cta-title { font-size: 26px; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

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

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-title { font-size: 28px; }
  .stats-bar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================
   Cookie Consent Banner & Modal
   ============================================ */
#cookie-consent-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 1080px;
  margin: 0 auto;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  font-family: var(--font-sans);
}

#cookie-consent-banner.cc-visible {
  opacity: 1;
  transform: translateY(0);
}

.cc-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 24px;
  flex-wrap: wrap;
}

.cc-content { flex: 1 1 360px; min-width: 0; }
.cc-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--color-text);
}
.cc-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: 0;
}
.cc-link {
  color: var(--brand-blue);
  text-decoration: underline;
}
.cc-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.cc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-sans);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.cc-btn-primary {
  background: var(--brand-blue);
  color: white;
}
.cc-btn-primary:hover {
  background: var(--brand-blue-dark);
}
.cc-btn-secondary {
  background: white;
  color: var(--color-text);
  border-color: var(--color-border-strong);
}
.cc-btn-secondary:hover {
  background: var(--color-bg-soft);
  border-color: var(--color-text-secondary);
}

/* Modal */
#cookie-consent-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
#cookie-consent-modal.cc-visible {
  opacity: 1;
  visibility: visible;
}
.cc-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
}
.cc-modal-content {
  position: relative;
  background: white;
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
  font-family: var(--font-sans);
}
.cc-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text-tertiary);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.cc-modal-close:hover {
  background: var(--color-bg-soft);
  color: var(--color-text);
}
.cc-modal-title {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 8px;
}
.cc-modal-desc {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin: 0 0 24px;
}

.cc-category {
  padding: 16px 0;
  border-top: 1px solid var(--color-border);
}
.cc-category:first-of-type { border-top: none; padding-top: 0; }
.cc-category-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.cc-category-name {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--color-text);
}
.cc-category-detail {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* Toggle switch */
.cc-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}
.cc-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cc-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #cbd5e1;
  border-radius: 24px;
  transition: 0.2s;
}
.cc-toggle-slider::before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.2s;
}
.cc-toggle input:checked + .cc-toggle-slider {
  background: var(--brand-blue);
}
.cc-toggle input:checked + .cc-toggle-slider::before {
  transform: translateX(20px);
}
.cc-toggle-disabled .cc-toggle-slider {
  opacity: 0.6;
  cursor: not-allowed;
}
.cc-toggle-disabled input:checked + .cc-toggle-slider {
  background: var(--color-success);
}

.cc-modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  #cookie-consent-banner { bottom: 0; left: 0; right: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; border-bottom: none; }
  .cc-inner { padding: 16px 20px; }
  .cc-actions { width: 100%; }
  .cc-actions .cc-btn { flex: 1 1 auto; }
  .cc-modal-content { padding: 24px 20px; }
  .cc-modal-actions { flex-direction: column-reverse; }
  .cc-modal-actions .cc-btn { width: 100%; }
}

/* ============================================
   Form states (loading, error, success)
   ============================================ */
.form-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: form-spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}
@keyframes form-spin {
  to { transform: rotate(360deg); }
}

.form-error {
  display: none;
  margin-top: 12px;
  padding: 12px 16px;
  background: var(--color-danger-bg);
  color: var(--color-danger);
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 1.5;
  border: 1px solid var(--color-danger);
}

.form-success-inline {
  padding: 24px;
  text-align: center;
  background: var(--color-success-bg);
  color: var(--color-success-text);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}
