/* Shared base for the product-style landing pages (AI Math, Community Art). */

:root {
    --pl-white: #ffffff;
    --pl-radius: 24px;
}

html {
    scroll-behavior: smooth;
}

.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(--pl-white) !important;
    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(--pl-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: 10px;
    color: inherit;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -.03em;
    text-decoration: none;
    white-space: nowrap;
}

.brand-mark {
    width: 28px;
    height: 28px;
    display: inline-block;
    flex: none;
    background: url("/img/logo.svg") center / contain no-repeat;
}

.brand-mark span {
    display: none;
}

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

.product-nav-links a {
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
}

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

.product-nav-links .nav-download {
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--pl-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(--pl-white);
}

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

.hero-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hero-orb-two {
    bottom: -220px;
}

.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;
    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-radius: 13px;
    color: var(--pl-white);
}

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

.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;
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-lead {
    margin: 0;
    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(--pl-white) !important;
    background: rgba(255,255,255,.1);
    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);
}

.apple-symbol {
    position: relative;
    width: 28px;
    color: var(--pl-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 {
    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;
    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%;
    filter: blur(48px);
}

.phone-frame {
    position: relative;
    width: 345px;
    height: 694px;
    padding: 10px;
    border: 1px solid rgba(255,255,255,.38);
    border-radius: 54px;
    transform: rotate(3deg);
}

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

.phone-top span {
    position: absolute;
    top: 9px;
    right: 12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.phone-screen {
    height: 100%;
    overflow: hidden;
    border-radius: 44px;
    color: var(--pl-ink);
}

.phone-status {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    font-weight: 800;
}

.phone-status span:last-child {
    font-size: 7px;
    letter-spacing: 2px;
}

.proof-strip {
    border-bottom: 1px solid var(--pl-line);
    background: var(--pl-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(--pl-line);
    font-size: 13px;
}

.proof-grid div:first-child {
    border-left: 1px solid var(--pl-line);
}

.proof-grid span {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    font-size: 15px;
}

.section {
    padding: 128px 0;
}

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

.eyebrow {
    margin: 0 0 17px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.section-heading > p:last-child {
    max-width: 600px;
    margin: 22px auto 0;
    color: var(--pl-copy);
    font-size: 17px;
    line-height: 1.7;
}

.steps-section {
    background: var(--pl-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(--pl-line);
    border-radius: var(--pl-radius);
}

.step-index {
    display: inline-block;
    margin-bottom: 25px;
    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(--pl-copy);
    font-size: 14px;
    line-height: 1.7;
}

.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;
    font-size: 14px;
}

.check-list span {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    font-size: 10px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
}

.feature-bento {
    position: relative;
    overflow: hidden;
    padding: 30px;
    border: 1px solid var(--pl-line);
    border-radius: var(--pl-radius);
    background: var(--pl-white);
}

.feature-bento h3 {
    margin: 16px 0 10px;
    font-size: 24px;
    letter-spacing: -.035em;
}

.feature-bento p {
    max-width: 430px;
    margin: 0;
    color: var(--pl-copy);
    font-size: 14px;
    line-height: 1.7;
}

.feature-number {
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .12em;
}

.feature-wide {
    display: grid;
    grid-column: span 4;
    gap: 30px;
    align-items: center;
}

.faq-section {
    background: var(--pl-paper);
}

.faq-layout {
    display: grid;
    grid-template-columns: .65fr 1fr;
    gap: 100px;
    align-items: start;
}

.faq-intro {
    margin-top: 24px;
    color: var(--pl-copy);
    font-size: 14px;
}

.faq-intro a {
    font-weight: 700;
    text-underline-offset: 3px;
}

.faq-list {
    border-top: 1px solid var(--pl-line);
}

.faq-list details {
    border-bottom: 1px solid var(--pl-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 {
    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(--pl-copy);
    font-size: 14px;
    line-height: 1.75;
}

.final-cta {
    position: relative;
    overflow: hidden;
    padding: 128px 0;
    color: var(--pl-white);
    text-align: center;
}

.final-cta::before {
    content: "";
    position: absolute;
    inset: 0;
}

.final-orb {
    position: absolute;
    top: -320px;
    left: 50%;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    transform: translateX(-50%);
}

.final-cta-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.app-store-button.light {
    color: var(--pl-ink) !important;
    background: var(--pl-white);
}

.app-store-button.light .apple-symbol {
    color: var(--pl-ink);
}

.product-footer {
    margin: 0;
    padding: 62px 0 28px;
    color: var(--pl-white);
    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 {
    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);
    font-size: 11px;
}

.legal-hero-modern {
    padding: 84px 0 58px;
    border-bottom: 1px solid var(--pl-line);
}

.legal-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    font-size: 12px;
}

.legal-breadcrumb a {
    font-weight: 700;
    text-decoration: none;
}

.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;
    font-size: 13px;
}

.legal-meta .legal-pill {
    padding: 7px 10px;
    border-radius: 999px;
    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;
    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(--pl-line);
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
    transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

.legal-document-modern {
    min-width: 0;
}

.legal-summary {
    margin-bottom: 50px;
    padding: 24px 26px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.7;
}

.legal-summary strong {
    color: var(--pl-ink);
}

.legal-document-modern section {
    scroll-margin-top: 105px;
    margin-bottom: 44px;
}

.legal-document-modern h2 {
    margin: 0 0 14px;
    color: var(--pl-ink);
    font-size: 24px;
    letter-spacing: -.025em;
    line-height: 1.25;
}

.legal-document-modern p,
.legal-document-modern li {
    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 a:not(.legal-button) {
    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(--pl-line);
}

.legal-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 17px;
    border: 1px solid var(--pl-line);
    border-radius: 12px;
    color: var(--pl-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(--pl-ink);
    background: var(--pl-ink);
}

.legal-button:hover {
    transform: translateY(-1px);
}

@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;
    }

    .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(--pl-line);
    }

    .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);
    }

    .section {
        padding: 88px 0;
    }

    .section-heading {
        margin-bottom: 44px;
    }

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

    .step-card {
        max-width: 560px;
        margin-inline: auto;
    }

    .feature-bento {
        min-height: auto;
    }

    .feature-wide {
        grid-template-columns: 1fr;
    }

    .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(--pl-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-actions {
        flex-direction: column;
        gap: 18px;
    }

    .hero-product {
        min-height: 565px;
    }

    .phone-frame {
        width: 278px;
        height: 558px;
        border-radius: 46px;
    }

    .phone-screen {
        border-radius: 37px;
    }

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

    .proof-grid div {
        justify-content: flex-start;
        min-height: 68px;
        border-right: 0;
        border-bottom: 1px solid var(--pl-line);
    }

    .proof-grid div:first-child {
        border-left: 0;
    }

    .proof-grid div:last-child {
        border-bottom: 0;
    }

    .section-heading > p:last-child {
        font-size: 15px;
    }

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

    .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 {
    .legal-hero-modern {
        padding: 0 0 25px;
        background: white;
    }

    .legal-layout {
        display: block;
        padding: 30px 0;
    }

    .legal-document-modern section {
        break-inside: avoid;
    }
}
