/* ==========================================================================
   APOEMA DESIGN SYSTEM & STYLESHEET
   Vision Driven by Heritage | Reliable AI
   ========================================================================== */

:root {
  /* Brand Palette */
  --color-navy-950: #040814;
  --color-navy-900: #091024;
  --color-navy-850: #0E1736;
  --color-navy-800: #142149;
  --color-navy-700: #1E326B;
  
  --color-gold-300: #F6DF95;
  --color-gold-400: #E6C665;
  --color-gold-500: #D4AF37;
  --color-gold-600: #B89225;
  
  --color-cyan-300: #7BEBF4;
  --color-cyan-400: #2FE0F0;
  --color-cyan-500: #00C9DB;
  
  --color-emerald-400: #10B981;
  --color-emerald-500: #059669;
  --color-emerald-600: #047857;
  
  --color-text-primary: #F8FAFC;
  --color-text-secondary: #CBD5E1;
  --color-text-muted: #94A3B8;
  --color-text-dark: #0F172A;
  --color-text-dark-muted: #475569;
  
  --color-bg-light: #F8FAFC;
  --color-surface-light: #FFFFFF;
  --color-border-light: #E2E8F0;
  
  /* Glassmorphism & Borders */
  --glass-bg: rgba(14, 23, 54, 0.72);
  --glass-border: rgba(212, 175, 55, 0.22);
  --glass-border-cyan: rgba(0, 201, 219, 0.25);
  --glass-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
  
  /* Typography */
  --font-family-base: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --font-family-display: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  
  --max-width-container: 1200px;
}

@font-face {
  font-family: "Outfit";
  src: url("assets/fonts/Outfit-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Great Vibes";
  src: url("assets/fonts/GreatVibes-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .philosophy-card,
  .product-item,
  .preview-phone-frame,
  .btn,
  .brand-hero-img,
  .reveal,
  .nav-menu,
  .hero-visual .phone-stack {
    transition: none;
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

body {
  font-family: var(--font-family-base);
  background-color: var(--color-navy-950);
  color: var(--color-text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

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

.section {
  padding: 100px 0;
  position: relative;
}

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

/* Ambient Glow Backgrounds */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

.glow-cyan {
  background: radial-gradient(circle, var(--color-cyan-500) 0%, transparent 70%);
}

.glow-gold {
  background: radial-gradient(circle, var(--color-gold-500) 0%, transparent 70%);
}

.glow-emerald {
  background: radial-gradient(circle, var(--color-emerald-500) 0%, transparent 70%);
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(4, 8, 20, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background var(--transition-fast);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 200;
  padding: 8px 14px;
  background: var(--color-gold-400);
  color: #040814;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 12px;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  letter-spacing: 1.5px;
  font-size: 1.25rem;
}

.brand-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand-link:has(.kk-wordmark) {
  letter-spacing: 0;
  font-weight: inherit;
  gap: 10px;
}

.brand-title {
  display: flex;
  flex-direction: column;
}

.brand-name {
  color: var(--color-text-primary);
  font-size: 1.28rem;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.brand-tagline-micro {
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--color-gold-400);
  font-weight: 500;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--color-gold-400);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.lang-switch a {
  color: var(--color-text-muted);
  padding: 10px 2px;
  margin: -10px -2px;
}

.lang-switch a[aria-current="page"] {
  color: var(--color-gold-400);
}

.lang-switch-sep {
  color: var(--color-text-muted);
  opacity: 0.55;
}

.mobile-toggle {
  display: none;
  padding: 10px;
  color: var(--color-text-primary);
}

@media (max-width: 880px) {
  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background: var(--color-navy-900);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(-150%);
    transition: transform var(--transition-smooth);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  }

  .nav-menu.is-active {
    transform: translateY(0);
  }

  .mobile-toggle {
    display: block;
  }
}

/* Buttons & Badges */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-gold-400);
  color: #040814;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--color-gold-300);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text-primary);
  border: 1px solid rgba(230, 198, 101, 0.35);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(230, 198, 101, 0.1);
  border-color: var(--color-gold-400);
  color: var(--color-gold-300);
}

.btn-cyan {
  background: linear-gradient(135deg, var(--color-cyan-400), #0284C7);
  color: #040814;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(0, 201, 219, 0.35);
}

.btn-cyan:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 201, 219, 0.5);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.badge-gold {
  background: rgba(212, 175, 55, 0.12);
  color: var(--color-gold-400);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.badge-cyan {
  background: rgba(0, 201, 219, 0.12);
  color: var(--color-cyan-400);
  border: 1px solid rgba(0, 201, 219, 0.3);
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.12);
  color: var(--color-emerald-400);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Hero Section */
.hero-section {
  padding: 72px 0 80px;
  overflow: hidden;
  position: relative;
  min-height: 0;
  background: var(--color-navy-950);
}

.hero-section::before {
  content: "";
  position: absolute;
  width: min(42vw, 420px);
  height: min(42vw, 420px);
  left: -4%;
  top: 8%;
  background: url("assets/apoema-mark.png") center / contain no-repeat;
  opacity: 0.07;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 56px;
  position: relative;
  z-index: 1;
}

@media (max-width: 960px) {
  .hero-section,
  body.kk .kk-hero {
    min-height: 0;
    padding-top: 48px;
  }

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

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (max-width: 960px) {
  .hero-content {
    align-items: center;
  }
}

.hero-title {
  font-family: var(--font-family-display);
  font-size: clamp(2.25rem, 4.4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.5px;
}

.hero-title-highlight {
  color: var(--color-gold-300);
}

.hero-byline {
  font-size: 0.95rem;
  color: var(--color-gold-400);
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--color-text-secondary);
  max-width: 580px;
  line-height: 1.7;
}

.hero-slogan-bar {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  background: rgba(14, 23, 54, 0.8);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: var(--color-gold-400);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

@media (max-width: 960px) {
  .hero-actions {
    justify-content: center;
  }
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card-brand {
  position: relative;
  background: radial-gradient(circle at center, rgba(14, 23, 54, 0.65) 0%, rgba(9, 16, 36, 0.8) 100%);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 35px rgba(0, 201, 219, 0.15);
  backdrop-filter: blur(12px);
  text-align: center;
  max-width: 440px;
  width: 100%;
}

.brand-hero-img {
  width: 100%;
  max-width: 360px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 15px 30px rgba(0, 201, 219, 0.25));
  transition: transform var(--transition-smooth);
}

.brand-hero-img:hover {
  transform: scale(1.02);
}

/* Section Headings */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}

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

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-top: 14px;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
}

/* Heritage & Philosophy Cards */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.philosophy-card {
  background: var(--glass-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.philosophy-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: var(--glass-shadow);
}

.card-icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 24px;
}

.card-icon-gold {
  background: rgba(212, 175, 55, 0.15);
  color: var(--color-gold-400);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.card-icon-cyan {
  background: rgba(0, 201, 219, 0.15);
  color: var(--color-cyan-400);
  border: 1px solid rgba(0, 201, 219, 0.3);
}

.card-icon-emerald {
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-emerald-400);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.philosophy-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-text-primary);
}

.philosophy-text {
  color: var(--color-text-secondary);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* Products Showcase */
.products-container {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.product-item {
  background: radial-gradient(ellipse at top left, rgba(20, 33, 73, 0.5) 0%, rgba(9, 16, 36, 0.7) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.product-item:hover {
  border-color: rgba(0, 201, 219, 0.35);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.product-item.reverse-layout {
  grid-template-columns: 0.9fr 1.1fr;
}

@media (max-width: 960px) {
  .product-item,
  .product-item.reverse-layout {
    grid-template-columns: 1fr;
  }
}

.product-details {
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (max-width: 640px) {
  .product-details {
    padding: 36px 24px;
  }
}

.product-name-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.product-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
}

.product-tagline {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-gold-400);
}

.product-description {
  color: var(--color-text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

.product-points {
  display: flex;
  flex-direction: column;
  margin: 8px 0 4px;
}

.product-points p {
  padding: 14px 0;
  border-top: 1px solid rgba(230, 198, 101, 0.22);
  font-size: 0.98rem;
  color: var(--color-text-secondary);
}

.product-points p:last-child {
  padding-bottom: 4px;
}

.product-actions-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.product-preview-pane {
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: rgba(4, 8, 20, 0.4);
  height: 100%;
  min-height: 380px;
}

.preview-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 12px 4px;
  scrollbar-width: thin;
  max-width: 100%;
}

.preview-phone-frame {
  width: 190px;
  flex-shrink: 0;
  aspect-ratio: 1080 / 2340;
  border-radius: 20px;
  border: 4px solid #1E293B;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
  background: #0B1220;
  overflow: hidden;
  transition: transform var(--transition-fast);
}

.preview-phone-frame:hover {
  border-color: var(--color-gold-500);
}

.preview-phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.phone-stack {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
}

.hero-visual .phone-stack {
  animation: hero-settle 0.7s ease both;
}

@keyframes hero-settle {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.phone-frame-hero {
  width: 210px;
}

.phone-frame-offset {
  transform: translateY(-18px);
}

.phone-stack-single {
  align-items: center;
}

@media (max-width: 768px) {
  .phone-frame-hero,
  .preview-phone-frame {
    width: 160px;
  }

  .phone-frame-offset {
    transform: none;
  }
}

.preview-logo-box {
  width: 220px;
  height: 220px;
  background: rgba(14, 23, 54, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Privacy & Principles Banner */
.privacy-banner {
  background: transparent;
  border-top: 1px solid rgba(230, 198, 101, 0.28);
  padding: 8px 0 0;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 900px) {
  .privacy-banner {
    grid-template-columns: 1fr;
    padding: 40px 24px;
  }
}

.banner-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.banner-text {
  color: var(--color-text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

.banner-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat-box {
  padding: 12px 0;
  border-top: 1px solid rgba(230, 198, 101, 0.22);
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-gold-400);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-top: 4px;
}

/* Legal Document Styles */
.legal-container {
  max-width: 860px;
  margin: 40px auto 80px;
  background: var(--color-surface-light);
  color: var(--color-text-dark);
  padding: 56px 48px;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

@media (max-width: 640px) {
  .legal-container {
    padding: 36px 20px;
    margin: 20px auto;
  }
}

.legal-header {
  border-bottom: 2px solid var(--color-border-light);
  padding-bottom: 24px;
  margin-bottom: 32px;
}

.legal-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-navy-950);
  margin-bottom: 12px;
}

.legal-meta {
  font-size: 0.95rem;
  color: var(--color-text-dark-muted);
}

.legal-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-navy-900);
  margin-top: 36px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--color-border-light);
  padding-bottom: 8px;
}

.legal-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-navy-850);
  margin-top: 24px;
  margin-bottom: 10px;
}

.legal-body p,
.legal-body ul,
.legal-body ol {
  font-size: 1rem;
  line-height: 1.8;
  color: #334155;
  margin-bottom: 18px;
}

.legal-body ul,
.legal-body ol {
  padding-left: 28px;
}

.legal-body li {
  margin-bottom: 8px;
}

.legal-callout {
  background: #F0FDFA;
  border-left: 4px solid #00919E;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin: 24px 0;
  font-size: 0.98rem;
  color: #0F5156;
}

.legal-callout-warning {
  background: #FFFBEB;
  border-left: 4px solid #F59E0B;
  color: #92400E;
}

.legal-actions-bar {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* Footer */
.site-footer {
  background: var(--color-navy-900);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

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

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  max-width: 320px;
  line-height: 1.6;
}

.footer-heading {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-primary);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-gold-400);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.footer-legal {
  margin-top: 16px;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--color-text-muted);
  max-width: 72ch;
}

#products {
  background: rgba(9, 16, 36, 0.45);
}

.heritage-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}

.heritage-lead {
  max-width: 54ch;
}

.heritage-points {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 8px;
}

.heritage-point {
  padding-top: 20px;
  border-top: 1px solid rgba(230, 198, 101, 0.28);
}

@media (max-width: 768px) {
  .heritage-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.lumiquo-band {
  margin-top: 48px;
  padding: 40px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}

.lumiquo-mark {
  width: 120px;
  height: auto;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .lumiquo-band {
    grid-template-columns: 1fr;
  }
}

/* Koin Kids marketing page (light, orange CTA) */
body.kk {
  --kk-bg: #F3F6F9;
  --kk-navy: #1B2A4A;
  --kk-orange: #C2410C;
  --kk-orange-hover: #9A3412;
  --kk-teal: #0F6E6E;
  --kk-muted: #4B5C73;
  --color-text-primary: var(--kk-navy);
  --color-text-secondary: var(--kk-muted);
  --color-text-muted: #64748B;
  --color-gold-400: var(--kk-orange);
  --color-gold-300: #EA580C;
  --color-gold-600: var(--kk-orange-hover);
  background: var(--kk-bg);
  color: var(--kk-navy);
  color-scheme: light;
}

body.kk .site-header {
  background: rgba(243, 246, 249, 0.92);
  border-bottom-color: #D7DEE8;
}

body.kk .brand-name,
body.kk .nav-link,
body.kk .mobile-toggle {
  color: var(--kk-navy);
}

body.kk .brand-tagline-micro {
  color: var(--kk-teal);
}

body.kk .nav-link:hover,
body.kk .nav-link:focus-visible {
  color: var(--kk-orange);
}

body.kk .nav-menu {
  background: #F3F6F9;
}

body.kk .kk-hero {
  background: #EEF3F7;
  min-height: 0;
  padding-top: 56px;
  padding-bottom: 72px;
}

body.kk .kk-hero::before {
  display: none;
}

body.kk .hero-title {
  color: var(--kk-navy);
}

body.kk .btn-primary {
  background: var(--kk-orange);
  color: #FFF7ED;
  box-shadow: none;
}

body.kk .btn-primary:hover {
  background: var(--kk-orange-hover);
  color: #FFF7ED;
  box-shadow: none;
}

body.kk .btn-secondary {
  background: #FFF;
  color: var(--kk-navy);
  border-color: #C5D0DC;
}

body.kk .kk-kicker {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--kk-teal);
}

body.kk .kk-stack-header {
  max-width: 62ch;
  margin-bottom: 40px;
}

body.kk .kk-cycle {
  background: var(--kk-bg);
}

body.kk .kk-cycle-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

body.kk .kk-cycle-copy .philosophy-title {
  margin-top: 20px;
}

body.kk .kk-cycle-copy .philosophy-title:first-child {
  margin-top: 0;
}

body.kk .kk-parents {
  background: #E8EEF4;
}

body.kk .kk-parent-phones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

body.kk .kk-phone-caption {
  margin: 0;
  text-align: center;
}

body.kk .kk-phone-caption figcaption {
  margin-top: 12px;
  font-size: 0.92rem;
  color: var(--kk-muted);
}

body.kk .kk-safety {
  background: var(--kk-bg);
}

body.kk .kk-safety-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

body.kk .site-footer {
  background: #E8EEF4;
  border-top-color: #D7DEE8;
  color: var(--kk-navy);
}

body.kk .footer-heading,
body.kk .footer-link,
body.kk .footer-desc,
body.kk .footer-bottom,
body.kk .footer-legal {
  color: var(--kk-muted);
}

body.kk .footer-heading {
  color: var(--kk-navy);
}

body.kk .footer-link:hover {
  color: var(--kk-orange);
}

body.kk .preview-phone-frame {
  border-color: #CBD5E1;
  box-shadow: 0 12px 28px rgba(27, 42, 74, 0.12);
  background: #FFF;
}

body.kk .kk-cycle-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-bottom: 40px;
}

body.kk .kk-cycle-steps .philosophy-title {
  margin-top: 0;
}

@media (max-width: 960px) {
  body.kk .kk-cycle-grid,
  body.kk .kk-cycle-steps,
  body.kk .kk-safety-grid {
    grid-template-columns: 1fr;
  }

  body.kk .kk-parent-phones {
    flex-direction: column;
    align-items: center;
  }
}

/* Legal documents stay light end to end */
body.legal-page {
  background: #F1F5F9;
  color: #1E293B;
  color-scheme: light;
}

body.legal-page .site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #E2E8F0;
}

body.legal-page .brand-name,
body.legal-page .nav-link,
body.legal-page .mobile-toggle {
  color: #0F172A;
}

body.legal-page .brand-tagline-micro {
  color: #0F6E6E;
}

body.legal-page .nav-link:hover,
body.legal-page .nav-link:focus-visible {
  color: #C2410C;
}

body.legal-page .nav-menu {
  background: #FFF;
}

body.legal-page .site-footer {
  background: #E8EEF4;
  border-top: 1px solid #D7DEE8;
  color: #4B5C73;
  padding: 32px 0;
  text-align: center;
}

body.legal-page .site-footer a {
  color: #0F6E6E;
}

body.kk .lang-switch a,
body.legal-page .lang-switch a {
  color: var(--kk-muted, #64748B);
}

body.kk .lang-switch a[aria-current="page"],
body.legal-page .lang-switch a[aria-current="page"] {
  color: var(--kk-orange, #C2410C);
}

/* Koin for Kids wordmark — matches the app login lockup */
.kk-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.22em;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-transform: none;
  white-space: nowrap;
}

.kk-wm-koin {
  color: #1B2A4A;
  font-size: 1em;
}

.kk-wm-for {
  font-family: "Great Vibes", "Snell Roundhand", "Segoe Script", cursive;
  font-weight: 400;
  font-size: 0.62em;
  color: #9AA4B2;
  letter-spacing: 0;
  line-height: 1;
  transform: translateY(0.08em);
}

.kk-wm-kids {
  font-size: 1em;
}

.kk-k { color: #14B8A6; }
.kk-i { color: #E8B423; }
.kk-d { color: #F4A5B8; }
.kk-s { color: #F25C2A; }

.kk-wordmark--nav {
  font-size: 1.28rem;
}

.kk-wordmark--lg {
  font-size: clamp(2.6rem, 7vw, 4rem);
}

.kk-wordmark--on-dark .kk-wm-koin {
  color: #F8FAFC;
}

.kk-wordmark--on-dark .kk-wm-for {
  color: #94A3B8;
}

.kk-coin {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.kk-coin--hero {
  width: 84px;
  height: 84px;
}

.kk-hero-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.kk-hero-brand h1 {
  margin: 0;
}

.kk-app-tagline {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 800;
  color: var(--kk-navy);
  letter-spacing: -0.02em;
}

.kk-grow {
  color: var(--kk-teal);
}

.kk-store-note {
  font-size: 0.92rem;
  color: var(--kk-muted);
}

body.kk .hero-actions {
  flex-wrap: wrap;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.page-404 {
  min-height: calc(100dvh - 72px);
  display: flex;
  align-items: center;
  padding: 80px 0;
}

.page-404 h1 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  margin-bottom: 16px;
}

.page-404 p {
  color: var(--color-text-secondary);
  max-width: 42ch;
  margin-bottom: 28px;
}

.waitlist-note {
  margin-top: 12px;
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

@media (max-width: 960px) {
  .kk-hero-brand {
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 400px) {
  .kk-wordmark--nav {
    font-size: 1.08rem;
  }
}
