/* Shana clean-studio: quiet editorial surfaces, product-first conversion paths. */
:root {
    --studio-navy: #0f172a;
    --studio-teal: #14b8a6;
    --studio-blue: #3b82f6;
    --studio-ink: #172033;
    --studio-muted: #64748b;
    --studio-line: #dbe6ee;
    --studio-paper: #f8fafc;
    --studio-white: #ffffff;
    --studio-shadow: 0 18px 48px rgba(15, 23, 42, 0.1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    color-scheme: light;
    scroll-behavior: smooth;
}

body {
    min-width: 0;
    margin: 0;
    overflow-x: hidden;
    background: var(--surface, var(--studio-paper));
    color: var(--text, var(--studio-navy));
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 1.7;
    text-rendering: optimizeLegibility;
}

img,
svg,
video,
canvas,
iframe {
    display: block;
    max-inline-size: 100%;
}

img {
    block-size: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

:focus-visible {
    outline: 3px solid var(--studio-blue);
    outline-offset: 3px;
}

.container {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

.narrow {
    width: min(800px, calc(100% - 48px));
}

.skip-link {
    position: fixed;
    z-index: 1000;
    inset: 10px auto auto 10px;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--studio-white);
    color: var(--studio-navy);
    box-shadow: var(--studio-shadow);
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

/* Header and navigation */
.site-header {
    position: sticky;
    z-index: 50;
    top: 0;
    border-bottom: 1px solid var(--border, var(--studio-line));
    background: rgba(248, 250, 252, 0.92);
    backdrop-filter: blur(16px);
}

.header-inner {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: inline-flex;
    min-width: max-content;
    align-items: center;
    gap: 11px;
    color: var(--studio-navy);
}

.brand img,
.brand-mark {
    inline-size: 40px;
    block-size: 40px;
    flex: 0 0 40px;
    border-radius: 12px;
}

.brand-mark {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--studio-teal), var(--studio-blue));
    color: var(--studio-white);
    font-size: 19px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(20, 184, 166, 0.22);
}

.brand strong,
.brand small {
    display: block;
    line-height: 1.25;
}

.brand strong {
    font-size: 17px;
    letter-spacing: -0.02em;
}

.brand small {
    margin-top: 3px;
    color: var(--muted, var(--studio-muted));
    font-size: 11px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-nav a {
    position: relative;
    padding: 27px 0 24px;
    color: #334155;
    font-size: 14px;
    font-weight: 700;
}

.site-nav a::after {
    position: absolute;
    right: 0;
    bottom: 18px;
    left: 0;
    block-size: 2px;
    border-radius: 99px;
    background: var(--studio-teal);
    content: "";
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--studio-navy);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
    transform: scaleX(1);
}

.menu-toggle {
    display: none;
    inline-size: 44px;
    block-size: 42px;
    border: 1px solid var(--border, var(--studio-line));
    border-radius: 10px;
    background: var(--studio-white);
    color: var(--studio-navy);
    font-size: 22px;
    line-height: 1;
}

/* Hero: the visual is a product diagram, never character imagery. */
.hero {
    position: relative;
    isolation: isolate;
    min-block-size: 604px;
    overflow: hidden;
    background:
        radial-gradient(circle at 78% 22%, rgba(59, 130, 246, 0.26), transparent 28%),
        radial-gradient(circle at 60% 90%, rgba(20, 184, 166, 0.18), transparent 31%),
        var(--studio-navy);
}

.hero::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: url("/assets/img/shana-gateway.svg") no-repeat calc(100% + 56px) 50% / min(760px, 62vw) auto;
    content: "";
    opacity: 0.96;
}

.hero::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(90deg, var(--studio-navy) 0%, rgba(15, 23, 42, 0.98) 39%, rgba(15, 23, 42, 0.58) 64%, rgba(15, 23, 42, 0.12) 100%);
    content: "";
}

.hero-grid {
    display: flex;
    min-block-size: 604px;
    align-items: center;
}

.hero-copy {
    inline-size: min(620px, 58%);
    padding-block: 96px;
    color: var(--studio-white);
}

.hero-copy h1 {
    max-inline-size: 11.5em;
    margin: 12px 0 22px;
    font-size: clamp(2.65rem, 4.1vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.12;
    text-wrap: balance;
}

.hero-lead {
    max-inline-size: 590px;
    margin: 0;
    color: rgba(241, 245, 249, 0.84);
    font-size: 17px;
    line-height: 1.85;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.hero-badges > * {
    padding: 6px 10px;
    border: 1px solid rgba(153, 246, 228, 0.32);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.42);
    color: #ccfbf1;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
}

/* Preserve the view's image markup but keep the clean-studio hero asset-only. */
.hero-media {
    display: none;
}

.eyebrow,
.studio-kicker {
    margin: 0 0 10px;
    color: var(--studio-teal);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.4;
    text-transform: uppercase;
}

.hero .eyebrow,
.hero .studio-kicker {
    color: #6ee7d9;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    min-block-size: 48px;
    align-items: center;
    justify-content: center;
    padding: 11px 20px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.2;
    transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    border-color: var(--studio-teal);
    background: var(--studio-teal);
    color: #062a2d;
    box-shadow: 0 10px 20px rgba(20, 184, 166, 0.22);
}

.button-primary:hover {
    border-color: #2dd4bf;
    background: #2dd4bf;
}

.button-secondary {
    border-color: #94a3b8;
    background: transparent;
    color: inherit;
}

.hero .button-secondary,
.closing-cta .button-secondary {
    border-color: rgba(226, 232, 240, 0.62);
    color: var(--studio-white);
}

/* Shared editorial modules */
.section {
    padding-block: 96px;
}

.section-tint {
    border-block: 1px solid var(--border, var(--studio-line));
    background: #f1f7f8;
}

.section-heading {
    max-inline-size: 710px;
    margin: 0 auto 44px;
    text-align: center;
}

.section-heading h2,
.split-heading h2,
.closing-inner h2,
.page-hero h1 {
    margin: 0;
    color: var(--studio-navy);
    font-size: clamp(2rem, 3vw, 2.7rem);
    letter-spacing: -0.035em;
    line-height: 1.2;
    text-wrap: balance;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.feature-card,
.article-card,
.gateway-panel,
.code-card,
.screen-frame {
    min-inline-size: 0;
    border: 1px solid var(--border, var(--studio-line));
    border-radius: 16px;
    background: var(--surface-strong, var(--studio-white));
}

.feature-card {
    min-block-size: 232px;
    padding: 28px 25px;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.feature-card:hover {
    border-color: rgba(20, 184, 166, 0.58);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.07);
    transform: translateY(-2px);
}

.feature-index {
    display: inline-grid;
    inline-size: 30px;
    block-size: 24px;
    place-items: center;
    border-radius: 999px;
    background: #e6fffb;
    color: #0f766e;
    font-size: 11px;
    font-weight: 800;
}

.feature-card h3 {
    margin: 32px 0 10px;
    color: var(--studio-navy);
    font-size: 19px;
    line-height: 1.4;
}

.feature-card p,
.article-card p,
.content-row p,
.side-panel p,
.page-hero p {
    color: var(--muted, var(--studio-muted));
}

.feature-card p {
    margin: 0;
    font-size: 14px;
}

/* Home-page quick links, onboarding flow, and guide cases. */
.quick-grid,
.process-grid,
.case-grid,
.screenshot-grid {
    display: grid;
    gap: 16px;
}

.quick-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quick-card {
    position: relative;
    display: flex;
    min-inline-size: 0;
    min-block-size: 166px;
    flex-direction: column;
    padding: 23px;
    border: 1px solid var(--border, var(--studio-line));
    border-radius: 14px;
    background: var(--surface-strong, var(--studio-white));
    color: var(--studio-navy);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.quick-card::after {
    position: absolute;
    inset: auto 22px 20px auto;
    color: var(--studio-teal);
    content: "→";
    font-size: 20px;
    font-weight: 700;
    transition: transform 160ms ease;
}

.quick-card:hover,
.quick-card:focus-visible {
    border-color: rgba(20, 184, 166, 0.62);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.quick-card:hover::after,
.quick-card:focus-visible::after {
    transform: translateX(3px);
}

.quick-card h3,
.case-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.4;
}

.quick-card p,
.case-card p {
    margin: 0;
    color: var(--muted, var(--studio-muted));
    font-size: 14px;
}

.process-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    counter-reset: onboarding-step;
}

.process-step {
    position: relative;
    min-inline-size: 0;
    padding: 28px;
    border-radius: 16px;
    background: #f1f7f8;
    counter-increment: onboarding-step;
}

.process-step::before {
    display: grid;
    inline-size: 34px;
    block-size: 34px;
    place-items: center;
    margin-bottom: 26px;
    border-radius: 50%;
    background: var(--studio-navy);
    color: #ccfbf1;
    content: "0" counter(onboarding-step);
    font-size: 12px;
    font-weight: 800;
}

.process-step:not(:last-child)::after {
    position: absolute;
    z-index: 1;
    inset: 43px -18px auto auto;
    inline-size: 20px;
    block-size: 20px;
    border-top: 2px solid var(--studio-teal);
    border-right: 2px solid var(--studio-teal);
    content: "";
    transform: rotate(45deg);
}

.process-step h3 {
    margin: 0 0 9px;
    color: var(--studio-navy);
    font-size: 19px;
    line-height: 1.4;
}

.process-step p {
    margin: 0;
    color: var(--muted, var(--studio-muted));
    font-size: 14px;
}

.case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.case-card {
    min-inline-size: 0;
    padding: 28px;
    border: 1px solid var(--border, var(--studio-line));
    border-radius: 16px;
    background: var(--surface-strong, var(--studio-white));
}

.case-card > :first-child:not(h3) {
    color: #0f766e;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.split-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 38px;
}

.text-link {
    color: #0f766e;
    font-size: 14px;
    font-weight: 750;
    text-underline-offset: 4px;
}

.text-link:hover,
.text-link:focus-visible {
    color: var(--studio-blue);
    text-decoration: underline;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.article-card {
    display: flex;
    min-block-size: 278px;
    flex-direction: column;
    padding: 27px;
}

.article-date {
    margin: 0;
    color: #0f766e;
    font-size: 12px;
    font-weight: 750;
}

.article-card h3 {
    margin: 26px 0 10px;
    color: var(--studio-navy);
    font-size: 20px;
    line-height: 1.42;
}

.article-card p {
    margin: 0 0 18px;
    font-size: 14px;
}

.article-card .text-link {
    margin-top: auto;
}

/* FAQ semantics are controlled by site.js through aria-expanded and [hidden]. */
.faq-list {
    border-top: 1px solid var(--border, var(--studio-line));
}

.faq-item {
    border-bottom: 1px solid var(--border, var(--studio-line));
}

.faq-item h3 {
    margin: 0;
}

.faq-item button {
    display: flex;
    inline-size: 100%;
    min-block-size: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
    border: 0;
    background: transparent;
    color: var(--studio-navy);
    text-align: left;
    font-size: 17px;
    font-weight: 750;
}

.faq-item button span:last-child {
    display: grid;
    inline-size: 28px;
    block-size: 28px;
    flex: 0 0 28px;
    place-items: center;
    border-radius: 50%;
    background: #e6fffb;
    color: #0f766e;
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.faq-answer {
    padding: 0 54px 25px 0;
    color: var(--muted, var(--studio-muted));
}

.faq-answer[hidden] {
    display: none;
}

.faq-answer p {
    margin: 0 0 8px;
}

.faq-answer a {
    color: #0f766e;
    font-weight: 750;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.faq-item.is-open button span:last-child {
    background: var(--studio-teal);
    color: #062a2d;
    transform: rotate(45deg);
}

.closing-cta {
    padding-block: 74px;
    background:
        radial-gradient(circle at 78% 50%, rgba(59, 130, 246, 0.28), transparent 30%),
        var(--studio-navy);
    color: var(--studio-white);
}

.closing-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 42px;
}

.closing-inner h2 {
    max-inline-size: 660px;
    color: var(--studio-white);
}

.closing-inner .cta-row {
    margin: 0;
}

/* Content and static pages */
.page-hero {
    padding-block: 88px 76px;
    border-bottom: 1px solid var(--border, var(--studio-line));
    background: linear-gradient(120deg, #ecfeff, var(--surface, var(--studio-paper)) 55%);
}

.page-hero p {
    max-inline-size: 720px;
    margin: 15px 0 0;
}

.detail-heading h1 {
    max-inline-size: 20em;
}

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 820px) minmax(220px, 280px);
    gap: 52px;
    align-items: start;
}

.content-list {
    border-top: 1px solid var(--border, var(--studio-line));
}

.content-row {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 24px;
    padding-block: 30px;
    border-bottom: 1px solid var(--border, var(--studio-line));
}

.content-row time {
    color: #0f766e;
    font-size: 13px;
    font-weight: 750;
}

.content-row h2 {
    margin: 0 0 8px;
    color: var(--studio-navy);
    font-size: 23px;
    line-height: 1.4;
}

.content-row p {
    margin: 0;
}

.side-panel {
    padding: 25px 0 25px 22px;
    border-left: 3px solid var(--studio-teal);
}

.side-panel h2 {
    margin: 0 0 12px;
    color: var(--studio-navy);
    font-size: 21px;
}

.side-panel > a {
    display: block;
    padding-block: 9px;
    border-bottom: 1px solid var(--border, var(--studio-line));
    color: #334155;
    font-size: 14px;
    font-weight: 700;
}

.side-panel .cta-row {
    flex-direction: column;
}

.side-panel .button {
    inline-size: 100%;
}

.prose {
    min-inline-size: 0;
    color: #243247;
    font-size: 17px;
    line-height: 1.9;
}

.prose h2 {
    margin: 44px 0 14px;
    color: var(--studio-navy);
    font-size: 27px;
    line-height: 1.4;
}

.prose h3 {
    margin: 32px 0 12px;
    color: var(--studio-navy);
    font-size: 21px;
    line-height: 1.4;
}

.prose p,
.prose ul,
.prose ol,
.prose blockquote {
    margin: 0 0 20px;
}

.prose a {
    color: #0f766e;
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
}

.prose img,
.prose video,
.prose iframe {
    max-inline-size: 100%;
    block-size: auto;
    margin: 28px auto;
    border-radius: 12px;
}

/* Future guide markup: safe code and screenshot containers that never widen a page. */
pre,
.code-block,
.code-card,
.code-shell,
.screen-frame,
.screenshot-frame,
[data-code-block],
[data-screenshot] {
    min-inline-size: 0;
    max-inline-size: 100%;
}

pre,
.code-block pre,
.code-card pre,
.code-shell pre {
    max-inline-size: 100%;
    overflow: auto;
    overscroll-behavior-inline: contain;
    padding: 18px 20px;
    border: 1px solid #1e293b;
    border-radius: 12px;
    background: #0b1220;
    color: #e2e8f0;
    font: 13px/1.7 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    tab-size: 2;
    white-space: pre;
}

code {
    overflow-wrap: anywhere;
}

pre code,
.code-block code,
.code-card code,
.code-shell code {
    overflow-wrap: normal;
}

.code-card,
.code-shell,
.screen-frame,
.screenshot-frame,
[data-code-block],
[data-screenshot] {
    overflow: hidden;
}

.code-shell {
    margin: 28px 0;
    border: 1px solid #1e293b;
    border-radius: 12px;
    background: #0b1220;
}

.code-shell pre {
    margin: 0;
    border: 0;
    border-radius: 0;
}

.code-card__header,
.code-block__header,
.code-shell__header,
.screen-frame__header {
    display: flex;
    min-inline-size: 0;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--border, var(--studio-line));
    background: #f8fafc;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}

.copy-code,
[data-copy-code],
.copy-button {
    display: inline-flex;
    min-block-size: 34px;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: var(--studio-white);
    color: #334155;
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
}

.copy-code:hover,
[data-copy-code]:hover,
.copy-button:hover {
    border-color: var(--studio-teal);
    color: #0f766e;
}

.copy-code.is-copied,
[data-copy-code].is-copied,
.copy-button.is-copied {
    border-color: var(--studio-teal);
    background: #ccfbf1;
    color: #0f766e;
}

.copy-status {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.screen-frame img,
.screenshot-frame img,
[data-screenshot] img {
    inline-size: 100%;
    max-inline-size: 100%;
    block-size: auto;
    margin: 0;
    border-radius: 0;
}

.screenshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.screenshot-card {
    min-inline-size: 0;
    overflow: hidden;
    border: 1px solid var(--border, var(--studio-line));
    border-radius: 16px;
    background: var(--surface-strong, var(--studio-white));
}

.screenshot-card img {
    inline-size: 100%;
    max-inline-size: 100%;
    block-size: auto;
    margin: 0;
    border-radius: 0;
}

.screenshot-card figcaption,
.screenshot-card__caption {
    padding: 13px 16px;
    color: var(--muted, var(--studio-muted));
    font-size: 13px;
}

.verified-note,
.notice {
    position: relative;
    padding: 16px 18px 16px 20px;
    border: 1px solid #99f6e4;
    border-radius: 12px;
    background: #f0fdfa;
    color: #134e4a;
    font-size: 14px;
}

.verified-note::before,
.notice::before {
    position: absolute;
    inset: 14px auto 14px 0;
    inline-size: 3px;
    border-radius: 0 99px 99px 0;
    background: var(--studio-teal);
    content: "";
}

.source-list {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.source-list a {
    color: #0f766e;
    text-decoration: underline;
    text-decoration-color: rgba(15, 118, 110, 0.35);
    text-underline-offset: 3px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 0 16px;
    padding: 0;
    color: var(--muted, var(--studio-muted));
    font-size: 13px;
    list-style: none;
}

.breadcrumb > * + *::before {
    margin-right: 7px;
    color: #94a3b8;
    content: "/";
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
    color: #0f766e;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin: 16px 0 0;
    color: var(--muted, var(--studio-muted));
    font-size: 13px;
}

.article-meta > * + * {
    padding-left: 16px;
    border-left: 1px solid var(--border, var(--studio-line));
}

.gateway-panel {
    padding: clamp(20px, 3vw, 36px);
    box-shadow: var(--studio-shadow);
}

.gateway-panel__visual {
    inline-size: 100%;
    max-inline-size: 100%;
    margin-inline: auto;
}

.empty-state {
    padding-block: 42px;
    color: var(--muted, var(--studio-muted));
}

.not-found {
    display: grid;
    min-block-size: 62vh;
    place-items: center;
    padding-block: 70px;
    text-align: center;
}

.not-found h1 {
    margin: 0 0 12px;
    color: var(--studio-navy);
    font-size: 38px;
}

.not-found p:not(.eyebrow) {
    margin: 0 0 28px;
    color: var(--muted, var(--studio-muted));
}

/* Footer */
.site-footer {
    padding: 58px 0 22px;
    border-top: 1px solid #1e293b;
    background: var(--studio-navy);
    color: var(--studio-white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 50px;
}

.footer-grid strong {
    font-size: 20px;
}

.footer-grid p {
    max-inline-size: 620px;
    margin: 10px 0 0;
    color: rgba(226, 232, 240, 0.7);
}

.footer-grid nav {
    display: flex;
    align-items: start;
    gap: 24px;
    color: rgba(241, 245, 249, 0.82);
    font-size: 14px;
}

.footer-grid nav a:hover,
.footer-grid nav a:focus-visible {
    color: #5eead4;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 38px;
    padding-top: 18px;
    border-top: 1px solid rgba(226, 232, 240, 0.16);
    color: rgba(226, 232, 240, 0.58);
    font-size: 12px;
}

/* Optional static counterpart to the JS-generated mobile CTA. */
.mobile-entry-cta,
.mobile-cta {
    display: none;
}

@media (max-width: 980px) {
    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .article-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .quick-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .content-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 42px;
    }

    .side-panel {
        max-inline-size: 680px;
    }
}

@media (max-width: 760px) {
    body {
        padding-bottom: calc(82px + env(safe-area-inset-bottom));
        font-size: 15px;
    }

    .container,
    .narrow {
        width: min(100% - 32px, 720px);
    }

    .site-header,
    .header-inner {
        min-block-size: 66px;
    }

    .brand img,
    .brand-mark {
        inline-size: 38px;
        block-size: 38px;
        flex-basis: 38px;
    }

    .brand strong {
        font-size: 16px;
    }

    .brand small {
        display: none;
    }

    .menu-toggle {
        display: grid;
        place-items: center;
    }

    .site-nav {
        position: fixed;
        z-index: 49;
        inset: 66px 0 auto;
        display: none;
        max-block-size: calc(100dvh - 66px);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        overflow-y: auto;
        border-bottom: 1px solid var(--border, var(--studio-line));
        background: rgba(248, 250, 252, 0.98);
        box-shadow: 0 18px 30px rgba(15, 23, 42, 0.1);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        min-block-size: 56px;
        padding: 17px 20px;
        border-top: 1px solid var(--border, var(--studio-line));
    }

    .site-nav a::after {
        display: none;
    }

    .hero,
    .hero-grid {
        /* Keep the persistent CTA over the decorative Hero floor, not the
           following Quick Start copy, at the supported mobile viewports. */
        min-block-size: max(590px, calc(100svh - 66px));
    }

    .hero::before {
        inset: 38% -80px -4% 10%;
        background-position: 100% 100%;
        background-size: min(600px, 150vw) auto;
        opacity: 0.48;
    }

    .hero::after {
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.96) 0%, rgba(15, 23, 42, 0.9) 55%, rgba(15, 23, 42, 0.78) 100%);
    }

    .hero-copy {
        inline-size: 100%;
        padding-block: 70px 148px;
    }

    .hero-copy h1 {
        max-inline-size: 9.5em;
        font-size: clamp(2.25rem, 10.5vw, 3.2rem);
    }

    .hero-lead {
        max-inline-size: 34em;
        font-size: 16px;
    }

    .section {
        padding-block: 68px;
    }

    .section-heading {
        margin-bottom: 34px;
    }

    .section-heading h2,
    .split-heading h2,
    .closing-inner h2,
    .page-hero h1,
    .detail-heading h1 {
        font-size: 29px;
    }

    .feature-grid,
    .article-grid,
    .quick-grid,
    .process-grid,
    .case-grid,
    .screenshot-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .process-step:not(:last-child)::after {
        inset: auto auto -20px 34px;
        transform: rotate(135deg);
    }

    .feature-card,
    .article-card {
        min-block-size: 0;
    }

    .feature-card h3 {
        margin-top: 24px;
    }

    .split-heading,
    .closing-inner,
    .footer-bottom {
        align-items: start;
        flex-direction: column;
    }

    .split-heading,
    .closing-inner {
        display: flex;
    }

    .closing-inner .cta-row {
        inline-size: 100%;
    }

    .closing-inner .button {
        flex: 1 1 144px;
    }

    .page-hero {
        padding-block: 60px 54px;
    }

    .content-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
        padding-block: 24px;
    }

    .content-row h2 {
        font-size: 21px;
    }

    .prose {
        font-size: 16px;
        line-height: 1.85;
    }

    .prose h2 {
        font-size: 25px;
    }

    .faq-answer {
        padding-right: 8px;
    }

    .footer-grid {
        display: flex;
        flex-direction: column;
        gap: 32px;
    }

    .footer-grid nav {
        flex-wrap: wrap;
    }

    .footer-bottom {
        display: flex;
    }

    .mobile-entry-cta {
        position: fixed;
        z-index: 60;
        right: 16px;
        bottom: calc(12px + env(safe-area-inset-bottom));
        left: 16px;
        display: block;
        padding: 7px;
        border: 1px solid rgba(148, 163, 184, 0.45);
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.92);
        box-shadow: 0 14px 32px rgba(15, 23, 42, 0.2);
        backdrop-filter: blur(16px);
    }

    .mobile-cta {
        position: fixed;
        z-index: 60;
        right: 16px;
        bottom: calc(12px + env(safe-area-inset-bottom));
        left: 16px;
        display: flex;
        min-block-size: 62px;
        align-items: center;
        justify-content: center;
        padding: 7px;
        border: 1px solid rgba(148, 163, 184, 0.45);
        border-radius: 14px;
        background: var(--studio-teal);
        box-shadow: 0 14px 32px rgba(15, 23, 42, 0.2);
        color: #062a2d;
        font-size: 15px;
        font-weight: 800;
    }

    .mobile-entry-cta__link {
        display: flex;
        min-block-size: 48px;
        align-items: center;
        justify-content: center;
        border-radius: 9px;
        background: var(--studio-teal);
        color: #062a2d;
        font-size: 15px;
        font-weight: 800;
    }

    .mobile-entry-cta__link:hover {
        background: #2dd4bf;
    }

    .mobile-cta:hover {
        background: #2dd4bf;
    }
}

@media (max-width: 420px) {
    .container,
    .narrow {
        width: min(100% - 28px, 720px);
    }

    .cta-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .button {
        inline-size: 100%;
    }

    .faq-item button {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* View-specific refinements for the Shana acquisition pages. */
.site-nav .nav-cta {
    min-block-size: 40px;
    padding: 9px 16px;
    color: #062a2d;
}

.site-nav .nav-cta::after {
    display: none;
}

.button-small {
    min-block-size: 40px;
    padding: 9px 16px;
    font-size: 13px;
}

.flow-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.55fr);
    align-items: center;
    gap: clamp(34px, 6vw, 76px);
}

.flow-layout .section-heading {
    margin: 0;
    text-align: left;
}

.flow-layout .section-heading > p:not(.eyebrow) {
    color: var(--studio-muted);
}

.card-kicker,
.article-card-meta,
.content-row-meta,
.intent-line {
    color: var(--studio-muted);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.04em;
}

.card-kicker {
    color: #0f766e;
    text-transform: uppercase;
}

.case-number {
    display: grid;
    inline-size: 38px;
    block-size: 38px;
    place-items: center;
    border-radius: 11px;
    background: #dff8f3;
    color: #0f766e;
    font-weight: 850;
}

.article-card-meta,
.content-row-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 14px;
    margin-bottom: 14px;
}

.article-card-meta span,
.content-row-meta span {
    color: #0f766e;
}

.content-row {
    display: block;
}

.content-row .intent-line {
    margin-top: 12px;
}

.section-action {
    margin: 30px 0 0;
    text-align: center;
}

.detail-lead {
    max-inline-size: 720px;
    margin: 20px auto 0;
    color: #475569;
    font-size: 18px;
}

.source-section,
.article-cta {
    margin-top: 48px;
    padding-top: 30px;
    border-top: 1px solid var(--studio-line);
}

.article-cta {
    padding: clamp(24px, 4vw, 36px);
    border: 1px solid #b8e8e2;
    border-radius: 20px;
    background: linear-gradient(135deg, #effcf9, #eff6ff);
}

.article-cta h2 {
    margin-top: 4px;
}

.article-cta .button {
    margin-top: 8px;
}

.mini-steps {
    margin: 0 0 22px;
    padding-left: 20px;
    color: #475569;
}

.mini-steps li + li {
    margin-top: 10px;
}

.tool-link-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 34px 0;
}

.tool-link-card {
    display: flex;
    min-block-size: 112px;
    align-items: flex-end;
    padding: 20px;
    border: 1px solid var(--studio-line);
    border-radius: 16px;
    background: var(--studio-white);
    color: var(--studio-navy);
    font-weight: 800;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.tool-link-card:hover,
.tool-link-card:focus-visible {
    border-color: var(--studio-teal);
    transform: translateY(-2px);
}

.not-found-code {
    margin: 0;
    color: rgba(59, 130, 246, 0.16);
    font-size: clamp(6rem, 21vw, 13rem);
    font-weight: 900;
    letter-spacing: -0.08em;
    line-height: 0.8;
}

.footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.footer-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.draft-badge {
    padding: 3px 9px;
    border: 1px solid rgba(94, 234, 212, 0.26);
    border-radius: 999px;
    color: #99f6e4;
}

.mobile-cta .button {
    inline-size: 100%;
    min-block-size: 48px;
    box-shadow: none;
}

.clipboard-proxy {
    position: fixed;
    inset: 0 auto auto -9999px;
    inline-size: 1px;
    block-size: 1px;
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 980px) {
    .flow-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 760px) {
    .site-nav .nav-cta {
        margin: 10px 16px 16px;
        padding: 12px 18px;
        text-align: center;
    }

    .tool-link-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .article-card-meta,
    .content-row-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-nav {
        justify-content: flex-start;
    }
}
