/* ============================================
   u-torrent.app — professional layout system
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #0c4a6e;
    --primary-hover: #075985;
    --primary-deep: #082f49;
    --accent: #0d9488;
    --accent-light: #2dd4bf;
    --brand-green: #5db91e;
    --brand-green-light: #76b83f;
    --surface: #f8fafc;
    --surface-alt: #f1f5f9;
    --text: #0f172a;
    --text-muted: #475569;
    --white: #ffffff;
    --border: #e2e8f0;
    --max-width: 1140px;
    --header-height: 72px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 10px 24px -6px rgba(15, 23, 42, 0.12), 0 4px 8px -4px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 24px 48px -12px rgba(15, 23, 42, 0.18), 0 8px 16px -8px rgba(15, 23, 42, 0.08);
    --shadow-glow: 0 0 0 1px rgba(45, 212, 191, 0.25), 0 20px 40px -16px rgba(13, 148, 136, 0.35);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: "Plus Jakarta Sans", "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    margin-bottom: 0.75rem;
    color: var(--text);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.625rem, 3vw, 2.25rem); }
h3 { font-size: 1.125rem; font-weight: 700; }

a {
    text-decoration: none;
    color: var(--primary);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-hover);
}

ul {
    list-style: none;
}

/* Layout */
.wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.text-mid {
    text-align: center;
}

section {
    padding: 5.5rem 0;
    position: relative;
}

/* ——— Buttons ——— */
.cta-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green-light) 100%);
    color: var(--white);
    border-radius: 999px;
    font-weight: 700;
    font-size: 1.0625rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 14px rgba(93, 185, 30, 0.4);
    text-decoration: none;
}

.cta-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(93, 185, 30, 0.45);
    color: var(--white);
    filter: brightness(1.05);
}

.cta-pill-wide {
    min-width: 280px;
    padding: 18px 40px;
    font-size: 1.125rem;
}

/* ——— Section headers (shared) ——— */
.block-heading {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3rem;
}

.block-chip {
    display: inline-block;
    padding: 0.35rem 1rem;
    margin-bottom: 1rem;
    background: rgba(13, 148, 136, 0.1);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 999px;
    border: 1px solid rgba(13, 148, 136, 0.2);
}

.block-heading h2,
.block-heading h1 {
    margin-bottom: 1rem;
}

.block-blurb,
.block-heading p {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.75;
    max-width: 600px;
    margin: 0 auto;
}

.block-heading h1::after,
.block-heading h2::after,
.toolkit-intro h2::after,
.faq-intro h2::after,
.voices-intro h2::after,
.onboarding-intro h2::after,
.velocity-intro h2::after,
.tongues-intro h2::after {
    content: "";
    display: block;
    width: 56px;
    height: 4px;
    margin: 1.25rem auto 0;
    background: linear-gradient(90deg, var(--brand-green), var(--accent-light));
    border-radius: 999px;
}

.logo-inverse {
    height: 40px;
    width: auto;
    display: block;
}
.btn {
    display: inline-block;
    padding: 14px 28px;
    background: var(--accent);
    color: var(--white);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: background 0.2s ease, transform 0.15s ease;
    cursor: pointer;
    border: none;
}

.btn:hover {
    background: #0f766e;
    transform: translateY(-1px);
    color: var(--white);
    text-decoration: none;
}

*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Header – dark bar, pill nav items */
header {
    background: linear-gradient(180deg, var(--primary) 0%, #0a3d5c 100%);
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.logo img {
    height: 42px;
    filter: brightness(0) invert(1);
}

.masthead-links,
nav .masthead-menu {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.masthead-menu {
    list-style: none;
    flex-wrap: wrap;
}

.masthead-menu li {
    margin: 0;
}

.masthead-item,
.masthead-menu a {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 999px;
    transition: all 0.2s ease;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 0.9375rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.masthead-item:hover,
.masthead-menu a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    text-decoration: none;
}

.masthead-menu a.active {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.masthead-get-app {
    background: var(--accent-light);
    color: var(--primary) !important;
    font-weight: 700;
    padding: 12px 24px;
    border: none;
    box-shadow: var(--shadow);
}

.masthead-get-app:hover {
    background: var(--white);
    color: var(--primary-hover) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Language dropdown */
.lang-picker {
    position: relative;
}

.lang-picker-btn {
    padding: 10px 16px;
}

.lang-picker-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--white);
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    padding: 0.5rem 0;
    z-index: 1100;
    border: 1px solid var(--border);
}

.lang-picker-menu.active {
    display: block;
}

.lang-picker-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    width: 100%;
    height: 8px;
    background: transparent;
}

.lang-picker-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--text);
    font-size: 0.9375rem;
    text-decoration: none;
    transition: background 0.15s;
    border-radius: 0;
}

.lang-picker-menu a:hover {
    background: var(--surface-alt);
    color: var(--primary);
}

/* Mobile menu */
.menu-toggle-btn {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
}

.menu-bar-stroke {
    width: 24px;
    height: 2.5px;
    background: var(--white);
    border-radius: 2px;
}

@media (max-width: 768px) {
    .masthead-links,
    .masthead-menu {
        position: fixed;
        top: var(--header-height);
        right: 0;
        width: 100%;
        max-width: 320px;
        min-height: calc(100vh - var(--header-height));
        background: var(--primary);
        flex-direction: column;
        align-items: stretch;
        padding: 24px;
        gap: 0.5rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        box-shadow: -8px 0 24px rgba(0,0,0,0.15);
    }

    .masthead-links.active,
    .masthead-menu.active {
        transform: translateX(0);
    }

    .masthead-item,
    .masthead-menu a {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 1.0625rem;
        border-radius: var(--radius);
    }

    .lang-picker {
        width: 100%;
    }

    .lang-picker-btn {
        width: 100%;
        justify-content: space-between;
    }

    .lang-picker-menu {
        position: static;
        width: 100%;
        margin-top: 0.5rem;
        box-shadow: none;
        border: 1px solid rgba(255,255,255,0.2);
        background: rgba(0,0,0,0.1);
    }

    .lang-picker-menu a {
        color: rgba(255,255,255,0.95);
    }

    .lang-picker-menu a:hover {
        background: rgba(255,255,255,0.1);
        color: var(--white);
    }

    .menu-toggle-btn {
        display: flex;
    }
}

/* Splash – hero */
.intro-banner {
    background: linear-gradient(145deg, var(--primary-deep) 0%, var(--primary) 45%, #0e7490 100%);
    padding: 4.5rem 0 5.5rem;
    color: var(--white);
    text-align: left;
    position: relative;
    overflow: hidden;
}

.intro-banner::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -15%;
    width: 70%;
    height: 140%;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.15) 0%, transparent 65%);
    pointer-events: none;
}

.intro-banner::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 3.5rem;
    position: relative;
    z-index: 1;
}

.intro-copy {
    max-width: 580px;
}

.intro-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    margin-bottom: 1.25rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
}

.intro-chip::before {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--brand-green-light);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--brand-green-light);
}

.intro-copy h1 {
    font-size: clamp(2.25rem, 4.5vw, 3.35rem);
    line-height: 1.12;
    margin-bottom: 1.25rem;
    color: var(--white);
}

.intro-lede,
.intro-copy p {
    font-size: 1.1875rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    line-height: 1.75;
}

.intro-cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.25rem;
    margin-top: 2rem;
}

.intro-banner .cta-pill {
    background: linear-gradient(135deg, var(--brand-green-light) 0%, #8fd44a 100%);
    color: var(--primary-deep);
    box-shadow: 0 8px 28px rgba(118, 184, 63, 0.45);
}

.intro-banner .cta-pill:hover {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.intro-more-link {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.5rem 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.35);
    transition: border-color 0.2s, color 0.2s;
}

.intro-more-link:hover {
    color: var(--white);
    border-bottom-color: var(--accent-light);
}

.intro-perks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    margin-top: 2.25rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    list-style: none;
}

.intro-perks li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.perk-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: rgba(118, 184, 63, 0.25);
    color: var(--brand-green-light);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 800;
    flex-shrink: 0;
}

.intro-visual {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.intro-visual img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.1);
    border: 3px solid rgba(255, 255, 255, 0.12);
}

.toolkit-lead {
    padding: 2.5rem 0 1rem;
    background: linear-gradient(180deg, var(--surface) 0%, var(--white) 100%);
}

.toolkit-lead-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 2.5rem;
    align-items: center;
}

.toolkit-lead-copy h1 {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary);
}

.toolkit-lead-copy.block-heading {
    text-align: left;
    margin: 0;
    max-width: none;
}

.toolkit-lead-copy.block-heading h1::after {
    margin-left: 0;
    margin-right: auto;
}

.toolkit-lead-copy p,
.toolkit-lead-copy .block-blurb {
    font-size: 1.0625rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 520px;
}

.toolkit-lead-visual img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.toolkit-banner {
    margin: 0 auto 2.5rem;
    max-width: 980px;
    padding: 0 1.5rem;
}

.toolkit-banner img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

#toolkit {
    background: linear-gradient(180deg, var(--white) 0%, var(--surface) 50%, var(--white) 100%);
    padding-top: 4rem;
}

/* Features grid */
.toolkit-intro {
    text-align: center;
    margin-bottom: 2.5rem;
}

.toolkit-intro .wrap p,
.toolkit-intro p {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.75;
}

.toolkit-grid .wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
    counter-reset: feature-card;
}

.toolkit-tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.75rem 1.75rem 1.75rem 1.5rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
}

.toolkit-tile::before {
    counter-increment: feature-card;
    content: counter(feature-card, decimal-leading-zero);
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(13, 148, 136, 0.08);
    line-height: 1;
    pointer-events: none;
}

.toolkit-tile::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--brand-green), var(--accent));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.toolkit-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(13, 148, 136, 0.35);
}

.toolkit-tile:hover::after {
    opacity: 1;
}

.toolkit-glyph {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(118, 184, 63, 0.15) 0%, rgba(13, 148, 136, 0.1) 100%);
    border-radius: 14px;
    border: 1px solid rgba(13, 148, 136, 0.15);
}

.toolkit-glyph img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.toolkit-copy h2 {
    font-size: 1.1875rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.toolkit-copy p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.65;
}
.path-bar {
    padding: 1rem 0;
    background: var(--primary);
}

.path-trail {
    display: flex;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    gap: 0.25rem;
}

.path-node + .path-node::before {
    padding: 0 0.5rem;
    color: rgba(255, 255, 255, 0.5);
    content: "›";
}

.path-node a {
    color: rgba(255, 255, 255, 0.85);
}

.path-node a:hover {
    color: var(--white);
    text-decoration: underline;
}

.path-node.active {
    color: var(--white);
    font-weight: 600;
}

/* Download section – prominent CTA */
.fetch-zone {
    background: linear-gradient(180deg, var(--surface) 0%, rgba(13, 148, 136, 0.06) 100%);
    padding: 5.5rem 0;
    text-align: center;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.fetch-zone h1,
.fetch-zone h2 {
    font-size: clamp(1.875rem, 3.5vw, 2.5rem);
    margin-bottom: 1rem;
    color: var(--primary);
}

.block-blurb-soft {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 2rem;
    line-height: 1.75;
}

.fetch-card {
    margin: 2rem auto;
    padding: 2.5rem 3rem;
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 2px solid rgba(13, 148, 136, 0.2);
    display: inline-block;
    box-shadow: var(--shadow-md);
    max-width: 480px;
    width: 100%;
}

.fetch-bullets {
    display: grid;
    gap: 0.65rem;
    text-align: left;
    margin: 0 auto 1.75rem;
    max-width: 320px;
    list-style: none;
}

.fetch-bullets li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
}

.fetch-bullets li::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: rgba(118, 184, 63, 0.2);
    color: var(--brand-green);
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 800;
    flex-shrink: 0;
}

.cta-roomy {
    font-size: 1.125rem;
    padding: 18px 36px;
}

.fine-print {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.fetch-legal {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Languages – pill grid */
.tongues-band {
    background: var(--white);
    padding: 5rem 0;
}

.tongues-intro {
    text-align: center;
    margin-bottom: 2.5rem;
}

.tongues-intro h2 {
    margin-bottom: 0.75rem;
}

.tongues-intro p {
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
}

.tongues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.tongue-card {
    display: flex;
    flex-direction: column;
    padding: 1.35rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.2s ease;
    background: var(--white);
    box-shadow: var(--shadow);
}

.tongue-card:hover {
    border-color: var(--accent);
    background: rgba(13, 148, 136, 0.04);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.tongue-name {
    font-weight: 600;
    color: var(--text);
    font-size: 0.9375rem;
}

.tongue-action {
    font-size: 0.8125rem;
    color: var(--primary);
    margin-top: 0.25rem;
}

/* How to Use – numbered cards, left border accent */
.onboarding-band,
.velocity-band {
    background: var(--surface-alt);
    padding: 5rem 0;
}

.onboarding-intro,
.velocity-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.onboarding-intro h2,
.velocity-intro h2 {
    margin-bottom: 0.75rem;
}

.onboarding-intro p,
.velocity-intro p {
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto;
}

.onboarding-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.onboarding-card {
    background: var(--white);
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    border-left: 4px solid var(--brand-green);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.onboarding-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.onboarding-glyph {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(118, 184, 63, 0.12);
    border-radius: 12px;
}

.onboarding-glyph img {
    height: 28px;
    width: 28px;
    margin-bottom: 0;
}

.onboarding-copy h3 {
    font-size: 1.0625rem;
    margin-bottom: 0.5rem;
}

.onboarding-copy p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.velocity-list ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.velocity-list li {
    background: var(--white);
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    border-top: 4px solid var(--accent);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.velocity-list li:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.velocity-list li h3 {
    font-size: 1.0625rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.velocity-list li p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Technical section */
.admin-notes-band {
    padding: 5rem 0;
    background: var(--white);
    border-top: 1px solid var(--border);
}

.admin-notes-band h2 {
    margin-bottom: 0.5rem;
}

.admin-notes-band > .wrap > p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.shell-example {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.shell-example h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.shell-example p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.shell-example pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.25rem;
    border-radius: 8px;
    overflow-x: auto;
    font-family: "JetBrains Mono", "Fira Code", Consolas, monospace;
    font-size: 0.875rem;
}

.copy-snippet-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8125rem;
    transition: background 0.2s;
}

.copy-snippet-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* FAQ – accordion cards */
.faq-stack-band {
    background: var(--surface);
    padding: 5rem 0;
}

.faq-intro {
    text-align: center;
    margin-bottom: 2.5rem;
}

.faq-intro h2 {
    margin-bottom: 0.75rem;
}

.faq-intro p {
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--white);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item[open] {
    border-color: rgba(13, 148, 136, 0.35);
    box-shadow: var(--shadow-md);
}

.faq-item summary {
    padding: 1.25rem 3rem 1.25rem 1.5rem;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
    background: var(--white);
    transition: background 0.15s, color 0.15s;
    list-style: none;
    position: relative;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 148, 136, 0.1);
    color: var(--accent);
    border-radius: 8px;
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1;
}

.faq-item[open] summary::after {
    content: "−";
    background: var(--accent);
    color: var(--white);
}

.faq-item summary:hover {
    background: var(--surface-alt);
}

.faq-body {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border);
    background: var(--white);
}

.faq-body p,
.faq-body ul {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.faq-body ul {
    margin-top: 0.75rem;
    padding-left: 1.25rem;
}

.faq-body li {
    margin-bottom: 0.35rem;
    list-style: disc;
}

/* Reviews – marquee */
.voices-band {
    background: var(--surface-alt);
    padding: 5rem 0;
    overflow: hidden;
}

.voices-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.voices-intro h2 {
    margin-bottom: 0.75rem;
}

.voices-intro p {
    color: var(--text-muted);
}

.voices-scroll {
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.voices-rail {
    display: flex;
    width: max-content;
    gap: 1.5rem;
    animation: scroll 45s linear infinite;
}

.voices-rail:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.voice-card {
    background: var(--white);
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    width: 360px;
    flex-shrink: 0;
    border: 1px solid var(--border);
    position: relative;
}

.voice-card::before {
    content: "“";
    position: absolute;
    top: 0.75rem;
    left: 1.25rem;
    font-size: 3rem;
    line-height: 1;
    color: rgba(13, 148, 136, 0.15);
    font-family: Georgia, serif;
}

.voice-text {
    font-size: 0.9375rem;
    color: var(--text);
    line-height: 1.65;
    padding-top: 1.5rem;
}

.voice-byline {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.voice-author {
    font-weight: 600;
    color: var(--primary);
}

.voice-date {
    color: var(--text-muted);
}

/* About / Author */
.credit-band {
    background: var(--white);
    padding: 5rem 0;
    text-align: center;
}

.credit-band h2 {
    margin-bottom: 1.5rem;
}

.credit-card {
    max-width: 720px;
    margin: 0 auto;
    padding: 2.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: left;
}

.credit-header h3 {
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.credit-title {
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.credit-card p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Support (shared) */
.assist-body {
    padding: 5rem 0;
}

.assist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.assist-card h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.assist-card ul li {
    margin-bottom: 0.5rem;
}

.assist-mail {
    text-align: center;
    margin-top: 3rem;
}

/* Footer – dark slate */
footer {
    background: #0f172a;
    color: rgba(255, 255, 255, 0.85);
    padding: 3rem 0;
    text-align: center;
}

.page-end-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.page-end-logo {
    height: 32px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.page-end-inner p {
    font-size: 0.9375rem;
}

.page-end-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.5rem;
    margin-bottom: 0.75rem;
}

.page-end-links a {
    color: var(--accent-light);
    text-decoration: none;
    font-size: 0.95rem;
}

.page-end-links a:hover {
    text-decoration: underline;
}

.masthead-identity .wordmark-text {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.page-end-notice {
    background: #fef3c7;
    border-bottom: 1px solid #f59e0b;
    color: #78350f;
    font-size: 0.875rem;
    line-height: 1.5;
    padding: 0.75rem 1rem;
    text-align: center;
}

.page-end-notice p {
    margin: 0 auto;
    max-width: var(--max-width);
}

.page-end-notice strong {
    font-weight: 700;
}

.page-end-legal {
    margin-top: 1rem;
}

.page-end-legal a {
    color: var(--accent-light);
    margin: 0 0.5rem;
}

.page-end-legal a:hover {
    color: var(--white);
    text-decoration: underline;
}

.page-end-stamp {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0.5rem 0 0;
}

/* Mobile */
@media (max-width: 768px) {
    .intro-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .intro-copy {
        max-width: 100%;
    }

    .intro-cta-row {
        justify-content: center;
    }

    .intro-perks {
        justify-content: center;
    }

    .block-heading h2::after,
    .block-heading h1::after {
        margin-left: auto;
        margin-right: auto;
    }

    .toolkit-lead-copy.block-heading {
        text-align: center;
    }

    .toolkit-lead-copy.block-heading h1::after {
        margin-left: auto;
        margin-right: auto;
    }

    .intro-visual {
        justify-content: center;
    }

    .toolkit-lead-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .toolkit-lead-copy p {
        margin: 0 auto;
    }

    section {
        padding: 3.5rem 0;
    }
}

/* RTL (Arabic) */
html[dir="rtl"] {
    --direction: rtl;
}

html[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .path-node + .path-node::before {
    content: "‹";
}

html[dir="rtl"] .toolkit-tile::before {
    right: auto;
    left: 1.25rem;
}

html[dir="rtl"] .faq-item summary::after {
    right: auto;
    left: 1.25rem;
}

html[dir="rtl"] .onboarding-card {
    border-left: none;
    border-right: 4px solid var(--accent);
}

html[dir="rtl"] .velocity-list li {
    border-top: 4px solid var(--accent);
}

html[dir="rtl"] .copy-snippet-btn {
    right: auto;
    left: 12px;
}

@media (max-width: 768px) {
    html[dir="rtl"] .masthead-links,
    html[dir="rtl"] .masthead-menu {
        right: auto;
        left: 0;
        transform: translateX(-100%);
    }

    html[dir="rtl"] .masthead-links.active,
    html[dir="rtl"] .masthead-menu.active {
        transform: translateX(0);
    }

    html[dir="rtl"] .lang-picker-menu a {
        padding-right: 1.5rem;
        padding-left: 1rem;
    }
}

html[dir="rtl"] .credit-card {
    text-align: right;
}

html[dir="rtl"] .voices-scroll {
    mask-image: linear-gradient(to left, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to left, transparent, black 8%, black 92%, transparent);
}

html[dir="rtl"] .voices-rail {
    animation: scroll-rtl 45s linear infinite;
}

@keyframes scroll-rtl {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}


/* Structural wrappers added during layout refresh */
.skip-to-main {
    position: absolute;
    left: -999px;
    top: 8px;
    z-index: 2000;
    background: var(--white);
    color: var(--primary-deep);
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 700;
}
.skip-to-main:focus {
    left: 16px;
}
.chrome-inner,
.intro-stack {
    display: contents;
}
