/* AI Math product system — pilot design for Definitely Human */
:root {
    --ai-ink: #081225;
    --ai-ink-soft: #17233b;
    --ai-blue: #5b6cff;
    --ai-violet: #8b5cf6;
    --ai-cyan: #63d8ff;
    --ai-paper: #f7f8fc;
    --ai-white: #ffffff;
    --ai-copy: #526078;
    --ai-line: #e2e6f0;
    --ai-soft-blue: #eef0ff;
    --ai-radius: 24px;
    --ai-shadow: 0 24px 80px rgba(8, 18, 37, 0.12);
}

html { scroll-behavior: smooth; }

body.aimath-site,
body.aimath-legal-page {
    margin: 0;
    color: var(--ai-ink);
    background: var(--ai-paper);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.aimath-site *,
.aimath-legal-page * { box-sizing: border-box; }

.aimath-site a,
.aimath-legal-page a { color: inherit; }

.product-container {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    z-index: 9999;
    top: 10px;
    left: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--ai-white) !important;
    background: var(--ai-blue);
    transform: translateY(-150%);
    transition: transform .2s ease;
}

.skip-link:focus { transform: translateY(0); }

.product-nav {
    position: absolute;
    z-index: 20;
    inset: 0 0 auto;
    padding: 22px 0;
    color: var(--ai-white);
}

.product-nav-inner,
.product-nav-links,
.studio-brand {
    display: flex;
    align-items: center;
}

.product-nav-inner { justify-content: space-between; gap: 30px; }

.studio-brand {
    gap: 11px;
    color: inherit;
    font-size: 15px;
    font-weight: 750;
    letter-spacing: -.01em;
    text-decoration: none;
    white-space: nowrap;
}

.brand-mark {
    position: relative;
    width: 26px;
    height: 26px;
    display: inline-block;
    border: 1px solid currentColor;
    border-radius: 50%;
    opacity: .95;
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span {
    content: "";
    position: absolute;
    width: 4px;
    height: 4px;
    background: currentColor;
    border-radius: 50%;
}

.brand-mark::before { top: 7px; left: 6px; }
.brand-mark::after { top: 7px; right: 6px; }
.brand-mark span { bottom: 6px; left: 10px; }

.product-nav-links { gap: 28px; }

.product-nav-links a {
    color: rgba(255,255,255,.72);
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
    transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

.product-nav-links a:hover,
.product-nav-links a:focus-visible { color: var(--ai-white); }

.product-nav-links .nav-download {
    padding: 10px 16px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    color: var(--ai-white);
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(12px);
}

.product-nav-links .nav-download:hover { background: rgba(255,255,255,.18); }

.product-hero {
    position: relative;
    min-height: 860px;
    overflow: hidden;
    color: var(--ai-white);
    background:
        radial-gradient(circle at 76% 36%, rgba(91,108,255,.23), transparent 27%),
        radial-gradient(circle at 15% 90%, rgba(99,216,255,.08), transparent 26%),
        linear-gradient(145deg, #060d1b 0%, #0a152b 56%, #101632 100%);
}

.product-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .19;
    background-image:
        linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 68px 68px;
    mask-image: linear-gradient(to bottom, transparent, black 24%, black 75%, transparent);
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(4px);
    pointer-events: none;
}

.hero-orb-one {
    top: 150px;
    right: -190px;
    width: 510px;
    height: 510px;
    border: 1px solid rgba(139,92,246,.32);
    box-shadow: inset 0 0 110px rgba(91,108,255,.08);
}

.hero-orb-two {
    bottom: -220px;
    left: 32%;
    width: 430px;
    height: 430px;
    background: rgba(91,108,255,.09);
    filter: blur(90px);
}

.hero-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(430px, .82fr);
    gap: 86px;
    align-items: center;
    min-height: 860px;
    padding-top: 100px;
}

.hero-copy { padding: 64px 0; }

.app-identity {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    color: rgba(255,255,255,.68);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.app-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 13px;
    color: var(--ai-white);
    background: linear-gradient(145deg, var(--ai-blue), var(--ai-violet));
    box-shadow: 0 12px 30px rgba(91,108,255,.28), inset 0 1px 1px rgba(255,255,255,.38);
    font-family: Georgia, serif;
    font-size: 24px;
    font-weight: 700;
    text-transform: none;
}

.app-icon.large { width: 58px; height: 58px; margin-bottom: 28px; border-radius: 17px; font-size: 30px; }

.hero-copy h1 {
    max-width: 700px;
    margin: 0 0 26px;
    font-size: clamp(54px, 6vw, 82px);
    font-weight: 760;
    letter-spacing: -.058em;
    line-height: .99;
}

.hero-copy h1 span {
    color: transparent;
    background: linear-gradient(90deg, #8fa4ff 0%, #b796ff 48%, #86e5ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-lead {
    max-width: 605px;
    margin: 0;
    color: rgba(255,255,255,.68);
    font-size: 18px;
    line-height: 1.7;
}

.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 36px; }

.app-store-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 190px;
    padding: 11px 18px 12px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 14px;
    color: var(--ai-white) !important;
    background: rgba(255,255,255,.1);
    box-shadow: 0 14px 38px rgba(0,0,0,.23);
    text-decoration: none;
    backdrop-filter: blur(16px);
    transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.app-store-button:hover,
.app-store-button:focus-visible { transform: translateY(-2px); background: rgba(255,255,255,.16); box-shadow: 0 18px 44px rgba(0,0,0,.28); }

.apple-symbol {
    position: relative;
    width: 28px;
    color: var(--ai-white);
    font-size: 26px;
    line-height: 1;
}

.apple-symbol::before {
    content: "";
    position: absolute;
    top: -3px;
    left: 14px;
    width: 8px;
    height: 5px;
    border-radius: 8px 1px;
    background: currentColor;
    transform: rotate(-35deg);
}

.app-store-button span:last-child { display: flex; flex-direction: column; line-height: 1.05; }
.app-store-button small { margin-bottom: 3px; font-size: 10px; letter-spacing: .02em; }
.app-store-button strong { font-size: 20px; font-weight: 620; letter-spacing: -.025em; }

.text-link {
    color: rgba(255,255,255,.72) !important;
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
}

.text-link span { display: inline-block; margin-left: 6px; transition: transform .2s ease; }
.text-link:hover span { transform: translateY(3px); }

.hero-note { margin: 16px 0 0; color: rgba(255,255,255,.42); font-size: 12px; }

.hero-product { position: relative; display: flex; justify-content: center; align-items: center; padding-top: 60px; }

.phone-shadow {
    position: absolute;
    bottom: 0;
    width: 330px;
    height: 80px;
    border-radius: 50%;
    background: rgba(91,108,255,.38);
    filter: blur(48px);
}

.phone-frame {
    position: relative;
    width: 345px;
    height: 694px;
    padding: 10px;
    border: 1px solid rgba(255,255,255,.38);
    border-radius: 54px;
    background: linear-gradient(145deg, #34415b, #050a14 45%, #66718a 100%);
    box-shadow: 0 60px 100px rgba(0,0,0,.56), 0 0 0 4px rgba(2,7,17,.9), inset 0 1px 1px rgba(255,255,255,.55);
    transform: rotate(3deg);
}

.phone-top {
    position: absolute;
    z-index: 5;
    top: 19px;
    left: 50%;
    width: 102px;
    height: 28px;
    border-radius: 22px;
    background: #02050b;
    transform: translateX(-50%);
}

.phone-top span { position: absolute; top: 9px; right: 12px; width: 8px; height: 8px; border-radius: 50%; background: #11294c; box-shadow: inset 0 0 0 2px #061023; }

.phone-screen {
    height: 100%;
    overflow: hidden;
    padding: 16px 18px 20px;
    border-radius: 44px;
    color: var(--ai-ink);
    background: linear-gradient(160deg, #fbfcff 0%, #f2f4fa 100%);
}

.phone-status { display: flex; justify-content: space-between; padding: 2px 9px 20px; color: #18233b; font-size: 9px; font-weight: 800; }
.phone-status span:last-child { font-size: 7px; letter-spacing: 2px; }

.screen-header { display: flex; align-items: center; justify-content: space-between; margin: 4px 2px 20px; }
.screen-header div { display: flex; flex-direction: column; gap: 3px; }
.screen-kicker { color: var(--ai-blue); font-size: 8px; font-weight: 850; letter-spacing: .16em; }
.screen-header strong { font-size: 21px; letter-spacing: -.04em; }
.history-button { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #e3e6ef; border-radius: 11px; background: white; }

.scan-card { position: relative; padding: 16px; overflow: hidden; border: 1px solid #dde2ef; border-radius: 18px; background: var(--ai-white); box-shadow: 0 10px 24px rgba(23,35,59,.08); }
.scan-label { color: #8993a8; font-size: 7px; font-weight: 800; letter-spacing: .12em; }
.equation { margin: 13px 0 16px; font-family: Georgia, "Times New Roman", serif; font-size: 25px; text-align: center; }
.scan-line { height: 1px; background: linear-gradient(90deg, transparent, var(--ai-blue), transparent); box-shadow: 0 0 10px var(--ai-blue); }
.scan-confirm { display: flex; justify-content: space-between; margin-top: 12px; color: #68748a; font-size: 8px; font-weight: 700; }
.scan-confirm span:first-child { color: #3d8d70; }

.solution-heading { display: flex; justify-content: space-between; align-items: center; margin: 20px 2px 11px; font-size: 11px; font-weight: 800; }
.step-count { padding: 4px 8px; border-radius: 999px; color: var(--ai-blue); background: var(--ai-soft-blue); font-size: 7px; }

.solution-list { display: flex; flex-direction: column; gap: 7px; margin: 0; padding: 0; list-style: none; }
.solution-list li { display: flex; gap: 10px; padding: 10px; border: 1px solid #e6e9f1; border-radius: 13px; background: rgba(255,255,255,.8); }
.step-dot { flex: 0 0 20px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 7px; color: var(--ai-white); background: linear-gradient(145deg, var(--ai-blue), var(--ai-violet)); font-size: 8px; font-weight: 850; }
.solution-list strong { display: block; margin: 1px 0 2px; font-size: 8px; }
.solution-list p { margin: 0; color: #626d81; font-family: Georgia, serif; font-size: 10px; }

.answer-card { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding: 13px 14px; border-radius: 13px; color: var(--ai-white); background: linear-gradient(120deg, #253454, #493b89); }
.answer-card span { color: rgba(255,255,255,.65); font-size: 8px; font-weight: 700; }
.answer-card strong { font-family: Georgia, serif; font-size: 14px; }

.formula-chip { position: absolute; z-index: 4; padding: 11px 15px; border: 1px solid rgba(255,255,255,.16); border-radius: 13px; color: rgba(255,255,255,.74); background: rgba(13,25,51,.76); box-shadow: 0 14px 40px rgba(0,0,0,.22); font-family: Georgia, serif; font-size: 15px; backdrop-filter: blur(14px); }
.formula-chip-one { top: 190px; right: -34px; transform: rotate(5deg); }
.formula-chip-two { bottom: 145px; left: -40px; transform: rotate(-5deg); }

.proof-strip { border-bottom: 1px solid var(--ai-line); background: var(--ai-white); }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-grid div { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 96px; padding: 20px; border-right: 1px solid var(--ai-line); color: #48556d; font-size: 13px; }
.proof-grid div:first-child { border-left: 1px solid var(--ai-line); }
.proof-grid span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; color: var(--ai-blue); background: var(--ai-soft-blue); font-size: 15px; }

.section { padding: 128px 0; }
.section-heading { max-width: 720px; margin: 0 auto 64px; text-align: center; }
.section-heading.compact { margin-bottom: 52px; }
.eyebrow { margin: 0 0 17px; color: var(--ai-blue); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.section-heading h2,
.understanding-copy h2,
.faq-layout h2,
.final-cta h2 { margin: 0; color: var(--ai-ink); font-size: clamp(40px, 5vw, 58px); font-weight: 750; letter-spacing: -.05em; line-height: 1.06; }
.section-heading > p:last-child { max-width: 600px; margin: 22px auto 0; color: var(--ai-copy); font-size: 17px; line-height: 1.7; }

.steps-section { background: var(--ai-paper); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step-card { position: relative; min-width: 0; padding: 30px; border: 1px solid var(--ai-line); border-radius: var(--ai-radius); background: rgba(255,255,255,.67); }
.step-card.featured-step { border-color: #cfd4ff; background: linear-gradient(145deg, #fff, #f1f2ff); box-shadow: 0 22px 60px rgba(91,108,255,.12); }
.step-index { display: inline-block; margin-bottom: 25px; color: #9ba5b8; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.step-card h3 { margin: 26px 0 10px; font-size: 24px; letter-spacing: -.03em; }
.step-card p { margin: 0; color: var(--ai-copy); font-size: 14px; line-height: 1.7; }

.mini-camera,
.mini-confirm,
.mini-learn { height: 164px; border: 1px solid #e4e7f0; border-radius: 18px; background: var(--ai-white); }
.mini-camera { position: relative; display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg, #e6e9f0, #fbfbfd); }
.mini-camera::before { content: ""; position: absolute; inset: 0; opacity: .27; background-image: linear-gradient(#aeb7c8 1px, transparent 1px), linear-gradient(90deg,#aeb7c8 1px,transparent 1px); background-size: 19px 19px; }
.camera-equation { position: relative; z-index: 2; padding: 12px 20px; color: #25324b; background: rgba(255,255,255,.82); font-family: Georgia, serif; font-size: 22px; transform: rotate(-2deg); }
.camera-corner { position: absolute; z-index: 3; width: 22px; height: 22px; border-color: var(--ai-blue); border-style: solid; }
.top-left { top: 24px; left: 24px; border-width: 2px 0 0 2px; border-radius: 6px 0 0; }
.top-right { top: 24px; right: 24px; border-width: 2px 2px 0 0; border-radius: 0 6px 0 0; }
.bottom-left { bottom: 24px; left: 24px; border-width: 0 0 2px 2px; border-radius: 0 0 0 6px; }
.bottom-right { right: 24px; bottom: 24px; border-width: 0 2px 2px 0; border-radius: 0 0 6px; }

.mini-confirm { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 13px; padding: 20px; }
.mini-confirm > span:first-child { color: #8a94a8; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.mini-confirm strong { font-family: Georgia, serif; font-size: 22px; font-weight: 500; }
.mini-confirm .confirm-pill { padding: 8px 12px; border-radius: 999px; color: #3e53c6; background: var(--ai-soft-blue); font-size: 9px; font-weight: 800; }

.mini-learn { display: flex; flex-direction: column; justify-content: center; gap: 9px; padding: 19px; }
.mini-learn span { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid #edf0f5; border-radius: 10px; color: #556178; font-size: 10px; font-weight: 700; }
.mini-learn i { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 6px; color: white; background: var(--ai-blue); font-size: 8px; font-style: normal; }

.understanding-section { color: var(--ai-white); background: var(--ai-ink); }
.understanding-layout { display: grid; grid-template-columns: .78fr 1.12fr; gap: 100px; align-items: center; }
.understanding-copy h2 { color: var(--ai-white); }
.understanding-copy > p:not(.eyebrow) { margin: 25px 0 30px; color: rgba(255,255,255,.62); font-size: 16px; line-height: 1.75; }
.check-list { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.check-list li { display: flex; align-items: center; gap: 11px; color: rgba(255,255,255,.78); font-size: 14px; }
.check-list span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; color: #9ee9ff; background: rgba(99,216,255,.11); font-size: 10px; }

.learning-panel { padding: 34px; border: 1px solid rgba(255,255,255,.13); border-radius: 30px; background: linear-gradient(145deg, rgba(255,255,255,.1), rgba(255,255,255,.045)); box-shadow: 0 40px 100px rgba(0,0,0,.32); }
.learning-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.learning-tag { color: #9ba8ff; font-size: 9px; font-weight: 850; letter-spacing: .13em; }
.learning-time { color: rgba(255,255,255,.36); font-size: 10px; }
.learning-question { padding: 25px; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; background: rgba(3,8,18,.28); font-family: Georgia, serif; font-size: 28px; text-align: center; }
.learning-rule { margin: 20px 0; padding: 17px 19px; border-left: 2px solid var(--ai-cyan); border-radius: 0 12px 12px 0; background: rgba(99,216,255,.07); }
.learning-rule span { color: var(--ai-cyan); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.learning-rule p { margin: 7px 0 0; color: rgba(255,255,255,.69); font-size: 12px; line-height: 1.6; }
.learning-rule strong { color: white; }
.learning-flow { display: flex; flex-direction: column; gap: 9px; }
.learning-flow > div { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,.045); }
.learning-flow span { color: rgba(255,255,255,.42); font-size: 10px; }
.learning-flow strong { font-family: Georgia, serif; font-size: 14px; font-weight: 500; }
.learning-flow .learning-result { color: #d9ddff; background: rgba(91,108,255,.16); }

.features-section-modern { background: #f9faff; }
.bento-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.feature-bento { position: relative; min-height: 330px; overflow: hidden; padding: 30px; border: 1px solid var(--ai-line); border-radius: var(--ai-radius); background: var(--ai-white); }
.feature-bento h3 { max-width: 300px; margin: 16px 0 10px; font-size: 24px; letter-spacing: -.035em; }
.feature-bento p { max-width: 430px; margin: 0; color: var(--ai-copy); font-size: 14px; line-height: 1.7; }
.feature-number { color: #9ba5b8; font-size: 10px; font-weight: 850; letter-spacing: .12em; }
.feature-wide { display: grid; grid-column: span 4; grid-template-columns: 1fr .86fr; gap: 30px; align-items: center; }
.feature-language { grid-column: span 2; background: linear-gradient(150deg, #f3f0ff, #fff); }
.feature-library,
.feature-share,
.feature-range { grid-column: span 2; }
.feature-range { grid-column: span 3; background: var(--ai-ink); }
.feature-share { grid-column: span 3; }
.feature-range h3 { color: var(--ai-white); }
.feature-range p { color: rgba(255,255,255,.57); }

.notation-art { display: flex; align-items: center; gap: 20px; padding: 24px; border-radius: 20px; color: white; background: linear-gradient(145deg, var(--ai-blue), var(--ai-violet)); box-shadow: 0 24px 50px rgba(91,108,255,.25); transform: rotate(2deg); }
.notation-art > span { font-family: Georgia, serif; font-size: 70px; line-height: 1; }
.notation-art div { display: flex; flex-direction: column; gap: 8px; }
.notation-art strong { font-family: Georgia, serif; font-size: 22px; }
.notation-art i { color: rgba(255,255,255,.7); font-family: Georgia, serif; font-size: 17px; font-style: normal; }

.language-cloud { position: relative; height: 110px; margin-top: 28px; }
.language-cloud span { position: absolute; padding: 8px 12px; border: 1px solid #ddd9f5; border-radius: 999px; color: #554b81; background: rgba(255,255,255,.75); font-size: 11px; font-weight: 700; }
.language-cloud span:nth-child(1) { top: 4px; left: 5%; }
.language-cloud span:nth-child(2) { top: 27px; right: 5%; color: white; background: var(--ai-violet); transform: rotate(4deg); }
.language-cloud span:nth-child(3) { bottom: 4px; left: 18%; transform: rotate(-3deg); }
.language-cloud span:nth-child(4) { right: 12%; bottom: 0; }

.library-list { display: flex; flex-direction: column; gap: 8px; margin-top: 25px; }
.library-list span { display: flex; align-items: center; gap: 10px; padding: 9px; border: 1px solid #edf0f5; border-radius: 11px; color: #58657a; font-size: 10px; }
.library-list i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; color: var(--ai-blue); background: var(--ai-soft-blue); font-family: Georgia, serif; font-size: 13px; font-style: normal; }

.pdf-sheet { width: 130px; height: 150px; margin: 20px auto 0; padding: 18px; border: 1px solid var(--ai-line); border-radius: 12px; background: #fbfbfd; box-shadow: 0 18px 40px rgba(8,18,37,.1); transform: rotate(4deg); }
.pdf-sheet span { display: inline-block; margin-bottom: 22px; padding: 5px 7px; border-radius: 5px; color: white; background: var(--ai-blue); font-size: 9px; font-weight: 850; }
.pdf-sheet i { display: block; height: 5px; margin-bottom: 10px; border-radius: 4px; background: #dde1eb; }
.pdf-sheet i:nth-of-type(2) { width: 75%; }
.pdf-sheet i:nth-of-type(3) { width: 90%; }

.topic-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.topic-pills span { padding: 9px 12px; border: 1px solid rgba(255,255,255,.13); border-radius: 999px; color: rgba(255,255,255,.74); background: rgba(255,255,255,.06); font-size: 10px; font-weight: 700; }

.audience-section { background: var(--ai-white); }
.audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ai-line); border-bottom: 1px solid var(--ai-line); }
.audience-grid article { padding: 44px 40px; border-right: 1px solid var(--ai-line); }
.audience-grid article:last-child { border-right: 0; }
.audience-grid span { color: var(--ai-blue); font-size: 10px; font-weight: 850; letter-spacing: .12em; }
.audience-grid h3 { margin: 38px 0 10px; font-size: 24px; letter-spacing: -.03em; }
.audience-grid p { margin: 0; color: var(--ai-copy); font-size: 14px; line-height: 1.7; }

.faq-section { background: var(--ai-paper); }
.faq-layout { display: grid; grid-template-columns: .65fr 1fr; gap: 100px; align-items: start; }
.faq-intro { margin-top: 24px; color: var(--ai-copy); font-size: 14px; }
.faq-intro a { color: var(--ai-blue); font-weight: 700; text-underline-offset: 3px; }
.faq-list { border-top: 1px solid var(--ai-line); }
.faq-list details { border-bottom: 1px solid var(--ai-line); }
.faq-list summary { display: flex; justify-content: space-between; gap: 25px; padding: 25px 0; cursor: pointer; font-size: 16px; font-weight: 720; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: var(--ai-blue); font-size: 20px; font-weight: 400; transition: transform .2s ease; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p { margin: -7px 45px 24px 0; color: var(--ai-copy); font-size: 14px; line-height: 1.75; }

.final-cta { position: relative; overflow: hidden; padding: 128px 0; color: var(--ai-white); background: linear-gradient(145deg, #081225, #15193a); text-align: center; }
.final-cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 80%, rgba(91,108,255,.28), transparent 37%); }
.final-orb { position: absolute; top: -320px; left: 50%; width: 700px; height: 700px; border: 1px solid rgba(139,92,246,.24); border-radius: 50%; transform: translateX(-50%); }
.final-cta-content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.final-cta h2 { margin-bottom: 36px; color: var(--ai-white); font-size: clamp(44px, 6vw, 70px); }
.app-store-button.light { color: var(--ai-ink) !important; background: var(--ai-white); }
.app-store-button.light .apple-symbol { color: var(--ai-ink); }
.app-store-button.light:hover { background: #f2f3ff; }

.product-footer { margin: 0; padding: 62px 0 28px; color: var(--ai-white); background: #050b16; text-align: left; }
.footer-main { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 35px; align-items: center; padding-bottom: 50px; }
.footer-main p { max-width: 400px; margin: 0; color: rgba(255,255,255,.46); font-size: 13px; line-height: 1.6; }
.footer-nav { display: flex; justify-content: flex-end; gap: 22px; }
.footer-nav a { color: rgba(255,255,255,.6); font-size: 13px; text-decoration: none; }
.footer-nav a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.3); font-size: 11px; }

/* Legal pages */
.aimath-legal-page { min-height: 100vh; }
.aimath-legal-page .product-nav { position: sticky; top: 0; padding: 17px 0; color: var(--ai-ink); background: rgba(247,248,252,.9); border-bottom: 1px solid rgba(226,230,240,.86); backdrop-filter: blur(18px); }
.aimath-legal-page .product-nav-links a { color: #647087; }
.aimath-legal-page .product-nav-links a:hover { color: var(--ai-ink); }
.aimath-legal-page .product-nav-links .nav-download { color: white; border: 0; background: var(--ai-ink); }
.aimath-legal-page .product-nav-links .nav-download:hover { background: #1b2942; }

.legal-hero-modern { padding: 84px 0 58px; border-bottom: 1px solid var(--ai-line); background: linear-gradient(180deg, #f4f5ff, var(--ai-paper)); }
.legal-breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 30px; color: #79849a; font-size: 12px; }
.legal-breadcrumb a { color: var(--ai-blue); font-weight: 700; text-decoration: none; }
.legal-breadcrumb span { color: #b2b9c7; }
.legal-hero-modern h1 { max-width: 820px; margin: 0 0 18px; font-size: clamp(42px, 6vw, 66px); letter-spacing: -.055em; line-height: 1.02; }
.legal-meta { display: flex; align-items: center; gap: 12px; color: #6c788e; font-size: 13px; }
.legal-meta .legal-pill { padding: 7px 10px; border-radius: 999px; color: #4d5dcc; background: #e9ebff; font-weight: 750; }

.legal-layout { display: grid; grid-template-columns: 220px minmax(0, 760px); gap: 80px; align-items: start; justify-content: center; padding-top: 64px; padding-bottom: 110px; }
.legal-toc { position: sticky; top: 100px; padding: 18px 0; }
.legal-toc > span { display: block; margin-bottom: 15px; color: #9aa4b7; font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.legal-toc nav { display: flex; flex-direction: column; gap: 4px; }
.legal-toc a { padding: 8px 12px; border-left: 1px solid var(--ai-line); color: #6c788e; font-size: 12px; font-weight: 650; text-decoration: none; transition: color .2s ease, border-color .2s ease, background-color .2s ease; }
.legal-toc a:hover { border-color: var(--ai-blue); color: var(--ai-blue); background: #f1f2ff; }
.legal-document-modern { min-width: 0; }
.legal-summary { margin-bottom: 50px; padding: 24px 26px; border: 1px solid #dce0f3; border-radius: 18px; color: #4c5870; background: #f1f2ff; font-size: 14px; line-height: 1.7; }
.legal-summary strong { color: var(--ai-ink); }
.legal-document-modern section { scroll-margin-top: 105px; margin-bottom: 44px; }
.legal-document-modern h2 { margin: 0 0 14px; color: var(--ai-ink); font-size: 24px; letter-spacing: -.025em; line-height: 1.25; }
.legal-document-modern p,
.legal-document-modern li { color: #5d697f; font-size: 15px; line-height: 1.8; }
.legal-document-modern p { margin: 0 0 14px; }
.legal-document-modern ul { margin: 14px 0 0; padding-left: 22px; }
.legal-document-modern li { margin-bottom: 8px; padding-left: 5px; }
.legal-document-modern strong { color: #344159; }
.legal-document-modern a:not(.legal-button) { color: var(--ai-blue); font-weight: 650; text-underline-offset: 3px; }
.legal-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 60px; padding-top: 28px; border-top: 1px solid var(--ai-line); }
.legal-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 17px; border: 1px solid var(--ai-line); border-radius: 12px; color: var(--ai-ink); background: white; font-size: 13px; font-weight: 750; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.legal-button.primary { color: white; border-color: var(--ai-ink); background: var(--ai-ink); }
.legal-button:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(8,18,37,.09); }

@media (max-width: 1000px) {
    .hero-layout { grid-template-columns: minmax(0, 1fr) 390px; gap: 35px; }
    .hero-copy h1 { font-size: 58px; }
    .phone-frame { width: 310px; height: 624px; }
    .formula-chip-one { right: 0; }
    .formula-chip-two { left: 0; }
    .proof-grid { grid-template-columns: repeat(2, 1fr); }
    .proof-grid div:nth-child(2) { border-right: 0; }
    .proof-grid div:nth-child(-n+2) { border-bottom: 1px solid var(--ai-line); }
    .understanding-layout { gap: 50px; }
    .feature-wide { grid-column: span 6; }
    .feature-language,
    .feature-library { grid-column: span 3; }
    .legal-layout { grid-template-columns: 180px minmax(0, 690px); gap: 45px; }
}

@media (max-width: 780px) {
    .product-container { width: min(100% - 32px, 650px); }
    .product-nav { padding: 16px 0; }
    .product-nav-links a:not(.nav-download) { display: none; }
    .product-nav-links { gap: 0; }
    .product-nav-links .nav-download { padding: 9px 13px; font-size: 12px; }
    .product-hero { min-height: auto; }
    .hero-layout { grid-template-columns: 1fr; gap: 0; padding-top: 110px; }
    .hero-copy { padding: 55px 0 35px; text-align: center; }
    .app-identity { margin-bottom: 24px; }
    .hero-copy h1 { margin-inline: auto; font-size: clamp(45px, 13vw, 64px); }
    .hero-lead { margin-inline: auto; font-size: 16px; }
    .hero-actions { justify-content: center; }
    .hero-product { min-height: 600px; padding: 20px 0 0; }
    .phone-frame { width: 295px; height: 594px; transform: rotate(2deg); }
    .formula-chip-one { top: 115px; right: 1%; }
    .formula-chip-two { bottom: 80px; left: 1%; }
    .section { padding: 88px 0; }
    .section-heading { margin-bottom: 44px; }
    .section-heading h2,
    .understanding-copy h2,
    .faq-layout h2 { font-size: 42px; }
    .steps-grid { grid-template-columns: 1fr; }
    .step-card { max-width: 560px; margin-inline: auto; }
    .understanding-layout { grid-template-columns: 1fr; gap: 50px; }
    .feature-language,
    .feature-library,
    .feature-share,
    .feature-range { grid-column: span 6; }
    .feature-bento { min-height: auto; }
    .feature-wide { grid-template-columns: 1fr; }
    .notation-art { max-width: 340px; }
    .audience-grid { grid-template-columns: 1fr; }
    .audience-grid article { border-right: 0; border-bottom: 1px solid var(--ai-line); }
    .audience-grid article:last-child { border-bottom: 0; }
    .faq-layout { grid-template-columns: 1fr; gap: 45px; }
    .footer-main { grid-template-columns: 1fr; text-align: center; }
    .footer-main .studio-brand { justify-content: center; }
    .footer-main p { margin-inline: auto; }
    .footer-nav { justify-content: center; flex-wrap: wrap; }
    .legal-hero-modern { padding: 64px 0 45px; }
    .legal-layout { grid-template-columns: 1fr; gap: 25px; padding-top: 38px; }
    .legal-toc { position: static; padding: 0 0 20px; overflow: hidden; }
    .legal-toc nav { flex-direction: row; overflow-x: auto; padding-bottom: 7px; }
    .legal-toc a { flex: 0 0 auto; border-left: 0; border-bottom: 1px solid var(--ai-line); }
}

@media (max-width: 520px) {
    .product-container { width: calc(100% - 28px); }
    .studio-brand { font-size: 13px; }
    .brand-mark { width: 24px; height: 24px; }
    .brand-mark span { left: 9px; }
    .hero-copy h1 { letter-spacing: -.055em; }
    .hero-actions { flex-direction: column; gap: 18px; }
    .hero-note { line-height: 1.5; }
    .hero-product { min-height: 565px; }
    .phone-frame { width: 278px; height: 558px; border-radius: 46px; }
    .phone-screen { border-radius: 37px; padding-inline: 15px; }
    .formula-chip { display: none; }
    .proof-grid { grid-template-columns: 1fr; }
    .proof-grid div { justify-content: flex-start; min-height: 68px; border-right: 0; border-bottom: 1px solid var(--ai-line); }
    .proof-grid div:first-child { border-left: 0; }
    .proof-grid div:last-child { border-bottom: 0; }
    .section-heading h2,
    .understanding-copy h2,
    .faq-layout h2 { font-size: 36px; }
    .section-heading > p:last-child { font-size: 15px; }
    .step-card,
    .feature-bento,
    .learning-panel { padding: 22px; }
    .learning-flow > div { align-items: flex-start; flex-direction: column; gap: 7px; }
    .learning-flow strong { font-size: 13px; }
    .notation-art { padding: 18px; }
    .notation-art > span { font-size: 52px; }
    .audience-grid article { padding: 35px 24px; }
    .final-cta { padding: 96px 0; }
    .final-cta h2 { font-size: 42px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .legal-hero-modern h1 { font-size: 42px; }
    .legal-meta { align-items: flex-start; flex-direction: column; }
    .legal-summary { padding: 20px; }
    .legal-document-modern h2 { font-size: 21px; }
    .legal-document-modern p,
    .legal-document-modern li { font-size: 14px; }
}

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

@media print {
    .aimath-legal-page .product-nav,
    .aimath-legal-page .legal-toc,
    .aimath-legal-page .product-footer,
    .aimath-legal-page .legal-actions { display: none !important; }
    .aimath-legal-page { background: white; }
    .legal-hero-modern { padding: 0 0 25px; background: white; }
    .legal-layout { display: block; padding: 30px 0; }
    .legal-document-modern section { break-inside: avoid; }
}
