/*
 * Shana editorial knowledge skin
 *
 * Keeps the SSR/content foundation in site.css while sharing only the brand's
 * color relationship with the public portal. Layout and graphics are original.
 */

:root {
    --shana-canvas: #faf9f6;
    --shana-paper: rgba(255, 254, 251, 0.86);
    --shana-paper-solid: #fffefb;
    --shana-mint-50: #edf8f4;
    --shana-mint-100: #d9f1e9;
    --shana-mint-200: #9ddcca;
    --shana-teal: #14b8a6;
    --shana-teal-deep: #0d9488;
    --shana-blue: #3b82f6;
    --shana-violet: #a855f7;
    --shana-coral: #fb7185;
    --shana-ink: #111827;
    --shana-copy: #475569;
    --shana-muted: #64748b;
    --shana-line: rgba(148, 163, 184, 0.38);
    --shana-line-strong: rgba(100, 116, 139, 0.48);
    --shana-terminal: #111c32;
    --shana-terminal-top: #1d2b43;
    --shana-radius: 10px;
    --shana-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
    --shana-shadow-soft: 0 8px 22px rgba(15, 23, 42, 0.045);

    --studio-navy: var(--shana-ink);
    --studio-teal: var(--shana-teal);
    --studio-blue: var(--shana-blue);
    --studio-ink: var(--shana-ink);
    --studio-muted: var(--shana-muted);
    --studio-line: #dbe5ea;
    --studio-paper: var(--shana-canvas);
    --studio-white: var(--shana-paper-solid);
    --studio-shadow: var(--shana-shadow);
}

html {
    background: var(--shana-canvas);
}

body {
    background-color: var(--shana-canvas);
    background-image: none;
    color: var(--shana-ink);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.72;
}

main {
    position: relative;
    overflow: clip;
}

:focus-visible {
    outline-color: var(--shana-teal);
}

.container {
    width: min(1152px, calc(100% - 48px));
}

.narrow {
    width: min(820px, calc(100% - 48px));
}

/* Brand shell */
.site-header {
    border-bottom: 1px solid rgba(226, 232, 240, 0.72);
    background: rgba(250, 249, 246, 0.9);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
    backdrop-filter: blur(20px) saturate(145%);
}

.header-inner {
    min-height: 72px;
}

.brand {
    gap: 10px;
}

.brand img,
.brand-mark {
    inline-size: 38px;
    block-size: 38px;
    flex-basis: 38px;
    border-radius: 50%;
}

.brand .brand-logo,
.footer-brand .brand-logo {
    border: 1px solid rgba(148, 163, 184, 0.44);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.1);
    object-fit: cover;
}

.footer-brand .brand-logo {
    inline-size: 40px;
    block-size: 40px;
    flex: 0 0 40px;
}

.brand-mark {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.92);
    background:
        radial-gradient(circle at 64% 28%, rgba(255, 255, 255, 0.92) 0 5%, transparent 6%),
        linear-gradient(145deg, #fb7185 0%, #ef4444 48%, #14b8a6 130%);
    box-shadow: 0 8px 22px rgba(244, 63, 94, 0.22), 0 0 0 1px rgba(15, 23, 42, 0.08);
    font-size: 0;
}

.brand-mark::before,
.brand-mark::after {
    position: absolute;
    z-index: -1;
    border: 2px solid rgba(255, 255, 255, 0.72);
    border-radius: 60% 40% 54% 46%;
    content: "";
}

.brand-mark::before {
    inset: 8px 7px 12px 11px;
    transform: rotate(-26deg);
}

.brand-mark::after {
    inset: 14px 13px 6px 7px;
    border-color: rgba(255, 255, 255, 0.44);
    transform: rotate(24deg);
}

.brand-mark span {
    display: grid;
    min-inline-size: 100%;
    min-block-size: 100%;
    place-items: center;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: -0.08em;
    text-shadow: 0 1px 4px rgba(127, 29, 29, 0.35);
}

.brand strong {
    color: var(--shana-ink);
    font-size: 15px;
    font-weight: 760;
}

.brand small {
    margin-top: 1px;
    color: #8a94a6;
    font-size: 10px;
    font-weight: 550;
}

.site-nav {
    gap: 26px;
}

.site-nav a {
    padding-block: 25px 23px;
    color: #526071;
    font-size: 13px;
    font-weight: 620;
}

.site-nav a::after {
    bottom: 18px;
    height: 2px;
    background: linear-gradient(90deg, var(--shana-teal), #2dd4bf);
}

.site-nav a[aria-current="page"] {
    color: var(--shana-ink);
}

.site-nav a[aria-current="page"]::after {
    transform: scaleX(1);
}

.site-nav .nav-cta {
    min-block-size: 34px;
    padding: 7px 15px;
    border: 0;
    border-radius: 7px;
    background: var(--shana-ink);
    color: #fff;
    box-shadow: none;
    font-size: 12px;
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
    background: #263244;
    color: #fff;
    transform: translateY(-1px);
}

.menu-toggle {
    border-color: rgba(203, 213, 225, 0.72);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

/* Shared controls */
.button {
    min-block-size: 48px;
    padding: 12px 25px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 680;
    letter-spacing: 0;
}

.button-primary {
    border-color: transparent;
    background: linear-gradient(90deg, var(--shana-teal), var(--shana-teal-deep));
    color: #fff;
    box-shadow: 0 12px 24px rgba(20, 184, 166, 0.28);
}

.button-primary:hover,
.button-primary:focus-visible {
    background: linear-gradient(90deg, #2ac6b3, var(--shana-teal));
    box-shadow: 0 16px 30px rgba(20, 184, 166, 0.32);
    transform: translateY(-2px);
}

.button-secondary {
    border-color: rgba(148, 163, 184, 0.48);
    background: rgba(255, 255, 255, 0.72);
    color: #334155;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    backdrop-filter: blur(12px);
}

.button-secondary:hover,
.button-secondary:focus-visible {
    border-color: var(--shana-mint-200);
    background: #fff;
    color: #0f766e;
    transform: translateY(-2px);
}

.text-link {
    color: #0f766e;
    font-weight: 700;
}

.text-link:hover,
.text-link:focus-visible {
    color: var(--shana-teal-deep);
}

.eyebrow,
.studio-kicker {
    color: var(--shana-teal-deep);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.13em;
}

/* Product-oriented editorial hero */
.hero {
    min-block-size: 630px;
    overflow: visible;
    background: transparent;
    color: var(--shana-ink);
}

.hero::before {
    z-index: -2;
    inset: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.28);
    background:
        linear-gradient(90deg, rgba(20, 184, 166, 0.08) 1px, transparent 1px),
        rgba(255, 254, 251, 0.64);
    background-size: min(14vw, 180px) 100%, auto;
    content: "";
    opacity: 1;
}

.hero::after {
    z-index: -1;
    inset: 18% 4% auto auto;
    inline-size: min(22vw, 330px);
    block-size: 2px;
    background: linear-gradient(90deg, transparent, rgba(251, 113, 133, 0.56), transparent);
    content: "";
    transform: rotate(-13deg);
}

.hero-grid {
    display: grid;
    min-block-size: 630px;
    grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
    align-items: center;
    gap: clamp(50px, 7vw, 104px);
    padding-block: 80px 48px;
}

.hero-copy {
    inline-size: auto;
    padding: 0;
    color: var(--shana-ink);
}

.hero .eyebrow,
.hero .studio-kicker {
    color: var(--shana-teal-deep);
}

.hero-copy h1 {
    max-inline-size: 11.8em;
    margin: 16px 0 22px;
    color: var(--shana-ink);
    font-size: clamp(2.9rem, 4.25vw, 3.8rem);
    font-weight: 740;
    letter-spacing: 0;
    line-height: 1.16;
    word-break: keep-all;
    text-wrap: balance;
}

.hero-lead {
    max-inline-size: 34em;
    color: #526071;
    font-size: 17px;
    line-height: 1.75;
}

.hero .cta-row {
    margin-top: 30px;
}

.hero .button-secondary {
    border-color: rgba(148, 163, 184, 0.54);
    background: rgba(255, 255, 255, 0.62);
    color: #334155;
}

.hero-media {
    position: relative;
    display: block;
    margin: 0;
    padding: 28px 30px 24px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.46);
    border-left: 4px solid var(--shana-coral);
    border-radius: 10px;
    background: rgba(255, 254, 251, 0.86);
    box-shadow: 14px 14px 0 rgba(217, 241, 233, 0.66);
}

.gateway-card {
    border-color: rgba(15, 23, 42, 0.62);
    border-left-color: #ef626d;
    background: #10213e;
    box-shadow: 14px 14px 0 rgba(20, 184, 166, 0.18);
    color: #eef7ff;
}

.gateway-card::before {
    z-index: 0;
    background:
        linear-gradient(rgba(125, 211, 252, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(125, 211, 252, 0.08) 1px, transparent 1px);
    background-size: 26px 26px;
}

.gateway-card > * {
    position: relative;
    z-index: 1;
}

.gateway-card-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #afc4dd;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.gateway-card-head > span:first-child {
    color: #8ef0df;
}

.gateway-status {
    display: inline-block;
    inline-size: 7px;
    block-size: 7px;
    margin-right: 7px;
    border-radius: 50%;
    background: #5eead4;
    box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.14);
}

.gateway-route {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr) 18px minmax(0, 1fr);
    gap: 6px;
    align-items: stretch;
    margin: 24px 0 20px;
}

.gateway-node {
    display: flex;
    min-inline-size: 0;
    min-block-size: 154px;
    flex-direction: column;
    justify-content: center;
    padding: 14px 10px;
    border: 1px solid rgba(191, 219, 254, 0.22);
    border-radius: 7px;
    background: rgba(15, 31, 56, 0.74);
    text-align: center;
}

.gateway-core {
    border-color: rgba(94, 234, 212, 0.48);
    background: rgba(10, 66, 84, 0.56);
}

.gateway-node-label {
    color: #8ca8c7;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 9px;
    font-weight: 750;
    letter-spacing: 0.08em;
}

.gateway-node strong {
    margin-top: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 760;
    letter-spacing: 0;
    line-height: 1.25;
}

.gateway-node small {
    margin-top: 7px;
    color: #b7c9dd;
    font-size: 10px;
    line-height: 1.45;
}

.gateway-logo {
    inline-size: 48px;
    block-size: 48px;
    align-self: center;
    margin-bottom: 4px;
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 8px;
    background: #fff;
    object-fit: cover;
}

.gateway-connector {
    display: grid;
    place-items: center;
}

.gateway-connector::before,
.gateway-connector::after,
.gateway-connector span {
    display: block;
    content: "";
}

.gateway-connector::before {
    inline-size: 100%;
    block-size: 1px;
    background: rgba(94, 234, 212, 0.76);
}

.gateway-connector::after {
    inline-size: 6px;
    block-size: 6px;
    margin-left: auto;
    border-top: 1px solid #8ef0df;
    border-right: 1px solid #8ef0df;
    transform: translateY(-3px) rotate(45deg);
}

.gateway-connector span {
    display: none;
}

.gateway-endpoint {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 13px 14px;
    border: 1px solid rgba(191, 219, 254, 0.26);
    border-radius: 7px;
    background: rgba(5, 15, 33, 0.52);
}

.gateway-endpoint > span {
    flex: 0 0 auto;
    color: #8ca8c7;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.08em;
}

.gateway-endpoint code {
    min-inline-size: 0;
    overflow-wrap: anywhere;
    color: #a7f3d0;
    font-size: 12px;
    font-weight: 650;
}

.gateway-card figcaption {
    margin-top: 14px;
    color: #b7c9dd;
}

.hero-media::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    border-radius: 0;
    background: linear-gradient(145deg, rgba(45, 212, 191, 0.08), transparent 46%);
    content: "";
}

.guide-index-head,
.guide-index-foot {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: #64748b;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.guide-index-rule {
    block-size: 1px;
    margin: 18px 0 23px;
    background: linear-gradient(90deg, var(--shana-coral), rgba(148, 163, 184, 0.22));
}

.guide-index-title {
    margin: 0 0 20px;
    color: var(--shana-ink);
    font-size: clamp(1.55rem, 2.2vw, 2rem);
    font-weight: 720;
    line-height: 1.24;
}

.guide-index-list {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.guide-index-list li {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-block-size: 68px;
    border-top: 1px solid rgba(148, 163, 184, 0.28);
}

.guide-index-list li > span,
.guide-index-list li > b {
    color: var(--shana-teal-deep);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 11px;
    font-weight: 750;
}

.guide-index-list strong,
.guide-index-list small {
    display: block;
}

.guide-index-list strong {
    color: #263244;
    font-size: 14px;
}

.guide-index-list small {
    margin-top: 2px;
    color: #7c8798;
    font-size: 12px;
}

.guide-index-foot {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.28);
}

.guide-index-foot strong {
    color: #263244;
}

.hero-media figcaption {
    margin: 17px 0 0;
    color: #7c8798;
    font-size: 12px;
    text-align: left;
}

.hero-visual-label {
    position: absolute;
    z-index: 2;
    inset: 12px auto auto 28px;
    color: #8aa0b9;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 10px;
    letter-spacing: 0.13em;
}

.hero-badges {
    grid-column: 1 / -1;
    justify-content: flex-start;
    gap: 22px;
    margin: 2px 0 0;
}

.hero-badges li {
    min-block-size: 28px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #435066;
    box-shadow: none;
    font-size: 12px;
    font-weight: 600;
}

.hero-badges li::before {
    inline-size: 16px;
    block-size: 16px;
    margin-right: 7px;
    border-radius: 3px;
    background: #dff4ed;
    color: var(--shana-teal-deep);
    content: "✓";
    font-size: 10px;
    line-height: 16px;
    text-align: center;
}

/* Homepage sections */
.section {
    padding-block: 94px;
}

.section-quick {
    border-block: 1px solid rgba(226, 232, 240, 0.72);
    background: rgba(255, 254, 251, 0.58);
}

.gateway-proof {
    padding-block: 76px;
    border-bottom: 1px solid rgba(217, 241, 233, 0.86);
    background: rgba(237, 248, 244, 0.58);
}

.proof-layout {
    display: grid;
    grid-template-columns: minmax(250px, 0.78fr) minmax(0, 2fr);
    gap: clamp(42px, 7vw, 90px);
    align-items: start;
}

.proof-intro {
    max-inline-size: 360px;
}

.proof-intro h2 {
    margin: 10px 0 16px;
    color: var(--shana-ink);
    font-size: clamp(1.9rem, 3vw, 2.65rem);
    font-weight: 760;
    letter-spacing: -0.035em;
    line-height: 1.2;
}

.proof-intro > p:not(.eyebrow) {
    color: var(--shana-copy);
    font-size: 14px;
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid rgba(100, 116, 139, 0.34);
}

.proof-item {
    min-block-size: 178px;
    padding: 20px 22px 6px;
    border-left: 1px solid rgba(100, 116, 139, 0.34);
}

.proof-item:last-child {
    border-right: 1px solid rgba(100, 116, 139, 0.34);
}

.proof-index {
    color: var(--shana-teal-deep);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.1em;
}

.proof-item h3 {
    margin: 14px 0 8px;
    color: var(--shana-ink);
    font-size: 17px;
    font-weight: 740;
}

.proof-item p {
    min-block-size: 66px;
    margin: 0 0 12px;
    color: #5d6879;
    font-size: 13px;
    line-height: 1.65;
}

.proof-item .text-link {
    font-size: 12px;
}

.section-tint {
    border-block: 1px solid rgba(217, 241, 233, 0.86);
    background:
        linear-gradient(90deg, rgba(217, 241, 233, 0.35) 1px, transparent 1px),
        rgba(242, 249, 246, 0.76);
    background-size: 18.4rem 100%, auto;
}

.section-heading {
    margin-bottom: 42px;
}

.section-heading h2,
.split-heading h2 {
    margin-top: 8px;
    color: var(--shana-ink);
    font-size: clamp(2rem, 3.4vw, 2.8rem);
    font-weight: 760;
    letter-spacing: -0.045em;
    line-height: 1.16;
}

.section-heading > p:not(.eyebrow),
.split-heading > p,
.split-heading > div + p {
    color: var(--shana-copy);
}

.quick-grid {
    gap: 20px;
}

.quick-card {
    position: relative;
    min-block-size: 238px;
    padding: 25px 26px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.38);
    border-radius: 10px;
    background: rgba(255, 254, 251, 0.76);
    box-shadow: none;
}

.quick-card::before {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(45, 212, 191, 0.09), transparent 42%);
    content: "";
    opacity: 0;
    transition: opacity 220ms ease;
}

.quick-card::after {
    display: none;
}

.quick-card:hover,
.quick-card:focus-visible {
    border-color: var(--shana-teal);
    background: #fffefb;
    box-shadow: 6px 6px 0 rgba(217, 241, 233, 0.74);
    transform: translate(-2px, -2px);
}

.quick-card:hover::before,
.quick-card:focus-visible::before {
    opacity: 1;
}

.quick-card > * {
    position: relative;
    z-index: 1;
}

.quick-icon {
    display: grid;
    inline-size: 42px;
    block-size: 42px;
    margin-bottom: 20px;
    place-items: center;
    border-radius: 7px;
    color: #2563eb;
    box-shadow: none;
}

.quick-icon svg {
    inline-size: 25px;
    block-size: 25px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.quick-icon-download {
    background: #e8f1ff;
}

.quick-icon-route {
    background: #e2f6ef;
    color: #0f766e;
}

.quick-icon-skill {
    background: #f3ebff;
    color: #7e22ce;
}

.quick-icon-skill svg {
    fill: currentColor;
    stroke: none;
}

.quick-card h3,
.case-card h3 {
    color: var(--shana-ink);
    font-size: 20px;
    letter-spacing: -0.025em;
}

.quick-card p,
.case-card p {
    color: #5d6879;
}

.card-kicker {
    color: var(--shana-teal-deep);
    font-size: 11px;
    letter-spacing: 0.05em;
}

.flow-layout {
    grid-template-columns: minmax(250px, 0.64fr) minmax(0, 1.5fr);
    gap: clamp(40px, 7vw, 88px);
}

.process-grid {
    gap: 16px;
}

.process-step {
    min-block-size: 178px;
    padding: 6px 20px 12px;
    border: 0;
    border-left: 1px solid rgba(100, 116, 139, 0.44);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.process-step > span {
    inline-size: auto;
    block-size: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--shana-coral);
    font-size: 10px;
    line-height: 1;
    text-align: start;
}

.process-step h3 {
    color: var(--shana-ink);
    font-size: 17px;
}

.process-step p {
    color: #5d6879;
    font-size: 14px;
}

.process-step:not(:last-child)::after {
    display: none;
}

.case-grid {
    gap: 20px;
}

.case-card {
    min-block-size: 184px;
    padding: 24px;
    border: 1px solid rgba(148, 163, 184, 0.36);
    border-radius: 10px;
    background: rgba(255, 254, 251, 0.56);
    box-shadow: none;
}

.case-card:hover,
.case-card:focus-visible {
    border-color: var(--shana-teal);
    box-shadow: 5px 5px 0 rgba(217, 241, 233, 0.74);
    transform: translate(-2px, -2px);
}

.case-number {
    inline-size: 34px;
    block-size: 34px;
    border-radius: 4px;
    background: #e2f6ef;
    color: #0f766e;
    box-shadow: none;
}

.article-grid {
    gap: 20px;
}

.article-card {
    min-block-size: 280px;
    padding: 25px;
    border: 1px solid rgba(148, 163, 184, 0.36);
    border-radius: 10px;
    background: rgba(255, 254, 251, 0.7);
    box-shadow: none;
}

.article-card:hover {
    border-color: var(--shana-teal);
    box-shadow: 5px 5px 0 rgba(217, 241, 233, 0.74);
    transform: translate(-2px, -2px);
}

.article-card h3 {
    color: var(--shana-ink);
    font-size: 20px;
    letter-spacing: -0.025em;
    line-height: 1.45;
}

.article-card p {
    color: #5d6879;
}

.article-card-meta,
.content-row-meta,
.intent-line {
    color: #788496;
    font-size: 11px;
}

.article-card-meta span,
.content-row-meta span {
    color: var(--shana-teal-deep);
}

.faq-list {
    border-top: 1px solid rgba(203, 213, 225, 0.68);
}

.faq-item {
    border-bottom: 1px solid rgba(203, 213, 225, 0.68);
}

.faq-item button {
    min-block-size: 72px;
    color: var(--shana-ink);
    font-size: 16px;
}

.faq-item button span:last-child {
    display: grid;
    inline-size: 26px;
    block-size: 26px;
    place-items: center;
    border-radius: 50%;
    background: var(--shana-mint-100);
    color: var(--shana-teal-deep);
}

.faq-answer p {
    color: #5d6879;
}

.closing-cta {
    padding: 82px 0;
    background: rgba(255, 255, 255, 0.58);
}

.closing-inner {
    position: relative;
    padding: clamp(34px, 5vw, 58px);
    border: 1px solid rgba(148, 163, 184, 0.42);
    border-left: 3px solid var(--shana-coral);
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(237, 248, 244, 0.96), rgba(255, 254, 251, 0.96) 58%, rgba(255, 245, 242, 0.94));
    color: var(--shana-ink);
    box-shadow: none;
}

.closing-inner::after {
    position: absolute;
    inset: auto 0 0 36%;
    block-size: 1px;
    background: rgba(20, 184, 166, 0.22);
    content: "";
}

.closing-inner h2 {
    color: var(--shana-ink);
    font-size: clamp(2rem, 3.5vw, 3rem);
    letter-spacing: 0;
}

.closing-inner p:not(.eyebrow) {
    color: #5d6879;
}

.closing-inner .button-secondary {
    border-color: rgba(100, 116, 139, 0.44);
    background: rgba(255, 254, 251, 0.6);
    color: #263244;
}

/* Listing, article and static pages */
.page-hero {
    position: relative;
    isolation: isolate;
    padding-block: 82px 72px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.38);
    background:
        linear-gradient(90deg, rgba(251, 113, 133, 0.42) 3px, transparent 3px),
        rgba(255, 254, 251, 0.64);
    background-size: min(84vw, 1152px) 100%, auto;
    color: var(--shana-ink);
}

.page-hero h1,
.detail-heading h1 {
    color: var(--shana-ink);
    font-size: clamp(2.55rem, 5.4vw, 4.45rem);
    font-weight: 740;
    letter-spacing: 0;
    line-height: 1.16;
    text-wrap: balance;
}

.page-hero p,
.detail-lead {
    color: var(--shana-copy);
}

.breadcrumb,
.breadcrumb a {
    color: #788496;
}

.breadcrumb > span[aria-hidden="true"] {
    display: none;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
    color: var(--shana-teal-deep);
}

.article-meta {
    justify-content: center;
    color: #788496;
}

.content-layout {
    gap: clamp(44px, 6vw, 82px);
}

.content-list {
    display: grid;
    gap: 18px;
}

.content-row {
    padding: 28px;
    border: 1px solid rgba(148, 163, 184, 0.38);
    border-radius: 10px;
    background: rgba(255, 254, 251, 0.72);
    box-shadow: none;
}

.content-row:hover {
    border-color: var(--shana-teal);
    box-shadow: 5px 5px 0 rgba(217, 241, 233, 0.74);
    transform: translate(-2px, -2px);
}

.content-row h2 {
    color: var(--shana-ink);
    font-size: 23px;
    letter-spacing: -0.025em;
}

.content-row > p {
    color: #5d6879;
}

.side-panel {
    border: 1px solid rgba(148, 163, 184, 0.38);
    border-radius: 10px;
    background:
        linear-gradient(145deg, rgba(217, 241, 233, 0.76), rgba(255, 254, 251, 0.86));
    box-shadow: none;
}

.side-panel h2 {
    color: var(--shana-ink);
}

.side-panel p,
.mini-steps {
    color: #5d6879;
}

.prose {
    color: #334155;
}

.prose > p,
.prose > ol,
.prose > ul,
.prose > h2,
.prose > figure,
.prose > pre,
.prose > .verified-note,
.prose > .source-section,
.prose > .article-cta {
    max-inline-size: 760px;
}

.prose h2 {
    color: var(--shana-ink);
    font-weight: 740;
    letter-spacing: -0.035em;
}

.verified-note,
.notice {
    border-color: rgba(157, 220, 202, 0.88);
    border-radius: 8px;
    background: rgba(237, 248, 244, 0.92);
    color: #36566a;
}

.prose pre,
.code-block,
.code-shell,
.code-card {
    border-color: rgba(51, 65, 85, 0.9);
    border-radius: 16px;
    background: var(--shana-terminal);
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.17);
}

.code-block__header,
.code-shell__header,
.code-card__header {
    border-bottom-color: rgba(148, 163, 184, 0.18);
    background: var(--shana-terminal-top);
}

.copy-button,
.copy-code {
    border-color: rgba(94, 234, 212, 0.28);
    border-radius: 999px;
    background: rgba(20, 184, 166, 0.12);
    color: #99f6e4;
}

.copy-button:hover,
.copy-code:hover {
    background: rgba(20, 184, 166, 0.22);
}

.screenshot-card,
.screenshot-frame,
.screen-frame {
    border-color: rgba(148, 163, 184, 0.42);
    border-radius: 10px;
    background: rgba(255, 254, 251, 0.78);
    box-shadow: none;
}

.article-cta {
    border-color: rgba(157, 220, 202, 0.82);
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(237, 248, 244, 0.96), rgba(255, 249, 246, 0.92));
    box-shadow: none;
}

.source-section {
    border-top-color: rgba(203, 213, 225, 0.72);
}

.tool-link-card {
    border-color: rgba(148, 163, 184, 0.4);
    border-radius: 10px;
    background: rgba(255, 254, 251, 0.76);
    box-shadow: none;
}

.tool-link-card:hover,
.tool-link-card:focus-visible {
    border-color: var(--shana-teal);
    box-shadow: 5px 5px 0 rgba(217, 241, 233, 0.74);
}

.not-found {
    background:
        linear-gradient(rgba(20, 184, 166, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 184, 166, 0.045) 1px, transparent 1px),
        radial-gradient(circle at 50% 25%, rgba(45, 212, 191, 0.2), transparent 28rem),
        var(--shana-canvas);
    background-size: 64px 64px, 64px 64px, auto, auto;
}

.not-found-code {
    color: rgba(20, 184, 166, 0.16);
}

/* Light portal footer */
.site-footer {
    padding: 52px 0 22px;
    border-top: 1px solid rgba(148, 163, 184, 0.4);
    background:
        linear-gradient(90deg, rgba(217, 241, 233, 0.62) 1px, transparent 1px),
        rgba(250, 249, 246, 0.94);
    background-size: 18.4rem 100%, auto;
    color: var(--shana-ink);
}

.footer-grid p {
    color: #6e7a8c;
}

.footer-grid nav {
    color: #526071;
}

.footer-grid nav a:hover,
.footer-grid nav a:focus-visible {
    color: var(--shana-teal-deep);
}

.footer-bottom {
    border-top-color: rgba(203, 213, 225, 0.68);
    color: #8a94a6;
}

.draft-badge {
    border-color: rgba(20, 184, 166, 0.24);
    background: rgba(204, 251, 241, 0.48);
    color: #0f766e;
}

/* Responsive editorial layout */
@media (max-width: 980px) {
    .hero-grid {
        grid-template-columns: minmax(0, 0.88fr) minmax(390px, 1.12fr);
        gap: 34px;
    }

    .proof-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 38px;
    }

    .proof-intro {
        max-inline-size: 620px;
    }

    .hero-copy h1 {
        font-size: clamp(2.6rem, 5.4vw, 3.5rem);
    }

    .flow-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .flow-layout .section-heading {
        max-inline-size: 620px;
    }
}

@media (max-width: 840px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }

    .hero-copy {
        max-inline-size: 680px;
    }

    .hero-media {
        inline-size: min(100%, 620px);
    }
}

@media (max-width: 760px) {
    body {
        padding-bottom: 0;
        background-size: auto, auto;
    }

    .container,
    .narrow {
        width: min(100% - 32px, 720px);
    }

    .site-header,
    .header-inner {
        min-block-size: 66px;
    }

    .brand img,
    .brand-mark {
        inline-size: 36px;
        block-size: 36px;
        flex-basis: 36px;
    }

    .site-nav {
        inset: 74px 12px auto;
        max-block-size: calc(100dvh - 164px);
        overflow-y: auto;
        border: 1px solid rgba(203, 213, 225, 0.78);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 22px 50px rgba(15, 23, 42, 0.16);
        backdrop-filter: blur(20px);
    }

    .site-nav a {
        min-block-size: 52px;
        padding: 15px 18px;
        border-top-color: rgba(226, 232, 240, 0.78);
    }

    .site-nav .nav-cta {
        margin: 10px 14px 14px;
        padding: 12px 18px;
        text-align: center;
    }

    .hero,
    .hero-grid {
        min-block-size: 0;
    }

    .hero::before {
        background-size: auto;
    }

    .hero::after {
        display: none;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
        padding-block: 66px 58px;
    }

    .hero-copy {
        padding: 0;
        text-align: center;
    }

    .hero-copy h1 {
        max-inline-size: 10.5em;
        margin-inline: auto;
        font-size: clamp(2.35rem, 10.7vw, 3.1rem);
        letter-spacing: 0;
    }

    .hero-lead {
        margin-inline: auto;
        font-size: 15px;
    }

    .hero .cta-row {
        justify-content: center;
    }

    .hero-copy .button-secondary {
        display: none;
    }

    .hero-media {
        inline-size: min(100%, 600px);
        margin-inline: auto;
        padding: 22px 20px 19px;
        box-shadow: 8px 8px 0 rgba(217, 241, 233, 0.66);
    }

    .hero-media figcaption {
        margin-top: 8px;
    }

    .hero-badges {
        display: flex;
        grid-column: auto;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 17px;
        margin-top: 2px;
    }

    .hero-badges li {
        min-block-size: 24px;
        padding: 0;
        font-size: 12px;
    }

    .section {
        padding-block: 72px;
    }

    .gateway-proof {
        padding-block: 62px;
    }

    .proof-grid {
        grid-template-columns: minmax(0, 1fr);
        border-top: 0;
    }

    .proof-item,
    .proof-item:last-child {
        min-block-size: 0;
        padding: 21px 0 24px;
        border-top: 1px solid rgba(100, 116, 139, 0.34);
        border-right: 0;
        border-left: 0;
    }

    .proof-item:last-child {
        border-bottom: 1px solid rgba(100, 116, 139, 0.34);
    }

    .proof-item p {
        min-block-size: 0;
    }

    .section-heading h2,
    .split-heading h2,
    .closing-inner h2,
    .page-hero h1,
    .detail-heading h1 {
        font-size: clamp(1.9rem, 8.6vw, 2.5rem);
    }

    .quick-grid,
    .case-grid,
    .article-grid,
    .process-grid,
    .tool-link-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .quick-card,
    .article-card,
    .case-card {
        min-block-size: 0;
    }

    .process-step {
        min-block-size: 0;
    }

    .process-step:not(:last-child)::after {
        inset: auto auto -21px 31px;
        transform: rotate(135deg);
    }

    .page-hero {
        padding-block: 66px 58px;
        background-size: 100% 100%, auto;
    }

    .content-row {
        padding: 23px;
    }

    .closing-cta {
        padding: 64px 0;
    }

    .closing-inner {
        gap: 28px;
        border-radius: 10px;
    }

    .site-footer {
        background-size: 9.5rem 100%, auto;
    }

    .mobile-cta {
        top: 10px;
        right: 66px;
        bottom: auto;
        left: auto;
        inline-size: 108px;
        min-block-size: 0;
        padding: 0;
        border: 0;
        border-radius: 999px;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
        transition: opacity 160ms ease, transform 180ms ease;
    }

    .mobile-cta .button {
        min-block-size: 44px;
        padding: 9px 13px;
        border: 1px solid rgba(13, 148, 136, 0.55);
        border-radius: 7px;
        background: rgba(255, 254, 251, 0.9);
        color: #0f766e;
        font-size: 12px;
        box-shadow: none;
    }

    .mobile-cta .button:hover,
    .mobile-cta .button:focus-visible {
        border-color: var(--shana-teal-deep);
        background: var(--shana-mint-50);
        color: #0f766e;
        box-shadow: none;
    }

    .mobile-cta.is-visible {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .is-menu-open .mobile-cta {
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
    }
}

@media (max-width: 420px) {
    .container,
    .narrow {
        width: min(100% - 28px, 720px);
    }

    .hero-grid {
        padding-top: 58px;
    }

    .hero-copy h1 {
        font-size: clamp(2.15rem, 10.5vw, 2.75rem);
    }

    .hero .button-primary {
        inline-size: min(100%, 230px);
    }

    .hero-badges {
        gap: 10px 14px;
    }

    .hero-badges li {
        flex: 0 1 auto;
        justify-content: flex-start;
        white-space: nowrap;
    }

    .hero-badges li:last-child {
        flex-basis: auto;
    }

    .quick-card,
    .case-card,
    .article-card,
    .content-row {
        border-radius: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .quick-card,
    .case-card,
    .article-card,
    .content-row,
    .button {
        transform: none !important;
    }
}
