* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #ffffff;
    --surface: #f7f8fc;
    --surface-strong: #eef1f8;
    --text: #1f2328;
    --muted: #626a78;
    --line: #e2e6ef;
    --primary: #6d5df6;
    --primary-dark: #5845df;
    --accent: #16a085;
    --warning: #f2a93b;
    --shadow: 0 18px 60px rgba(31, 35, 40, 0.12);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

@supports (overflow: clip) {
    html {
        overflow-x: clip;
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.55;
    min-width: 320px;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

.container,
.hero-container,
.nav-container {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(226, 230, 239, 0.85);
    backdrop-filter: blur(18px);
}

.nav-container {
    height: 72px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    text-decoration: none;
}

.nav-logo img {
    height: 34px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-left: 24px;
    flex: 1;
}

.nav-link {
    text-decoration: none;
    color: var(--muted);
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.language-switcher {
    display: none;
    flex: 0 0 auto;
}

.language-select {
    width: 190px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    padding: 0 12px;
    cursor: pointer;
}

.download-btn,
.mobile-sticky-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(109, 93, 246, 0.24);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.download-btn:hover,
.mobile-sticky-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    padding: 8px;
    cursor: pointer;
}

.bar {
    display: block;
    height: 2px;
    width: 24px;
    background: var(--text);
    margin: 5px 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.hero {
    padding: 84px 0 72px;
    background:
        radial-gradient(circle at top left, rgba(109, 93, 246, 0.13), transparent 34%),
        linear-gradient(180deg, #fff 0%, #f9fafc 100%);
}

.hero-container {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
    align-items: center;
    gap: 58px;
}

.eyebrow {
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.hero-title,
.about-hero h1 {
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: 0;
    font-weight: 800;
    max-width: 780px;
}

.hero-description,
.about-hero p,
.section-heading p,
.student-panel p:not(.eyebrow),
.workflow-step p,
.scenario-card p,
.value-card p,
.voice-card p,
.faq-grid p,
.footer-brand p {
    color: var(--muted);
}

.hero-description {
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.5;
    margin-top: 24px;
    max-width: 660px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 34px;
}

.app-store-button {
    display: inline-flex;
    position: relative;
    align-items: center;
    gap: 12px;
    min-width: 172px;
    min-height: 58px;
    padding: 10px 18px;
    border-radius: 8px;
    background: #050505;
    color: #fff;
    text-decoration: none;
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-download {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.app-store-button::before {
    content: "";
    position: absolute;
    top: -45%;
    bottom: -45%;
    left: -58%;
    width: 42%;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.18) 24%,
        rgba(255, 255, 255, 0.72) 50%,
        rgba(255, 255, 255, 0.18) 76%,
        rgba(255, 255, 255, 0) 100%
    );
    opacity: 0;
    transform: skewX(-22deg) translateX(-130%);
}

.nav-download::before {
    content: "";
    position: absolute;
    top: -50%;
    bottom: -50%;
    left: -62%;
    width: 44%;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 24%,
        rgba(255, 255, 255, 0.76) 50%,
        rgba(255, 255, 255, 0.2) 76%,
        rgba(255, 255, 255, 0) 100%
    );
    opacity: 0;
    transform: skewX(-22deg) translateX(-130%);
}

.app-store-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.23);
}

.app-store-button:hover::before,
.app-store-button:focus-visible::before,
.nav-download:hover::before,
.nav-download:focus-visible::before {
    animation: app-store-shine 0.74s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.apple-logo,
.button-text {
    display: flex;
    position: relative;
    z-index: 1;
}

.nav-download i,
.nav-download span {
    position: relative;
    z-index: 1;
}

.button-text {
    flex-direction: column;
    line-height: 1.15;
}

.text-line-1 {
    font-size: 12px;
    font-weight: 500;
}

.text-line-2 {
    font-size: 17px;
    font-weight: 800;
}

.student-tags,
.student-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.student-tags {
    margin-top: 32px;
    max-width: 660px;
}

.student-tags > span,
.student-chip-grid > span {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 999px;
    color: #424956;
    font-size: 14px;
    font-weight: 700;
    padding: 8px 13px;
}

.hero-visual {
    position: relative;
    min-height: 470px;
}

.product-frame {
    position: relative;
    overflow: hidden;
    border: 12px solid #090909;
    border-radius: 24px;
    background: #f2efff;
    box-shadow: var(--shadow);
}

.product-shot {
    width: 100%;
    aspect-ratio: 1.42;
    object-fit: contain;
}

.assistant-panel {
    position: absolute;
    left: 7%;
    right: 7%;
    bottom: 7%;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 32px rgba(31, 35, 40, 0.16);
}

.assistant-panel p {
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 10px;
}

.answer-line {
    height: 8px;
    width: 74%;
    border-radius: 999px;
    background: #dfe4ef;
    margin-top: 8px;
}

.answer-line.short {
    width: 48%;
}

.mini-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(31, 35, 40, 0.12);
    font-weight: 800;
    font-size: 14px;
}

.mini-icon {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #fff;
    background: var(--primary);
}

.mini-card-left {
    left: -18px;
    bottom: 62px;
}

.mini-card-right {
    right: -12px;
    top: 48px;
}

.section {
    padding: 84px 0;
}

.section-heading {
    max-width: 720px;
    margin: 0 auto 38px;
    text-align: center;
}

.section-heading.left {
    text-align: left;
    margin: 0;
}

.section-heading h2,
.student-panel h2,
.final-cta-panel h2 {
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.12;
    font-weight: 800;
}

.section-heading p:not(.eyebrow),
.student-panel p:not(.eyebrow) {
    font-size: 18px;
    margin-top: 16px;
}

.scenarios,
.screenshots,
.contact-section {
    background: var(--surface);
}

.scenario-grid,
.voice-grid,
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.scenario-card,
.voice-card,
.value-card,
.info-item,
.faq-grid details,
.screenshot-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.scenario-card,
.voice-card,
.value-card {
    padding: 28px;
}

.scenario-icon {
    width: 44px;
    height: 44px;
    object-fit: contain;
    margin-bottom: 24px;
}

.scenario-card h3,
.workflow-step h3,
.value-card h3,
.info-content h3,
.privacy-strip h3 {
    font-size: 20px;
    line-height: 1.25;
    margin-bottom: 10px;
}

.workflow-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    gap: 48px;
    align-items: start;
}

.workflow-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.workflow-step {
    border-left: 3px solid var(--primary);
    padding: 8px 0 8px 20px;
}

.workflow-step > span {
    display: inline-block;
    color: var(--primary);
    font-weight: 800;
    font-size: 13px;
    margin-bottom: 12px;
}

.students {
    padding: 0;
}

.student-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.74fr);
    gap: 48px;
    align-items: center;
    padding: 56px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 36px rgba(31, 35, 40, 0.08);
}

.student-chip-grid {
    justify-content: flex-start;
}

.screenshot-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 18px;
}

.screenshot-card {
    overflow: hidden;
}

.screenshot-card.large {
    grid-row: span 2;
}

.screenshot-card img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: contain;
    background: #f4f1ff;
}

.screenshot-card figcaption {
    padding: 16px 18px;
    color: #424956;
    font-weight: 700;
    border-top: 1px solid var(--line);
    background: #fff;
}

.trust {
    background: #fff;
}

.voice-card p {
    font-size: 17px;
    line-height: 1.65;
}

.voice-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
}

.voice-author img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}

.privacy-strip {
    display: flex;
    justify-content: space-between;
    gap: 32px;
    align-items: center;
    margin-top: 22px;
    padding: 24px 28px;
    border-radius: 8px;
    background: #101828;
    color: #fff;
}

.privacy-strip p {
    color: rgba(255, 255, 255, 0.72);
}

.privacy-strip a {
    color: #fff;
    font-weight: 800;
    white-space: nowrap;
}

.faq {
    background: var(--surface);
}

.faq-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    max-width: 920px;
    margin: 0 auto;
}

.faq-grid details {
    padding: 22px 24px;
}

.faq-grid summary {
    cursor: pointer;
    font-weight: 800;
    font-size: 18px;
}

.faq-grid p {
    margin-top: 14px;
}

.final-cta {
    padding: 84px 0;
}

.final-cta-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 36px;
    padding: 42px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f4f2ff 0%, #eef9f6 100%);
    border: 1px solid var(--line);
}

.final-cta-panel h2 {
    max-width: 760px;
}

.footer {
    background: #101828;
    color: #fff;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    padding: 44px 0;
}

.footer-logo {
    height: 32px;
    width: auto;
    margin-bottom: 12px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.68);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

.footer-link:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px 20px;
    text-align: center;
}

.icp-link {
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
    text-decoration: none;
}

.about-hero {
    padding: 94px 0 72px;
    background: linear-gradient(180deg, #fff 0%, #f7f8fc 100%);
}

.about-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.55fr);
    gap: 54px;
    align-items: center;
}

.about-hero p:not(.eyebrow) {
    font-size: 20px;
    line-height: 1.6;
    margin-top: 22px;
}

.about-logo-card {
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.about-logo-card img {
    height: 64px;
    width: auto;
    margin-bottom: 24px;
}

.about-logo-card h2 {
    font-size: 26px;
    line-height: 1.2;
}

.value-card > span,
.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    margin-bottom: 18px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.info-item {
    display: flex;
    gap: 18px;
    padding: 24px;
}

.info-icon {
    flex: 0 0 auto;
    margin-bottom: 0;
}

.info-content p {
    color: var(--muted);
}

.mobile-sticky-cta {
    display: none;
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.nav-link:focus,
.download-btn:focus,
.app-store-button:focus,
.language-select:focus,
.footer-link:focus,
.mobile-sticky-cta:focus,
.nav-toggle:focus {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

@media (max-width: 980px) {
    .hero-container,
    .workflow-layout,
    .pai-agent-panel,
    .student-panel,
    .about-hero-layout {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: auto;
    }

    .scenario-grid,
    .voice-grid,
    .values-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }

    .screenshot-grid {
        grid-template-columns: 1fr;
    }

    .screenshot-card.large {
        grid-row: auto;
    }

    .screenshot-card.large img {
        aspect-ratio: 16 / 10;
        min-height: 0;
    }

    .preview-carousel {
        min-height: 500px;
    }

    .preview-shot {
        width: min(680px, calc(100vw - 42px));
    }

    .preview-shot-a {
        --stack-x: -154px;
        --stack-y: 18px;
        --stack-scale: 0.78;
    }

    .preview-shot-b {
        --stack-x: -72px;
        --stack-y: -18px;
        --stack-scale: 0.86;
    }

    .preview-shot-c {
        --stack-x: 72px;
        --stack-y: 18px;
        --stack-scale: 0.84;
    }

    .preview-shot-d {
        --stack-x: 154px;
        --stack-y: -14px;
        --stack-scale: 0.76;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 70px;
    }

    .container,
    .hero-container,
    .nav-container {
        width: min(100% - 32px, 1160px);
    }

    .nav-container {
        min-height: 68px;
        height: auto;
        gap: 8px;
        flex-wrap: wrap;
        padding-top: 13px;
        padding-bottom: 13px;
    }

    .nav-logo img {
        height: 28px;
        max-width: 146px;
    }

    .nav-menu {
        position: static;
        order: 5;
        flex: 1 0 100%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin-left: 0;
        padding: 8px 0 0;
        background: #fff;
        border-top: 1px solid var(--line);
        box-shadow: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        padding: 14px 4px;
        border-bottom: 1px solid #f0f2f6;
    }

    .nav-download {
        display: none;
    }

    .preview-carousel {
        min-height: 360px;
        margin-top: 20px;
    }

    .preview-shot {
        width: min(620px, calc(100vw - 48px));
    }

    .preview-shot-shell {
        border-radius: 14px;
        box-shadow: 0 0 0 6px #2f3239, 0 18px 38px rgba(34, 36, 42, 0.16);
    }

    .preview-shot figcaption {
        max-width: 100%;
        padding: 10px 14px;
        font-size: 13px;
        line-height: 1.25;
        white-space: normal;
    }

    .preview-nav {
        justify-content: flex-start;
        width: 100%;
        margin-top: 18px;
        gap: 22px;
        padding: 0 2px 2px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .preview-nav::-webkit-scrollbar {
        display: none;
    }

    .preview-nav-button {
        flex: 0 0 auto;
        min-height: 36px;
        padding: 0 0 8px;
        font-size: 13px;
    }

    .language-switcher {
        margin-left: auto;
    }

    .language-select {
        width: 136px;
        height: 38px;
        font-size: 13px;
    }

    .nav-toggle {
        display: block;
        flex: 0 0 auto;
        width: 36px;
        height: 38px;
        padding: 7px 6px;
    }

    .hero {
        padding: 50px 0 56px;
    }

    .hero-container {
        gap: 38px;
    }

    .hero-title,
    .about-hero h1 {
        font-size: 38px;
    }

    .hero-description,
    .about-hero p:not(.eyebrow) {
        font-size: 17px;
    }

    .hero-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .student-tags > span,
    .student-chip-grid > span {
        font-size: 13px;
        padding: 7px 11px;
    }

    .product-frame {
        border-width: 8px;
        border-radius: 18px;
    }

    .assistant-panel {
        display: none;
    }

    .mini-card {
        position: static;
        margin-top: 10px;
        width: fit-content;
    }

    .section {
        padding: 58px 0;
    }

    .section-heading {
        text-align: left;
        margin-bottom: 28px;
    }

    .section-heading h2,
    .student-panel h2,
    .final-cta-panel h2 {
        font-size: 30px;
    }

    .scenario-card,
    .voice-card,
    .value-card {
        padding: 22px;
    }

    .voice-carousel {
        --voice-card-width: min(318px, calc(100vw - 54px));
        --voice-card-gap: 16px;
        margin: 0 -16px;
        padding-right: 16px;
        padding-left: 16px;
        mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%);
    }

    .voice-track .voice-card {
        min-height: 304px;
        padding: 22px;
    }

    .voice-track .voice-author img {
        width: 60px;
        height: 60px;
    }

    .workflow-steps,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .student-panel,
    .final-cta-panel {
        padding: 26px;
    }

    .privacy-strip,
    .final-cta-panel,
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }

    .about-hero {
        padding: 54px 0 58px;
    }

    .mobile-sticky-cta {
        display: inline-flex;
        position: fixed;
        left: 16px;
        right: 16px;
        bottom: 14px;
        z-index: 1001;
        min-height: 50px;
    }
}

@media (max-width: 420px) {
    .hero-title,
    .about-hero h1 {
        font-size: 34px;
    }

    .language-select {
        width: 132px;
    }

    .scenario-card h3,
    .workflow-step h3,
    .value-card h3,
    .info-content h3,
    .privacy-strip h3 {
        font-size: 18px;
    }
}

/* Canvas style refresh */
@font-face {
    font-family: "Mali-SemiBold";
    src: url("static/fonts/Mali-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #fffdf6;
    --canvas-line: rgba(109, 93, 246, 0.095);
    --paper: rgba(255, 255, 255, 0.78);
    --text: #22242a;
    --muted: #566175;
    --line: rgba(34, 36, 42, 0.12);
    --primary: #8462ff;
    --primary-dark: #6b4cf0;
    --accent: #dff7ff;
    --lime: #e9ff9a;
    --yellow: #ffe879;
    --shadow: 6px 6px 0 rgba(34, 36, 42, 0.92);
    --soft-shadow: 8px 8px 0 rgba(109, 93, 246, 0.12);
    --brand-font: "Mali-SemiBold", "Nunito", "Patrick Hand", cursive;
    --site-body-font: "Nunito", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --site-display-font: "Mali-SemiBold", "Nunito", "Patrick Hand", cursive;
    --site-note-font: "Mali-SemiBold", "Patrick Hand", cursive;
    --title-font: "Mali-SemiBold", "Nunito", "Patrick Hand", cursive;
    --marker-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 620 96' preserveAspectRatio='none'%3E%3Cpath d='M11 35C47 22 91 30 129 25C203 15 270 32 342 24C426 15 500 27 609 18C621 17 623 35 611 43C602 50 617 61 602 69C518 83 438 68 356 76C262 85 186 70 101 80C61 85 26 75 8 72C-4 70 -1 55 7 49C16 43 -2 39 11 35Z' fill='%23FFE879' fill-opacity='.9'/%3E%3C/svg%3E");
}

body {
    font-family: var(--site-body-font);
    color: var(--text);
    position: relative;
    min-height: 100vh;
    background: var(--bg);
    font-weight: 700;
    overflow-x: hidden;
}

@supports (overflow: clip) {
    body {
        overflow-x: clip;
    }
}

main,
footer {
    position: relative;
    z-index: 1;
}

.canvas-decor {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: var(--canvas-height, 100vh);
    min-height: 100vh;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    contain: layout paint;
}

.canvas-decor::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(90deg, var(--canvas-line) 1px, transparent 1px),
        linear-gradient(var(--canvas-line) 1px, transparent 1px);
    background-size: 28px 28px;
}

.decor-study-sheet {
    position: absolute;
    z-index: 1;
    top: 63%;
    left: 22%;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 6px 16px;
    width: min(430px, 36vw);
    font-family: "Mali-SemiBold", "Patrick Hand", cursive;
    font-size: clamp(16px, 1.25vw, 21px);
    font-weight: 600;
    line-height: 1.22;
    color: rgba(34, 36, 42, 0.075);
    opacity: 0.54;
    transform: rotate(-5deg);
    transform-origin: center;
}

.decor-formula-stack,
.decor-practice-note {
    display: grid;
    gap: 5px;
}

.decor-practice-note {
    align-self: end;
    color: rgba(132, 98, 255, 0.1);
    font-size: 0.86em;
}

.decor-study-sheet svg {
    width: 100%;
    height: auto;
    fill: none;
    overflow: visible;
}

.decor-plot {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: 420px;
    margin: -6px 0 0 18px;
}

.decor-proof {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    max-width: 190px;
    margin-bottom: -4px;
}

.decor-practice-note {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: end;
    margin-top: -14px;
}

.decor-study-sheet path {
    stroke: rgba(132, 98, 255, 0.08);
    stroke-width: 4.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.decor-study-sheet .axis,
.decor-study-sheet .sketch {
    stroke: rgba(34, 36, 42, 0.05);
    stroke-width: 3.2;
}

.decor-study-sheet .tangent {
    stroke: rgba(34, 36, 42, 0.07);
    stroke-width: 3.6;
}

.decor-study-sheet .ghost {
    stroke: rgba(132, 98, 255, 0.045);
    stroke-width: 2.6;
}

.decor-note {
    color: rgba(132, 98, 255, 0.1);
    font-size: 0.82em;
}

.decor-formula-cluster {
    position: absolute;
    z-index: 1;
    display: grid;
    gap: 7px;
    width: max-content;
    max-width: 310px;
    font-family: "Mali-SemiBold", "Patrick Hand", cursive;
    font-size: clamp(18px, 1.35vw, 24px);
    font-weight: 600;
    line-height: 1.18;
    color: rgba(34, 36, 42, 0.15);
    opacity: 0.62;
    transform-origin: center;
}

.decor-formula-cluster span {
    white-space: nowrap;
}

.decor-formula-left {
    top: clamp(78px, 9vw, 126px);
    left: max(24px, calc((100vw - 1180px) / 2 - 120px));
    transform: rotate(-8deg);
}

.decor-formula-right {
    top: clamp(460px, 38vw, 620px);
    right: max(20px, calc((100vw - 1180px) / 2 - 142px));
    color: rgba(132, 98, 255, 0.16);
    transform: rotate(7deg);
}

.decor-formula-gap-left {
    top: clamp(900px, 78vw, 1120px);
    left: max(18px, calc((100vw - 1180px) / 2 - 96px));
    color: rgba(132, 98, 255, 0.15);
    transform: rotate(5deg);
}

.decor-formula-gap-right {
    top: clamp(1380px, 118vw, 1700px);
    right: max(24px, calc((100vw - 1180px) / 2 - 80px));
    transform: rotate(-6deg);
}

.decor-file-card {
    position: absolute;
    z-index: 1;
    width: 176px;
    padding: 12px;
    border: 2px solid rgba(34, 36, 42, 0.11);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.48);
    box-shadow: 5px 5px 0 rgba(132, 98, 255, 0.07);
    opacity: 0.46;
    transform-origin: center;
}

.decor-file-top {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: rgba(34, 36, 42, 0.32);
    font-family: "Nunito", Inter, sans-serif;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.decor-file-top > span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.decor-file-badge {
    flex: 0 0 auto;
    padding: 5px 7px;
    border-radius: 8px;
    background: rgba(132, 98, 255, 0.12);
    color: rgba(132, 98, 255, 0.56);
}

.decor-file-badge.image {
    background: rgba(222, 255, 111, 0.42);
    color: rgba(34, 36, 42, 0.42);
}

.decor-file-badge.note {
    background: rgba(132, 98, 255, 0.13);
    color: rgba(132, 98, 255, 0.58);
}

.decor-file-badge.quiz {
    background: rgba(255, 202, 97, 0.36);
    color: rgba(34, 36, 42, 0.46);
}

.decor-pdf-card {
    top: clamp(675px, 54vw, 820px);
    left: max(24px, calc((100vw - 1180px) / 2 - 110px));
    right: auto;
    transform: rotate(-5deg);
}

.decor-pdf-page {
    display: grid;
    gap: 7px;
    margin-top: 12px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.52);
}

.decor-pdf-page span,
.decor-scan-grid span {
    display: block;
    height: 7px;
    border-radius: 999px;
    background: rgba(34, 36, 42, 0.09);
}

.decor-pdf-page .short {
    width: 62%;
}

.decor-image-card {
    top: clamp(1020px, 88vw, 1260px);
    right: max(24px, calc((100vw - 1180px) / 2 - 118px));
    transform: rotate(6deg);
}

.decor-image-thumb {
    position: relative;
    height: 96px;
    margin-bottom: 9px;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(132, 98, 255, 0.1), rgba(222, 255, 111, 0.13));
}

.decor-image-sun,
.decor-image-mountain {
    position: absolute;
    display: block;
}

.decor-image-sun {
    top: 18px;
    right: 22px;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: rgba(255, 232, 121, 0.5);
}

.decor-image-mountain {
    bottom: -10px;
    width: 92px;
    height: 60px;
    border-radius: 18px 18px 0 0;
    background: rgba(34, 36, 42, 0.075);
    transform: rotate(45deg);
}

.decor-image-mountain.one {
    left: 16px;
}

.decor-image-mountain.two {
    right: 6px;
    width: 76px;
    height: 50px;
    background: rgba(132, 98, 255, 0.1);
}

.decor-file-caption {
    color: rgba(34, 36, 42, 0.3);
    font-family: "Nunito", Inter, sans-serif;
    font-size: 12px;
    font-weight: 900;
}

.decor-scan-card {
    top: clamp(1510px, 128vw, 1840px);
    right: max(24px, calc((100vw - 1180px) / 2 - 96px));
    transform: rotate(6deg);
}

.decor-scan-grid {
    display: grid;
    grid-template-columns: 1fr 0.82fr;
    gap: 8px;
    margin-top: 12px;
}

.decor-scan-grid span {
    height: 28px;
    border-radius: 10px;
    background: rgba(132, 98, 255, 0.075);
}

.decor-note-lines,
.decor-quiz-list {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.decor-note-lines span,
.decor-quiz-list span {
    display: block;
    height: 8px;
    border-radius: 999px;
    background: rgba(34, 36, 42, 0.08);
}

.decor-note-lines .wide {
    width: 92%;
}

.decor-note-lines .short {
    width: 56%;
}

.decor-quiz-list span {
    position: relative;
    padding-left: 20px;
    background: rgba(132, 98, 255, 0.075);
}

.decor-quiz-list span::before {
    content: "";
    position: absolute;
    left: 0;
    top: -2px;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(132, 98, 255, 0.22);
    border-radius: 999px;
}

.decor-lower-formula-left {
    top: 44%;
    left: max(20px, calc((100vw - 1180px) / 2 - 112px));
    color: rgba(34, 36, 42, 0.12);
    transform: rotate(-7deg);
}

.decor-lower-note-card {
    top: 50%;
    right: max(28px, calc((100vw - 1180px) / 2 - 122px));
    width: 188px;
    transform: rotate(7deg);
}

.decor-lower-quiz-card {
    top: 60%;
    left: max(36px, calc((100vw - 1180px) / 2 - 52px));
    width: 168px;
    transform: rotate(5deg);
}

.decor-lower-formula-right {
    top: 70%;
    right: max(20px, calc((100vw - 1180px) / 2 - 140px));
    color: rgba(132, 98, 255, 0.14);
    transform: rotate(6deg);
}

.decor-lower-handout-card {
    top: 82%;
    left: max(22px, calc((100vw - 1180px) / 2 - 96px));
    width: 184px;
    transform: rotate(-6deg);
}

@media (max-width: 760px) {
    .canvas-decor > * {
        display: none !important;
    }

    .decor-study-sheet {
        top: 940px;
        right: -38%;
        left: auto;
        grid-template-columns: 1fr;
        gap: 6px;
        width: 330px;
        font-size: 14px;
        opacity: 0.34;
    }

    .decor-formula-cluster {
        max-width: 240px;
        gap: 5px;
        font-size: 15px;
        opacity: 0.52;
    }

    .decor-formula-cluster span {
        white-space: normal;
    }

    .decor-formula-left {
        top: 136px;
        left: -28px;
        transform: rotate(-8deg);
    }

    .decor-file-card {
        width: 146px;
        padding: 10px;
        border-radius: 16px;
        opacity: 0.48;
    }

    .decor-file-top {
        font-size: 10px;
    }

    .decor-pdf-card {
        top: 590px;
        left: min(252px, calc(100vw - 118px));
        right: auto;
        background: rgba(255, 255, 255, 0.52);
        opacity: 0.5;
        transform: rotate(6deg);
    }

    .decor-image-card {
        top: 1038px;
        left: auto;
        right: -52px;
        transform: rotate(6deg);
    }

    .decor-image-thumb {
        height: 78px;
    }

    .decor-scan-card {
        top: 1308px;
        right: -48px;
        transform: rotate(6deg);
    }

    .decor-formula-right {
        top: 570px;
        right: -34px;
        transform: rotate(8deg);
    }

    .decor-formula-gap-left {
        top: 1010px;
        left: -24px;
        transform: rotate(5deg);
    }

    .decor-formula-gap-right {
        top: 1218px;
        right: -30px;
        transform: rotate(-6deg);
    }

    .decor-lower-formula-left {
        top: 49%;
        left: -44px;
        max-width: 210px;
        opacity: 0.4;
        transform: rotate(-7deg);
    }

    .decor-lower-note-card {
        top: 54%;
        right: -46px;
        width: 138px;
        opacity: 0.38;
        transform: rotate(7deg);
    }

    .decor-lower-quiz-card,
    .decor-lower-formula-right,
    .decor-lower-handout-card {
        display: none;
    }

    .decor-proof,
    .decor-plot,
    .decor-practice-note {
        grid-column: 1;
        grid-row: auto;
    }

    .decor-proof {
        max-width: 180px;
    }
}

.container,
.hero-container,
.nav-container {
    width: min(1180px, calc(100% - 40px));
}

.brand-lockup,
.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    text-decoration: none;
    line-height: 1;
}

.brand-mark {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex: 0 0 auto;
}

.brand-word {
    font-family: "Mali-SemiBold", -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", sans-serif;
    font-size: 30px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: 0;
    color: #050505;
    white-space: nowrap;
}

.icon-svg {
    display: block;
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.apple-icon {
    fill: currentColor;
    stroke: none;
}

.download-btn .apple-icon,
.mobile-sticky-cta .apple-icon {
    width: 18px;
    height: 20px;
    flex: 0 0 18px;
    transform: translateY(-1px);
}

.download-btn > span,
.mobile-sticky-cta > span {
    line-height: 1;
}

.navbar {
    top: 14px;
    margin: 0 auto;
    width: min(1180px, calc(100% - 32px));
    border-radius: 38px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.93), rgba(255, 255, 255, 0.68)),
        linear-gradient(90deg, rgba(255, 255, 255, 0.34), rgba(132, 98, 255, 0.1), rgba(255, 255, 255, 0.3));
    border: 3px solid rgba(255, 255, 255, 0.86);
    box-shadow:
        0 30px 64px rgba(34, 36, 42, 0.14),
        0 9px 22px rgba(132, 98, 255, 0.1),
        0 0 0 1px rgba(132, 98, 255, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -12px 24px rgba(255, 255, 255, 0.44),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(32px) saturate(1.55);
    -webkit-backdrop-filter: blur(32px) saturate(1.55);
}

.nav-container {
    width: 100%;
    height: 70px;
    padding: 8px 12px 8px 20px;
    gap: 14px;
}

.nav-logo img,
.footer-logo img,
.about-logo-card img {
    height: auto;
    width: auto;
}

.nav-logo .brand-mark {
    width: 30px;
    height: 30px;
    transform: translateY(2px);
}

.nav-menu {
    justify-content: center;
    gap: 8px;
    margin-left: 14px;
}

.nav-link {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 999px;
    color: #4f5969;
    font-size: 14px;
    font-weight: 900;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: #efeaff;
}

.language-select {
    width: 148px;
    min-width: 148px;
    max-width: 148px;
    height: 42px;
    border: 2px solid rgba(34, 36, 42, 0.12);
    border-radius: 999px;
    background:
        linear-gradient(90deg, rgba(132, 98, 255, 0.1), rgba(255, 255, 255, 0) 46%),
        #fff;
    color: var(--text);
    font-family: "Nunito", Inter, sans-serif;
    font-weight: 900;
    padding: 0 42px 0 24px;
    cursor: pointer;
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #22242a 50%),
        linear-gradient(135deg, #22242a 50%, transparent 50%),
        linear-gradient(90deg, rgba(132, 98, 255, 0.1), rgba(255, 255, 255, 0) 46%);
    background-position:
        calc(100% - 23px) 18px,
        calc(100% - 17px) 18px,
        0 0;
    background-size: 6px 6px, 6px 6px, 100% 100%;
    background-repeat: no-repeat;
    box-shadow: 3px 3px 0 rgba(132, 98, 255, 0.18);
}

.download-btn,
.mobile-sticky-cta {
    width: 148px;
    min-width: 148px;
    max-width: 148px;
    height: 42px;
    border: 2px solid rgba(132, 98, 255, 0.34);
    border-radius: 999px;
    background: linear-gradient(135deg, #9b7cff 0%, #8462ff 48%, #6b4cf0 100%);
    color: #fff;
    box-shadow: 3px 3px 0 rgba(132, 98, 255, 0.22), 0 10px 24px rgba(132, 98, 255, 0.2);
    font-family: "Nunito", Inter, sans-serif;
    font-weight: 900;
}

.download-btn:hover,
.mobile-sticky-cta:hover {
    background: linear-gradient(135deg, #a98fff 0%, #8b6aff 48%, #7456f5 100%);
    color: #fff;
    transform: translate(1px, 1px);
    box-shadow: 2px 2px 0 rgba(132, 98, 255, 0.28), 0 8px 18px rgba(132, 98, 255, 0.18);
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 106px 0 82px;
    background: transparent;
}

.hero-container {
    position: relative;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 1fr);
    gap: 42px;
}

.hero-content {
    align-self: center;
    padding-left: 18px;
    min-width: 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 16px;
    border: 2px solid rgba(132, 98, 255, 0.22);
    border-radius: 999px;
    background: #efeaff;
    color: var(--primary);
    font-size: 12px;
    font-family: "Nunito", Inter, sans-serif;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-content > .eyebrow,
.about-hero .eyebrow {
    display: flex;
    width: fit-content;
}

.hero-title,
.about-hero h1 {
    font-family: var(--title-font);
    font-size: clamp(46px, 5.2vw, 72px);
    line-height: 0.92;
    font-weight: 600;
    letter-spacing: 0;
    max-width: 720px;
}

.hero-title {
    display: block;
    font-family: var(--title-font);
    font-size: clamp(42px, 4.4vw, 62px);
    font-weight: 600;
    line-height: 1.03;
    padding: 0;
}

.hero-title .marker-line {
    position: relative;
    display: block;
    width: fit-content;
    max-width: 100%;
    padding: 0 14px;
    white-space: nowrap;
    z-index: 0;
}

.hero-title .marker-line::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 47%;
    height: 58%;
    z-index: -1;
    background-image: var(--marker-image);
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    transform: scaleX(0);
    transform-origin: left center;
    animation: marker-sweep 1.05s cubic-bezier(0.18, 0.86, 0.24, 1) var(--marker-delay, 0.22s) forwards;
    will-change: transform;
}

@keyframes marker-sweep {
    0% {
        transform: scaleX(0);
    }

    100% {
        transform: scaleX(1);
    }
}

@keyframes app-store-shine {
    0% {
        opacity: 0;
        transform: skewX(-22deg) translateX(-130%);
    }

    22% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: skewX(-22deg) translateX(520%);
    }
}

.hero-description {
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.65;
    margin-top: 28px;
    max-width: 590px;
    color: var(--muted);
}

.hero-actions {
    gap: 16px;
    margin-top: 26px;
}

.app-store-button {
    min-height: 58px;
    padding: 10px 22px;
    border: 2px solid #22242a;
    border-radius: 999px;
    background: #22242a;
    box-shadow: 5px 5px 0 var(--yellow);
    font-family: "Nunito", Inter, sans-serif;
    font-weight: 900;
}

.app-store-button:hover {
    box-shadow: 3px 3px 0 var(--yellow);
    transform: translate(2px, 2px);
}

.student-tags,
.student-chip-grid {
    gap: 11px;
    min-width: 0;
}

.student-tags > span,
.student-chip-grid > span {
    border: 2px solid #22242a;
    border-radius: 999px;
    background: #fff;
    color: #22242a;
    box-shadow: 3px 3px 0 #22242a;
    font-family: "Nunito", Inter, sans-serif;
    font-size: 14px;
    font-weight: 900;
    padding: 8px 15px;
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    align-self: center;
    animation: hero-visual-in 1.18s cubic-bezier(0.16, 1, 0.3, 1) 0.34s both;
}

.product-frame {
    position: relative;
    width: 100%;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.product-frame::before {
    content: none;
}

.shot-shell {
    overflow: hidden;
    border-radius: 18px;
    background: transparent;
    box-shadow: 0 0 0 8px #2f3239, 0 24px 54px rgba(34, 36, 42, 0.16);
}

.product-shot {
    width: 100%;
    border-radius: inherit;
    clip-path: none;
}

.assistant-panel {
    left: auto;
    right: -16px;
    bottom: -18px;
    width: min(300px, 54%);
    border: 2px solid #22242a;
    border-radius: 28px;
    background: #fff;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(16px) scale(0.92);
    animation: pop-panel 0.56s cubic-bezier(0.18, 1.28, 0.32, 1) 1.62s forwards;
}

.mini-card {
    min-height: 44px;
    padding: 0 16px;
    border: 2px solid #22242a;
    border-radius: 999px;
    background: #fff;
    box-shadow: 4px 4px 0 #22242a;
    font-size: 14px;
    font-weight: 900;
    opacity: 0;
    transform: translateY(16px) scale(0.9);
}

.mini-icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    color: #22242a;
    background: var(--lime);
}

.mini-card-left {
    left: -18px;
    bottom: 84px;
    background: var(--lime);
}

.mini-card-right {
    right: -18px;
    top: 54px;
    background: var(--accent);
}

.mini-card-left {
    animation:
        pop-badge-left 0.54s cubic-bezier(0.18, 1.28, 0.32, 1) 1.82s forwards,
        float-badge-left 5.8s ease-in-out 2.56s infinite;
}

.mini-card-right {
    animation:
        pop-badge-right 0.54s cubic-bezier(0.18, 1.28, 0.32, 1) 2.06s forwards,
        float-badge-right 6.2s ease-in-out 2.82s infinite;
}

@keyframes hero-visual-in {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pop-panel {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.92);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pop-badge-left {
    from {
        opacity: 0;
        transform: rotate(-4deg) translateY(16px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: rotate(-4deg) translateY(0) scale(1);
    }
}

@keyframes pop-badge-right {
    from {
        opacity: 0;
        transform: rotate(3deg) translateY(16px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: rotate(3deg) translateY(0) scale(1);
    }
}

@keyframes float-badge-left {
    0%,
    100% {
        transform: rotate(-4deg) translateY(0);
    }

    50% {
        transform: rotate(-2.8deg) translateY(-6px);
    }
}

@keyframes float-badge-right {
    0%,
    100% {
        transform: rotate(3deg) translateY(0);
    }

    50% {
        transform: rotate(2deg) translateY(-5px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-visual,
    .assistant-panel,
    .mini-card-left,
    .mini-card-right,
    .app-store-button:hover::before,
    .app-store-button:focus-visible::before,
    .nav-download:hover::before,
    .nav-download:focus-visible::before,
    .hero-title .marker-line::before {
        animation: none;
    }

    .assistant-panel {
        opacity: 1;
        transform: none;
    }

    .mini-card-left {
        opacity: 1;
        transform: rotate(-4deg);
    }

    .mini-card-right {
        opacity: 1;
        transform: rotate(3deg);
    }

    .hero-title .marker-line::before {
        transform: scaleX(1);
    }
}

.section {
    position: relative;
    padding: 86px 0;
    background: transparent;
}

.scenarios,
.screenshots,
.contact-section,
.faq,
.trust {
    background: transparent;
}

.section-heading {
    max-width: 760px;
}

.section-heading h2,
.student-panel h2,
.final-cta-panel h2,
.about-logo-card h2 {
    font-family: var(--title-font);
    font-size: clamp(30px, 3.6vw, 46px);
    line-height: 1.08;
    font-weight: 600;
    letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.student-panel p:not(.eyebrow) {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.65;
}

.scenario-grid,
.voice-grid,
.values-grid,
.workflow-steps,
.faq-grid {
    gap: 20px;
}

.scenario-card,
.voice-card,
.value-card,
.info-item,
.faq-grid details,
.screenshot-card,
.student-panel,
.final-cta-panel,
.about-logo-card {
    border: 2px solid rgba(34, 36, 42, 0.12);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--soft-shadow);
    backdrop-filter: blur(8px);
}

.scenario-card,
.voice-card,
.value-card {
    padding: 30px;
}

.scenario-card:nth-child(1),
.voice-card:nth-child(1),
.value-card:nth-child(1) {
    transform: rotate(-1deg);
}

.scenario-card:nth-child(2),
.voice-card:nth-child(2),
.value-card:nth-child(2) {
    transform: rotate(0.8deg);
}

.scenario-card:nth-child(3),
.voice-card:nth-child(3),
.value-card:nth-child(3) {
    transform: rotate(-0.5deg);
}

.scenario-card h3,
.workflow-step h3,
.value-card h3,
.info-content h3,
.privacy-strip h3 {
    font-family: var(--title-font);
    font-size: 22px;
    line-height: 1.15;
    font-weight: 600;
}

.section-heading,
.section-heading h2,
.scenario-grid,
.scenario-card,
.scenario-card h3,
.scenario-card p {
    min-width: 0;
    max-width: 100%;
}

.section-heading h2,
.scenario-card h3,
.scenario-card p {
    overflow-wrap: anywhere;
}

.scenario-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 2px solid #22242a;
    border-radius: 999px;
    background: var(--yellow);
    color: #22242a;
    font-size: 21px;
    line-height: 1;
    box-shadow: 3px 3px 0 #22242a;
}

.workflow-layout {
    gap: 54px;
}

.pai-agent {
    padding-top: 22px;
    scroll-margin-top: 150px;
}

.pai-agent-panel {
    display: block;
    padding: 40px;
    border: 2px solid #22242a;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 6px 6px 0 rgba(109, 93, 246, 0.18);
    backdrop-filter: blur(8px);
}

.pai-agent-panel .section-heading {
    max-width: 820px;
    margin: 0 auto 32px;
    text-align: center;
}

.agent-eyebrow {
    gap: 8px;
}

.agent-eyebrow img {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.pai-agent-visual {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.pai-agent-scene {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 330px;
    padding: 20px;
    border: 2px solid rgba(34, 36, 42, 0.12);
    border-radius: 28px;
    background: #fff;
    box-shadow: 4px 4px 0 rgba(34, 36, 42, 0.08);
}

.scene-header {
    min-width: 0;
    margin-bottom: 14px;
}

.scene-plan {
    display: flex;
}

.scene-plan .scene-header {
    align-self: auto;
    margin-bottom: 14px;
}

.scene-header h3 {
    min-width: 0;
    font-family: var(--title-font);
    font-size: 19px;
    line-height: 1.12;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.agent-content-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(126px, 0.72fr);
    gap: 12px;
    align-items: center;
    flex: 1;
}

.source-card,
.scene-plan-board {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    padding: 18px;
    border: 2px solid rgba(34, 36, 42, 0.1);
    border-radius: 18px;
    background:
        linear-gradient(90deg, rgba(109, 93, 246, 0.08) 1px, transparent 1px),
        linear-gradient(rgba(109, 93, 246, 0.08) 1px, transparent 1px),
        #fbfaf7;
    background-size: 18px 18px;
}

.note-source {
    background:
        repeating-linear-gradient(#fbfaf7 0 20px, rgba(109, 93, 246, 0.13) 21px, #fbfaf7 22px);
}

.source-top {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin-bottom: 20px;
    color: #6a7180;
    font-size: 12px;
    font-weight: 900;
}

.source-top > span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.source-badge {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 28px;
    padding: 0 10px;
    border: 2px solid #22242a;
    border-radius: 999px;
    background: var(--yellow);
    box-shadow: 2px 2px 0 #22242a;
    color: #22242a;
    font-size: 12px;
    font-weight: 900;
}

.source-badge.note {
    background: var(--accent);
}

.source-badge.subject {
    background: var(--lime);
}

.paper-line,
.handwriting-stroke {
    height: 10px;
    border-radius: 999px;
    background: rgba(34, 36, 42, 0.14);
}

.paper-line {
    width: 78%;
    margin-bottom: 12px;
}

.paper-line.long {
    width: 92%;
}

.paper-line.short {
    width: 52%;
}

.selection-highlight {
    width: 70%;
    height: 22px;
    margin-top: 18px;
    border-radius: 10px;
    background: rgba(255, 228, 93, 0.55);
    box-shadow: inset 0 0 0 2px rgba(255, 228, 93, 0.65);
}

.handwritten-formula {
    width: fit-content;
    max-width: 100%;
    margin: 4px 0 16px;
    color: #22242a;
    font-family: var(--title-font);
    font-size: 21px;
    line-height: 1.05;
    transform: rotate(-2deg);
    overflow-wrap: anywhere;
}

.handwriting-stroke {
    height: 12px;
    width: 74%;
    margin-bottom: 14px;
    background: #22242a;
    transform: rotate(-2deg);
}

.handwriting-stroke.wide {
    width: 88%;
}

.handwriting-stroke.short {
    width: 46%;
}

.agent-chat {
    display: grid;
    gap: 10px;
    align-content: center;
}

.question-card,
.quiz-chip {
    position: relative;
    max-width: 100%;
    padding: 10px 12px;
    border: 2px solid #22242a;
    border-radius: 16px 16px 4px 16px;
    background: #fff;
    box-shadow: 3px 3px 0 #22242a;
    color: #22242a;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.question-card::after {
    content: '';
    position: absolute;
    right: -2px;
    bottom: -8px;
    width: 12px;
    height: 12px;
    border-right: 2px solid #22242a;
    border-bottom: 2px solid #22242a;
    border-radius: 0 0 8px 0;
    background: #fff;
}

.pai-reply {
    position: relative;
    display: grid;
    gap: 7px;
    max-width: 100%;
    padding: 12px;
    border: 2px solid rgba(34, 36, 42, 0.12);
    border-radius: 16px 16px 16px 4px;
    background: #efeaff;
}

.pai-reply::before {
    content: 'Pai';
    display: inline-flex;
    width: fit-content;
    min-height: 22px;
    align-items: center;
    margin-bottom: 2px;
    padding: 0 8px;
    border-radius: 999px;
    background: #fff;
    color: var(--primary);
    font-size: 11px;
    font-weight: 900;
}

.pai-reply > span {
    display: block;
    width: 100%;
    height: 7px;
    border-radius: 999px;
    background: rgba(109, 93, 246, 0.22);
}

.pai-reply > span.short {
    width: 66%;
}

.scene-plan-board {
    display: grid;
    align-content: stretch;
    gap: 16px;
    flex: 1;
    min-height: 210px;
    background:
        radial-gradient(circle at 28px 30px, rgba(109, 93, 246, 0.18) 0 8px, transparent 9px),
        radial-gradient(circle at calc(100% - 34px) calc(100% - 32px), rgba(217, 255, 116, 0.55) 0 12px, transparent 13px),
        #fbfaf7;
}

.subject-pill {
    display: inline-flex;
    gap: 10px;
    width: fit-content;
    max-width: 100%;
    align-items: center;
    padding: 6px 14px 6px 6px;
    border: 2px solid #22242a;
    border-radius: 999px;
    background: #efeaff;
    color: #22242a;
    box-shadow: 2px 2px 0 #22242a;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.output-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
}

.output-list > span {
    min-width: 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 12px;
    border-radius: 14px;
    background: #fff;
    color: #424956;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.15;
    text-align: left;
    overflow-wrap: anywhere;
}

.pai-agent-panel,
.pai-agent-panel > *,
.pai-agent-visual,
.pai-agent-scene,
.scene-header,
.scene-header h3,
.agent-content-row,
.agent-chat,
.source-card,
.source-top,
.question-card,
.pai-reply,
.quiz-chip,
.subject-pill,
.output-list,
.output-list > span {
    min-width: 0;
    max-width: 100%;
}

.workflow-step {
    position: relative;
    min-height: 180px;
    padding: 24px;
    border: 2px solid #22242a;
    border-radius: 34px;
    background: #fff;
    box-shadow: 5px 5px 0 rgba(34, 36, 42, 0.9);
}

.workflow-step > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    color: #22242a;
    background: var(--yellow);
    font-weight: 900;
}

.workflow-step:nth-child(2) > span,
.scenario-card:nth-child(2) .scenario-icon {
    background: var(--accent);
}

.workflow-step:nth-child(3) > span,
.scenario-card:nth-child(3) .scenario-icon {
    background: var(--lime);
}

.workflow-step:nth-child(4) > span {
    background: #efeaff;
    color: var(--primary);
}

.students {
    padding: 26px 0 82px;
}

.student-panel {
    padding: 54px;
}

.student-panel > *,
.workflow-layout > *,
.about-hero-layout > *,
.final-cta-panel > * {
    min-width: 0;
}

.student-panel h2,
.section-heading h2,
.about-hero h1,
.final-cta-panel h2,
.student-panel p:not(.eyebrow) {
    overflow-wrap: anywhere;
}

.student-chip-grid > span:nth-child(2n) {
    background: var(--accent);
}

.student-chip-grid > span:nth-child(3n) {
    background: var(--lime);
}

.student-chip-grid > span:nth-child(4n) {
    background: #efeaff;
    color: var(--primary);
}

.screenshot-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: none;
}

.screenshot-card img {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
    padding: 14px;
    background: #f5f0ff;
    object-fit: contain;
    object-position: center center;
}

.screenshot-card.large img {
    flex: 1 1 auto;
    aspect-ratio: auto;
    min-height: 560px;
}

.screenshot-card figcaption {
    border-top: 2px solid rgba(34, 36, 42, 0.1);
    background: #fff;
    color: #424956;
    font-weight: 900;
}

.preview-carousel {
    position: relative;
    width: min(1280px, 100%);
    min-height: 640px;
    margin: 48px auto 0;
    isolation: isolate;
    overflow: hidden;
    contain: layout paint;
}

.preview-shot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(780px, 64vw);
    margin: 0;
    z-index: var(--stack-z, 1);
    transform: translate(calc(-50% + var(--stack-x, 0px)), calc(-50% + var(--stack-y, 0px))) rotate(var(--stack-rotate, 0deg)) scale(var(--stack-scale, 0.82));
    transform-origin: center;
    transition: transform 0.72s cubic-bezier(0.16, 1, 0.3, 1);
    animation-duration: 17s;
    animation-iteration-count: infinite;
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

.preview-shot.is-front {
    z-index: 10;
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
}

.preview-shot-a {
    --stack-x: -430px;
    --stack-y: -10px;
    --stack-rotate: -5deg;
    --stack-scale: 0.78;
    --stack-z: 4;
    animation-name: preview-card-a;
}

.preview-shot-b {
    --stack-x: -210px;
    --stack-y: 24px;
    --stack-rotate: 4deg;
    --stack-scale: 0.88;
    --stack-z: 5;
    animation-name: preview-card-b;
}

.preview-shot-c {
    --stack-x: 210px;
    --stack-y: -20px;
    --stack-rotate: -4deg;
    --stack-scale: 0.86;
    --stack-z: 3;
    animation-name: preview-card-c;
}

.preview-shot-d {
    --stack-x: 430px;
    --stack-y: 18px;
    --stack-rotate: 5deg;
    --stack-scale: 0.76;
    --stack-z: 2;
    animation-name: preview-card-d;
}

.preview-shot-e {
    --stack-x: 0px;
    --stack-y: 70px;
    --stack-rotate: 1deg;
    --stack-scale: 0.72;
    --stack-z: 1;
    animation-name: preview-card-e;
}

.preview-shot-shell {
    overflow: hidden;
    border-radius: 18px;
    background: #f2efff;
    box-shadow: 0 0 0 8px #2f3239, 0 24px 54px rgba(34, 36, 42, 0.16);
}

.preview-shot img {
    width: 100%;
    aspect-ratio: 1.42;
    object-fit: contain;
    background: #f2efff;
    border-radius: inherit;
}

.preview-shot figcaption {
    width: max-content;
    max-width: min(94%, 620px);
    margin: 18px auto 0;
    padding: 12px 20px;
    border: 2px solid #22242a;
    border-radius: 999px;
    background: #fff;
    box-shadow: 4px 4px 0 #22242a;
    color: #424956;
    font-weight: 900;
    text-align: center;
    visibility: hidden;
    transform: translateY(-8px);
    transition: transform 0.28s ease;
    animation-duration: 17s;
    animation-iteration-count: infinite;
    animation-timing-function: ease;
}

.preview-shot.is-front figcaption {
    visibility: visible;
    transform: translateY(0);
}

.preview-shot-a figcaption {
    animation-name: preview-caption-a;
}

.preview-shot-b figcaption {
    animation-name: preview-caption-b;
}

.preview-shot-c figcaption {
    animation-name: preview-caption-c;
}

.preview-shot-d figcaption {
    animation-name: preview-caption-d;
}

.preview-shot-e figcaption {
    animation-name: preview-caption-e;
}

.preview-carousel.is-controlled .preview-shot,
.preview-carousel.is-controlled .preview-shot figcaption {
    animation: none;
}

.preview-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    width: min(980px, 100%);
    margin: 28px auto 0;
    padding: 0;
}

.preview-nav-button {
    position: relative;
    min-height: 40px;
    padding: 0 2px 8px;
    border: 0;
    background: transparent;
    color: #5c6574;
    font: inherit;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.preview-nav-button::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 4px;
    border-radius: 999px;
    background: #8b5cf6;
    content: "";
    opacity: 0;
    transform: scaleX(0.5);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.preview-nav-button:hover {
    color: #22242a;
    transform: translateY(-1px);
}

.preview-nav-button.is-active {
    color: #7c3aed;
}

.preview-nav-button.is-active::after {
    opacity: 1;
    transform: scaleX(1);
}

.preview-nav-button:focus-visible {
    outline: 3px solid rgba(139, 92, 246, 0.35);
    outline-offset: 3px;
}

@keyframes preview-card-a {
    0%, 16%, 100% { z-index: 10; transform: translate(-50%, -50%) rotate(0deg) scale(1); }
    20%, 96% { z-index: var(--stack-z); transform: translate(calc(-50% + var(--stack-x)), calc(-50% + var(--stack-y))) rotate(var(--stack-rotate)) scale(var(--stack-scale)); }
}

@keyframes preview-card-b {
    0%, 16%, 40%, 100% { z-index: var(--stack-z); transform: translate(calc(-50% + var(--stack-x)), calc(-50% + var(--stack-y))) rotate(var(--stack-rotate)) scale(var(--stack-scale)); }
    20%, 36% { z-index: 10; transform: translate(-50%, -50%) rotate(0deg) scale(1); }
}

@keyframes preview-card-c {
    0%, 36%, 60%, 100% { z-index: var(--stack-z); transform: translate(calc(-50% + var(--stack-x)), calc(-50% + var(--stack-y))) rotate(var(--stack-rotate)) scale(var(--stack-scale)); }
    40%, 56% { z-index: 10; transform: translate(-50%, -50%) rotate(0deg) scale(1); }
}

@keyframes preview-card-d {
    0%, 56%, 80%, 100% { z-index: var(--stack-z); transform: translate(calc(-50% + var(--stack-x)), calc(-50% + var(--stack-y))) rotate(var(--stack-rotate)) scale(var(--stack-scale)); }
    60%, 76% { z-index: 10; transform: translate(-50%, -50%) rotate(0deg) scale(1); }
}

@keyframes preview-card-e {
    0%, 76% { z-index: var(--stack-z); transform: translate(calc(-50% + var(--stack-x)), calc(-50% + var(--stack-y))) rotate(var(--stack-rotate)) scale(var(--stack-scale)); }
    80%, 96% { z-index: 10; transform: translate(-50%, -50%) rotate(0deg) scale(1); }
    100% { z-index: var(--stack-z); transform: translate(calc(-50% + var(--stack-x)), calc(-50% + var(--stack-y))) rotate(var(--stack-rotate)) scale(var(--stack-scale)); }
}

@keyframes preview-caption-a {
    0%, 16%, 100% { visibility: visible; transform: translateY(0); }
    20%, 96% { visibility: hidden; transform: translateY(-8px); }
}

@keyframes preview-caption-b {
    0%, 16%, 40%, 100% { visibility: hidden; transform: translateY(-8px); }
    20%, 36% { visibility: visible; transform: translateY(0); }
}

@keyframes preview-caption-c {
    0%, 36%, 60%, 100% { visibility: hidden; transform: translateY(-8px); }
    40%, 56% { visibility: visible; transform: translateY(0); }
}

@keyframes preview-caption-d {
    0%, 56%, 80%, 100% { visibility: hidden; transform: translateY(-8px); }
    60%, 76% { visibility: visible; transform: translateY(0); }
}

@keyframes preview-caption-e {
    0%, 76%, 100% { visibility: hidden; transform: translateY(-8px); }
    80%, 96% { visibility: visible; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .preview-shot,
    .preview-shot figcaption {
        animation: none;
    }
}

.voice-card p {
    font-size: 17px;
    color: #4f5969;
}

.voice-note {
    margin-top: 12px;
    color: #667085;
    font-size: 15px;
    line-height: 1.55;
}

.voice-carousel {
    --voice-card-width: 340px;
    --voice-card-gap: 20px;
    overflow: hidden;
    contain: layout paint;
    position: relative;
    margin: 0 -20px;
    padding: 8px 20px 16px;
    mask-image: linear-gradient(90deg, transparent 0, #000 54px, #000 calc(100% - 54px), transparent 100%);
}

.voice-track {
    display: flex;
    width: max-content;
    gap: var(--voice-card-gap);
    animation: voice-scroll 92s linear infinite;
    will-change: transform;
}

.voice-carousel:hover .voice-track {
    animation-play-state: paused;
}

.voice-track .voice-card {
    display: flex;
    flex: 0 0 var(--voice-card-width);
    min-height: 292px;
    flex-direction: column;
    justify-content: space-between;
    padding: 26px;
    transform: none;
}

.voice-track .voice-card p {
    color: #344054;
    font-size: 16px;
    line-height: 1.62;
}

.voice-track .voice-author {
    margin-top: 22px;
    gap: 14px;
}

.voice-track .voice-author img {
    width: 66px;
    height: 66px;
    flex: 0 0 auto;
    border: 2px solid #22242a;
    border-radius: 999px;
    object-fit: cover;
    background: #eef2f6;
}

.voice-author-text {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.voice-author-text strong {
    color: #22242a;
    font-size: 15px;
    line-height: 1.2;
}

.voice-author-text small {
    color: #667085;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

@keyframes voice-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(var(--voice-count) * -1 * (var(--voice-card-width) + var(--voice-card-gap))));
    }
}

@media (prefers-reduced-motion: reduce) {
    .voice-carousel {
        overflow-x: auto;
        mask-image: none;
    }

    .voice-track {
        animation: none;
    }
}

.voice-author img {
    border: 2px solid #22242a;
    border-radius: 999px;
}

.privacy-strip {
    border: 2px solid #22242a;
    border-radius: 999px;
    background: #22242a;
    box-shadow: 5px 5px 0 var(--yellow);
}

.privacy-strip a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 0 18px;
    border-radius: 999px;
    background: #fff;
    color: #22242a;
    text-decoration: none;
}

.faq-grid details {
    padding: 24px 26px;
    box-shadow: 4px 4px 0 rgba(109, 93, 246, 0.14);
}

.faq-grid summary {
    font-family: var(--title-font);
    font-size: 18px;
    font-weight: 600;
}

.final-cta {
    position: relative;
    padding: 54px 0 92px;
}

.final-cta-panel {
    padding: 42px;
    border-radius: 42px;
    background:
        linear-gradient(90deg, rgba(109, 93, 246, 0.08) 1px, transparent 1px),
        linear-gradient(rgba(109, 93, 246, 0.08) 1px, transparent 1px),
        rgba(255, 255, 255, 0.78);
    background-size: 22px 22px;
}

.footer {
    margin: 0 auto 18px;
    width: min(1180px, calc(100% - 32px));
    border: 2px solid #22242a;
    border-radius: 42px;
    background: #22242a;
    color: #fff;
    box-shadow: 6px 6px 0 var(--yellow);
}

.footer-content {
    padding: 34px;
}

.footer-logo {
    height: auto;
    margin-bottom: 12px;
}

.footer .brand-mark {
    width: 36px;
    height: 36px;
}

.footer .brand-word {
    color: #fff;
    font-size: 30px;
}

.footer-links {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.86);
    font-weight: 900;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.about-hero {
    position: relative;
    padding: 112px 0 82px;
    background: transparent;
}

html[data-page="about"] .about-hero {
    padding: 92px 0 52px;
}

html[data-page="about"] .decor-study-sheet,
html[data-page="about"] .decor-file-card,
html[data-page="about"] .decor-formula-gap-left,
html[data-page="about"] .decor-formula-gap-right,
html[data-page="about"] .decor-lower-formula-left,
html[data-page="about"] .decor-lower-formula-right {
    display: none;
}

html[data-page="about"] .decor-formula-left {
    top: 132px;
    left: max(20px, calc((100vw - 1180px) / 2 - 88px));
    opacity: 0.28;
}

html[data-page="about"] .decor-formula-right {
    top: 520px;
    right: max(20px, calc((100vw - 1180px) / 2 - 78px));
    opacity: 0.22;
}

html[data-page="about"] .about-hero h1 {
    font-size: clamp(42px, 4.4vw, 62px);
}

html[data-page="about"] .about-values {
    padding: 42px 0 38px;
}

html[data-page="about"] .contact-section {
    padding: 42px 0 34px;
}

html[data-page="about"] .contact-section .section-heading {
    margin-bottom: 24px;
}

html[data-page="about"] .footer {
    margin-bottom: 12px;
}

.about-hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.58fr);
}

.about-hero p:not(.eyebrow) {
    color: var(--muted);
}

.about-logo-card {
    padding: 34px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.about-brand-lockup {
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 26px;
}

.about-brand-lockup .brand-mark {
    width: 50px;
    height: 50px;
    margin-bottom: 0;
    transform: translateY(3px);
}

.about-brand-lockup .brand-word {
    font-size: 30px;
}

html[data-page="about"] .about-logo-card h2 {
    font-family: "Nunito", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 900;
}

.company-location {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    color: #22242a;
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
}

.company-location-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 2px solid #22242a;
    border-radius: 999px;
    background: #8462ff;
    color: #ffffff;
    box-shadow: 2px 2px 0 #22242a;
    font-size: 14px;
}

.value-card > span,
.info-icon {
    width: 46px;
    height: 46px;
    border: 2px solid #22242a;
    border-radius: 999px;
    background: var(--yellow);
    color: #22242a;
    box-shadow: 3px 3px 0 #22242a;
}

.value-card:nth-child(2) > span,
.info-item:nth-child(2) .info-icon {
    background: var(--accent);
}

.value-card:nth-child(3) > span {
    background: var(--lime);
}

.info-item {
    padding: 26px;
}

.reveal {
    transform: translateY(14px);
}

.nav-link:focus,
.download-btn:focus,
.app-store-button:focus,
.language-select:focus,
.footer-link:focus,
.mobile-sticky-cta:focus,
.nav-toggle:focus {
    outline: 3px solid rgba(132, 98, 255, 0.36);
    outline-offset: 3px;
}

@media (max-width: 980px) {
    .hero-container,
    .workflow-layout,
    .pai-agent-panel,
    .student-panel,
    .about-hero-layout {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding-left: 0;
        width: min(350px, calc(100vw - 40px));
        max-width: min(350px, calc(100vw - 40px));
    }

    .hero-visual {
        min-height: auto;
    }

    .product-frame {
        transform: none;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 78px;
    }

    .navbar {
        top: 8px;
        width: min(100% - 24px, 1180px);
        border-radius: 999px;
        overflow: visible;
    }

    .nav-container {
        position: relative;
        width: 100%;
        height: 66px;
        min-height: 66px;
        padding: 10px 12px;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .brand-mark {
        width: 32px;
        height: 32px;
    }

    .brand-word {
        font-size: 27px;
    }

    .nav-logo {
        gap: 8px;
    }

    .nav-menu {
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        z-index: 20;
        width: min(260px, calc(100vw - 24px));
        flex: 0 0 auto;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        margin-left: 0;
        padding: 10px;
        border: 2px solid rgba(255, 255, 255, 0.86);
        border-radius: 24px;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.78)),
            linear-gradient(90deg, rgba(255, 255, 255, 0.34), rgba(132, 98, 255, 0.1), rgba(255, 255, 255, 0.3));
        box-shadow:
            0 22px 46px rgba(34, 36, 42, 0.16),
            0 0 0 1px rgba(132, 98, 255, 0.12),
            inset 0 1px 0 rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(28px) saturate(1.45);
        -webkit-backdrop-filter: blur(28px) saturate(1.45);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        justify-content: center;
        min-height: 42px;
        border-bottom: 0;
        background: rgba(255, 255, 255, 0.72);
    }

    .nav-download {
        display: none;
    }

    .language-switcher {
        margin-left: auto;
    }

    .language-select {
        width: 128px;
        min-width: 128px;
        max-width: 128px;
        height: 38px;
        font-size: 13px;
        padding: 0 34px 0 13px;
        background-position:
            calc(100% - 20px) 16px,
            calc(100% - 14px) 16px,
            0 0;
    }

    .nav-toggle {
        display: block;
        width: 42px;
        height: 42px;
        margin-left: 8px;
        padding: 9px;
        flex: 0 0 auto;
        border-radius: 999px;
        background: #efeaff;
    }

    .hero {
        padding: 82px 0 56px;
    }

    .hero-content > .eyebrow,
    .about-hero .eyebrow {
        width: max-content;
        max-width: none;
        min-height: 36px;
        padding: 0 14px;
        font-size: clamp(10px, 2.65vw, 12px);
        line-height: 1;
        white-space: nowrap;
    }

    .hero-title,
    .about-hero h1 {
        font-size: 34px;
        line-height: 1.08;
    }

    .hero-description,
    .about-hero p:not(.eyebrow),
    .section-heading p:not(.eyebrow),
    .student-panel p:not(.eyebrow) {
        font-size: 17px;
    }

    .hero-description {
        width: min(350px, calc(100vw - 40px));
        max-width: 100%;
    }

    .student-tags {
        width: min(350px, calc(100vw - 40px));
        max-width: 100%;
    }

    .hero-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .student-tags > span,
    .student-chip-grid > span {
        font-size: 13px;
        padding: 7px 10px;
    }

    .shot-shell {
        border-radius: 16px;
        box-shadow: 0 0 0 7px #2f3239, 0 18px 42px rgba(34, 36, 42, 0.16);
    }

    .product-shot {
        border-radius: inherit;
    }

    .hero-visual {
        display: block;
        position: relative;
        width: min(100%, 560px);
        max-width: calc(100vw - 32px);
        min-width: 0;
        margin: 0 auto;
        padding: clamp(28px, 7vw, 44px) 0 clamp(72px, 17vw, 96px);
    }

    .product-frame {
        width: 100%;
        min-width: 0;
    }

    .shot-shell {
        width: 100%;
        min-width: 0;
    }

    .assistant-panel {
        display: block;
        left: clamp(180px, 34vw, 248px);
        right: auto;
        bottom: clamp(-48px, -9vw, -28px);
        width: min(220px, calc(100vw - 214px));
        padding: 13px 14px;
        border-radius: 24px;
    }

    .assistant-panel p {
        font-size: 13px;
        line-height: 1.2;
        margin-bottom: 9px;
    }

    .answer-line {
        height: 7px;
        margin-top: 7px;
    }

    .mini-card {
        position: absolute;
        width: auto;
        max-width: min(252px, 76vw);
        min-height: 40px;
        margin-top: 0;
        padding: 0 14px;
        gap: 9px;
        font-size: 12px;
        white-space: nowrap;
    }

    .mini-icon {
        width: 26px;
        height: 26px;
    }

    .mini-card-left {
        left: clamp(-10px, -2.4vw, -4px);
        bottom: clamp(42px, 11vw, 66px);
        transform: rotate(-4deg);
    }

    .mini-card-right {
        left: clamp(92px, 32vw, 126px);
        right: auto;
        top: clamp(18px, 6vw, 34px);
        transform: rotate(3deg);
    }

    .section {
        padding: 58px 0;
    }

    .screenshots {
        padding-top: 46px;
        padding-bottom: 40px;
    }

    .screenshots .section-heading {
        margin-bottom: 0;
    }

    .preview-carousel {
        min-height: clamp(350px, 100vw, 410px);
        margin-top: 22px;
        overflow: visible;
        contain: layout;
    }

    .preview-shot {
        width: min(704px, calc(100vw - 56px));
    }

    .preview-shot:not(.is-front) {
        display: none;
    }

    .preview-shot-a {
        --stack-x: -156px;
        --stack-y: 10px;
        --stack-scale: 0.78;
    }

    .preview-shot-b {
        --stack-x: -78px;
        --stack-y: -10px;
        --stack-scale: 0.86;
    }

    .preview-shot-c {
        --stack-x: 78px;
        --stack-y: 10px;
        --stack-scale: 0.84;
    }

    .preview-shot-d {
        --stack-x: 156px;
        --stack-y: -8px;
        --stack-scale: 0.76;
    }

    .preview-shot-e {
        --stack-y: 42px;
        --stack-scale: 0.72;
    }

    .preview-shot-shell {
        border: 7px solid #2f3239;
        border-radius: 16px;
        background: #2f3239;
        box-shadow: 0 18px 42px rgba(34, 36, 42, 0.16);
    }

    .preview-shot figcaption {
        max-width: min(94vw, 340px);
        margin-top: 16px;
        padding: 10px 16px;
        font-size: 15px;
        line-height: 1.15;
        white-space: normal;
    }

    .preview-nav {
        justify-content: flex-start;
        width: 100%;
        margin-top: 12px;
        gap: 24px;
        padding: 0 2px 4px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .preview-nav::-webkit-scrollbar {
        display: none;
    }

    .preview-nav-button {
        flex: 0 0 auto;
        min-height: 36px;
        padding: 0 0 8px;
        font-size: 15px;
    }

    @media (min-width: 600px) {
        .preview-carousel {
            min-height: clamp(470px, 76vw, 590px);
        }
    }

    .scenario-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .pai-agent-visual {
        grid-template-columns: minmax(0, 1fr);
    }

    .scene-plan {
        grid-template-columns: minmax(0, 1fr);
    }

    .agent-content-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .output-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .section-heading {
        text-align: left;
    }

    .section-heading h2,
    .student-panel h2,
    .final-cta-panel h2 {
        font-size: 34px;
    }

    .scenario-card,
    .voice-card,
    .value-card,
    .student-panel,
    .pai-agent-panel,
    .final-cta-panel,
    .about-logo-card {
        padding: 24px;
        border-radius: 28px;
        transform: none;
    }

    .privacy-strip,
    .final-cta-panel,
    .footer-content {
        align-items: flex-start;
    }

    .privacy-strip {
        border-radius: 30px;
    }

    .footer {
        width: min(100% - 24px, 1180px);
        border-radius: 30px;
    }

    .footer-content {
        padding: 26px;
    }

    .footer-links {
        justify-content: flex-start;
    }

    .about-hero {
        padding: 82px 0 58px;
    }

    html[data-page="about"] .about-hero {
        padding: 68px 0 36px;
    }

    html[data-page="about"] .canvas-decor > * {
        display: none;
    }

    html[data-page="about"] .about-values,
    html[data-page="about"] .contact-section {
        padding: 34px 0;
    }

    .mobile-sticky-cta {
        display: inline-flex;
        position: fixed;
        left: 16px;
        right: 16px;
        bottom: 14px;
        z-index: 1001;
        min-height: 52px;
        width: auto;
        min-width: 0;
        max-width: none;
        border: 2px solid #22242a;
        background: #22242a;
        color: #fff;
        box-shadow: 4px 4px 0 var(--yellow);
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
        transition: opacity 0.22s ease, transform 0.22s ease;
    }

    body.mobile-cta-visible .mobile-sticky-cta {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
}

@media (max-width: 420px) {
    .container,
    .hero-container,
    .nav-container {
        width: calc(100% - 32px);
        max-width: 1180px;
    }

    .navbar .nav-container {
        width: 100%;
    }

    .hero-content,
    .hero-description,
    .student-tags {
        width: calc(100vw - 40px);
        max-width: calc(100vw - 40px);
    }

    .brand-word {
        font-size: 25px;
    }

    .eyebrow {
        max-width: 100%;
        min-height: 0;
        height: auto;
        padding-top: 8px;
        padding-bottom: 8px;
        line-height: 1.05;
        white-space: nowrap;
    }

    .language-select {
        width: 116px;
        min-width: 116px;
        max-width: 116px;
    }

    .hero-title,
    .about-hero h1 {
        font-size: 29px;
    }

    .mini-card {
        min-height: 36px;
        padding: 0 10px;
        gap: 7px;
        font-size: 11px;
    }

    .mini-icon {
        width: 22px;
        height: 22px;
    }

    .mini-card-right {
        left: clamp(76px, 28vw, 104px);
    }

    .assistant-panel {
        left: clamp(168px, 49vw, 192px);
        width: min(156px, calc(100vw - 226px));
        padding: 11px 12px;
    }

    .assistant-panel p {
        font-size: 12px;
    }

    @media (max-width: 360px) {
        .assistant-panel {
            left: clamp(146px, 48vw, 168px);
            width: min(150px, calc(100vw - 190px));
        }
    }

    .section-heading h2,
    .student-panel h2,
    .final-cta-panel h2 {
        font-size: 32px;
    }

    .voice-carousel {
        --voice-card-width: calc(100vw - 44px);
        margin-right: -12px;
        margin-left: -12px;
        padding-right: 12px;
        padding-left: 12px;
    }

    .voice-track .voice-card {
        min-height: 324px;
    }

    .voice-track .voice-card p {
        font-size: 15px;
    }

    .scenario-card h3,
    .workflow-step h3,
    .value-card h3,
    .info-content h3,
    .privacy-strip h3 {
        font-size: 19px;
    }
}

/* Multilingual typography source of truth.
   - Standalone brand lockups keep the PaiNotes brand font.
   - Product names inside sentences are ordinary localized text.
   - Non-brand English in localized text inherits the current locale context.
   - Background canvas decorations keep their fixed decorative font. */
html[lang="en"],
html[lang="fr"],
html[lang="de"],
html[lang="es"],
html[lang="pt-BR"] {
    --site-body-font: "Nunito", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --site-display-font: "Mali-SemiBold", "Nunito", "Patrick Hand", cursive;
    --site-note-font: "Patrick Hand", "Mali-SemiBold", cursive;
    --title-font: var(--site-display-font);
}

html[lang="zh-Hans"] {
    --site-body-font: ui-rounded, "SF Pro Rounded", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    --site-display-font: ui-rounded, "SF Pro Rounded", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    --site-note-font: ui-rounded, "SF Pro Rounded", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", cursive;
    --title-font: var(--site-display-font);
}

html[lang="zh-Hant"] {
    --site-body-font: "Huninn", "Yuanti TC", "STYuanti-TC", "PingFang TC", "Microsoft JhengHei UI", "Microsoft JhengHei", "Noto Sans TC", sans-serif;
    --site-display-font: "Huninn", "Yuanti TC", "STYuanti-TC", "Microsoft JhengHei UI", "Microsoft JhengHei", "Noto Sans TC", sans-serif;
    --site-note-font: "Huninn", "Yuanti TC", "STYuanti-TC", "PingFang TC", "Microsoft JhengHei UI", "Microsoft JhengHei", "Noto Sans TC", cursive;
    --title-font: var(--site-display-font);
}

html[lang="ja"] {
    --site-body-font: "Zen Maru Gothic", "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
    --site-display-font: "Zen Maru Gothic", "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
    --site-note-font: "Zen Maru Gothic", "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Sans", cursive;
    --title-font: var(--site-display-font);
}

html[lang="ko"] {
    --site-display-font: "Jua", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    --site-body-font: var(--site-display-font);
    --site-note-font: var(--site-display-font);
    --title-font: var(--site-display-font);
}

html[lang] body,
html[lang] .nav-link,
html[lang] .language-select,
html[lang] .download-btn,
html[lang] .mobile-sticky-cta,
html[lang] .app-store-button,
html[lang] .eyebrow,
html[lang] .agent-eyebrow,
html[lang] .student-tags > span,
html[lang] .student-chip-grid > span,
html[lang] .preview-nav-button,
html[lang] .question-card,
html[lang] .source-badge,
html[lang] .quiz-chip,
html[lang] .subject-pill,
html[lang] .output-list > span,
html[lang] .faq-grid summary,
html[lang] .faq-grid p,
html[lang] .footer,
html[lang] .company-card,
html[lang] .value-card,
html[lang] .info-item {
    font-family: var(--site-body-font);
}

html[lang] .pai-reply::before {
    font-family: var(--site-body-font);
}

html[lang] .hero-title,
html[lang] .about-hero h1,
html[lang] .section-heading h2,
html[lang] .student-panel h2,
html[lang] .final-cta-panel h2,
html[lang] .scenario-card h3,
html[lang] .workflow-step h3,
html[lang] .value-card h3,
html[lang] .info-content h3,
html[lang] .privacy-strip h3 {
    font-family: var(--site-display-font);
}

html[lang^="zh"] .hero-title,
html[lang^="zh"] .about-hero h1,
html[lang="ja"] .hero-title,
html[lang="ja"] .about-hero h1,
html[lang="ko"] .hero-title,
html[lang="ko"] .about-hero h1 {
    font-family: var(--site-display-font);
    line-height: 1.08;
}

html[lang="zh-Hans"] .hero-title,
html[lang="zh-Hans"] .about-hero h1,
html[lang="zh-Hant"] .hero-title,
html[lang="zh-Hant"] .about-hero h1,
html[lang="ja"] .hero-title,
html[lang="ja"] .about-hero h1,
html[lang="ko"] .hero-title,
html[lang="ko"] .about-hero h1 {
    font-weight: 400;
}

html[lang] .handwritten-formula {
    font-family: var(--site-note-font);
}

html[lang] .brand-word {
    font-family: var(--brand-font);
}

html[lang] .latin-run,
html[lang] [data-latin-font] {
    font-family: inherit;
}

html[lang] .voice-card,
html[lang] .voice-card p,
html[lang] .voice-author-text {
    font-family: var(--site-body-font);
}

html[lang^="zh"] body,
html[lang="ja"] body,
html[lang="ko"] body,
html[lang^="zh"] body :not(.brand-word),
html[lang="ja"] body :not(.brand-word),
html[lang="ko"] body :not(.brand-word) {
    font-weight: 400;
    font-synthesis-weight: none;
}

html[lang="ko"] .nav-link,
html[lang="ko"] .language-select,
html[lang="ko"] .download-btn,
html[lang="ko"] .mobile-sticky-cta,
html[lang="ko"] .app-store-button,
html[lang="ko"] .eyebrow,
html[lang="ko"] .agent-eyebrow,
html[lang="ko"] .student-tags > span,
html[lang="ko"] .student-chip-grid > span,
html[lang="ko"] .hero-title,
html[lang="ko"] .about-hero h1,
html[lang="ko"] .section-heading h2,
html[lang="ko"] .scenario-card h3,
html[lang="ko"] .workflow-step h3,
html[lang="ko"] .question-card,
html[lang="ko"] .source-badge,
html[lang="ko"] .quiz-chip,
html[lang="ko"] .subject-pill,
html[lang="ko"] .output-list > span,
html[lang="ko"] .faq-grid summary,
html[lang="ko"] .faq-grid p {
    font-weight: 400;
    font-synthesis-weight: none;
}

.language-switcher {
    display: flex;
}
