/* ==========================================================
   Codeply — shared design system
   Loaded by every page. Keep page-specific rules in the page.
   ========================================================== */

:root {
    --google-blue: #1a73e8;
    --google-blue-dark: #174ea6;
    --google-blue-hover: #1b66c9;
    --google-red: #ea4335;
    --google-yellow: #fbbc04;
    --google-green: #34a853;

    --text-primary: #202124;
    --text-secondary: #5f6368;
    --border-light: #dadce0;

    --surface-page: #f8f9fa;
    --surface-card: #ffffff;
    --surface-soft: #f1f3f4;
    --tint-blue: #e8f0fe;
    --tint-green: #e6f4ea;
    --tint-yellow: #fef7e0;
    --tint-red: #fce8e6;

    --elev-1: 0 1px 2px rgba(60, 64, 67, .08), 0 1px 3px 1px rgba(60, 64, 67, .06);
    --elev-2: 0 1px 3px rgba(60, 64, 67, .10), 0 4px 8px 3px rgba(60, 64, 67, .07);
    --elev-3: 0 4px 8px rgba(60, 64, 67, .10), 0 12px 28px 6px rgba(60, 64, 67, .10);

    --section-y: clamp(5rem, 11vw, 9.5rem);

    --font-serif: 'Google Sans Text', 'Google Sans', 'Figtree', 'Inter', Arial, sans-serif;
    --font-display: 'Google Sans Display', 'Google Sans', 'Figtree', 'Inter', Arial, sans-serif;

    /* Aliases used by the standalone pages */
    --sans: var(--font-serif);
    --mono: 'Fira Code', monospace;
    --g-blue: var(--google-blue);
    --g-red: var(--google-red);
    --g-yellow: var(--google-yellow);
    --g-green: var(--google-green);
    --grad-brand: linear-gradient(90deg,
            var(--google-blue) 0 25%,
            var(--google-red) 25% 50%,
            var(--google-yellow) 50% 75%,
            var(--google-green) 75% 100%);
}


/* ==========================================================
   POLISH LAYER — Google-grade surface, type and rhythm.
   This block intentionally sits last and supersedes the
   earlier accumulated "correction" blocks above.
   ========================================================== */

/* --- Page surface: one calm neutral, no multi-hue gradient --- */
body {
    background: var(--surface-page);
    background-attachment: scroll;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'liga' 1, 'kern' 1;
}

/* Remote-hosted custom cursor removed: it was a third-party
   request and fought every native affordance. */
body,
a,
button,
.btn {
    cursor: auto;
}

a,
button,
.btn,
summary,
[role="button"] {
    cursor: pointer;
}

/* --- Focus visibility (was missing entirely) --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
.btn:focus-visible {
    outline: 3px solid rgba(26, 115, 232, .45);
    outline-offset: 3px;
    border-radius: 8px;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 200;
    background: var(--google-blue);
    color: #fff;
    padding: .7rem 1.2rem;
    border-radius: 0 0 12px 12px;
    font-weight: 600;
    text-decoration: none;
    transition: top .2s ease;
}

.skip-link:focus {
    top: 0;
}

/* --- Header: solid, quiet, Google-style --- */
header {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    box-shadow: none;
    transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}

header.is-stuck {
    background: rgba(255, 255, 255, .96);
    border-bottom-color: var(--border-light);
    box-shadow: 0 1px 2px rgba(60, 64, 67, .06);
}

/* --- Section pill nav: floats under the header once you scroll to it --- */
.subnav-wrap {
    position: sticky;
    top: 76px;
    z-index: 90;
    display: flex;
    justify-content: center;
    padding: 1.5rem 1rem;
    pointer-events: none;
}

.subnav {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    background: rgba(255, 255, 255, .8);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 999px;
    padding: .3rem;
    box-shadow: var(--elev-1);
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    transition: box-shadow .25s ease, background .25s ease;
}

.subnav::-webkit-scrollbar {
    display: none;
}

.subnav.is-stuck {
    background: rgba(255, 255, 255, .95);
    box-shadow: var(--elev-2);
}

.subnav a {
    flex-shrink: 0;
    font-family: var(--font-serif);
    font-size: .92rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    padding: .55rem 1.1rem;
    border-radius: 999px;
    white-space: nowrap;
    transition: background-color .2s ease, color .2s ease;
}

.subnav a:hover {
    color: var(--text-primary);
}

.subnav a.is-active {
    background: var(--surface-soft);
    color: var(--text-primary);
    font-weight: 700;
}

@media (max-width: 720px) {
    .subnav-wrap {
        top: 68px;
        padding: 1rem;
        justify-content: flex-start;
    }

    .subnav {
        justify-content: flex-start;
        /* Fade the trailing edge so a scrollable overflow reads as
           "more tabs this way" instead of the pill just stopping. */
        -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent 100%);
        mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent 100%);
    }

    .subnav.is-scrolled-start {
        -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
        mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
    }

    .subnav.is-scrolled-end {
        -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 100%);
        mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 100%);
    }
}

/* Keep anchored sections from landing underneath the fixed header
   plus the floating pill nav. */
#how-it-works,
#features,
#who,
#how-codeply-helps,
#stats,
#faq {
    scroll-margin-top: 150px;
}

@media (max-width: 720px) {

    #how-it-works,
    #features,
    #who,
    #how-codeply-helps,
    #stats,
    #faq {
        scroll-margin-top: 130px;
    }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    margin-left: 0;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* --- Buttons: one filled primary, one tonal secondary --- */
.btn {
    font-family: var(--font-serif);
    font-weight: 600;
    letter-spacing: .01em;
    transition: background-color .2s ease, color .2s ease,
        box-shadow .2s ease, transform .12s ease;
}

.btn-primary,
.btn-primary:visited,
header .nav-links .btn-primary,
header .nav-links .btn-primary:visited,
#nav-auth-control,
#cta-download-btn,
#hero-download-btn {
    background: var(--google-blue) !important;
    background-color: var(--google-blue) !important;
    border-color: var(--google-blue) !important;
    color: #fff !important;
    box-shadow: var(--elev-1) !important;
}

.btn-primary:hover,
header .nav-links .btn-primary:hover,
#nav-auth-control:hover,
#cta-download-btn:hover,
#hero-download-btn:hover {
    background: #1b66c9 !important;
    background-color: #1b66c9 !important;
    border-color: #1b66c9 !important;
    color: #fff !important;
    box-shadow: var(--elev-2) !important;
    transform: translateY(-1px);
}

.btn-primary:active,
#cta-download-btn:active,
#hero-download-btn:active,
#see-features-btn:active {
    transform: translateY(0) scale(.985);
    box-shadow: var(--elev-1) !important;
}

/* Tonal secondary — Google's soft blue chip button */
.btn-outline,
#see-features-btn {
    background: var(--tint-blue) !important;
    background-color: var(--tint-blue) !important;
    border-color: transparent !important;
    color: #174ea6 !important;
    box-shadow: none !important;
}

.btn-outline:hover,
#see-features-btn:hover {
    background: #d7e5fd !important;
    background-color: #d7e5fd !important;
    border-color: transparent !important;
    color: #174ea6 !important;
    box-shadow: none !important;
}

/* --- Section rhythm: let it breathe --- */
section {
    padding: var(--section-y) 0 calc(var(--section-y) + 1rem);
}

.container {
    max-width: 1160px;
}

/* --- Display typography --- */
h1,
h2,
h3,
.footer-brand,
.step-num {
    font-family: var(--font-display);
    text-wrap: balance;
}

.hero h1 {
    font-size: clamp(2.75rem, 6.4vw, 4.75rem);
    line-height: 1.08;
    letter-spacing: -.035em;
    font-weight: 700;
    margin-bottom: 1.75rem;
}

/* The rainbow rule under the headline read as decoration, not brand. */
.hero h1::after {
    display: none;
}

.hero p {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 48ch;
    margin-inline: auto;
    margin-bottom: 2.75rem;
    text-wrap: pretty;
}

.hero-ctas {
    margin-bottom: 5rem;
}

.section-head {
    text-align: center;
    max-width: 54ch;
    margin: 0 auto clamp(3rem, 6vw, 4.5rem);
}

.section-head h2 {
    max-width: 20ch;
    margin-inline: auto;
}

.section-head.is-left {
    text-align: left;
    margin-inline: 0;
}

.section-head.is-left h2,
.section-head.is-left .section-sub {
    margin-inline: 0;
}

main h2 {
    font-size: clamp(2.1rem, 4.4vw, 3.25rem) !important;
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -.03em;
    color: #3c4043 !important;
}

.section-sub {
    margin-top: 1.1rem;
    color: var(--text-secondary);
    font-size: 1.08rem;
    line-height: 1.6;
    text-wrap: pretty;
}

/* --- Cards: tonal surfaces, no rainbow trim --- */
main .step,
main .step:nth-child(1),
main .step:nth-child(2),
main .step:nth-child(3),
main .feature-card,
main .feature-card:nth-child(1),
main .feature-card:nth-child(2),
main .feature-card:nth-child(3),
main .feature-card:nth-child(4) {
    border: 1px solid transparent;
    border-top: 0;
    border-radius: 24px;
    box-shadow: none;
}

main .step {
    background: var(--tint-blue);
    padding: 2.75rem 2.5rem 3rem;
}

main .step:nth-child(2) {
    background: var(--tint-green);
}

main .step:nth-child(3) {
    background: var(--tint-yellow);
}

main .feature-card {
    background: var(--surface-card);
    border-color: var(--border-light);
    padding: 2.25rem 2.25rem 2.5rem;
    min-height: 0;
}

main .step:hover,
main .feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--elev-2);
    border-color: var(--border-light);
}

main .step:nth-child(1):hover,
main .step:nth-child(2):hover,
main .step:nth-child(3):hover,
main .feature-card:nth-child(1):hover,
main .feature-card:nth-child(2):hover,
main .feature-card:nth-child(3):hover,
main .feature-card:nth-child(4):hover {
    transform: translateY(-3px);
    border-color: var(--border-light);
    box-shadow: var(--elev-2);
}

main .step h3,
main .feature-card h3,
main .step:nth-child(1) h3,
main .step:nth-child(2) h3,
main .step:nth-child(3) h3,
main .feature-card:nth-child(1) h3,
main .feature-card:nth-child(2) h3,
main .feature-card:nth-child(3) h3,
main .feature-card:nth-child(4) h3 {
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -.015em;
    margin-bottom: .85rem;
}

main .step p,
main .feature-card p {
    color: var(--text-secondary);
    font-size: 1.02rem;
    line-height: 1.65;
    text-wrap: pretty;
}

/* Step number becomes a quiet index, not a watermark */
main .step .step-num,
main .step:nth-child(1) .step-num,
main .step:nth-child(2) .step-num,
main .step:nth-child(3) .step-num {
    position: static;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .12em;
    color: var(--google-blue);
    opacity: .75;
    margin-bottom: 1.25rem;
    font-family: var(--font-serif);
}

main .step:nth-child(2) .step-num {
    color: #137333;
}

main .step:nth-child(3) .step-num {
    color: #a56300;
}

main .step h3 {
    max-width: 100%;
    min-height: 0;
}

.steps {
    gap: 1.5rem;
    margin-top: 0;
}

.features-grid {
    margin-top: 0;
    gap: 1.5rem;
    max-width: 920px;
    perspective: none;
}

main .feature-card:nth-child(1) .feature-icon { color: var(--google-blue); }
main .feature-card:nth-child(2) .feature-icon { color: var(--google-red); }
main .feature-card:nth-child(3) .feature-icon { color: #a56300; }
main .feature-card:nth-child(4) .feature-icon { color: var(--google-green); }

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--surface-page);
    margin-bottom: 1.5rem;
}

.feature-icon svg {
    width: 26px;
    height: 26px;
    stroke-width: 2;
}

/* --- "Built for you" band --- */
.who-section {
    background: var(--tint-blue);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 0;
}

.who-tag,
.who-tag:nth-child(1),
.who-tag:nth-child(2),
.who-tag:nth-child(3) {
    background: #fff;
    border: 0;
    color: var(--text-primary);
    font-weight: 500;
    padding: .7rem 1.9rem;
    box-shadow: var(--elev-1);
}

/* --- Closing CTA: solid panel, not frosted glass --- */
.footer-cta {
    background: var(--tint-blue);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 0;
    border-radius: 32px;
    box-shadow: none;
    padding: clamp(3.5rem, 7vw, 5.5rem) 2rem;
}

.footer-cta h2 {
    color: #3c4043 !important;
    margin-bottom: 1.1rem;
}

.footer-cta p {
    font-size: 1.1rem;
    max-width: 46ch;
    text-wrap: pretty;
}

.footer-cta .hero-ctas {
    margin-bottom: 0;
}

/* --- Footer --- */
footer {
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-top: 1px solid var(--border-light);
    box-shadow: none;
    padding: 3rem 0;
}

/* --- Reveal: shorter travel, staggered, motion-safe --- */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s cubic-bezier(.2, .6, .2, 1),
        transform .7s cubic-bezier(.2, .6, .2, 1);
    transition-delay: var(--reveal-delay, 0ms);
}

@media (prefers-reduced-motion: reduce) {

    .reveal,
    .reveal.active {
        opacity: 1;
        transform: none;
        transition: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ==========================================================
   TYPE SCALE — larger, closer to Google's marketing sizing
   ========================================================== */
body {
    font-size: 1.075rem;
    line-height: 1.65;
}

.nav-links a {
    font-size: 1rem;
}

.hero h1 {
    font-size: clamp(3rem, 6.8vw, 5.25rem);
    letter-spacing: -.04em;
}

.hero p {
    font-size: clamp(1.15rem, 1.75vw, 1.4rem);
    line-height: 1.55;
    max-width: 44ch;
}

main h2 {
    font-size: clamp(2.4rem, 5vw, 3.9rem) !important;
}

.section-head.is-left h2 {
    max-width: 16ch;
}

.section-sub {
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    margin-top: 1.25rem;
}

main .step h3,
main .feature-card h3 {
    font-size: 1.55rem;
}

main .step p,
main .feature-card p {
    font-size: 1.1rem;
}

main .step .step-num {
    font-size: .85rem;
}

.who-tag {
    font-size: 1.05rem;
}

.footer-cta p {
    font-size: 1.2rem;
}

footer p {
    font-size: .95rem;
}

.faq-item button {
    font-size: 1.18rem !important;
    padding: 1.6rem 0 !important;
    gap: 1.5rem;
}

.faq-item .faq-answer p {
    font-size: 1.08rem !important;
    max-width: 62ch;
}

.faq-item .faq-icon {
    flex-shrink: 0;
}

/* ==========================================================
   SCROLL CHOREOGRAPHY — fade + rise on entry, staggered.
   Driven by data-anim so it can't fight the legacy .reveal.
   ========================================================== */
.reveal,
.reveal.active {
    opacity: 1;
    transform: none;
    transition: none;
}

[data-anim] {
    opacity: 0;
    transform: translate3d(0, 34px, 0);
    transition:
        opacity .9s cubic-bezier(.16, .84, .3, 1),
        transform .9s cubic-bezier(.16, .84, .3, 1);
    transition-delay: var(--anim-delay, 0ms);
    will-change: opacity, transform;
}

[data-anim="rise-lg"] {
    transform: translate3d(0, 60px, 0);
}

[data-anim="scale"] {
    transform: translate3d(0, 44px, 0) scale(.965);
}

[data-anim="left"] {
    transform: translate3d(-44px, 0, 0);
}

[data-anim="right"] {
    transform: translate3d(44px, 0, 0);
}

[data-anim].is-in {
    opacity: 1;
    transform: none;
}

[data-anim].is-in {
    will-change: auto;
}

/* Ambient glow drifts a little slower than the page */
.ambient-glow {
    transition: transform .1s linear;
}

/* ==========================================================
   RESPONSIVE — the inline two-column grids had no breakpoint
   ========================================================== */
/* Nothing may push the document sideways */
html {
    overflow-x: hidden;
    max-width: 100%;
}

.split-grid>* {
    min-width: 0;
}

@media (max-width: 900px) {
    .steps {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 8rem;
    }

    .split-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}

/* Footer link columns: 4 across, then 2, then stacked */
.footer-grid>* {
    min-width: 0;
}

@media (max-width: 860px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 2.25rem !important;
    }

    .footer-grid> :first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 460px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 1.75rem !important;
        text-align: left;
    }
}

/* Inline-styled IDE panels: shrink to fit rather than overflow */
@media (max-width: 720px) {
    .panel-ide {
        min-height: 340px !important;
    }

    .panel-ide-sidebar {
        display: none !important;
    }

    .panel-ide [style*="Fira Code"] {
        font-size: .72rem !important;
    }

    #hlp-popup {
        width: min(240px, calc(100% - 16px)) !important;
    }

    #hlp-hotkey {
        padding: 6px 12px !important;
        gap: 6px !important;
    }

    #hlp-hotkey span:last-child {
        display: none !important;
    }
}

@media (max-width: 640px) {
    :root {
        --section-y: 4.25rem;
    }

    .container {
        padding: 0 1.25rem;
    }

    .hero {
        padding-top: 7rem;
    }

    .hero-ctas {
        margin-bottom: 3.25rem;
    }

    .nav-links {
        gap: 1rem;
    }

    main .step,
    main .feature-card {
        padding: 1.9rem 1.6rem 2.1rem;
        border-radius: 20px;
    }

    .footer-cta {
        border-radius: 24px;
        padding: 3rem 1.5rem;
    }

    .footer-cta .hero-ctas {
        flex-direction: column;
        align-items: stretch;
    }

    .footer-cta .hero-ctas .btn {
        width: 100%;
        text-align: center;
    }

    .panel-card {
        padding: 1.75rem !important;
        border-radius: 20px !important;
    }

    .panel-card h3 {
        font-size: 1.35rem !important;
    }
}

/* ==========================================================
   STANDALONE PAGES — about / blog / careers / changelog /
   docs / privacy / terms / download
   These share a vocabulary: .topline, header, .hero,
   .content-wrap, .entry. Restyled to match the home page.
   ========================================================== */

body.page {
    background: var(--surface-page);
    background-attachment: scroll;
    font-family: var(--font-serif);
    font-size: 1.075rem;
    line-height: 1.65;
    color: var(--text-primary);
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

body.page a {
    color: inherit;
    text-decoration: none;
}

body.page .topline {
    height: 3px;
    background: var(--grad-brand);
    flex-shrink: 0;
}

/* --- Page header: white, hairline, no glass --- */
body.page>header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px clamp(20px, 6vw, 72px);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 100;
}

body.page>header img.logo {
    width: 34px;
    height: 34px;
    border-radius: 8px;
}

body.page>header .brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -.02em;
    color: var(--text-primary);
}

body.page>header nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

body.page>header nav a {
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 0;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color .2s ease;
}

body.page>header nav a:hover {
    background: none;
    color: var(--text-primary);
}

/* Last nav item reads as the primary action */
body.page>header nav a:last-child {
    background: var(--google-blue);
    color: #fff;
    font-weight: 600;
    padding: .7rem 1.6rem;
    border-radius: 999px;
    box-shadow: var(--elev-1);
    transition: background-color .2s ease, box-shadow .2s ease, transform .12s ease;
}

body.page>header nav a:last-child:hover {
    background: var(--google-blue-hover);
    color: #fff;
    box-shadow: var(--elev-2);
    transform: translateY(-1px);
}

body.page>header nav a:last-child:active {
    transform: translateY(0) scale(.985);
}

/* --- Page hero --- */
body.page .hero {
    text-align: center;
    padding: clamp(4rem, 9vw, 7rem) 20px 0;
}

body.page .hero .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--tint-blue);
    border: 0;
    backdrop-filter: none;
    border-radius: 999px;
    padding: .45rem 1.1rem;
    font-size: .8rem;
    font-weight: 600;
    color: var(--google-blue-dark);
    margin-bottom: 1.75rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
}

body.page .hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5.4vw, 4rem);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 1.1rem;
    text-wrap: balance;
}

body.page .hero p {
    color: var(--text-secondary);
    font-size: clamp(1.1rem, 1.6vw, 1.3rem);
    line-height: 1.6;
    max-width: 56ch;
    margin: 0 auto;
    text-wrap: pretty;
}

/* --- Content cards --- */
body.page .content-wrap {
    max-width: 820px;
    margin: clamp(3rem, 6vw, 4.5rem) auto clamp(4rem, 8vw, 6.5rem);
    padding: 0 20px;
    width: 100%;
}

body.page .entry {
    background: var(--surface-card);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 2.25rem 2.25rem 2rem;
    margin-bottom: 1.5rem;
    box-shadow: none;
    transition: box-shadow .2s ease, transform .2s ease;
}

body.page .entry:hover {
    box-shadow: var(--elev-1);
}

body.page .entry h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.25;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

body.page .entry h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -.015em;
    color: var(--text-primary);
}

body.page .entry p,
body.page .entry li {
    color: var(--text-secondary);
    font-size: 1.06rem;
    line-height: 1.7;
    margin-bottom: .85rem;
    text-wrap: pretty;
}

body.page .entry p:last-child {
    margin-bottom: 0;
}

body.page .entry a:not(.btn) {
    color: var(--google-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

body.page .entry code,
body.page code {
    font-family: var(--mono);
    font-size: .92em;
    background: var(--surface-soft);
    border-radius: 6px;
    padding: .15em .45em;
}

/* --- Shared slim footer --- */
body.page .site-footer {
    margin-top: auto;
    background: #fff;
    border-top: 1px solid var(--border-light);
    padding: 2.5rem clamp(20px, 6vw, 72px);
}

body.page .site-footer .site-footer-inner {
    max-width: 1160px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

body.page .site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

body.page .site-footer a {
    color: var(--text-secondary);
    font-size: .95rem;
    transition: color .2s ease;
}

body.page .site-footer a:hover {
    color: var(--google-blue);
}

body.page .site-footer p {
    color: var(--text-secondary);
    font-size: .9rem;
    margin: 0;
}

@media (max-width: 640px) {
    body.page .entry {
        padding: 1.6rem 1.4rem;
        border-radius: 20px;
    }

    body.page>header {
        padding: 12px 20px;
    }

    body.page>header nav {
        gap: 1rem;
    }

    body.page>header nav a:last-child {
        padding: .6rem 1.2rem;
        font-size: .95rem;
    }

    body.page .site-footer .site-footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
