/* ============================================================
   RankFlow LLC — Design System
   Black/green, Apple-grade typography and spacing
   ============================================================ */

:root {
    --black:      #000000;
    --black-2:    #0a0a0a;
    --black-3:    #111111;
    --card-bg:    #1c1c1e;
    --card-bg-2:  #2c2c2e;
    --white:      #f5f5f7;
    --white-2:    #d1d1d6;
    --white-3:    rgba(255,255,255,.6);
    --white-4:    rgba(255,255,255,.32);
    --green:      #00e676;
    --green-dim:  rgba(0,230,118,.12);
    --green-dim2: rgba(0,230,118,.06);
    --border:     rgba(255,255,255,.08);
    --border-2:   rgba(255,255,255,.14);

    --font:       -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
    --font-mono:  "SF Mono", "Fira Code", Menlo, monospace;

    --h1:   clamp(3rem, 7vw, 6.5rem);
    --h2:   clamp(2rem, 4.5vw, 3.5rem);
    --h3:   clamp(1.25rem, 2.5vw, 1.75rem);
    --body: 1rem;
    --sm:   .875rem;
    --xs:   .75rem;

    --sp1:  8px;
    --sp2:  16px;
    --sp3:  24px;
    --sp4:  32px;
    --sp5:  48px;
    --sp6:  64px;
    --sp7:  80px;
    --sp8:  96px;
    --sp9:  120px;
    --sp10: 160px;

    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 28px;
    --r-full: 9999px;

    --nav-h: 52px;
    --max-w: 1200px;
    --max-prose: 740px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; overflow-x: hidden; max-width: 100vw; }
body {
    background: var(--black);
    color: var(--white);
    font-family: var(--font);
    font-size: var(--body);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
/* Lock page width — nothing should ever overflow horizontally */
img, video, iframe, table { max-width: 100%; }
pre, code { max-width: 100%; overflow-x: auto; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea, select {
    font: inherit;
    border: none;
    background: none;
    outline: none;
    color: inherit;
}

/* ── Layout ── */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--sp4);
}
.container--narrow { max-width: 860px; }
.container--prose  { max-width: var(--max-prose); }

/* ── Nav ── */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--nav-h);
    background: rgba(12,12,12,.97);
    backdrop-filter: saturate(180%) blur(24px);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    border-bottom: 1px solid rgba(255,255,255,.1);
    display: flex;
    align-items: center;
}
.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp3);
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--sp4);
}
.nav__logo {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -.02em;
    color: #fff;
    white-space: nowrap;
    flex-shrink: 0;
}
.nav__logo span { color: var(--green); }
.nav__links {
    display: flex;
    align-items: center;
    gap: 2px;
}
.nav__link {
    font-size: .8rem;
    font-weight: 500;
    color: rgba(255,255,255,.72);
    padding: 7px 13px;
    border-radius: var(--r-full);
    transition: color .18s, background .18s;
    white-space: nowrap;
}
.nav__link:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav__link--cta {
    color: #000;
    background: var(--green);
    font-weight: 700;
    padding: 7px 18px;
    margin-left: 8px;
}
.nav__link--cta:hover { background: #33eb91; color: #000; transform: none; }
.nav__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    flex-shrink: 0;
}
.nav__hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
}
.nav--open .nav__hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav--open .nav__hamburger span:nth-child(2) { opacity: 0; }
.nav--open .nav__hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ── */
.hero {
    padding: calc(var(--nav-h) + var(--sp10)) 0 var(--sp10);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero--left { text-align: left; }
.hero__eyebrow {
    display: inline-block;
    font-size: var(--xs);
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: var(--sp3);
}
.hero__h1 {
    font-size: var(--h1);
    font-weight: 700;
    letter-spacing: -.04em;
    line-height: 1.03;
    color: var(--white);
    margin-bottom: var(--sp4);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.hero--left .hero__h1 { margin-left: 0; }
.hero__h1 .accent { color: var(--green); }
.hero__sub {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--white-3);
    max-width: 640px;
    margin: 0 auto var(--sp5);
    line-height: 1.55;
    font-weight: 400;
}
.hero--left .hero__sub { margin-left: 0; }
.hero__actions {
    display: flex;
    gap: var(--sp2);
    justify-content: center;
    flex-wrap: wrap;
}
.hero--left .hero__actions { justify-content: flex-start; }
.hero__noise {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0,230,118,.08) 0%, transparent 70%);
    pointer-events: none;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--r-full);
    font-size: var(--sm);
    font-weight: 600;
    letter-spacing: .01em;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
    text-decoration: none;
}
.btn--primary {
    background: var(--green);
    color: var(--black);
}
.btn--primary:hover { background: #33eb91; transform: translateY(-1px); }
.btn--ghost {
    background: transparent;
    color: var(--white-3);
    border: 1px solid var(--border-2);
}
.btn--ghost:hover { color: var(--white); border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.04); }
.btn--sm { padding: 10px 20px; font-size: var(--xs); }
.btn--lg { padding: 18px 36px; font-size: 1rem; }

/* ── Section ── */
.section {
    padding: var(--sp9) 0;
}
.section--tight { padding: var(--sp6) 0; }
.section--dark { background: var(--black-2); }
.section--card { background: var(--black-3); }
.section__label {
    font-size: var(--xs);
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: var(--sp2);
}
.section__h2 {
    font-size: var(--h2);
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1.08;
    margin-bottom: var(--sp4);
    color: var(--white);
}
.section__sub {
    font-size: 1.1rem;
    color: var(--white-3);
    max-width: 600px;
    line-height: 1.55;
}
.text-center { text-align: center; }
.text-center .section__sub { margin: 0 auto; }

/* ── Cards ── */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: var(--sp5);
    transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--border-2); transform: translateY(-3px); }
.card--green-top { border-top: 2px solid var(--green); }

/* ── Grid helpers ── */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: var(--sp4); }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp4); }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--sp3); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill,minmax(300px,1fr)); gap: var(--sp4); }
.grid-auto-sm { display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: var(--sp3); }

/* ── Feature list (checkmarks) ── */
.check-list { display: flex; flex-direction: column; gap: var(--sp2); }
.check-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--sp2);
    color: var(--white-2);
    font-size: var(--sm);
    line-height: 1.5;
}
.check-list li::before {
    content: '';
    display: block;
    width: 18px;
    height: 18px;
    min-width: 18px;
    border-radius: 50%;
    background: var(--green-dim);
    border: 1px solid rgba(0,230,118,.3);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2300e676' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    margin-top: 2px;
}

/* ── Stats ── */
.stat-block { text-align: center; }
.stat-block__num {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -.04em;
    color: var(--white);
    line-height: 1;
}
.stat-block__num span { color: var(--green); }
.stat-block__label {
    font-size: var(--sm);
    color: var(--white-4);
    margin-top: 6px;
}

/* ── Service cards ── */
.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: var(--sp5);
    display: flex;
    flex-direction: column;
    gap: var(--sp3);
    transition: border-color .25s, transform .25s;
    text-decoration: none;
    color: inherit;
    position: relative;
}
.service-card:hover { border-color: rgba(0,230,118,.3); transform: translateY(-3px); }
.service-card__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--r-md);
    background: var(--green-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}
.service-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -.02em;
    margin: 0;
}
.service-card__body {
    font-size: var(--sm);
    color: var(--white-3);
    line-height: 1.6;
    flex: 1;
    margin: 0;
}
.service-card__link {
    font-size: var(--xs);
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--green);
    text-transform: uppercase;
}

/* ── Stretched-link pattern — keeps anchor text short & unique while leaving the whole card clickable ── */
.card-link {
    color: inherit;
    text-decoration: none;
}
.card-link::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}
.card-link:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 4px;
    border-radius: var(--r-sm);
}

/* ── City link card ── */
.city-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--sp3) var(--sp4);
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    text-decoration: none;
    color: var(--white);
    font-size: var(--sm);
    font-weight: 600;
    transition: border-color .2s, background .2s;
}
.city-link:hover { border-color: var(--border-2); background: var(--card-bg-2); }
.city-link__arr { color: var(--white-4); font-size: 18px; }

/* ── Process steps ── */
.process-step {
    display: flex;
    gap: var(--sp4);
    align-items: flex-start;
}
.process-step__num {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: var(--green-dim);
    border: 1px solid rgba(0,230,118,.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--sm);
    font-weight: 700;
    color: var(--green);
}
.process-step__content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
}
.process-step__content p {
    font-size: var(--sm);
    color: var(--white-3);
    line-height: 1.55;
}

/* ── FAQ ── */
.faq { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--sp4) 0;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    gap: var(--sp3);
    background: none;
    width: 100%;
    text-align: left;
}
.faq-q__icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--border-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--green);
    transition: transform .3s;
}
.faq-q[aria-expanded="true"] .faq-q__icon { transform: rotate(45deg); }
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}
.faq-a__inner {
    padding: 0 0 var(--sp4);
    color: var(--white-3);
    font-size: var(--sm);
    line-height: 1.7;
}

/* ── Contact form ── */
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
    font-size: .72rem;
    font-weight: 600;
    color: rgba(255,255,255,.45);
    letter-spacing: .06em;
    text-transform: uppercase;
}
.form-input {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;
    padding: 13px 16px;
    color: #fff;
    font-size: .9rem;
    line-height: 1.4;
    transition: border-color .18s, background .18s;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
}
.form-input:focus {
    border-color: rgba(0,230,118,.55);
    background: rgba(0,230,118,.04);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,230,118,.08);
}
.form-input::placeholder { color: rgba(255,255,255,.28); }
.form-input option { background: #1c1c1e; color: #f5f5f7; }
textarea.form-input { min-height: 110px; resize: vertical; }
.form-submit {
    width: 100%;
    padding: 15px 24px;
    background: var(--green);
    color: #000;
    border-radius: var(--r-full);
    font-weight: 700;
    font-size: .95rem;
    cursor: pointer;
    transition: background .18s, transform .15s, box-shadow .18s;
    border: none;
    margin-top: 4px;
}
.form-submit:hover {
    background: #33eb91;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0,230,118,.25);
}
.form-submit:active { transform: translateY(0); }

/* ── Breadcrumb ── */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: var(--xs);
    color: var(--white-4);
    margin-bottom: var(--sp4);
}
.breadcrumb a { color: var(--white-4); transition: color .15s; }
.breadcrumb a:hover { color: var(--white-3); }
.breadcrumb__sep { color: var(--white-4); font-size: 10px; }

/* ── Tag / badge ── */
.tag {
    display: inline-block;
    font-size: var(--xs);
    font-weight: 700;
    letter-spacing: .04em;
    padding: 4px 12px;
    border-radius: var(--r-full);
    background: var(--green-dim);
    color: var(--green);
    border: 1px solid rgba(0,230,118,.2);
}

/* ── Location content layout (2-col + sidebar) ── */
.loc-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: var(--sp7);
    align-items: start;
}
.loc-sidebar { position: sticky; top: calc(var(--nav-h) + 24px); display: flex; flex-direction: column; gap: var(--sp4); }

/* ── Prose ── */
.prose h2 { font-size: var(--h3); font-weight: 700; letter-spacing: -.025em; color: var(--white); margin: var(--sp6) 0 var(--sp3); }
.prose h3 { font-size: 1.2rem; font-weight: 700; color: var(--white); margin: var(--sp4) 0 var(--sp2); }
.prose p { color: var(--white-3); line-height: 1.75; margin-bottom: var(--sp3); }
.prose ul { display: flex; flex-direction: column; gap: var(--sp2); margin-bottom: var(--sp4); }
.prose ul li {
    display: flex;
    align-items: flex-start;
    gap: var(--sp2);
    color: var(--white-3);
    font-size: var(--sm);
    line-height: 1.6;
}
.prose ul li::before {
    content: '→';
    color: var(--green);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ── Footer ── */
.footer {
    background: var(--black-2);
    border-top: 1px solid var(--border);
    padding: var(--sp7) 0 var(--sp4);
}
.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--sp6);
    margin-bottom: var(--sp6);
}
.footer__brand {}
.footer__brand-name { font-size: 1.1rem; font-weight: 700; color: var(--white); margin-bottom: var(--sp2); }
.footer__brand-name span { color: var(--green); }
.footer__brand-desc { font-size: var(--sm); color: var(--white-4); line-height: 1.6; max-width: 280px; }
.footer__col-title { font-size: var(--xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--white-4); margin-bottom: var(--sp3); }
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__link { font-size: var(--sm); color: var(--white-3); transition: color .2s; }
.footer__link:hover { color: var(--white); }
.footer__bottom {
    border-top: 1px solid var(--border);
    padding-top: var(--sp4);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--sp2);
}
.footer__copy { font-size: var(--xs); color: var(--white-4); }
.footer__legal { display: flex; gap: var(--sp3); }
.footer__legal a { font-size: var(--xs); color: var(--white-4); }

/* ── Blog / Library ── */
.article-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color .2s, transform .2s;
    text-decoration: none;
    color: inherit;
    position: relative;
}
.article-card:hover { border-color: var(--border-2); transform: translateY(-3px); }
.article-card__body { padding: var(--sp4); flex: 1; display: flex; flex-direction: column; gap: var(--sp2); }
.article-card__tag { font-size: var(--xs); font-weight: 700; color: var(--green); letter-spacing: .06em; text-transform: uppercase; }
.article-card__title { font-size: 1.05rem; font-weight: 700; color: var(--white); line-height: 1.3; margin: 0; }
.article-card__excerpt { font-size: var(--sm); color: var(--white-3); line-height: 1.6; flex: 1; }
.article-card__read { font-size: var(--xs); font-weight: 700; color: var(--green); margin-top: auto; }

/* ── Page hero (inner pages) ── */
.page-hero {
    padding: calc(var(--nav-h) + var(--sp8)) 0 var(--sp7);
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 50% at 50% -5%, rgba(0,230,118,.06) 0%, transparent 65%);
    pointer-events: none;
}

/* ── Divider ── */
.divider { height: 1px; background: var(--border); margin: var(--sp5) 0; }

/* ── Notch box ── */
.notch-box {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: var(--sp5) var(--sp6);
}

/* ── Strip ── */
.strip {
    background: var(--black-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: var(--sp4) 0;
}
.strip__inner {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp2);
    align-items: center;
    justify-content: center;
}
.strip__pill {
    background: rgba(255,255,255,.05);
    border: 1px solid var(--border-2);
    border-radius: var(--r-full);
    padding: 6px 16px;
    font-size: var(--xs);
    font-weight: 600;
    color: var(--white-3);
    letter-spacing: .04em;
}

/* ── Sidebar card ── */
.sidebar-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: var(--sp4);
}
.sidebar-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--sp3);
    padding-bottom: var(--sp2);
    border-bottom: 1px solid var(--border);
}
.sidebar-links { display: flex; flex-direction: column; gap: 10px; }
.sidebar-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--sm);
    color: var(--white-3);
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    transition: color .15s;
}
.sidebar-links a:last-child { border-bottom: none; }
.sidebar-links a:hover { color: var(--green); }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2,1fr); }
    .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--sp4); }
    .loc-layout { grid-template-columns: 1fr; }
    .loc-sidebar { position: static; }
}
@media (max-width: 768px) {
    :root { --sp9: 72px; --sp10: 88px; }
    /* Mobile nav dropdown — position:absolute relative to .nav (avoids
       the backdrop-filter containing-block bug that clipped fixed children) */
    .nav__links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: auto;
        background: rgba(10,10,10,.98);
        padding: 14px 16px 28px;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        border-top: 1px solid rgba(255,255,255,.08);
        border-bottom: 1px solid rgba(255,255,255,.08);
        max-height: calc(100vh - var(--nav-h));
        overflow-y: auto;
        overscroll-behavior: contain;
        z-index: 999;
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        box-shadow: 0 24px 48px rgba(0,0,0,.4);
    }
    .nav__links.open { display: flex !important; }
    .nav__link {
        display: block;
        width: 100%;
        padding: 14px 18px;
        border-radius: 12px;
        font-size: 1rem;
        color: rgba(255,255,255,.85);
        white-space: normal;
        text-align: left;
    }
    .nav__link:hover, .nav__link:active { background: rgba(255,255,255,.06); color: #fff; }
    .nav__link--cta { background: var(--green); color: #000; margin-left: 0; margin-top: 10px; text-align: center; font-weight: 700; }
    .nav__hamburger { display: flex; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; }
    .footer__bottom { flex-direction: column; align-items: flex-start; }
    .hero { padding: calc(var(--nav-h) + var(--sp7)) 0 var(--sp7); }
    .hero__h1 { letter-spacing: -.03em; }
    .loc-layout > aside { order: -1; }
}
@media (max-width: 768px) {
    .contact-split { grid-template-columns: 1fr !important; }
    .contact-split > *:first-child { order: 2; }
    .contact-split > *:last-child  { order: 1; }
}
@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; gap: 12px; }
    .loc-layout { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .container { padding: 0 18px; }
    .nav__inner { padding: 0 18px; }
    .section { padding: var(--sp7) 0; }
    .card { padding: var(--sp4); }
    .hero__h1 { letter-spacing: -.025em; font-size: clamp(2rem, 9vw, 3rem); }
    .hero__h1 br { display: none; }
    .hero__sub { font-size: 1rem; }
    .hero { padding: calc(var(--nav-h) + var(--sp6)) 0 var(--sp6); }
    .section__h2 { font-size: clamp(1.5rem, 6vw, 2rem); }
    .section__h2 br { display: none; }
}
@media (max-width: 360px) {
    .container { padding: 0 14px; }
    .nav__inner { padding: 0 14px; }
}

/* ─────────────────────────────────────────────────────
   COMPREHENSIVE RESPONSIVE FIXES — kill horizontal cut-off
   ───────────────────────────────────────────────────── */

/* 1. Force ALL inline multi-column grids to stack on mobile/landscape phones */
@media (max-width: 900px) {
    [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: var(--sp3) !important;
    }
    /* Class-based grids stack too — catches anything missed before */
    .grid-2, .grid-3, .grid-4,
    .hp-value-grid, .loc-layout, .contact-split,
    .career-card, .footer__grid, .form-row,
    .ind-box-grid {
        grid-template-columns: 1fr !important;
    }
    /* Process steps: 2 columns on tablet/landscape phone, 1 on portrait */
    .process-grid { grid-template-columns: 1fr 1fr !important; gap: 16px !important; }
}
@media (max-width: 600px) {
    .process-grid { grid-template-columns: 1fr !important; }
}

/* 2. Prevent grid blowout — long content shouldn't push parent wider */
@media (max-width: 900px) {
    .container > *,
    section > .container > *,
    .grid-2 > *, .grid-3 > *, .grid-4 > *,
    .grid-auto > *, .grid-auto-sm > * {
        min-width: 0;
        max-width: 100%;
    }
    /* Force any long word/URL to wrap */
    h1, h2, h3, h4, h5, h6, p, li, span, td, th, code, pre {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    /* All media inside content blocks scales down */
    img, iframe, video, embed, object, picture, svg {
        max-width: 100% !important;
        height: auto;
    }
    /* Iframes/embeds with set heights — keep their height but cap width */
    iframe[width], iframe[height] { width: 100% !important; max-width: 100% !important; }
}

/* 3. Mobile content scaling — text and spacing reduce together */
@media (max-width: 768px) {
    .section { padding: var(--sp6) 0; }
    .page-hero { padding: calc(var(--nav-h) + var(--sp5)) 0 var(--sp5); }
    .card, .service-card, .article-card, .career-card, .career-form-wrap {
        padding: var(--sp3);
    }
    /* Headlines + body scale */
    .hero__h1 { font-size: clamp(1.85rem, 7vw, 2.75rem) !important; line-height: 1.08; }
    .section__h2 { font-size: clamp(1.55rem, 6vw, 2rem) !important; line-height: 1.15; }
    /* Inline max-widths on hero headings — let them flow full-width */
    [class*="hero__h1"][style*="max-width"] { max-width: 100% !important; }
    /* Hide forced line breaks that wreck small-screen layout */
    .hero__h1 br, .section__h2 br { display: none; }
    /* Strip pills wrap cleanly */
    .strip__inner { flex-wrap: wrap; justify-content: center; }
    /* NAP block stacks */
    .nap-block { gap: var(--sp2); }
    .nap-sep { display: none; }
}

/* 4. Tiny phones — final tighten */
@media (max-width: 380px) {
    .container { padding: 0 12px; }
    .nav__inner { padding: 0 12px; }
    .hero__h1 { font-size: clamp(1.65rem, 8vw, 2rem) !important; }
    .section__h2 { font-size: clamp(1.4rem, 7vw, 1.75rem) !important; }
    .btn, .btn--lg { padding: 12px 20px; font-size: .85rem; }
    .form-input, .form-submit { font-size: .9rem; padding: 12px 14px; }
}

/* 5. Landscape phones (short viewport) — slash hero vertical spacing */
@media (max-height: 500px) and (orientation: landscape) {
    .hero, .hero--compact {
        padding: calc(var(--nav-h) + 24px) 0 24px !important;
        min-height: auto !important;
    }
    .page-hero {
        padding: calc(var(--nav-h) + 32px) 0 32px !important;
    }
    .hero__h1 { font-size: clamp(1.5rem, 4vw, 2.25rem) !important; margin-bottom: 12px !important; }
    .hero__sub { margin-bottom: 16px !important; }
    .section { padding: var(--sp5) 0; }
}

/* ── Compact hero (homepage) ── */
.hero--compact {
    padding: calc(var(--nav-h) + var(--sp6)) 0 var(--sp5);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero--compact .hero__eyebrow { margin-bottom: var(--sp2); }
.hero--compact .hero__h1 {
    font-size: clamp(2.25rem, 5.5vw, 4.75rem);
    margin-bottom: var(--sp3);
    max-width: 820px;
    line-height: 1.05;
}
.hero--compact .hero__sub {
    font-size: clamp(1rem, 1.7vw, 1.1rem);
    margin: 0 auto var(--sp4);
    max-width: 580px;
    line-height: 1.5;
}
.hero__trust {
    margin: var(--sp3) auto 0;
    font-size: .78rem;
    color: rgba(255,255,255,.4);
    letter-spacing: .04em;
}

/* ── Hero pill-bar form (Name | Email | CTA) ── */
.hero-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: center;
    gap: 6px;
    max-width: 640px;
    margin: 0 auto;
    padding: 6px;
    background: rgba(20,20,20,.55);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--r-full);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    text-align: left;
    box-shadow: 0 10px 32px rgba(0,0,0,.30);
}
.hero-form .form-input,
.hero-form .form-submit {
    margin: 0;
    height: 48px;
    padding: 0 18px;
    font-size: .92rem;
    border-radius: var(--r-full);
    line-height: 1.2;
    border: none;
    transition: background .18s, color .18s, box-shadow .18s;
}
.hero-form .form-input {
    background: transparent;
    color: var(--white);
    width: 100%;
    box-shadow: none;
}
.hero-form .form-input:focus {
    background: rgba(255,255,255,.07);
    outline: none;
    box-shadow: none;
}
.hero-form .form-input::placeholder { color: rgba(255,255,255,.45); }
.hero-form .form-submit {
    width: auto;
    padding: 0 22px;
    background: var(--green);
    color: #000;
    cursor: pointer;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: none;
}
.hero-form .form-submit:hover {
    background: #33eb91;
    transform: none;
    box-shadow: 0 6px 18px rgba(0,230,118,.30);
}
.hero-form .rfl-hp-field { display: none; }

@media (max-width: 640px) {
    .hero-form {
        grid-template-columns: 1fr;
        padding: 10px;
        gap: 8px;
        border-radius: 18px;
        max-width: 100%;
    }
    .hero-form .form-input,
    .hero-form .form-submit {
        height: 50px;
        width: 100%;
    }
}

/* ─── Hero multi-step lead capture (Step 2 + final) ─── */
.hero-form-wrap { width: 100%; max-width: 640px; margin: 0 auto; }

.hero-step2 {
    max-width: 560px;
    margin: 0 auto;
    padding: 28px 28px 22px;
    background: rgba(20,20,20,.65);
    border: 1px solid rgba(0,230,118,.22);
    border-radius: 22px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    text-align: left;
    box-shadow: 0 18px 50px rgba(0,0,0,.45);
    animation: rflFadeUp .35s ease-out;
}
.hero-step2__head { text-align: center; margin-bottom: 18px; }
.hero-step2__head h3 {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 6px;
    letter-spacing: -.01em;
    line-height: 1.25;
}
.hero-step2__head p {
    color: rgba(255,255,255,.65);
    font-size: .95rem;
    margin: 0 0 14px;
}
.hero-step2__call,
.hero-final__call {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    background: rgba(0,230,118,.08);
    border: 1px solid rgba(0,230,118,.28);
    border-radius: var(--r-full);
    color: var(--green);
    text-decoration: none;
    font-weight: 600;
    font-size: .92rem;
    transition: background .18s, border-color .18s, transform .15s;
}
.hero-step2__call:hover,
.hero-final__call:hover {
    background: rgba(0,230,118,.14);
    border-color: rgba(0,230,118,.45);
    transform: translateY(-1px);
}
.hero-step2__call strong,
.hero-final__call strong { color: var(--green); font-weight: 700; }

.hero-step2__divider {
    color: rgba(255,255,255,.5);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-align: center;
    margin: 18px 0 14px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.08);
}

.hero-step2-form { display: flex; flex-direction: column; gap: 10px; }
.hero-step2-form .form-input {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.10);
    color: #fff;
    height: 50px;
    padding: 0 18px;
    font-size: .92rem;
    border-radius: 12px;
    width: 100%;
    transition: background .18s, border-color .18s;
    -webkit-appearance: none;
    appearance: none;
}
.hero-step2-form textarea.form-input {
    height: auto;
    min-height: 84px;
    padding: 14px 18px;
    resize: vertical;
    line-height: 1.5;
    font-family: inherit;
}
.hero-step2-form select.form-input {
    cursor: pointer;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='rgba(255,255,255,.55)' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 36px;
}
.hero-step2-form .form-input:focus {
    background: rgba(255,255,255,.08);
    border-color: rgba(0,230,118,.45);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,230,118,.10);
}
.hero-step2-form .form-input::placeholder { color: rgba(255,255,255,.40); }
.hero-step2-form .form-submit {
    width: 100%;
    height: 54px;
    background: var(--green);
    color: #000;
    border: none;
    border-radius: var(--r-full);
    font-weight: 700;
    cursor: pointer;
    margin-top: 6px;
    font-size: .98rem;
    transition: background .18s, transform .15s, box-shadow .18s;
}
.hero-step2-form .form-submit:hover {
    background: #33eb91;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0,230,118,.25);
}
.hero-step2__skip {
    background: none;
    border: none;
    color: rgba(255,255,255,.45);
    font-size: .82rem;
    cursor: pointer;
    padding: 8px 6px 2px;
    text-align: center;
    transition: color .18s;
    width: 100%;
}
.hero-step2__skip:hover { color: rgba(255,255,255,.8); text-decoration: underline; }

/* Final thank-you state */
.hero-final {
    max-width: 520px;
    margin: 0 auto;
    padding: 36px 28px;
    background: rgba(20,20,20,.65);
    border: 1px solid rgba(0,230,118,.30);
    border-radius: 22px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    text-align: center;
    box-shadow: 0 18px 50px rgba(0,0,0,.45);
    animation: rflFadeUp .35s ease-out;
}
.hero-final__check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(0,230,118,.14);
    border: 1px solid rgba(0,230,118,.45);
    border-radius: 50%;
    color: var(--green);
    margin-bottom: 16px;
}
.hero-final h3 {
    color: #fff;
    font-size: 1.45rem;
    margin: 0 0 8px;
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.2;
}
.hero-final p {
    color: rgba(255,255,255,.7);
    font-size: 1rem;
    margin: 0 0 18px;
}

@keyframes rflFadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
    .hero-step2, .hero-final { padding: 22px 18px; max-width: 100%; }
    .hero-step2__head h3, .hero-final h3 { font-size: 1.2rem; }
    .hero-step2__call, .hero-final__call { font-size: .88rem; padding: 10px 16px; }
}

/* ── Careers page ── */
.career-list { display: grid; gap: var(--sp3); margin: var(--sp5) auto 0; max-width: 860px; }
.career-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: var(--sp4);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--sp3);
    align-items: center;
}
.career-card__title { font-size: 1.15rem; font-weight: 700; color: var(--white); margin: 0 0 6px; }
.career-card__meta { font-size: .82rem; color: var(--white-3); display: flex; gap: 12px; flex-wrap: wrap; }
.career-card__meta span::before { content: "·"; margin-right: 12px; color: var(--white-4); }
.career-card__meta span:first-child::before { content: ""; margin: 0; }
.career-card__desc { font-size: .9rem; color: var(--white-2); margin-top: 10px; line-height: 1.6; }
.career-card__apply { white-space: nowrap; }
@media (max-width: 600px) {
    .career-card { grid-template-columns: 1fr; }
    .career-card__apply { width: 100%; text-align: center; }
}

.career-form-wrap {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: var(--sp5);
    max-width: 720px;
    margin: var(--sp5) auto 0;
}
.form-file {
    background: rgba(255,255,255,.04);
    border: 2px dashed rgba(255,255,255,.18);
    border-radius: var(--r-md);
    padding: 22px 16px;
    text-align: center;
    cursor: pointer;
    transition: border-color .18s, background .18s;
}
.form-file:hover { border-color: rgba(0,230,118,.5); background: rgba(0,230,118,.04); }
.form-file__label { font-size: .85rem; color: var(--white-3); display: block; margin-bottom: 4px; }
.form-file__hint  { font-size: .72rem; color: var(--white-4); }
.form-file input[type="file"] { display: block; width: 100%; margin-top: 10px; color: var(--white-3); font-size: .82rem; }

/* ── Scroll-triggered fade ── */
.observe-fade {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .55s ease, transform .55s ease;
}
.observe-fade.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Animations ── */
@keyframes fade-up {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
.anim-fade-up { animation: fade-up .6s ease both; }
.anim-delay-1 { animation-delay: .1s; }
.anim-delay-2 { animation-delay: .2s; }
.anim-delay-3 { animation-delay: .3s; }

/* ── Form extras ── */
.rfl-hp-field {
    display: none !important;
    visibility: hidden;
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}
.form-fine {
    font-size: .72rem;
    color: rgba(255,255,255,.32);
    text-align: center;
    margin-top: 6px;
}
.form-error {
    background: rgba(255,80,80,.1);
    border: 1px solid rgba(255,80,80,.25);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: var(--sm);
    color: #ff8080;
    margin-bottom: 12px;
}
.form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: var(--sp5) 0;
    text-align: center;
    color: var(--green);
    font-weight: 600;
    font-size: 1rem;
}
.form-success p { color: var(--white-3); font-weight: 400; font-size: var(--sm); }

/* ── Industry cards ── */
.ind-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}
.ind-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 22px;
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    background: var(--card-bg);
    text-decoration: none;
    color: inherit;
    transition: transform .28s cubic-bezier(.22,.68,0,1.2), border-color .22s, background .22s;
    position: relative;
}
.ind-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0,230,118,.35);
    background: rgba(0,230,118,.04);
}
.ind-card__body {
    display: flex;
    align-items: center;
    gap: 12px;
}
.ind-card__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    flex-shrink: 0;
    opacity: .7;
    transition: opacity .22s;
}
.ind-card:hover .ind-card__dot { opacity: 1; }
.ind-card__label {
    font-size: .92rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -.01em;
    margin: 0;
}
.ind-card__arr {
    color: var(--green);
    font-size: 1rem;
    opacity: .6;
    transition: transform .2s, opacity .2s;
    flex-shrink: 0;
}
.ind-card:hover .ind-card__arr { transform: translateX(4px); opacity: 1; }

/* ── NAP block ── */
.nap-block {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp4);
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: var(--sp5) var(--sp6);
}
.nap-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}
.nap-item__label {
    font-size: var(--xs);
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--white-4);
}
.nap-item__value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
}
.nap-item__value a { color: var(--green); }
.nap-sep {
    width: 1px;
    height: 40px;
    background: var(--border-2);
    flex-shrink: 0;
}
@media (max-width: 640px) {
    .nap-sep { display: none; }
    .nap-block { flex-direction: column; text-align: center; }
    .ind-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 380px) {
    .ind-grid { grid-template-columns: 1fr; }
}

/* ── Homepage sections extra polish ── */
.hp-value-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp5);
    align-items: center;
}
@media (max-width: 860px) {
    .hp-value-grid { grid-template-columns: 1fr; }
}

/* ── Homepage industry box grid ── */
.ind-box-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp3);
}
.ind-box {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-top: 2px solid rgba(0,230,118,.35);
    border-radius: var(--r-xl);
    padding: var(--sp4) var(--sp4) var(--sp3);
    display: flex;
    flex-direction: column;
    gap: var(--sp2);
    text-decoration: none;
    color: inherit;
    transition: border-color .25s, transform .25s, box-shadow .25s;
}
.ind-box:hover {
    border-color: rgba(0,230,118,.45);
    border-top-color: var(--green);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,.4);
}
.ind-box__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -.02em;
    line-height: 1.25;
    margin: 0;
}
.ind-box__desc {
    font-size: var(--sm);
    color: var(--white-3);
    line-height: 1.6;
    flex: 1;
    margin: 0;
}
.ind-box__link {
    font-size: var(--xs);
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--green);
    text-transform: uppercase;
    margin-top: var(--sp1);
    display: inline-block;
    transition: letter-spacing .2s;
}
.ind-box:hover .ind-box__link { letter-spacing: .07em; }
@media (max-width: 1024px) {
    .ind-box-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
    .ind-box-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp2); }
}
@media (max-width: 420px) {
    .ind-box-grid { grid-template-columns: 1fr; }
}

/* ── Custom cursor (pointer devices only) ── */
@media (pointer: fine) {
    body, a, button, [role="button"] { cursor: none !important; }
}
.cursor-dot,
.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    opacity: 0;
    transition: opacity .4s;
    will-change: transform;
}
.cursor-dot {
    width: 7px;
    height: 7px;
    background: #00e676;
    transition: opacity .4s, width .18s, height .18s, background .18s;
}
.cursor-ring {
    width: 38px;
    height: 38px;
    border: 1.5px solid rgba(0,230,118,.55);
    transition: opacity .4s, width .22s, height .22s, border-color .22s;
    z-index: 99998;
}
.cursor-dot.is-visible,
.cursor-ring.is-visible { opacity: 1; }
.cursor-dot.on-hover {
    width: 5px;
    height: 5px;
    background: #fff;
}
.cursor-ring.on-hover {
    width: 52px;
    height: 52px;
    border-color: rgba(0,230,118,.9);
}
.cursor-dot.on-click { width: 10px; height: 10px; }
.cursor-ring.on-click { width: 28px; height: 28px; border-color: #00e676; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--black-2); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.25); }

/* ============================================================
   Accessibility — Skip link
   ============================================================ */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    background: var(--green);
    color: #000;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 700;
    font-size: .85rem;
    z-index: 9999;
    transition: top .15s;
}
.skip-link:focus { top: 16px; outline: 3px solid #fff; }

/* ============================================================
   Nav phone CTA — visible CTR booster on every page
   ============================================================ */
.nav__link--phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--green) !important;
    font-weight: 700;
    font-size: .82rem;
    padding: 6px 12px !important;
    border: 1px solid rgba(0,230,118,.3);
    border-radius: 999px;
    background: rgba(0,230,118,.05);
    transition: background .15s, border-color .15s, transform .15s;
}
.nav__link--phone:hover {
    background: rgba(0,230,118,.15);
    border-color: rgba(0,230,118,.6);
    transform: translateY(-1px);
}
.nav__link--phone svg { flex-shrink: 0; }
@media (max-width: 900px) { .nav__link--phone { display: none; } }

/* ============================================================
   AEO / GEO Quick-Answer box
   AI-search-friendly definitive answer block
   ============================================================ */
.quick-answer {
    background: linear-gradient(135deg, rgba(0,230,118,.08), rgba(0,230,118,.02));
    border: 1px solid rgba(0,230,118,.25);
    border-left: 3px solid var(--green);
    border-radius: var(--r-lg);
    padding: 24px 28px;
    margin: var(--sp4) 0;
    position: relative;
}
.quick-answer__label {
    display: inline-block;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--green);
    background: rgba(0,230,118,.1);
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 14px;
}
.quick-answer__q {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
    line-height: 1.4;
}
.quick-answer__a {
    font-size: .95rem;
    color: var(--white-2);
    line-height: 1.65;
}

/* Key Takeaways */
.key-takeaways {
    background: var(--black-3);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 20px 28px;
    margin: var(--sp4) 0;
}
.key-takeaways__label {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--white-3);
    margin-bottom: 12px;
}
.key-takeaways__list { display: flex; flex-direction: column; gap: 10px; }
.key-takeaways__list li {
    position: relative;
    padding-left: 24px;
    font-size: .92rem;
    color: var(--white-2);
    line-height: 1.55;
}
.key-takeaways__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 900;
}

/* Citation-friendly stat */
.stat-cite {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 20px;
    background: rgba(0,230,118,.04);
    border: 1px solid rgba(0,230,118,.2);
    border-radius: var(--r-md);
}
.stat-cite__num { font-size: 1.5rem; font-weight: 800; color: var(--green); line-height: 1; }
.stat-cite__label { font-size: .72rem; color: var(--white-3); }

/* main content wrapper — semantic landmark */
main#main-content { display: block; }

