/* =========================================================================
   StorageSweeper marketing site styles.
   Design language mirrors the SwiftUI app:
     * capsule buttons, rounded "card" containers
     * category accent colors with soft glow on hover (box-shadow blur)
     * ultraThinMaterial -> backdrop-filter blur + semi-transparent surfaces
     * SF Pro typography via the macOS / iOS system font stack
   Light/dark theming is driven by prefers-color-scheme, with a manual
   override stored in localStorage that the inline boot script in <head>
   applies as `data-theme="dark|light"` on <html> before first paint.
   ========================================================================= */

/* ---------- Design tokens (light theme, default) ---------- */
:root {
    /* Base surfaces & text */
    --bg:               #F6F7FB;
    --bg-elevated:      #FFFFFF;
    --bg-card:          rgba(255, 255, 255, 0.7);
    --bg-card-solid:    #FFFFFF;
    --border:           rgba(0, 0, 0, 0.08);
    --border-strong:    rgba(0, 0, 0, 0.14);
    --shadow-soft:      0 1px 3px rgba(0, 0, 0, 0.04), 0 12px 32px rgba(0, 0, 0, 0.06);
    --shadow-lg:        0 4px 16px rgba(0, 0, 0, 0.08), 0 24px 48px rgba(0, 0, 0, 0.10);

    --text:             #0E1015;
    --text-secondary:   #51555F;
    --text-tertiary:    #8A8F99;

    /* Accent (matches the app's brand gradient and AccentColor) */
    --brand-start:      #73DBFF;
    --brand-end:        #2E66F2;
    --brand-mid:        #3A8DFF;
    --link:             #1E5BD8;

    /* Category accents, matching AppSection.accent in AppState.swift */
    --c-overview:       #14B5C2;   /* cyan */
    --c-explorer:       #5856D6;   /* indigo */
    --c-simulators:     #AF52DE;   /* purple */
    --c-xcode:          #FF9F0A;   /* orange */
    --c-junk:           #34C759;   /* green */
    --c-orphans:        #E0B100;   /* yellow (darker than systemYellow for contrast on light bg) */
    --c-duplicates:     #19C2A0;   /* mint */
    --c-uninstaller:    #FF3B30;   /* red */

    /* Status colors (match the app: orange warnings, etc.) */
    --warning:          #FF8A00;
    --warning-bg:       rgba(255, 138, 0, 0.10);
    --warning-border:   rgba(255, 138, 0, 0.25);
    --success:          #34C759;
    --danger:           #FF3B30;

    /* Geometry */
    --radius-sm:        8px;
    --radius:           14px;
    --radius-lg:        20px;
    --radius-pill:      999px;

    /* Type scale */
    --font:             ui-rounded, -apple-system, BlinkMacSystemFont, "SF Pro Display",
                        "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
    --font-mono:        ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;

    /* Page rhythm */
    --section-pad:      96px;
    --container:        1180px;

    --transition:       180ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Dark theme ---------- */
:root[data-theme="dark"] {
    --bg:               #0B0D12;
    --bg-elevated:      #15181F;
    --bg-card:          rgba(28, 31, 39, 0.65);
    --bg-card-solid:    #1A1D24;
    --border:           rgba(255, 255, 255, 0.08);
    --border-strong:    rgba(255, 255, 255, 0.14);
    --shadow-soft:      0 1px 3px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.45);
    --shadow-lg:        0 4px 16px rgba(0, 0, 0, 0.5), 0 24px 48px rgba(0, 0, 0, 0.55);

    --text:             #F2F3F7;
    --text-secondary:   #B4B8C2;
    --text-tertiary:    #6E7380;

    --link:             #6FAEFF;

    /* Category colors are tuned slightly brighter on dark to keep parity
       with how the SwiftUI accent colors render on a dark window. */
    --c-overview:       #34D6E5;
    --c-explorer:       #8985FF;
    --c-simulators:     #C977F0;
    --c-xcode:          #FFB23F;
    --c-junk:           #4ED56C;
    --c-orphans:        #FFD23A;
    --c-duplicates:     #38E0BC;
    --c-uninstaller:    #FF5B53;

    --warning:          #FFB23F;
    --warning-bg:       rgba(255, 178, 63, 0.12);
    --warning-border:   rgba(255, 178, 63, 0.30);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    background: var(--bg);
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

a {
    color: var(--link);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--brand-mid); }

img, svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
    margin: 0 0 0.4em;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text);
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }

p { margin: 0 0 1em; color: var(--text-secondary); }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

section { padding: var(--section-pad) 0; }

/* ---------- Animated background blobs (mimic the app's ambient gradient feel) ---------- */
.bg-decor {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.bg-decor .blob {
    position: absolute;
    width: 720px;
    height: 720px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
}
.bg-decor .blob.a { top: -240px; left: -160px; background: var(--brand-start); }
.bg-decor .blob.b { bottom: -260px; right: -200px; background: var(--brand-end); opacity: 0.28; }
:root[data-theme="dark"] .bg-decor .blob { opacity: 0.22; }
:root[data-theme="dark"] .bg-decor .blob.b { opacity: 0.18; }

/* ---------- Navigation ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 14px 0;
    background: color-mix(in srgb, var(--bg) 75%, transparent);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition), background var(--transition);
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
}
.brand img { width: 34px; height: 34px; border-radius: 8px; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-links a {
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--transition);
}
.nav-links a:hover {
    color: var(--text);
    background: color-mix(in srgb, var(--text) 6%, transparent);
}

.theme-toggle {
    width: 36px; height: 36px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all var(--transition);
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-1px); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ---------- Buttons (capsule, matches PrimaryButton / GhostButton in the app) ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius-pill);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--transition);
    line-height: 1;
    white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--brand-start) 0%, var(--brand-end) 100%);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--brand-end) 28%, transparent);
}
.btn-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px color-mix(in srgb, var(--brand-end) 40%, transparent);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
    color: var(--text);
    background: transparent;
    border-color: var(--border-strong);
}
.btn-ghost:hover {
    color: var(--text);
    border-color: var(--text);
    background: color-mix(in srgb, var(--text) 4%, transparent);
}

.btn-lg { padding: 16px 30px; font-size: 1.05rem; }
.btn-sm { padding: 8px 16px; font-size: 0.9rem; }

/* ---------- Hero ---------- */
.hero {
    padding: 80px 0 64px;
    text-align: center;
    position: relative;
}
.hero .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}
.hero .eyebrow .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
}
.hero h1 {
    max-width: 900px;
    margin: 0 auto 20px;
}
.hero h1 .gradient {
    background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.hero .lead {
    max-width: 680px;
    margin: 0 auto 36px;
    font-size: 1.2rem;
    color: var(--text-secondary);
}
.hero-actions {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}
.hero .meta {
    margin-top: 18px;
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

/* Big screenshot frame */
.hero-shot {
    max-width: 1100px;
    margin: 60px auto 0;
    padding: 12px;
    border-radius: 22px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}
.hero-shot img {
    width: 100%;
    border-radius: 14px;
    display: block;
    background: var(--bg-elevated); /* fallback before screenshot is provided */
    min-height: 280px;
}
.hero-shot .shot-placeholder {
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font-size: 0.95rem;
    background:
        repeating-linear-gradient(
            45deg,
            color-mix(in srgb, var(--text) 3%, transparent) 0,
            color-mix(in srgb, var(--text) 3%, transparent) 12px,
            transparent 12px,
            transparent 24px),
        var(--bg-elevated);
    border-radius: 14px;
}

/* ---------- Section headers ---------- */
.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 60px;
}
.section-head .pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    background: color-mix(in srgb, var(--brand-end) 12%, transparent);
    color: var(--link);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 14px;
}
.section-head p { font-size: 1.1rem; }

/* ---------- Feature grid (the 8 category cards, mirroring the sidebar) ---------- */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}
.feature-card {
    --accent: var(--brand-end);
    position: relative;
    padding: 26px;
    border-radius: var(--radius);
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition),
                border-color var(--transition);
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
    /* The glow: a soft shadow tinted with the card's accent. Mirrors the
       SwiftUI hover treatment on category cards in Overview. */
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent),
        0 20px 40px color-mix(in srgb, var(--accent) 22%, transparent);
}
.feature-card .icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--accent) 18%, transparent);
    color: var(--accent);
    margin-bottom: 18px;
    transition: transform var(--transition);
}
.feature-card:hover .icon {
    transform: scale(1.06) rotate(-3deg);
}
.feature-card .icon svg { width: 24px; height: 24px; }
.feature-card h3 { color: var(--text); margin-bottom: 6px; }
.feature-card p { margin: 0; color: var(--text-secondary); font-size: 0.97rem; }

/* Category color helpers (apply to .feature-card) */
.f-overview     { --accent: var(--c-overview); }
.f-explorer     { --accent: var(--c-explorer); }
.f-simulators   { --accent: var(--c-simulators); }
.f-xcode        { --accent: var(--c-xcode); }
.f-junk         { --accent: var(--c-junk); }
.f-orphans      { --accent: var(--c-orphans); }
.f-duplicates   { --accent: var(--c-duplicates); }
.f-uninstaller  { --accent: var(--c-uninstaller); }

/* ---------- One-click section ---------- */
.one-click {
    margin-top: 40px;
    padding: 56px 48px;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg,
            color-mix(in srgb, var(--brand-start) 18%, transparent),
            color-mix(in srgb, var(--brand-end) 22%, transparent)),
        var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid color-mix(in srgb, var(--brand-end) 25%, var(--border));
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}
.one-click .icon-bubble {
    width: 84px; height: 84px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 12px 32px color-mix(in srgb, var(--brand-end) 35%, transparent);
    margin-bottom: 20px;
}
.one-click .icon-bubble svg { width: 42px; height: 42px; }
.one-click h2 { font-size: 1.8rem; }
.one-click ul {
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
}
.one-click li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 7px 0;
    color: var(--text-secondary);
    font-size: 0.97rem;
}
.one-click li svg {
    width: 18px; height: 18px;
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--success);
}
.one-click .visual {
    padding: 12px;
    border-radius: 18px;
    background: var(--bg-card-solid);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}
.one-click .visual img {
    border-radius: 12px;
    display: block;
    background: var(--bg);
}
.one-click .shot-placeholder {
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font-size: 0.88rem;
    background:
        repeating-linear-gradient(
            45deg,
            color-mix(in srgb, var(--text) 3%, transparent) 0,
            color-mix(in srgb, var(--text) 3%, transparent) 10px,
            transparent 10px,
            transparent 20px),
        var(--bg-elevated);
    border-radius: 12px;
}

/* ---------- Safety / promise strip ---------- */
.promise {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-top: 40px;
}
.promise .item {
    padding: 24px;
    border-radius: var(--radius);
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
}
.promise .item .ic {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.promise .item.shield .ic { background: color-mix(in srgb, var(--success) 18%, transparent); color: var(--success); }
.promise .item.lock   .ic { background: color-mix(in srgb, var(--c-explorer) 18%, transparent); color: var(--c-explorer); }
.promise .item.eye    .ic { background: color-mix(in srgb, var(--c-overview) 18%, transparent); color: var(--c-overview); }
.promise .item.bolt   .ic { background: color-mix(in srgb, var(--c-xcode) 18%, transparent); color: var(--c-xcode); }
.promise .item h3 { font-size: 1.05rem; margin-bottom: 4px; }
.promise .item p { font-size: 0.93rem; margin: 0; }

/* ---------- Pricing ---------- */
.pricing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 22px;
    max-width: 880px;
    margin: 0 auto;
}
.price-card {
    position: relative;
    padding: 36px 32px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition),
                border-color var(--transition);
    display: flex;
    flex-direction: column;
}
.price-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.price-card.featured {
    border-color: color-mix(in srgb, var(--brand-end) 50%, var(--border));
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--brand-end) 30%, transparent),
        0 20px 40px color-mix(in srgb, var(--brand-end) 18%, transparent);
}
.price-card .badge {
    position: absolute;
    top: -12px;
    right: 22px;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.price-card .tier {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-tertiary);
    margin-bottom: 10px;
}
.price-card h3 { font-size: 1.45rem; margin-bottom: 8px; }
.price-card .price {
    margin: 14px 0 4px;
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
    font-feature-settings: "tnum";
}
.price-card .price .currency {
    font-size: 1.5rem;
    font-weight: 600;
    vertical-align: top;
    margin-right: 4px;
    color: var(--text-secondary);
}
.price-card .price-note {
    font-size: 0.88rem;
    color: var(--text-tertiary);
    margin-bottom: 22px;
}
.price-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 26px;
}
.price-card li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.97rem;
    color: var(--text-secondary);
}
.price-card li svg {
    width: 18px; height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--success);
}
.price-card .btn { width: 100%; margin-top: auto; }

.pricing-footnote {
    text-align: center;
    margin-top: 28px;
    font-size: 0.9rem;
    color: var(--text-tertiary);
}

/* ---------- FAQ ---------- */
.faq-grid {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.faq-item {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--transition);
}
.faq-item[open] { border-color: var(--border-strong); }
.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 20px 22px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--text-tertiary);
    transition: transform var(--transition);
    line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .answer {
    padding: 0 22px 20px;
    color: var(--text-secondary);
    font-size: 0.97rem;
}
.faq-item .answer p { margin-bottom: 0.6em; }
.faq-item .answer p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.footer {
    padding: 60px 0 30px;
    border-top: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg-elevated) 50%, transparent);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 40px;
}
.footer-brand p {
    color: var(--text-tertiary);
    font-size: 0.92rem;
    max-width: 320px;
    margin-top: 14px;
}
.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-tertiary);
    margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: color var(--transition);
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

/* ---------- Legal / Article pages (terms, privacy) ---------- */
.article {
    max-width: 760px;
    margin: 60px auto;
    padding: 0 24px;
}
.article .article-head { margin-bottom: 36px; }
.article .meta {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}
.article h1 { font-size: 2.4rem; }
.article h2 {
    margin-top: 2em;
    padding-top: 1em;
    border-top: 1px solid var(--border);
    font-size: 1.4rem;
}
.article h2:first-of-type { border-top: none; padding-top: 0; }
.article h3 { margin-top: 1.6em; font-size: 1.1rem; }
.article p, .article li {
    color: var(--text-secondary);
    line-height: 1.7;
}
.article code {
    font-family: var(--font-mono);
    font-size: 0.88em;
    padding: 1px 6px;
    border-radius: 4px;
    background: color-mix(in srgb, var(--text) 6%, transparent);
    color: var(--text);
}
.article ul, .article ol { padding-left: 1.4em; }
.article strong { color: var(--text); }
.article hr {
    border: none;
    height: 1px;
    background: var(--border);
    margin: 2em 0;
}

/* ---------- Misc ---------- */
.kbd {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 5px;
    font-family: var(--font-mono);
    font-size: 0.85em;
    border: 1px solid var(--border-strong);
    background: var(--bg-card-solid);
    color: var(--text);
    box-shadow: 0 1px 0 var(--border-strong);
}

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
    :root { --section-pad: 64px; }

    .nav-links a { display: none; }
    .nav-links .nav-cta { display: inline-flex; }

    .one-click {
        grid-template-columns: 1fr;
        padding: 36px 28px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
    body { font-size: 16px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { width: 100%; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Respect users who ask for reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
