/* The public app directory and the product home share an editorial masthead. */
.studio-site {
    --studio-ink: #1d1830;
    --studio-muted: #605b6d;
    --studio-purple: #5134b4;
    --studio-paper: #f7f6f3;
    --studio-rule: #e2dfdf;
    font-optical-sizing: auto;
}
body.studio-site { background: var(--studio-paper); }
.studio-width, .studio-site .shell-nav {
    width: min(76rem, calc(100% - clamp(2.5rem, 9vw, 9rem)));
    margin-inline: auto;
}
.studio-site .shell-header { position: sticky; background: #fcfbf9; }
.studio-site .shell-nav { min-height: 4.5rem; }
.studio-site main.shell-main { padding-top: 0; }
.studio-site .shell-nav-primary > a, .studio-site .shell-nav-trigger { font-weight: 550; }
.studio-site .shell-nav-primary .is-active { color: var(--studio-purple); }
.studio-site .shell-nav-primary .is-active::before { background: var(--studio-purple); }
.studio-site .shell-button-nav { background: #38275f; color: white; border-radius: .6rem; }
.studio-site .shell-button-nav:hover { background: #4a3675; }
.studio-hero {
    position: relative; isolation: isolate; overflow: hidden;
    display: grid; align-items: center;
    background: #171328; color: #fff;
    scroll-margin-top: 5rem;
}
.studio-scene {
    position: absolute; z-index: -2; inset: 0;
    width: 100%; height: 100%; object-fit: cover; object-position: center;
}
.studio-hero::before {
    content: ""; z-index: -1; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, rgba(17, 15, 32, .94), rgba(17, 15, 32, .74) 27%, transparent 62%);
}
.studio-hero-inner { padding-block: clamp(2.5rem, 5vw, 5rem); }
.studio-hero h1 {
    margin: 0; max-width: 62%; font-size: clamp(3rem, 5.55vw, 5.55rem);
    font-weight: 610; line-height: .99; letter-spacing: -.065em; color: #fff;
    text-wrap: balance; overflow-wrap: anywhere;
}
.studio-hero h1 span { display: block; color: #ded1ff; }
.studio-hero p {
    max-width: min(28rem, 49%); margin: 1.15rem 0 0;
    font-size: clamp(1rem, 1.35vw, 1.17rem); line-height: 1.55; color: #e2dfe8;
}
.studio-hero-actions, .studio-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.15rem; }
.studio-hero-actions { margin-top: 1.6rem; }
.studio-link {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 2.75rem; width: fit-content; max-width: 100%; text-align: center;
    font-weight: 610; line-height: 1.2; text-decoration: none; overflow-wrap: anywhere;
}
.studio-link--hero, .studio-link--light, .studio-link--primary {
    border: 1px solid transparent; border-radius: .6rem; padding: .72rem 1.05rem;
}
.studio-link--hero { background: #eae2ff; color: #302146; }
.studio-link--hero:hover { background: #fff; }
.studio-link--light { color: white; border-color: #9c92b6; background: #222032a8; }
.studio-link--light:hover { background: #3b344d; }
.studio-link--primary { background: #4a31a3; color: #fff; font-size: .91rem; }
.studio-link--primary:hover { background: #382180; }
.studio-link--text, .studio-link--utility { color: var(--studio-purple); text-decoration: underline; text-underline-offset: .23em; text-decoration-color: #b7a9d8; }
.studio-link--text { font-size: .88rem; }
.studio-link--utility { font-size: .9rem; }
.studio-link--text:hover, .studio-link--utility:hover { text-decoration-color: currentColor; }
.studio-site :where(a, button, summary):focus-visible {
    outline: 3px solid #7851cb; outline-offset: 3px;
}
.studio-hero a:focus-visible { outline-color: #fff; }
.studio-catalog { padding-block: clamp(2.5rem, 4vw, 4.5rem); scroll-margin-top: 4.5rem; color: var(--studio-ink); background: var(--studio-paper); }
.studio-catalog-head { display: flex; align-items: end; justify-content: space-between; gap: .5rem 1.25rem; margin-bottom: 1.45rem; }
.studio-catalog h2 { margin: 0; font-size: clamp(1.95rem, 3.4vw, 3.35rem); font-weight: 590; line-height: 1.08; letter-spacing: -.055em; text-wrap: balance; }
.studio-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.studio-card {
    display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0;
    min-width: 0; align-self: stretch; position: relative;
    padding: 1.25rem 1.4rem 0; background: #fff;
    border: 1px solid var(--studio-rule); border-radius: 1.1rem;
    box-shadow: 0 2px 6px #28223106;
}
.studio-card-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-width: 0; }
.studio-card-head img { order: 2; width: clamp(3.75rem, 5.5vw, 5.1rem); height: auto; aspect-ratio: 1; object-fit: contain; }
.studio-card h3 { margin: 0; font-size: clamp(1.25rem, 1.9vw, 1.65rem); line-height: 1.12; color: var(--studio-ink); letter-spacing: -.043em; font-weight: 630; overflow-wrap: anywhere; }
.studio-beta { display: inline-block; margin-top: .32rem; padding: .18rem .46rem; border-radius: .28rem; color: #744106; background: #fff1d2; font-size: .75rem; line-height: 1.15; font-weight: 650; }
.studio-desc { margin: .2rem 0 1rem; color: var(--studio-muted); font-size: 1rem; line-height: 1.45; }
.studio-card-actions { align-self: end; margin-bottom: .95rem; gap: .25rem .8rem; }
.studio-card-foot {
    align-self: end; border-top: 1px solid var(--studio-rule);
    display: flex; align-items: start; flex-wrap: wrap; gap: 0 .4rem;
    min-height: 2.85rem; padding-block: .45rem;
    color: var(--studio-muted); font-size: .8rem; line-height: 1.4;
}
.studio-format { padding-block: .3rem; margin-inline-end: auto; }
.studio-details { display: contents; }
.studio-details summary { padding: .3rem 0; cursor: pointer; color: #4e4565; font-weight: 560; }
.studio-details summary:hover { color: var(--studio-purple); }
.studio-details div { flex-basis: 100%; font-size: .92rem; color: #474250; }
.studio-details p { margin: .45rem 0; }
.studio-site .shell-main > .shell-section { padding-top: clamp(2.75rem, 5vw, 5.5rem); }
.studio-site .shell-main > .shell-section .shell-page-title { letter-spacing: -.045em; }
.studio-site .shell-main > .shell-section > .shell-container { max-width: 76rem; }
.studio-site .shell-main > .shell-section:first-of-type + .shell-section { border-top: 1px solid var(--studio-rule); }
html[dir=rtl] .studio-hero .studio-scene { transform: scaleX(-1); }
html[dir=rtl] .studio-hero::before { transform: scaleX(-1); }
html[dir=rtl] :is(.studio-hero h1, .studio-catalog h2, .studio-card h3) { letter-spacing: normal; line-height: 1.28; }
html[lang=ja] :is(.studio-hero h1, .studio-catalog h2, .studio-card h3) { letter-spacing: -.035em; line-height: 1.14; }
@supports not (grid-template-rows: subgrid) {
    .studio-card { grid-row: auto; grid-template-rows: auto 1fr auto auto; }
}
@media (max-width: 1050px) {
    .studio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .studio-site .shell-nav { min-height: 3.85rem; }
    .studio-site .shell-nav-links { top: 4.05rem; }
}
@media (max-width: 700px) {
    .studio-width, .studio-site .shell-nav { width: calc(100% - 2.5rem); }
    .studio-hero { display: flex; flex-direction: column-reverse; align-items: stretch; }
    .studio-scene { position: relative; z-index: 0; width: 100%; height: clamp(9rem, 42vw, 15rem); object-position: 70% 68%; }
    .studio-hero::before { display: none; }
    .studio-hero-inner { padding: 2.05rem 0 1.25rem; }
    .studio-hero h1 { max-width: 100%; font-size: clamp(2.75rem, 9.2vw, 4.1rem); }
    .studio-hero p { max-width: 33rem; margin-top: .86rem; }
    .studio-hero-actions { margin-top: 1.15rem; }
    .studio-catalog { padding-block: 2rem; scroll-margin-top: 3.85rem; }
    .studio-catalog-head { display: block; margin-bottom: 1rem; }
    .studio-link--utility { min-height: 2.2rem; margin-top: .15rem; }
}
@media (max-width: 535px) {
    .studio-grid { grid-template-columns: minmax(0, 1fr); gap: .8rem; }
    .studio-card { padding: .8rem 1.15rem 0; }
    .studio-card-head img { width: 4.35rem; }
    .studio-desc { margin-top: -.1rem; margin-bottom: .75rem; }
    .studio-card h3 { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
    html:has(.studio-site) { scroll-behavior: auto; }
}
/* Keep the legacy decorative glows inside their homepage section. */
.studio-site .shell-home-feature-zone { overflow: clip; }
@media (max-width: 900px) {
    /* The static header still exposes sign-in and registration before enhancement. */
    .studio-site .shell-nav-links:not(:has(.shell-nav-primary)) {
        position: static; display: flex; flex-direction: row; justify-content: flex-end;
        padding: 0; border: 0; background: none; box-shadow: none;
    }
    .studio-site .shell-nav-links:not(:has(.shell-nav-primary)) > :not(.shell-nav-actions),
    .studio-site .shell-nav:not(:has(.shell-nav-primary)) .shell-mobile-toggle { display: none; }
    .studio-site .shell-nav-links:not(:has(.shell-nav-primary)) .shell-nav-actions { display: flex; width: auto; }
}
@media (max-width: 700px) {
    .studio-site #integrations .shell-integrations-layout { grid-template-columns: minmax(0, 1fr); }
    .studio-site #integrations .shell-integrations-accent { min-width: 0; grid-template-columns: minmax(0, 1fr); }
}
