/* ==========================================================================
   Ticketkeeper marketing site
   Brand: Melrose #7071FF · Lime #C0FF00 · White · Black Mine #282828
          Soapstone #FFF2EB · Dove Gray #575757 · Carmine #B13C3A · Pine #007063
   Type:  Avara (headings) · Open Sans (body)
   ========================================================================== */

/* ---- Fonts ---- */
/* Avara ships only Bold/BoldItalic/Black (no 400 cut exists); Bold is the
   canonical display face, mapped to weight 400 so headings use it directly. */
@font-face {
    font-family: 'Avara';
    src: url('/newsite/fonts/Avara-Bold.woff2') format('woff2'),
         url('/newsite/fonts/Avara-Bold.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Avara';
    src: url('/newsite/fonts/Avara-BoldItalic.woff2') format('woff2'),
         url('/newsite/fonts/Avara-BoldItalic.woff') format('woff');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

/* ---- Tokens ---- */
:root {
    --melrose: #7071FF;
    --lime: #C0FF00;
    --white: #FFFFFF;
    --blackmine: #282828;
    --soapstone: #FFF2EB;
    --dove: #575757;
    --carmine: #B13C3A;
    --pine: #007063;

    --blackmine-2: #313131;      /* raised surfaces on dark */
    --line-dark: rgba(255,255,255,0.14);
    --line-light: rgba(40,40,40,0.12);

    --font-head: 'Avara', Georgia, 'Times New Roman', serif;
    --font-body: 'Open Sans', 'Segoe UI', Arial, sans-serif;

    --container: 1160px;
    --radius: 14px;
    --radius-sm: 10px;
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--blackmine);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 400;
    line-height: 1.15;
    margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
/* Avara renders unevenly below 1.7rem (coarse-grid glyphs), so small
   card/column headings use Open Sans instead of the display face. */
.feature h3, .benef-card h3, .compare-head h3, .col-title {
    font-family: var(--font-body);
    font-weight: 700;
}
p { margin: 0 0 1em; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
.icon { width: 24px; height: 24px; flex: 0 0 auto; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* Section shells */
section { padding: 88px 0; }
.section-light { background: var(--white); }
.section-soapstone { background: var(--soapstone); }
.section-dark {
    background: var(--blackmine);
    color: var(--white);
}
.section-head {
    max-width: 760px;
    margin: 0 auto 56px;
    text-align: center;
}
.section-head .lead { color: var(--dove); font-size: 1.125rem; }
.section-dark .lead, .hero .lead { color: rgba(255,255,255,0.78); }
h1 em, h2 em, .closing-line em, .powered-by em {
    font-style: italic;
    color: var(--melrose);
}
.section-dark h1 em, .section-dark h2 em, .powered-by em { color: var(--lime); }

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--lime);
    margin-bottom: 18px;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border: 2px solid transparent;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-primary { background: var(--lime); color: var(--blackmine); }
.btn-primary:hover { background: #cfff3d; }
.btn-ghost-light { border-color: rgba(255,255,255,0.45); color: var(--white); }
.btn-ghost-light:hover { border-color: var(--white); }
.btn-text {
    padding-left: 6px;
    padding-right: 6px;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
}
.btn-text:hover { color: var(--lime); }
.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-top: 30px;
}
.cta-row-center { justify-content: center; }

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: var(--melrose);
    text-decoration: none;
    margin-top: auto;
}
.text-link .icon { width: 18px; height: 18px; transition: transform 0.15s ease; }
.text-link:hover .icon { transform: translateX(3px); }

/* ---- Nav ---- */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--blackmine);
    border-bottom: 1px solid var(--line-dark);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 72px;
}
/* -30px left offsets the whitespace inside the SVG canvas (art starts at x=155/1060) */
.nav-logo img { height: 106px; margin: -30px 0 -30px -30px; width: auto; }
.logo-invert { filter: brightness(0) invert(1); }
.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
}
.nav-links > a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    white-space: nowrap;
}
.nav-links > a:hover { color: var(--lime); }
.nav-disabled {
    color: rgba(255,255,255,0.35);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: not-allowed;
    white-space: nowrap;
}
.nav-ctas { display: flex; gap: 10px; margin-left: 8px; }
.nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}
.nav-burger span {
    width: 24px;
    height: 2px;
    background: var(--white);
    display: block;
}

/* ---- Hero ---- */
.hero {
    padding: 96px 0 72px;
    background-color: var(--blackmine);
    background-image: linear-gradient(rgba(40,40,40,0.82), rgba(40,40,40,0.88)),
                      url('/newsite/img/shapes/wave-fade-blackmine-lime.svg');
    background-size: cover;
    background-position: center bottom;
}
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
}
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

/* Phone mockup */
.phone {
    width: 250px;
    background: #1c1c1c;
    border: 3px solid #3d3d3d;
    border-radius: 34px;
    padding: 12px 10px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}
.phone::before {
    content: '';
    display: block;
    width: 84px;
    height: 8px;
    margin: 0 auto 10px;
    border-radius: 999px;
    background: #3d3d3d;
}
.phone-screen {
    background: var(--soapstone);
    border-radius: 22px;
    padding: 14px 12px 18px;
    color: var(--blackmine);
}
.wallet-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.wallet-mark {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    background: var(--melrose);
    border-radius: 4px 4px 4px 10px;
    position: relative;
}
.wallet-mark::after {
    content: '';
    position: absolute;
    right: -3px;
    top: 50%;
    width: 6px;
    height: 6px;
    margin-top: -3px;
    background: var(--soapstone);
    border-radius: 50%;
}
.wallet-title { font-weight: 700; font-size: 0.9rem; flex: 1; }
.wallet-bell { width: 16px; height: 16px; color: var(--dove); }
.tcard {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(40,40,40,0.08);
}
.tcard-active { border-left: 4px solid var(--lime); }
.tcard-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tcard-event { font-weight: 700; font-size: 0.82rem; }
.tcard-meta { font-size: 0.7rem; color: var(--dove); }
.tcard-badge {
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--pine);
    margin-top: 4px;
}
.tcard-qr {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    background: var(--blackmine);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qr-svg { width: 28px; height: 28px; color: var(--lime); }
.tcard-past { opacity: 0.55; }

/* Lifecycle timeline */
.lifecycle {
    display: flex;
    flex-direction: column;
    gap: 0;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.65);
}
.life-step {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    padding: 11px 0;
}
.life-step::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--line-dark);
}
.life-step:first-child::before { top: 50%; }
.life-step:last-child::before { bottom: 50%; }
.life-dot {
    width: 12px;
    height: 12px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--blackmine);
    border: 2px solid rgba(255,255,255,0.35);
    position: relative;
    z-index: 1;
}
.life-step.done { color: rgba(255,255,255,0.9); }
.life-step.done .life-dot { background: var(--lime); border-color: var(--lime); }
.life-step.active { color: var(--lime); font-weight: 700; }
.life-step.active .life-dot {
    background: var(--lime);
    border-color: var(--lime);
    box-shadow: 0 0 0 5px rgba(192,255,0,0.18);
}

/* ---- Stats bars ---- */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 22px;
    margin-top: 64px;
    padding-top: 36px;
    border-top: 1px solid var(--line-dark);
    text-align: center;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
    font-family: var(--font-head);
    font-size: 2rem;
    color: var(--lime);
    line-height: 1;
}
.stat-label { font-size: 0.82rem; opacity: 0.75; }
.stats-bar-tight { margin-top: 36px; padding-top: 0; border-top: none; }
.stats-bar-boxed {
    margin-top: 64px;
    border-top: none;
    background: var(--blackmine);
    color: var(--white);
    border-radius: var(--radius);
    padding: 34px 28px;
}

/* ---- Trust strips / logo placeholders ---- */
.trust-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 14px;
    margin-top: 44px;
}
.trust-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.55;
    margin-right: 8px;
}
.logo-ph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border: 1.5px dashed rgba(255,255,255,0.3);
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255,255,255,0.55);
    position: relative;
}
.trust-strip-light .logo-ph, .section-light .logo-ph, .section-soapstone .logo-ph {
    border-color: var(--line-light);
    color: var(--dove);
    background: var(--white);
}
.trust-strip-light { margin-top: 40px; }
/* Real partner logos: rendered as uniform white silhouettes on the dark strip */
.trust-logo {
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.72;
    margin: 0 8px;
}

/* ---- Generic grids / cards ---- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}
.feature { padding: 8px 4px; }
.feature-icon {
    width: 34px;
    height: 34px;
    color: var(--melrose);
    margin-bottom: 14px;
}
.feature h3 { margin-bottom: 6px; font-size: 1.15rem; }
.feature p { color: var(--dove); font-size: 0.95rem; margin: 0; }

.card {
    background: var(--white);
    border: 1px solid var(--line-light);
    border-radius: var(--radius);
    padding: 28px;
    display: flex;
    flex-direction: column;
}
.card-kicker {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--melrose);
    margin-bottom: 8px;
}

.pull-quote {
    margin: 64px auto;
    max-width: 780px;
    text-align: center;
    font-family: var(--font-head);
    font-size: 1.7rem;
    line-height: 1.4;
    color: var(--blackmine);
    padding: 0 24px;
    position: relative;
}
.pull-quote::before, .pull-quote::after {
    content: '';
    display: block;
    width: 64px;
    height: 4px;
    margin: 0 auto 28px;
    background: var(--lime);
}
.pull-quote::after { margin: 28px auto 0; }

/* ---- Comparison panel ---- */
.compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
}
.compare-col {
    border-radius: var(--radius);
    padding: 30px;
}
.compare-old {
    background: var(--soapstone);
    color: var(--dove);
}
.compare-new {
    background: var(--blackmine);
    color: var(--white);
}
.compare-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}
.compare-head .icon { width: 28px; height: 28px; }
.compare-old .compare-head .icon { color: var(--carmine); }
.compare-new .compare-head .icon { color: var(--lime); }
.compare-head h3 { margin: 0; display: flex; flex-direction: column; }
.compare-head h3 span {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.65;
}
.compare-col li {
    padding: 10px 0 10px 26px;
    position: relative;
    border-top: 1px solid var(--line-light);
    font-size: 0.95rem;
}
.compare-new li { border-top-color: var(--line-dark); }
.compare-col li::before {
    position: absolute;
    left: 0;
    font-weight: 700;
}
.compare-old li::before { content: '✕'; color: var(--carmine); }
.compare-new li::before { content: '✓'; color: var(--lime); }

/* ---- Beneficiary cards ---- */
.benef-card h3 { font-size: 1.3rem; }
.check-list { margin: 10px 0 22px; }
.check-list li {
    position: relative;
    padding: 6px 0 6px 28px;
    font-size: 0.95rem;
    color: var(--dove);
}
.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--pine);
    font-weight: 700;
}
.mini-visual {
    margin-top: auto;
    background: var(--soapstone);
    border-radius: var(--radius-sm);
    padding: 18px;
}

.revenue-chart { display: flex; flex-direction: column; gap: 4px; }
.rev-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.rev-label { font-size: 0.75rem; color: var(--dove); font-weight: 600; }
.rev-delta {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--pine);
    background: rgba(0,112,99,0.1);
    padding: 2px 8px;
    border-radius: 999px;
}
.rev-amount {
    font-family: var(--font-head);
    font-size: 1.7rem;
    margin-bottom: 10px;
}
.rev-bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 64px;
}
.rev-bars span {
    flex: 1;
    background: rgba(112,113,255,0.35);
    border-radius: 4px 4px 0 0;
}
.rev-bars .bar-hi { background: var(--melrose); }

.notif {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    box-shadow: 0 6px 20px rgba(40,40,40,0.12);
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 0.8rem;
}
.notif-app {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.68rem;
    color: var(--dove);
}
.notif-app .wallet-mark { width: 12px; height: 12px; }
.notif-title { font-weight: 700; }
.notif-body { color: var(--dove); }

.wallet-mock { display: flex; justify-content: center; }
.mini-phone {
    width: 170px;
    background: var(--white);
    border: 2px solid var(--line-light);
    border-radius: 18px;
    padding: 12px 10px;
}
.mini-tcard {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: var(--soapstone);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 8px;
    font-size: 0.72rem;
    font-weight: 700;
}
.mini-tcard:last-child { margin-bottom: 0; }
.mini-qr {
    width: 26px;
    height: 26px;
    background: var(--blackmine);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mini-qr svg { width: 17px; height: 17px; color: var(--lime); }
.mini-dim { opacity: 0.6; }

.closing-line {
    text-align: center;
    font-family: var(--font-head);
    font-size: clamp(1.7rem, 2.6vw, 1.8rem);
    margin: 56px 0 0;
}

/* ---- Positioning diagram ---- */
.position-diagram {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 18px;
    margin-bottom: 64px;
}
.pos-node {
    flex: 0 1 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    border: 1.5px solid var(--line-light);
    border-radius: var(--radius);
    padding: 26px 20px;
    background: var(--white);
}
.pos-node .icon { width: 30px; height: 30px; color: var(--dove); margin-bottom: 4px; }
.pos-title { font-weight: 700; }
.pos-sub { font-size: 0.82rem; color: var(--dove); }
.pos-node-hi {
    background: var(--melrose);
    border-color: var(--melrose);
    color: var(--white);
    box-shadow: 0 14px 34px rgba(112,113,255,0.35);
}
.pos-node-hi .icon { color: var(--lime); }
.pos-node-hi .pos-sub { color: rgba(255,255,255,0.8); }
.pos-arrow {
    align-self: center;
    font-size: 1.7rem;
    line-height: 1;
    color: var(--melrose);
    flex: 0 0 auto;
}

/* ---- Two-column detail lists ---- */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
}
.col-title { margin-bottom: 20px; }
.detail-list li {
    display: flex;
    gap: 14px;
    padding: 12px 0;
}
.detail-list .icon { color: var(--melrose); margin-top: 2px; }
.detail-list strong { display: block; }
.detail-list p {
    margin: 2px 0 0;
    font-size: 0.92rem;
    color: var(--dove);
}

/* ---- 100% bar ---- */
.hundred-bar {
    margin-top: 80px;
    background: var(--blackmine);
    color: var(--white);
    padding: 30px 0;
}
.hundred-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 14px 28px;
    font-size: 0.95rem;
}
.hundred-inner strong {
    font-family: var(--font-head);
    color: var(--lime);
    font-size: 1.7rem;
    margin-right: 6px;
}
.section-light#platform { padding-bottom: 0; }

/* ---- Integrations ---- */
.integr-grid { align-items: start; }
.partner-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.logo-ph-tile {
    padding: 26px 10px;
    width: 100%;
    font-size: 0.9rem;
}
.more-integr {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}
.chip {
    padding: 7px 16px;
    border-radius: 999px;
    background: var(--soapstone);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--dove);
}
.chip-more { background: transparent; border: 1.5px dashed var(--line-light); }
.section-light#integrations { padding-bottom: 0; }
.dark-band {
    margin-top: 80px;
    background-color: var(--blackmine);
    background-image: linear-gradient(rgba(40,40,40,0.88), rgba(40,40,40,0.88)),
                      url('/newsite/img/shapes/concentric-rings-melrose-lime.svg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 64px 0;
    text-align: center;
}
.band-title {
    font-size: 1.7rem;
    max-width: 640px;
    margin: 0 auto 8px;
}

/* ---- Portal / dashboard ---- */
.portal-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 56px;
    align-items: center;
}
.dash-wrap { position: relative; }
.dash {
    background: var(--white);
    border: 1px solid var(--line-light);
    border-radius: var(--radius);
    box-shadow: 0 24px 60px rgba(40,40,40,0.14);
    padding: 22px;
}
.dash-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.dash-title { font-weight: 700; font-size: 0.95rem; }
.dash-live {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--pine);
}
.dash-tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}
.dash-tile {
    background: var(--soapstone);
    border-radius: var(--radius-sm);
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.dt-num { font-weight: 700; font-size: 1.15rem; }
.dt-label { font-size: 0.68rem; color: var(--dove); }
.dash-panels {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 10px;
}
.dash-panel {
    border: 1px solid var(--line-light);
    border-radius: var(--radius-sm);
    padding: 12px;
}
.dp-title {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--dove);
    margin-bottom: 8px;
}
.dash-line { width: 100%; height: 80px; }
.donut-row { display: flex; align-items: center; gap: 14px; }
.donut { width: 76px; height: 76px; flex: 0 0 auto; }
.donut-legend { font-size: 0.72rem; color: var(--dove); }
.donut-legend li { display: flex; align-items: center; gap: 6px; padding: 2px 0; }
.dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
}
.dot-melrose { background: var(--melrose); }
.dot-lime { background: var(--lime); }
.dot-gray { background: #EDEDF2; }
.notif-overlay {
    position: absolute;
    right: -14px;
    bottom: -22px;
    width: 260px;
    border: 1px solid var(--line-light);
}
.five-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    margin-top: 72px;
    padding-top: 36px;
    border-top: 1px solid var(--line-light);
    text-align: center;
}
.five-strip > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 600;
}
.five-strip .icon { color: var(--melrose); width: 26px; height: 26px; }

/* ---- Results / case studies ---- */
.results-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.65fr) minmax(0, 2.35fr);
    gap: 40px;
    align-items: start;
}
.case-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.case-card { padding: 18px; }
.case-img {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 130px;
    border: 1.5px dashed var(--line-light);
    border-radius: var(--radius-sm);
    background: repeating-linear-gradient(45deg, rgba(40,40,40,0.03), rgba(40,40,40,0.03) 10px, transparent 10px, transparent 20px);
    color: var(--dove);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}
.case-stats { margin-bottom: 16px; }
.case-stats li {
    padding: 7px 0;
    border-top: 1px solid var(--line-light);
    font-size: 0.9rem;
    color: var(--dove);
}
.case-stats strong {
    color: var(--blackmine);
    font-size: 1.05rem;
    margin-right: 6px;
}
.section-soapstone .stats-bar-boxed .stat-num { color: var(--lime); }

/* ---- CTA section (8) ---- */
.section-cta {
    background-color: var(--blackmine);
    padding-bottom: 0;
}
.reassure-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    max-width: 840px;
    margin: 48px auto 0;
    text-align: center;
}
.reassure-row > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 20px 14px;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
}
.reassure-row strong { font-size: 0.98rem; }
.reassure-row span { font-size: 0.82rem; opacity: 0.65; }

.journey {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 64px;
}
.journey-step {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--blackmine-2);
    border: 1px solid var(--line-dark);
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 0.82rem;
    font-weight: 600;
    position: relative;
}
.journey-step .icon { width: 18px; height: 18px; color: var(--lime); }
.journey-step:not(:last-child)::after {
    content: '→';
    position: static;
    margin-left: 6px;
    margin-right: -12px;
    color: rgba(255,255,255,0.4);
}

.powered-band {
    margin-top: 80px;
    padding: 56px 0;
    background-image: url('/newsite/img/shapes/wave-fade-melrose-lime.svg');
    background-size: cover;
    background-position: center;
    text-align: center;
    color: var(--blackmine);
}
.powered-tag {
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}
.powered-by {
    font-family: var(--font-head);
    font-size: clamp(1.7rem, 3.2vw, 2.3rem);
    margin: 0;
}
.powered-by em { color: var(--blackmine); }

/* ---- Closing section (9) ---- */
.section-closing {
    background-color: var(--blackmine);
    background-image: linear-gradient(rgba(40,40,40,0.9), rgba(40,40,40,0.9)),
                      url('/newsite/img/shapes/dot-blackmine-lime.svg');
    background-size: cover;
    background-position: center top;
}
.testimonial {
    max-width: 680px;
    margin: 64px auto;
    text-align: center;
    border: none;
    padding: 0;
}
.testimonial p {
    font-family: var(--font-head);
    font-size: 1.7rem;
    line-height: 1.4;
    margin-bottom: 12px;
}
.testimonial footer {
    font-size: 0.9rem;
    color: var(--lime);
    font-weight: 600;
}

/* ---- Footer ---- */
.footer {
    background: #1e1e1e;
    color: rgba(255,255,255,0.75);
    padding: 64px 0 32px;
    font-size: 0.9rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 40px;
}
/* -34px left offsets the whitespace inside the SVG canvas (art starts at x=155/1060) */
.footer-logo { width: 230px; margin: -40px 0 -14px -34px; }
.footer-brand p { color: rgba(255,255,255,0.6); }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col h4 {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--white);
    margin-bottom: 4px;
}
.footer-col a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
}
.footer-col a:hover { color: var(--lime); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 52px;
    padding-top: 24px;
    border-top: 1px solid var(--line-dark);
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
}
.footer-social { display: flex; gap: 18px; }
.footer-social a { color: rgba(255,255,255,0.65); text-decoration: none; }
.footer-social a:hover { color: var(--lime); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 48px; }
    .hero-copy { text-align: center; }
    .cta-row { justify-content: center; }
    .portal-grid, .results-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .five-strip { grid-template-columns: repeat(3, 1fr); }
    .five-strip > div:nth-last-child(-n+2) { grid-column: span 1; }
    .notif-overlay { right: 0; }
}

@media (max-width: 1100px) {
    /* Mobile nav */
    .nav-burger { display: flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background: var(--blackmine);
        border-bottom: 1px solid var(--line-dark);
        padding: 12px 24px 20px;
        gap: 0;
    }
    .nav-links.open { display: flex; }
    .nav-links > a, .nav-disabled {
        padding: 12px 0;
        border-bottom: 1px solid var(--line-dark);
    }
    .nav-ctas {
        margin: 16px 0 0;
        flex-direction: column;
    }
    .nav-ctas .btn { justify-content: center; }
}

@media (max-width: 820px) {
    section { padding: 64px 0; }
    .grid-3, .case-grid { grid-template-columns: 1fr; }
    .two-col { grid-template-columns: 1fr; gap: 32px; }
    .compare { grid-template-columns: 1fr; }
    .position-diagram { flex-direction: column; align-items: center; }
    .pos-arrow { transform: rotate(90deg); }
    .pos-node { width: 100%; max-width: 340px; flex-basis: auto; }
    .notif-overlay { position: static; width: auto; margin-top: 12px; }
    .reassure-row { grid-template-columns: 1fr; max-width: 420px; }
    .five-strip { grid-template-columns: repeat(2, 1fr); }
    .partner-grid { grid-template-columns: repeat(2, 1fr); }
    .dash-tiles { grid-template-columns: repeat(2, 1fr); }
    .dash-panels { grid-template-columns: 1fr; }
    .hundred-inner { flex-direction: column; align-items: center; text-align: center; }
}

@media (max-width: 480px) {
    .hero-visual { flex-direction: column; }
    .lifecycle {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px 14px;
    }
    .life-step { padding: 4px 0; }
    .life-step::before { display: none; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .journey-step:not(:last-child)::after { display: none; }
}
