/* Kidaftari ERP website, Brand Identity 2027 */
/* Layout: brand bands (navy / white / canvas) in a 1200px column; one signature moment, the
   factory-floor-to-finance flow where every stage posts to one ledger. Committed single light
   theme from the Brand Identity 2.0 guide and the 2027 company profile. */
:root {
    color-scheme: light;
    --navy: #143055;
    --navy-deep: #0D223F;
    --indigo: #2A3780;
    --blue: #2072B9;
    --blue-soft: #E7F0FA;
    --orange: #FC8905;
    --orange-deep: #E57A00;
    --ink: #1C2B42;
    --body: #3E4B5E;
    --muted: #6B7787;
    --line: #D9E1EB;
    --line-soft: #E8EDF3;
    --canvas: #EDF1F6;
    --mist: #F6F8FB;
    --paper: #FFFFFF;
    --on-navy: #FFFFFF;
    --on-navy-soft: rgba(255, 255, 255, .72);
    --on-navy-line: rgba(255, 255, 255, .14);
    --good: #1E7A4E;
    --good-soft: #E5F4EB;
    --bad: #B42318;
    --bad-soft: #FDECEA;

    --display: "Outfit", "Helix", "Segoe UI", system-ui, sans-serif;
    --text: "Carlito", "Calibri", "Segoe UI", system-ui, sans-serif;

    --step--1: .875rem;
    --step-0: 1.0625rem;
    --step-1: 1.25rem;
    --step-2: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
    --step-3: clamp(2rem, 1.4rem + 2.2vw, 2.875rem);
    --step-4: clamp(2.5rem, 1.6rem + 3.6vw, 4.25rem);

    --wrap: 1200px;
    --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    background: var(--paper);
    color: var(--body);
    font: 400 var(--step-0)/1.6 var(--text);
    -webkit-font-smoothing: antialiased;
}
body::before {
    content: "";
    position: fixed;
    inset: 0 0 auto;
    height: env(safe-area-inset-top, 0px);
    z-index: 60;
    background: var(--paper);
}

img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
    margin: 0;
    font-family: var(--display);
    color: var(--ink);
    text-wrap: balance;
    letter-spacing: -.01em;
}
/* the profile's headline pairing: a heavy lead word, then light */
h1, h2 { font-weight: 300; }
h1 b, h2 b { font-weight: 700; }
p { margin: 0; }

.wrap {
    width: 100%;
    max-width: calc(var(--wrap) + 2 * 32px);
    margin: 0 auto;
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
    .wrap {
        padding-left: max(32px, env(safe-area-inset-left, 0px));
        padding-right: max(32px, env(safe-area-inset-right, 0px));
    }
}

.band { padding-block: clamp(64px, 8vw, 112px); }
.band-canvas { background: var(--canvas); }
.band-navy { background: var(--navy); color: var(--on-navy-soft); }
.band-navy h2, .band-navy h3, .band-navy h4 { color: var(--on-navy); }

/* section head: lowercase eyebrow pair from the profile's spine labels, heading, orange rule, lead */
.eyebrow {
    display: block;
    margin-bottom: 14px;
    font: 300 var(--step--1)/1 var(--display);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--blue);
}
.eyebrow b { font-weight: 700; }
.band-navy .eyebrow { color: var(--orange); }
.head h2 { font-size: var(--step-3); line-height: 1.08; }
.head h2::after {
    content: "";
    display: block;
    width: 120px;
    height: 3px;
    margin-top: 18px;
    background: var(--orange);
}
.head .lead {
    margin-top: 18px;
    max-width: 60ch;
    font: 600 var(--step-1)/1.4 var(--display);
    color: var(--muted);
}
.band-navy .head .lead { color: var(--on-navy-soft); }
.head + * { margin-top: clamp(36px, 5vw, 56px); }

/* buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 8px;
    font: 600 1rem/1 var(--display);
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.btn-primary { background: var(--orange); color: var(--navy); }
.btn-primary:hover { background: var(--orange-deep); }
.btn-ghost { border-color: var(--on-navy-line); color: var(--on-navy); }
.btn-ghost:hover { border-color: var(--on-navy); }
.btn-line { border-color: var(--line); color: var(--navy); background: var(--paper); }
.btn-line:hover { border-color: var(--blue); color: var(--blue); }
.btn svg { width: 18px; height: 18px; }

/* ---------- header ---------- */
.site-head {
    position: sticky;
    top: env(safe-area-inset-top, 0px);
    z-index: 50;
    background: var(--paper);
    border-bottom: 1px solid var(--line-soft);
}
.site-head > .wrap {
    display: flex;
    align-items: center;
    gap: 28px;
    height: 72px;
}
.logo { flex: none; width: 184px; }
.logo img { width: 100%; height: auto; }
.nav { display: flex; gap: 26px; margin-left: 8px; }
.nav a {
    position: relative;
    padding: 6px 0;
    font: 600 .975rem/1 var(--display);
    color: var(--ink);
    text-decoration: none;
}
.nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 2px;
    background: var(--orange);
    transform: scaleX(0);
    transition: transform .18s ease;
}
.nav a:hover::after { transform: scaleX(1); }
.head-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.signin { font: 600 .975rem/1 var(--display); color: var(--navy); text-decoration: none; padding: 10px 6px; }
.signin:hover { color: var(--blue); }
.head-actions .btn { min-height: 42px; padding: 0 18px; font-size: .95rem; }
.head-actions a { white-space: nowrap; }
.btn-short { display: none; }
.menu-btn {
    display: none;
    width: 44px; height: 44px;
    margin-left: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    color: var(--navy);
    cursor: pointer;
}
.menu-btn svg { width: 22px; height: 22px; margin: auto; }
/* WhatsApp chat link, as on the current kidaftari.com header */
.wa {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px 0 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    font: 600 .95rem/1 var(--display);
    color: var(--navy);
    text-decoration: none;
}
.wa:hover { border-color: #25D366; }
.wa .wa-dot {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #25D366;
    color: #FFFFFF;
}
.wa svg { width: 20px; height: 20px; }
.wa-m { display: none; }
.mobile-nav {
    border-top: 1px solid var(--line-soft);
    background: var(--paper);
}
.mobile-nav .wrap { display: grid; gap: 4px; padding-block: 12px 20px; }
.mobile-nav a:not(.btn) {
    padding: 12px 0;
    border-bottom: 1px solid var(--line-soft);
    font: 600 1.05rem/1.2 var(--display);
    color: var(--ink);
    text-decoration: none;
}
.mobile-nav .btn { margin-top: 12px; }
.mobile-nav .btn + .btn { margin-top: 4px; }

@media (max-width: 1500px) {
    .head-actions .wa { padding: 0 5px; }
    .head-actions .wa-text { display: none; }
}
@media (max-width: 1400px) {
    .head-actions .btn-long { display: none; }
    .head-actions .btn-short { display: inline; }
}
@media (max-width: 1280px) {
    /* log in and sign up stay; booking is still in the hero and contact sections */
    .head-actions .book { display: none; }
    .site-head > .wrap { gap: 20px; }
    .nav { gap: 14px; }
}
@media (max-width: 1020px) {
    .nav, .head-actions { display: none; }
    .menu-btn { display: grid; margin-left: 8px; }
    .wa-m { display: inline-flex; margin-left: auto; padding: 0 5px; min-height: 44px; }
    .site-head > .wrap { height: 64px; }
    .logo { width: 148px; }
}

/* ---------- hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--navy);
    color: var(--on-navy-soft);
}
.hero .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: center;
    gap: 48px;
    padding-block: clamp(56px, 7vw, 96px) 0;
}
.hero-copy { padding-bottom: clamp(56px, 7vw, 96px); }
.hero .eyebrow { color: var(--orange); }
.hero h1 {
    font-size: var(--step-4);
    line-height: 1.02;
    color: var(--on-navy);
}
.hero-lead {
    margin-top: 24px;
    max-width: 52ch;
    font-size: var(--step-1);
    line-height: 1.55;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
    font-size: var(--step--1);
    color: var(--on-navy);
}
.hero-proof li { display: flex; align-items: center; gap: 8px; }
.hero-proof svg { width: 18px; height: 18px; color: var(--orange); flex: none; }

/* the cover's pill-shaped photo frame, bleeding off the right edge */
.hero-media {
    position: relative;
    align-self: stretch;
    margin-right: calc(-1 * max(32px, env(safe-area-inset-right, 0px)));
    min-height: 520px;
}
.hero-media::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 999px 0 0 0;
    background: var(--paper);
    transform: translate(-14px, 14px);
}
.hero-media img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 30% 20%;
    border-radius: 999px 0 0 0;
}
.quote-chip {
    position: absolute;
    left: -28px;
    bottom: 40px;
    width: min(320px, 80%);
    padding: 18px 20px;
    background: var(--paper);
    border-radius: 12px;
    box-shadow: 0 24px 48px -20px rgba(13, 34, 63, .55);
    color: var(--body);
}
.chip-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font: 600 .82rem/1.2 var(--display);
    color: var(--muted);
}
.quote-chip strong {
    display: block;
    margin-top: 8px;
    font: 700 1.9rem/1 var(--display);
    color: var(--navy);
    font-variant-numeric: tabular-nums;
}
.chip-steps { display: grid; gap: 7px; margin: 14px 0 0; padding: 12px 0 0; list-style: none; border-top: 1px solid var(--line-soft); font-size: .92rem; color: var(--ink); }
.chip-steps li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.chip-steps li::before {
    content: "";
    flex: none;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--good-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E7A4E' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8.5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.chip-steps code { font: 700 .78rem/1 ui-monospace, Menlo, Consolas, monospace; color: var(--blue); }

@media (max-width: 900px) {
    .hero .wrap { grid-template-columns: 1fr; gap: 0; }
    .hero-copy { padding-bottom: 40px; }
    .hero-media {
        min-height: 0;
        aspect-ratio: 4 / 3;
        max-width: 100%;
        margin-right: 0;
    }
    .hero-media::before, .hero-media img { border-radius: 200px 200px 0 0; }
    .hero-media::before { display: none; }
    .quote-chip { left: 12px; bottom: 16px; }
}

/* ---------- trust strip ---------- */
.trust { padding-block: 40px 48px; border-bottom: 1px solid var(--line-soft); }
.trust-label {
    font: 600 var(--step--1)/1.3 var(--display);
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
    text-align: center;
}
.clients {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 36px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}
.clients li {
    font: 700 1.05rem/1.2 var(--display);
    letter-spacing: .02em;
    color: #8592A6;
    white-space: nowrap;
}
.partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px 14px;
    margin-top: 28px;
    font-size: var(--step--1);
    color: var(--muted);
}
.partners span.tag {
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font: 600 .875rem/1 var(--display);
    color: var(--navy);
}

/* ---------- challenge ---------- */
.challenge-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: 40px;
    border-top: 1px solid var(--line);
}
.challenge {
    padding: 28px 28px 32px 0;
    border-bottom: 1px solid var(--line);
}
.challenge:not(:nth-child(3n + 1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.challenge h3 { font: 700 var(--step-1)/1.25 var(--display); }
.challenge p { margin-top: 8px; color: var(--muted); }
/* icon tile with a small orange "warning" dot in the corner */
.challenge .ic {
    position: relative;
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    margin-bottom: 18px;
    border-radius: 16px;
    background: var(--blue-soft);
    color: var(--navy);
}
.challenge .ic::after {
    content: "";
    position: absolute;
    top: -3px;
    right: -3px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 0 0 3px var(--paper);
}
.challenge .ic svg { width: 32px; height: 32px; }
.intro-cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: end;
}
.intro-cols p + p { margin-top: 12px; }
@media (max-width: 860px) {
    .challenge-grid { grid-template-columns: 1fr 1fr; }
    .challenge, .challenge:not(:nth-child(3n + 1)) { padding: 24px 20px 26px 0; border-left: 0; }
    .challenge:nth-child(2n) { padding-left: 20px; border-left: 1px solid var(--line); }
    .intro-cols { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 560px) {
    .challenge-grid { grid-template-columns: 1fr; }
    .challenge:nth-child(2n) { padding-left: 0; border-left: 0; }
}

/* ---------- platform flow (signature) ---------- */
.flow {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 30px 60px -40px rgba(13, 34, 63, .45);
    overflow: hidden;
}
.stages {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
    border-bottom: 1px solid var(--line);
}
.stage {
    position: relative;
    display: grid;
    gap: 6px;
    width: 100%;
    padding: 22px 18px 20px;
    border: 0;
    border-right: 1px solid var(--line-soft);
    background: var(--paper);
    text-align: left;
    font: inherit;
    color: var(--body);
    cursor: pointer;
    transition: background-color .15s ease;
}
.stages li:last-child .stage { border-right: 0; }
.stage:hover { background: var(--mist); }
.stage .n {
    font: 600 .8rem/1 var(--display);
    letter-spacing: .1em;
    color: var(--muted);
}
.stage .t { font: 700 1.15rem/1.2 var(--display); color: var(--ink); }
.stage .d { font-size: .9rem; line-height: 1.35; color: var(--muted); }
.stage::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 3px;
    background: transparent;
}
.stage[aria-selected="true"] { background: var(--blue-soft); }
.stage[aria-selected="true"] .n { color: var(--blue); }
.stage[aria-selected="true"]::after { background: var(--orange); }

.stage-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: 40px;
    padding: 32px;
}
.stage-panel h3 { font: 700 var(--step-2)/1.15 var(--display); }
.stage-panel .sum { margin-top: 12px; max-width: 52ch; }
.tracks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 24px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}
.tracks li { display: flex; gap: 10px; align-items: baseline; color: var(--ink); }
.tracks li::before {
    content: "";
    flex: none;
    width: 7px; height: 7px;
    border-radius: 2px;
    background: var(--blue);
    transform: translateY(-2px);
}
.docs-label {
    font: 600 .8rem/1.2 var(--display);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}
.docs { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.doc {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--mist);
    border: 1px solid var(--line-soft);
    border-radius: 10px;
}
.doc code {
    font: 700 .85rem/1 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    color: var(--navy);
    letter-spacing: .02em;
}
.doc span { font-size: .95rem; color: var(--ink); }

/* every document lands in the same ledger */
.ledger {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    padding: 18px 32px;
    background: var(--navy);
    color: var(--on-navy-soft);
    font-size: .98rem;
}
.ledger strong { font: 600 1rem/1.2 var(--display); color: var(--on-navy); }
.ledger .rail {
    flex: 1 1 200px;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--orange) 0 10px, transparent 10px 16px);
    opacity: .9;
}
@media (max-width: 980px) {
    .stages { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .stages li:nth-child(3) .stage { border-right: 0; }
    .stages li:nth-child(-n + 3) .stage { border-bottom: 1px solid var(--line-soft); }
    .stage-panel { grid-template-columns: 1fr; gap: 28px; padding: 24px; }
}
@media (max-width: 560px) {
    .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stages li .stage { border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
    .stages li:nth-child(2n) .stage { border-right: 0; }
    .stage .d { display: none; }
    .tracks { grid-template-columns: 1fr; }
    .ledger { padding: 16px 20px; }
}

/* ---------- manufacturing ---------- */
.mfg {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
}
.mfg-copy > p { max-width: 58ch; }
.mfg-copy > p + p { margin-top: 14px; }
.questions { display: grid; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.questions li {
    padding: 12px 16px;
    border-left: 3px solid var(--orange);
    background: var(--mist);
    font: 600 1.05rem/1.35 var(--display);
    color: var(--ink);
}
.cost-layers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}
.cost-layers span {
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: .92rem;
    color: var(--ink);
    background: var(--paper);
}

/* product window: the Navy Command app skin */
.app {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
    box-shadow: 0 40px 70px -40px rgba(13, 34, 63, .55);
    overflow: hidden;
    font-size: .92rem;
}
.app-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--mist);
    border-bottom: 1px solid var(--line-soft);
}
.app-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.app-bar span { margin-left: 10px; font: 600 .8rem/1 var(--display); color: var(--muted); }
.app-body { display: grid; grid-template-columns: 54px minmax(0, 1fr); }
.app-rail { background: var(--navy); padding: 14px 0; display: grid; align-content: start; gap: 6px; justify-items: center; }
.app-rail b { width: 24px; height: 24px; border-radius: 6px; background: rgba(255, 255, 255, .14); }
.app-rail b.on { background: var(--indigo); box-shadow: inset 3px 0 0 var(--orange); }
.app-main { padding: 18px 18px 20px; min-width: 0; }
.app-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 12px; }
.app-title h4 { font: 600 1.15rem/1.2 var(--display); color: var(--navy); }
.app-title code { font: 700 .8rem/1 ui-monospace, Menlo, Consolas, monospace; color: var(--blue); }
.app-meta { margin-top: 4px; color: var(--muted); font-size: .85rem; }
.sample {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--canvas);
    color: var(--muted);
    font: 600 .7rem/1.4 var(--display);
    letter-spacing: .06em;
    text-transform: uppercase;
}
.app-table-wrap { margin-top: 14px; overflow-x: auto; border: 1px solid var(--line-soft); border-radius: 10px; }
.app-table { width: 100%; min-width: 420px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.app-table th {
    padding: 9px 12px;
    background: var(--mist);
    border-bottom: 1px solid var(--line);
    font: 600 .7rem/1.2 var(--display);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #4B5870;
    text-align: right;
}
.app-table td { padding: 9px 12px; border-bottom: 1px solid var(--line-soft); text-align: right; color: var(--ink); }
.app-table th:first-child, .app-table td:first-child { text-align: left; }
.app-table tr.sub td { color: var(--muted); }
.app-table tr.total td { border-bottom: 0; font-weight: 700; }
.app-totals {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}
.app-totals div {
    padding: 12px 14px;
    background: #FBFCFE;
    border: 1px solid var(--line-soft);
    border-radius: 10px;
}
.app-totals small {
    display: block;
    font: 600 .7rem/1.2 var(--display);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}
.app-totals strong {
    display: block;
    margin-top: 6px;
    font: 600 1.3rem/1.1 var(--display);
    color: var(--navy);
    font-variant-numeric: tabular-nums;
}
.app-totals .good strong { color: var(--good); }
@media (max-width: 900px) {
    .mfg { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .app-body { grid-template-columns: 1fr; }
    .app-rail { display: none; }
    .app-totals { grid-template-columns: 1fr 1fr; }
    .app-totals div:last-child { grid-column: 1 / -1; }
}

/* ---------- KiLipo ---------- */
.pay {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 64px);
    align-items: start;
}
.pay-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.pay-flow li { display: flex; align-items: center; gap: 10px; font: 700 var(--step-2)/1 var(--display); color: var(--on-navy); }
.pay-flow li + li::before {
    content: "";
    width: 26px; height: 2px;
    background: var(--orange);
}
.pay-intro { margin-top: 22px; max-width: 56ch; }
.caps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    margin-top: 34px;
    background: var(--on-navy-line);
    border: 1px solid var(--on-navy-line);
    border-radius: 12px;
    overflow: hidden;
}
.cap { padding: 20px; background: var(--navy); }
.cap h4 { font: 700 1.05rem/1.25 var(--display); }
.cap p { margin-top: 8px; font-size: .97rem; line-height: 1.5; }
.cap code {
    display: inline-block;
    margin-top: 12px;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .08);
    font: 700 .78rem/1.3 ui-monospace, Menlo, Consolas, monospace;
    color: var(--on-navy);
}
.story {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--navy-deep);
}
/* height: auto so the width/height attributes don't override the aspect ratio */
.story img { display: block; width: 100%; height: auto; aspect-ratio: 13 / 10; object-fit: cover; object-position: 50% 35%; }
.story figcaption { padding: 24px 26px 26px; }
.story blockquote {
    margin: 0;
    font: italic 400 1.3rem/1.45 var(--text);
    color: var(--on-navy);
}
.story .who { margin-top: 14px; font: 600 1rem/1.3 var(--display); color: var(--on-navy); }
.story .who span { display: block; font-weight: 400; color: var(--on-navy-soft); }
.story .who em { font-style: normal; color: var(--orange); }
@media (max-width: 900px) {
    .pay { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .caps { grid-template-columns: 1fr; }
}

/* ---------- before / after ---------- */
.compare {
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    background: var(--paper);
}
.compare-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr);
    align-items: center;
    border-bottom: 1px solid var(--line-soft);
}
.compare-row:last-child { border-bottom: 0; }
.compare-row > div { padding: 16px 22px; }
.compare-row .before { color: var(--muted); }
.compare-row .after { color: var(--ink); font-weight: 700; background: #FBFCFE; height: 100%; display: flex; align-items: center; }
.compare-row .arrow { display: grid; place-items: center; padding: 0; height: 100%; background: linear-gradient(90deg, var(--paper) 50%, #FBFCFE 50%); }
.compare-row .arrow svg { width: 20px; height: 20px; color: var(--orange); }
.compare-head { background: var(--mist); }
.compare-head > div {
    font: 600 .8rem/1.2 var(--display);
    letter-spacing: .1em;
    text-transform: uppercase;
}
.compare-head .before { color: var(--bad); }
.compare-head .after { color: var(--good); background: var(--mist); }
.compare-head .arrow { background: var(--mist); }
@media (max-width: 640px) {
    .compare-row { grid-template-columns: 1fr; }
    .compare-row .arrow { display: none; }
    .compare-row .before { padding-bottom: 4px; text-decoration: line-through; text-decoration-color: rgba(180, 35, 24, .45); }
    .compare-row .after { padding-top: 4px; background: transparent; }
    .compare-head { display: none; }
}

/* ---------- why ---------- */
.why {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
.why-card {
    padding: 24px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.why-card h3 { font: 700 1.15rem/1.25 var(--display); }
.why-card p { margin-top: 10px; font-size: .98rem; }
.why-card.lead-card {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    background: var(--navy);
    border-color: var(--navy);
    color: var(--on-navy-soft);
}
.why-card.lead-card h3 { color: var(--on-navy); font-size: var(--step-2); line-height: 1.15; }
.why-card.lead-card p { font-size: 1.02rem; }
.why-card.lead-card .ico { margin-top: auto; padding-top: 28px; display: flex; gap: 8px; flex-wrap: wrap; }
.why-card.lead-card .ico span {
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid var(--on-navy-line);
    font: 600 .8rem/1 var(--display);
    color: var(--on-navy);
}
.etims {
    display: inline-block;
    margin-bottom: 10px;
    padding: 3px 9px;
    border-radius: 6px;
    background: var(--blue-soft);
    color: var(--blue);
    font: 700 .75rem/1.3 var(--display);
    letter-spacing: .06em;
    text-transform: uppercase;
}
@media (max-width: 1000px) {
    .why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .why-card.lead-card { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 560px) {
    .why { grid-template-columns: 1fr; }
}

/* ---------- second testimonial ---------- */
.voice {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
}
.voice img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 16px 140px 16px 16px; }
.voice blockquote {
    margin: 0;
    font: 300 var(--step-2)/1.35 var(--display);
    color: var(--ink);
}
.voice blockquote::before {
    content: "\201C";
    display: block;
    height: .6em;
    font: 700 5rem/1 var(--display);
    color: var(--orange);
}
.voice .who { margin-top: 22px; font: 700 1.1rem/1.3 var(--display); color: var(--ink); }
.voice .who span { display: block; font: 400 1rem/1.4 var(--text); color: var(--muted); }
@media (max-width: 860px) {
    .voice { grid-template-columns: 1fr; }
}

/* ---------- adoption journey ---------- */
.journey {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}
.journey li {
    position: relative;
    padding: 0 18px 0 0;
    counter-increment: step;
}
.journey li::before {
    content: counter(step, decimal-leading-zero);
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--on-navy);
    font: 700 .95rem/1 var(--display);
    position: relative;
    z-index: 1;
}
.journey li::after {
    content: "";
    position: absolute;
    top: 21px; left: 44px; right: 0;
    height: 2px;
    background: var(--line);
}
.journey li:last-child::after { display: none; }
.journey li:nth-child(5)::before { background: var(--orange); color: var(--navy); }
.journey h3 { font: 700 1.08rem/1.25 var(--display); }
.journey p { margin-top: 8px; font-size: .95rem; line-height: 1.5; }
.timeline {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 44px;
}
.timeline div {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 20px 24px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.timeline strong {
    flex: none;
    font: 700 var(--step-3)/1 var(--display);
    color: var(--navy);
    font-variant-numeric: tabular-nums;
}
.timeline strong small { font-size: .45em; font-weight: 600; color: var(--muted); margin-left: 4px; }
.timeline p { font-size: .98rem; }
@media (max-width: 1000px) {
    .journey { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; }
    .journey li:nth-child(3)::after { display: none; }
}
@media (max-width: 620px) {
    .journey { grid-template-columns: 1fr; row-gap: 0; }
    .journey li { padding: 0 0 26px 62px; min-height: 44px; }
    .journey li::before { position: absolute; left: 0; top: 0; margin: 0; }
    .journey li::after { top: 44px; bottom: 0; left: 21px; right: auto; width: 2px; height: auto; display: block; }
    .journey li:nth-child(3)::after { display: block; }
    .journey li:last-child::after { display: none; }
    .timeline { grid-template-columns: 1fr; }
    .timeline div { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ---------- assurance ---------- */
.assure {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--line);
}
.assure > div { padding: 26px 24px 4px 0; }
.assure > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.assure svg { width: 28px; height: 28px; color: var(--blue); }
.assure h3 { margin-top: 14px; font: 700 1.1rem/1.25 var(--display); }
.assure p { margin-top: 8px; font-size: .97rem; }
.assure ul { margin: 10px 0 0; padding-left: 18px; font-size: .95rem; }
@media (max-width: 900px) {
    .assure { grid-template-columns: 1fr 1fr; }
    .assure > div:nth-child(3) { padding-left: 0; border-left: 0; }
    .assure > div:nth-child(n + 3) { border-top: 1px solid var(--line); margin-top: 22px; }
}
@media (max-width: 560px) {
    .assure { grid-template-columns: 1fr; }
    .assure > div, .assure > div + div { padding: 22px 0 4px; border-left: 0; }
    .assure > div + div { border-top: 1px solid var(--line); margin-top: 18px; }
}

/* ---------- industries ---------- */
.industries {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.industry {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-decoration: none;
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.industry:hover {
    border-color: var(--blue);
    transform: translateY(-2px);
    box-shadow: 0 18px 36px -24px rgba(13, 34, 63, .45);
}
.industry .k {
    font: 600 .78rem/1.2 var(--display);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--blue);
}
.industry h3 { font: 700 1.2rem/1.25 var(--display); }
.industry p { font-size: .98rem; }
.industry .more {
    margin-top: auto;
    padding-top: 6px;
    font: 600 .95rem/1 var(--display);
    color: var(--navy);
}
.industry .more::after { content: " \2192"; color: var(--orange); }
@media (max-width: 900px) { .industries { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .industries { grid-template-columns: 1fr; } }

/* ---------- team ---------- */
.team-wrap {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
}
.team-wrap .head + p { margin-top: 22px; max-width: 54ch; }
.team {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.team li { text-align: center; }
.team .ph {
    width: min(150px, 100%);
    aspect-ratio: 1;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--navy);
    background: var(--canvas);
}
.team li:nth-child(2) .ph { border-color: var(--indigo); }
.team li:nth-child(3) .ph { border-color: var(--blue); }
.team .ph img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); }
.team h3 { margin-top: 16px; font: 700 1.1rem/1.2 var(--display); }
.team p { margin-top: 4px; font-size: .95rem; color: var(--muted); line-height: 1.35; }
@media (max-width: 860px) { .team-wrap { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .team { grid-template-columns: 1fr 1fr; } .team li:last-child { grid-column: 1 / -1; } }

/* ---------- contact CTA ---------- */
.cta {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
}
.cta h2 { font-size: var(--step-4); line-height: 1.02; color: var(--on-navy); }
.cta h2 em { font-style: normal; color: var(--orange); }
.cta p.lead { margin-top: 20px; max-width: 46ch; font-size: var(--step-1); }
.cta .hero-ctas { margin-top: 28px; }
.contact-card {
    display: grid;
    gap: 10px;
    padding: 24px;
    background: var(--navy-deep);
    border: 1px solid var(--on-navy-line);
    border-radius: 16px;
}
.contact-row {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--on-navy-line);
}
.contact-row:last-child { border-bottom: 0; }
.contact-row svg { width: 20px; height: 20px; color: var(--orange); }
.contact-row small { display: block; font-size: .8rem; color: var(--on-navy-soft); }
.contact-row .v {
    display: block;
    font: 600 1.08rem/1.3 var(--display);
    color: var(--on-navy);
    text-decoration: none;
    overflow-wrap: anywhere;
}
.contact-row a.v:hover { text-decoration: underline; text-decoration-color: var(--orange); }
.copy {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--on-navy-line);
    border-radius: 6px;
    background: transparent;
    color: var(--on-navy);
    font: 600 .82rem/1 var(--display);
    cursor: pointer;
}
.copy:hover { border-color: var(--on-navy); }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.foot { background: var(--navy-deep); color: var(--on-navy-soft); padding-block: 56px 32px; font-size: .95rem; }
.foot-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
    gap: 32px;
}
.foot img { display: block; width: 210px; height: auto; }
.foot .tag { margin-top: 14px; max-width: 34ch; }
.foot h4 {
    font: 600 .8rem/1.2 var(--display);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--on-navy);
}
.foot ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--on-navy); }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a {
    display: grid;
    place-items: center;
    width: 38px; height: 38px;
    border: 1px solid var(--on-navy-line);
    border-radius: 8px;
    font: 700 .8rem/1 var(--display);
    color: var(--on-navy);
}
.social a:hover { border-color: var(--on-navy); }
.foot-base {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    margin-top: 44px;
    padding-top: 22px;
    border-top: 1px solid var(--on-navy-line);
    font-size: .88rem;
}
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 420px) { .foot-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
}
