/* =========================================================
   OSOM SCHOOL — Design System
   Retro-desktop / Y2K-tech aesthetic, built from brand kit:
   Retropix (pixel) + Some Time Later (bubble) on a coral /
   navy / off-white palette. Signature element: the "OS
   window" card, lifted straight from the brand's own
   moodboard of CRT monitors and dialog boxes.
   ========================================================= */

/* ---------- 1. DESIGN TOKENS ---------- */
:root{
  /* Brand palette — straight from brand kit */
  --coral:        #F46C58;
  --coral-dark:   #DD5843;
  --blue:         #5389B6;
  --slate:        #44585C;
  --off-white:    #F5F8FA;
  --navy:         #386793;

  /* Derived neutrals (kept close to brand slate/navy family) */
  --ink:          #1C2B33;
  --ink-soft:     #3E5057;
  --white:        #FFFFFF;
  --line:         #D8E1E6;

  /* Semantic surface tokens — LIGHT mode */
  --bg:            var(--off-white);
  --bg-alt:        #EDF2F5;
  --surface:       var(--white);
  --surface-2:     var(--white);
  --text:          var(--ink);
  --text-muted:    var(--ink-soft);
  --text-on-dark:  var(--off-white);
  --border:        var(--line);
  --panel-dark-bg: var(--navy);
  --panel-dark-bg2:#2E5578;

  /* Fixed accents (same in both themes — brand identity) */
  --accent:        var(--coral);
  --accent-ink:    #ffffff;
  --accent-2:      var(--blue);

  /* Typography */
  --font-pixel:  'Silkscreen', 'Courier New', monospace;
  --font-display:'Baloo 2', 'Segoe UI', sans-serif;
  --font-body:   'Inter', 'Segoe UI', sans-serif;

  /* Fluid type scale — clamp(min, preferred, max) */
  --fs-eyebrow: clamp(0.7rem, 0.62rem + 0.35vw, 0.85rem);
  --fs-body:    clamp(1rem, 0.94rem + 0.25vw, 1.125rem);
  --fs-lede:    clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  --fs-h3:      clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem);
  --fs-h2:      clamp(1.9rem, 1.5rem + 1.8vw, 3rem);
  --fs-h1:      clamp(2.4rem, 1.7rem + 3.2vw, 4.4rem);
  --fs-price:   clamp(2rem, 1.6rem + 1.8vw, 2.75rem);

  /* Spacing rhythm — fluid */
  --space-xs:  clamp(0.4rem, 0.35rem + 0.25vw, 0.6rem);
  --space-sm:  clamp(0.75rem, 0.65rem + 0.4vw, 1rem);
  --space-md:  clamp(1.25rem, 1rem + 1vw, 2rem);
  --space-lg:  clamp(2.25rem, 1.6rem + 2.8vw, 4rem);
  --space-xl:  clamp(3.5rem, 2.4rem + 4.8vw, 7rem);

  /* Structure */
  --radius-sm: 10px;
  --radius-md: 16px;
  --border-w: 3px;
  --max-width: 1200px;
  --shadow-hard: 6px 6px 0 var(--ink);
  --shadow-hard-sm: 4px 4px 0 var(--ink);

  color-scheme: light;
}

/* ---------- DARK MODE VARIABLES ---------- */
[data-theme="dark"]{
  --bg:            #141C22;
  --bg-alt:        #0F161B;
  --surface:       #1D2830;
  --surface-2:     #223038;
  --text:          #EEF3F5;
  --text-muted:    #A9BAC1;
  --text-on-dark:  #EEF3F5;
  --border:        #33454E;
  --panel-dark-bg: #0F161B;
  --panel-dark-bg2:#182229;
  --accent-ink:    #14181B;
  --shadow-hard: 6px 6px 0 #000000;
  --shadow-hard-sm: 4px 4px 0 #000000;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:            #141C22;
    --bg-alt:        #0F161B;
    --surface:       #1D2830;
    --surface-2:     #223038;
    --text:          #EEF3F5;
    --text-muted:    #A9BAC1;
    --text-on-dark:  #EEF3F5;
    --border:        #33454E;
    --panel-dark-bg: #0F161B;
    --panel-dark-bg2:#182229;
    --accent-ink:    #14181B;
    --shadow-hard: 6px 6px 0 #000000;
    --shadow-hard-sm: 4px 4px 0 #000000;
    color-scheme: dark;
  }
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  transition: background-color .25s ease, color .25s ease;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; }
ul{ list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, figure{ margin: 0; }
button{ font: inherit; cursor: pointer; }

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

.skip-link{
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--accent-ink);
  padding: .75rem 1rem; z-index: 999; border-radius: 0 0 8px 0;
}
.skip-link:focus{ left: 0; }

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

/* ---------- 3. LAYOUT PRIMITIVES ---------- */
.wrap{
  width: min(100% - 2 * var(--space-md), var(--max-width));
  margin-inline: auto;
}
.wrap-narrow{ max-width: 720px; }

.section{ padding-block: var(--space-xl); }
.section-tint{ background: var(--bg-alt); }
.section-dark{
  background: var(--panel-dark-bg);
  background-image: linear-gradient(180deg, var(--panel-dark-bg) 0%, var(--panel-dark-bg2) 100%);
  color: var(--text-on-dark);
}

.eyebrow{
  font-family: var(--font-pixel);
  font-size: var(--fs-eyebrow);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}
.eyebrow-center{ text-align: center; }
.eyebrow.on-dark{ color: #FF9A87; }

.section-title{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h2);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: var(--space-lg);
}
.section-title.center{ text-align: center; }
.section-title.on-dark{ color: var(--text-on-dark); }

/* ---------- 4. HEADER ---------- */
.site-header{
  position: sticky; top: 0; z-index: 100;
  background: var(--ink);
  background-image: linear-gradient(180deg, var(--ink) 0%, var(--panel-dark-bg2) 100%);
  border-bottom: var(--border-w) solid #000;
}

.header-inner{
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-md);
  padding-block: var(--space-sm);
}
.brand-logo{ height: clamp(42px, 6vw, 57px); width: auto; }

.site-nav{
  display: flex; gap: clamp(1rem, 2vw, 2rem);
  font-weight: 600; font-size: .95rem;
  color: var(--off-white);
}
.site-nav a{ text-decoration: none; position: relative; padding-block: 4px; color: var(--off-white); }
.site-nav a:hover{ color: var(--coral); }
.site-nav a::after{
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 2px; background: var(--coral);
  transition: right .2s ease;
}
.site-nav a:hover::after{ right: 0; }

.header-actions{ display: flex; align-items: center; gap: var(--space-sm); }

.theme-toggle{
  width: 40px; height: 24px; border-radius: 999px;
  border: 2px solid var(--off-white); background: rgba(255,255,255,.12);
  padding: 2px; display: flex; align-items: center;
}
.theme-toggle-dot{
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--coral); display: block;
  transition: transform .2s ease;
}
[data-theme="dark"] .theme-toggle-dot{ transform: translateX(16px); }

.nav-toggle{
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 34px; height: 34px; background: none; border: none; padding: 0;
}
.nav-toggle span{ display: block; height: 3px; background: var(--off-white); border-radius: 2px; }

/* ---------- 5. BUTTONS ---------- */
.btn{
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700;
  text-decoration: none; border-radius: var(--radius-sm);
  border: var(--border-w) solid var(--ink);
  padding: .75em 1.4em;
  box-shadow: var(--shadow-hard-sm);
  transition: transform .12s ease, box-shadow .12s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active{ transform: translate(0,0); box-shadow: 1px 1px 0 var(--ink); }
[data-theme="dark"] .btn{ border-color: #000; }
[data-theme="dark"] .btn:hover{ box-shadow: 6px 6px 0 #000; }

.btn-primary{ background: var(--accent); color: var(--accent-ink); }
.btn-outline{ background: var(--surface); color: var(--text); }
.btn-ghost{ background: transparent; color: var(--text); border-color: var(--text); box-shadow: none; }
.btn-ghost:hover{ box-shadow: var(--shadow-hard-sm); }
.btn-lg{ font-size: clamp(.95rem, .85rem + .4vw, 1.1rem); padding: .85em 1.7em; }
.btn-sm{ font-size: .85rem; padding: .55em 1.1em; }
.btn-block{ width: 100%; }

/* ---------- 6. HERO ---------- */
.hero{ position: relative; overflow: clip; padding-block: var(--space-xl); }
.hero-grid-bg{
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 90%);
  opacity: .6;
}
.hero-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
}
@media (min-width: 900px){
  .hero-grid{ grid-template-columns: 1.1fr 0.9fr; }
}

.hero-title{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-h1);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}
.text-stroke{ color: var(--accent); }

.hero-sub{
  font-size: var(--fs-lede);
  color: var(--text-muted);
  max-width: 46ch;
  margin-bottom: var(--space-md);
}
.hero-actions{ display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-bottom: var(--space-md); }

.trust-note{
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 600; font-size: .9rem; color: var(--text-muted);
}
.trust-dot{ width: 9px; height: 9px; border-radius: 50%; background: #3FB27F; display: inline-block; }

.hero-visual{ position: relative; justify-self: center; width: 100%; max-width: 400px; }
.hero-window-body{ display: grid; place-items: center; gap: var(--space-sm); padding: var(--space-lg) var(--space-md); }
.hero-fist{ width: min(220px, 60%); height: auto; }
.hero-window-caption{ font-family: var(--font-pixel); font-size: .75rem; color: var(--text-muted); text-align: center; }

.floaty{
  position: absolute; font-size: 1.6rem; color: var(--accent-2);
  animation: float 4s ease-in-out infinite;
}
.floaty-1{ top: -10px; right: 10%; animation-delay: 0s; }
.floaty-2{ bottom: 8%; left: -14px; color: var(--accent); animation-delay: 1s; }
.floaty-3{ top: 40%; right: -18px; color: var(--slate); animation-delay: 2s; }
@keyframes float{
  0%, 100%{ transform: translateY(0); }
  50%{ transform: translateY(-12px); }
}

/* ---------- 7. SIGNATURE "OS WINDOW" COMPONENT ---------- */
.win{
  position: relative;
  background: var(--surface);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hard);
}
[data-theme="dark"] .win{ border-color: #000; }

.win-bar{
  display: flex; align-items: center; gap: .5em;
  padding: .6em .9em;
  background: var(--slate);
  color: var(--off-white);
  border-bottom: var(--border-w) solid var(--ink);
  border-radius: calc(var(--radius-md) - 3px) calc(var(--radius-md) - 3px) 0 0;
}
[data-theme="dark"] .win-bar{ border-bottom-color: #000; background: #101a20; }

.win-dot{ width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--ink); }
.dot-coral{ background: var(--coral); }
.dot-blue{ background: var(--blue); }
.dot-slate{ background: var(--off-white); }
.win-title{
  margin-left: .4em;
  font-family: var(--font-pixel);
  font-size: .7rem;
  letter-spacing: .04em;
  opacity: .85;
}
.win-body{ padding: var(--space-md); }

/* ---------- 8. THE CHOICE / PATH TABLE ---------- */
.path-window .win-body{ padding: var(--space-sm); }
.path-table{ display: flex; flex-direction: column; }
.path-row{
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xs);
  padding-block: var(--space-sm);
  border-bottom: 1.5px dashed var(--border);
}
.path-row:last-child{ border-bottom: none; }
@media (min-width: 720px){
  .path-row{ grid-template-columns: 0.9fr 1.2fr 1.2fr; align-items: start; gap: var(--space-md); }
}
.path-cell-label{
  font-family: var(--font-pixel); font-size: .72rem; letter-spacing: .04em;
  text-transform: uppercase; color: var(--text-muted); align-self: center;
}
.path-cell-head{
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h3);
  border-radius: var(--radius-sm); padding: .5em .7em;
}
.path-row-head{ border-bottom: none; padding-bottom: var(--space-sm); }
.innovators{ background: color-mix(in srgb, var(--coral) 16%, transparent); color: var(--coral-dark); }
.followers{ background: color-mix(in srgb, var(--slate) 14%, transparent); color: var(--text-muted); }
.path-cell.muted{ color: var(--text-muted); }

/* ---------- 9. FEATURE GRID (Why Osom) ---------- */
.feature-grid{
  display: grid; gap: var(--space-md);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.feature-card{
  background: var(--surface-2);
  border: 2px solid rgba(255,255,255,.14);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}
[data-theme="dark"] .feature-card{ border-color: rgba(255,255,255,.14); }
.section-dark .feature-card{ background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.feature-icon{ width: 46px; height: 46px; color: var(--coral); margin-bottom: var(--space-sm); }
.feature-icon svg{ width: 100%; height: 100%; }
.feature-card h3{
  font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 700;
  margin-bottom: .4em; color: var(--text-on-dark);
}
.feature-card p{ color: color-mix(in srgb, var(--text-on-dark) 75%, transparent); margin: 0; }

/* ---------- 10. PROGRAMS ---------- */
.program-grid{
  display: grid; gap: var(--space-md);
  grid-template-columns: 1fr;
}
@media (min-width: 720px){
  .program-grid{ grid-template-columns: 1fr 1fr; }
}
.program-card{
  border-radius: var(--radius-md);
  border: var(--border-w) solid var(--ink);
  padding: var(--space-lg) var(--space-md);
  box-shadow: var(--shadow-hard);
}
[data-theme="dark"] .program-card{ border-color: #000; }
.program-left{ background: color-mix(in srgb, var(--blue) 18%, var(--surface)); }
.program-right{ background: color-mix(in srgb, var(--coral) 16%, var(--surface)); }
.program-kicker{
  font-family: var(--font-pixel); font-size: .72rem; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-muted); margin-bottom: .5em;
}
.program-card h3{
  font-family: var(--font-display); font-weight: 800; font-size: var(--fs-h2);
  line-height: 1.05; margin-bottom: .3em;
}
.program-age{ font-weight: 700; color: var(--accent-2); margin-bottom: var(--space-sm); }
.program-card p:last-of-type{ color: var(--text-muted); max-width: 42ch; }
.program-cta{ margin-top: var(--space-md); }

/* ---------- 11. BONUS LIST ---------- */
.bonus-list{ display: flex; flex-direction: column; }
.bonus-item{
  display: grid; grid-template-columns: 1fr; gap: var(--space-sm);
  align-items: center; padding-block: var(--space-md);
  border-bottom: 1.5px dashed var(--border);
}
.bonus-item:last-child{ border-bottom: none; }
@media (min-width: 640px){
  .bonus-item{ grid-template-columns: 1fr auto; }
}
.bonus-text h3{ font-family: var(--font-display); font-size: var(--fs-h3); margin-bottom: .2em; }
.bonus-text p{ color: var(--text-muted); margin: 0; max-width: 52ch; }
.bonus-price{ display: flex; align-items: center; gap: var(--space-sm); justify-self: start; }
.bonus-price .was{ text-decoration: line-through; color: var(--text-muted); font-size: .85rem; white-space: nowrap; }
.bonus-price .free{
  font-family: var(--font-pixel); background: var(--accent); color: var(--accent-ink);
  padding: .35em .6em; border-radius: 6px; border: 2px solid var(--ink); font-size: .75rem;
  white-space: nowrap;
}

/* ---------- 12. PRICING ---------- */
.pricing-grid{
  display: grid; gap: var(--space-md);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 860px){
  .pricing-grid{ grid-template-columns: repeat(3, 1fr); }
}
.price-window{ background: var(--surface); color: var(--text); }
.price-featured{ transform: translateY(-10px); border-color: var(--accent); box-shadow: 8px 8px 0 var(--coral-dark); position: relative; }
[data-theme="dark"] .price-featured{ box-shadow: 8px 8px 0 var(--coral-dark); }
.price-badge{
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-pixel); font-size: .65rem; text-transform: uppercase; letter-spacing: .05em;
  padding: .4em .8em; border-radius: 999px; border: 2px solid var(--ink); z-index: 2;
}
.price-body{ display: flex; flex-direction: column; gap: var(--space-xs); }
.price-plan{ font-weight: 700; color: var(--text-muted); font-size: .9rem; }
.price-amount{
  font-family: var(--font-display); font-weight: 800; font-size: var(--fs-price);
  color: var(--text); line-height: 1;
}
.price-amount span{ font-size: 1rem; font-weight: 600; color: var(--text-muted); }
.price-per{ color: var(--text-muted); font-size: .85rem; margin-bottom: var(--space-xs); }
.price-features{ display: flex; flex-direction: column; gap: .5em; margin-block: var(--space-sm); }
.price-features li{ padding-left: 1.4em; position: relative; }
.price-features li::before{
  content: "✓"; position: absolute; left: 0; color: var(--accent-2); font-weight: 800;
}
.price-guarantee{ font-size: .8rem; color: var(--text-muted); margin-bottom: var(--space-sm); }

.referral-note{
  text-align: center; margin-top: var(--space-lg);
  font-family: var(--font-pixel); font-size: .8rem; color: var(--text-on-dark);
  opacity: .8;
}

/* ---------- 13. CONTACT ---------- */
.contact-body{ text-align: center; }
.contact-body h2{
  font-family: var(--font-display); font-size: var(--fs-h2); font-weight: 700;
  margin-bottom: .4em;
}
.contact-body > p{ color: var(--text-muted); max-width: 46ch; margin-inline: auto; margin-bottom: var(--space-md); }
.contact-list{ display: flex; flex-direction: column; gap: var(--space-sm); margin-bottom: var(--space-md); }
.contact-row{ display: flex; justify-content: center; gap: .6em; flex-wrap: wrap; }
.contact-row dt{ font-family: var(--font-pixel); font-size: .75rem; text-transform: uppercase; color: var(--text-muted); align-self: center; }
.contact-row dd{ margin: 0; font-weight: 700; font-size: var(--fs-lede); }
.contact-row a{ text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }

/* ---------- 14. FOOTER ---------- */
.site-footer{
  background: var(--ink); color: var(--off-white);
  padding-block: var(--space-lg);
  text-align: center;
}
.footer-logo{
  height: 52px; width: auto; margin-inline: auto; margin-bottom: var(--space-sm);
}
.footer-tagline{ font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h3); margin-bottom: .5em; }
.footer-copy{ color: #8FA0A8; font-size: .85rem; }

/* ---------- 15. RESPONSIVE NAV (mobile) ---------- */
@media (max-width: 760px){
  .nav-toggle{ display: flex; }
  .site-nav{
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ink); border-bottom: var(--border-w) solid #000;
    flex-direction: column; padding: var(--space-md);
    gap: var(--space-sm);
    display: none;
  }
  .site-nav.is-open{ display: flex; }
}
