/* Lemma Academy — styles. Colors are defined once here; change them in :root. */
:root {
  --navy: #173B65;
  --navy-ink: #10294a;
  --sky: #75B9E7;
  --gold: #EAB54B;
  --gold-dark: #d9a136;
  --white: #FFFFFF;
  --tint: #F1F6FC;
  --text: #1f2d3d;
  --muted: #4a5b6e;
  --line: #d7e3f1;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(23, 59, 101, .08);
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; color: var(--text); background: var(--white); }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--navy-ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(780px, 100% - 2.5rem); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -100px; background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 100; border-radius: 6px; }
.skip-link:focus { top: 1rem; color: #fff; }

/* Buttons */
.btn { display: inline-block; padding: .85rem 1.4rem; border-radius: 10px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; font-family: var(--sans); text-align: center; transition: background-color .15s, border-color .15s; }
.btn-gold { background: var(--gold); color: var(--navy-ink); }
.btn-gold:hover { background: var(--gold-dark); color: var(--navy-ink); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-sm { padding: .55rem 1rem; font-size: .95rem; }
.btn-block { display: block; width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 70px; gap: 1rem; }
.brand img { width: 210px; }
.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav ul { list-style: none; display: flex; gap: 1.25rem; margin: 0; padding: 0; }
.site-nav ul a { text-decoration: none; font-weight: 600; color: var(--text); padding: .3rem 0; }
.site-nav ul a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 5px; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { display: block; position: absolute; left: 10px; width: 24px; height: 2px; background: var(--navy); content: ""; }
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { top: -7px; left: 0; }
.nav-toggle-bar::after { top: 7px; left: 0; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 70px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 1rem 1.25rem 1.25rem; gap: 1rem; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: .7rem 0; border-bottom: 1px solid var(--line); }
  .brand img { width: 180px; }
}

/* Hero */
.hero { background: var(--tint); padding: clamp(3rem, 7vw, 5.5rem) 0; }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.eyebrow { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; color: var(--muted); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 38rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0; }
.hero-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; color: var(--navy); font-weight: 600; font-size: .95rem; }
.hero-facts li::before { content: "✓ "; color: var(--gold-dark); }
.math-art { border-radius: 20px; box-shadow: var(--shadow); }
@media (max-width: 800px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { max-width: 300px; }
}

/* Sections */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section-tint { background: var(--tint); }
.section-title { margin-bottom: .4em; }
.section-intro { color: var(--muted); max-width: 44rem; margin-bottom: 2rem; }
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.card p:last-child { margin-bottom: 0; }
.card h3 { border-top: 3px solid var(--sky); padding-top: .8rem; }

.two-col { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2.5rem; align-items: start; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; gap: 1rem; } }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .8rem 1rem .8rem 2.6rem; margin-bottom: .6rem; position: relative; }
.check-list li::before { content: ""; position: absolute; left: 1rem; top: 1.15rem; width: .8rem; height: .45rem; border-left: 3px solid var(--navy); border-bottom: 3px solid var(--navy); transform: rotate(-45deg); }

.plain-list { padding-left: 1.2rem; margin: 0 0 1rem; }
.plain-list li { margin-bottom: .3rem; }
.tag { display: inline-block; background: var(--tint); color: var(--navy); font-size: .8rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; margin-bottom: .6rem; }
.program-card h3 { display: block; }
.price-inline { font-size: 1.1rem; color: var(--navy); border-top: 1px solid var(--line); padding-top: .8rem; }
.price-inline strong { font-size: 1.6rem; font-family: var(--serif); }
.notice { margin-top: 1.5rem; padding: 1rem 1.25rem; border-left: 4px solid var(--gold); background: var(--tint); border-radius: 0 10px 10px 0; }
.notice p { margin: 0; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: none; }
.steps li { background: #fff; border-radius: var(--radius); padding: 1.5rem; border: 1px solid var(--line); }
.step-num { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; margin-bottom: .8rem; }
.steps p { margin: 0; color: var(--muted); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Pricing */
.price-card { display: flex; flex-direction: column; }
.price-card h3 { display: block; border: 0; padding: 0; }
.price-card .plain-list { flex-grow: 1; }
.price { font-family: var(--serif); font-size: 2.6rem; color: var(--navy); margin: 0; line-height: 1.1; }
.price span { font-size: 1rem; font-family: var(--sans); color: var(--muted); }
.duration { color: var(--muted); font-size: .95rem; }
.price-card.featured { border: 2px solid var(--gold); }
.fine-print { margin-top: 1.5rem; color: var(--muted); font-size: .95rem; max-width: 48rem; }

/* Founder */
.founder { display: grid; grid-template-columns: 280px 1fr; gap: 3rem; align-items: start; }
.photo-placeholder, .founder-photo img { width: 100%; aspect-ratio: 1; border-radius: 20px; object-fit: cover; }
.photo-placeholder { display: grid; place-items: center; background: var(--navy); color: #fff; font-family: var(--serif); font-size: 4rem; }
.founder-name { font-weight: 700; color: var(--navy); }
@media (max-width: 760px) { .founder { grid-template-columns: 1fr; } .founder-photo { max-width: 220px; } }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); padding: 1.1rem 2rem 1.1rem 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: .9rem; font-size: 1.5rem; color: var(--navy); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 1rem; margin: 0; }

/* Form */
.inquiry-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 4vw, 2rem); box-shadow: var(--shadow); }
.field { margin-bottom: 1.1rem; border: 0; padding: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
label, legend { display: block; font-weight: 600; margin-bottom: .35rem; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea { width: 100%; padding: .75rem .85rem; border: 1px solid #9fb3c8; border-radius: 8px; font: inherit; color: var(--text); background: #fff; }
input:focus, select:focus, textarea:focus { border-color: var(--navy); }
.choice { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; margin-bottom: .45rem; }
.choice input { margin-top: .35rem; width: 1.1rem; height: 1.1rem; flex-shrink: 0; accent-color: var(--navy); }
.req { color: #a4262c; }
.optional { font-weight: 400; color: var(--muted); }
.form-note { font-size: .95rem; color: var(--muted); background: var(--tint); padding: .75rem 1rem; border-radius: 8px; }

/* Footer */
.site-footer { background: var(--navy); color: #dbe7f5; padding: 3rem 0 2rem; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 2rem; }
.footer-brand { font-family: var(--serif); font-size: 1.3rem; color: #fff; font-weight: 700; margin-bottom: .2rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .4rem; }
.footer-legal p { margin-bottom: .4rem; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; gap: 1rem; } }

/* Simple pages (privacy, terms, thank you) */
.page { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.page h2 { font-size: 1.4rem; margin-top: 2rem; }
.placeholder { background: #fff6e0; border: 1px dashed var(--gold-dark); padding: .1rem .35rem; border-radius: 4px; }
.thanks { text-align: center; padding: clamp(4rem, 10vw, 7rem) 0; }
.thanks .steps-mini { text-align: left; max-width: 34rem; margin: 1.5rem auto 2rem; }
