/* ============================================================
   STOMME AI — Site Styles
   Imports brand token layer (brand.css). No hardcoded values.
   ============================================================ */

/* --- Base --- */

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
}

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

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

/* --- Section kicker (eyebrow label) --- */

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-label);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

/* --- Layout --- */

.container {
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.container--narrow {
  max-width: var(--container-md);
}

.section {
  padding: var(--space-14) 0;
}

.section--lg {
  padding: var(--space-16) 0;
}

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

/* --- Card primitives (replacing glass morphism) --- */

.glass {
  background: var(--color-bg-elevated);
  border: var(--border-default);
  border-radius: var(--radius-lg);
  transition: box-shadow var(--transition-base);
}

.glass:hover {
  box-shadow: var(--shadow-raised);
}

.lux-panel {
  background: var(--color-bg-elevated);
  border: var(--border-default);
  border-top: 2px solid var(--color-accent);
  border-radius: var(--radius-lg);
}

/* --- Buttons --- */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--weight-medium);
  color: var(--color-white);
  background: var(--color-accent);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--transition-base);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  color: var(--color-white);
  text-decoration: none;
}

.btn-primary:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--weight-medium);
  color: var(--color-text);
  background: transparent;
  border: var(--border-default);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--transition-base), border-color var(--transition-base);
}

.btn-secondary:hover {
  background: var(--color-bg-subtle);
  border-color: var(--color-border-strong);
  color: var(--color-text);
  text-decoration: none;
}

.btn-secondary:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* --- Nav --- */

.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: var(--color-bg);
  border-bottom: var(--border-subtle);
  padding: 0 var(--space-5);
  transition: background-color var(--transition-slow), border-color var(--transition-slow);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: var(--space-3) 0;
  gap: var(--space-5);
}

.nav-brand {
  font-family: var(--font-heading);
  font-weight: var(--weight-regular);
  font-size: 1.125rem;
  color: var(--color-text);
  letter-spacing: var(--tracking-widest);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
  flex: 1;
  justify-content: flex-end;
}

.nav-links a {
  font-size: var(--text-body-sm);
  font-weight: var(--weight-regular);
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--transition-base);
}

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

.nav-cta {
  padding: var(--space-2) var(--space-4) !important;
  font-size: var(--text-body-sm) !important;
  color: var(--color-white) !important;
}

.nav-cta:hover {
  color: var(--color-white) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text);
  cursor: pointer;
  padding: var(--space-2);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

/* --- Language Switcher --- */

.lang-switcher {
  position: relative;
  flex-shrink: 0;
}

.lang-current {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 32px;
  padding: 0 var(--space-2);
  background: transparent;
  border: var(--border-default);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  transition: color var(--transition-base), background var(--transition-base), border-color var(--transition-base);
}

.lang-current:hover {
  color: var(--color-text);
  background: var(--color-bg-subtle);
  border-color: var(--color-border-strong);
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 56px;
  background: var(--color-bg-elevated);
  border: var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--space-1);
  z-index: var(--z-dropdown);
  box-shadow: var(--shadow-floating);
}

.lang-dropdown.active {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lang-option {
  display: block;
  width: 100%;
  padding: var(--space-2) var(--space-3);
  background: none;
  border: none;
  border-radius: var(--radius);
  color: var(--color-text-secondary);
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  cursor: pointer;
  text-align: center;
  transition: color var(--transition-base), background var(--transition-base);
}

.lang-option:hover {
  color: var(--color-text);
  background: var(--color-bg-subtle);
}

.lang-option.active {
  color: var(--color-accent);
}

/* --- Theme Toggle --- */

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: var(--border-default);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: color var(--transition-base), background var(--transition-base), border-color var(--transition-base);
  flex-shrink: 0;
}

.theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-bg-subtle);
  border-color: var(--color-border-strong);
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
}

/* Light mode: show moon (click → go dark) */
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }

/* Dark mode: show sun (click → go light) */
[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun  { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

/* --- Hero --- */

.hero {
  padding: var(--space-14) 0 var(--space-12);
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, var(--text-display));
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-5);
  white-space: pre-line;
  max-width: none;
}

.hero .subtitle {
  max-width: 44rem;
  margin: 0 auto var(--space-8);
  font-size: var(--text-body-lg);
  color: var(--color-text-secondary);
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-10);
}

/* Trust bar */

.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-5) var(--space-8);
  max-width: var(--container-md);
  margin: 0 auto;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-label);
  font-weight: var(--weight-medium);
  color: var(--color-text-secondary);
}

.trust-check {
  color: var(--color-success);
  font-weight: var(--weight-semibold);
  font-size: var(--text-body-sm);
}

/* --- Value Prop --- */

.value-prop {
  max-width: var(--container-md);
  margin: 0 auto;
}

.value-prop p {
  margin-bottom: var(--space-5);
  font-size: var(--text-body-lg);
}

.value-prop h2 {
  margin-bottom: var(--space-6);
}

/* --- How It Works --- */

.steps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.step-card {
  padding: var(--space-6) var(--space-5);
}

.step-inner {
  padding: var(--space-5);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--color-accent-subtle);
  font-family: var(--font-body);
  font-weight: var(--weight-medium);
  font-size: var(--text-body-sm);
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.step-card h3 {
  margin-bottom: var(--space-2);
}

.step-card p {
  font-size: var(--text-body-sm);
}

.step-highlight {
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.step-highlight h3 {
  font-size: var(--text-h3);
  margin-bottom: var(--space-4);
}

.step-highlight p {
  font-size: var(--text-body);
}

/* --- Features --- */

.features-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
  margin-top: var(--space-8);
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}

.feature-row:nth-child(even) {
  direction: rtl;
}

.feature-row:nth-child(even) > * {
  direction: ltr;
}

.feature-text .section-kicker {
  margin-bottom: var(--space-2);
}

.feature-text h3 {
  font-size: clamp(1.3rem, 3vw, var(--text-h2));
  margin-bottom: var(--space-4);
}

.feature-text p {
  margin-bottom: var(--space-4);
}

.feature-detail {
  font-size: var(--text-body-sm);
  color: var(--color-text-muted);
  font-style: italic;
}

.feature-card {
  padding: var(--space-8);
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon {
  color: var(--color-accent);
  flex-shrink: 0;
}

.feature-list {
  list-style: none;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  font-size: var(--text-body-sm);
  color: var(--color-text-secondary);
}

.feature-card-inner {
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--text-label);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

/* --- Pricing --- */

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-top: var(--space-8);
  align-items: start;
}

.tier-card {
  padding: var(--space-8);
}

/* Preserved aliases for main.js DOM builders */
.pricing-card {
  background: var(--color-bg-elevated);
  border: var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}

.pricing-card.featured {
  border-top: 2px solid var(--color-accent);
}

.tier-badge {
  display: inline-block;
  background: var(--color-accent-subtle);
  color: var(--color-accent);
  font-size: var(--text-caption);
  font-weight: var(--weight-semibold);
  padding: var(--space-0-5) var(--space-3);
  border-radius: var(--radius);
  margin-bottom: var(--space-4);
}

.tier-name {
  font-size: var(--text-h3);
  margin-bottom: var(--space-1);
}

.tier-oneliner {
  color: var(--color-text-secondary);
  font-size: var(--text-body-sm);
  margin-bottom: var(--space-5);
}

.tier-price {
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-5);
  border-bottom: var(--border-default);
}

.price-strike {
  text-decoration: line-through;
  color: var(--color-text-muted);
  font-size: var(--text-body-sm);
  margin-right: var(--space-2);
}

.price-amount,
.price-highlight {
  font-family: var(--font-heading);
  font-weight: var(--weight-regular);
  font-size: var(--text-h1);
  color: var(--color-text);
  letter-spacing: var(--tracking-tight);
}

.price-label {
  color: var(--color-text-secondary);
  font-size: var(--text-body-sm);
  margin-top: var(--space-1);
}

.price-suffix {
  display: inline-block;
  background: var(--color-accent-subtle);
  color: var(--color-accent);
  font-size: var(--text-caption);
  font-weight: var(--weight-semibold);
  padding: 0.2em var(--space-2);
  border-radius: var(--radius);
  margin-left: var(--space-2);
  vertical-align: middle;
}

.price-after {
  color: var(--color-text-muted);
  font-size: var(--text-label);
  margin-top: var(--space-2);
}

.tier-features {
  list-style: none;
  margin-bottom: var(--space-6);
}

.tier-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  font-size: var(--text-body-sm);
  color: var(--color-text-secondary);
}

.tier-features li .check {
  color: var(--color-success);
  font-weight: var(--weight-semibold);
  flex-shrink: 0;
  margin-top: 2px;
}

.tier-audience {
  font-size: var(--text-label);
  color: var(--color-text-muted);
  font-style: italic;
  margin-bottom: var(--space-5);
}

.tier-cta-wrap {
  text-align: center;
}

.tier-cta-wrap .btn-primary,
.tier-cta-wrap .btn-secondary {
  width: 100%;
  justify-content: center;
}

.tier-supporting {
  color: var(--color-text-muted);
  font-size: var(--text-caption);
  text-align: center;
  margin-top: var(--space-3);
}

/* --- Comparison Table --- */

.comparison-section {
  margin-top: var(--space-10);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-6);
}

.comparison-table th,
.comparison-table td {
  padding: var(--space-4) var(--space-5);
  text-align: left;
  border-bottom: var(--border-subtle);
  font-size: var(--text-body-sm);
}

.comparison-table th {
  color: var(--color-text);
  font-weight: var(--weight-semibold);
  font-size: var(--text-label);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

.comparison-table td:first-child {
  color: var(--color-text-secondary);
  font-weight: var(--weight-medium);
}

.comparison-table td {
  color: var(--color-text-secondary);
}

.table-check {
  color: var(--color-success);
  font-weight: var(--weight-semibold);
}

.table-dash {
  color: var(--color-text-muted);
}

/* --- FAQ --- */

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  margin-top: var(--space-8);
}

.faq-card,
.faq-item {
  padding: var(--space-6) var(--space-5);
  background: var(--color-bg-elevated);
  border: var(--border-default);
  border-radius: var(--radius-lg);
  transition: box-shadow var(--transition-base);
}

.faq-item.open {
  box-shadow: var(--shadow-raised);
}

.faq-card h3,
.faq-item h3 {
  font-size: var(--text-body);
  font-family: var(--font-body);
  font-weight: var(--weight-medium);
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

.faq-card p,
.faq-item p {
  font-size: var(--text-body-sm);
  color: var(--color-text-secondary);
}

/* --- Bottom CTA Banner --- */

.cta-banner {
  text-align: center;
  padding: var(--space-14) var(--space-5);
}

.cta-banner h2 {
  margin-bottom: var(--space-4);
}

.cta-banner .subtitle {
  max-width: 36rem;
  margin: 0 auto var(--space-6);
}

.cta-banner .supporting {
  color: var(--color-text-muted);
  font-size: var(--text-label);
  margin-top: var(--space-4);
}

/* --- Footer --- */

.footer {
  border-top: var(--border-default);
  padding: var(--space-8) 0 var(--space-6);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-6);
}

.footer-brand {
  font-family: var(--font-heading);
  font-weight: var(--weight-regular);
  font-size: 1.125rem;
  color: var(--color-text);
  letter-spacing: var(--tracking-widest);
}

.footer-tagline {
  color: var(--color-text-muted);
  font-size: var(--text-label);
  margin-top: var(--space-1);
}

.footer-links {
  display: flex;
  gap: var(--space-6);
  list-style: none;
}

.footer-links a {
  font-size: var(--text-body-sm);
  color: var(--color-text-secondary);
  transition: color var(--transition-base);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-5);
  border-top: var(--border-subtle);
}

.footer-legal,
.footer-company {
  font-size: var(--text-caption);
  color: var(--color-text-muted);
}

/* --- Placeholder / 404 Pages --- */

.page-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: var(--space-14) var(--space-5);
}

.page-center h1 {
  margin-bottom: var(--space-4);
}

.page-center p {
  margin-bottom: var(--space-6);
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

/* --- Founding offer countdown --- */

.founding-countdown {
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--text-body-sm);
  letter-spacing: var(--tracking-wide);
  color: var(--color-accent);
  padding: var(--space-4) 0;
  margin-bottom: var(--space-5);
}

.founding-countdown:empty {
  display: none;
}

/* --- Responsive --- */

@media (max-width: 1024px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .feature-row:nth-child(even) {
    direction: ltr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }

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

  .comparison-table th,
  .comparison-table td {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-label);
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: var(--space-5);
    right: var(--space-5);
    margin-top: var(--space-2);
    padding: var(--space-5);
    background: var(--color-bg-elevated);
    border: var(--border-default);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-floating);
    gap: var(--space-4);
    z-index: var(--z-dropdown);
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding: var(--space-10) 0 var(--space-8);
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--space-8);
  }

  .trust-bar {
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
  }

  .section {
    padding: var(--space-10) 0;
  }

  .section--lg {
    padding: var(--space-12) 0;
  }

  .footer-inner {
    flex-direction: column;
    gap: var(--space-5);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-2);
    text-align: center;
  }
}

/* --- Reduce motion --- */

@media (prefers-reduced-motion: reduce) {
  .glass,
  .lux-panel,
  .btn-primary,
  .btn-secondary,
  .theme-toggle,
  .lang-current,
  .lang-option,
  .nav {
    transition: none !important;
  }
}
