/* Shared navigation and editorial pages. Loaded after page-specific styles. */
:root { --ink: #172c40; --quiet: #526171; --line: #dce2e6; --primary-color: #2b5e85; --primary-hover: #204969; --bg-light: #f5f6f7; --text-main: #172c40; --text-muted: #526171; }
body { overflow-x: clip; }
img { max-width: 100%; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #165bb8; outline-offset: 4px; }
[id] { scroll-margin-top: 24px; }
.skip-link { position: absolute; left: 20px; top: -100px; z-index: 2000; padding: 12px 18px; background: white; color: #172b46; }
.skip-link:focus { top: 8px; }
body .navbar, body.homepage .navbar { position: relative; top: auto; background: #fff; border-bottom: 1px solid var(--line); padding: 16px 0; }
body .nav-container { max-width: 1280px; gap: 24px; }
body .navbar .nav-logo-img, body.homepage .navbar .nav-logo-img { width: 52px !important; height: 52px !important; min-width: 52px !important; max-height: 52px; box-shadow: none; border: 0; }
body .navbar .logo-text { font-size: 1.8rem; white-space: nowrap; color: var(--ink); background: none; -webkit-text-fill-color: currentColor; font-weight: 600; letter-spacing: -.045em; }
body .navbar .brand-copy { gap: 4px; }
.brand-service { color: var(--quiet); font-size: .875rem; letter-spacing: .06em; }
body .navbar .nav-links { gap: 22px; font-size: .9375rem; }
body .navbar .nav-links a { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; font-weight: 500; white-space: nowrap; }
.beta-pill { display: inline-block; flex: 0 0 auto; padding: 2px 6px; border: 1px solid #d3dce4; border-radius: 4px; background: #f1f5f8; color: #3d5e79; font: 600 .75rem/1.3 var(--font-body); letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; vertical-align: middle; }
body .navbar .consultation-nav { border: 1px solid #aab9c7; border-radius: 6px; padding: 10px 14px; color: var(--ink); }
body .navbar .consultation-nav:hover { background: #f1f5f8; border-color: var(--primary-color); }
body .navbar .consultation-nav::after { display: none; }
.navbar .nav-links a[aria-current] { color: #0b57b8; }
.navbar .nav-links a[aria-current]::after { width: 100%; }
.navbar .hamburger span { transition: transform .2s ease, opacity .2s ease; }
.navbar.nav-open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar.nav-open .hamburger span:nth-child(2) { opacity: 0; }
.navbar.nav-open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.homepage .hero { background: #f6f7f8; }
.homepage .hero::before { display: none; }
.story-bridge { padding: 64px 0; border-block: 1px solid var(--line); background: #f4f6f7; }
.bridge-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.eyebrow { display: block; font-size: .875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #195ba9; margin-bottom: 20px; }
.story-bridge h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); color: var(--ink); letter-spacing: -.025em; }
.story-bridge p { color: var(--quiet); font-size: 1.0625rem; margin-bottom: 20px; }
.text-links { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.text-links a, .editorial a:not(.btn), .product-page a:not(.btn) { color: #0b57b8; text-decoration: underline; text-underline-offset: 5px; }
.text-links a { padding: 8px 0; font-weight: 600; }
.founder-role { display: block; font-family: var(--font-body); font-size: 1rem; color: var(--quiet); font-weight: 600; margin-top: 8px; }
.editorial, .product-page { color: var(--ink); }
.editorial h1, .editorial h2, .product-page h1, .product-page h2, .homepage h2, .homepage h3 { font-weight: 600; }
.editorial-wrap { width: min(100% - 40px, 780px); margin-inline: auto; }
.story-header { padding: 88px 0 64px; border-bottom: 1px solid var(--line); }
.story-header h1 { font-size: clamp(2.75rem, 6vw, 4.5rem); letter-spacing: -.045em; margin-bottom: 24px; line-height: 1.08; }
.story-header .intro { font-size: clamp(1.25rem, 2.8vw, 1.6rem); line-height: 1.55; max-width: 650px; color: var(--quiet); }
.story-byline { display: flex; align-items: center; gap: 14px; margin-top: 32px; }
.story-byline img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.story-byline p { font-size: .9375rem; }
.story-byline span { display: block; color: var(--quiet); }
.story-chapter { padding: 48px 0; border-bottom: 1px solid var(--line); }
.story-chapter h2 { font-size: clamp(1.65rem, 3vw, 2.1rem); letter-spacing: -.025em; margin-bottom: 22px; }
.story-chapter p { font-size: 1.125rem; line-height: 1.8; margin-bottom: 18px; color: #425169; }
.story-chapter p:last-child { margin-bottom: 0; }
.story-chapter strong { color: var(--ink); }
.story-question { border-left: 3px solid #b28a56; padding: 4px 0 4px 24px; margin: 28px 0; font-size: clamp(1.35rem, 3vw, 1.7rem); line-height: 1.6; }
.story-outro { padding: 56px 0 88px; }
.story-outro h2 { font-size: 2rem; margin-bottom: 20px; }
.story-outro p { font-size: 1.2rem; line-height: 1.8; margin-bottom: 24px; }
.status-label { display: inline-block; padding: 7px 12px; border-radius: 5px; background: #edf4ff; color: #18529d; font-size: .875rem; font-weight: 700; }
.product-wrap { max-width: 1120px; margin: auto; padding-inline: 24px; }
.product-hero { padding: 80px 0 64px; background: #f6f7f8; border-bottom: 1px solid var(--line); }
.product-hero h1 { max-width: 25ch; font-size: clamp(2.25rem, 4.7vw, 4.25rem); letter-spacing: -.04em; margin: 24px 0; line-height: 1.12; text-wrap: balance; }
.product-hero .lead { max-width: 740px; font-size: clamp(1.3rem, 2.7vw, 1.75rem); line-height: 1.5; }
.product-hero .description { max-width: 700px; margin: 22px 0; font-size: 1.125rem; color: var(--quiet); }
.product-principles { font-size: clamp(1.1rem, 2vw, 1.4rem); line-height: 1.5; font-weight: 500; }
.product-stage { color: var(--quiet); font-size: .9375rem; margin-block: 24px; }
.product-stage span { padding-inline: 7px; }
.product-hero .eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.section-heading .status-label { flex-shrink: 0; }
.roadmap-note { font-size: 1rem !important; }
.practice-pillars { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; margin: 40px 0 32px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.practice-pillar { position: relative; min-width: 0; }
.pillar-visual { display: block; width: 64px; height: 64px; margin-bottom: 24px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pillar-visual .visual-secondary { stroke: #98aebe; }
.pillar-visual .visual-accent { stroke: var(--primary-color); stroke-width: 2.2; }
@media (min-width: 993px) {
    .practice-pillar:not(:last-child)::after { content: ''; position: absolute; top: 32px; left: 76px; right: -16px; border-top: 1px solid var(--line); }
}
.practice-pillar h3 { font-family: var(--font-body); font-size: .875rem; letter-spacing: .07em; text-transform: uppercase; color: var(--primary-color); margin-bottom: 18px; }
.practice-pillar p { font-size: 1.0625rem; line-height: 1.6; }
.supporting-capabilities { max-width: 760px; padding-top: 4px; font-size: 1rem !important; }
.supporting-capabilities strong { font-weight: 600; }
.screenshot-caption { margin-top: 18px; font-size: .9375rem; color: var(--quiet); }
.product-section { padding: 64px 0; border-bottom: 1px solid var(--line); }
.product-section h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 20px; letter-spacing: -.025em; }
.product-section > p { color: var(--quiet); max-width: 720px; font-size: 1.125rem; }
.feature-list { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.feature-list li { border-top: 1px solid var(--line); padding: 24px 0; }
.feature-list h3 { font-size: 1.2rem; margin-bottom: 10px; }
.feature-list p { color: var(--quiet); }
.product-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.product-bottom p { margin-bottom: 20px; color: var(--quiet); font-size: 1.0625rem; }
.simple-footer { background: #172b46; color: #fff; padding: 40px 0; }
.simple-footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.simple-footer p { color: #ced8e6; margin-top: 8px; }
.simple-footer a { color: white; display: inline-block; padding: 8px 0; overflow-wrap: anywhere; }
.simple-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.screenshots-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 72px; margin-top: 48px; }
.screenshots-grid figure { margin: 0; min-width: 0; }
.screenshots-grid figure:first-child { width: 100%; max-width: 960px; margin-inline: auto; }
.screenshots-grid figcaption { margin-bottom: 24px; max-width: 720px; color: var(--quiet); font-size: 1rem; }
.screenshots-grid h3 { color: var(--ink); font-size: clamp(1.35rem, 2.5vw, 1.8rem); font-weight: 600; letter-spacing: -.02em; margin-bottom: 10px; }
.screenshot-image-link { display: block; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 4px 18px rgb(23 44 64 / 5%); background: #fff; }
.screenshots-grid img { display: block; width: 100%; height: auto; border-radius: 8px; }
#product-screenshots .screenshot-caption, #product-screenshots .screenshot-zoom-note { font-size: .9375rem; }
@media (max-width: 768px) {
    #screenshots-grid { gap: 48px; margin-top: 32px; }
    .screenshots-grid figcaption { margin-bottom: 18px; }
}
.asset-placeholder { aspect-ratio: 16 / 9; border: 1px dashed #7890ac; border-radius: 12px; background: #f3f7fc; display: grid; place-items: center; padding: 24px; text-align: center; color: #425169; overflow-wrap: anywhere; }
.review-notice { padding: 14px 18px; border-left: 3px solid #cf7b18; background: #fff5e5; margin-top: 24px; }
[hidden] { display: none !important; }
/* Existing program pages used a fixed 320px grid minimum. */
.programs-container { min-width: 0; }
.subject-page .hero { margin-top: 0 !important; padding-block: 64px; min-height: 55vh !important; }
.subject-page .hero-content { max-width: 760px; }
.subject-page .hero h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
.educator-page h1 { font-size: clamp(2rem, 5vw, 2.8rem) !important; }
.subject-page .btn-outline-light { border-color: #0b57b8; color: #0b57b8; margin-top: 12px; }
.educator-page .navbar + .section-padding { padding-top: 64px !important; }
.section-title, .homepage .section-title { color: var(--ink); letter-spacing: -.025em; }
.btn { border-radius: 6px; }
.btn-primary:hover { box-shadow: none; transform: none; }
.homepage .section-padding { padding-block: 64px; }
.homepage .hero { padding-block: 72px; }
.homepage .hero-content h1 { color: var(--ink); font-weight: 600; letter-spacing: -.035em; }
.homepage .hero-content p { font-size: 1.125rem; }
.homepage .hero .badge { border-radius: 0; padding: 0; background: transparent !important; color: var(--quiet) !important; font-size: .875rem; }
.homepage .hero-content { width: 100%; max-width: 1120px; }
.homepage .hero-content h1 { max-width: 790px; margin-inline: auto; }
.homepage .hero-description { max-width: 700px; margin-inline: auto; }
.homepage .hero-content .hero-secondary-contact { margin: 14px 0 0; font-size: .875rem; }
.hero-secondary-contact a { color: var(--quiet); text-underline-offset: 3px; }
.hero-proof-points { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.hero-proof-points li { min-width: 0; }
.hero-proof-points svg { display: block; width: 40px; height: 40px; margin: 0 auto 16px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hero-proof-points .proof-accent { stroke: var(--primary-color); }
.homepage .hero-proof-points h2 { font-size: 1.0625rem; line-height: 1.4; color: var(--ink); margin-bottom: 8px; }
.homepage .hero-proof-points p { margin: 0; font-size: .9375rem; line-height: 1.6; color: var(--quiet); }
@media (min-width: 601px) and (max-width: 1000px) {
    .hero-proof-points { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; max-width: 700px; margin-inline: auto; }
}
@media (max-width: 600px) {
    .hero-proof-points { grid-template-columns: minmax(0, 1fr); gap: 24px; max-width: 420px; margin-inline: auto; text-align: left; }
    .hero-proof-points li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 18px; align-items: start; }
    .hero-proof-points svg { margin: 2px 0 0; }
}
.homepage .trust-bar { background: white; padding-block: 20px; }
.homepage .program-track { --program-accent: var(--primary-color); border: 1px solid var(--line); border-top-width: 1px; border-radius: 8px; box-shadow: none; padding: 28px 24px; text-align: left; }
.homepage .program-track h3 { color: var(--ink); font-size: 1.5rem; }
.homepage .program-track ul { font-size: 1rem; }
.homepage .program-track .program-cta { align-self: flex-start; border-color: #aab9c7; border-radius: 6px; }
.homepage .why-block { background: transparent; box-shadow: none; border: 0; border-radius: 0; padding: 8px 24px 8px 0; }
.homepage .why-block h4 { font-size: 1.2rem; }
.homepage .educator-card { background: transparent; padding: 28px 0; border-top: 1px solid var(--line); border-radius: 0; }
.homepage .educator-heading h3 { color: var(--ink); }
.homepage .educator-photo { filter: none; border-radius: 6px; }
.homepage .educator-card p { font-size: 1rem; }
.homepage .educator-link { color: var(--primary-color); }
.homepage .parent-review-slider { border: 0; border-radius: 0; box-shadow: none; background: transparent; padding: 0; margin-top: 28px; }
.homepage .review-subject { color: var(--quiet); }
.homepage .review-author { color: var(--ink); }
.homepage .review-result { background: transparent; border-top: 1px solid var(--line); padding: 12px 0 0; border-radius: 0; color: var(--quiet); font-size: .9375rem; }
.homepage .review-note { font-size: .875rem; }
.homepage .review-controls button { background: #e9eef2; color: var(--ink); }
.google-review-summary { display: flex; justify-content: space-between; align-items: center; text-align: left; gap: 24px; max-width: 780px; margin: 32px auto 0; padding-top: 24px; border-top: 1px solid var(--line); }
.google-review-summary a { color: var(--primary-color); text-decoration: underline; text-underline-offset: 4px; padding-block: 10px; }
.google-rating { font-weight: 600; }
.homepage .faq-item { box-shadow: none; border-color: var(--line); border-radius: 6px; }
.homepage .inquiry-form input, .homepage .inquiry-form select, .homepage .input-icon-group .input-icon-wrapper { border-width: 1px; border-color: #aab9c7; font-weight: 400; }
.homepage .inquiry-form input::placeholder { color: var(--quiet); font-weight: 400; }
.homepage .submit-btn { background: var(--primary-color); }
.homepage .footer { background: var(--ink); }
.homepage .footer-links h3 { margin-bottom: 16px; font-size: 1rem; }
.homepage .footer-links nav { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.homepage .footer-links nav a { display: inline-flex; align-items: center; gap: 8px; padding-block: 6px; color: #e1e8ee; }
.homepage .community-card { background: #243d53; color: #e1e8ee; border-radius: 6px; }
.homepage .community-card a { color: #e1e8ee; }
.simple-footer nav { align-content: start; align-items: start; gap: 12px 20px; max-width: 460px; }
.simple-footer nav a { display: inline-flex; gap: 8px; align-items: center; }
.simple-footer strong { font-size: 1.375rem; font-family: var(--font-heading); }
.educator-page .course-tile, .aditi-program-tile { box-shadow: none !important; border: 1px solid var(--line) !important; border-radius: 8px !important; }
.educator-page .aditi-program-icon { color: var(--primary-color); font-size: 2rem; }
@media (min-width: 993px) and (max-width: 1150px) {
    body .navbar .nav-links { gap: 12px; font-size: .875rem; }
    body .navbar .logo-text { font-size: 1.6rem; }
    body .nav-container { gap: 12px; padding-inline: 16px; }
}
@media (max-width: 992px) {
    body .navbar .nav-links { gap: 2px; font-size: 1rem; border: 1px solid var(--line); max-height: calc(100dvh - 145px); }
    body .navbar .nav-links a { min-height: 48px; white-space: normal; border-radius: 6px; }
    .navbar .nav-links a[aria-current] { background: #edf4ff; }
    .navbar .nav-links a[aria-current]::after { display: none; }
    body .navbar .hamburger { background: #edf4ff; border-radius: 8px; }
    .practice-pillars { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 32px; }
}
@media (max-width: 700px) {
    .bridge-inner, .product-bottom, .feature-list, .screenshots-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .story-bridge, .product-section { padding: 40px 0; }
    .story-header, .product-hero { padding: 48px 0 40px; }
    .story-chapter { padding: 32px 0; }
    .story-chapter p { font-size: 1.0625rem; }
    .story-outro { padding: 40px 0 56px; }
    .feature-list { gap: 0; }
    .programs-container { grid-template-columns: minmax(0, 1fr) !important; }
    .screenshots-grid figure:first-child { grid-column: auto; }
    .homepage .hero { padding-block: 40px; }
    .homepage .section-padding { padding-block: 40px; }
    .practice-pillars { grid-template-columns: minmax(0,1fr); margin-top: 28px; gap: 24px; }
    .practice-pillar { display: grid; grid-template-columns: 56px minmax(0,1fr); gap: 8px 20px; }
    .pillar-visual { width: 56px; height: 56px; grid-row: 1 / 3; margin: 0; }
    .practice-pillar h3 { grid-column: 2; margin: 4px 0 0; font-size: .875rem; }
    .practice-pillar p { grid-column: 2; }
    .practice-pillar p { font-size: 1rem; }
    .section-heading, .google-review-summary { align-items: flex-start; flex-direction: column; }
    .section-heading { gap: 4px; margin-bottom: 20px; }
    .section-heading h2 { margin-bottom: 14px; }
    body .navbar .logo-text { font-size: 1.5rem; }
    body .navbar .brand-service { font-size: .8125rem; }
    body .navbar .nav-links a { gap: 8px; }
    body .navbar .consultation-nav { margin-top: 8px; justify-content: center; }
}
@media (max-width: 380px) {
    body .navbar .logo-text { font-size: 1.4rem; white-space: nowrap; }
    body .nav-container { padding-inline: 16px; }
    body .navbar .nav-logo-img, body.homepage .navbar .nav-logo-img { width: 40px !important; height: 40px !important; min-width: 40px !important; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
