/* ==========================================================================
   Marketing with Selva — brand system
   Colors sampled from the MS Signal logo: deep teal, signal orange, white.
   ========================================================================== */

:root {
    /* Brand */
    --teal-950: #012A35;
    --teal-900: #013745;
    --teal-800: #014556; /* logo background */
    --teal-700: #0A5568;
    --teal-600: #1B6C80;
    --teal-200: #B9D5DC;
    --teal-100: #DCEAEE;
    --teal-50:  #EEF5F7;

    --orange-600: #E56C00;
    --orange-500: #FE7D01; /* logo orange */
    --orange-400: #FF9A3D;
    --orange-100: #FFE9D2;
    --orange-ink: #B45200; /* orange that stays readable as text on light */

    /* Surfaces & text */
    --surface: #FFFFFF;
    --surface-soft: #F5F8F9;
    --ink: #012F3B;
    --body: #3F5863;
    --muted: #6B828C;
    --line: #DFE8EB;

    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 32px;
    --shadow-sm: 0 1px 2px rgba(1, 47, 59, .06), 0 4px 14px rgba(1, 47, 59, .05);
    --shadow-md: 0 2px 4px rgba(1, 47, 59, .06), 0 18px 40px -12px rgba(1, 47, 59, .18);

    --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

    /* Bootstrap overrides */
    --bs-primary: #FE7D01;
    --bs-primary-rgb: 254, 125, 1;
    --bs-body-bg: #FFFFFF;
    --bs-body-color: #3F5863;
    --bs-heading-color: #012F3B;
    --bs-font-sans-serif: var(--font);
    --bs-link-color: #B45200;
    --bs-link-hover-color: #8F4100;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--body);
    background: var(--surface);
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection { background: var(--orange-500); color: var(--teal-950); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font);
    color: var(--ink);
    font-weight: 800;
    letter-spacing: -0.03em;
    text-wrap: balance;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5.4vw, 4.5rem); line-height: 1.04; letter-spacing: -0.04em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.12; }
h3 { font-size: 1.5rem; line-height: 1.25; }
h4 { font-size: 1.25rem; line-height: 1.3; font-weight: 700; }
h5 { font-size: 1.125rem; line-height: 1.35; font-weight: 700; letter-spacing: -0.02em; }
h6 { font-size: 1rem; line-height: 1.4; font-weight: 700; letter-spacing: -0.01em; }

p { margin-bottom: 1.1rem; text-wrap: pretty; }

a { color: var(--orange-ink); }

section { padding: 112px 0; position: relative; }

.section-soft { background: var(--surface-soft); }

.section-dark {
    background: var(--teal-800);
    color: rgba(255, 255, 255, .78);
}
.section-dark h1, .section-dark h2, .section-dark h3,
.section-dark h4, .section-dark h5, .section-dark h6 { color: #fff; }

/* Small uppercase label — echoes the logo tagline */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--orange-ink);
    margin-bottom: 1.25rem;
}
.eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--orange-500);
    border-radius: 2px;
}
.section-dark .eyebrow, .hero .eyebrow { color: var(--orange-400); }

.section-head { max-width: 760px; margin-bottom: 3.5rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.125rem; color: var(--body); margin-bottom: 0; }
.section-dark .section-head p { color: rgba(255, 255, 255, .72); }

.accent { color: var(--orange-500); }
.text-orange { color: var(--orange-ink) !important; }
.text-muted { color: var(--muted) !important; }

/* ---------- Buttons ---------- */
.btn {
    --bs-btn-font-weight: 700;
    font-family: var(--font);
    border-radius: 999px;
    padding: .85rem 1.6rem;
    font-size: 1rem;
    letter-spacing: -0.01em;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn-lg { padding: 1.05rem 2rem; font-size: 1.05rem; }

.btn .arrow { display: inline-block; margin-left: .4rem; transition: transform .2s ease; }
.btn:hover .arrow, .link-arrow:hover .arrow { transform: translateX(4px); }

.btn-primary {
    --bs-btn-bg: var(--orange-500);
    --bs-btn-border-color: var(--orange-500);
    --bs-btn-color: var(--teal-950);
    --bs-btn-hover-bg: var(--orange-400);
    --bs-btn-hover-border-color: var(--orange-400);
    --bs-btn-hover-color: var(--teal-950);
    --bs-btn-active-bg: var(--orange-600);
    --bs-btn-active-border-color: var(--orange-600);
    --bs-btn-active-color: var(--teal-950);
    box-shadow: 0 10px 24px -10px rgba(254, 125, 1, .7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(254, 125, 1, .75); }

.btn-outline-primary {
    --bs-btn-color: var(--ink);
    --bs-btn-border-color: var(--teal-200);
    --bs-btn-bg: transparent;
    --bs-btn-hover-bg: var(--teal-800);
    --bs-btn-hover-border-color: var(--teal-800);
    --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: var(--teal-900);
    --bs-btn-active-border-color: var(--teal-900);
    --bs-btn-active-color: #fff;
    border-width: 1.5px;
}

.btn-ghost-light {
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .04);
}
.btn-ghost-light:hover { color: var(--teal-950); background: #fff; border-color: #fff; }

.link-arrow {
    font-weight: 700;
    text-decoration: none;
    color: var(--orange-ink);
}
.link-arrow .arrow { display: inline-block; margin-left: .3rem; transition: transform .2s ease; }

/* ---------- Navbar ---------- */
.site-nav {
    background: rgba(1, 69, 86, .88);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    padding: .9rem 0;
    transition: padding .25s ease, background-color .25s ease, box-shadow .25s ease;
}
.site-nav.is-scrolled {
    padding: .55rem 0;
    background: rgba(1, 55, 69, .96);
    box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .6);
}
.site-nav .navbar-brand { padding: 0; margin-right: 2rem; }
.site-nav .navbar-brand img { height: 44px; width: auto; display: block; }

.site-nav .nav-link {
    font-weight: 600;
    font-size: .95rem;
    color: rgba(255, 255, 255, .78);
    padding: .5rem .9rem !important;
    border-radius: 999px;
    transition: color .2s ease, background-color .2s ease;
}
.site-nav .nav-link:hover,
.site-nav .nav-link.show { color: #fff; background: rgba(255, 255, 255, .08); }
.site-nav .nav-link.active { color: #fff; }
.site-nav .nav-link.active:not(.nav-cta) { box-shadow: inset 0 -2px 0 var(--orange-500); border-radius: 0; }

.site-nav .nav-cta {
    background: var(--orange-500);
    color: var(--teal-950) !important;
    font-weight: 700;
    padding: .6rem 1.3rem !important;
    margin-left: .5rem;
}
.site-nav .nav-cta:hover { background: var(--orange-400); }

.site-nav .dropdown-menu {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: .5rem;
    margin-top: .75rem;
    box-shadow: var(--shadow-md);
}
.site-nav .dropdown-item {
    border-radius: 10px;
    padding: .6rem .9rem;
    font-weight: 600;
    font-size: .95rem;
    color: var(--ink);
}
.site-nav .dropdown-item:hover, .site-nav .dropdown-item:focus { background: var(--teal-50); color: var(--ink); }

.site-nav .navbar-toggler { border: 0; padding: .4rem .5rem; }
.site-nav .navbar-toggler:focus { box-shadow: 0 0 0 2px rgba(255, 255, 255, .3); }

/* ---------- Hero ---------- */
.hero {
    background: var(--teal-800);
    color: rgba(255, 255, 255, .8);
    padding: 190px 0 120px;
    overflow: hidden;
    isolation: isolate;
}
.hero::before { /* soft light + orange glow */
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(60% 70% at 88% 18%, rgba(254, 125, 1, .20), transparent 62%),
        radial-gradient(55% 60% at 8% 0%, rgba(27, 108, 128, .85), transparent 65%),
        linear-gradient(180deg, var(--teal-800), var(--teal-900));
}
.hero::after { /* fine grid */
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(75% 75% at 50% 30%, #000, transparent 80%);
    mask-image: radial-gradient(75% 75% at 50% 30%, #000, transparent 80%);
}
.hero h1 { color: #fff; margin-bottom: 1.5rem; }
.hero .lede {
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, .82);
    max-width: 600px;
    margin-bottom: 1.25rem;
}
.hero .hero-note {
    display: inline-block;
    font-size: .98rem;
    font-weight: 600;
    color: #fff;
    padding-left: 1rem;
    border-left: 3px solid var(--orange-500);
    margin-bottom: 2.5rem;
}

.hero-visual { position: relative; max-width: 420px; margin: 0 auto; }
.hero-photo {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: var(--teal-900);
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .65);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; display: block; }
.hero-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(1, 42, 53, .75));
}
.hero-signal { /* the signal arcs from the logo */
    position: absolute;
    top: -46px;
    right: -46px;
    width: 150px;
    height: 150px;
    color: var(--orange-500);
    z-index: -1;
}
.hero-signal path { animation: signal 2.8s ease-in-out infinite; }
.hero-signal path:nth-child(2) { animation-delay: .25s; }
.hero-signal path:nth-child(3) { animation-delay: .5s; }
@keyframes signal { 0%, 100% { opacity: .25; } 45% { opacity: 1; } }

.hero-chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: .75rem;
    background: #fff;
    color: var(--ink);
    border-radius: 16px;
    padding: .8rem 1.1rem;
    box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .5);
    line-height: 1.2;
    z-index: 2;
}
.hero-chip strong { display: block; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.03em; }
.hero-chip span { font-size: .78rem; font-weight: 600; color: var(--muted); }
.hero-chip i {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border-radius: 12px;
    background: var(--orange-100);
    color: var(--orange-ink);
    font-size: 1.1rem;
}
.hero-chip.chip-a { left: -34px; bottom: 96px; }
.hero-chip.chip-b { right: -26px; bottom: 22px; }
.hero-name {
    position: absolute;
    left: 1.4rem;
    bottom: 1.2rem;
    z-index: 1;
    color: #fff;
    font-weight: 700;
    line-height: 1.3;
}
.hero-name small { display: block; font-weight: 500; color: rgba(255, 255, 255, .7); font-size: .8rem; }

/* Tagline strip */
.pillars {
    background: var(--teal-950);
    padding: 1.4rem 0;
}
.pillars ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .6rem 0;
}
.pillars li {
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .86);
    padding: 0 1.6rem;
}
.pillars li + li { border-left: 2px solid var(--orange-500); }

/* ---------- Problem bento ---------- */
.bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
.tile {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--teal-200); }
.tile .tile-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2.25rem; }
.tile .num { font-size: .8rem; font-weight: 700; letter-spacing: .12em; color: var(--muted); }
.icon-box {
    width: 48px; height: 48px;
    display: grid; place-items: center;
    border-radius: 14px;
    background: var(--teal-50);
    color: var(--teal-800);
    font-size: 1.3rem;
    flex-shrink: 0;
}
.tile:hover .icon-box { background: var(--orange-100); color: var(--orange-ink); }
.tile h5 { margin-bottom: .4rem; }
.tile p { font-size: .97rem; line-height: 1.55; color: var(--body); margin: 0; }

.tile-quote {
    background: var(--teal-800);
    border-color: var(--teal-800);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
}
.tile-quote:hover { border-color: var(--teal-800); }
.tile-quote i { font-size: 2rem; color: var(--orange-500); line-height: 1; }
.tile-quote p { font-size: 1.05rem; font-weight: 600; line-height: 1.5; color: #fff; }

/* ---------- Reframe ---------- */
.pull-quote {
    border-left: 4px solid var(--orange-500);
    padding: .25rem 0 .25rem 1.5rem;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 2rem 0 0;
}
.align-stack { display: grid; gap: 1rem; }
.align-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.4rem 1.6rem;
    box-shadow: var(--shadow-sm);
}
.align-item:nth-child(2) { margin-left: 2rem; }
.align-item:nth-child(3) { margin-left: 4rem; }
.align-item h6 { margin: 0; font-size: 1.15rem; }
.align-item .bi-check2 { margin-left: auto; color: var(--orange-500); font-size: 1.4rem; }

/* ---------- Comparison ---------- */
.compare {
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    height: 100%;
}
.compare h5 { font-size: 1.3rem; margin-bottom: 1.75rem; }
.compare ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.compare li { display: flex; gap: .9rem; align-items: flex-start; line-height: 1.5; }
.compare li i { margin-top: .15rem; flex-shrink: 0; }
.compare-old { background: var(--surface-soft); border: 1px dashed #C5D3D8; }
.compare-old h5, .compare-old li { color: var(--muted); }
.compare-new {
    background: var(--teal-800);
    color: #fff;
    box-shadow: 0 30px 60px -28px rgba(1, 69, 86, .7);
    position: relative;
    overflow: hidden;
}
.compare-new::after {
    content: "";
    position: absolute;
    width: 260px; height: 260px;
    right: -90px; top: -90px;
    background: radial-gradient(circle, rgba(254, 125, 1, .35), transparent 65%);
}
.compare-new h5 { color: #fff; }
.compare-new li { font-weight: 600; }
.compare-new li i { color: var(--orange-500); }
.tag {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: .3rem .7rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}
.compare-old .tag { background: #E4ECEF; color: var(--muted); }
.compare-new .tag { background: var(--orange-500); color: var(--teal-950); }

/* ---------- Action → Result ---------- */
.flow { display: grid; gap: .9rem; }
.flow-head, .flow-row {
    display: grid;
    grid-template-columns: 1fr 56px 1fr;
    align-items: center;
}
.flow-head { padding: 0 1.75rem; }
.flow-head span {
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .55);
}
.flow-head span:last-child { grid-column: 3; color: var(--orange-400); }
.flow-row {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--radius);
    padding: 1.4rem 1.75rem;
    transition: background-color .25s ease, border-color .25s ease;
}
.flow-row:hover { background: rgba(255, 255, 255, .1); border-color: rgba(254, 125, 1, .5); }
.flow-row .action { color: rgba(255, 255, 255, .85); font-weight: 500; }
.flow-row .result { color: #fff; font-weight: 700; }
.flow-row .flow-arrow {
    width: 36px; height: 36px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--orange-500);
    color: var(--teal-950);
    margin: 0 auto;
}
.flow-label { display: none; }

.badge-line {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    padding: .7rem 1.4rem;
    color: #fff;
    font-weight: 700;
}
.badge-line i { color: var(--orange-500); }

/* ---------- Case studies ---------- */
.case {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease;
}
.case:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.case-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.75rem; }
.case-top .label { font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.case dl { margin: 0; display: grid; gap: 1.1rem; }
.case dt { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .15rem; }
.case dd { margin: 0; color: var(--ink); font-weight: 500; line-height: 1.45; }
.case .case-result {
    margin-top: auto;
    padding-top: 1.5rem;
}
.case .case-result div {
    border-top: 1px solid var(--line);
    padding-top: 1.25rem;
}
.case .case-result small { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-ink); margin-bottom: .2rem; }
.case .case-result strong { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.03em; color: var(--teal-800); line-height: 1.2; display: block; }

/* ---------- Experience ---------- */
.exp {
    border-top: 2px solid var(--teal-800);
    padding-top: 1.5rem;
    height: 100%;
}
.exp .icon-box { background: var(--teal-800); color: #fff; margin-bottom: 1.5rem; }
.exp h6 { font-size: 1.1rem; margin-bottom: .6rem; }
.exp p { font-size: .96rem; line-height: 1.6; margin: 0; }
.exp p b { color: var(--orange-ink); font-weight: 800; }

/* ---------- Worked-with strip ---------- */
.strip { padding: 56px 0; border-top: 1px solid var(--line); }
.strip-title { font-size: .76rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.75rem; }
.strip-icons { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 3.5rem; font-size: 2rem; color: var(--teal-200); }

/* ---------- Final CTA ---------- */
.cta-wrap { padding: 0 0 112px; }
.cta-panel {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: var(--teal-800);
    border-radius: var(--radius-lg);
    padding: clamp(2.5rem, 6vw, 5rem);
    color: rgba(255, 255, 255, .8);
    text-align: center;
}
.cta-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(50% 80% at 100% 0%, rgba(254, 125, 1, .28), transparent 60%),
        radial-gradient(50% 80% at 0% 100%, rgba(27, 108, 128, .9), transparent 60%);
}
.cta-panel h2 { color: #fff; }
.cta-panel p { font-size: 1.15rem; max-width: 620px; margin: 0 auto 2.25rem; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--teal-950);
    color: rgba(255, 255, 255, .6);
    padding: 64px 0 32px;
    font-size: .95rem;
}
.site-footer img { height: 48px; width: auto; }
.site-footer .foot-tag { max-width: 340px; margin-top: 1.25rem; }
.site-footer h6 { color: #fff; font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 1.1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.site-footer a { color: rgba(255, 255, 255, .72); text-decoration: none; transition: color .2s ease; }
.site-footer a:hover { color: var(--orange-400); }
.site-footer .foot-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    margin-top: 3rem;
    padding-top: 1.5rem;
    font-size: .85rem;
}

/* ---------- Scroll reveal (only when JS is running) ---------- */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
    transition-delay: var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js [data-reveal] { opacity: 1; transform: none; transition: none; }
    .hero-signal path { animation: none; }
    .btn, .tile, .case { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .bento { grid-template-columns: repeat(2, 1fr); }
    .hero-chip.chip-a { left: -12px; }
    .hero-chip.chip-b { right: -12px; }
}

@media (max-width: 991px) {
    section { padding: 80px 0; }
    .cta-wrap { padding-bottom: 80px; }
    .hero { padding: 150px 0 90px; }
    .hero-visual { margin-top: 4.5rem; max-width: 360px; }
    .site-nav .navbar-collapse {
        margin-top: .9rem;
        padding: 1rem;
        border-radius: 18px;
        background: var(--teal-900);
        border: 1px solid rgba(255, 255, 255, .08);
    }
    .site-nav .nav-link.active:not(.nav-cta) { box-shadow: none; color: var(--orange-400); }
    .site-nav .nav-cta { margin: .6rem 0 0; text-align: center; }
    .site-nav .dropdown-menu { margin-top: .25rem; }
    .align-item:nth-child(2), .align-item:nth-child(3) { margin-left: 0; }
}

@media (max-width: 767px) {
    body { font-size: 16px; }
    .site-nav .navbar-brand img { height: 36px; }
    .bento { grid-template-columns: 1fr; }
    .tile .tile-top { margin-bottom: 1.25rem; }
    .compare { padding: 1.75rem; }
    .section-head { margin-bottom: 2.5rem; }

    .flow-head { display: none; }
    .flow-row { grid-template-columns: 1fr; gap: .9rem; padding: 1.4rem; }
    .flow-row .flow-arrow { margin: 0; transform: rotate(90deg); }
    .flow-label {
        display: block;
        font-size: .7rem;
        font-weight: 700;
        letter-spacing: .16em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, .5);
        margin-bottom: .2rem;
    }
    .result .flow-label { color: var(--orange-400); }

    .pillars li { flex: 0 0 50%; text-align: center; padding: 0; font-size: .7rem; letter-spacing: .2em; }
    .pillars li + li { border-left: 0; }
    .hero-chip.chip-a { left: -6px; bottom: 120px; }
    .hero-chip.chip-b { right: -6px; bottom: -22px; }
    .hero-chip strong { font-size: 1.15rem; }
}

@media (max-width: 420px) {
    .hero-visual { max-width: 300px; }
}

/* ==========================================================================
   Inner pages
   ========================================================================== */

/* Compact page hero (shares the homepage hero look) */
.page-hero {
    background: var(--teal-800);
    color: rgba(255, 255, 255, .8);
    padding: 180px 0 96px;
    overflow: hidden;
    isolation: isolate;
    text-align: center;
}
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(50% 80% at 92% 0%, rgba(254, 125, 1, .20), transparent 62%),
        radial-gradient(55% 70% at 5% 0%, rgba(27, 108, 128, .85), transparent 65%),
        linear-gradient(180deg, var(--teal-800), var(--teal-900));
}
.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(75% 85% at 50% 20%, #000, transparent 80%);
    mask-image: radial-gradient(75% 85% at 50% 20%, #000, transparent 80%);
}
.page-hero .eyebrow { color: var(--orange-400); }
.page-hero h1 {
    color: #fff;
    font-size: clamp(2.3rem, 4.6vw, 3.9rem);
    max-width: 900px;
    margin: 0 auto 1.5rem;
}
.page-hero .lede {
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    line-height: 1.6;
    color: #fff;
    font-weight: 600;
    max-width: 680px;
    margin: 0 auto .75rem;
}
.page-hero .sub {
    color: rgba(255, 255, 255, .72);
    max-width: 680px;
    margin: 0 auto;
}
.page-hero .privacy-note {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: 1.75rem;
    padding: .5rem 1rem;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    font-size: .88rem;
    color: rgba(255, 255, 255, .85);
}
.page-hero .privacy-note i { color: var(--orange-400); }

/* Bootstrap palette remapped to the brand */
:root {
    --bs-success: #1B6C80;
    --bs-success-rgb: 27, 108, 128;
    --bs-warning: #FE7D01;
    --bs-warning-rgb: 254, 125, 1;
    --bs-dark: #012A35;
    --bs-dark-rgb: 1, 42, 53;
    --bs-light: #EEF5F7;
    --bs-light-rgb: 238, 245, 247;
    --bs-danger: #D1432F;
    --bs-danger-rgb: 209, 67, 47;
    --bs-border-color: #DFE8EB;
    --bs-secondary-color: #6B828C;
}

.text-primary, .text-warning { color: var(--orange-ink) !important; }
.text-success { color: var(--teal-700) !important; }
.text-dark { color: var(--ink) !important; }
.text-white-50 { color: rgba(255, 255, 255, .65) !important; }
.bg-primary.text-white:not(.btn),
.bg-warning.text-white:not(.btn) { color: var(--teal-950) !important; }
.border-dashed { border-style: dashed !important; }

.lead { font-size: 1.2rem; font-weight: 400; color: var(--body); }
.sub-headline { font-size: 1.2rem; line-height: 1.6; }

.card {
    --bs-card-border-color: var(--line);
    --bs-card-border-radius: var(--radius);
    --bs-card-inner-border-radius: calc(var(--radius) - 1px);
    --bs-card-cap-bg: transparent;
    --bs-card-color: var(--body);
    background-color: #fff;
}
.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow, .shadow-lg { box-shadow: var(--shadow-md) !important; }
.rounded-3 { border-radius: 14px !important; }
.rounded-4 { border-radius: var(--radius) !important; }

.badge {
    --bs-badge-font-weight: 700;
    --bs-badge-border-radius: 999px;
    --bs-badge-padding-x: .75em;
    --bs-badge-padding-y: .45em;
    letter-spacing: .04em;
}
.badge.bg-primary, .badge.bg-warning { color: var(--teal-950); }
.step-badge {
    display: inline-flex;
    align-items: center;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--teal-950);
    background: var(--orange-500);
    border-radius: 999px;
    padding: .4rem 1rem;
    margin-bottom: 1.25rem;
}

.bg-graphic { background-color: var(--teal-50) !important; border: 1px solid var(--line); }
.section-soft .bg-graphic { background-color: #fff !important; }

.custom-list li { line-height: 1.6; margin-bottom: .8rem; color: var(--body); }

/* Forms */
.form-label { color: var(--ink); font-weight: 700; font-size: .92rem; }
.form-control {
    border-radius: var(--radius-sm);
    border-color: var(--line);
    color: var(--ink);
    font-family: var(--font);
}
.form-control:focus {
    border-color: var(--orange-500);
    box-shadow: 0 0 0 .2rem rgba(254, 125, 1, .22) !important;
    background-color: #fff !important;
}
.tool-section textarea.form-control { font-family: ui-monospace, Consolas, monospace; }

.btn-outline-secondary {
    --bs-btn-color: var(--ink);
    --bs-btn-border-color: var(--teal-200);
    --bs-btn-hover-bg: var(--teal-800);
    --bs-btn-hover-border-color: var(--teal-800);
    --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: var(--teal-900);
    --bs-btn-active-border-color: var(--teal-900);
}
.btn-sm { padding: .45rem 1rem; font-size: .88rem; }

.table { --bs-table-color: var(--body); --bs-table-striped-bg: var(--teal-50); --bs-table-hover-bg: var(--orange-100); }
.table thead th {
    font-size: .74rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom-color: var(--teal-200);
    white-space: nowrap;
}

/* Tools */
.tool-section { padding-top: 72px; }
.stat-card h3 { font-size: 2rem; }

/* Insight callout */
.insight {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    background: #fff;
    border: 1px solid var(--orange-100);
    border-left: 4px solid var(--orange-500);
    border-radius: var(--radius-sm);
    padding: .8rem 1.25rem;
    font-weight: 700;
    color: var(--ink);
    box-shadow: var(--shadow-sm);
    text-align: left;
}
.insight i { color: var(--orange-500); }

/* Case studies page */
.case-full {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 2fr;
    box-shadow: var(--shadow-sm);
    scroll-margin-top: 110px;
}
.case-full + .case-full { margin-top: 2rem; }
.case-side {
    background: var(--teal-800);
    color: rgba(255, 255, 255, .78);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.case-side::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 280px; height: 280px;
    right: -110px; bottom: -110px;
    background: radial-gradient(circle, rgba(254, 125, 1, .35), transparent 65%);
}
.case-side .label { font-size: .76rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--orange-400); }
.case-side .icon-box { background: rgba(255, 255, 255, .1); color: #fff; margin-bottom: 1.5rem; }
.case-side .big {
    margin-top: auto;
    padding-top: 2.5rem;
    font-size: clamp(2.6rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    color: #fff;
}
.case-side .big-label { font-weight: 600; color: rgba(255, 255, 255, .85); margin-top: .5rem; }
.case-main { padding: 2.5rem; }
.case-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.case-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 1.1rem; align-items: start; }
.case-steps .dot {
    width: 44px; height: 44px;
    display: grid; place-items: center;
    border-radius: 14px;
    font-size: 1.15rem;
}
.case-steps .dot.bad { background: #FBE9E6; color: #B93A28; }
.case-steps .dot.fix { background: var(--teal-50); color: var(--teal-800); }
.case-steps .dot.win { background: var(--orange-100); color: var(--orange-ink); }
.case-steps small { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.case-steps strong { display: block; font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); line-height: 1.35; }
.case-links { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.case-links span { font-size: .8rem; font-weight: 700; color: var(--muted); margin-right: .25rem; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .85rem;
    font-weight: 600;
    color: var(--ink);
    background: var(--teal-50);
    border: 1px solid var(--teal-100);
    border-radius: 999px;
    padding: .35rem .9rem;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease;
}
a.chip:hover { background: var(--orange-100); border-color: var(--orange-400); color: var(--ink); }

a.case { text-decoration: none; }

section[id] { scroll-margin-top: 90px; }

@media (max-width: 991px) {
    .page-hero { padding: 150px 0 72px; }
}
@media (max-width: 767px) {
    .case-full { grid-template-columns: 1fr; }
    .case-side, .case-main { padding: 1.75rem; }
    .case-side .big { padding-top: 1.5rem; }
    .insight { display: flex; }
}

/* Fixes for utilities the original pages relied on */
.opacity-10 { opacity: .1 !important; }
.mt-n1 { margin-top: -.25rem !important; }
.mt-n3 { margin-top: -1rem !important; }
.bg-graphic, .card-header { line-height: 1.45; }

.sys-step {
    background: #FFF3E6;
    border: 1px solid #FFD3A6;
    padding: 1.5rem;
}
.sys-step h5 { color: var(--orange-ink); }
@media (min-width: 576px) {
    .sys-step { padding-left: 5.5rem !important; padding-right: 5.5rem !important; }
    .sys-step.w-50 { width: 62% !important; max-width: 400px !important; }
}

.bg-success.position-absolute { z-index: 3 !important; }
