/* ============================================================
   IAE NBA Navigator — marketing site
   Institute for Academic Excellence
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500&display=swap');

:root {
    --navy: #0b1d3a;
    --navy-2: #132848;
    --brand: #1a4fa0;
    --brand-deep: #123a7a;
    --cyan: #2bb8e8;
    --ink: #122033;
    --muted: #5a6a7a;
    --faint: #8a97a6;
    --line: #d5dce6;
    --paper: #f3f6fb;
    --white: #ffffff;
    --gold: #b8860b;
    --success: #1f7a4d;
    --warn: #9a5b12;
    --danger: #b42318;
    --shadow: 0 18px 50px rgba(11, 29, 58, 0.10);
    --shadow-sm: 0 6px 20px rgba(11, 29, 58, 0.08);
    --radius: 14px;
    --radius-sm: 8px;
    --header-h: 104px;
    --max: 1180px;
    --font: 'Plus Jakarta Sans', system-ui, sans-serif;
    --display: 'Fraunces', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
section[id], .flow-chart { scroll-margin-top: calc(var(--header-h) + 12px); }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-deep); }
button, input, select, textarea { font-family: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.skip-link {
    position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff;
    padding: 8px 14px; z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

.container { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.container-wide { width: min(1280px, calc(100% - 48px)); margin-inline: auto; }

.eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 12px;
}
h1, h2, h3 { font-family: var(--display); color: var(--navy); letter-spacing: -0.02em; line-height: 1.18; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 600; margin: 0 0 16px; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); font-weight: 600; margin: 0 0 12px; }
h3 { font-size: 1.15rem; font-weight: 600; margin: 0 0 8px; font-family: var(--font); letter-spacing: -0.01em; }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 640px; margin: 0; }
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-alt { background: var(--paper); }
.section-head { margin-bottom: 40px; max-width: 680px; }

/* ---- Header ---- */
.site-header {
    position: sticky; top: 0; z-index: 80;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled {
    border-bottom-color: var(--line);
    box-shadow: 0 8px 24px rgba(11,29,58,0.06);
}
.header-inner {
    position: relative;
    height: var(--header-h);
    display: flex; align-items: center; gap: 28px;
}
.brand {
    display: flex; align-items: center; gap: 10px; flex-shrink: 0;
    color: var(--navy);
}
.brand img {
    height: 88px;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
}
.brand-name { font-weight: 800; font-size: 15px; letter-spacing: 0.02em; }
.brand-sub { display: block; font-size: 10px; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; }

.header-end { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
    color: var(--ink); font-size: 14px; font-weight: 600;
    padding: 8px 11px; border-radius: 8px;
}
.nav a:hover, .nav a.active { color: var(--brand); background: rgba(26,79,160,0.06); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: 12px; }
.header-actions .btn-ghost.is-current {
    color: var(--brand);
    background: rgba(26, 79, 160, 0.08);
}
.nav-toggle {
    display: none; margin-left: auto;
    width: 42px; height: 42px; border: 1px solid var(--line); background: #fff;
    border-radius: 10px; cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--navy); margin: 4px auto; }

.crumb-bar {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 10px 0;
    font-size: 13px; color: var(--muted);
}
.crumb-bar a { color: var(--muted); font-weight: 600; }
.crumb-bar span { color: var(--navy); font-weight: 700; }
.crumb-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 20px; border-radius: 10px; font-size: 14px; font-weight: 700;
    border: 1.5px solid transparent; cursor: pointer; text-decoration: none;
    transition: transform .15s, box-shadow .15s, background .15s, color .15s;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(26,79,160,0.25); }
.btn-primary:hover { background: var(--brand-deep); color: #fff; }
.btn-secondary { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost { background: transparent; color: var(--navy); padding-inline: 8px; }
.btn-ghost:hover { color: var(--brand); }
.btn-light { background: #fff; color: var(--navy); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-outline-light:hover { background: #fff; color: var(--navy); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 13px; }

/* ---- Hero ---- */
.hero {
    position: relative;
    padding: 72px 0 80px;
    background:
        radial-gradient(1200px 500px at 85% -10%, rgba(43,184,232,0.18), transparent 55%),
        radial-gradient(900px 420px at -10% 80%, rgba(26,79,160,0.12), transparent 50%),
        linear-gradient(180deg, #eef3fb 0%, #ffffff 70%);
    overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-kicker {
    color: var(--brand); font-weight: 700; font-size: 13px;
    letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--muted); }

/* Product mock */
.product-frame {
    background: linear-gradient(160deg, var(--navy) 0%, #1a3a6e 100%);
    border-radius: 18px;
    padding: 14px;
    box-shadow: var(--shadow);
    color: #d7e3f4;
}
.product-chrome { display: flex; gap: 6px; margin-bottom: 12px; }
.product-chrome i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.25); display: block; }
.product-body { background: #0f2748; border-radius: 12px; padding: 16px; min-height: 280px; }
.product-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.product-top strong { color: #fff; font-size: 13px; }
.pill { font-size: 11px; font-weight: 700; background: rgba(43,184,232,0.18); color: var(--cyan); padding: 4px 8px; border-radius: 999px; }
.crit-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 12px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.crit-bar { flex: 1; height: 6px; background: rgba(255,255,255,0.08); border-radius: 99px; overflow: hidden; }
.crit-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), #5ee7a0); border-radius: 99px; }
.product-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.product-stat { background: rgba(255,255,255,0.05); border-radius: 8px; padding: 10px; }
.product-stat b { display: block; color: #fff; font-size: 18px; }
.product-stat span { font-size: 11px; color: #8aa0bd; }

/* ---- Cards / grids ---- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}
.card:hover { border-color: #b9cbe4; }
.card .icon {
    width: 42px; height: 42px; border-radius: 11px;
    background: rgba(26,79,160,0.08); color: var(--brand);
    display: grid; place-items: center; margin-bottom: 14px;
}
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.card-link { display: inline-block; margin-top: 14px; font-size: 13.5px; font-weight: 700; }

.stat-strip {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.stat { text-align: center; padding: 12px; }
.stat b {
    display: block; font-family: var(--display); font-size: 2.6rem;
    color: var(--navy); font-weight: 600; line-height: 1;
}
.stat span { color: var(--muted); font-size: 14px; font-weight: 600; }

.quote {
    background: var(--white);
    border-left: 4px solid var(--cyan);
    padding: 28px;
    border-radius: 0 var(--radius) var(--radius) 0;
    box-shadow: var(--shadow-sm);
}
.quote p { font-family: var(--display); font-size: 1.25rem; color: var(--navy); margin: 0 0 14px; line-height: 1.4; }
.quote cite { font-style: normal; font-size: 13.5px; font-weight: 700; color: var(--muted); }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li {
    display: flex; gap: 10px; align-items: flex-start;
    font-weight: 600; font-size: 15px;
}
.check-list li::before {
    content: ""; width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px;
    background: var(--brand);
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'><polyline points='20 6 9 17 4 12'/></svg>") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'><polyline points='20 6 9 17 4 12'/></svg>") center / contain no-repeat;
}

.tagline-strip {
    text-align: center;
    padding: 28px 24px;
    background: #fff;
    border-block: 1px solid var(--line);
    font-size: 17px;
    color: var(--muted);
    font-style: italic;
    font-family: var(--display);
}

/* ---- CTA band ---- */
.cta-band {
    background: linear-gradient(135deg, var(--navy) 0%, #16325f 55%, #0d4a6e 100%);
    color: #d7e3f4;
    padding: 72px 0;
    text-align: center;
}
.cta-band h2 { color: #fff; max-width: 720px; margin-inline: auto; }
.cta-band p { max-width: 560px; margin: 12px auto 0; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---- Tables ---- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th, table.data td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { background: var(--paper); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
table.data tr:last-child td { border-bottom: none; }
.yes { color: var(--success); font-weight: 800; }
.no { color: var(--faint); }

/* ---- FAQ ---- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
    width: 100%; text-align: left; background: none; border: none;
    padding: 18px 0; font-size: 16px; font-weight: 700; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    color: var(--navy);
}
.faq-q .chev { color: var(--faint); transition: transform .2s; }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 0 18px; color: var(--muted); max-width: 720px; }
.faq-item.open .faq-a { display: block; }

/* ---- Tabs / modules ---- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 22px 0; }
.tab-btn {
    padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line);
    background: #fff; font-size: 13.5px; font-weight: 700; cursor: pointer; color: var(--muted);
}
.tab-btn.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.mod-panel { display: none; gap: 32px; margin-top: 8px; }
.mod-panel.active { display: grid; grid-template-columns: 1fr 1fr; }
.mod-features ul { margin: 0; padding-left: 18px; color: var(--muted); }
.mod-features li { margin-bottom: 8px; }
.mod-preview { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.preview-label { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }

.chk-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 14px; cursor: pointer; }
.prog-track { background: var(--paper); border-radius: 999px; height: 10px; margin-top: 14px; overflow: hidden; }
.prog-fill { background: linear-gradient(90deg, var(--brand), var(--cyan)); height: 100%; width: 0%; transition: width .25s; }
.prog-label { font-size: 13px; color: var(--muted); margin-top: 6px; font-weight: 600; }

.mq-q { font-size: 15px; font-weight: 700; margin-bottom: 12px; color: var(--navy); }
.mq-opt {
    display: block; width: 100%; text-align: left; padding: 10px 12px; margin-bottom: 8px;
    border: 1px solid var(--line); background: #fff; border-radius: 8px; font-size: 14px; cursor: pointer;
}
.mq-opt:hover:not(:disabled) { border-color: var(--brand); }
.mq-feedback { display: none; padding: 10px 12px; border-radius: 8px; font-size: 13.5px; margin-top: 8px; }
.mq-feedback.correct { background: #e8f6ee; color: var(--success); display: block; }
.mq-feedback.wrong { background: #fbf1e2; color: var(--warn); display: block; }

.bench-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.bench-label { width: 48px; font-size: 12.5px; font-weight: 700; }
.bench-track { flex: 1; background: var(--paper); border-radius: 4px; height: 14px; overflow: hidden; }
.bench-fill { background: var(--brand); height: 100%; transition: width .3s; }
.bench-val { width: 30px; font-size: 12.5px; color: var(--muted); text-align: right; }
.bench-toggle { display: flex; gap: 8px; margin-bottom: 16px; }
.bench-toggle button {
    padding: 6px 12px; border-radius: 6px; border: 1px solid var(--line); background: #fff;
    font-size: 12.5px; cursor: pointer; font-weight: 700;
}
.bench-toggle button.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---- Forms ---- */
.form-grid { display: grid; gap: 16px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label.field { display: block; font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.form-input, textarea.form-input, select.form-input {
    width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
    background: #fff; font-size: 15px; color: var(--ink);
}
.form-input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 4px rgba(26,79,160,0.12); }
textarea.form-input { min-height: 120px; resize: vertical; }
.form-hint { font-size: 12.5px; color: var(--muted); margin: 6px 0 0; }
.form-error { color: var(--danger); font-size: 13.5px; font-weight: 600; display: none; }
.form-success { color: var(--success); font-size: 13.5px; font-weight: 600; display: none; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.consent input { margin-top: 3px; }

/* ---- Auth ---- */
.auth-page {
    min-height: calc(100vh - 0px);
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    background: var(--paper);
}
.auth-visual {
    background: linear-gradient(160deg, var(--navy) 0%, #16325f 60%, #0d4a6e 100%);
    color: #d7e3f4;
    padding: 48px 56px;
    display: flex; flex-direction: column; justify-content: space-between;
}
.auth-visual h1 { color: #fff; font-size: 2.4rem; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card {
    width: min(520px, 100%);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 32px;
    box-shadow: var(--shadow);
}
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); border-radius: 10px; padding: 4px; margin-bottom: 22px; }
.auth-tabs a, .auth-tabs button {
    text-align: center; padding: 10px; border-radius: 8px; font-weight: 700; font-size: 14px;
    color: var(--muted); border: none; background: none; cursor: pointer; text-decoration: none;
}
.auth-tabs a.active, .auth-tabs button.active { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.register-banner {
    background: #eef5ff; color: var(--brand-deep); border-radius: 10px;
    padding: 12px 14px; font-size: 13px; margin-bottom: 18px; line-height: 1.45;
}

/* ---- Footer ---- */
.site-footer { background: var(--navy); color: #b7c5d8; padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; margin-bottom: 40px; }
.site-footer h4 { color: #fff; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 14px; }
.site-footer a { color: #b7c5d8; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; }
.footer-brand .brand img {
    height: 80px;
    background: #fff;
    border-radius: 6px;
}
.footer-brand p { font-size: 14px; max-width: 320px; }
.footer-facts { font-size: 13px; margin-top: 16px; color: var(--cyan); font-weight: 600; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 18px;
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    font-size: 12.5px;
}

/* ---- Misc ---- */
.logo-strip { display: flex; flex-wrap: wrap; gap: 12px; }
.logo-ph {
    height: 56px; min-width: 120px; padding: 0 16px;
    border: 1.5px dashed #c5d0de; border-radius: 10px;
    display: grid; place-items: center; color: var(--faint); font-size: 12px; font-weight: 700;
    background: #fff;
}
.chapter { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; background: #fff; }
.chapter b { color: var(--brand); font-size: 12px; letter-spacing: 0.06em; }
.process-steps { counter-reset: step; display: grid; gap: 14px; }
.process-steps li {
    list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px 16px 58px;
    position: relative;
}
.process-steps li::before {
    counter-increment: step; content: counter(step);
    position: absolute; left: 16px; top: 16px;
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--navy); color: #fff; font-size: 12px; font-weight: 800;
    display: grid; place-items: center;
}

/* ---- Flowcharts (User Manual §11.1 / §11.2 — same structure as the Word diagrams) ---- */
.flow-chart {
    max-width: 780px;
    margin: 8px auto 0;
}
.flow-band {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0f6e56;
    border-bottom: 2px solid #0f6e56;
    padding-bottom: 8px;
    margin: 8px 0 16px;
}
.flow-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #eef6f2;
    border: 2px solid #0f6e56;
    border-radius: 12px;
    padding: 14px 16px;
}
.flow-step .n {
    flex-shrink: 0;
    width: 28px;
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f6e56;
    line-height: 1.2;
}
.flow-step strong { display: block; color: var(--navy); font-size: 15px; }
.flow-step em { display: block; font-style: normal; color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.flow-arrow {
    width: 2px;
    height: 16px;
    background: #4a5560;
    margin: 0 auto;
    position: relative;
}
.flow-arrow::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -5px;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #4a5560;
}
.flow-cycle {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 200px;
    gap: 0 14px;
    align-items: stretch;
}
.flow-cycle .flow-main { grid-column: 2; }
.flow-loop {
    grid-column: 1;
    grid-row: 1;
    border: 2px dashed #0f6e56;
    border-radius: 10px;
    color: #0f6e56;
    font-size: 11px;
    font-weight: 700;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 6px;
    text-align: center;
    line-height: 1.35;
}
.flow-side {
    grid-column: 3;
    grid-row: 1;
    align-self: end;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 13.5px;
}
.flow-side h3 {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid currentColor;
    font-family: var(--font);
}
.flow-side-appeal {
    background: #f7f0e4;
    border: 2px solid #8a5a24;
    color: #6b4314;
}
.flow-side-appeal p { margin: 0 0 8px; color: #6b4314; }
.flow-side-ongoing {
    background: #eef1f4;
    border: 2px solid #6b7684;
    color: var(--navy);
}
.flow-side-ongoing ul { list-style: none; padding: 0; margin: 0; }
.flow-side-ongoing li {
    padding: 8px 0;
    border-bottom: 1px solid #d5dce6;
    font-weight: 700;
    font-size: 13.5px;
}
.flow-side-ongoing li:last-child { border-bottom: none; }
.flow-step.gate {
    background: #f7f0e4;
    border-color: #8a5a24;
}
.flow-step.gate .n { color: #8a5a24; }
.flow-cycle-2 {
    grid-template-columns: 56px minmax(0, 1fr);
}
.flow-cycle-2 .flow-main { grid-column: 2; }
.flow-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
@media (max-width: 980px) {
    .flow-pair { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .flow-cycle { grid-template-columns: 1fr; }
    .flow-cycle .flow-main, .flow-loop, .flow-side { grid-column: 1; }
    .flow-loop {
        writing-mode: horizontal-tb;
        transform: none;
        padding: 10px 12px;
        margin-bottom: 12px;
    }
    .flow-side { max-width: none; align-self: stretch; margin-top: 12px; }
}
.cookie {
    position: fixed; bottom: 16px; left: 16px; right: 16px;
    max-width: 420px;
    background: var(--navy); color: #d7e3f4;
    padding: 14px 16px; border-radius: 14px; z-index: 90;
    display: none; gap: 12px; align-items: flex-start; justify-content: space-between;
    box-shadow: var(--shadow);
    font-size: 13px;
    flex-direction: column;
}
.cookie.show { display: flex; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

.notice {
    background: #fff8e8; border: 1px solid #ead7a2; color: #6b5310;
    border-radius: 10px; padding: 12px 14px; font-size: 13.5px;
}

/* ---- Product page: journey, stages, reports ---- */
.jump-nav {
    display: flex; flex-wrap: wrap; gap: 8px;
    padding: 12px 0 4px;
}
.jump-nav a {
    font-size: 13px; font-weight: 700; color: var(--navy);
    background: #fff; border: 1px solid var(--line);
    padding: 7px 12px; border-radius: 999px;
}
.jump-nav a:hover { border-color: var(--brand); color: var(--brand); }
.phase-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.phase-card { position: relative; }
.phase-card .phase-n {
    font-size: 11px; font-weight: 800; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--brand); margin-bottom: 8px;
}
.stage-list { display: grid; gap: 0; }
.stage-item {
    display: grid; grid-template-columns: 56px 1fr; gap: 18px;
    padding: 0 0 28px;
}
.stage-item:last-child { padding-bottom: 0; }
.stage-mark {
    display: flex; flex-direction: column; align-items: center;
}
.stage-mark .dot {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--navy); color: #fff;
    font-size: 13px; font-weight: 800;
    display: grid; place-items: center; z-index: 1;
}
.stage-mark .line {
    flex: 1; width: 2px; background: var(--line); min-height: 20px;
}
.stage-item:last-child .line { display: none; }
.stage-body h3 { margin-bottom: 4px; }
.stage-body p { margin: 0; }
.stage-meta { font-size: 12px; font-weight: 700; color: var(--brand); margin-bottom: 4px; }
.report-card .who { font-size: 12.5px; color: var(--muted); margin-top: 10px; font-weight: 600; }
.sim-panel {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 24px;
}
.sim-row { display: grid; grid-template-columns: 160px 1fr 40px; gap: 12px; align-items: center; margin-bottom: 12px; }
.sim-row label { font-size: 13.5px; font-weight: 700; }
.sim-row input[type="range"] { width: 100%; accent-color: var(--brand); }
.sim-result { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.sim-score { font-family: var(--display); font-size: 2.4rem; color: var(--navy); line-height: 1; }
.sim-band { font-weight: 800; font-size: 1.1rem; padding: 8px 12px; border-radius: 8px; display: inline-block; }
.sim-band.danger { background: #fde8e8; color: #9b1c1c; }
.sim-band.warn { background: #faeeda; color: #854f0b; }
.sim-band.ok { background: #e8f6ee; color: #1f7a4d; }
.sim-disclaimer {
    margin-top: 16px; font-size: 12.5px; line-height: 1.5;
    background: #fff8e8; border: 1px solid #ead7a2; color: #6b5310;
    border-radius: 10px; padding: 12px 14px;
}
.role-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

@media (max-width: 980px) {
    .phase-grid { grid-template-columns: 1fr 1fr; }
    .sim-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .phase-grid, .role-grid, .sim-result { grid-template-columns: 1fr; }
}

/* ---- Mobile ---- */
@media (max-width: 980px) {
    .hero-grid, .mod-panel.active, .auth-page, .two-col, .footer-grid { grid-template-columns: 1fr; }
    .grid-4, .grid-5, .grid-3 { grid-template-columns: 1fr 1fr; }
    .stat-strip { grid-template-columns: 1fr; }
    .header-end { display: none; }
    .nav-toggle { display: grid; place-items: center; }
    .header-end.open {
        display: flex; flex-direction: column; align-items: stretch;
        position: absolute; left: 0; right: 0; top: var(--header-h);
        background: #fff; border-bottom: 1px solid var(--line); padding: 12px 24px 20px;
        box-shadow: var(--shadow-sm); margin-left: 0; z-index: 70;
    }
    .header-end.open .nav, .header-end.open .header-actions {
        display: flex; flex-direction: column; align-items: stretch; margin: 0;
    }
    .site-header { position: sticky; }
    .auth-visual { display: none; }
    .product-body { min-height: 220px; }
}
@media (max-width: 640px) {
    .container, .container-wide { width: calc(100% - 32px); }
    .grid-2, .grid-3, .grid-4, .grid-5, .form-row-2 { grid-template-columns: 1fr; }
    .section { padding: 56px 0; }
    .hero { padding: 40px 0 48px; }
    .cookie { flex-direction: column; align-items: stretch; }
}

/* App login / register — same hero + cards language as Expertise */
.auth-hero {
    padding: 56px 0 80px;
    min-height: calc(100vh - var(--header-h));
}
.auth-shell-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1.05fr) minmax(340px, 440px);
    gap: 48px;
    align-items: start;
}
.auth-copy .lede { max-width: 520px; }
.auth-pillars { margin-top: 32px; }
.auth-pillars .card { padding: 20px 22px; }
.auth-pillars .card h3 { margin-bottom: 6px; }
.auth-mount {
    position: sticky;
    top: calc(var(--header-h) + 20px);
    min-height: 420px;
}
.auth-mount .login-container--embed,
.auth-mount .login-page-wrap {
    width: 100%;
    max-width: 100%;
}
.auth-mount .login-theme-row,
.auth-mount .login-footer {
    display: none !important;
}
.auth-mount .login-logo {
    width: 88px !important;
    max-width: 88px !important;
    margin: 0 auto 10px !important;
    padding: 6px !important;
    box-shadow: 0 8px 20px rgba(11, 29, 58, 0.08) !important;
    border-radius: 10px !important;
}
.auth-mount .login-header {
    text-align: center;
    margin-bottom: 18px !important;
}
.auth-mount .login-org-name {
    font-family: var(--display) !important;
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    letter-spacing: -0.02em !important;
}
.auth-mount .login-card {
    border: 1px solid var(--line) !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow) !important;
    padding: 28px 26px 24px !important;
}
@media (max-width: 980px) {
    .auth-shell-grid { grid-template-columns: 1fr; }
    .auth-mount { position: static; }
}
