/* Apex Networks — shared site styles */
:root {
    --orange: #F6721D;
    --orange-deep: #D9560A;
    --orange-ink: #B8480A;
    --orange-wash: #FEF1E7;
    --ink: #1D1F23;
    --body: #4B4E56;
    --muted: #70737B;
    --line: #E7E3DC;
    --paper: #FBFAF7;
    --card: #FFFFFF;
    --dark: #17191D;
    --dark-2: #22252B;
    --dark-line: #33373F;
    --on-dark: #C9CCD2;
    --radius: 14px;
    --wrap: 1180px;
    --font-head: "Apex Amp", "Archivo", "Helvetica Neue", Arial, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

@font-face { font-family: "Apex Amp"; src: local("Helvetica Neue Bold"), local("Arial Bold"), local("Arial"), local("Liberation Sans Bold"), local("DejaVu Sans Bold"); unicode-range: U+26; font-weight: 600 800; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    color: var(--body);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--orange-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--orange-deep); }
h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-stretch: 112%;
    color: var(--ink);
    line-height: 1.12;
    margin: 0 0 .5em;
    letter-spacing: -0.015em;
    text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 800; letter-spacing: -0.025em; }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
strong { color: var(--ink); font-weight: 600; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section.tight { padding: 64px 0; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--orange-ink); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 3px; background: var(--orange); transform: skewX(-30deg); }
.lede { font-size: 1.2rem; line-height: 1.6; color: var(--body); max-width: 62ch; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 200; background: #fff; padding: 10px 14px; border-radius: 8px; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font: 600 1rem/1 var(--font-body);
    padding: 15px 24px; border-radius: 10px; border: 1.5px solid transparent;
    text-decoration: none; cursor: pointer; transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-deep); color: #fff; transform: translateY(-1px); }
.btn-ghost { border-color: #CFCAC1; color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.on-dark .btn-ghost, .btn-ghost.light { border-color: #555A63; color: #fff; }
.on-dark .btn-ghost:hover, .btn-ghost.light:hover { border-color: #fff; color: #fff; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.arrow-link { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.arrow-link::after { content: "→"; transition: transform .18s; }
.arrow-link:hover::after { transform: translateX(4px); }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand img { height: 44px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links > li > a, .nav-links > li > button {
    font: 500 .97rem/1 var(--font-body); color: var(--ink);
    background: none; border: 0; cursor: pointer; text-decoration: none;
    padding: 12px 14px; border-radius: 8px; display: inline-flex; align-items: center; gap: 6px;
}
.nav-links > li > a:hover, .nav-links > li > button:hover, .has-menu.open > button { background: #F3F0EA; color: var(--ink); }
.nav-links > li > a[aria-current="page"] { color: var(--orange-ink); }
.nav-home { display: none; }  /* desktop: the logo is the home link; shown in the phone menu below */
.nav-links > li > a.btn { padding: 12px 18px; margin-left: 10px; color: #fff; background: var(--orange); font-weight: 600; }
.nav-links > li > a.btn:hover { background: var(--orange-deep); color: #fff; }
.caret { width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .18s; }
.has-menu.open .caret { transform: rotate(225deg) translateY(-1px) translateX(-3px); }
.mega {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 50px -30px rgba(29,31,35,.25);
    display: none;
}
.has-menu.open .mega { display: block; }
.mega-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; padding: 32px 24px 36px; max-width: var(--wrap); margin: 0 auto; }
.mega-col > a { font: 700 .98rem/1.3 var(--font-head); font-stretch: 112%; color: var(--ink); text-decoration: none; display: block; padding-bottom: 10px; border-bottom: 2px solid var(--ink); margin-bottom: 10px; }
.mega-col.is-ai > a { border-color: var(--orange); color: var(--orange-ink); }
.mega-col > a:hover { color: var(--orange-ink); }
.mega-col li a { display: block; padding: 6px 0; font-size: .93rem; color: var(--body); text-decoration: none; line-height: 1.35; }
.mega-col li a:hover { color: var(--orange-ink); }
.tag { display: inline-block; font: 700 .64rem/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; padding: 4px 7px; border-radius: 5px; background: var(--orange); color: #fff; vertical-align: 2px; margin-left: 6px; }
.tag.soft { background: var(--orange-wash); color: var(--orange-ink); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 6px 0; transition: transform .2s, opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 88px 0 96px; background: linear-gradient(180deg, #fff 0%, var(--paper) 100%); }
.hero::after {
    content: ""; position: absolute; right: -140px; top: -60px; width: 780px; height: 780px;
    background: url(../images/apex-mark.svg) no-repeat center / contain; opacity: .09; pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero .lede { margin-top: 22px; }
.map-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 10px; box-shadow: 0 30px 60px -40px rgba(29,31,35,.35); }
.map-card h2 { font: 700 .74rem/1 var(--font-body); font-stretch: normal; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 14px 16px 8px; margin: 0; }
.map-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; padding: 13px 16px; border-radius: 12px; text-decoration: none; color: var(--ink); transition: background .15s; }
.map-row + .map-row { border-top: 1px solid #F1EEE8; }
.map-row:hover { background: var(--orange-wash); color: var(--ink); }
.map-row b { display: block; font: 700 1rem/1.25 var(--font-head); font-stretch: 112%; }
.map-row small { display: block; font-size: .84rem; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.map-row .n { font: 600 .8rem/1 var(--font-body); color: var(--muted); white-space: nowrap; }
.ico { width: 40px; height: 40px; border-radius: 10px; background: #F3F0EA; color: var(--ink); display: grid; place-items: center; flex: none; }
.ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ico.hot { background: var(--orange); color: #fff; }

/* Fact strip */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 28px 20px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact b { display: block; font: 800 1.2rem/1.15 var(--font-head); font-stretch: 112%; color: var(--ink); letter-spacing: -.02em; }
.fact span { display: block; font-size: .92rem; color: var(--muted); margin-top: 6px; line-height: 1.4; }

/* Category grid (home) */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; align-items: start; }
.cat { grid-column: span 3; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; transition: border-color .18s, box-shadow .18s, transform .18s; }
.cat:hover { border-color: #CFC9BE; box-shadow: 0 24px 44px -34px rgba(29,31,35,.4); transform: translateY(-2px); }
.cat-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.cat-top h3 { margin: 0; font-size: 1.35rem; }
.cat-top h3 a { color: inherit; text-decoration: none; }
.cat > p { font-size: .98rem; margin-bottom: 18px; }
.sub-list { border-top: 1px solid var(--line); }
.sub-list li { border-bottom: 1px solid var(--line); }
.sub-list a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 2px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: .97rem; }
.sub-list a::after { content: "→"; color: var(--muted); transition: transform .18s, color .18s; }
.sub-list a:hover { color: var(--orange-ink); }
.sub-list a:hover::after { transform: translateX(4px); color: var(--orange); }
.cat .arrow-link { margin-top: 18px; font-size: .95rem; }
.cat.featured { grid-column: span 6; background: var(--dark); border-color: var(--dark); color: var(--on-dark); display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 38px; }
.cat.featured h3, .cat.featured h3 a { color: #fff; }
.cat.featured .sub-list, .cat.featured .sub-list li { border-color: var(--dark-line); }
.cat.featured .sub-list a { color: #fff; }
.cat.featured .sub-list a:hover { color: var(--orange); }
.cat.featured .arrow-link { color: var(--orange); }
.cat.featured .soon { padding: 12px 2px; font-size: .93rem; color: #8D919A; }

/* Dark band */
.band { background: var(--dark); color: var(--on-dark); }
.band h2, .band h3, .band h4, .band strong { color: #fff; }
.band .eyebrow { color: var(--orange); }
.band .lede { color: var(--on-dark); }
.band a:not(.btn) { color: var(--orange); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.qa { background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: 16px; padding: 8px; }
.qa li { padding: 16px 18px; border-radius: 10px; }
.qa li + li { border-top: 1px solid var(--dark-line); }
.qa q { display: block; quotes: "“" "”"; color: #fff; font-weight: 500; line-height: 1.4; }
.qa span { display: block; font-size: .86rem; color: #9BA0A9; margin-top: 5px; }
.qa span::before { content: "answered from "; color: var(--orange); font-weight: 600; }

/* Replace table */
.swap { border-top: 2px solid var(--ink); }
.swap li { display: grid; grid-template-columns: 1fr 34px 1.5fr; gap: 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
.swap .from { color: var(--muted); text-decoration: line-through; text-decoration-color: #C9C4BA; }
.swap .to { color: var(--ink); font-weight: 600; }
.swap .to small { display: block; font-weight: 400; color: var(--body); font-size: .9rem; }
.swap i { font-style: normal; color: var(--orange); font-weight: 700; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 64px; align-items: start; }
.keyfacts { border-top: 2px solid var(--ink); }
.keyfacts div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .97rem; }
.keyfacts dt { color: var(--muted); }
.keyfacts dd { margin: 0; color: var(--ink); font-weight: 600; text-align: right; }
dl { margin: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.contact-list > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list > div:first-child { border-top: 2px solid var(--ink); }
.contact-list dt { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.contact-list dd { margin: 0; color: var(--ink); font-size: 1.05rem; }
.contact-list dd a { color: var(--ink); }
.reveal-btn { font: 600 .9rem/1 var(--font-body); padding: 10px 14px; border-radius: 8px; border: 1.5px solid #CFCAC1; background: #fff; color: var(--ink); cursor: pointer; }
.reveal-btn:hover { border-color: var(--orange); color: var(--orange-ink); }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 34px; box-shadow: 0 30px 60px -44px rgba(29,31,35,.35); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
    font: 400 1rem/1.4 var(--font-body); color: var(--ink);
    background: #fff; border: 1.5px solid #D8D3CA; border-radius: 10px; padding: 13px 14px; width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(246,114,29,.16); }
.form-card .btn { width: 100%; margin-top: 22px; }
.form-note { font-size: .8rem; color: var(--muted); text-align: center; margin: 14px 0 0; }
.form-note a { color: var(--muted); }
.msg { padding: 14px 16px; border-radius: 10px; margin-bottom: 18px; font-weight: 500; }
.msg.ok { background: #E9F6EC; color: #1E6B34; border: 1px solid #BFE3C8; }
.msg.err { background: #FDECEA; color: #A32A1E; border: 1px solid #F3C4BE; }
.grecaptcha-badge { visibility: hidden; }

/* Page hero (inner pages) */
.page-hero { position: relative; overflow: hidden; background: #fff; border-bottom: 1px solid var(--line); padding: 64px 0 56px; }
.page-hero::after { content: ""; position: absolute; right: -90px; top: -40px; width: 520px; height: 520px; background: url(../images/apex-mark.svg) no-repeat center / contain; opacity: .08; pointer-events: none; }
.page-hero .wrap { position: relative; z-index: 1; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 26px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--orange-ink); }
.crumbs span { margin: 0 8px; color: #C4BFB5; }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); max-width: 18ch; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.chip { font: 500 .92rem/1 var(--font-body); padding: 11px 15px; border-radius: 999px; border: 1.5px solid #D8D3CA; color: var(--ink); text-decoration: none; background: #fff; }
a.chip:hover { border-color: var(--orange); color: var(--orange-ink); }

/* Sub-service blocks (category pages) */
.svc { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; padding: 72px 0; border-bottom: 1px solid var(--line); }
.svc:last-of-type { border-bottom: 0; }
.svc-head { position: sticky; top: 108px; align-self: start; }
.svc-num { font: 700 .76rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--orange-ink); margin-bottom: 14px; display: block; }
.svc-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.svc-head p { font-size: 1.05rem; }
.svc-body > p:first-child { margin-top: 4px; }
.ticks li { position: relative; padding: 13px 0 13px 30px; border-bottom: 1px solid var(--line); }
.ticks li:first-child { border-top: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 21px; width: 11px; height: 6px; border-left: 2.5px solid var(--orange); border-bottom: 2.5px solid var(--orange); transform: rotate(-45deg); }
.band .ticks li, .band .ticks li:first-child { border-color: var(--dark-line); }
.note { background: var(--orange-wash); border-left: 4px solid var(--orange); border-radius: 0 12px 12px 0; padding: 20px 22px; margin: 26px 0 0; color: #5A3A22; }
.note strong { color: #3D2512; }
.note p:last-child { margin: 0; }
.logos { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.logos span { font: 600 .9rem/1 var(--font-body); padding: 10px 14px; border-radius: 8px; background: #F3F0EA; color: var(--ink); }
.soon-card { border: 1.5px dashed #CFC9BE; border-radius: var(--radius); padding: 30px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; background: #fff; }
.soon-card h3 { margin-bottom: 6px; }
.soon-card p { margin: 0; }

/* Card grids */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .97rem; margin: 0; }
.card p + p { margin-top: 12px; }
.band .card { background: var(--dark-2); border-color: var(--dark-line); }
.card .kicker { font: 700 .72rem/1 var(--font-body); letter-spacing: .13em; text-transform: uppercase; color: var(--orange-ink); margin-bottom: 14px; display: block; }
.band .card .kicker { color: var(--orange); }
.card q { display: block; quotes: "“" "”"; font: 600 1.08rem/1.4 var(--font-head); font-stretch: 105%; color: var(--ink); margin-bottom: 12px; }
.card .src { font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; margin-top: 16px; }
.card .src b { color: var(--orange-ink); font-weight: 600; }
.num { font: 800 2.6rem/1 var(--font-head); font-stretch: 112%; color: var(--orange); letter-spacing: -.03em; display: block; margin-bottom: 8px; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; }
.stat { border-top: 3px solid var(--orange); background: var(--paper); border-radius: 0 0 12px 12px; padding: 20px; }
.stat b { display: block; font: 800 2.3rem/1 var(--font-head); font-stretch: 112%; color: var(--ink); letter-spacing: -.03em; }
.stat span { display: block; font-size: .9rem; color: var(--body); margin-top: 8px; line-height: 1.4; }

/* Flow diagram (AI Brain) */
.flow { display: grid; grid-template-columns: 1fr auto 1.1fr auto 1fr; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 34px; }
.flow-col { display: grid; gap: 10px; }
.flow-col span { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: .93rem; color: var(--ink); background: var(--paper); line-height: 1.3; }
.flow-col span small { display: block; color: var(--muted); font-size: .82rem; }
.flow-col.out span { border-left: 4px solid var(--orange); background: #fff; font-weight: 600; }
.flow-core { background: var(--orange); color: #fff; border-radius: 14px; padding: 28px 22px; text-align: center; }
.flow-core b { display: block; font: 800 1.5rem/1.1 var(--font-head); font-stretch: 112%; margin-bottom: 8px; }
.flow-core span { display: block; font-size: .9rem; line-height: 1.5; opacity: .95; }
.flow-arrow { color: var(--orange); font-size: 1.6rem; font-weight: 700; }
.flow-cap { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 80px; font-size: .84rem; color: var(--muted); text-align: center; margin-top: 14px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { border-top: 3px solid var(--ink); padding-top: 20px; counter-increment: step; }
.step::before { content: "0" counter(step); font: 800 1rem/1 var(--font-head); color: var(--orange); }
.step small { display: block; font: 700 .72rem/1 var(--font-body); letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin: 14px 0 8px; }
.step p { font-size: .95rem; margin: 0; }
.gates { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: gate; margin-top: 36px; }
.gate { background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: 12px; padding: 20px; counter-increment: gate; }
.gate::before { content: counter(gate); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 700; font-size: .9rem; margin-bottom: 14px; }
.gate b { display: block; color: #fff; margin-bottom: 4px; }
.gate span { font-size: .9rem; color: #9BA0A9; }

/* Other categories + CTA */
.more-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.more-cats a { display: flex; gap: 14px; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .97rem; line-height: 1.3; }
.more-cats a:hover { border-color: var(--orange); }
.cta { background: var(--orange); color: #fff; }
.cta .wrap { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.cta h2 { color: #fff; margin: 0 0 8px; }
.cta p { margin: 0; font-size: 1.1rem; color: #FFE9DA; max-width: 56ch; }
.cta .btn { background: #fff; color: var(--ink); }
.cta .btn:hover { background: var(--ink); color: #fff; }

/* Footer */
.site-footer { background: var(--dark); color: #9BA0A9; padding: 72px 0 32px; font-size: .93rem; }
.foot-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 40px; }
.foot-brand img { height: 46px; width: auto; margin-bottom: 18px; }
.foot-brand p { max-width: 34ch; }
.site-footer h4 { color: #fff; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-family: var(--font-body); font-stretch: normal; margin-bottom: 16px; }
.site-footer li { margin-bottom: 9px; }
.site-footer li.grp { margin-top: 22px; }
.site-footer li.grp:first-child { margin-top: 0; }
.site-footer li.grp a { color: #fff; font-weight: 600; }
.site-footer a { color: #C9CCD2; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--dark-line); margin-top: 48px; padding-top: 24px; font-size: .85rem; }

/* Simple centered pages (thank you, errors) */
.solo { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 96px 24px; }
.solo-inner { max-width: 620px; }
.solo .big { font: 800 clamp(4rem, 14vw, 8rem)/1 var(--font-head); font-stretch: 112%; color: var(--orange); letter-spacing: -.04em; display: block; margin-bottom: 12px; }
.solo .check { width: 72px; height: 72px; border-radius: 50%; background: var(--orange); margin: 0 auto 28px; position: relative; }
.solo .check::after { content: ""; position: absolute; left: 22px; top: 24px; width: 28px; height: 15px; border-left: 5px solid #fff; border-bottom: 5px solid #fff; transform: rotate(-45deg); }
.solo .btn-row { justify-content: center; }
.solo .lede { margin-left: auto; margin-right: auto; }

/* Reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 1020px) {
    .nav-toggle { display: block; }
    .nav-links { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 24px; max-height: calc(100vh - 76px); max-height: calc(100dvh - 76px); overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 30px 50px -30px rgba(29,31,35,.25); }
    .nav-open .nav-links { display: flex; }
    .nav-home { display: block; }
    .nav-links > li > a, .nav-links > li > button { width: 100%; justify-content: space-between; padding: 15px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
    .nav-links > li > a.btn { margin: 18px 0 0; justify-content: center; border-radius: 10px; border: 0; padding: 16px; }
    .mega { position: static; box-shadow: none; border: 0; }
    .mega-grid { grid-template-columns: 1fr; gap: 22px; padding: 18px 4px 10px; }
    .hero-grid, .split, .about-grid, .contact-grid, .svc { grid-template-columns: 1fr; gap: 40px; }
    .svc { padding: 56px 0; }
    .svc-head { position: static; }
    .cat { grid-column: span 6; }
    .cat.featured { grid-template-columns: 1fr; gap: 24px; padding: 30px; }
    .cards, .cards.four, .steps, .gates, .stat-row { grid-template-columns: repeat(2, 1fr); }
    .facts-grid { grid-template-columns: repeat(2, 1fr); }
    .fact:nth-child(3) { border-left: 0; padding-left: 0; }
    .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
    .flow { grid-template-columns: 1fr; }
    .flow-arrow { transform: rotate(90deg); justify-self: center; }
    .flow-cap { display: none; }
    .foot-grid { grid-template-columns: 1fr 1fr; }
    .hero::after, .page-hero::after { opacity: .05; }
}
@media (max-width: 640px) {
    body { font-size: 16px; }
    .wrap { padding: 0 18px; }
    .section { padding: 64px 0; }
    .hero { padding: 56px 0 64px; }
    .brand img { height: 34px; }
    .cards, .cards.two, .cards.four, .steps, .gates, .more-cats, .stat-row, .form-grid, .mega-grid { grid-template-columns: 1fr; }
    .facts-grid { grid-template-columns: 1fr 1fr; }
    .fact { padding: 20px 14px; }
    .fact b { font-size: 1.2rem; }
    .swap li { grid-template-columns: 1fr; gap: 2px; }
    .swap i { display: none; }
    .cta .wrap, .soon-card { grid-template-columns: 1fr; }
    .form-card { padding: 24px 20px; }
    .foot-grid { grid-template-columns: 1fr; gap: 28px; }
    .keyfacts div { flex-direction: column; gap: 2px; }
    .keyfacts dd { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .btn, .cat { transition: none; }
}
@media print {
    .site-header, .cta, .site-footer, .nav-toggle { display: none; }
    .js .reveal { opacity: 1; transform: none; }
}

/* Two-up steps inside a service body */
.steps.two { grid-template-columns: repeat(2, 1fr); row-gap: 28px; margin-top: 20px; }
.svc-body h3 { font-size: 1.25rem; }
.svc-body .step h3 { font-size: 1.1rem; }
@media (max-width: 640px) { .steps.two { grid-template-columns: 1fr; } }

/* Fact strip: one-line footer, single column on phones */
.facts-line { margin: 0 auto; padding-top: 16px; padding-bottom: 16px; border-top: 1px solid var(--line); text-align: center; font-size: .92rem; color: var(--muted); }
@media (max-width: 640px) {
    .facts-grid { grid-template-columns: 1fr; }
    .facts-grid .fact { border-left: 0; padding: 16px 0; border-top: 1px solid var(--line); }
    .facts-grid .fact:first-child { border-top: 0; }
    .facts-grid .fact b { font-size: 1.2rem; }
    .facts-line { font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 420px) { .facts-line { white-space: normal; overflow: visible; } }

/* UX pass: contact form on every page, comfortable touch targets, readable long-form text */
.contact-section { background: #fff; border-top: 1px solid var(--line); }
.field label .opt { font-weight: 400; color: var(--muted); font-size: .8rem; margin-left: 4px; }
.reveal-btn { min-height: 44px; }
.chip { padding: 14px 16px; }
.crumbs a { display: inline-block; padding: 8px 0; }
.site-footer li { margin-bottom: 0; }
.site-footer li a { display: inline-block; padding: 7px 0; }
.site-footer li.grp { margin-top: 18px; }
.foot-base a { color: #C9CCD2; }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }
.prose .ticks { margin-bottom: 1em; }
@media (max-width: 1020px) {
    .mega-col li a { padding: 14px 0; }
    .mega-col > a { padding-top: 6px; }
    .sub-list a { padding: 14px 2px; }
}

/* Fitts's law: text links that act as buttons get a full-height tap area */
.arrow-link { padding: 11px 0; }
.cat .arrow-link { margin-top: 8px; }
.svc-head .arrow-link { margin-top: -4px; }

/* On phones and tablets the form comes before the contact details, so it is the first thing after the heading */
@media (max-width: 1020px) { .contact-grid .form-card { order: -1; } }

/* Product imagery (illustrative screens) on the Apex AI Brain page */
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; margin-bottom: 14px; }
.shot { margin: 0; min-width: 0; }
.shot figcaption { font-size: .92rem; color: var(--body); margin-top: 14px; line-height: 1.5; }
.shots-note { font-size: .82rem; color: var(--muted); margin: 0 0 44px; }
.mock { background: #fff; border: 1px solid #D8D3CA; border-radius: 14px; overflow: hidden; box-shadow: 0 26px 50px -36px rgba(29,31,35,.45); }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; background: #F3F0EA; border-bottom: 1px solid var(--line); font-size: .8rem; }
.mock-bar span { width: 9px; height: 9px; border-radius: 50%; background: #CFC9BE; flex: none; }
.mock-bar b { color: var(--ink); font-weight: 600; margin-left: 6px; }
.mock-bar em { font-style: normal; color: var(--muted); margin-left: auto; }
.mock.phone { border-radius: 26px; border-width: 5px; border-color: var(--ink); }
.mock.phone .mock-bar { background: var(--ink); border-color: var(--ink); }
.mock.phone .mock-bar b { color: #fff; margin-left: 0; }
.mock.phone .mock-bar em { color: #9BA0A9; }
.mock-body { padding: 18px; }
.mock-body h3 { font-size: 1rem; margin: 0 0 2px; }
.mock-body h4 { font: 600 .82rem/1.3 var(--font-body); font-stretch: normal; letter-spacing: 0; color: var(--ink); margin: 16px 0 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.mock-sub { font-size: .8rem; color: var(--muted); margin: 0 0 6px; }
.mock svg { width: 100%; height: auto; }
.mock svg .v { font: 600 11px var(--font-body); fill: var(--ink); }
.mock svg .m, .mock svg .t { font: 500 10px var(--font-body); fill: var(--muted); }
.mock svg .ax { stroke: #D8D3CA; stroke-width: 1; }
.mock svg .th { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 4 3; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .78rem; color: var(--body); margin: 4px 0 0; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.hbars li { display: grid; grid-template-columns: 96px 1fr 50px; align-items: center; gap: 8px; font-size: .78rem; color: var(--body); padding: 4px 0; }
.hbars i { height: 8px; border-radius: 0 4px 4px 0; background: #B9B3A8; display: block; min-width: 4px; }
.hbars b { font-weight: 600; color: var(--ink); text-align: right; white-space: nowrap; }
.chat { display: flex; flex-direction: column; gap: 10px; background: #FBFAF7; }
.bubble { background: #fff; border: 1px solid var(--line); border-radius: 4px 14px 14px 14px; padding: 10px 12px; font-size: .82rem; line-height: 1.5; color: var(--body); max-width: 94%; align-self: flex-start; overflow-wrap: anywhere; }
.bubble small { display: block; font-size: .64rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-ink); margin-bottom: 3px; }
.bubble strong { display: block; }
.bubble.alert { border-left: 3px solid var(--orange); }
.bubble.me { align-self: flex-end; background: var(--ink); border-color: var(--ink); color: #fff; border-radius: 14px 4px 14px 14px; font-weight: 500; }
@media (max-width: 1020px) {
    .shots { grid-template-columns: 1fr; gap: 32px; max-width: 520px; }
    .shots-note { margin-bottom: 36px; }
}

/* Stat tiles: the number always carries its unit, under a heading that says what is being counted */
.stat-title { font: 700 .78rem/1 var(--font-body); font-stretch: normal; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 40px 0 0; }
.stat-title + .stat-row { margin-top: 16px; }
.stat b em { font-style: normal; font-size: 1.15rem; letter-spacing: -.01em; color: var(--orange-ink); margin-left: 2px; white-space: nowrap; }
.page-hero .note { margin-top: 32px; }
