/* ═══════════════════════════════════════════════════════════
   KesherOS Marketing — style.css
   Brand: Navy #0E2340 · Gold #C4922A · Teal #1B6B8A · Sand #F5F3EE
   ═══════════════════════════════════════════════════════════ */

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── Tokens ─── */
:root {
  --navy: #0E2340;
  --navy-light: #1A3558;
  --gold: #C4922A;
  --gold-light: #E5B44A;
  --gold-pale: #F5E6C4;
  --teal: #1B6B8A;
  --teal-light: #2589AB;
  --sand: #F5F3EE;
  --warm: #6B6256;
  --warm-light: #9A9083;

  --bg: #FFFFFF;
  --bg-alt: var(--sand);
  --bg-hero: var(--navy);
  --text: #1A1A1A;
  --text-muted: var(--warm);
  --text-on-dark: #F0EDE8;
  --border: #E0DDD6;
  --card-bg: #FFFFFF;
  --card-shadow: 0 2px 12px rgba(14,35,64,.06);
  --card-shadow-hover: 0 6px 24px rgba(14,35,64,.12);

  --font-display: Georgia, 'Times New Roman', serif;
  --font-body: system-ui, 'Segoe UI', Arial, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --container: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0C0E12;
    --bg-alt: #141820;
    --bg-hero: #080C14;
    --text: #E8E4DC;
    --text-muted: #9A9083;
    --text-on-dark: #E8E4DC;
    --border: #2A2E36;
    --card-bg: #1A1E26;
    --card-shadow: 0 2px 12px rgba(0,0,0,.3);
    --card-shadow-hover: 0 6px 24px rgba(0,0,0,.5);
  }
}

/* ─── Base ─── */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.25; text-wrap: balance; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ─── Header ─── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 24px;
}
.logo-lockup { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 36px; height: 36px; flex-shrink: 0; }
.logo-text { font-family: var(--font-display); font-size: 22px; letter-spacing: -0.5px; direction: ltr; }
.logo-kesher { color: var(--navy); }
.logo-os { color: var(--gold); }
@media (prefers-color-scheme: dark) {
  .logo-kesher { color: #FFFFFF; }
}

.header-nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.header-nav a { color: var(--text); font-weight: 500; }
.header-nav a:hover { color: var(--teal); text-decoration: none; }
.nav-cta {
  background: var(--gold); color: #FFF !important; padding: 8px 20px;
  border-radius: var(--radius-sm); font-weight: 600;
}
.nav-cta:hover { background: var(--gold-light); text-decoration: none !important; }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span {
  display: block; width: 22px; height: 2px; background: var(--text);
  margin: 5px 0; transition: .2s;
}

/* ─── Buttons ─── */
.btn {
  display: inline-block; padding: 14px 32px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 16px; text-align: center; transition: .2s;
  cursor: pointer; text-decoration: none !important;
}
.btn-primary { background: var(--gold); color: #FFF; }
.btn-primary:hover { background: var(--gold-light); }
.btn-outline { background: transparent; color: var(--text-on-dark); border: 2px solid rgba(255,255,255,.3); }
.btn-outline:hover { border-color: rgba(255,255,255,.6); }
.btn-lg { padding: 18px 40px; font-size: 18px; }

/* ─── Hero ─── */
.hero {
  background: var(--bg-hero);
  color: var(--text-on-dark);
  padding: 100px 0 80px;
  text-align: center;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 20px; color: #FFF; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-sub { font-size: 1.15rem; max-width: 620px; margin: 0 auto 36px; color: rgba(240,237,232,.8); line-height: 1.8; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }
.hero-stats { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat strong { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--gold); font-variant-numeric: tabular-nums; }
.stat span { font-size: .85rem; color: rgba(240,237,232,.6); }

/* ─── Sections shared ─── */
section { padding: 80px 0; }
section h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); text-align: center; margin-bottom: 12px; }
.section-lead { text-align: center; max-width: 680px; margin: 0 auto 48px; color: var(--text-muted); font-size: 1.05rem; }

/* ─── Problem ─── */
.problem { background: var(--bg-alt); }
.pain-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.pain-card {
  background: var(--card-bg); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--card-shadow); transition: box-shadow .2s;
}
.pain-card:hover { box-shadow: var(--card-shadow-hover); }
.pain-icon { font-size: 2rem; margin-bottom: 12px; }
.pain-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.pain-card p { font-size: .92rem; color: var(--text-muted); line-height: 1.7; }

/* ─── Features ─── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.feature-group {
  background: var(--card-bg); border-radius: var(--radius); padding: 32px;
  border-top: 4px solid var(--teal); box-shadow: var(--card-shadow);
  transition: box-shadow .2s, transform .2s;
}
.feature-group:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-2px); }
.feature-records { border-top-color: var(--navy); }
.feature-connect { border-top-color: var(--teal); }
.feature-govern  { border-top-color: var(--gold); }

.feature-icon-wrap { width: 48px; height: 48px; margin-bottom: 16px; color: var(--teal); }
.feature-records .feature-icon-wrap { color: var(--navy); }
@media (prefers-color-scheme: dark) {
  .feature-records .feature-icon-wrap { color: #6B9FD4; }
}
.feature-govern .feature-icon-wrap  { color: var(--gold); }

.feature-group h3 { font-size: 1.15rem; margin-bottom: 16px; direction: ltr; text-align: right; }
.feature-group ul { display: flex; flex-direction: column; gap: 10px; }
.feature-group li { font-size: .92rem; color: var(--text-muted); padding-right: 16px; position: relative; }
.feature-group li::before { content: '•'; position: absolute; right: 0; color: var(--gold); font-weight: bold; }
.feature-group li strong { color: var(--text); }

/* ─── Languages ─── */
.languages { background: var(--bg-alt); text-align: center; }
.languages .section-lead { max-width: 720px; }
.lang-note { font-size: .95rem; color: var(--text-muted); max-width: 560px; margin: -28px auto 0; }

/* ─── Pricing ─── */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.price-card {
  background: var(--card-bg); border-radius: var(--radius); padding: 32px;
  box-shadow: var(--card-shadow); text-align: center; position: relative;
  display: flex; flex-direction: column;
}
.price-card.featured {
  border: 2px solid var(--gold);
  box-shadow: 0 4px 20px rgba(196,146,42,.15);
}
.price-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #FFF; padding: 4px 16px; border-radius: 20px;
  font-size: .8rem; font-weight: 600;
}
.price-card h3 { font-size: 1.1rem; margin-bottom: 16px; direction: ltr; }
.price { font-family: var(--font-display); font-size: 2.2rem; color: var(--navy); margin-bottom: 4px; direction: ltr; }
@media (prefers-color-scheme: dark) {
  .price { color: var(--gold); }
}
.price span { font-size: .9rem; color: var(--text-muted); font-family: var(--font-body); }
.price-for { font-size: .9rem; color: var(--text-muted); margin-bottom: 20px; }
.price-card ul {
  text-align: right; flex-grow: 1;
  display: flex; flex-direction: column; gap: 10px; margin-top: 4px;
  border-top: 1px solid var(--border); padding-top: 20px;
}
.price-card li { font-size: .9rem; padding-right: 18px; position: relative; color: var(--text-muted); }
.price-card li::before { content: '✓'; position: absolute; right: 0; color: var(--teal); font-weight: bold; }

/* ─── Contact ─── */
.contact {
  background: var(--navy);
  color: #FFF; text-align: center;
  padding: 80px 0;
}
.contact h2 { color: #FFF; margin-bottom: 12px; }
.contact p { color: rgba(240,237,232,.7); margin-bottom: 32px; font-size: 1.1rem; }

/* ─── Footer ─── */
.site-footer {
  background: var(--bg-alt); border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-brand p { font-size: .85rem; color: var(--text-muted); margin-top: 2px; }
.footer-links a { color: var(--text-muted); font-size: .9rem; }
.footer-links a:hover { color: var(--teal); }
.footer-copy { font-size: .8rem; color: var(--text-muted); width: 100%; text-align: center; margin-top: 16px; }

/* ─── Mobile ─── */
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .header-nav {
    display: none; position: absolute; top: 64px; right: 0; left: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 16px 24px; gap: 12px;
  }
  .header-nav.open { display: flex; }
  .nav-cta { text-align: center; }

  .hero { padding: 60px 0 48px; }
  .hero-stats { gap: 28px; }
  section { padding: 56px 0; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ─── Focus ─── */
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .feature-group { transition: none; }
}
