/* Fail Safe Global — public site stylesheet. Hand-written, no build step.
   Tokens → base → layout → components → sections → responsive. */

:root {
    --navy-900: #0B1B2B;
    --navy: #132736;
    --navy-700: #1D3A52;
    --navy-600: #2A4D6B;
    --red: #B30D1C;
    --red-bright: #D7192D;
    --red-soft: rgba(179, 13, 28, .08);
    --ok: #2EC27E;
    --warn: #F2A93B;
    --bad: #E5484D;
    --grey-50: #F7F9FB;
    --grey-100: #F0F4F7;
    --grey-200: #DCE3EA;
    --grey-300: #C2CCD6;
    --ink: #16222E;
    --ink-2: #3E4C5A;
    --muted: #65747F;
    --white: #fff;
    --font-head: "Sora", "Manrope", system-ui, sans-serif;
    --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    --wrap: 1200px;
    --gutter: clamp(16px, 4vw, 40px);
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 2px rgba(11, 27, 43, .06), 0 1px 10px rgba(11, 27, 43, .05);
    --shadow: 0 10px 30px -10px rgba(11, 27, 43, .18), 0 2px 8px rgba(11, 27, 43, .06);
    --shadow-lg: 0 30px 60px -20px rgba(11, 27, 43, .35);
    --ease: cubic-bezier(.2, .7, .2, 1);
    --header-h: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    overflow-x: clip;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; color: var(--navy-900); font-weight: 600; }
h1 { font-size: clamp(2.3rem, 5.5vw, 4.1rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--red-bright); outline-offset: 3px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.narrow { max-width: 820px; }
.centred { text-align: center; margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---- Typography helpers -------------------------------------------------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--red); margin: 0 0 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--light { color: #FF7A86; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 60ch; }
.section--dark .lead, .page-hero .lead, .hero .lead { color: rgba(255, 255, 255, .78); }
.tagline { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; color: var(--navy-900); }
.section--dark .tagline { color: #fff; }
.outcome { font-family: var(--font-head); font-weight: 600; color: var(--navy); border-left: 4px solid var(--red); padding: 6px 0 6px 16px; margin: 22px 0; }
.kicker-line { font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; color: var(--navy-700); }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose h3 { font-size: 1.2rem; }
.prose p, .prose li { color: var(--ink-2); }
.prose a { text-decoration: underline; }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 13px 24px; border-radius: 999px; border: 2px solid transparent;
    font-weight: 700; font-size: .98rem; line-height: 1; cursor: pointer; white-space: nowrap;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: linear-gradient(135deg, var(--red-bright), var(--red)); color: #fff; box-shadow: 0 8px 20px -8px rgba(179, 13, 28, .7); }
.btn--primary:hover { box-shadow: 0 14px 28px -10px rgba(179, 13, 28, .8); color: #fff; }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--light { background: #fff; color: var(--navy-900); }
.btn--light:hover { background: var(--grey-100); color: var(--navy-900); }
.btn--ghost-light { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .35); backdrop-filter: blur(6px); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .14); border-color: #fff; color: #fff; }
.btn--sm { padding: 10px 18px; font-size: .9rem; }
.btn--lg { padding: 16px 30px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---- Header -------------------------------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: #fff; /* no backdrop-filter: it would make the fixed mobile nav position relative to the header */
    border-bottom: 1px solid transparent;
    transition: box-shadow .3s, border-color .3s;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); border-color: var(--grey-200); }
.header-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.logo img { width: auto; height: 50px; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a:not(.btn) {
    position: relative; color: var(--navy); font-weight: 600; font-size: .96rem; padding: 10px 14px; border-radius: 8px;
}
.main-nav a:not(.btn):hover { text-decoration: none; background: var(--grey-100); }
.main-nav a[aria-current="page"] { color: var(--red); }
.main-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--red); border-radius: 2px; }
.nav-cta { display: none; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); font-weight: 700; font-size: .95rem; }
.header-phone:hover { color: var(--red); text-decoration: none; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; cursor: pointer; }
.nav-toggle span { width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Flash --------------------------------------------------------------- */
.flash { padding: 14px 0; font-weight: 600; }
.flash .wrap { display: flex; align-items: center; gap: 12px; }
.flash--success { background: #E7F8EF; color: #116A3D; }
.flash--error { background: #FDECEC; color: #8A1C1C; }

/* ---- Sections ------------------------------------------------------------ */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--grey { background: var(--grey-100); }
.section--dark { background: var(--navy-900); color: rgba(255, 255, 255, .82); position: relative; overflow: hidden; }
.section--dark::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(900px 500px at 85% 0%, rgba(179, 13, 28, .22), transparent 60%),
                radial-gradient(700px 400px at 0% 100%, rgba(42, 77, 107, .45), transparent 60%);
}
.section--dark > .wrap { position: relative; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-head p:not(.eyebrow) { color: var(--ink-2); font-size: 1.08rem; }
.section-head--light p:not(.eyebrow) { color: rgba(255, 255, 255, .75); }
.section-foot { text-align: center; margin: 44px 0 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--rev > :first-child { order: 2; }
.split-copy p:not(.eyebrow) { color: var(--ink-2); }
.section--dark .split-copy p:not(.eyebrow) { color: rgba(255, 255, 255, .78); }
.split-copy .btn { margin-top: 10px; }
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---- Cards --------------------------------------------------------------- */
.card {
    position: relative; display: flex; flex-direction: column; gap: 10px;
    background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius-lg); padding: 30px 28px;
    color: var(--ink); box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
    overflow: hidden;
}
.card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--red-bright), var(--red)); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
a.card:hover { text-decoration: none; transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
a.card:hover::before { transform: scaleX(1); }
.card h3 { margin: 6px 0 0; }
.card p { color: var(--ink-2); margin: 0; flex: 1; }
.card-icon {
    width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
    background: var(--grey-100); color: var(--navy); transition: background .3s, color .3s;
}
a.card:hover .card-icon { background: var(--navy); color: #fff; }
.card-icon--red { background: var(--red); color: #fff; }
.card-num { position: absolute; top: 22px; right: 26px; font-family: var(--font-head); font-weight: 700; font-size: 2rem; color: var(--grey-200); line-height: 1; }
.card-link { display: inline-flex; align-items: center; gap: 6px; color: var(--red); font-weight: 700; font-size: .95rem; margin-top: 8px; }
.card-link svg { transition: transform .2s var(--ease); }
a.card:hover .card-link svg, .industry-feature:hover .card-link svg { transform: translateX(4px); }
.card-link--light { color: #fff; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.badge--red { background: var(--red-soft); color: var(--red); }
.badge--dev { background: #FFF4DF; color: #8A5A00; }
.product-card.is-dev { background: linear-gradient(180deg, #fff, var(--grey-50)); }
.card .eyebrow { margin-bottom: 0; font-size: .72rem; }
.card .eyebrow::before { display: none; }

/* Panels (sidebars, inclusions) */
.panel { background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-sm); }
.panel + .panel { margin-top: 20px; }
.panel-title { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; margin-bottom: 16px; }
.panel-title svg { color: var(--red); }
.panel--navy { background: linear-gradient(160deg, var(--navy-700), var(--navy-900)); color: rgba(255, 255, 255, .82); border: 0; }
.panel--navy h3 { color: #fff; margin-top: 16px; }
.panel--navy .btn + .btn { margin-top: 10px; }
.panel--dark { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .85); }
.panel--dark .panel-title { color: #fff; }
.panel--dark a { color: #fff; }
.panel--warn { display: flex; gap: 14px; background: #FFF7E8; border-color: #F5DDA7; color: #5C3D00; }
.panel--warn svg { flex: none; color: #B36B00; margin-top: 2px; }
.panel--warn p { margin: 4px 0 0; font-size: .92rem; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks svg { flex: none; color: var(--ok); margin-top: 3px; }
.ticks--2col { grid-template-columns: 1fr 1fr; gap: 10px 24px; margin-bottom: 20px; }
.side-links { list-style: none; margin: 0; padding: 0; }
.side-links li + li { border-top: 1px solid var(--grey-200); }
.side-links a { display: flex; align-items: center; gap: 10px; padding: 12px 0; color: var(--navy); font-weight: 600; }
.side-links a span { flex: 1; }
.side-links a svg:first-child { color: var(--red); }
.side-links a:hover { color: var(--red); text-decoration: none; }
.note { display: flex; gap: 16px; align-items: flex-start; background: var(--grey-100); border-left: 4px solid var(--navy); border-radius: 0 var(--radius) var(--radius) 0; padding: 22px 26px; }
.note svg { flex: none; color: var(--navy); margin-top: 2px; }
.note p { margin: 0; color: var(--ink-2); }
.chips { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: .82rem; font-weight: 600; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); color: #fff; }

/* ---- Hero (home) --------------------------------------------------------- */
.hero { position: relative; background: var(--navy-900); color: #fff; min-height: min(calc(100svh - var(--header-h)), 820px); display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; opacity: .55; }
.hero-bg::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, var(--navy-900) 0%, rgba(11, 27, 43, .92) 38%, rgba(11, 27, 43, .55) 70%, rgba(11, 27, 43, .35) 100%),
                linear-gradient(0deg, var(--navy-900) 0%, transparent 30%);
}
.hero-grid { 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: 64px 64px; mask-image: radial-gradient(60% 60% at 30% 50%, #000, transparent); z-index: 1; }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 80px); align-items: center; padding: clamp(56px, 8vw, 96px) 0; }
.hero h1 { color: #fff; margin-bottom: 22px; max-width: 14ch; }
.hero h1 .accent { color: #FF5A68; background: linear-gradient(90deg, #FF5A68, #FF8C73); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero .lead { max-width: 56ch; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-copy > * { animation: rise .8s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .1s; }
.hero-copy > :nth-child(3) { animation-delay: .2s; }
.hero-copy > :nth-child(4) { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero-card {
    background: rgba(19, 39, 54, .72); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius-lg);
    backdrop-filter: blur(14px); box-shadow: var(--shadow-lg); padding: 22px; justify-self: end; width: min(100%, 440px);
    animation: rise 1s .35s var(--ease) both, float 7s 1.4s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hc-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.hc-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(46, 194, 126, .2); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(46, 194, 126, .2); } 50% { box-shadow: 0 0 0 8px rgba(46, 194, 126, .05); } }
.hc-head div { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.hc-head strong { font-family: var(--font-head); font-size: .95rem; }
.hc-head small { color: rgba(255, 255, 255, .6); font-size: .78rem; }
.hc-score { position: relative; display: grid; place-items: center; }
.hc-score b { position: absolute; font-size: .72rem; font-family: var(--font-head); }
.hc-ring { animation: ring 1.6s .8s var(--ease) both; }
@keyframes ring { from { stroke-dashoffset: 97.4; } }
.hc-rows { list-style: none; margin: 0; padding: 12px 0 0; display: grid; gap: 6px; }
.hc-rows li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; background: rgba(255, 255, 255, .04); font-size: .86rem; animation: rise .6s var(--ease) both; }
.hc-rows li:nth-child(1) { animation-delay: .7s; } .hc-rows li:nth-child(2) { animation-delay: .8s; } .hc-rows li:nth-child(3) { animation-delay: .9s; } .hc-rows li:nth-child(4) { animation-delay: 1s; } .hc-rows li:nth-child(5) { animation-delay: 1.1s; }
.hc-rows i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.hc-rows span { flex: 1; }
.hc-rows em { font-style: normal; font-weight: 700; font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; }
.is-ok i { background: var(--ok); } .is-ok em { color: var(--ok); }
.is-warn i { background: var(--warn); } .is-warn em { color: var(--warn); }
.is-bad i { background: var(--bad); } .is-bad em { color: #FF8086; }
.hc-foot { margin-top: 14px; font-size: .78rem; color: rgba(255, 255, 255, .55); font-style: italic; }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .35); border-radius: 14px; z-index: 2; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Page hero (inner pages) */
.page-hero { background: var(--navy-900); color: #fff; padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 6vw, 72px); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 400px at 90% 10%, rgba(179, 13, 28, .3), transparent 60%), radial-gradient(600px 400px at 10% 100%, rgba(42, 77, 107, .5), transparent 60%); }
.page-hero::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: 64px 64px; mask-image: radial-gradient(70% 80% at 80% 50%, #000, transparent); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; max-width: 20ch; font-size: clamp(2rem, 4.6vw, 3.4rem); }
.page-hero--sm { padding: 48px 0 40px; }
.page-hero--sm h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: rgba(255, 255, 255, .55); margin-bottom: 20px; }
.crumbs a { color: rgba(255, 255, 255, .75); }
.crumbs a:hover { color: #fff; }

/* ---- Stats strip --------------------------------------------------------- */
.stats-strip { background: #fff; border-bottom: 1px solid var(--grey-200); position: relative; z-index: 3; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 28px 24px; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--grey-200); }
.stat:first-child { border-left: 0; }
.stat strong { font-family: var(--font-head); font-size: 2.2rem; font-weight: 700; color: var(--navy-900); line-height: 1; }
.stat strong::after { content: ""; display: block; width: 28px; height: 3px; margin: 10px 0 6px; background: var(--red); border-radius: 2px; }
.stat span { color: var(--muted); font-size: .92rem; font-weight: 600; }

/* ---- Where does your building stand ------------------------------------- */
.stand-points { display: grid; gap: 18px; }
.stand-point { display: flex; gap: 18px; align-items: flex-start; background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.stand-point h3 { font-size: 1.1rem; margin: 2px 0 4px; }
.stand-point p { margin: 0; color: var(--ink-2); font-size: .98rem; }
.stand-icon { flex: none; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; color: #fff; }
.stand-icon--0 { background: var(--ok); }
.stand-icon--1 { background: var(--navy); }
.stand-icon--2 { background: var(--red); }

/* ---- EmBlaze app mock ---------------------------------------------------- */
.app-mock { background: #0F2234; border: 1px solid rgba(255, 255, 255, .12); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; font-size: .82rem; transform: perspective(1200px) rotateY(-6deg) rotateX(2deg); transition: transform .6s var(--ease); }
.app-mock:hover { transform: perspective(1200px) rotateY(0) rotateX(0); }
.am-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; background: rgba(255, 255, 255, .05); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.am-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.am-bar b { margin-left: 10px; font-weight: 600; color: rgba(255, 255, 255, .75); font-family: var(--font-head); font-size: .8rem; }
.am-body { display: grid; grid-template-columns: 52px 1fr; }
.am-side { background: rgba(0, 0, 0, .2); padding: 16px 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.am-side i { width: 22px; height: 22px; border-radius: 7px; background: rgba(255, 255, 255, .12); }
.am-side i.is-on { background: var(--red); }
.am-main { padding: 16px; display: grid; gap: 14px; }
.am-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.am-tile { background: rgba(255, 255, 255, .06); border-radius: 10px; padding: 10px 12px; }
.am-tile small { display: block; color: rgba(255, 255, 255, .55); font-size: .7rem; }
.am-tile strong { font-family: var(--font-head); font-size: 1.5rem; }
.c-ok { color: var(--ok); } .c-warn { color: var(--warn); } .c-bad { color: #FF7A86; }
.am-list { display: grid; gap: 6px; }
.am-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: rgba(255, 255, 255, .04); border-radius: 8px; color: rgba(255, 255, 255, .85); }
.am-row i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.am-row span { flex: 1; }
.am-row em { font-style: normal; color: rgba(255, 255, 255, .5); font-size: .74rem; }
.am-bars { display: flex; align-items: flex-end; gap: 8px; height: 70px; padding: 0 4px; }
.am-bars b { flex: 1; height: var(--h); background: linear-gradient(180deg, #FF5A68, var(--red)); border-radius: 4px 4px 0 0; transform-origin: bottom; animation: grow 1s var(--ease) both; }
.am-bars b:nth-child(2) { animation-delay: .1s; } .am-bars b:nth-child(3) { animation-delay: .2s; } .am-bars b:nth-child(4) { animation-delay: .3s; } .am-bars b:nth-child(5) { animation-delay: .4s; } .am-bars b:nth-child(6) { animation-delay: .5s; } .am-bars b:nth-child(7) { animation-delay: .6s; }
@keyframes grow { from { transform: scaleY(0); } }

/* ---- Industries ---------------------------------------------------------- */
.industries-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; }
.industry-feature { display: block; position: relative; border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(160deg, var(--navy-700), var(--navy-900)); color: #fff; padding: 40px; box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s; }
.industry-feature::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(179, 13, 28, .55), transparent 65%); }
.industry-feature:hover { text-decoration: none; transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.industry-feature-copy { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; height: 100%; }
.industry-feature h3 { color: #fff; font-size: 1.8rem; margin: 6px 0 0; }
.industry-feature .kicker { font-family: var(--font-head); font-weight: 600; color: #FFB3B9; margin: 0; }
.industry-feature p { color: rgba(255, 255, 255, .8); margin: 0; }
.industry-feature .card-link { margin-top: auto; padding-top: 12px; }
.industry-feature .eyebrow { margin: 14px 0 0; }
.industry-list { display: grid; gap: 12px; align-content: start; }
.industry-row { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius); padding: 16px 18px; color: var(--ink); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.industry-row:hover { text-decoration: none; transform: translateX(6px); box-shadow: var(--shadow-sm); border-color: var(--navy); }
.industry-row > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.industry-row strong { color: var(--navy-900); font-family: var(--font-head); font-size: .98rem; }
.industry-row small { color: var(--muted); font-size: .86rem; line-height: 1.4; }
.industry-row-icon { flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--grey-100); color: var(--navy); display: grid; place-items: center; }
.industry-row > svg:last-child { color: var(--red); flex: none; }
.industry-card.is-featured { border-color: var(--red); }
.industry-card.is-featured .card-icon { background: var(--red); color: #fff; }

/* ---- Why / media --------------------------------------------------------- */
.why-media { position: relative; }
.why-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; }
.why-badge { position: absolute; right: -16px; bottom: -22px; background: var(--red); color: #fff; border-radius: 16px; padding: 16px 20px; box-shadow: var(--shadow); max-width: 200px; }
.why-badge strong { display: block; font-family: var(--font-head); font-size: 2rem; line-height: 1; }
.why-badge span { font-size: .82rem; font-weight: 600; line-height: 1.3; display: block; margin-top: 4px; }
.why-points, .elements { display: grid; gap: 18px; margin-top: 26px; }
.why-points { grid-template-columns: 1fr 1fr; }
.why-point, .element { display: flex; gap: 14px; align-items: flex-start; }
.why-point h3, .element h3 { font-size: 1.02rem; margin: 2px 0 4px; }
.why-point p, .element p { font-size: .94rem; margin: 0; color: var(--ink-2); }
.why-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; }

/* ---- Timeline (how it works / pathway) ----------------------------------- */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; counter-reset: step; }
.timeline::before { content: ""; position: absolute; left: 6%; right: 6%; top: 30px; height: 2px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .25), transparent); }
.timeline li { position: relative; padding-top: 80px; }
.tl-num { position: absolute; top: 0; left: 0; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-900); border: 2px solid rgba(255, 255, 255, .25); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .95rem; box-shadow: 0 0 0 10px var(--navy-900); transition: background .3s, border-color .3s; }
.timeline li:hover .tl-num { background: var(--red); border-color: var(--red); }
.timeline h3 { font-size: 1.15rem; }
.timeline p { color: rgba(255, 255, 255, .72); font-size: .96rem; margin: 0; }

/* ---- Packages ------------------------------------------------------------ */
.packages-grid { align-items: stretch; }
.package-card { display: flex; flex-direction: column; gap: 18px; background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.package-card.is-featured { border-color: var(--navy); box-shadow: var(--shadow); }
.package-card.is-featured::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--red-bright), var(--red)); }
.package-head h3 { font-size: 1.5rem; margin: 4px 0; }
.package-tagline { font-family: var(--font-head); font-weight: 600; color: var(--navy-700); margin: 0; }
.package-summary { color: var(--ink-2); margin: 0; }
.package-card .ticks { flex: 1; }
.package-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid var(--grey-200); }
.package-price { margin: 0; font-weight: 700; color: var(--navy-900); }

/* ---- Founder ------------------------------------------------------------- */
.founder-inner { position: relative; max-width: 860px; margin: 0 auto; text-align: center; padding-top: 30px; }
.founder-quote-mark { position: absolute; top: -30px; left: 50%; transform: translateX(-50%); font-family: var(--font-head); font-size: 9rem; line-height: 1; color: var(--red); opacity: .18; }
.founder-inner blockquote { margin: 0 0 28px; }
.founder-inner blockquote p { font-family: var(--font-head); font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 500; color: var(--navy-900); line-height: 1.4; }
.founder-inner footer { color: var(--muted); }
.founder-inner footer strong { color: var(--navy-900); font-family: var(--font-head); margin-right: 8px; }
.founder-card { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius-lg); padding: 36px; text-align: center; }
.founder-avatar { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 20px; display: grid; place-items: center; background: linear-gradient(135deg, var(--red-bright), var(--red)); color: #fff; font-family: var(--font-head); font-size: 2.4rem; font-weight: 700; box-shadow: 0 0 0 8px rgba(255, 255, 255, .06); }
.founder-card h2 { font-size: 1.6rem; margin-bottom: 2px; }
.founder-role { color: rgba(255, 255, 255, .65); margin: 0; }
.founder-card .chips { justify-content: center; }

/* ---- CTA band ------------------------------------------------------------ */
.cta-band { background: linear-gradient(120deg, var(--red) 0%, #8E0916 100%); color: #fff; padding: clamp(48px, 7vw, 80px) 0; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -10%; top: -60%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .14), transparent 65%); }
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .85); max-width: 56ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }

/* ---- Detail pages -------------------------------------------------------- */
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.detail-side { position: sticky; top: calc(var(--header-h) + 24px); }
.detail-image { border-radius: var(--radius-lg); margin-bottom: 28px; box-shadow: var(--shadow); }
.detail-main h2 { font-size: 1.5rem; margin-top: 1.4em; }

/* ---- Contact ------------------------------------------------------------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-side { position: sticky; top: calc(var(--header-h) + 24px); }
.form { display: grid; gap: 18px; margin-top: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-weight: 700; font-size: .92rem; color: var(--navy-900); }
.field > span b { color: var(--red); }
.field small { color: var(--muted); font-size: .82rem; }
.field em { color: var(--red); font-style: normal; font-size: .86rem; font-weight: 600; }
.field input, .field select, .field textarea {
    width: 100%; font: inherit; padding: 13px 16px; border: 1.5px solid var(--grey-300); border-radius: 12px; background: #fff; color: var(--ink);
    transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(19, 39, 54, .12); }
.field.has-error input, .field.has-error textarea { border-color: var(--red); }
.field input[type="file"] { padding: 10px; }
.field textarea { resize: vertical; min-height: 140px; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-size: .92rem; color: var(--ink-2); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--red); }
.check em { grid-column: 2; color: var(--red); font-style: normal; font-weight: 600; font-size: .86rem; }
.check.has-error { color: var(--red); }
.hp { position: absolute; left: -9999px; }
.form-error { background: #FDECEC; color: #8A1C1C; border-radius: 10px; padding: 12px 16px; font-weight: 600; }
.contact-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list svg { flex: none; margin-top: 3px; color: #FF7A86; }
.panel--navy .contact-list a { color: #fff; font-weight: 600; }
.contact-list small { color: rgba(255, 255, 255, .6); }
.mini-steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 14px; }
.mini-steps li { display: grid; grid-template-columns: 30px 1fr; gap: 4px 12px; counter-increment: s; }
.mini-steps li::before { content: counter(s, decimal-leading-zero); grid-row: span 2; font-family: var(--font-head); font-weight: 700; color: var(--red); }
.mini-steps strong { color: var(--navy-900); }
.mini-steps span { color: var(--ink-2); font-size: .92rem; }

/* ---- Principles ---------------------------------------------------------- */
.principle { gap: 14px; }

/* ---- Footer -------------------------------------------------------------- */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .75); padding: 64px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-logo { background: #fff; border-radius: 12px; padding: 12px 16px; display: inline-block; margin-bottom: 18px; }
.footer-logo img { height: 46px; width: auto; }
.footer-about p { margin: 0 0 8px; }
.footer-about p:first-of-type { font-weight: 700; color: #fff; letter-spacing: .04em; font-size: .85rem; text-transform: uppercase; }
.footer-col h2 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-col a { color: rgba(255, 255, 255, .78); }
.footer-col a:hover { color: #fff; }
.footer-col .contact-list svg { color: #FF7A86; }
.footer-col .btn { margin-top: 10px; }
.footer-col a.btn--light { color: var(--navy-900); }
.social { display: flex; gap: 10px; margin-top: 14px; }
.social a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; }
.social a:hover { background: var(--red); }
.footer-emergency { display: flex; gap: 12px; align-items: flex-start; padding: 22px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: .9rem; }
.footer-emergency svg { color: var(--warn); flex: none; margin-top: 2px; }
.footer-emergency p { margin: 0; }
.footer-emergency strong { color: #fff; }
.footer-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 22px; font-size: .84rem; color: rgba(255, 255, 255, .5); }
.footer-legal p { margin: 0; }
.footer-legal a { color: rgba(255, 255, 255, .7); }

/* ---- Back to top --------------------------------------------------------- */
.back-to-top {
    position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 40;
    width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
    background: var(--navy-900); color: #fff; border: 1px solid rgba(255, 255, 255, .15); box-shadow: 0 10px 24px -8px rgba(11, 27, 43, .6);
    opacity: 0; visibility: hidden; transform: translateY(14px) scale(.9);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s, background .2s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.back-to-top:hover { background: var(--red); color: #fff; text-decoration: none; }
.back-to-top:focus-visible { outline-offset: 4px; }
.back-to-top svg { transition: transform .2s var(--ease); }
.back-to-top:hover svg { transform: translateY(-2px); }
@media (max-width: 640px) {
    .back-to-top { width: 44px; height: 44px; right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); }
    body:has(.main-nav.is-open) .back-to-top { opacity: 0; visibility: hidden; }
}

/* ---- Reveal on scroll ---------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--delay, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 1100px) {
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .timeline { grid-template-columns: repeat(2, 1fr); }
    .timeline::before { display: none; }
    .hero-inner { grid-template-columns: 1fr; }
    .hero-card { justify-self: start; }
    .hero h1 { max-width: none; }
}
@media (max-width: 960px) {
    :root { --header-h: 68px; }
    .logo img { height: 42px; }
    .main-nav { position: fixed; inset: var(--header-h) 0 0 0; background: #fff; flex-direction: column; align-items: stretch; padding: 20px var(--gutter); gap: 4px; transform: translateX(100%); visibility: hidden; transition: transform .3s var(--ease), visibility 0s .3s; overflow: auto; z-index: 49; }
    .main-nav.is-open { transform: none; visibility: visible; transition-delay: 0s; }
    .main-nav a:not(.btn) { font-size: 1.15rem; padding: 14px 12px; border-bottom: 1px solid var(--grey-100); border-radius: 0; }
    .main-nav a[aria-current="page"]::after { display: none; }
    .nav-cta { display: inline-flex; margin-top: 16px; align-self: flex-start; }
    .nav-toggle { display: flex; }
    .header-cta, .header-phone span { display: none; }
    .split, .industries-layout, .detail-layout, .contact-layout { grid-template-columns: 1fr; }
    .split--rev > :first-child { order: 0; }
    .detail-side, .contact-side { position: static; }
    .grid--3 { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(3) { border-left: 0; }
    .stat { border-top: 1px solid var(--grey-200); }
    .stat:nth-child(-n+2) { border-top: 0; }
    .cta-inner { flex-direction: column; align-items: flex-start; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .why-badge { right: 12px; bottom: -18px; }
    .app-mock { transform: none; }
}
@media (max-width: 640px) {
    body { font-size: 16px; }
    .grid--2, .grid--3, .grid--4, .form-row, .why-points, .ticks--2col, .timeline, .stats-grid { grid-template-columns: 1fr; }
    .stat { border-left: 0; border-top: 1px solid var(--grey-200); padding: 18px 0; }
    .stat:first-child { border-top: 0; }
    .hero { min-height: 0; }
    .hero-card { width: 100%; }
    .hero-actions .btn { width: 100%; }
    .scroll-cue { display: none; }
    .card, .panel, .package-card { padding: 24px 22px; }
    .industry-feature { padding: 28px 24px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-legal { flex-direction: column; }
    .section-head { margin-bottom: 32px; }
    .founder-quote-mark { font-size: 6rem; top: -16px; }
}

/* Pathway timeline (products page): word labels instead of numbers. */
.timeline--4 .tl-num { width: auto; min-width: 60px; padding: 0 20px; border-radius: 999px; }
.timeline--4 li { padding-top: 84px; }
