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

/* ── Accessibility (WCAG 2.1 AA) ──────────────────────────────────────────── */

/* Skip-to-content link: hidden offscreen, appears on focus */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: var(--color-bg);
  padding: 8px 16px;
  border-radius: 0 0 8px 8px;
  z-index: 9999;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.skip-link:focus {
  top: 0;
}

/* Universal visible focus ring for all interactive elements */
*:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ── End Accessibility ────────────────────────────────────────────────────── */

/* --- Base --- */

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  min-height: 100vh;
  overflow-x: clip;
}

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-regular);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

/* --- Section backgrounds (v2) --- */

#how-it-works {
  background: var(--color-bg);
  border-top: var(--border-subtle);
  border-bottom: var(--border-subtle);
}

#features {
  background: var(--color-bg);
}

#value {
  background: var(--color-bg);
  border-top: var(--border-subtle);
}

#value .subtitle-large {
  font-size: var(--text-body-lg);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  max-width: 60ch;
}

/* --- 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 --- */

@keyframes btn-sheen {
  0%   { transform: translateX(-100%) skewX(-20deg); }
  100% { transform: translateX(250%) skewX(-20deg); }
}

.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-regular);
  color: var(--color-text-on-amber);
  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);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 35%,
    rgba(255, 255, 255, 0.10) 50%,
    rgba(255, 255, 255, 0.04) 65%,
    transparent 100%
  );
  animation: btn-sheen 8s ease-in-out infinite;
  pointer-events: none;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  color: var(--color-text-on-amber);
  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-regular);
  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);
  position: relative;
  overflow: hidden;
}

.btn-secondary::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.03) 35%,
    rgba(255, 255, 255, 0.07) 50%,
    rgba(255, 255, 255, 0.03) 65%,
    transparent 100%
  );
  animation: btn-sheen 8s ease-in-out 3s infinite;
  pointer-events: none;
}

.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);
}
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5 {
  color: var(--color-text);
}

[data-theme="light"] .nav {
  background: #E2DED4;
  border-bottom-color: #D6D0C7;
}

/* WCAG AA fix: nav links need ≥4.5:1 against #E2DED4 nav bg */
[data-theme="light"] .nav-links a {
  color: #5E5955;
}
[data-theme="light"] .nav-tagline {
  color: #5E5955;
}

.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 {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: var(--weight-regular);
  font-size: 1.5rem;
  color: var(--color-text);
  letter-spacing: var(--tracking-widest);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-icon-mark {
  flex-shrink: 0;
  position: relative;
  top: 0.05em;
  margin-right: 0.02rem;
  transform: scale(0.88);
  transform-origin: center bottom;
}

.nav-logo-lockup {
  flex-shrink: 0;
  height: 22px;
  width: auto;
  position: relative;
  top: 2px;
}

.footer-logo-lockup {
  height: 14px;
  width: auto;
  position: relative;
  top: -0.02em;
  margin-right: 0.4rem;
}

/* Theme-aware logo: show dark version by default, light version in light mode */
.logo-light { display: none; }
.logo-dark  { display: inline; }
[data-theme="light"] .logo-light { display: inline; }
[data-theme="light"] .logo-dark  { display: none; }

/* Boost saturation in light mode for standalone icon marks */
[data-theme="light"] .nav-icon-mark,
[data-theme="light"] .footer-icon-mark,
[data-theme="light"] .auth-icon-mark {
  filter: saturate(1.6);
}

.nav-wordmark {
  line-height: 1;
}

.nav-tagline {
  font-family: var(--font-body);
  font-weight: var(--weight-regular);
  font-style: italic;
  font-size: 0.945rem;
  color: var(--color-text-secondary);
  letter-spacing: 0.02em;
  text-transform: none;
  white-space: nowrap;
  margin-left: 0.375rem;
  line-height: 1;
}

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

.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-text-on-amber) !important;
}

.nav-cta:hover {
  color: var(--color-text-on-amber) !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-regular);
  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-regular);
  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-20) 0 0;
  overflow: hidden;
}

.hero .container {
  padding-bottom: var(--space-12);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
  margin-bottom: var(--space-5);
  max-width: 720px;
}

.hero p.subtitle,
.hero .subtitle {
  font-size: var(--text-body-lg);
  color: var(--color-text-secondary);
  max-width: 580px;
  margin-top: var(--space-5);
  margin-bottom: var(--space-6);
}

.hero.section .text-center h1 {
  max-width: none;
}

.hero.section .text-center .subtitle {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Hero image */

.hero-image {
  width: 100%;
  overflow: hidden;
  position: relative;
  line-height: 0;
}

.hero-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 848;
  display: block;
  object-fit: cover;
  object-position: center top;
}

/* 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-body-sm);
  font-weight: var(--weight-regular);
  color: var(--color-text-secondary);
}

.trust-item::before {
  content: none;
}

.trust-check {
  color: var(--color-success);
  font-weight: var(--weight-regular);
  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-10);
  align-items: stretch;
}

.steps-grid > div:first-child {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.steps-grid > div:first-child .step-card {
  flex: 1;
}

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

.step-card:not(:last-child)::after {
  content: '';
  position: absolute;
  top: var(--space-10);
  right: calc(-1 * var(--space-3));
  width: var(--space-6);
  height: 1px;
  background: var(--color-amber);
  opacity: 0.3;
}

.step-title {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: var(--weight-medium);
  color: var(--color-text);
  letter-spacing: var(--tracking-display);
  margin-bottom: var(--space-3);
}

.step-description {
  font-size: var(--text-body);
  color: var(--color-text-secondary);
  line-height: var(--leading-body);
}

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

.step-number {
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: var(--weight-semibold);
  color: var(--color-amber);
  opacity: 0.15;
  line-height: 1;
  margin-bottom: var(--space-4);
  letter-spacing: var(--tracking-display);
}

.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-secondary);
  font-style: italic;
}

.feature-card {
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  padding: 0;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card img {
  width: 100%;
  max-width: 560px;
  height: auto;
  border-radius: var(--radius-lg, 12px);
  object-fit: cover;
}

.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);
}

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

/* --- Pricing --- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 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-card-pro {
  border: 2px solid var(--color-accent);
  position: relative;
}

.tier-card-pro .tier-recommended {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: var(--color-bg);
  font-size: var(--text-caption);
  font-weight: var(--weight-regular);
  padding: var(--space-0-5) var(--space-3);
  border-radius: var(--radius);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.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-display);
  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-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
}

.price-suffix {
  display: inline-block;
  background: var(--color-accent-subtle);
  color: var(--color-accent);
  font-size: var(--text-caption);
  font-weight: var(--weight-regular);
  padding: 0.2em var(--space-2);
  border-radius: var(--radius);
  margin-top: var(--space-1);
}

.price-after {
  color: var(--color-text-secondary);
  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);
}

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

.tier-audience {
  font-size: var(--text-label);
  color: var(--color-text-secondary);
  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-secondary);
  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-medium);
  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-regular);
}

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

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

.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-regular);
  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;
  max-width: var(--container-md);
  margin: 0 auto;
  position: relative;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(600px, 100%);
  height: 300px;
  background: radial-gradient(ellipse at center, rgba(232, 165, 75, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.cta-banner > * { position: relative; z-index: 1; }
.cta-banner .btn-primary,
.cta-banner .btn-secondary {
  white-space: normal;
  text-align: center;
}

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

.section--lg .cta-banner h2 {
  font-size: var(--text-display);
}

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

.cta-banner .supporting {
  font-size: var(--text-body-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-3);
  max-width: 100%;
}

/* --- Footer --- */

.footer {
  background: var(--color-kol);
  border-top: var(--border-default);
  padding: var(--space-12) 0;
}

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

.footer-brand {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  font-family: var(--font-display);
  font-weight: var(--weight-regular);
  font-size: 1.125rem;
  color: #F2EDE4;
  letter-spacing: var(--tracking-widest);
}
.footer-icon-mark {
  position: relative;
  top: -0.02em;
  margin-right: 0.4rem;
  transform: scale(1.05);
  transform-origin: center bottom;
}

.footer-tagline {
  color: #8A8278;
  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: #8A8278;
  transition: color var(--transition-base);
}

.footer-links a:hover {
  color: #F2EDE4;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding-top: var(--space-5);
  border-top: var(--border-subtle);
  text-align: center;
}

.footer-legal {
  font-size: var(--text-caption);
  color: #F2EDE4;
}

.footer-company {
  font-size: 0.6875rem;
  color: #8A8278;
  letter-spacing: 0.01em;
}

/* --- Legal Pages (Privacy / Terms) --- */

.legal-page {
  padding-top: var(--space-14);
  padding-bottom: var(--space-14);
}

.legal-content {
  max-width: 48rem;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: var(--text-display);
  margin-bottom: var(--space-2);
}

.legal-content .legal-date {
  font-size: var(--text-body-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.legal-content .legal-intro {
  font-size: var(--text-body-lg);
  margin-bottom: var(--space-4);
}

.legal-content h2 {
  font-size: var(--text-h3);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.legal-content p {
  margin-bottom: var(--space-3);
  line-height: 1.7;
}

.legal-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: var(--space-4);
}

.legal-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: var(--space-2);
  line-height: 1.7;
}

.legal-list li::before {
  content: '·';
  position: absolute;
  left: 0.25rem;
  font-weight: var(--weight-regular);
  color: var(--color-text-muted);
}

.legal-table-wrap {
  overflow-x: auto;
  margin-bottom: var(--space-4);
  border-radius: var(--radius-lg);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-body-sm);
}

.legal-table th,
.legal-table td {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.legal-table th {
  font-weight: var(--weight-regular);
  color: var(--color-text-muted);
  font-size: var(--text-caption);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.legal-table tbody tr:last-child td {
  border-bottom: none;
}

@media (max-width: 640px) {
  .legal-content h1 {
    font-size: var(--text-h2);
  }
  .legal-content h2 {
    font-size: var(--text-body-lg);
  }
  .legal-table th,
  .legal-table td {
    padding: var(--space-2) var(--space-3);
  }
}

/* --- 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;
}

.error-nav {
  display: flex;
  gap: var(--space-4, 16px);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-6, 24px);
}

.error-nav a {
  color: var(--color-accent, #00AEEF);
  text-decoration: none;
  font-size: var(--text-sm, 0.875rem);
  padding: var(--space-2, 8px) var(--space-3, 12px);
  border: 1px solid var(--color-border, rgba(255,255,255,0.08));
  border-radius: 8px;
  transition: background 0.15s, border-color 0.15s;
}

.error-nav a:hover {
  background: var(--color-surface, rgba(255,255,255,0.04));
  border-color: var(--color-accent, #00AEEF);
}

/* --- 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 .container {
    text-align: center;
  }

  .hero h1,
  .hero .subtitle {
    margin-left: auto;
    margin-right: auto;
  }

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

  .hero-ctas .btn-primary,
  .hero-ctas .btn-secondary {
    white-space: normal;
    text-align: center;
  }

  .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;
  }
}

/* ============================================================
   PORTAL — Auth & Dashboard pages
   ============================================================ */

/* --- Auth layout (signup, verify) --- */

.auth-main {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: calc(100vh - 60px);
  padding: var(--space-12) var(--space-5) var(--space-10);
}

.auth-container {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--color-bg-surface);
  border: var(--border-default);
  border-top: 2px solid var(--color-amber);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  box-shadow: var(--shadow-floating);
}

.auth-logo {
  text-align: center;
  margin-bottom: var(--space-6);
}

.auth-brand {
  font-family: var(--font-display);
  font-weight: var(--weight-regular);
  font-size: 1.5rem;
  letter-spacing: var(--tracking-widest);
  color: var(--color-text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.auth-icon-mark {
  position: relative;
  top: 0.05em;
}

.auth-heading {
  font-size: var(--text-h2);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-6);
  text-align: center;
}

/* --- Form elements --- */

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

.form-label {
  display: block;
  font-size: var(--text-body-sm);
  font-weight: var(--weight-regular);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.form-input {
  display: block;
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  box-sizing: border-box;
}

.form-input::placeholder {
  color: var(--color-text-muted);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: var(--focus-ring);
}

.form-input[aria-invalid="true"] {
  border-color: var(--color-error);
}

.form-submit {
  width: 100%;
  justify-content: center;
  margin-top: var(--space-2);
}

/* --- Checkbox --- */

.form-group--checkbox {
  margin-bottom: var(--space-3);
}

.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-body-sm);
  color: var(--color-text-muted);
  cursor: pointer;
  line-height: 1.5;
}

.form-checkbox-label input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--color-accent);
  cursor: pointer;
}

.form-checkbox-label a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-checkbox-label a:hover {
  color: var(--color-text);
}

/* --- Inline alerts --- */

.form-error {
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--color-error-subtle, color-mix(in srgb, var(--color-error) 10%, transparent));
  border: 1px solid var(--color-error);
  border-radius: var(--radius-md);
  color: var(--color-error);
  font-size: var(--text-body-sm);
  margin-bottom: var(--space-3);
  display: none;
}
.form-error:not([hidden]) {
  display: flex;
}

.portal-alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--text-body-sm);
  width: 100%;
}

.portal-alert--success {
  background: color-mix(in srgb, var(--color-success) 10%, transparent);
  border: 1px solid var(--color-success);
  color: var(--color-success);
}

.portal-alert--error {
  background: color-mix(in srgb, var(--color-error) 10%, transparent);
  border: 1px solid var(--color-error);
  color: var(--color-error);
}

.portal-alert-icon {
  font-size: 1.2em;
  flex-shrink: 0;
  line-height: 1.4;
}

/* --- Signup success state --- */

.auth-success {
  text-align: center;
  padding: var(--space-4) 0;
}

.auth-success-icon {
  font-size: 3rem;
  margin-bottom: var(--space-4);
  display: block;
  animation: envelope-bounce 0.6s var(--ease-bounce, cubic-bezier(0.34, 1.56, 0.64, 1)) both;
}

@keyframes envelope-bounce {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.auth-success h2 {
  font-size: var(--text-h3);
  margin-bottom: var(--space-3);
}

.auth-success p {
  color: var(--color-text-secondary);
  font-size: var(--text-body-sm);
}

/* --- Auth footer links (privacy / terms) --- */

.auth-footer-links {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: var(--border-subtle);
  font-size: var(--text-body-sm);
  color: var(--color-text-secondary);
}

.auth-footer-links a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-legal-links {
  display: flex;
  gap: var(--space-3);
  font-size: var(--text-caption);
  color: var(--color-text-muted);
}

.auth-legal-links a {
  color: var(--color-text-muted);
  transition: color var(--transition-base);
}

.auth-legal-links a:hover {
  color: var(--color-text-secondary);
}

.auth-legal-sep {
  color: var(--color-border-strong);
}

/* --- Auth verify/message states --- */

.auth-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto var(--space-4);
}

.auth-verify-state {
  text-align: center;
  padding: var(--space-4) 0;
}

.auth-verify-state p {
  color: var(--color-text-secondary);
  font-size: var(--text-body-sm);
}

.auth-error-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: var(--space-4);
  color: var(--color-error);
}

.auth-message {
  text-align: center;
  padding: var(--space-4) 0;
}

.auth-message h1 {
  font-size: var(--text-h2);
  margin-bottom: var(--space-3);
}

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

.auth-actions {
  margin-bottom: var(--space-5);
}

.auth-footer-note {
  font-size: var(--text-caption);
  color: var(--color-text-muted);
}

.auth-footer-note a {
  color: var(--color-accent);
  text-decoration: underline;
}

/* --- Account container + loading --- */

.account-container {
  max-width: var(--container-lg, 960px);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

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

.account-loading p {
  color: var(--color-text-muted);
  font-size: var(--text-body-sm);
  margin-top: var(--space-3);
}

.account-content {
  width: 100%;
}

.account-header-left h1 {
  font-size: var(--text-h2);
  font-weight: var(--weight-regular);
  letter-spacing: var(--tracking-tight);
}

.account-header-right {
  flex-shrink: 0;
}

/* --- Account detail rows --- */

.account-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) 0;
  border-bottom: var(--border-subtle);
  font-size: var(--text-body-sm);
}

.account-detail-row:last-of-type {
  border-bottom: none;
  margin-bottom: var(--space-4);
}

.account-detail-label {
  color: var(--color-text-secondary);
}

.account-detail-value {
  color: var(--color-text);
  font-weight: var(--weight-regular);
}

/* --- Loading spinner --- */

.portal-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: var(--space-10) auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Verify page states --- */

.verify-state {
  text-align: center;
  padding: var(--space-4) 0;
}

.verify-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: var(--space-4);
}

.verify-state h1 {
  font-size: var(--text-h2);
  margin-bottom: var(--space-3);
}

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

/* --- Portal pages: shared spacing & polish --- */

.setup-main {
  padding: var(--space-12) 0 var(--space-14);
}

.setup-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.setup-header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.setup-header h1 {
  font-size: var(--text-h1);
  font-weight: var(--weight-regular);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-3);
}

.setup-header p {
  color: var(--color-text-secondary);
  font-size: var(--text-body);
}

.setup-progress {
  position: relative;
  height: 6px;
  background: var(--color-border);
  border-radius: 3px;
  margin-bottom: var(--space-8);
  overflow: hidden;
}

.setup-progress-bar {
  height: 100%;
  background: var(--color-amber);
  border-radius: 3px;
  transition: width 0.4s ease;
}

.setup-progress-text {
  position: absolute;
  right: 0;
  top: calc(100% + var(--space-2));
  font-size: var(--text-caption);
  color: var(--color-text-muted);
}

.setup-checklist-item {
  margin-bottom: var(--space-5);
  padding: var(--space-6) var(--space-6);
}

.setup-checklist-item h2 {
  font-size: var(--text-body-lg);
  font-weight: var(--weight-medium);
  margin-bottom: var(--space-3);
}

.setup-checklist-item p {
  color: var(--color-text-secondary);
  font-size: var(--text-body-sm);
  margin-bottom: var(--space-4);
  line-height: 1.6;
}

.setup-actions {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

/* Checkout success polish */

.checkout-success-card {
  max-width: 540px;
  width: 100%;
  text-align: center;
  padding: var(--space-10) var(--space-8);
}

.checkout-success-card h1 {
  font-size: var(--text-h2);
  margin-bottom: var(--space-4);
}

.checkout-success-card p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
}

.checkout-steps {
  text-align: left;
  padding-left: var(--space-6);
  margin-bottom: var(--space-8);
}

.checkout-steps li {
  font-size: var(--text-body-sm);
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-2);
}

.auth-success-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: var(--space-5);
}

/* Telegram setup wizard polish */

.telegram-wizard {
  max-width: 540px;
  margin: 0 auto;
}

.telegram-wizard .lux-panel {
  padding: var(--space-8) var(--space-6);
  margin-bottom: var(--space-5);
}

/* --- Account / Dashboard --- */

.account-main {
  padding: var(--space-12) 0 var(--space-14);
}

.account-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-5);
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-6);
  border-bottom: var(--border-default);
}

.account-welcome {
  font-size: var(--text-h2);
  font-weight: var(--weight-regular);
  letter-spacing: var(--tracking-tight);
  margin: 0;
}

.account-email-inline {
  color: var(--color-accent);
}

.account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: start;
}

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

.account-card h2 {
  font-size: var(--text-body-lg);
  font-family: var(--font-body);
  font-weight: var(--weight-medium);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: var(--border-subtle);
  color: var(--color-text);
}

/* Subscription details */

.sub-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.sub-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-body-sm);
}

.sub-label {
  color: var(--color-text-secondary);
}

.sub-value {
  color: var(--color-text);
  font-weight: var(--weight-regular);
}

.sub-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2em var(--space-2);
  border-radius: var(--radius);
  font-size: var(--text-caption);
  font-weight: var(--weight-semibold);
}

.sub-status--active {
  background: color-mix(in srgb, var(--color-success) 12%, transparent);
  color: var(--color-success);
}

.sub-status--trialing {
  background: color-mix(in srgb, var(--color-accent) 12%, transparent);
  color: var(--color-accent);
}

.sub-status--past-due {
  background: color-mix(in srgb, var(--color-warning, var(--color-error)) 12%, transparent);
  color: var(--color-warning, var(--color-error));
}

/* Account settings */

.account-setting {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-5);
  border-bottom: var(--border-subtle);
}

.setting-label {
  font-size: var(--text-caption);
  font-weight: var(--weight-regular);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-text-muted);
}

.setting-value {
  font-size: var(--text-body-sm);
  color: var(--color-text-secondary);
}

/* Account card buttons */

.account-card .btn-primary,
.account-card .btn-secondary {
  width: 100%;
  justify-content: center;
  margin-bottom: var(--space-2);
}

.account-card .btn-secondary:last-child {
  margin-bottom: 0;
}

/* --- Usage Dashboard --- */

.usage-dashboard {
  padding: var(--space-6) var(--space-5);
  margin-bottom: var(--space-5);
}

.usage-dashboard h2 {
  font-size: var(--text-body-lg);
  font-family: var(--font-body);
  font-weight: var(--weight-medium);
  margin-bottom: var(--space-2);
  padding-bottom: var(--space-3);
  border-bottom: var(--border-subtle);
  color: var(--color-text);
}

.usage-subtitle {
  font-size: var(--text-body-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-1);
}

.usage-period {
  font-size: var(--text-caption);
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}

.usage-empty {
  text-align: center;
  padding: var(--space-8) var(--space-4);
  color: var(--color-text-secondary);
  font-size: var(--text-body-sm);
  line-height: 1.6;
}

/* Usage progress bars */

.usage-bars {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-bottom: var(--space-5);
}

.usage-bar-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.usage-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.usage-bar-label {
  font-size: var(--text-body-sm);
  font-weight: var(--weight-regular);
  color: var(--color-text);
}

.usage-bar-value {
  font-size: var(--text-caption);
  color: var(--color-text-secondary);
  font-variant-numeric: tabular-nums;
}

.usage-bar-track {
  height: 8px;
  border-radius: 4px;
  background: var(--color-surface-2, color-mix(in srgb, var(--color-surface) 85%, var(--color-text) 15%));
  overflow: hidden;
}

.usage-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease, background-color 0.3s ease;
  min-width: 0;
}

/* Progress bar color states */
.usage-bar-fill[data-state="normal"]  { background: var(--color-success); }
.usage-bar-fill[data-state="warning"] { background: var(--color-warning); }
.usage-bar-fill[data-state="danger"]  { background: #FF9800; }
.usage-bar-fill[data-state="capped"]  { background: #E57373; }

.usage-bar-hint {
  font-size: var(--text-caption);
  color: var(--color-text-muted);
  line-height: 1.4;
  margin: 0;
}

/* Provider breakdown table */

.usage-breakdown {
  margin-bottom: var(--space-5);
}

.usage-breakdown summary {
  font-size: var(--text-body-sm);
  font-weight: var(--weight-regular);
  color: var(--color-text-secondary);
  cursor: pointer;
  padding: var(--space-2) 0;
  user-select: none;
}

.usage-breakdown summary:hover {
  color: var(--color-text);
}

.usage-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-3);
  font-size: var(--text-caption);
}

.usage-table th {
  text-align: left;
  font-weight: var(--weight-regular);
  color: var(--color-text-muted);
  padding: var(--space-2) var(--space-3);
  border-bottom: var(--border-subtle);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  font-size: 0.65rem;
}

.usage-table td {
  padding: var(--space-2) var(--space-3);
  color: var(--color-text-secondary);
  border-bottom: 1px solid color-mix(in srgb, var(--color-border) 40%, transparent);
  font-variant-numeric: tabular-nums;
}

.usage-table tr:last-child td {
  border-bottom: none;
}

.usage-cached-note {
  font-size: var(--text-caption);
  color: var(--color-text-muted);
  margin-top: var(--space-3);
  line-height: 1.4;
}

/* Agent breakdown (Business tier) */

.usage-agent-breakdown {
  margin-bottom: var(--space-5);
}

.usage-agent-breakdown h3 {
  font-size: var(--text-body-sm);
  font-weight: var(--weight-regular);
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.usage-agent-card {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  border: var(--border-subtle);
  margin-bottom: var(--space-2);
}

.usage-agent-card-header {
  font-size: var(--text-body-sm);
  font-weight: var(--weight-regular);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.usage-agent-stat {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-caption);
  color: var(--color-text-secondary);
  padding: var(--space-1) 0;
}

/* Upgrade CTA */

.usage-upgrade {
  padding: var(--space-4);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--color-accent) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-accent) 20%, transparent);
}

.usage-upgrade p {
  font-size: var(--text-body-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-3);
}

.usage-upgrade .btn-primary {
  width: 100%;
  justify-content: center;
}

/* --- Checkout success / cancel pages --- */

.checkout-card {
  max-width: 540px;
  width: 100%;
  padding: var(--space-10) var(--space-8);
  text-align: center;
}

.checkout-card h1 {
  font-size: var(--text-h1);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-4);
}

.checkout-card > p {
  color: var(--color-text-secondary);
  font-size: var(--text-body-lg);
  margin-bottom: var(--space-6);
}

.checkout-steps {
  list-style: none;
  text-align: left;
  margin-bottom: var(--space-8);
  background: var(--color-bg-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}

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

.checkout-steps li::before {
  content: '✓';
  color: var(--color-success);
  font-weight: var(--weight-regular);
  flex-shrink: 0;
  margin-top: 1px;
}

.checkout-ctas,
.checkout-success-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: center;
}

.checkout-success-actions .btn-primary {
  width: 100%;
  text-align: center;
}

.checkout-success-actions .btn-secondary {
  font-size: var(--text-body-sm);
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.checkout-success-actions .btn-secondary:hover {
  color: var(--color-text);
}

.checkout-cancel-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: var(--space-4);
}

/* --- Portal responsive --- */

@media (max-width: 1024px) {
  .account-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 640px) {
  .auth-main {
    padding: var(--space-8) var(--space-5);
    align-items: flex-start;
  }

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

  .account-header {
    flex-direction: column;
    gap: var(--space-4);
  }

  .account-welcome {
    font-size: var(--text-h3);
  }

  .checkout-card {
    padding: var(--space-7) var(--space-5);
  }
}

/* --- Reduce motion (portal additions) --- */

@media (prefers-reduced-motion: reduce) {
  .portal-spinner,
  .auth-success-icon {
    animation: none !important;
  }
}

/* ============================================================
   END PORTAL
   ============================================================ */

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

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

/* --- How It Works Video --- */
.how-it-works-video {
  width: 100%;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--radius-lg);
  margin-top: var(--space-4);
  display: block;
  overflow: hidden;
}

[data-theme="light"] .how-it-works-video {
  box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  border: 2px solid var(--color-bg-muted);
  border-radius: var(--radius-lg);
}

/* ============================================================
   V2 ADDITIONS — Blog, 404, Checkout, Legal
   ============================================================ */

/* --- Blog Index --- */
.blog-hero {
  padding: var(--space-16) 0 var(--space-12);
  border-bottom: var(--border-subtle);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-10);
  padding-bottom: var(--space-16);
}

.blog-card {
  background: var(--color-bg-surface);
  border: var(--border-default);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-base);
  text-decoration: none;
}

.blog-card:hover {
  border-color: var(--color-amber-border);
}

.blog-card-body {
  padding: var(--space-5);
}

.blog-card-kicker {
  font-size: var(--text-label);
  font-weight: var(--weight-regular);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.blog-card-title {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-display);
  color: var(--color-text);
  margin-bottom: var(--space-3);
  line-height: var(--leading-snug);
}

.blog-card-excerpt {
  font-size: var(--text-body-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-body);
  margin: 0;
}

.blog-card-read {
  font-size: var(--text-label);
  font-weight: var(--weight-medium);
  color: var(--color-accent);
}

.blog-card a {
  text-decoration: none;
  display: block;
  height: 100%;
}

.blog-hero p {
  color: var(--color-text-secondary);
}

/* --- Blog Post --- */
.blog-post {
  max-width: 680px;
  margin: 0 auto;
  padding: 80px 24px;
}

.blog-post-meta {
  margin: 0 0 8px;
}

.blog-post-back {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  text-decoration: none;
}

.blog-post-back:hover {
  color: var(--color-amber);
}

.blog-post h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  color: var(--color-text);
  margin: 32px 0 8px;
  line-height: 1.2;
}

.blog-post-subtitle {
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  margin: 0 0 8px;
  font-weight: var(--weight-regular);
  line-height: 1.5;
}

.blog-post-byline {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  margin: 0 0 48px;
}

.blog-post-content h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-text);
  margin: 48px 0 16px;
}

.blog-post-content h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-text);
  margin: 36px 0 12px;
}

.blog-post-content p {
  font-size: 1.0625rem;
  color: var(--color-text-secondary);
  line-height: 1.75;
  margin: 0 0 24px;
}

.blog-post-content ul,
.blog-post-content ol {
  margin: 0 0 24px;
  padding-left: 24px;
}

.blog-post-content ul li,
.blog-post-content ol li {
  font-size: 1.0625rem;
  color: var(--color-text-secondary);
  line-height: 1.75;
  margin: 0 0 8px;
}

.blog-post-content hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 48px 0;
}

.blog-post-content a {
  color: var(--color-amber);
  text-decoration: underline;
}

.blog-post-content em {
  color: var(--color-text);
  font-style: italic;
}

.blog-post-content strong {
  color: var(--color-text);
  font-weight: var(--weight-semibold);
}

.blog-post-content code {
  font-family: var(--font-mono);
  background: var(--color-bg-card);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.875em;
  color: var(--color-amber);
}

.blog-post-content blockquote {
  border-left: 3px solid var(--color-amber);
  margin: 0 0 24px;
  padding: 0 0 0 20px;
}

.blog-post-content blockquote p {
  font-size: 1rem;
  color: var(--color-text-secondary);
  margin: 0 0 8px;
}

.blog-post-content blockquote p:last-child {
  margin: 0;
}

.blog-post-content .sprint-log {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 20px 24px;
  margin: 0 0 24px;
}

.blog-post-content .sprint-log p {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  margin: 0 0 6px;
  line-height: 1.6;
}

.blog-post-content .sprint-log p:last-child {
  margin: 0;
}

.blog-post-footer {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.blog-post-footer p {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  font-style: italic;
}

.blog-post-cta {
  display: inline-block;
  margin-top: 24px;
  padding: 14px 32px;
  background: var(--color-amber);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: var(--weight-semibold);
  font-size: 1rem;
}

.blog-post-cta:hover {
  opacity: 0.9;
}

.blog-tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--color-amber);
  background: transparent;
  border: 1px solid var(--color-amber);
  border-radius: 4px;
  padding: 2px 8px;
  margin-right: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- 404 Page --- */
.error-page {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-10) var(--space-5);
}

.error-code {
  font-family: var(--font-display);
  font-size: 8rem;
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-display);
  color: var(--color-amber);
  opacity: 0.15;
  line-height: 1;
  margin-bottom: 0;
}

.error-title {
  font-size: var(--text-h2);
  margin-top: var(--space-4);
  margin-bottom: var(--space-4);
}

.error-body {
  font-size: var(--text-body-lg);
  color: var(--color-text-secondary);
  max-width: 440px;
  margin-bottom: var(--space-8);
}

/* --- Checkout Pages --- */
.checkout-page {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-10) var(--space-5);
}

.checkout-card--success {
  border-top: 2px solid var(--color-success);
}

.checkout-card--cancel {
  border-top: 2px solid var(--color-border-strong);
}

.checkout-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-6);
}

.checkout-icon--success { color: var(--color-success); }
.checkout-icon--cancel  { color: var(--color-text-muted); }

/* --- Legal Hero --- */
.legal-hero {
  padding: var(--space-16) 0 var(--space-10);
  border-bottom: var(--border-subtle);
}

/* --- Founding Countdown --- */
.founding-countdown {
  text-align: center;
  font-size: var(--text-body-sm);
  color: var(--color-accent);
  font-weight: var(--weight-regular);
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-8);
  padding: var(--space-3) var(--space-5);
  background: var(--color-accent-subtle);
  border: var(--border-accent-dim);
  border-radius: var(--radius);
  display: flex;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

/* --- Comparison Table --- */
.comparison-section {
  background: var(--color-bg-surface);
  border-top: var(--border-subtle);
  border-bottom: var(--border-subtle);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table th {
  font-family: var(--font-display);
  font-size: var(--text-body);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-display);
  color: var(--color-text);
  padding: var(--space-4) var(--space-5);
  text-align: left;
  border-bottom: 2px solid var(--color-amber);
}

.comparison-table td {
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-body-sm);
  color: var(--color-text-secondary);
  border-bottom: var(--border-subtle);
}

.comparison-table tr:last-child td { border-bottom: none; }

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

.comparison-check { color: var(--color-success); }
.comparison-no    { color: var(--color-text-muted); }

/* --- FAQ --- */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-10);
}

.faq-item {
  padding: var(--space-5);
  border: var(--border-default);
  border-radius: var(--radius-md);
  background: var(--color-bg-surface);
}

.faq-question {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  color: var(--color-text);
  margin-bottom: var(--space-3);
  cursor: pointer;
}

.faq-answer {
  font-size: var(--text-body-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-body);
  margin: 0;
}

/* --- Account Page --- */
.account-section-title {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: var(--weight-regular);
  letter-spacing: var(--tracking-display);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-5);
  border-bottom: var(--border-default);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0.2em var(--space-2);
  border-radius: var(--radius-xs, 4px);
  font-size: var(--text-label);
  font-weight: var(--weight-regular);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.status-badge--active {
  background: var(--color-success-bg);
  color: var(--color-success);
  border: 1px solid rgba(78, 148, 112, 0.2);
}

.status-badge--inactive {
  background: var(--color-bg-muted);
  color: var(--color-text-muted);
  border: var(--border-subtle);
}

/* --- Pricing Features (v2 dash marker) --- */
.pricing-feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-body-sm);
  color: var(--color-text-secondary);
}

.pricing-feature-item::before {
  content: '—';
  color: var(--color-amber);
  flex-shrink: 0;
  font-weight: var(--weight-regular);
}

/* --- V2 Responsive Additions --- */
@media (max-width: 768px) {
  .hero {
    padding: var(--space-12) 0 0;
  }
  .hero-image {
    max-height: none;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .steps-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .step-card::after {
    display: none;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }
}

/* ─── Onboarding Wizard ───────────────────────────────────────────────────── */

.onboarding-container {
  max-width: 580px;
  margin: 0 auto;
  padding: var(--space-10) var(--space-6) var(--space-14);
}

/* ─── Admin Dashboard ─────────────────────────────────────────────────────── */

.admin-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-4);
}

.onboarding-header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.onboarding-header h1 {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: var(--weight-regular);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text);
  margin: 0 0 var(--space-3);
}

.onboarding-header p {
  color: var(--color-text-secondary);
  font-size: var(--text-body);
  margin: 0;
  line-height: 1.6;
}

/* Hide the emoji icon — it's decorative clutter */
.onboarding-header .setup-icon {
  display: none;
}

/* Progress dots */
.onboarding-progress {
  text-align: center;
  margin-bottom: var(--space-8);
}

.onboarding-progress-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.progress-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-body-sm);
  font-weight: var(--weight-regular);
  color: var(--color-text-muted);
  background: var(--color-bg-surface);
  border: 2px solid var(--color-border);
  transition: all 0.25s ease;
}

.progress-dot.active {
  background: var(--color-amber);
  border-color: var(--color-amber);
  color: #1C1A18;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-amber) 20%, transparent);
}

.progress-dot.completed {
  background: transparent;
  border-color: var(--color-amber);
  color: var(--color-amber);
}

.onboarding-step-label {
  font-size: var(--text-body-sm);
  color: var(--color-text-secondary);
  margin: 0;
}

/* Step cards */
.onboarding-step .auth-card {
  padding: var(--space-8) var(--space-6);
}

.onboarding-step .auth-card h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: var(--weight-regular);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text);
  margin: 0 0 var(--space-5);
}

.onboarding-step .step-subtitle {
  color: var(--color-text-secondary);
  font-size: var(--text-body-sm);
  line-height: 1.6;
  margin: calc(-1 * var(--space-3)) 0 var(--space-5);
}

/* Onboarding form fields */
.onboarding-step .auth-field {
  margin-bottom: var(--space-4);
}

.onboarding-step .auth-field label {
  display: block;
  font-size: var(--text-body-sm);
  font-weight: var(--weight-regular);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.onboarding-step .auth-field input[type="text"],
.onboarding-step .auth-field textarea,
.onboarding-step .auth-field select {
  display: block;
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.onboarding-step .auth-field input:focus,
.onboarding-step .auth-field textarea:focus,
.onboarding-step .auth-field select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 15%, transparent);
}

.onboarding-step .auth-field textarea {
  min-height: 80px;
  resize: vertical;
  line-height: 1.5;
}

/* Persona cards */
.persona-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.persona-card {
  cursor: pointer;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md, 8px);
  padding: var(--space-4);
  background: var(--color-bg-surface);
  transition: all 0.15s ease;
}

.persona-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.persona-card:hover {
  border-color: var(--color-amber-border);
}

.persona-card.selected {
  border-color: var(--color-amber);
  background: var(--color-amber-dim);
}

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

.persona-emoji {
  display: block;
  font-size: 1.75rem;
  margin-bottom: var(--space-2);
}

.persona-content strong {
  display: block;
  color: var(--color-text);
  font-size: 0.9375rem;
  margin-bottom: var(--space-1);
}

.persona-content p {
  color: var(--color-text-secondary);
  font-size: 0.8125rem;
  line-height: 1.5;
  margin: 0;
}

/* Radio group (notifications) */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.radio-option {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--color-text);
}

.radio-option input[type="radio"] {
  accent-color: var(--color-amber);
}

/* Field hints */
.field-hint {
  color: var(--color-text-secondary);
  font-size: 0.8125rem;
  margin: var(--space-1) 0 0;
}

/* Review */
.onboarding-review {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.review-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md, 8px);
}

.review-label {
  font-size: 0.8125rem;
  font-weight: var(--weight-regular);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-width: 100px;
  flex-shrink: 0;
}

.review-value {
  flex: 1;
  font-size: 0.875rem;
  color: var(--color-text);
}

.review-edit {
  font-size: 0.8125rem;
  color: var(--color-amber);
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-1) var(--space-2);
  border-radius: 4px;
  flex-shrink: 0;
  transition: background 0.1s;
}

.review-edit:hover {
  background: var(--color-amber-dim);
}

/* Nav buttons */
.onboarding-nav {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-6);
  gap: var(--space-3);
  padding: 0;
}

.onboarding-nav .btn-secondary {
  min-width: 100px;
}

.onboarding-nav .btn-primary {
  margin-left: auto;
  min-width: 140px;
}

/* Setup guide (reuse) */
.setup-guide {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md, 8px);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
}

.setup-guide h3 {
  font-size: 0.875rem;
  font-weight: var(--weight-regular);
  color: var(--color-text);
  margin: 0 0 var(--space-3);
}

.setup-steps {
  padding-left: var(--space-5);
  margin: 0;
}

.setup-steps li {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: var(--space-2);
}

/* Shake animation */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.shake {
  animation: shake 0.4s ease;
}

/* Light mode adjustments */
[data-theme="light"] .progress-dot {
  color: var(--color-muted);
  background: #f0eeeb;
  border-color: #e5e3e0;
}

[data-theme="light"] .progress-dot.active {
  background: var(--color-amber);
  border-color: var(--color-amber);
  color: #fff;
}

[data-theme="light"] .persona-card {
  background: #f8f7f5;
  border-color: #e5e3e0;
}

[data-theme="light"] .persona-card.selected {
  border-color: var(--color-amber);
  background: rgba(232, 165, 75, 0.08);
}

/* Mobile responsive */
@media (max-width: 640px) {
  .onboarding-container {
    padding: var(--space-4) var(--space-3);
  }
  .persona-grid {
    grid-template-columns: 1fr;
  }
  .review-row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }
  .review-label {
    min-width: auto;
  }
}

/* ─── Business Onboarding — Tier Badge ────────────────────────────────────── */

.tier-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
  padding: var(--space-1) var(--space-3);
  background: var(--color-amber-dim);
  border: 1px solid var(--color-amber-border);
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: var(--weight-regular);
  color: var(--color-amber);
}

.tier-badge-icon {
  font-size: 1rem;
}

/* ─── Business Onboarding — Agent Counter ─────────────────────────────────── */

.agent-counter {
  text-align: center;
  margin-bottom: var(--space-5);
}

.agent-counter-label {
  font-size: 0.9375rem;
  font-weight: var(--weight-regular);
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.agent-counter-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
}

.agent-counter-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  background: var(--color-bg-surface);
  color: var(--color-text);
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.agent-counter-btn:hover:not(:disabled) {
  border-color: var(--color-amber);
  color: var(--color-amber);
}

.agent-counter-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.agent-counter-value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-amber);
  min-width: 60px;
  text-align: center;
}

/* ─── Business Onboarding — Topology Preview ──────────────────────────────── */

.agent-topology-preview {
  margin-bottom: var(--space-4);
}

.topology-tree {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.topology-node {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md, 8px);
  font-size: 0.8125rem;
  font-weight: var(--weight-regular);
}

.orchestrator-node {
  background: var(--color-amber-dim);
  border: 1px solid var(--color-amber-border);
  color: var(--color-amber);
  font-weight: var(--weight-regular);
}

.specialist-node {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
}

.topology-branches {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
}

.topology-icon {
  font-size: 0.875rem;
}

/* ─── Business Onboarding — Role Cards ────────────────────────────────────── */

.agent-role-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md, 8px);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
  background: var(--color-bg-surface);
}

.orchestrator-card {
  border-color: var(--color-amber-border);
  background: var(--color-amber-dim);
}

.agent-role-header {
  margin-bottom: var(--space-3);
}

.agent-role-badge {
  display: inline-block;
  padding: var(--space-1) var(--space-2);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.orchestrator-badge {
  background: var(--color-amber);
  color: var(--color-djup);
}

.specialist-badge {
  background: var(--color-border);
  color: var(--color-text);
}

/* ─── Business Onboarding — Template Pills ────────────────────────────────── */

.role-templates {
  margin-top: var(--space-3);
}

.template-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.template-pill {
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: var(--color-bg-surface);
  color: var(--color-text);
  font-size: 0.8125rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.template-pill:hover {
  border-color: var(--color-amber);
  color: var(--color-amber);
}

/* ─── Business Onboarding — Info Panel ────────────────────────────────────── */

.info-panel {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md, 8px);
  margin-top: var(--space-3);
}

.info-panel-icon {
  font-size: 1.125rem;
  flex-shrink: 0;
}

.info-panel p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* ─── Business Onboarding — Light Mode ────────────────────────────────────── */

[data-theme="light"] .agent-counter-btn {
  background: #f8f7f5;
  border-color: #e5e3e0;
}

[data-theme="light"] .agent-role-card {
  background: #f8f7f5;
  border-color: #e5e3e0;
}

[data-theme="light"] .orchestrator-card {
  background: rgba(232, 165, 75, 0.06);
  border-color: rgba(232, 165, 75, 0.3);
}

[data-theme="light"] .specialist-node {
  background: #f8f7f5;
  border-color: #e5e3e0;
}

[data-theme="light"] .template-pill {
  background: #f8f7f5;
  border-color: #e5e3e0;
}

[data-theme="light"] .info-panel {
  background: #f8f7f5;
  border-color: #e5e3e0;
}

/* ─── Business Onboarding — Mobile ────────────────────────────────────────── */

@media (max-width: 640px) {
  .topology-branches {
    flex-direction: column;
    align-items: center;
  }

  .agent-counter-value {
    font-size: 2rem;
  }
}

/* ─── Business Onboarding — Hints ─────────────────────────────────────────── */

.business-hint {
  color: var(--color-amber);
  font-size: 0.8125rem;
  font-style: italic;
  margin-top: var(--space-2);
}

/* ─── Customer Dashboard ──────────────────────────────────────────────────── */

.dashboard-container {
  max-width: 960px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-4);
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
  gap: var(--space-4);
}

.dashboard-header h1 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}

.dashboard-subtitle {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  margin: var(--space-1) 0 0;
}

.dashboard-nudge {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--color-amber-dim);
  border: 1px solid var(--color-amber-border);
  border-radius: var(--radius-md, 8px);
  margin-bottom: var(--space-6);
}

.nudge-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.nudge-text {
  flex: 1;
}

.nudge-text strong {
  display: block;
  color: var(--color-text);
  font-size: 0.9375rem;
  margin-bottom: var(--space-1);
}

.nudge-text p {
  color: var(--color-text-secondary);
  font-size: 0.8125rem;
  margin: 0;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

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

.dashboard-card h2 {
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.stat-card {
  padding: var(--space-4);
  text-align: center;
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-amber);
}

.stat-label {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  margin-top: var(--space-1);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-section {
  padding: var(--space-5);
  margin-bottom: var(--space-4);
}

.admin-section h2 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: var(--weight-regular);
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 var(--space-4);
}

.agent-status-display {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.agent-status-indicator {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.status-online {
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.4);
}

.status-dot.status-offline {
  background: #ef4444;
}

.status-dot.status-unknown {
  background: var(--color-muted);
}

.status-text {
  font-size: 0.9375rem;
  font-weight: var(--weight-regular);
  color: var(--color-text);
}

.agent-status-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.status-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border);
}

.status-detail-row:last-child {
  border-bottom: none;
}

.status-detail-label {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
}

.status-detail-value {
  font-size: 0.875rem;
  color: var(--color-text);
}

.text-success { color: #22c55e; }
.text-warning { color: var(--color-amber); }

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.skill-badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.8125rem;
  color: var(--color-text);
}

.empty-state {
  color: var(--color-text-secondary);
  font-size: 0.8125rem;
  font-style: italic;
}

.btn-sm {
  font-size: 0.8125rem;
  padding: var(--space-2) var(--space-3);
  margin-top: var(--space-3);
}

@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .dashboard-nudge {
    flex-direction: column;
    text-align: center;
  }
}

.admin-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.admin-table th {
  text-align: left;
  padding: var(--space-2) var(--space-3);
  color: var(--color-text-secondary);
  font-size: 0.75rem;
  font-weight: var(--weight-regular);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--color-border);
}

.admin-table td {
  padding: var(--space-3);
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

.admin-table tbody tr:hover {
  background: var(--color-amber-dim);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: var(--weight-regular);
}

.badge-green {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
}

.badge-amber {
  background: var(--color-amber-dim);
  color: var(--color-amber);
}

.badge-grey {
  background: rgba(138, 130, 120, 0.12);
  color: var(--color-text-secondary);
}

.manifest-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
}

.manifest-pre {
  background: var(--color-djup);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md, 8px);
  padding: var(--space-4);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--color-text);
  line-height: 1.6;
  margin: 0;
}

.btn-text {
  background: none;
  border: none;
  color: var(--color-amber);
  cursor: pointer;
  font-size: 0.8125rem;
  padding: var(--space-1) var(--space-2);
}

.btn-text:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Cancel flow ──────────────────────────────────────────────────────────── */
.cancel-main { padding-top: 100px; min-height: 100vh; }
.cancel-container { max-width: 520px; margin: 0 auto; padding: 0 20px 60px; }
.cancel-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
}
.cancel-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: var(--weight-regular);
  color: var(--color-text-primary);
  margin: 0 0 16px;
}
.cancel-body, .cancel-note {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: 0 0 24px;
}
.cancel-note { font-size: 0.85rem; color: var(--color-text-muted); margin-top: 16px; }
.cancel-subtitle { font-size: 0.9rem; color: var(--color-text-muted); margin: 0 0 20px; }
.cancel-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.cancel-actions .btn-danger {
  background: var(--color-danger, #ef4444);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: var(--weight-regular);
  cursor: pointer;
  transition: background 0.15s;
}
.cancel-actions .btn-danger:hover { background: #dc2626; }
.cancel-actions .btn-secondary,
.cancel-retention-options .btn-secondary {
  background: var(--color-bg-card);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: var(--weight-regular);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  display: block;
  transition: border-color 0.15s;
}
.cancel-actions .btn-secondary:hover,
.cancel-retention-options .btn-secondary:hover { border-color: var(--color-accent); }
.cancel-retention-options { display: flex; flex-direction: column; gap: 12px; margin: 20px 0; }
.cancel-retention-options .btn-primary {
  background: var(--color-accent);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: var(--weight-regular);
  cursor: pointer;
}
.cancel-text-btn {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  margin-top: 12px;
  padding: 8px;
}
.cancel-text-btn:hover { color: var(--color-text-secondary); }

/* Survey options */
.cancel-survey-options { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; text-align: left; }
.cancel-survey-option {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--color-text-primary);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
}
.cancel-survey-option:hover { border-color: var(--color-accent); }
.cancel-survey-option.selected {
  border-color: var(--color-accent);
  background: rgba(232, 165, 75, 0.08);
}
.cancel-freetext-label { display: block; text-align: left; font-size: 0.85rem; color: var(--color-text-muted); margin: 16px 0 6px; }
.cancel-freetext {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-bg);
  color: var(--color-text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  resize: vertical;
}
.cancel-freetext:focus { border-color: var(--color-accent); outline: none; }

/* Farewell */
.cancel-farewell .cancel-check {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(34, 197, 94, 0.12); color: #22c55e;
  font-size: 24px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.cancel-resubscribe-hint { font-size: 0.9rem; color: var(--color-text-muted); margin: 20px 0 12px; }
.cancel-resubscribe {
  display: inline-block;
  background: var(--color-accent); color: #fff;
  padding: 12px 28px; border-radius: 10px;
  font-weight: var(--weight-regular); font-size: 0.95rem;
  text-decoration: none;
  transition: opacity 0.15s;
}
.cancel-resubscribe:hover { opacity: 0.9; }
.cancel-closing { font-size: 0.85rem; color: var(--color-text-muted); margin-top: 24px; }

/* Error / Loading */
.cancel-error { text-align: center; padding: 40px; }
.cancel-error p { color: var(--color-danger, #ef4444); margin-bottom: 16px; }
.cancel-loading { display: flex; justify-content: center; align-items: center; min-height: 200px; }

/* Mobile */
@media (max-width: 480px) {
  .cancel-card { padding: 28px 20px; }
  .cancel-title { font-size: 1.25rem; }
}

/* ── Upgrade flow ─────────────────────────────────────────────────────────── */
.upgrade-main { padding-top: 100px; min-height: 100vh; }
.upgrade-container { max-width: 600px; margin: 0 auto; padding: 0 20px 60px; }
.upgrade-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 40px 32px;
}
.upgrade-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: var(--weight-regular);
  color: var(--color-text-primary);
  margin: 0 0 8px;
  text-align: center;
}
.upgrade-subtitle {
  font-size: 1rem;
  color: var(--color-text-secondary);
  text-align: center;
  margin: 0 0 24px;
}
.upgrade-pitch {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--color-text-secondary);
  margin: 0 0 24px;
  padding: 16px;
  background: rgba(232, 165, 75, 0.06);
  border-radius: 12px;
  border-left: 3px solid var(--color-accent);
}
.upgrade-section-label {
  font-size: 0.85rem;
  font-weight: var(--weight-regular);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  margin: 0 0 12px;
}
.upgrade-comparison { margin: 0 0 24px; }
.upgrade-table-wrap { overflow-x: auto; }
.upgrade-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.upgrade-table th {
  text-align: left;
  padding: 8px 12px;
  font-weight: var(--weight-regular);
  color: var(--color-text-muted);
  font-size: 0.8rem;
  border-bottom: 1px solid var(--color-border);
}
.upgrade-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-primary);
}
.upgrade-table .upgrade-feature { font-weight: var(--weight-regular); }
.upgrade-table .upgrade-current { color: var(--color-text-muted); }
.upgrade-table .upgrade-new { color: var(--color-accent); font-weight: var(--weight-regular); }
.upgrade-col-current { min-width: 100px; }
.upgrade-col-upgrade { min-width: 120px; }

.upgrade-unchanged { margin: 0 0 24px; }
.upgrade-unchanged-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.upgrade-unchanged-list li {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  background: var(--color-bg);
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

.upgrade-onboarding {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: 0 0 24px;
  padding: 12px 16px;
  background: var(--color-bg);
  border-radius: 10px;
  border: 1px solid var(--color-border);
}

.upgrade-pricing {
  text-align: center;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.upgrade-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-primary);
}
.upgrade-founding {
  font-size: 0.9rem;
  color: var(--color-accent);
  font-weight: var(--weight-regular);
}
.upgrade-proration {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.upgrade-actions { text-align: center; margin-top: 24px; }
.upgrade-cta {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: var(--weight-regular);
  cursor: pointer;
  transition: opacity 0.15s;
  width: 100%;
}
.upgrade-cta:hover { opacity: 0.9; }
.upgrade-cta:disabled { cursor: not-allowed; }
.upgrade-cta-sub {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 8px;
}
.upgrade-cancel {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-decoration: underline;
}
.upgrade-cancel:hover { color: var(--color-text-secondary); }
.upgrade-learn-more {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--color-accent);
  text-align: center;
  width: 100%;
}

/* Upgrade success */
.upgrade-success .upgrade-card { text-align: center; }
.upgrade-success .upgrade-check {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(34, 197, 94, 0.12); color: #22c55e;
  font-size: 24px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.upgrade-success .upgrade-body {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0 0 24px;
}

/* Error / Loading */
.upgrade-error { text-align: center; padding: 40px; }
.upgrade-error p { color: var(--color-danger, #ef4444); margin-bottom: 16px; }
.upgrade-loading { display: flex; justify-content: center; align-items: center; min-height: 200px; }

@media (max-width: 480px) {
  .upgrade-card { padding: 28px 16px; }
  .upgrade-title { font-size: 1.25rem; }
  .upgrade-table { font-size: 0.8rem; }
  .upgrade-table th, .upgrade-table td { padding: 8px 6px; }
}

/* --- What Is an Agent section --- */

#what-is-an-agent {
  background: var(--color-bg);
  border-top: var(--border-subtle);
}

#what-is-an-agent .section-kicker {
  color: var(--color-accent);
}

/* --- What Is an Agent — Scenario Cards --- */
.agent-scenarios {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
  margin-top: var(--space-8);
}

/* Persona rows: image top aligns with "Before stomme.ai" label */
#agent-scenarios .feature-row {
  align-items: start;
}

#agent-scenarios .feature-card {
  padding-top: 3.2rem; /* offset past kicker + h3 to align with Before label */
}

/* Each scenario is a feature-row style layout: image left, text right (alternating) */
.scenario-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scenario-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Alternate direction like feature-rows */
.scenario-card:nth-child(even) {
  direction: rtl;
}
.scenario-card:nth-child(even) > * {
  direction: ltr;
}

/* Photo side — large editorial image */
.scenario-photo-col {
  position: relative;
}

.scenario-persona-photo {
  width: 100%;
  max-width: 560px;
  height: auto;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg, 12px);
  object-fit: cover;
}

/* Text side */
.scenario-text-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.scenario-persona-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.scenario-persona-name {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: var(--weight-medium);
  color: var(--color-text);
  letter-spacing: var(--tracking-display);
}

.scenario-persona-title {
  font-size: var(--text-body);
  color: var(--color-text-secondary);
}

.scenario-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: var(--text-label);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  background: rgba(var(--color-accent-rgb, 245, 158, 11), 0.1);
  color: var(--color-accent);
  text-decoration: none;
  transition: background var(--transition-base);
  white-space: nowrap;
}

.scenario-tier-badge:hover {
  background: rgba(var(--color-accent-rgb, 245, 158, 11), 0.2);
}

/* Before / After blocks */
.scenario-before,
.scenario-after {
  padding: var(--space-4) 0;
}

.scenario-before {
  border-bottom: var(--border-subtle);
}

.feature-text strong.scenario-label {
  font-size: var(--text-label);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  margin-bottom: var(--space-2);
  color: var(--color-text) !important;
  display: inline-block;
}

.scenario-before .scenario-text {
  font-size: var(--text-body);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
}

.scenario-after .scenario-text {
  font-size: var(--text-body);
  line-height: var(--leading-relaxed);
  color: var(--color-text);
}

.scenario-footer {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-3);
}

.scenario-time-saved {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  color: var(--color-accent);
}

.scenario-time-saved::before {
  content: '⏱';
}

.agent-closing {
  text-align: center;
  margin-top: var(--space-10);
}

.agent-closing p {
  font-size: var(--text-body-lg);
  color: var(--color-text-secondary);
  max-width: 52ch;
  margin: 0 auto var(--space-5);
  line-height: var(--leading-relaxed);
}

/* Mobile: stack photo above text */
@media (max-width: 768px) {
  .scenario-card {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .scenario-card:nth-child(even) {
    direction: ltr;
  }

  .scenario-persona-photo {
    width: 48px;
    height: 48px;
  }

  .scenario-before,
  .scenario-after {
    padding: var(--space-4);
  }

  .scenario-footer {
    padding: var(--space-3) var(--space-4);
  }
}

/* B-3: Tier context badge on signup page */
.tier-context {
  margin-bottom: var(--space-m);
}
.tier-badge-signup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xxs);
  padding: var(--space-s) var(--space-m);
  border-radius: var(--radius-m);
  background: var(--surface-muted);
  border: 1px solid var(--border);
}
.tier-badge-name {
  font-weight: var(--weight-regular);
  font-size: var(--text-m);
  color: var(--text-primary);
}
.tier-badge-price {
  font-weight: 700;
  font-size: var(--text-l);
  color: var(--accent);
}
.tier-badge-standard {
  font-size: var(--text-s);
  color: var(--text-muted);
}

/* Onboarding resume banner */
.onboarding-resume-banner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 20px; margin-bottom: 20px;
  background: rgba(93, 194, 72, 0.08); border: 1px solid rgba(93, 194, 72, 0.25);
  border-radius: 10px; font-size: 14px; color: var(--text-main, #e0e0e0);
}
.onboarding-resume-banner .btn-sm { padding: 6px 16px; font-size: 13px; white-space: nowrap; }


/* Telegram bot verification */
.verify-success-card {
  padding: 12px 16px; border-radius: 8px;
  background: rgba(93, 194, 72, 0.08); border: 1px solid rgba(93, 194, 72, 0.25);
  color: var(--text-main, #e0e0e0);
}
.verify-success-card a { color: var(--accent-green, #5dc248); text-decoration: underline; }
.verify-error-card {
  padding: 12px 16px; border-radius: 8px;
  background: rgba(239, 68, 68, 0.08); border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
}
.verify-message-section { padding: 12px 0; }
.spinner-sm {
  display: inline-block; width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.2); border-top-color: var(--accent-green, #5dc248);
  border-radius: 50%; animation: spin 0.8s linear infinite; vertical-align: middle; margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Permissions step (onboarding + MC) ─────────────────────── */
.permissions-category { margin-bottom: 24px; }
.permissions-category-label { font-size: 14px; font-weight: var(--weight-medium); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.perm-lock-icon { font-size: 16px; }
.permissions-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 600px) { .permissions-grid { grid-template-columns: 1fr; } }

.perm-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color 0.2s, background 0.2s;
}
.perm-card.perm-required {
  background: var(--bg-secondary, rgba(255,255,255,0.03));
  opacity: 0.85;
}
.perm-card.perm-toggleable {
  cursor: pointer;
}
.perm-card.perm-toggleable:hover {
  border-color: var(--accent);
  background: var(--bg-secondary, rgba(255,255,255,0.03));
}
.perm-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.perm-icon { font-size: 20px; flex-shrink: 0; }
.perm-name { font-weight: var(--weight-regular); font-size: 14px; flex: 1; }
.perm-desc { font-size: 12px; color: var(--text-secondary); margin: 0; line-height: 1.4; }
.perm-badge { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 6px; margin-top: 8px; }
.perm-badge-required { background: var(--bg-secondary, rgba(255,255,255,0.06)); color: var(--text-secondary); }

/* Toggle switch */
.perm-toggle {
  appearance: none;
  -webkit-appearance: none;
  width: 36px;
  height: 20px;
  background: var(--border);
  border-radius: 10px;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}
.perm-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  transition: transform 0.2s;
}
.perm-toggle:checked {
  background: var(--accent, #d4a45a);
}
.perm-toggle:checked::after {
  transform: translateX(16px);
}

/* Time-saved badge for features section */
.time-saved { display:inline-block; background:var(--color-amber); color:var(--color-bg); padding:4px 12px; border-radius:20px; font-size:0.85rem; font-weight:600; margin-top:8px; }

/* Use case tiles section */
.tiles-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:1.5rem; margin-top:2rem; }
@media(max-width:768px){ .tiles-grid { grid-template-columns:repeat(2,1fr); } }
@media(max-width:480px){ .tiles-grid { grid-template-columns:1fr; } }
.use-case-tile { background:var(--color-surface); border:1px solid var(--color-border); border-radius:12px; padding:1.5rem; text-align:center; }
.tile-icon { font-size:2rem; display:block; margin-bottom:0.75rem; }
.tile-label { font-size:1rem; font-weight:600; margin-bottom:0.5rem; color:var(--color-text-primary); }
.tile-desc { font-size:0.9rem; color:var(--color-text-secondary); line-height:1.5; }

/* Compare page */
.compare-section { padding-bottom: var(--space-8); }
.compare-body { max-width: 700px; font-size: 1.1rem; line-height: 1.7; color: var(--color-text-secondary); margin-bottom: var(--space-5); }
.compare-table th:first-child { text-align: left; width: 30%; }
.compare-table .compare-label { font-weight: 600; color: var(--color-text-primary); }
.compare-table .compare-them { color: var(--color-text-secondary); }
.compare-table .compare-us { color: var(--color-accent); font-weight: 500; }
.compare-cta { margin-top: var(--space-6); text-align: center; }

/* ===========================
   About Page
   =========================== */
.about-section {
  /* standard section spacing */
}

.about-body {
  max-width: 720px;
  font-size: var(--text-lg);
  line-height: 1.8;
  color: var(--color-body);
}

.about-body p {
  margin-bottom: var(--space-5);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-6);
}

.value-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}

.value-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.value-card p {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-body);
  margin: 0;
}

/* Approach points (about page) */
#approach-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-6);
}
.approach-point {
  padding: var(--space-5);
  border-radius: var(--radius-lg, 12px);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}
.approach-point h3 {
  font-size: var(--text-lg);
  margin: 0 0 var(--space-2) 0;
  color: var(--color-heading);
}
.approach-point p {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-body);
  margin: 0;
}
@media (max-width: 640px) {
  #approach-points { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
}
.compare-cta p { font-size: 1.1rem; font-weight: 500; margin-bottom: var(--space-4); }

/* ===========================
   FAQ Page
   =========================== */
.faq-layout {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.faq-section {
  /* nothing special, just grouping */
}

.faq-section-title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--color-border);
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-2);
  overflow: hidden;
}

.faq-item details {
  /* Use native details/summary for no-JS support */
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: var(--space-5) var(--space-6);
  font-size: var(--text-base);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  user-select: none;
  transition: background var(--transition-fast);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  flex-shrink: 0;
  color: var(--color-muted);
  transition: transform var(--transition-fast);
}

.faq-item details[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  background: var(--color-surface-hover);
}

.faq-answer {
  padding: 0 var(--space-6) var(--space-5) var(--space-6);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-body);
}

.faq-answer a {
  color: var(--color-accent);
  text-decoration: none;
}

.faq-answer a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .faq-item summary {
    padding: var(--space-4) var(--space-5);
  }
  .faq-answer {
    padding: 0 var(--space-5) var(--space-4) var(--space-5);
  }
}

/* ===== Cookie Consent Banner ===== */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: rgba(18, 18, 24, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding: var(--space-4) var(--space-6);
  flex-wrap: wrap;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-consent-banner.cookie-consent-hidden {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}

.cookie-consent-content {
  flex: 1;
  min-width: 200px;
}

.cookie-consent-headline {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 0.25rem;
}

.cookie-consent-message {
  margin: 0;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.75);
}

.cookie-consent-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-shrink: 0;
}

.cookie-consent-btn {
  flex-shrink: 0;
  font-size: var(--text-sm);
  padding: 0.4rem 1.2rem;
  cursor: pointer;
}

.cookie-consent-link {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  white-space: nowrap;
}

.cookie-consent-link:hover {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
}

@media (max-width: 640px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
  }
  .cookie-consent-actions {
    flex-wrap: wrap;
  }
}

/* ===== Usage Stats Panel (nils-335) ===== */
.usage-stats-panel {
  margin-bottom: var(--space-5);
}

.usage-stats-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.usage-stats-header h2 {
  margin: 0;
}

.usage-stats-tier-badge {
  font-size: var(--text-xs, 0.75rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 4px;
  padding: 0.2rem 0.6rem;
}

.usage-stats-loading {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding: var(--space-4) 0;
}

.usage-stats-error {
  font-size: var(--text-sm);
  color: var(--color-danger, #ef4444);
  padding: var(--space-4) 0;
}

.usage-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-4);
}

.usage-stat-card {
  background: var(--color-surface-raised, rgba(255,255,255,0.04));
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.usage-stat-label {
  font-size: var(--text-xs, 0.75rem);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.usage-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}

.usage-stat-bar-track {
  margin-top: 0.5rem;
  height: 4px;
  background: var(--color-border);
  border-radius: 2px;
  overflow: hidden;
}

.usage-stat-bar-fill {
  height: 100%;
  background: var(--color-success, #22c55e);
  border-radius: 2px;
  transition: width 0.4s ease;
}

/* ===== Changelog Page ===== */
.changelog-layout {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.changelog-entry {
  border-radius: var(--radius-xl, 1rem);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--color-surface, rgba(255,255,255,0.03));
  padding: var(--space-6) var(--space-8);
  overflow: hidden;
}

.changelog-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.changelog-version {
  font-size: var(--text-xl);
  font-weight: 700;
  margin: 0;
  flex: 1;
}

.changelog-date {
  font-size: var(--text-sm);
  color: var(--color-muted, rgba(255,255,255,0.5));
}

.changelog-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  text-transform: uppercase;
}

.tag-launch { background: rgba(99, 102, 241, 0.2); color: #a5b4fc; border: 1px solid rgba(99, 102, 241, 0.4); }
.tag-new    { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.3); }
.tag-improved { background: rgba(59, 130, 246, 0.15); color: #93c5fd; border: 1px solid rgba(59, 130, 246, 0.3); }
.tag-fixed  { background: rgba(234, 179, 8, 0.15); color: #fde68a; border: 1px solid rgba(234, 179, 8, 0.3); }
.tag-security { background: rgba(239, 68, 68, 0.15); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.3); }

.changelog-sections {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.changelog-section h3 {
  font-size: var(--text-base);
  font-weight: 700;
  margin: 0 0 var(--space-4);
  color: var(--color-heading, #fff);
}

.changelog-section ul {
  margin: 0;
  padding-left: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.changelog-section li {
  font-size: var(--text-sm);
  color: var(--color-body, rgba(255,255,255,0.75));
  line-height: 1.6;
}

.changelog-guide-box {
  max-width: 860px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-8);
}

.changelog-guide-box h2 {
  font-size: var(--text-lg);
  margin-top: 0;
  margin-bottom: var(--space-4);
}

.changelog-legend {
  margin: var(--space-4) 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.changelog-legend li {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-body, rgba(255,255,255,0.75));
}

@media (max-width: 640px) {
  .changelog-entry {
    padding: var(--space-5);
  }
  .changelog-guide-box {
    padding: var(--space-5);
  }
}

/* ============================================================
   Help Page (nils-358)
   ============================================================ */

.help-main {
  padding-top: var(--space-6, 24px);
  padding-bottom: var(--space-10, 80px);
}

.help-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--space-5, 20px);
}

.help-header {
  margin-bottom: var(--space-8, 48px);
}

.help-header h1 {
  font-size: var(--text-3xl, 2rem);
  font-weight: 700;
  margin-bottom: var(--space-2, 8px);
}

.help-header p {
  color: var(--color-body, rgba(255,255,255,0.75));
  font-size: var(--text-lg, 1.125rem);
}

.help-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-8, 48px);
  align-items: start;
}

/* Sidebar */
.help-sidebar {
  position: sticky;
  top: calc(var(--nav-height, 60px) + var(--space-4, 16px));
}

.help-sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1, 4px);
}

.help-sidebar-item {
  border-radius: 8px;
  overflow: hidden;
}

.help-sidebar-btn {
  display: flex;
  align-items: center;
  gap: var(--space-3, 12px);
  width: 100%;
  padding: var(--space-3, 12px) var(--space-4, 16px);
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  font-size: var(--text-sm, 0.875rem);
  color: var(--color-body, rgba(255,255,255,0.75));
  transition: background 0.15s, color 0.15s;
}

.help-sidebar-btn:hover {
  background: var(--color-surface-raised, rgba(255,255,255,0.06));
  color: var(--color-text, #fff);
}

.help-sidebar-active .help-sidebar-btn {
  background: var(--color-accent-faint, rgba(0,174,239,0.12));
  color: var(--color-accent, #00AEEF);
  font-weight: 600;
}

.help-category-icon {
  font-size: 1.1em;
  flex-shrink: 0;
}

.help-category-label {
  flex: 1;
}

/* Articles area */
.help-articles {
  min-height: 300px;
}

.help-articles-heading {
  font-size: var(--text-xl, 1.25rem);
  font-weight: 700;
  margin-bottom: var(--space-6, 24px);
  display: flex;
  align-items: center;
  gap: var(--space-2, 8px);
}

.help-back-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1, 4px);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-accent, #00AEEF);
  font-size: var(--text-sm, 0.875rem);
  padding: 0;
  margin-bottom: var(--space-5, 20px);
  text-decoration: none;
}

.help-back-btn:hover {
  text-decoration: underline;
}

.help-empty-state {
  color: var(--color-body, rgba(255,255,255,0.6));
  font-style: italic;
  padding: var(--space-5, 20px) 0;
}

/* Category grid (shown when no category selected) */
.help-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-4, 16px);
}

.help-category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2, 8px);
  padding: var(--space-6, 24px) var(--space-4, 16px);
  background: var(--color-surface, rgba(255,255,255,0.04));
  border: 1px solid var(--color-border, rgba(255,255,255,0.08));
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s, border-color 0.15s;
}

.help-category-card:hover {
  background: var(--color-surface-raised, rgba(255,255,255,0.08));
  border-color: var(--color-accent, #00AEEF);
}

.help-category-icon-lg {
  font-size: 2rem;
  display: block;
}

.help-category-desc {
  font-size: var(--text-sm, 0.875rem);
  color: var(--color-body, rgba(255,255,255,0.5));
  line-height: 1.5;
  max-width: 28ch;
}

.help-category-count {
  font-size: var(--text-xs, 0.75rem);
  color: var(--color-body, rgba(255,255,255,0.5));
}

.help-intro {
  font-size: var(--text-base, 1rem);
  color: var(--color-body, rgba(255,255,255,0.6));
  line-height: 1.6;
  max-width: 60ch;
  margin-top: var(--space-3, 12px);
}

/* Mobile responsive */
@media (max-width: 700px) {
  .help-layout {
    grid-template-columns: 1fr;
    gap: var(--space-5, 20px);
  }

  .help-sidebar {
    position: static;
  }

  .help-sidebar-list {
    flex-direction: row;
    overflow-x: auto;
    gap: var(--space-2, 8px);
    padding-bottom: var(--space-2, 8px);
  }

  .help-sidebar-item {
    flex-shrink: 0;
  }

  .help-sidebar-btn {
    white-space: nowrap;
    padding: var(--space-2, 8px) var(--space-3, 12px);
  }
}

/* ============================================================
   V2 REDESIGN — Light-first, spacious, animated
   All classes prefixed with v2- to avoid conflicts
   Author: Nils Ekström, CTO — 2026-03-27
   ============================================================ */

/* ── V2 Scroll Reveal Animation ────────────────────────────────────────────── */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 500ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ── V2 Navigation ─────────────────────────────────────────────────────────── */

.nav-v2 {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 72px;
  display: flex;
  align-items: center;
  transition: height 200ms ease, background 200ms ease, box-shadow 200ms ease;
}

.nav-v2--scrolled {
  height: 52px;
  background: var(--color-bg);
  box-shadow: 0 1px 0 var(--color-border);
}

.nav-v2__inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-v2__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-v2__brand img {
  height: 20px;
}

.nav-v2__links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-v2__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: opacity 200ms;
  opacity: 0.8;
}

.nav-v2__links a:hover {
  opacity: 1;
  color: var(--color-text);
}

.nav-v2__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-v2__cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  background: var(--color-accent);
  color: var(--color-text-on-amber, #1C1A18);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 100px;
  text-decoration: none;
  transition: background 200ms ease, transform 200ms ease;
}

.nav-v2__cta:hover {
  background: var(--color-accent-hover);
  transform: scale(1.02);
}

.nav-v2__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
  padding: 6px;
}

/* Mobile nav overlay */
.nav-v2__mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--color-bg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.nav-v2__mobile.is-open {
  display: flex;
}

.nav-v2__mobile-links {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.nav-v2__mobile-links a {
  font-size: 1.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.nav-v2__mobile-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
  padding: 8px;
}

/* ── V2 Layout Helpers ──────────────────────────────────────────────────────── */

.v2-section {
  padding: min(12rem, 15vh) 0;
}

.v2-section--sm {
  padding: min(6rem, 8vh) 0;
}

.v2-section--dark {
  background: #1C1A18;
  color: var(--color-text-inverse, #F2EDE4);
}

.v2-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.v2-container--narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.v2-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
}

.v2-section--dark .v2-kicker {
  color: rgba(242, 237, 228, 0.6);
}

.v2-heading {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
  color: var(--color-text);
  margin: 0 0 24px;
}

.v2-heading--xl {
  font-size: clamp(2.25rem, 5vw, 4rem);
}

.v2-heading--lg {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.v2-heading--md {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

.v2-section--dark .v2-heading {
  color: var(--color-text-inverse, #F2EDE4);
}

.v2-body {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  max-width: 640px;
}

.v2-body--lg {
  font-size: 1.125rem;
}

.v2-divider {
  width: 100%;
  height: 1px;
  background: var(--color-border);
  margin: 0;
  border: none;
}

/* ── V2 Buttons ────────────────────────────────────────────────────────────── */

.v2-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--color-accent);
  color: var(--color-text-on-amber, #1C1A18);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 100px;
  text-decoration: none;
  transition: background 200ms ease, transform 200ms ease;
}

.v2-btn-primary:hover {
  background: var(--color-accent-hover);
  transform: scale(1.02);
}

.v2-btn-primary--lg {
  padding: 16px 36px;
  font-size: 1rem;
}

.v2-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 24px;
  color: var(--color-text-secondary);
  font-weight: 500;
  font-size: 0.9375rem;
  border-radius: 100px;
  border: 1px solid var(--color-border);
  text-decoration: none;
  transition: border-color 200ms ease, color 200ms ease;
}

.v2-btn-ghost:hover {
  border-color: var(--color-text-secondary);
  color: var(--color-text);
}

/* ── V2 Hero ───────────────────────────────────────────────────────────────── */

.hero-v2 {
  padding: 140px 0 100px;
  background: var(--color-bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-v2__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-v2 .v2-heading--xl {
  margin-bottom: 20px;
}

.hero-v2 .v2-heading--xl em {
  font-style: italic;
  font-weight: 400;
}

.hero-v2__subtitle {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  max-width: 580px;
  margin: 0 auto 36px;
}

.hero-v2__ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

/* Telegram Chat Mockup */
.tg-chat {
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 48px rgba(28, 26, 24, 0.12), 0 2px 8px rgba(28, 26, 24, 0.06);
  overflow: hidden;
  text-align: left;
  border: 1px solid var(--color-border);
}

.tg-chat__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #f0f0f0;
  border-bottom: 1px solid #e0e0e0;
}

.tg-chat__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.tg-chat__name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: #1C1A18;
}

.tg-chat__status {
  font-size: 0.75rem;
  color: #4caf50;
  font-weight: 500;
}

.tg-chat__messages {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tg-chat__msg {
  max-width: 78%;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 400ms ease, transform 400ms ease;
}

.tg-chat__msg.is-visible {
  opacity: 1;
  transform: none;
}

.tg-chat__msg--agent {
  align-self: flex-start;
}

.tg-chat__msg--user {
  align-self: flex-end;
}

.tg-chat__msg--agent p {
  background: #f4f1eb;
  border: 1px solid #e8e2d9;
  border-radius: 4px 16px 16px 16px;
  padding: 10px 14px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #1C1A18;
  margin: 0;
}

.tg-chat__msg--user p {
  background: var(--color-accent);
  color: #1C1A18;
  border-radius: 16px 4px 16px 16px;
  padding: 10px 14px;
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
}

.tg-chat__time {
  display: block;
  font-size: 0.6875rem;
  color: var(--color-text-muted, #9E998F);
  margin-top: 4px;
  padding: 0 4px;
}

.tg-chat__msg--user .tg-chat__time {
  text-align: right;
}

/* ── V2 Trust Bar ───────────────────────────────────────────────────────────── */

.trust-v2 {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 20px 0;
  background: var(--color-bg-surface);
}

.trust-v2__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.trust-v2__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  font-weight: 500;
  white-space: nowrap;
}

.trust-v2__item::before {
  content: '✓';
  color: var(--color-accent);
  font-weight: 700;
}

/* ── V2 Feature Tiles ───────────────────────────────────────────────────────── */

.tiles-v2 {
  background: var(--color-bg-surface);
}

.tiles-v2__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.tile-v2 {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 24px;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.tile-v2:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(28, 26, 24, 0.08);
}

.tile-v2__vignette {
  height: 100px;
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-subtle);
  position: relative;
}

.tile-v2__kicker {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.tile-v2__title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-text);
  margin: 0 0 8px;
  line-height: 1.2;
}

.tile-v2__desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: 0;
}

/* Mini vignette: email inbox */
.vig-inbox {
  width: 100%;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vig-inbox__row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6875rem;
  padding: 3px 4px;
  border-radius: 3px;
}

.vig-inbox__row--strikethrough {
  opacity: 0.4;
  text-decoration: line-through;
}

.vig-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.vig-dot--urgent { background: #A8452E; }
.vig-dot--fyi { background: #7A736A; }
.vig-dot--handled { background: #4E9470; }

.vig-inbox__sender {
  font-weight: 600;
  color: var(--color-text);
  flex-shrink: 0;
  width: 52px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vig-inbox__subject {
  color: var(--color-text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

/* Mini vignette: calendar */
.vig-cal {
  width: 100%;
  padding: 6px 8px;
  font-size: 0.6875rem;
}

.vig-cal__header {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 4px;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.vig-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.vig-cal__day {
  text-align: center;
  padding: 2px;
  border-radius: 2px;
  color: var(--color-text-secondary);
  font-size: 0.625rem;
}

.vig-cal__day--conflict {
  background: rgba(168, 69, 46, 0.15);
  color: #A8452E;
  font-weight: 700;
  position: relative;
}

.vig-cal__day--resolved {
  background: rgba(78, 148, 112, 0.15);
  color: #4E9470;
  font-weight: 700;
}

.vig-cal__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 0.625rem;
  color: #4E9470;
  font-weight: 600;
}

/* Mini vignette: research card */
.vig-research {
  padding: 8px 10px;
  width: 100%;
}

.vig-research__title {
  font-weight: 700;
  font-size: 0.6875rem;
  color: var(--color-text);
  margin-bottom: 4px;
}

.vig-research__item {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 0.5625rem;
  color: var(--color-text-secondary);
  line-height: 1.4;
}

.vig-research__item::before {
  content: '•';
  color: var(--color-accent);
  flex-shrink: 0;
}

.vig-research__footer {
  margin-top: 6px;
  font-size: 0.5625rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border-subtle);
  padding-top: 4px;
}

/* Mini vignette: telegram preview */
.vig-tg {
  padding: 8px 10px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vig-tg__bubble {
  background: #f4f1eb;
  border: 1px solid #e8e2d9;
  border-radius: 3px 10px 10px 10px;
  padding: 6px 10px;
  font-size: 0.5625rem;
  color: #1C1A18;
  line-height: 1.4;
  max-width: 85%;
}

.vig-tg__time {
  font-size: 0.5rem;
  color: var(--color-text-muted);
  padding-left: 2px;
}

/* Mini vignette: draft */
.vig-draft {
  width: 100%;
  padding: 8px 10px;
}

.vig-draft__content {
  border: 1px dashed var(--color-accent);
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 0.5625rem;
  line-height: 1.5;
  color: var(--color-text-secondary);
  position: relative;
}

.vig-draft__badge {
  position: absolute;
  top: -8px;
  right: 4px;
  background: var(--color-accent);
  color: #1C1A18;
  font-size: 0.4375rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Mini vignette: file management */
.vig-files {
  width: 100%;
  padding: 8px 10px;
  display: flex;
  gap: 8px;
}

.vig-files__col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vig-files__label {
  font-size: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 3px;
}

.vig-files__item {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 0.5rem;
  color: var(--color-text-secondary);
  line-height: 1.4;
}

.vig-files__item--after {
  color: #4E9470;
}

/* ── V2 Deep Feature — Split Sections ──────────────────────────────────────── */

.feature-split-v2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.feature-split-v2--reversed .feature-split-v2__text {
  order: 2;
}

.feature-split-v2--reversed .feature-split-v2__visual {
  order: 1;
}

.feature-split-v2__text {
  max-width: 520px;
}

.feature-split-v2__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--color-bg-muted);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
}

.feature-split-v2__time-saved {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(78, 148, 112, 0.1);
  border: 1px solid rgba(78, 148, 112, 0.2);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #2D6644;
  margin-top: 20px;
}

.feature-split-v2__visual {
  position: relative;
}

/* Inbox mockup */
.inbox-mock {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(28, 26, 24, 0.1);
}

.inbox-mock__titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #f0f0f0;
  border-bottom: 1px solid #e0e0e0;
}

.inbox-mock__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.inbox-mock__dot:nth-child(1) { background: #ff5f57; }
.inbox-mock__dot:nth-child(2) { background: #ffbd2e; }
.inbox-mock__dot:nth-child(3) { background: #28c840; }

.inbox-mock__header-text {
  margin-left: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #666;
}

.inbox-mock__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid #f5f5f5;
  font-size: 0.8125rem;
}

.inbox-mock__row--expanded {
  flex-direction: column;
  align-items: stretch;
  background: #fafafa;
}

.inbox-mock__row-main {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.inbox-mock__sender {
  font-weight: 600;
  color: #1C1A18;
  width: 80px;
  flex-shrink: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.75rem;
}

.inbox-mock__subject {
  flex: 1;
  color: #3A3632;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.75rem;
}

.inbox-mock__label {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.inbox-mock__label--reply {
  background: rgba(168, 69, 46, 0.12);
  color: #A8452E;
}

.inbox-mock__label--fyi {
  background: rgba(122, 115, 106, 0.12);
  color: #5A5450;
}

.inbox-mock__label--handled {
  background: rgba(78, 148, 112, 0.12);
  color: #2D6644;
}

.inbox-mock__draft-banner {
  background: rgba(200, 132, 26, 0.08);
  border: 1px solid rgba(200, 132, 26, 0.2);
  border-radius: 4px;
  padding: 8px 10px;
  font-size: 0.6875rem;
  color: #7A5010;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.inbox-mock__draft-text {
  font-size: 0.6875rem;
  color: #5A5450;
  line-height: 1.5;
  padding: 6px 2px;
}

/* Activity timeline */
.timeline-mock {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(28, 26, 24, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-mock__item {
  display: flex;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border-subtle);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 400ms ease, transform 400ms ease;
}

.timeline-mock__item.is-visible {
  opacity: 1;
  transform: none;
}

.timeline-mock__item:last-child {
  border-bottom: none;
}

.timeline-mock__time {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  flex-shrink: 0;
  width: 56px;
  font-variant-numeric: tabular-nums;
}

.timeline-mock__icon {
  font-size: 1rem;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.timeline-mock__desc {
  font-size: 0.8125rem;
  color: var(--color-text);
  line-height: 1.5;
}

/* ── V2 How It Works ────────────────────────────────────────────────────────── */

.steps-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 64px;
}

.step-v2 {
  display: flex;
  flex-direction: column;
}

.step-v2__number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.step-v2__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-text);
  margin: 0 0 12px;
}

.step-v2__desc {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: 0;
}

.step-v2__connector {
  display: none;
}

/* ── V2 Final CTA ───────────────────────────────────────────────────────────── */

.cta-v2 {
  background: #1C1A18;
  padding: min(10rem, 14vh) 0;
  text-align: center;
}

.cta-v2__tg {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 16px 24px;
  margin-bottom: 40px;
  max-width: 360px;
}

.cta-v2__tg-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.cta-v2__tg-content {
  text-align: left;
}

.cta-v2__tg-name {
  font-size: 0.75rem;
  color: rgba(242, 237, 228, 0.5);
  margin-bottom: 2px;
}

.cta-v2__tg-msg {
  font-size: 0.9375rem;
  color: rgba(242, 237, 228, 0.9);
  font-weight: 500;
}

.cta-v2__heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #F2EDE4;
  margin: 0 0 16px;
  line-height: 1.05;
}

.cta-v2__sub {
  font-size: 1.0625rem;
  color: rgba(242, 237, 228, 0.6);
  margin: 0 0 36px;
}

.cta-v2__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 40px;
  background: var(--color-accent);
  color: #1C1A18;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 100px;
  text-decoration: none;
  transition: background 200ms ease, transform 200ms ease;
}

.cta-v2__btn:hover {
  background: var(--color-accent-hover);
  transform: scale(1.02);
}

/* ── V2 Footer ─────────────────────────────────────────────────────────────── */

/* footer-v2 inherits from .footer — just spacing adjustments */

/* ── V2 Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .feature-split-v2 {
    gap: 48px;
  }

  .tiles-v2__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .nav-v2__actions .nav-v2__cta {
    display: none;
  }

  .nav-v2__toggle {
    display: flex;
  }

  .hero-v2 {
    padding: 100px 0 60px;
  }

  .v2-section {
    padding: min(6rem, 10vh) 0;
  }

  .feature-split-v2 {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .feature-split-v2--reversed .feature-split-v2__text {
    order: 1;
  }

  .feature-split-v2--reversed .feature-split-v2__visual {
    order: 2;
  }

  .steps-v2 {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .tiles-v2__grid {
    grid-template-columns: 1fr;
  }

  .trust-v2__inner {
    gap: 16px;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
    flex-wrap: nowrap;
  }

  .hero-v2__ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 0 16px;
  }

  .v2-btn-primary,
  .v2-btn-ghost {
    justify-content: center;
    width: 100%;
  }

  .cta-v2__tg {
    max-width: 100%;
  }
}

