/* KodonKlasses marketing site theme (marketing pages only).
   Separate from the app's shared/theme.css — never loaded together
   with it on the same page. */

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

html {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

code, pre, .mono {
  font-family: 'JetBrains Mono', monospace;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

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

:focus-visible {
  outline: 2px solid var(--accent-glow);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Themes */
:root,
[data-theme="light"] {
  --bg: #FBF8F1;
  --surface: #FFFBF3;
  --surface-2: #F3ECD9;
  --border: #E6DBC3;
  --text: #1C1420;
  --text-muted: #6E5E68;
  --accent: #E0A340;
  --accent-hover: #C28828;
  --accent-glow: #F5C977;
  --accent-ink: #1C1420;
  --gold-band: #F6EFD9;
  --gold-band-border: #E6D3A3;
  --navy: #0B1120;
  --navy-hover: #1A2540;
}

[data-theme="dark"] {
  --bg: #0B1120;
  --surface: #121A2E;
  --surface-2: #1A2540;
  --border: #26314F;
  --text: #ECEFF6;
  --text-muted: #8A97B4;
  --accent: #E0A340;
  --accent-hover: #F2BC5C;
  --accent-glow: #FFD27A;
  --accent-ink: #0B1120;
  --gold-band: #14182B;
  --gold-band-border: #3A3416;
  --navy: #ECEFF6;
  --navy-hover: #8A97B4;
}

/* Layout */
.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}

@media (max-width: 768px) {
  .wrap { padding: 0 20px; }
}

/* Header — faint gold band, full light logo */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--gold-band);
  border-bottom: 1px solid var(--gold-band-border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  height: 80px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
}

/* Full logo, always the light version — swap the PNG to update branding */
.brand-logo { height: 52px; width: auto; }

/* Audience pill — centred */
.audience-switch {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--gold-band-border);
  border-radius: 100px;
  padding: 4px;
  margin: 0 auto;
}

.audience-btn {
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: none;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}

.audience-btn:hover { color: var(--text); }

.audience-btn.active {
  background: var(--accent);
  color: var(--accent-ink);
}

.site-nav {
  display: flex;
  gap: 16px;
  margin-left: auto;
  align-items: center;
}

.site-nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.92rem;
}

.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--text); }

.cta-cluster {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-left: 6px;
}

.nav-login {
  color: var(--text) !important;
  font-weight: 600 !important;
}

.btn-trial {
  background: #101014;
  color: var(--accent) !important;
  border: 1px solid #101014;
  padding: 9px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  transition: transform 0.15s, box-shadow 0.2s;
}

.btn-trial:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.theme-toggle {
  background: transparent;
  border: 1px solid var(--gold-band-border);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: var(--surface);
}

.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }

/* Footer */
.site-footer {
  margin-top: 56px;
  border-top: 1px solid var(--border);
  padding: 36px 0;
  background: var(--gold-band);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand .brand {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--text);
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 8px;
  max-width: 320px;
}

.footer-links {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-links h5 {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 6px; }
.footer-links a { color: var(--text); font-size: 0.9rem; }

/* Social — Instagram, X, TikTok */
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.social-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--gold-band-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, transform 0.15s;
}

.social-dot:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.social-dot svg {
  width: 16px;
  height: 16px;
  fill: var(--text-muted);
}

.social-dot:hover svg { fill: var(--accent); }

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

.btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
}

.btn-gold {
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid var(--accent);
}

.btn-gold:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 20px color-mix(in srgb, var(--accent-glow) 40%, transparent);
  color: var(--accent-ink);
}

.btn-navy {
  background: var(--navy);
  color: #FFFFFF;
  border: 1px solid var(--navy);
}

[data-theme="dark"] .btn-navy { color: #0B1120; }

.btn-navy:hover {
  background: var(--navy-hover);
  color: #FFFFFF;
}

[data-theme="dark"] .btn-navy:hover { color: #0B1120; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--surface);
}

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  display: inline-block;
}

/* Visual stats (in-hero, on landing pages) */
.vstats {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 26px;
  padding: 18px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  width: fit-content;
}

.vstat-num {
  font-family: 'Fraunces', serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}

.vstat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.vstat-sep {
  width: 1px;
  height: 44px;
  background: var(--border);
}

@media (max-width: 600px) {
  .vstats { gap: 18px; padding: 14px 18px; }
  .vstat-num { font-size: 1.7rem; }
}

/* Pricing page: audience toggle + currency */
.pricing-audience {
  margin: 22px auto 14px;
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px;
}

.pricing-toggle-btn {
  padding: 8px 28px;
  border-radius: 100px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  min-width: 120px;
}

.pricing-toggle-btn:hover { color: var(--text); }

.pricing-toggle-btn.active {
  background: var(--accent);
  color: var(--accent-ink);
}

.plans-panel[hidden] { display: none !important; }

.currency-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid var(--border);
  margin-top: 6px;
}

.currency-toggle span {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.currency-options { display: flex; gap: 2px; }

.currency-options button {
  background: transparent;
  border: none;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s;
}

.currency-options button:hover { color: var(--text); }

.currency-options button.active {
  background: var(--accent);
  color: var(--accent-ink);
}

.currency-note {
  display: block;
  margin-top: 8px;
  font-size: 0.7rem;
  color: var(--text-muted);
  opacity: 0.75;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 960px) {
  .site-header .wrap { flex-wrap: wrap; height: auto; padding: 12px 20px; gap: 10px; }
  .brand { margin-right: auto; }
  .brand-logo { height: 40px; }
  .audience-switch { order: 4; margin: 8px auto 4px; }
  .site-nav { margin-left: 0; gap: 12px; }
  .cta-cluster { margin-left: 0; }
}