/* =====================================================================
   Knowledge On Tap — Corporate Stylesheet
   Brand palette: vibrant orange + white, with warm charcoal accents
   ("Source Global. Service Local.")
   ===================================================================== */

:root {
    /* Brand orange — sampled from the Knowledge On Tap logo */
    --brand-700: #c24e12;   /* deep */
    --brand-600: #d9571a;   /* links / accents */
    --brand-500: #ea6524;   /* primary orange (logo) */
    --brand-400: #f3934e;   /* light orange */
    --amber-300: #f9b483;   /* soft accent */

    /* Neutrals — logo black on clean white */
    --ink: #1a1a1a;         /* logo wordmark black */
    --slate: #4d4d4d;
    --muted: #7a7a7a;
    --line: #ececec;
    --paper: #ffffff;
    --mist: #fbeadb;        /* warm light orange */
    --mist-2: #f8dcc4;      /* deeper orange tint */

    /* Near-black (footer / dark panels) */
    --dark-900: #141414;
    --dark-800: #1f1f1f;

    /* Gradients */
    --grad-brand: linear-gradient(120deg, #d9571a 0%, #ea6524 48%, #f3934e 100%);
    --grad-hero:  linear-gradient(135deg, #c24e12 0%, #e15b1a 45%, #ea6524 100%);
    --grad-dark:  linear-gradient(135deg, #141414 0%, #1f1f1f 60%, #2c2c2c 100%);
    --grad-text:  linear-gradient(90deg, #ffffff, #ffd9bf);

    /* Effects */
    --shadow-sm: 0 4px 14px rgba(0, 0, 0, .06);
    --shadow-md: 0 14px 40px rgba(0, 0, 0, .10);
    --shadow-lg: 0 30px 70px rgba(0, 0, 0, .18);
    --glow: 0 0 40px rgba(234, 101, 36, .45);
    --radius: 18px;
    --radius-sm: 12px;
    --ease: cubic-bezier(.22, 1, .36, 1);

    --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
    width: min(1180px, 92%);
    margin-inline: auto;
}

section { position: relative; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.15; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.3rem; }
p  { color: var(--slate); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--brand-600);
    margin-bottom: 1rem;
}
.eyebrow::before {
    content: "";
    width: 26px; height: 2px;
    background: var(--grad-brand);
    border-radius: 2px;
}
.eyebrow.on-dark { color: var(--amber-300); }

.gradient-text {
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.08rem; margin-top: .8rem; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .95rem 1.8rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: .96rem;
    border: none;
    cursor: pointer;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary {
    background: var(--grad-brand);
    color: #fff;
    box-shadow: 0 10px 30px rgba(224, 112, 14, .45);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(224, 112, 14, .6); }
.btn-primary::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
    transform: translateX(-120%);
    transition: transform .6s var(--ease);
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost {
    background: rgba(255,255,255,.12);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,.5);
    backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,.22); transform: translateY(-3px); }
.btn-outline {
    background: transparent;
    color: var(--brand-700);
    border: 1.5px solid var(--brand-500);
}
.btn-outline:hover { background: var(--brand-500); color: #fff; transform: translateY(-3px); }

/* ---------- Header / Nav ---------- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    transition: background .4s var(--ease), box-shadow .4s, padding .4s;
    padding: 1.1rem 0;
}
.site-header.scrolled {
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(16px) saturate(160%);
    box-shadow: 0 6px 30px rgba(70, 40, 10, .12);
    padding: .65rem 0;
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.brand {
    display: flex;
    align-items: center;
    gap: .7rem;
    font-weight: 800;
    font-size: 1.1rem;
    color: #fff;
    letter-spacing: -.02em;
    transition: color .4s;
    flex: none;
    white-space: nowrap;
}
.brand > span { display: inline-block; }
.scrolled .brand { color: var(--ink); }
.brand .drop {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    background: var(--grad-brand);
    border-radius: 12px 12px 12px 4px;
    box-shadow: var(--glow);
    flex: none;
}
.brand .drop svg { width: 20px; height: 20px; fill: #fff; }
.brand small { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .22em; opacity: .75; text-transform: uppercase; }

.nav-links {
    display: flex;
    align-items: center;
    gap: .35rem;
}
.nav-links a {
    padding: .5rem .9rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: .93rem;
    color: rgba(255,255,255,.92);
    transition: color .3s, background .3s;
    position: relative;
}
.scrolled .nav-links a { color: var(--ink); }
.nav-links a::after {
    content: "";
    position: absolute;
    left: 50%; bottom: 4px;
    width: 0; height: 2px;
    background: #fff;
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width .3s var(--ease);
}
.scrolled .nav-links a::after { background: var(--grad-brand); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 55%; }
.nav-links a.active { color: #fff; }
.scrolled .nav-links a.active { color: var(--brand-600); }

.nav-cta { display: flex; align-items: center; gap: .8rem; }
.nav-cta .btn { padding: .65rem 1.35rem; font-size: .9rem; }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.menu-toggle span {
    width: 26px; height: 2.5px;
    background: #fff;
    border-radius: 2px;
    transition: .3s var(--ease);
}
.scrolled .menu-toggle span { background: var(--ink); }

/* ---------- Hero ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--grad-hero);
    color: #fff;
    overflow: hidden;
    padding: 8rem 0 4rem;
}
.hero-orbs { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: .5;
    animation: float 14s ease-in-out infinite;
}
.orb.o1 { width: 480px; height: 480px; background: #ff9e33; top: -120px; right: -80px; }
.orb.o2 { width: 380px; height: 380px; background: #ffc27a; bottom: -140px; left: -60px; animation-delay: -5s; }
.orb.o3 { width: 300px; height: 300px; background: #b8480a; top: 40%; left: 55%; animation-delay: -9s; opacity: .4; }

.hero-grid-bg {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 40%, transparent 100%);
    z-index: 0;
}

.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.hero-copy h1 { color: #fff; }
.hero-copy h1 .gradient-text {
    background: var(--grad-text);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: .6rem;
    padding: .5rem 1rem;
    border-radius: 50px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.45);
    font-size: .82rem; font-weight: 600; letter-spacing: .04em;
    color: #fff;
    margin-bottom: 1.6rem;
}
.hero-badge .pulse {
    width: 8px; height: 8px; border-radius: 50%; background: #fff;
    box-shadow: 0 0 0 rgba(255,255,255,.7);
    animation: pulse 2s infinite;
}
.hero-copy p.lead { font-size: 1.18rem; color: rgba(255,255,255,.9); margin: 1.4rem 0 2.2rem; max-width: 540px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-stats { display: flex; gap: 2.4rem; margin-top: 3rem; flex-wrap: wrap; }
.hero-stats .stat .num { font-size: 2.2rem; font-weight: 800; color: #fff; }
.hero-stats .stat .num span { color: #fff; }
.hero-stats .stat .lbl { font-size: .82rem; color: rgba(255,255,255,.75); letter-spacing: .04em; }

/* Hero visual card */
.hero-visual { position: relative; }
.glass-card {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 24px;
    padding: 1.8rem;
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-lg);
    animation: rise 1s var(--ease) both;
}
.glass-card .gc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.3rem; }
.gc-head .dot-row { display: flex; gap: 6px; }
.gc-head .dot-row i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.4); }
.gc-head .dot-row i:first-child { background: #fff; }
.gc-shield { width: 46px; height: 46px; border-radius: 12px; background: rgba(255,255,255,.2); display: grid; place-items: center; border: 1px solid rgba(255,255,255,.35); }
.gc-shield svg { width: 24px; height: 24px; fill: #fff; }
.gc-row {
    display: flex; align-items: center; gap: .9rem;
    padding: .85rem 1rem;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 12px;
    margin-bottom: .7rem;
    transition: transform .3s var(--ease), background .3s;
}
.gc-row:hover { transform: translateX(6px); background: rgba(255,255,255,.2); }
.gc-row .ic { width: 34px; height: 34px; border-radius: 9px; background: rgba(255,255,255,.2); display: grid; place-items: center; flex: none; }
.gc-row .ic svg { width: 18px; height: 18px; stroke: #fff; fill: none; }
.gc-row .txt b { display: block; color: #fff; font-size: .92rem; }
.gc-row .txt small { color: rgba(255,255,255,.7); font-size: .78rem; }
.gc-row .check { margin-left: auto; color: #fff; font-weight: 700; }

.float-tag {
    position: absolute;
    padding: .7rem 1.1rem;
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    display: flex; align-items: center; gap: .6rem;
    font-size: .85rem; font-weight: 700; color: var(--ink);
    animation: float 6s ease-in-out infinite;
}
.float-tag .badge-ic { width: 30px; height: 30px; border-radius: 8px; background: var(--grad-brand); display: grid; place-items: center; }
.float-tag .badge-ic svg { width: 16px; height: 16px; fill: #fff; }
.float-tag.ft1 { top: -22px; right: 12%; }
.float-tag.ft2 { bottom: -20px; left: -18px; animation-delay: -3s; }

/* ---------- Trust / logos ---------- */
.trustbar { padding: 3.5rem 0; background: var(--paper); border-bottom: 1px solid var(--line); }
.trustbar p.kicker { text-align: center; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 1.8rem; }
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem 2.6rem; }
.logo-chip {
    font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em;
    color: var(--ink); opacity: .4;
    filter: grayscale(1);
    transition: opacity .3s, filter .3s, transform .3s, color .3s;
}
.logo-chip:hover { opacity: 1; filter: grayscale(0); transform: translateY(-3px); color: var(--brand-600); }

/* ---------- Generic section spacing ---------- */
.section { padding: 6.5rem 0; }
.section.mist { background: var(--mist); }
.section.dark { background: var(--grad-dark); color: #fff; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark p { color: rgba(255,255,255,.8); }

/* ---------- Feature / service cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.6rem; }
.s-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2.2rem 1.9rem;
    transition: transform .4s var(--ease), box-shadow .4s, border-color .4s;
    position: relative;
    overflow: hidden;
}
.s-card::before {
    content: "";
    position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: var(--grad-brand);
    transform: scaleX(0); transform-origin: left;
    transition: transform .4s var(--ease);
}
.s-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: transparent; }
.s-card:hover::before { transform: scaleX(1); }
.s-card .ico {
    width: 58px; height: 58px; border-radius: 15px;
    background: linear-gradient(135deg, var(--mist-2), #fff);
    border: 1px solid var(--line);
    display: grid; place-items: center;
    margin-bottom: 1.4rem;
    transition: background .4s, transform .4s var(--ease);
}
.s-card:hover .ico { background: var(--grad-brand); transform: rotate(-6deg) scale(1.05); }
.s-card .ico svg { width: 28px; height: 28px; stroke: var(--brand-600); fill: none; stroke-width: 1.8; transition: stroke .4s; }
.s-card:hover .ico svg { stroke: #fff; }
.s-card h3 { margin-bottom: .6rem; }
.s-card p { font-size: .96rem; }
.s-card .learn {
    display: inline-flex; align-items: center; gap: .4rem;
    margin-top: 1.2rem; font-weight: 700; font-size: .9rem; color: var(--brand-600);
}
.s-card .learn svg { width: 16px; height: 16px; transition: transform .3s; }
.s-card:hover .learn svg { transform: translateX(4px); }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.split.reverse .split-media { order: 2; }
.feature-list { margin-top: 1.8rem; display: grid; gap: 1.1rem; }
.feature-list li { display: flex; gap: 1rem; align-items: flex-start; }
.feature-list .fi {
    width: 34px; height: 34px; border-radius: 10px; flex: none;
    background: var(--mist-2); display: grid; place-items: center;
}
.feature-list .fi svg { width: 18px; height: 18px; stroke: var(--brand-600); fill: none; stroke-width: 2; }
.feature-list b { color: var(--ink); display: block; }
.feature-list span { font-size: .92rem; color: var(--slate); }

.media-frame {
    position: relative;
    border-radius: 24px;
    background: var(--grad-dark);
    padding: 2.2rem;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.media-frame::after {
    content: ""; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: radial-gradient(circle at 70% 30%, #000, transparent 75%);
}
.media-frame .mf-inner { position: relative; z-index: 1; }
.ring-stat { text-align: center; color: #fff; }
.ring {
    width: 180px; height: 180px; margin: 0 auto 1.4rem;
    border-radius: 50%;
    display: grid; place-items: center;
    background: conic-gradient(var(--brand-500) 0turn .87turn, rgba(255,255,255,.14) .87turn 1turn);
    position: relative;
}
.ring::before { content: ""; position: absolute; inset: 14px; border-radius: 50%; background: var(--dark-800); }
.ring .rv { position: relative; z-index: 1; font-size: 2.4rem; font-weight: 800; }
.mini-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.4rem; }
.mini-metrics .mm { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 1rem; text-align: center; }
.mini-metrics .mm b { display: block; font-size: 1.5rem; color: var(--amber-300); }
.mini-metrics .mm small { color: rgba(255,255,255,.7); font-size: .78rem; }

/* ---------- Stats band ---------- */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stats-band .sb .num { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800; }
.stats-band .sb .num .gradient-text { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats-band .sb .lbl { color: rgba(255,255,255,.75); font-size: .92rem; letter-spacing: .03em; }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.6rem; counter-reset: step; }
.step {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 2rem 1.7rem; position: relative; transition: transform .4s var(--ease), box-shadow .4s;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.step .step-num {
    counter-increment: step;
    width: 46px; height: 46px; border-radius: 12px;
    background: var(--grad-brand); color: #fff; font-weight: 800; font-size: 1.15rem;
    display: grid; place-items: center; margin-bottom: 1.1rem;
    box-shadow: 0 8px 20px rgba(224,112,14,.4);
}
.step .step-num::before { content: "0" counter(step); }

/* ---------- CTA band ---------- */
.cta-band {
    background: var(--grad-brand);
    border-radius: 18px;
    padding: 1.25rem 2rem;
    max-width: none;
    margin: 0 auto;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.cta-band::before, .cta-band::after {
    content: ""; position: absolute; border-radius: 50%;
    background: rgba(255,255,255,.16); filter: blur(10px);
}
.cta-band::before { width: 150px; height: 150px; top: -80px; left: -40px; }
.cta-band::after { width: 120px; height: 120px; bottom: -60px; right: -20px; }
.cta-band h2 { color: #fff; position: relative; z-index: 1; font-size: clamp(1.1rem, 1.7vw, 1.4rem); }
.cta-band p { color: rgba(255,255,255,.95); position: relative; z-index: 1; max-width: 560px; margin: .4rem auto .9rem; font-size: .88rem; line-height:1.5; }
.cta-band .btn-white { background: #fff; color: var(--brand-700); position: relative; z-index: 1; }
.cta-band .btn-white:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0,0,0,.25); }
.journey-flow { position: relative; z-index: 1; margin: 0 auto 2rem; }
.journey-flow .jf-label { display: block; color: rgba(255,255,255,.9); font-weight: 700; font-size: .95rem; margin-bottom: .9rem; }
.journey-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem; }
.journey-line span { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); color: #fff; font-weight: 600; font-size: .85rem; padding: .35rem .8rem; border-radius: 50px; }
.journey-line i { color: rgba(255,255,255,.8); font-style: normal; font-weight: 700; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
    background: var(--grad-hero);
    color: #fff;
    padding: 11rem 0 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,.9); max-width: 620px; margin: 1rem auto 0; font-size: 1.1rem; }
.breadcrumb { display: flex; gap: .5rem; justify-content: center; font-size: .85rem; color: rgba(255,255,255,.75); margin-bottom: 1.2rem; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 2.4rem; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .45rem; color: var(--ink); }
.field input, .field textarea, .field select {
    width: 100%; padding: .85rem 1rem;
    border: 1.5px solid var(--line); border-radius: 12px;
    font-family: inherit; font-size: .95rem; color: var(--ink);
    background: var(--mist);
    transition: border-color .3s, box-shadow .3s, background .3s;
}
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none; border-color: var(--brand-500);
    box-shadow: 0 0 0 4px rgba(245,133,27,.18); background: #fff;
}
.field textarea { resize: vertical; min-height: 130px; }
.contact-info .ci-item { display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.contact-info .ci-item:last-child { border-bottom: none; }
.contact-info .ci-ic { width: 48px; height: 48px; border-radius: 12px; background: var(--grad-brand); display: grid; place-items: center; flex: none; box-shadow: 0 8px 20px rgba(224,112,14,.35); }
.contact-info .ci-ic svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2; }
.contact-info .ci-item b { display: block; color: var(--ink); }
.contact-info .ci-item span { color: var(--slate); font-size: .95rem; }
.contact-info .ci-item a:hover { color: var(--brand-600); }
.map-wrap { margin-top: 2rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 260px; border: 0; display: block; }
.alert-success {
    background: #25D366; border: 1px solid #1eb658;
    color: #fff; padding: 1rem 1.2rem; border-radius: 12px; margin-bottom: 1.4rem; font-weight: 700;
    box-shadow: 0 10px 26px rgba(37,211,102,.32);
}
.alert-success a { color: #fff; text-decoration: underline; }
.alert-warn {
    background: #fff4e8; border: 1px solid #f0c48a; color: var(--ink);
    padding: 1rem 1.2rem; border-radius: 12px; margin-bottom: 1.4rem; font-weight: 600;
}
.alert-warn a { color: var(--brand-700); text-decoration: underline; }
/* Visually-hidden honeypot field (bots fill it; humans never see it) */
.hp-field { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Resource cards ---------- */
.res-card {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s;
}
.res-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.res-card .res-top { height: 150px; background: var(--grad-hero); position: relative; display: grid; place-items: center; }
.res-card .res-top .tag { position: absolute; top: 1rem; left: 1rem; background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.4); color: #fff; padding: .3rem .8rem; border-radius: 50px; font-size: .74rem; font-weight: 700; letter-spacing: .04em; }
.res-card .res-top svg { width: 46px; height: 46px; stroke: rgba(255,255,255,.95); fill: none; stroke-width: 1.5; }
.res-card .res-body { padding: 1.6rem; }
.res-card .res-body h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.res-card .res-body p { font-size: .92rem; }
.res-card .res-body .learn { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; color: var(--brand-600); font-weight: 700; font-size: .9rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--grad-brand); color: rgba(255,255,255,.9); padding: 4.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.site-footer .brand { color: #fff; margin-bottom: 1.1rem; }
.site-footer .f-about { font-size: .93rem; max-width: 300px; color: #fff; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1.2rem; }
.site-footer .f-links a { display: block; padding: .35rem 0; font-size: .92rem; color: rgba(255,255,255,.9); transition: color .3s, padding-left .3s; }
.site-footer .f-links a:hover { color: #fff; padding-left: 6px; }
.social-row { display: flex; gap: .7rem; margin-top: 1.3rem; }
.social-row a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.15); display: grid; place-items: center; transition: background .3s, transform .3s; }
.social-row a:hover { background: rgba(255,255,255,.28); transform: translateY(-3px); }
.social-row svg { width: 18px; height: 18px; fill: #fff; }
.footer-bottom { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.28); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .85rem; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* ---------- Animations ---------- */
@keyframes float { 0%,100% { transform: translateY(0) translateX(0); } 50% { transform: translateY(-24px) translateX(10px); } }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.6);} 70% { box-shadow: 0 0 0 12px rgba(255,255,255,0);} 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0);} }

/* ---------- Progress bar ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--grad-brand); z-index: 1100; transition: width .1s linear; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero .container, .split, .contact-grid { grid-template-columns: 1fr; }
    .split.reverse .split-media { order: 0; }
    .stats-band { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-visual { max-width: 460px; margin: 0 auto; }
    .menu-toggle { display: flex; }
    .nav-links {
        position: fixed; inset: 0 0 0 auto; width: min(320px, 82%);
        flex-direction: column; align-items: flex-start; gap: .3rem;
        background: #fff; padding: 6rem 1.6rem 2rem;
        box-shadow: -20px 0 60px rgba(70,40,10,.2);
        transform: translateX(100%); transition: transform .4s var(--ease); z-index: 999;
    }
    .nav-links.open { transform: none; }
    .nav-links a { color: var(--ink); width: 100%; padding: .8rem .6rem; }
    .nav-links a.active { color: var(--brand-600); }
    .nav-cta .btn { display: none; }
    .menu-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}
@media (max-width: 560px) {
    .stats-band, .footer-grid { grid-template-columns: 1fr; }
    .cta-band { padding: 1.6rem 1.3rem; }
    .hero-stats { gap: 1.5rem; }
    .section { padding: 4.5rem 0; }
}

/* =====================================================================
   AEO — Answer-first block + FAQ accordion
   ===================================================================== */
.faq-answer { max-width: 820px; margin: 0 auto 2.5rem; }
.answer-block {
    font-size: 1.2rem; line-height: 1.7; color: var(--ink); font-weight: 500;
    background: var(--mist); border-left: 4px solid var(--brand-500);
    padding: 1.3rem 1.5rem; border-radius: 0 14px 14px 0;
}
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
    background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
    margin-bottom: .9rem; overflow: hidden; transition: box-shadow .3s, border-color .3s;
}
.faq-item[open] { box-shadow: var(--shadow-sm); border-color: var(--brand-500); }
.faq-item summary {
    list-style: none; cursor: pointer; padding: 1.15rem 1.4rem;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    font-weight: 700; color: var(--ink); font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-caret { width: 20px; height: 20px; flex: none; color: var(--brand-600); transition: transform .3s var(--ease); }
.faq-item[open] .faq-caret { transform: rotate(180deg); }
.faq-answer-body { padding: 0 1.4rem 1.3rem; }
.faq-answer-body p { color: var(--slate); }

/* =====================================================================
   AEO / SEO Insights Dashboard
   ===================================================================== */
:root {
    --pass: #1a9c5b; --pass-bg: rgba(26,156,91,.12);
    --warn: #e0870f; --warn-bg: rgba(224,135,15,.14);
    --fail: #d64545; --fail-bg: rgba(214,69,69,.12);
}
.dash { background: var(--mist); min-height: 100vh; padding: 7.5rem 0 4rem; }
.dash .container { width: min(1240px, 94%); }
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.dash-head .eyebrow { margin-bottom: .4rem; }
.dash-head h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.dash-head p { margin-top: .3rem; }
.dash-badge { display:inline-flex; align-items:center; gap:.5rem; background: var(--paper); border:1px solid var(--line); border-radius:50px; padding:.5rem 1rem; font-size:.85rem; font-weight:600; color: var(--slate); }
.dash-badge .live { width:8px;height:8px;border-radius:50%;background:var(--pass); box-shadow:0 0 0 rgba(26,156,91,.6); animation:pulse 2s infinite; }

.dash-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.dash-card h3 { font-size: 1.05rem; margin-bottom: 1.2rem; }
.dash-card .card-sub { font-size:.82rem; color: var(--muted); font-weight:500; margin-top:-.8rem; margin-bottom:1.2rem; }

/* Score gauges row */
.score-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; margin-bottom: 1.3rem; }
.gauge-card { display: flex; align-items: center; gap: 1.3rem; }
.gauge {
    --v: 0; width: 116px; height: 116px; border-radius: 50%; flex: none; position: relative;
    background: conic-gradient(var(--gauge-c, var(--brand-500)) calc(var(--v) * 1%), var(--line) 0);
    display: grid; place-items: center;
}
.gauge::before { content:""; position:absolute; inset:12px; background: var(--paper); border-radius:50%; }
.gauge .g-val { position: relative; z-index:1; font-size: 1.9rem; font-weight: 800; color: var(--ink); }
.gauge .g-val small { font-size: .9rem; }
.gauge-meta .g-label { font-size:.78rem; letter-spacing:.14em; text-transform:uppercase; font-weight:700; color: var(--muted); }
.gauge-meta .g-grade { font-size: 2rem; font-weight: 800; line-height:1; margin:.2rem 0; }
.gauge-meta .g-note { font-size:.85rem; color: var(--slate); }
.g-good { color: var(--pass) !important; } .g-warn { color: var(--warn) !important; } .g-fail { color: var(--fail) !important; }

/* KPI tiles */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; margin-bottom: 1.3rem; }
.kpi { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm); }
.kpi .k-ic { width: 42px; height: 42px; border-radius: 11px; background: var(--grad-brand); display:grid; place-items:center; margin-bottom: .9rem; }
.kpi .k-ic svg { width: 22px; height: 22px; stroke:#fff; fill:none; stroke-width:2; }
.kpi .k-val { font-size: 2rem; font-weight: 800; color: var(--ink); line-height:1; }
.kpi .k-lbl { font-size: .85rem; color: var(--slate); margin-top:.35rem; }

/* Two-column grid */
.dash-2col { display: grid; grid-template-columns: 1.35fr 1fr; gap: 1.3rem; margin-bottom: 1.3rem; }

/* Grouped bar chart */
.barchart { display:flex; align-items:flex-end; gap: 1.1rem; height: 240px; padding-top: .5rem; border-bottom: 2px solid var(--line); }
.bar-group { flex:1; display:flex; flex-direction:column; align-items:center; gap:.5rem; height:100%; justify-content:flex-end; }
.bars { display:flex; align-items:flex-end; gap:5px; height:100%; width:100%; justify-content:center; }
.bar { width: 26px; border-radius: 5px 5px 0 0; position: relative; min-height: 3px; transition: filter .2s; }
.bar:hover { filter: brightness(1.08); }
.bar.seo { background: var(--brand-500); }
.bar.aeo { background: var(--dark-800); }
.bar .bv { position:absolute; top:-1.35rem; left:50%; transform:translateX(-50%); font-size:.72rem; font-weight:700; color: var(--slate); }
.bar-group .bx { font-size:.78rem; color: var(--muted); font-weight:600; text-align:center; }
.legend { display:flex; gap:1.3rem; margin-top:1rem; font-size:.85rem; color: var(--slate); font-weight:600; }
.legend i { display:inline-block; width:14px; height:14px; border-radius:4px; margin-right:.4rem; vertical-align:-2px; }
.legend .l-seo { background: var(--brand-500); } .legend .l-aeo { background: var(--dark-800); }

/* Schema coverage list */
.schema-list { display:flex; flex-wrap:wrap; gap:.6rem; }
.schema-chip { display:inline-flex; align-items:center; gap:.45rem; background: var(--pass-bg); color: var(--pass); border:1px solid rgba(26,156,91,.3); padding:.45rem .85rem; border-radius:50px; font-size:.85rem; font-weight:700; }
.schema-chip svg { width:15px; height:15px; stroke: var(--pass); fill:none; stroke-width:2.5; }

/* Audit matrix table */
.audit-table { width:100%; border-collapse: collapse; font-size:.9rem; }
.audit-table th, .audit-table td { text-align:left; padding:.85rem 1rem; border-bottom:1px solid var(--line); }
.audit-table thead th { font-size:.75rem; letter-spacing:.08em; text-transform:uppercase; color: var(--muted); font-weight:700; }
.audit-table tbody tr:hover { background: var(--mist); }
.audit-table .page-cell b { color: var(--ink); }
.audit-table .page-cell small { display:block; color:var(--muted); font-size:.78rem; }
.score-pill { display:inline-flex; align-items:center; justify-content:center; min-width:46px; padding:.3rem .6rem; border-radius:8px; font-weight:800; font-size:.9rem; }
.score-pill.good { background: var(--pass-bg); color: var(--pass); }
.score-pill.warn { background: var(--warn-bg); color: var(--warn); }
.score-pill.fail { background: var(--fail-bg); color: var(--fail); }
.check-dots { display:flex; gap:4px; flex-wrap:wrap; }
.cdot { width:12px; height:12px; border-radius:3px; }
.cdot.pass { background: var(--pass); } .cdot.warn { background: var(--warn); } .cdot.fail { background: var(--fail); }
.table-scroll { overflow-x:auto; }

/* Recommendations */
.rec-item { display:flex; gap:.9rem; align-items:flex-start; padding:.9rem 0; border-bottom:1px solid var(--line); }
.rec-item:last-child { border-bottom:none; }
.sev { flex:none; padding:.2rem .55rem; border-radius:6px; font-size:.7rem; font-weight:800; letter-spacing:.04em; text-transform:uppercase; }
.sev.fail { background: var(--fail-bg); color: var(--fail); }
.sev.warn { background: var(--warn-bg); color: var(--warn); }
.rec-item .rec-body b { color: var(--ink); font-size:.86rem; }
.rec-item .rec-body p { font-size:.88rem; margin-top:.15rem; }
.rec-item .rec-route { font-family: monospace; font-size:.8rem; color: var(--brand-600); }
.rec-empty { display:flex; align-items:center; gap:.6rem; color: var(--pass); font-weight:700; }

/* Detail accordion per page */
.page-detail summary { cursor:pointer; font-weight:700; color: var(--brand-600); font-size:.82rem; list-style:none; }
.page-detail summary::-webkit-details-marker { display:none; }
.page-detail[open] summary { margin-bottom:.6rem; }
.check-line { display:flex; align-items:center; gap:.6rem; padding:.35rem 0; font-size:.85rem; }
.check-line .cl-ic { width:16px;height:16px;border-radius:4px;flex:none; }
.check-line .cl-ic.pass{background:var(--pass);} .check-line .cl-ic.warn{background:var(--warn);} .check-line .cl-ic.fail{background:var(--fail);}
.check-line .cl-cat { font-size:.68rem; font-weight:800; color:var(--muted); width:30px; }
.check-line .cl-detail { color: var(--muted); margin-left:auto; font-size:.8rem; }

@media (max-width: 900px) {
    .score-row { grid-template-columns: 1fr; }
    .kpi-grid { grid-template-columns: 1fr 1fr; }
    .dash-2col { grid-template-columns: 1fr; }
}

/* =====================================================================
   Login page + dashboard sign-out
   ===================================================================== */
.login-wrap {
    min-height: 100vh; display: grid; place-items: center; padding: 2rem;
    background: var(--grad-hero); position: relative; overflow: hidden;
}
.login-orbs { position: absolute; inset: 0; overflow: hidden; }
.login-orbs .orb.o1 { width: 460px; height: 460px; background: #ff9e33; top: -120px; right: -80px; }
.login-orbs .orb.o2 { width: 380px; height: 380px; background: #b8480a; bottom: -140px; left: -60px; animation-delay: -5s; }
.login-card {
    position: relative; z-index: 2; width: min(420px, 100%);
    background: var(--paper); border-radius: 22px; padding: 2.6rem;
    box-shadow: var(--shadow-lg);
}
.login-brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; color: var(--ink); margin-bottom: 1.6rem; }
.login-brand .drop { width: 34px; height: 34px; display: grid; place-items: center; background: var(--grad-brand); border-radius: 11px 11px 11px 3px; }
.login-brand .drop svg { width: 18px; height: 18px; fill: #fff; }
.login-card h1 { font-size: 1.6rem; }
.login-sub { margin: .3rem 0 1.6rem; color: var(--muted); }
.login-alert { padding: .8rem 1rem; border-radius: 10px; font-size: .9rem; font-weight: 600; margin-bottom: 1.2rem; }
.login-alert.error { background: var(--fail-bg); color: var(--fail); border: 1px solid rgba(214,69,69,.3); }
.login-alert.ok { background: var(--pass-bg); color: var(--pass); border: 1px solid rgba(26,156,91,.3); }
.login-back { display: inline-block; margin-top: 1.3rem; color: var(--brand-600); font-weight: 600; font-size: .9rem; }
.login-back:hover { color: var(--brand-700); }

.btn-signout {
    background: var(--paper); border: 1px solid var(--line); border-radius: 50px;
    padding: .5rem 1.1rem; font-size: .85rem; font-weight: 700; color: var(--slate);
    cursor: pointer; font-family: inherit; transition: background .2s, color .2s, border-color .2s;
}
.btn-signout:hover { background: var(--fail-bg); color: var(--fail); border-color: rgba(214,69,69,.3); }

/* =====================================================================
   Mega-menu header navigation
   ===================================================================== */
.nav { position: relative; }
.nav-links { gap: .15rem; }
.nav-links li.has-mega { position: static; }

/* Top-level toggle buttons (match nav-link styling) */
.nav-links .mega-toggle {
    font-family: inherit; background: none; border: none; cursor: pointer;
    color: rgba(255,255,255,.92); font-weight: 600; font-size: .9rem; line-height: 1;
    padding: .55rem .6rem; border-radius: 8px; position: relative;
    display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap;
    transition: color .3s;
}
.scrolled .nav-links .mega-toggle { color: var(--ink); }
.nav-links .mega-toggle .caret { width: 13px; height: 13px; opacity: .75; transition: transform .3s var(--ease); }
.nav-links .mega-toggle::after {
    content: ""; position: absolute; left: 50%; bottom: 1px; width: 0; height: 2px;
    background: #fff; border-radius: 2px; transform: translateX(-50%); transition: width .3s var(--ease);
}
.scrolled .nav-links .mega-toggle::after { background: var(--grad-brand); }
.has-mega:hover  .mega-toggle::after,
.has-mega:focus-within .mega-toggle::after { width: calc(100% - 1.2rem); }
.has-mega:hover  .mega-toggle .caret,
.has-mega:focus-within .mega-toggle .caret { transform: rotate(180deg); }

/* Panel */
.mega {
    position: absolute; left: 0; right: 0; top: 100%; padding-top: .7rem;
    opacity: 0; visibility: hidden; transform: translateY(8px); pointer-events: none;
    transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
    z-index: 1001;
}
.has-mega:hover .mega,
.has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.mega-inner {
    background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
    box-shadow: var(--shadow-lg); padding: 1.5rem 1.7rem;
}
.mega-head { margin-bottom: 1rem; }
.mega-eyebrow {
    font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
    color: var(--brand-600); display: inline-flex; align-items: center; gap: .55rem;
}
.mega-eyebrow::before { display: none; }
.mega-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem 1.8rem; }
.mega-col h4 { font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--brand-600); font-weight: 800; margin-bottom: .55rem; }
.mega-col a { display: block; padding: .38rem 0; font-size: .89rem; font-weight: 500; color: var(--slate); line-height: 1.35; transition: color .2s, padding-left .2s; }
.mega-col a:hover { color: var(--brand-600); padding-left: 5px; }
.mega-col a::after { display: none !important; }  /* cancel inherited nav underline */

/* Mobile: mega turns into an in-panel accordion */
@media (max-width: 1024px) {
    /* backdrop-filter would make the header a containing block for the fixed
       drawer (trapping it to header height) — drop it so the drawer fills the screen */
    .site-header.scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; }

    /* full-width, scrollable drawer so nested mega content stays contained */
    .nav-links {
        width: 100%; max-width: none; inset: 0;
        overflow-y: auto; -webkit-overflow-scrolling: touch;
        padding: 5.5rem 1.4rem 3rem; gap: 0;
    }
    .nav-links li.has-mega { width: 100%; }
    .nav-links .mega-toggle {
        width: 100%; justify-content: space-between; color: var(--ink);
        padding: .85rem .6rem; font-size: 1rem; border-bottom: 1px solid var(--line);
    }
    .nav-links .mega-toggle::after { display: none; }
    .nav-links .mega-toggle .caret { opacity: .9; }
    .has-mega.open .mega-toggle .caret { transform: rotate(180deg); }
    .mega {
        position: static; opacity: 1; visibility: visible; transform: none; pointer-events: auto;
        padding-top: 0; max-height: 0; overflow: hidden; transition: max-height .35s var(--ease);
    }
    .has-mega.open .mega { max-height: 1600px; }
    .mega-inner { border: none; box-shadow: none; border-radius: 0; padding: .3rem 0 .7rem .7rem; background: transparent; }
    .mega-head { display: none; }
    .mega-cols { grid-template-columns: 1fr; gap: .2rem; }
    .mega-col h4 { margin-top: .7rem; }
    .mega-col a { font-size: .92rem; padding: .5rem 0; }
    /* neutralise desktop hover-open on touch */
    .has-mega:hover .mega { max-height: 0; }
    .has-mega.open:hover .mega { max-height: 1600px; }
}

/* =====================================================================
   Logo-aligned theme: white header + real logo, orange + black
   ===================================================================== */
.site-header { background: #ffffff; box-shadow: 0 1px 0 var(--line); }
.site-header.scrolled { background: #ffffff; box-shadow: 0 6px 24px rgba(0,0,0,.08); }
.brand-logo { height: 80px; width: auto; display: block; transition: height .3s var(--ease); }
.scrolled .brand-logo { height: 62px; }
.site-header .brand { color: var(--ink); }
.site-header .nav-links a, .site-header .nav-links .mega-toggle { color: var(--ink); }
.site-header .nav-links a::after, .site-header .nav-links .mega-toggle::after { background: var(--grad-brand); }
.site-header .menu-toggle span { background: var(--ink); }
.site-header .nav-cta .btn-primary { background: var(--grad-brand); color:#fff; box-shadow: 0 10px 26px rgba(234,101,36,.35); }
.site-header .nav-cta .btn-primary svg { stroke:#fff; }
.footer-brand { display:inline-block; }
.footer-brand .brand-logo { background:#fff; padding:.7rem .9rem; border-radius:12px; height:60px; }

/* =====================================================================
   HOME PAGE
   ===================================================================== */
.home-hero {
    position: relative; overflow: hidden;
    padding: 9rem 0 4.5rem;
    background:
        radial-gradient(1100px 460px at 88% -8%, var(--mist-2), transparent 60%),
        radial-gradient(760px 420px at -6% 8%, #fff3ec, transparent 55%),
        #ffffff;
}
.home-hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.hh-eyebrow { display:inline-flex; flex-wrap:wrap; gap:.5rem; font-size:.74rem; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:var(--brand-600); margin-bottom:1.1rem; }
.hh-eyebrow span { background: var(--mist-2); padding:.25rem .6rem; border-radius:50px; }
.home-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); color: var(--ink); }
.home-hero h1 .o { color: var(--brand-500); }
.hh-sub { font-size:1.18rem; font-weight:700; color:var(--ink); margin:1rem 0 .5rem; }
.hh-lead { font-size:1.02rem; color:var(--slate); max-width:560px; }
.hh-verbs { display:flex; flex-wrap:wrap; gap:.4rem; margin:1.4rem 0 1.8rem; }
.hh-verbs span { font-size:.78rem; font-weight:700; color:var(--brand-700); background:#fff; border:1px solid var(--line); padding:.35rem .7rem; border-radius:50px; box-shadow:var(--shadow-sm); }
.home-hero .hero-actions { display:flex; gap:1rem; flex-wrap:wrap; }
.hh-visual { position:relative; }
.hh-visual img { width:100%; height:auto; border-radius:20px; cursor:zoom-in; transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.hh-visual img:hover { box-shadow: 0 18px 44px rgba(70,40,10,.18); }
.hh-note { margin-top:1.4rem; font-size:.92rem; color:var(--slate); border-left:3px solid var(--brand-500); background:var(--mist); padding:.9rem 1.1rem; border-radius:0 12px 12px 0; }

/* Section image helpers */
.img-frame { border-radius:20px; border:1px solid var(--line); box-shadow:var(--shadow-md); overflow:hidden; background:#fff; cursor:zoom-in; transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.img-frame:hover { box-shadow: 0 18px 44px rgba(70,40,10,.18); }
.img-frame img { width:100%; height:auto; display:block; }
.img-full { max-width: 1000px; margin: 0 auto; }
.img-frame.img-full { cursor: default; }
.section-note { max-width:760px; }

/* Verb / banner strip */
.banner-strip {
    background: var(--grad-brand); color:#fff; border-radius:20px;
    padding:1.6rem 2rem; text-align:center; font-weight:800; font-size:clamp(1.1rem,2.2vw,1.5rem);
    box-shadow:var(--shadow-md); letter-spacing:-.01em;
}

/* Ecosystem token chips */
.eco-chips { display:flex; flex-wrap:wrap; gap:.55rem; margin:1.3rem 0; }
.eco-chips span { font-size:.85rem; font-weight:600; color:var(--ink); background:var(--mist-2); border:1px solid #f4ddcc; padding:.4rem .85rem; border-radius:50px; }
.eco-chips.brand span { background:var(--grad-brand); color:#fff; border-color:transparent; box-shadow:0 4px 12px rgba(217,87,26,.22); }
.q-list { display:grid; gap:.5rem; margin-top:1rem; }
.q-list li { display:flex; gap:.6rem; color:var(--slate); font-size:.96rem; }
.q-list li::before { content:"•"; flex:none; width:22px; height:22px; border-radius:50%; background:var(--mist-2); color:var(--brand-600); font-weight:800; font-size:1.1rem; line-height:1; display:grid; place-items:center; }

/* Lifecycle flow (Discover → … → Revoke) */
.flow { display:flex; flex-wrap:wrap; gap:.5rem; align-items:stretch; }
.flow .step-chip { flex:1 1 150px; background:#fff; border:1px solid var(--line); border-top:3px solid var(--brand-500); border-radius:12px; padding:.9rem 1rem; box-shadow:var(--shadow-sm); }
.flow .step-chip b { display:block; color:var(--ink); font-size:.95rem; margin-bottom:.2rem; }
.flow .step-chip small { color:var(--muted); font-size:.8rem; line-height:1.3; display:block; }
.flow-line { display:flex; flex-wrap:wrap; gap:.4rem; align-items:center; justify-content:center; font-weight:800; color:var(--brand-600); font-size:.95rem; }
.flow-line span { background:var(--mist-2); padding:.35rem .7rem; border-radius:50px; color:var(--ink); }
.flow-line i { color:var(--brand-500); font-style:normal; }

/* Vendor chips */
.vendor-wrap { text-align:center; }
.vendor-primary { display:flex; flex-wrap:wrap; gap:.8rem; justify-content:center; margin-bottom:1rem; }
.vendor-primary span { font-weight:800; color:var(--ink); background:#fff; border:1px solid var(--line); border-bottom:3px solid var(--brand-500); padding:.7rem 1.2rem; border-radius:12px; box-shadow:var(--shadow-sm); }
.vendor-primary span small { display:block; font-size:.7rem; font-weight:600; color:var(--muted); letter-spacing:.02em; }
.vendor-more { display:flex; flex-wrap:wrap; gap:.5rem; justify-content:center; }
.vendor-more span { font-size:.85rem; font-weight:600; color:var(--slate); background:var(--mist); border:1px solid var(--line); padding:.4rem .8rem; border-radius:50px; }

/* Readiness two-up */
.ready-grid { display:grid; grid-template-columns:1fr 1fr; gap:1.5rem; }
.ready-card { background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:2rem; box-shadow:var(--shadow-sm); border-top:4px solid var(--brand-500); }
.ready-card h3 { margin-bottom:.5rem; }

/* Acknowledgement of country */
.ack { border-top:1px solid rgba(255,255,255,.28); margin-top:1.4rem; padding-top:1.4rem; font-size:.85rem; color:rgba(255,255,255,.85); max-width:none; }

@media (max-width: 1024px) {
    .home-hero .container { grid-template-columns: 1fr; }
    .hh-visual { max-width: 560px; margin: 0 auto; }
    .ready-grid { grid-template-columns: 1fr; }
}

/* =====================================================================
   Identity Security page — anchored sections + helpers
   ===================================================================== */
section[id] { scroll-margin-top: 96px; }
.subsec { padding: 3.2rem 0; border-top: 1px solid var(--line); }
.subsec:first-of-type { border-top: none; }
.subsec .eyebrow { margin-bottom: .6rem; }
.bullets { display: grid; gap: .5rem; margin: .9rem 0; }
.bullets.two { grid-template-columns: 1fr 1fr; column-gap: 2rem; }
.bullets li { position: relative; padding-left: 1.4rem; color: var(--slate); font-size: .95rem; line-height: 1.5; }
.bullets li::before { content: ""; position: absolute; left: 0; top: .5em; width: 7px; height: 7px; border-radius: 2px; background: var(--brand-500); }
.lede { font-size: 1.12rem; color: var(--slate); }
/* control cards grid for agent controls */
.control-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 1.2rem; }
.mini-card { background:#fff; border:1px solid var(--line); border-radius:14px; padding:1.3rem; border-top:3px solid var(--brand-500); box-shadow:var(--shadow-sm); }
.mini-card h4 { font-size:1rem; margin-bottom:.35rem; color:var(--ink); }
.mini-card p { font-size:.88rem; }
/* IAM vs Identity Security compare */
.compare { display:grid; grid-template-columns:1fr 1fr; gap:1.3rem; }
.compare .col { border-radius:16px; padding:1.6rem; border:1px solid var(--line); }
.compare .col.old { background:var(--mist); }
.compare .col.new { background:var(--mist-2); border-color:#f4ddcc; }
.compare .col h4 { margin-bottom:.7rem; }
@media (max-width: 760px) { .bullets.two, .compare { grid-template-columns: 1fr; } }

/* Clickable mega-menu group headings */
.nav-links .mega-col h4 a { color: var(--brand-600); padding: 0; display: inline; font: inherit; letter-spacing: inherit; text-transform: inherit; }
.nav-links .mega-col h4 a::after { display: none !important; }
.nav-links .mega-col h4 a:hover { color: var(--brand-700); padding-left: 0; }
/* mega eyebrow label also orange, overriding .nav-links a / .scrolled .nav-links a */
.nav-links .mega-eyebrow a { color: var(--brand-600); }
.nav-links .mega-eyebrow a:hover { color: var(--brand-700); }

/* =====================================================================
   Contact page extras
   ===================================================================== */
.field.req label::after { content:" *"; color: var(--brand-600); }
.field .err { display:none; color:#d64545; font-size:.8rem; margin-top:.35rem; font-weight:600; }
.field input.invalid, .field select.invalid { border-color:#d64545; box-shadow:0 0 0 4px rgba(214,69,69,.12); }
.field.show-err .err { display:block; }
.consent { font-size:.82rem; color:var(--muted); margin:.2rem 0 1.2rem; line-height:1.5; }
.consent a { color:var(--brand-600); font-weight:600; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:0 1.2rem; }
.btn-wa { background:#25D366; color:#fff; box-shadow:0 10px 26px rgba(37,211,102,.32); }
.btn-wa:hover { transform:translateY(-3px); box-shadow:0 16px 34px rgba(37,211,102,.42); }
.btn-wa svg { fill:#fff; stroke:none; }
.contact-side-card { background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); padding:1.6rem; box-shadow:var(--shadow-sm); border-top:3px solid var(--brand-500); margin-bottom:1.2rem; }
.contact-side-card h3 { font-size:1.15rem; margin-bottom:.5rem; }
.contact-side-card p { font-size:.92rem; }
.contact-side-card .btn { margin-top:1rem; }
@media (max-width:560px){ .form-row { grid-template-columns:1fr; } }

/* =====================================================================
   Partners page — uniform logos, ticker, badges, partner cards
   ===================================================================== */
/* Scrolling logo ticker */
.logo-ticker { position: relative; overflow: hidden; padding: .5rem 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logo-track { display: flex; gap: 1.2rem; width: max-content; animation: ticker 38s linear infinite; }
.logo-ticker:hover .logo-track { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Uniform logo tile — same box for every logo regardless of source size */
.logo-tile { flex: none; width: 190px; height: 96px; background: #fff; border: 1px solid var(--line);
    border-radius: 14px; display: grid; place-items: center; padding: 1rem 1.3rem; box-shadow: var(--shadow-sm); }
.logo-tile img { max-height: 52px; max-width: 100%; width: auto; object-fit: contain;
    opacity: 1; transition: transform .3s; }
.logo-tile a { display: grid; place-items: center; width: 100%; height: 100%; }
.logo-tile:hover img { transform: scale(1.06); }
.proc-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.4rem; align-items: center; }
.proc-logo { display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.8rem; box-shadow: var(--shadow-sm); min-width: 200px; height: 110px; transition: transform .3s, box-shadow .3s; }
.proc-logo img { max-height: 68px; max-width: 240px; width: auto; object-fit: contain; }
.proc-logo:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* Static uniform logo grid (fallback / non-animated) */
.logo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1.1rem; }
.logo-grid .logo-tile { width: 100%; }

/* Certification badges — uniform squares */
.badge-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.2rem; }
.badge-tile { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.2rem; text-align: center; box-shadow: var(--shadow-sm); border-top: 3px solid var(--brand-500); }
.badge-tile img { height: 96px; width: auto; max-width: 100%; object-fit: contain; margin: 0 auto .7rem; }
.badge-tile b { display: block; font-size: .9rem; color: var(--ink); }
.badge-tile small { color: var(--muted); font-size: .78rem; }

/* Partner profile cards — uniform logo band + text */
.partner-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; display: flex; flex-direction: column; }
.partner-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.partner-logo { height: 92px; display: grid; place-items: center; padding: 1.1rem; border-bottom: 1px solid var(--line); background: var(--mist); }
.partner-logo img { max-height: 46px; max-width: 74%; object-fit: contain; }
.partner-card .pc-body { padding: 1.4rem 1.5rem; }
.partner-card .pc-body .tagline { color: var(--brand-600); font-weight: 800; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: .5rem; }
.partner-card .pc-body h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.partner-card .pc-body p { font-size: .92rem; }
.partner-card .pc-body ul.bullets { margin-top: .6rem; }

/* ============================================================
   IDENTITY SECURITY — sub-page navigation (horizontal subnav +
   left sidebar child menu + two-column layout)
   ============================================================ */

/* Compact page hero for the sub-pages (clears the fixed header) */
.is-subhero {
    position: relative; overflow: hidden;
    padding: 8.5rem 0 2.6rem;
    background:
        radial-gradient(900px 380px at 90% -20%, var(--mist-2), transparent 60%),
        radial-gradient(620px 340px at -6% 0%, #fff3ec, transparent 55%),
        #ffffff;
}
/* Wider page for the identity-security sub-pages so the cross-nav never scrolls */
.is-subhero .container,
.is-subnav .container,
.section .container.is-layout { width: min(1520px, 96%); }
.is-subhero .container { max-width: 1120px; }
.is-subhero .eyebrow { color: var(--brand-600); }
.is-subhero h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); color: var(--ink); margin: .4rem 0 .8rem; }
.is-subhero p { color: var(--slate); max-width: 820px; font-size: 1.03rem; }

/* Horizontal subnav — all five identity-security areas, always visible */
.is-subnav {
    position: sticky; top: 66px; z-index: 900;
    background: var(--grad-brand);
    border-top: 1px solid rgba(255,255,255,.25);
    border-bottom: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 6px 18px rgba(234,101,36,.22);
}
.is-subnav .container {
    display: flex; gap: .5rem; align-items: stretch; justify-content: center;
    flex-wrap: wrap;
    padding-top: .55rem; padding-bottom: .55rem;
}
.is-subnav a {
    flex: none; display: inline-flex; align-items: center; gap: .5rem;
    padding: .55rem .95rem; border-radius: 50px;
    font-size: .84rem; font-weight: 700; color: #fff;
    white-space: nowrap; border: 1px solid rgba(255,255,255,.4);
    transition: background .25s var(--ease), color .25s, border-color .25s;
}
.is-subnav a .n {
    display: grid; place-items: center; width: 20px; height: 20px;
    border-radius: 50%; background: rgba(255,255,255,.25); color: #fff;
    font-size: .72rem; font-weight: 800;
}
.is-subnav a:hover { background: rgba(255,255,255,.18); color: #fff; border-color: rgba(255,255,255,.7); }
.is-subnav a.active { background: #fff; color: var(--brand-700); border-color: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.is-subnav a.active .n { background: var(--grad-brand); color: #fff; }

/* Two-column layout: sticky sidebar + main content */
.is-layout { display: grid; grid-template-columns: 250px 1fr; gap: 2.8rem; align-items: start; }
.is-sidebar { position: sticky; top: 130px; align-self: start; }
.is-sidebar .side-head {
    font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
    color: var(--brand-600); margin-bottom: .8rem; padding-left: .9rem;
}
.is-sidebar nav { display: flex; flex-direction: column; gap: .15rem; border-left: 2px solid var(--line); }
.is-sidebar nav a {
    padding: .6rem .9rem; margin-left: -2px; border-left: 2px solid transparent;
    font-size: .9rem; font-weight: 600; color: var(--slate); line-height: 1.35;
    transition: color .2s, border-color .2s, background .2s;
}
.is-sidebar nav a:hover { color: var(--brand-600); background: var(--mist); }
.is-sidebar nav a.active,
.is-sidebar nav a:target { color: var(--brand-700); border-left-color: var(--brand-500); font-weight: 800; }
.is-main { min-width: 0; }
.is-main .subsec { scroll-margin-top: 150px; }
.is-main .subsec:first-child { padding-top: 0; }

@media (max-width: 900px) {
    .is-layout { grid-template-columns: 1fr; gap: 1.4rem; }
    .is-sidebar { position: static; top: auto; }
    .is-sidebar nav { flex-flow: row wrap; border-left: none; gap: .5rem; }
    .is-sidebar nav a { margin-left: 0; border-left: none; border: 1px solid var(--line); border-radius: 50px; padding: .4rem .85rem; font-size: .82rem; }
    .is-sidebar nav a.active { border-color: var(--brand-500); background: var(--mist); }
}
@media (max-width: 760px) {
    .is-subnav .container {
        flex-wrap: nowrap; justify-content: flex-start;
        overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    }
    .is-subnav .container::-webkit-scrollbar { display: none; }
}
@media (max-width: 640px) {
    .is-subnav { top: 60px; }
    .is-subhero { padding-top: 7.5rem; }
}

/* Overview area cards — "Explore area" affordance */
.mini-link { display: inline-block; margin-top: 1rem; font-weight: 800; font-size: .88rem; color: var(--brand-600); }
a.s-card { color: inherit; }
a.s-card:hover .mini-link { color: var(--brand-700); }
a.s-card:hover { border-color: var(--brand-300, var(--brand-500)); }

/* Identity Security sub-pages — images enlarge to page centre on hover */
.is-main .img-frame {
    position: relative;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
    cursor: zoom-in;
}
.is-main .img-frame:hover { transform: translateY(-2px); box-shadow: 0 18px 44px rgba(70,40,10,.18); }

/* Full-screen centred zoom overlay (driven by main.js) */
.img-zoom {
    position: fixed; inset: 0; z-index: 3000;
    display: flex; align-items: center; justify-content: center;
    padding: 3vh 3vw;
    background: rgba(26, 14, 4, .62);
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
    opacity: 0; visibility: hidden;
    transition: opacity .3s var(--ease), visibility .3s var(--ease);
    pointer-events: none;
}
.img-zoom.show { opacity: 1; visibility: visible; }
.img-zoom img {
    max-width: 88vw; max-height: 88vh; width: auto; height: auto;
    border-radius: 18px; background: #fff;
    box-shadow: 0 40px 100px rgba(0,0,0,.5);
    transform: scale(.92); transition: transform .3s var(--ease);
}
.img-zoom.show img { transform: scale(1); }

/* ============================================================
   Area pages (Services, Solutions, Support, Partners, Company)
   — left side-car sidebar + hover-enlarge, matching Identity Security
   ============================================================ */
.area-shell {
    display: grid; grid-template-columns: 240px 1fr; gap: 2.6rem;
    width: min(1520px, 96%); margin: 0 auto; align-items: start;
    padding: 1.4rem 0 0;
}
.area-sidebar { position: sticky; top: 118px; align-self: start; }
.area-sidebar .side-head {
    font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
    color: var(--brand-600); margin-bottom: .8rem; padding-left: .9rem;
}
.area-sidebar nav { display: flex; flex-direction: column; gap: .15rem; border-left: 2px solid var(--line); }
.area-sidebar nav a {
    padding: .6rem .9rem; margin-left: -2px; border-left: 2px solid transparent;
    font-size: .9rem; font-weight: 600; color: var(--slate); line-height: 1.35;
    transition: color .2s, border-color .2s, background .2s;
}
.area-sidebar nav a:hover { color: var(--brand-600); background: var(--mist); }
.area-sidebar nav a.active { color: var(--brand-700); border-left-color: var(--brand-500); font-weight: 800; }

.area-main { min-width: 0; }
/* Sections flow inside the main column; drop full-bleed tint bands for a clean single-column read */
.area-main > .section { padding: 2.2rem 0; }
.area-main > .section:first-child { padding-top: .5rem; }
.area-main > .section > .container { width: 100%; }
.area-main .section.mist { background: transparent; }
.area-main [id] { scroll-margin-top: 120px; }

/* Images pop to page centre on hover (shared with Identity Security) */
.area-main .img-frame { position: relative; transition: transform .3s var(--ease), box-shadow .3s var(--ease); cursor: zoom-in; }
.area-main .img-frame:hover { transform: translateY(-2px); box-shadow: 0 18px 44px rgba(70,40,10,.18); }

@media (max-width: 900px) {
    .area-shell { grid-template-columns: 1fr; gap: 1.2rem; }
    .area-sidebar { position: static; top: auto; }
    .area-sidebar nav { flex-flow: row wrap; border-left: none; gap: .5rem; }
    .area-sidebar nav a { margin-left: 0; border-left: none; border: 1px solid var(--line); border-radius: 50px; padding: .4rem .85rem; font-size: .82rem; }
    .area-sidebar nav a.active { border-color: var(--brand-500); background: var(--mist); }
}

/* ============================================================
   Home page — uniform, right-aligned section figures
   (reuses .area-shell sidebar + .area-main hover-enlarge)
   ============================================================ */
.home-main .split { align-items: center; grid-template-columns: minmax(0,0.85fr) minmax(0,1.5fr); gap: 2.4rem; }
.home-main .split-media { justify-self: center; width: 100%; }
.home-main .split-media .img-frame {
    width: 100%; max-width: 700px; margin: 0 auto;   /* centred in column */
    aspect-ratio: 16 / 10; overflow: hidden;            /* uniform size, no white space */
}
.home-main .split-media .img-frame img { width: 100%; height: 100%; object-fit: contain; display: block; }
@media (max-width: 900px) {
    .home-main .split-media .img-frame { margin: 0 auto; max-width: 620px; }
}

/* ============================================================
   Identity Security sub-pages — all figures right-aligned & uniform
   ============================================================ */
.is-main .split { align-items: center; grid-template-columns: minmax(0,0.85fr) minmax(0,1.5fr); gap: 2.4rem; }
.is-main .split-content { order: 1; }
.is-main .split-media { order: 2; justify-self: center; width: 100%; }
.is-main .split-media .img-frame {
    width: 100%; max-width: 700px; margin: 0 auto;   /* centred in column */
    aspect-ratio: 16 / 10; overflow: hidden;            /* uniform size, no white space */
}
.is-main .split-media .img-frame img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* Full-width banner figures (e.g. agent controls) keep their own sizing */
.is-main .img-frame.img-full { max-width: 100%; aspect-ratio: auto; }
/* Portrait figures: fit to the image (no forced 16:10, no blurred filler) */
.is-main .split-media .img-frame.fit,
.area-main .split-media .img-frame.fit,
.home-main .split-media .img-frame.fit { aspect-ratio: auto; max-width: 420px; margin: 0 auto; }
.is-main .split-media .img-frame.fit img,
.area-main .split-media .img-frame.fit img,
.home-main .split-media .img-frame.fit img { height: auto; object-fit: contain; }
@media (max-width: 900px) {
    .is-main .split-media .img-frame { margin: 0 auto; max-width: 600px; }
}

/* All area-page split figures: right-aligned & uniform size (consistent with Identity Security) */
.area-main .split { align-items: center; grid-template-columns: minmax(0,0.85fr) minmax(0,1.5fr); gap: 2.4rem; }
.area-main .split-content { order: 1; }
.area-main .split-media { order: 2; justify-self: center; width: 100%; }
.area-main .split-media .img-frame {
    width: 100%; max-width: 700px; margin: 0 auto;   /* centred in column */
    aspect-ratio: 16 / 10; overflow: hidden;            /* uniform size, no white space */
}
.area-main .split-media .img-frame img { width: 100%; height: 100%; object-fit: contain; display: block; }
.area-main .img-frame.img-full { max-width: 100%; aspect-ratio: auto; margin-left: 0; }
@media (max-width: 900px) {
    .area-main .split-media .img-frame { margin: 0 auto; max-width: 600px; }
}

/* ===== Section heading lifted to a full-width header above the columns (change-log) ===== */
.split-head { margin: 0 0 1.4rem; max-width: none; }
.split-head .eyebrow { display: inline-block; margin-bottom: .4rem; }
.split-head h1, .split-head h2, .split-head h3, .split-head h4 {
    margin: 0; color: var(--ink); line-height: 1.18; letter-spacing: -.01em;
    font-size: clamp(1.35rem, 2.1vw, 1.85rem);
}
.split-head::after {
    content: ""; display: block; width: 64px; height: 3px; margin-top: .85rem;
    background: var(--brand-500); border-radius: 3px;
}

.split-head + .split { align-items: start; }

/* ===== Partnership credentials pill (home Our Partners) ===== */
.cred-pill {
    display: inline-block; max-width: 100%;
    background: var(--grad-brand); color: #fff;
    font-weight: 700; font-size: .9rem; line-height: 1.45;
    padding: .7rem 1.3rem; border-radius: 40px;
    box-shadow: var(--shadow-sm);
}

/* ===== Legal / policy body ===== */
.legal-body { color: var(--slate); font-size: 1.02rem; line-height: 1.75; }
.legal-body h2 { color: var(--ink); font-size: 1.3rem; margin: 2rem 0 .6rem; }
.legal-body p { margin: 0 0 1rem; }
.legal-body ul { margin: 0 0 1.2rem 1.2rem; }
.legal-body li { margin: 0 0 .5rem; }
.legal-body a { color: var(--brand-600); font-weight: 600; }
.legal-body a:hover { text-decoration: underline; }

/* Hero heading lifted to a full-width header row (avoid narrow-column wrap) */
.home-hero .container > .hero-head { grid-column: 1 / -1; margin-bottom: .3rem; }

/* CTA: wider box inside a narrower section container */
.container:has(> .cta-band) { max-width: 1040px; }

/* =====================================================================
   MOBILE & DEVICE OPTIMIZATIONS
   ===================================================================== */

/* Never let the fixed lightbox add horizontal scroll on small screens */
.img-zoom { max-width: 100vw; overflow: hidden; }

/* Tablets & down: keep multi-column card rows readable */
@media (max-width: 760px) {
    /* Any fixed-column card grid (incl. inline repeat(3,1fr)) → 2 up */
    .card-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .control-grid { grid-template-columns: 1fr !important; }
    .home-hero .container,
    .hero .container { gap: 1.6rem; }

    /* Collapse the uniform-figure split layouts to a single column so the
       text column isn't crushed (these override the base .split collapse). */
    .area-main .split,
    .is-main .split,
    .home-main .split { grid-template-columns: 1fr !important; }
    .area-main .split-media,
    .is-main .split-media,
    .home-main .split-media { order: 2; }
    .area-main .split-media .img-frame,
    .is-main .split-media .img-frame,
    .home-main .split-media .img-frame { max-width: 560px; margin-inline: auto; }
}

/* Phones */
@media (max-width: 560px) {
    /* Comfortable, consistent side gutter (>=16px) */
    .container { width: 100%; padding-inline: 18px; }

    /* Buttons wrap instead of overflowing; stack full-width where they lead an action */
    .btn { white-space: normal; text-align: center; line-height: 1.25; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .cta-band .btn,
    .contact-side-card .btn { width: 100%; justify-content: center; }

    /* Single-column stacks for all card/step/stat rows */
    .card-grid,
    .steps { grid-template-columns: 1fr !important; }

    /* Mega menu inside the mobile drawer: one column, easy to scan */
    .nav-links .mega-cols { grid-template-columns: 1fr; gap: .2rem 1rem; }

    /* Tighter vertical rhythm so pages aren't endlessly long on small screens */
    .section { padding: 3.4rem 0; }

    /* Headings: gentle reduction on very small screens */
    .home-hero h1, .hero h1 { font-size: clamp(1.9rem, 8.5vw, 2.4rem); }

    /* Uniform section figures a touch smaller so text leads */
    .area-main .split-media .img-frame,
    .is-main .split-media .img-frame,
    .home-main .split-media .img-frame { max-width: 100%; }
}

/* Touch devices: finger-friendly (>=44px) tap targets for navigation & link lists */
@media (hover: none) and (pointer: coarse) {
    .nav-links a,
    .area-sidebar nav a,
    .is-sidebar nav a,
    .f-links a { min-height: 44px; display: flex; align-items: center; }
    .is-subnav a { padding-top: .6rem; padding-bottom: .6rem; }
    /* On touch, section figures don't "hover-zoom"; make the cursor honest */
    .img-frame:not(.img-full) img, .hh-visual img { cursor: default; }
}

/* Contact CTA shown inside the mobile drawer (hidden on desktop) */
.nav-cta-mobile { display: none; }
@media (max-width: 1024px) {
    .nav-cta-mobile { display: block; width: 100%; margin-top: 1.2rem; }
    .nav-cta-mobile .btn { display: inline-flex; width: 100%; justify-content: center; }
}
