/* =====================================================================
   Let's Play With Physics — shared site design
   Colours come from the logo: navy, brand blue, and orange for main actions.
   Used by every public page. (The student portal & login pages use css/account.css.)
   ===================================================================== */

/* ───────── Design tokens (colours taken from the logo) ───────── */
:root {
  --navy-950: #060d22;
  --navy-900: #0b1736;
  --navy-800: #13244d;
  --blue: #1f6feb;          /* main brand blue (buttons, links on light) */
  --blue-bright: #4d9bff;   /* brand blue on dark backgrounds */
  --blue-soft: #e8f0ff;
  --orange: #ff9a1f;        /* logo orange — main call-to-action */
  --orange-dark: #e7820a;
  --ink: #0f172a;           /* headings on light */
  --text: #334155;          /* body on light (contrast 10:1) */
  --muted: #5b6b82;         /* secondary on light (contrast 5.4:1) */
  --line: #e3e9f3;
  --bg-soft: #f4f7fc;
  --on-dark: #eef3ff;
  --on-dark-muted: #b4c2dc; /* secondary on navy (contrast 9:1) */
  --green: #16a34a;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(15,23,42,0.05), 0 8px 24px rgba(15,23,42,0.07);
  --shadow-lg: 0 20px 50px rgba(6,13,34,0.35);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Space Grotesk', system-ui, sans-serif; color: var(--text); background: #fff; font-size: 16px; line-height: 1.6; overflow-x: hidden; }
h1, h2, h3 { font-family: 'Syne', 'Space Grotesk', sans-serif; color: var(--ink); line-height: 1.15; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.svg-ico { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ───────── Buttons ───────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: 12px; font-weight: 700; font-size: 15.5px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; font-family: inherit; }
.btn:hover { transform: translateY(-1px); }
.btn-orange { background: var(--orange); color: #1b1203; box-shadow: 0 8px 22px rgba(255,154,31,0.35); }
.btn-orange:hover { background: #ffab45; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: #1a5fd0; }
.btn-outline-light { border-color: rgba(255,255,255,0.35); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,0.08); }
.btn-outline { border-color: var(--blue); color: var(--blue); background: #fff; }
.btn-outline:hover { background: var(--blue-soft); }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1fbd5b; }

/* ───────── Navigation ───────── */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(6,13,34,0.92); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,0.08); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-logo img { height: 50px; width: auto; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--on-dark-muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: #fff; }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-login { color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; }
.nav .btn { padding: 10px 18px; font-size: 14.5px; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: all .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: none; flex-direction: column; background: var(--navy-950); max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.mobile-menu.open { max-height: 560px; }
.mobile-menu a { color: var(--on-dark); text-decoration: none; padding: 14px 24px; border-top: 1px solid rgba(255,255,255,0.06); font-size: 16px; }
.mobile-menu .btn { margin: 14px 24px 20px; }

/* ───────── Hero ───────── */
.hero { position: relative; background: radial-gradient(900px 500px at 85% 20%, rgba(31,111,235,0.35), transparent 60%), radial-gradient(600px 400px at 10% 90%, rgba(255,154,31,0.12), transparent 60%), linear-gradient(180deg, var(--navy-950), var(--navy-900)); color: var(--on-dark); padding: 72px 0 88px; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(180deg, #000, transparent 85%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,154,31,0.14); color: #ffc070; border: 1px solid rgba(255,154,31,0.35); padding: 7px 14px; border-radius: 30px; font-size: 13.5px; font-weight: 700; }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(255,154,31,0.25); }
.hero h1 { color: #fff; font-size: clamp(36px, 5.2vw, 60px); margin: 22px 0 18px; letter-spacing: -0.5px; }
.hero h1 .hl-blue { color: var(--blue-bright); }
.hero h1 .hl-orange { color: var(--orange); }
.hero-sub { font-size: 18px; color: var(--on-dark-muted); max-width: 540px; margin-bottom: 30px; }
.hero-sub b { color: #fff; font-weight: 600; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; font-size: 14.5px; color: var(--on-dark-muted); }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .svg-ico { width: 18px; height: 18px; color: #4ade80; }

/* Product preview on the right of the hero */
.preview { position: relative; height: 420px; }
.pv-card { position: absolute; background: #fff; color: var(--ink); border-radius: 16px; box-shadow: var(--shadow-lg); }
.pv-test { inset: 0 40px 70px 0; padding: 18px 20px; display: flex; flex-direction: column; }
.pv-head { display: flex; justify-content: space-between; align-items: center; background: var(--navy-800); color: #fff; margin: -18px -20px 16px; padding: 12px 18px; border-radius: 16px 16px 0 0; font-size: 13px; font-weight: 700; }
.pv-timer { background: #fff; color: var(--navy-800); padding: 3px 9px; border-radius: 6px; font-size: 12px; }
.pv-q { font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.pv-opt { border: 1.5px solid var(--line); border-radius: 9px; padding: 8px 12px; font-size: 13px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.pv-opt i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #94a3b8; flex-shrink: 0; }
.pv-opt.sel { border-color: var(--blue); background: var(--blue-soft); }
.pv-opt.sel i { border-color: var(--blue); background: radial-gradient(var(--blue) 45%, transparent 50%); }
.pv-palette { display: flex; gap: 6px; margin-top: auto; }
.pv-palette b { width: 26px; height: 24px; border-radius: 6px; font-size: 11px; display: grid; place-items: center; color: #fff; }
.pv-sheet { right: 0; bottom: 0; width: 230px; padding: 16px 18px; border-top: 5px solid var(--orange); }
.pv-sheet small { color: var(--muted); font-weight: 700; font-size: 11px; letter-spacing: 1px; }
.pv-sheet strong { display: block; font-family: 'Syne', sans-serif; font-size: 16px; margin: 2px 0 8px; }
.pv-formula { background: #fbf6ea; border: 1px solid #ecd9a6; border-radius: 8px; padding: 8px 10px; font-family: Georgia, serif; font-size: 14px; text-align: center; color: #3b2f12; }
.pv-score { position: absolute; left: 0; bottom: 0; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); padding: 12px 16px; display: flex; align-items: center; gap: 12px; }
.pv-score .ring { width: 44px; height: 44px; border-radius: 50%; background: conic-gradient(var(--green) 0 78%, #e2e8f0 78%); display: grid; place-items: center; }
.pv-score .ring::after { content: '78%'; background: #fff; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--ink); }
.pv-score div { font-size: 12px; color: var(--muted); line-height: 1.3; }
.pv-score div b { display: block; color: var(--ink); font-size: 14px; }

/* ───────── Stats strip ───────── */
.stats { position: relative; margin-top: -44px; z-index: 2; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.stat { padding: 24px 26px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat b { display: block; font-family: 'Syne', sans-serif; font-size: 30px; color: var(--ink); line-height: 1.1; }
.stat span { font-size: 14.5px; color: var(--muted); }

/* ───────── Sections ───────── */
section { padding: 96px 0; }
.soft { background: var(--bg-soft); }
.eyebrow { display: inline-block; color: var(--blue); font-weight: 700; font-size: 13px; letter-spacing: 1.6px; text-transform: uppercase; margin-bottom: 12px; }
.sec-head { max-width: 640px; margin-bottom: 44px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 14px; }
.sec-head p { font-size: 17px; color: var(--muted); }

/* Feature cards */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); text-decoration: none; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s; }
.feature:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15,23,42,0.12); border-color: #c9d8f5; }
.ico-chip { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; }
.ico-chip .svg-ico { width: 26px; height: 26px; }
.c-blue { background: #e8f0ff; color: #1f6feb; }
.c-orange { background: #fff1de; color: #d97706; }
.c-green { background: #e3f8ec; color: #15803d; }
.c-purple { background: #f0e9ff; color: #7c3aed; }
.c-pink { background: #ffe8f0; color: #db2777; }
.c-teal { background: #ddf6f6; color: #0f8b8d; }
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; flex: 1; }
.feature .more { margin-top: 18px; color: var(--blue); font-weight: 700; font-size: 14.5px; }

/* Teacher */
.teacher { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: center; }
.teacher-photo { aspect-ratio: 4 / 5; border-radius: 24px; background: radial-gradient(circle at 30% 20%, #2b5bd7, var(--navy-900) 70%); display: grid; place-items: center; position: relative; box-shadow: var(--shadow-lg); overflow: hidden; }
.teacher-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.teacher-photo .initials { font-family: 'Syne', sans-serif; font-size: 96px; font-weight: 800; color: rgba(255,255,255,0.92); }
.teacher-photo .tag { position: absolute; left: 16px; right: 16px; bottom: 16px; background: rgba(255,255,255,0.95); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; color: var(--muted); }
.teacher-photo .tag b { display: block; color: var(--ink); font-size: 15.5px; }
.teacher h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 18px; }
.teacher p { font-size: 17px; margin-bottom: 16px; }
.quote { border-left: 4px solid var(--orange); padding: 6px 0 6px 18px; font-size: 18px; color: var(--ink); font-weight: 500; margin: 22px 0; }
.creds { display: flex; flex-wrap: wrap; gap: 10px; }
.cred { display: inline-flex; align-items: center; gap: 8px; background: var(--bg-soft); border: 1px solid var(--line); padding: 8px 14px; border-radius: 30px; font-size: 14px; font-weight: 600; color: var(--ink); }
.cred .svg-ico { width: 17px; height: 17px; color: var(--blue); }

/* Batches */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 26px; justify-content: center; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 34px; box-shadow: var(--shadow); position: relative; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--orange); box-shadow: 0 24px 50px rgba(255,154,31,0.18); }
.ribbon { position: absolute; top: -14px; right: 26px; background: var(--orange); color: #1b1203; font-weight: 700; font-size: 12.5px; padding: 6px 14px; border-radius: 20px; }
.plan-tag { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.plan h3 { font-size: 24px; margin: 6px 0 14px; }
.price { font-family: 'Syne', sans-serif; font-size: 44px; font-weight: 800; color: var(--ink); line-height: 1; }
.price small { font-family: 'Space Grotesk', sans-serif; font-size: 16px; font-weight: 500; color: var(--muted); }
.plan ul { list-style: none; margin: 24px 0 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.plan li { display: flex; gap: 10px; font-size: 15.5px; }
.plan li .svg-ico { width: 20px; height: 20px; color: var(--green); flex-shrink: 0; margin-top: 2px; stroke-width: 2.4; }
.plan .btn { width: 100%; }

/* Simulations (dark band) */
.dark { background: linear-gradient(180deg, var(--navy-900), var(--navy-950)); color: var(--on-dark); }
.dark h2, .dark h3 { color: #fff; }
.dark .sec-head p { color: var(--on-dark-muted); }
.dark .eyebrow { color: var(--orange); }
.sims { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.sim { background: var(--navy-800); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; transition: transform .2s, border-color .2s; }
.sim:hover { transform: translateY(-4px); border-color: rgba(77,155,255,0.5); }
.sim-art { height: 150px; display: grid; place-items: center; }
.sim-art svg { width: 120px; height: 120px; }
.sim-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.sim-body h3 { font-size: 19px; margin-bottom: 8px; }
.sim-body p { color: var(--on-dark-muted); font-size: 15px; flex: 1; }
.sim-body .more { margin-top: 16px; color: var(--blue-bright); font-weight: 700; font-size: 14.5px; }
.center-btn { text-align: center; margin-top: 40px; }

/* Topics */
.topics { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.topic-col { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow); }
.topic-col h3 { font-size: 18px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.topic-col h3 span { font-family: 'Space Grotesk', sans-serif; font-size: 12.5px; font-weight: 700; background: var(--blue-soft); color: var(--blue); padding: 3px 10px; border-radius: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink); font-size: 14.5px; font-weight: 500; padding: 8px 14px; border-radius: 10px; text-decoration: none; transition: background .15s, border-color .15s, color .15s; }
.chip:hover { background: var(--blue-soft); border-color: #bcd2fb; color: var(--blue); }
.topics-note { text-align: center; margin-top: 26px; color: var(--muted); font-size: 15px; }
.topics-note a { color: var(--blue); font-weight: 700; }

/* Contact / CTA */
.cta { background: radial-gradient(700px 400px at 90% 0%, rgba(31,111,235,0.4), transparent 60%), var(--navy-900); color: var(--on-dark); border-radius: 28px; padding: 56px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.cta h2 { color: #fff; font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 14px; }
.cta p { color: var(--on-dark-muted); font-size: 17px; margin-bottom: 26px; }
.cta-contacts { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.cta-mail { color: var(--on-dark); font-weight: 600; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.cta-mail .svg-ico { width: 20px; height: 20px; color: var(--orange); }
.enquiry { background: #fff; border-radius: 20px; padding: 28px; color: var(--text); }
.enquiry h3 { font-size: 20px; margin-bottom: 4px; }
.enquiry > p { font-size: 14.5px; color: var(--muted); margin-bottom: 18px; }
.enquiry label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.enquiry input { width: 100%; border: 1.5px solid #cbd5e1; border-radius: 10px; padding: 12px 14px; font-size: 15.5px; font-family: inherit; margin-bottom: 14px; color: var(--ink); }
.enquiry input::placeholder { color: #7a879b; }
.enquiry input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,111,235,0.15); }
.enquiry .btn { width: 100%; }
.enquiry-status { margin-top: 12px; font-size: 14.5px; min-height: 1.2em; color: var(--green); font-weight: 600; }

/* Footer */
footer { background: var(--navy-950); color: var(--on-dark-muted); padding: 60px 0 28px; }
#contact.container { margin-bottom: 96px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.foot-grid img { height: 60px; width: auto; margin-bottom: 14px; }
.foot-grid p { font-size: 14.5px; max-width: 300px; }
.foot-grid h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.foot-grid a { display: block; color: var(--on-dark-muted); text-decoration: none; font-size: 14.5px; margin-bottom: 10px; }
.foot-grid a:hover { color: #fff; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 40px; padding-top: 22px; font-size: 13.5px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ───────── Responsive ───────── */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .preview { display: none; }
  .features, .sims { grid-template-columns: repeat(2, 1fr); }
  .teacher { grid-template-columns: 1fr; gap: 32px; }
  .teacher-photo { max-width: 320px; }
  .cta { grid-template-columns: 1fr; padding: 40px 32px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-links, .nav-right .nav-login, .nav-right .btn { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .hero { padding: 44px 0 76px; }
  .hero-sub { font-size: 16.5px; }
  .hero-btns .btn { width: 100%; }
  section { padding: 68px 0; }
  .features, .sims, .topics, .plans { grid-template-columns: 1fr; }
  .stat { padding: 18px; }
  .stat b { font-size: 24px; }
  .plan { padding: 28px 22px; }
  .cta { padding: 32px 20px; border-radius: 22px; }
  .enquiry { padding: 22px 18px; }
  .foot-grid { grid-template-columns: 1fr; }
}

/* ───────── Inner pages ───────── */
.page-hero { position: relative; background: radial-gradient(800px 420px at 85% 0%, rgba(31,111,235,0.35), transparent 60%), linear-gradient(180deg, var(--navy-950), var(--navy-900)); color: var(--on-dark); padding: 64px 0 72px; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(180deg, #000, transparent 90%); pointer-events: none; }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(32px, 4.6vw, 52px); margin: 14px 0 14px; letter-spacing: -0.4px; }
.page-hero p { color: var(--on-dark-muted); font-size: 18px; max-width: 640px; }
.page-hero .eyebrow { color: var(--orange); }
.crumbs { font-size: 14px; color: var(--on-dark-muted); }
.crumbs a { color: var(--on-dark-muted); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.page-hero.center { text-align: center; }
.page-hero.center p { margin: 0 auto; }
.page-body { padding: 72px 0; }
.narrow { max-width: 860px; margin: 0 auto; }

/* About: hero with photo */
.about-hero { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: center; }
.about-photo { aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; position: relative; box-shadow: var(--shadow-lg); border: 3px solid rgba(255,255,255,0.12); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-hero .creds { margin-top: 24px; }
.about-hero .cred { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.14); color: #fff; }
.about-hero .cred .svg-ico { color: var(--orange); }

/* Generic content card and grids */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card p + p { margin-top: 8px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.mission { background: linear-gradient(135deg, var(--navy-900), var(--navy-800)); color: var(--on-dark); border-radius: 24px; padding: 44px; position: relative; overflow: hidden; }
.mission h2 { color: #fff; font-size: clamp(24px, 3vw, 32px); margin-bottom: 14px; }
.mission p { color: var(--on-dark-muted); font-size: 17.5px; max-width: 760px; }
.mission::after { content: 'E = mc²'; position: absolute; right: 30px; bottom: 10px; font-family: Georgia, serif; font-size: 72px; color: rgba(255,255,255,0.05); }
.prose-block h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 14px; }
.prose-block p { font-size: 17px; margin-bottom: 14px; }

/* Contact */
.contact-card .ico-chip { margin-bottom: 14px; }
.contact-card a { color: var(--blue); font-weight: 700; text-decoration: none; }
.contact-card .email-link { font-size: 14px; overflow-wrap: anywhere; }
.contact-card .btn { margin-top: 16px; }
.contact-card .btn-whatsapp { color: #fff; }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 700; color: var(--ink); font-size: 16.5px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--blue); font-size: 22px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 18px; color: var(--muted); font-size: 15.5px; }
.faq details a { color: var(--blue); font-weight: 600; }
.note { background: #fff8eb; border: 1px solid #f6d9a8; color: #6b4a12; border-radius: 14px; padding: 16px 20px; font-size: 15px; margin-top: 28px; }

/* Legal pages */
.legal { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.toc { position: sticky; top: 96px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: var(--shadow); }
.toc h3 { font-size: 15px; margin-bottom: 10px; }
.toc ol { padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--blue); }
.legal-body section { padding: 0 0 32px; margin-bottom: 32px; border-bottom: 1px solid var(--line); scroll-margin-top: 96px; }
.legal-body section:last-child { border-bottom: none; }
.legal-body h2 { font-size: 22px; margin-bottom: 12px; display: flex; align-items: center; gap: 12px; }
.legal-body h2 .num { width: 32px; height: 32px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); font-size: 15px; display: grid; place-items: center; flex-shrink: 0; font-family: 'Space Grotesk', sans-serif; }
.legal-body p, .legal-body li { font-size: 16px; margin-bottom: 10px; }
.legal-body ul { padding-left: 22px; }
.legal-body a { color: var(--blue); font-weight: 600; }
.legal-intro { background: var(--blue-soft); border: 1px solid #cfdcf8; border-radius: 14px; padding: 18px 22px; margin-bottom: 36px; font-size: 16px; color: var(--ink); }

/* Simulations page */
.sim-request { margin-top: 48px; text-align: center; }
.sim-soon { border: 2px dashed rgba(255,255,255,0.18); border-radius: var(--radius); display: grid; place-items: center; text-align: center; padding: 30px; color: var(--on-dark-muted); }
.sim-soon h3 { color: #fff; font-size: 18px; margin: 10px 0 6px; }

/* Login-gate page (Study Materials for visitors) */
.gate-card { max-width: 480px; margin: 0 auto; text-align: center; }
.gate-card .btn { width: 100%; margin-top: 10px; }

@media (max-width: 1000px) {
  .about-hero { grid-template-columns: 1fr; }
  .about-photo { max-width: 260px; order: -1; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .legal { grid-template-columns: 1fr; }
  .toc { position: static; }
}
@media (max-width: 640px) {
  .page-hero { padding: 44px 0 52px; }
  .page-hero p { font-size: 16.5px; }
  .page-body { padding: 52px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .mission { padding: 30px 22px; }
  .card { padding: 22px; }
}

/* Open formula-sheet library (material.html) */
.fs-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.fs-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.fs-pill { background: #fff; border: 1.5px solid var(--line); color: var(--ink); border-radius: 30px; padding: 10px 18px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; }
.fs-pill span { color: var(--muted); font-weight: 600; margin-left: 4px; }
.fs-pill.active { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.fs-pill.active span { color: var(--on-dark-muted); }
.fs-search { flex: 1; max-width: 340px; min-width: 220px; border: 1.5px solid #cbd5e1; border-radius: 12px; padding: 11px 14px; font-size: 15px; font-family: inherit; }
.fs-search:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,111,235,0.15); }
.fs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.fs-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; transition: transform .2s, box-shadow .2s; }
.fs-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(15,23,42,0.12); }
.fs-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.fs-ico { width: 42px; height: 42px; border-radius: 12px; background: var(--blue-soft); display: grid; place-items: center; font-size: 20px; }
.fs-new { background: #dcfce7; color: #15803d; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 20px; }
.fs-card h3 { font-size: 17px; line-height: 1.3; }
.fs-card p { color: var(--muted); font-size: 13.5px; }
.fs-actions { display: flex; gap: 8px; margin-top: 12px; }
.fs-actions .btn { padding: 9px 16px; font-size: 14px; flex: 1; }
.fs-empty { color: var(--muted); }
.fs-more { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.fs-more h2 { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 8px; }
.fs-more p { max-width: 560px; font-size: 16px; }
.fs-more-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 640px) {
  .fs-search { max-width: none; }
  .fs-more-actions, .fs-more-actions .btn { width: 100%; }
}
