/* QERP landing — "Nile Light" */
/* fonts self-hosted (Cairo, Reem Kufi, Aref Ruqaa — SIL OFL) */
@font-face { font-family: "Cairo"; font-style: normal; font-display: swap; font-weight: 200 1000; src: url("fonts/cairo-arabic-wght-normal.woff2") format("woff2"); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }
@font-face { font-family: "Cairo"; font-style: normal; font-display: swap; font-weight: 200 1000; src: url("fonts/cairo-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Reem Kufi"; font-style: normal; font-display: swap; font-weight: 400 700; src: url("fonts/reem-kufi-arabic-wght-normal.woff2") format("woff2"); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }
@font-face { font-family: "Reem Kufi"; font-style: normal; font-display: swap; font-weight: 400 700; src: url("fonts/reem-kufi-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Aref Ruqaa"; font-style: normal; font-display: swap; font-weight: 400; src: url("fonts/aref-ruqaa-arabic-400-normal.woff2") format("woff2"); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }
@font-face { font-family: "Aref Ruqaa"; font-style: normal; font-display: swap; font-weight: 700; src: url("fonts/aref-ruqaa-arabic-700-normal.woff2") format("woff2"); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }

:root {
    --ink: #0B2545;
    --ink-2: #4A5B72;
    --ink-3: #7A8AA0;
    --nile: #1D5FA8;
    --nile-d: #164E8C;
    --mist: #E8F1FB;
    --gold: #C29A45;
    --gold-l: #E9D3A0;
    --papyrus: #F4ECDA;
    --base: #F6F8FB;
    --white: #FFFFFF;
    --line: #DCE5F0;
    --ok: #1F8A5B;
    --radius: 22px;
    --shadow-1: 0 1px 2px rgba(11, 37, 69, .06), 0 8px 24px rgba(11, 37, 69, .07);
    --shadow-2: 0 2px 6px rgba(11, 37, 69, .08), 0 24px 60px rgba(11, 37, 69, .14);
    --f-display: "Cairo", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
    --f-logo: "Reem Kufi", "Cairo", sans-serif;
    --f-body: "Cairo", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
    --f-hand: "Aref Ruqaa", "Cairo", serif;
    --wrap: 1200px;
    --header-h: 68px;
    color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    margin: 0;
    background: var(--base);
    color: var(--ink);
    font-family: var(--f-body);
    font-size: 1.0625rem;
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ic { width: 1.15em; height: 1.15em; flex: none; }
.flip { transform: scaleX(-1); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
.skip { position: fixed; top: -60px; right: 16px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

/* ---------- type ---------- */
.display, .h2 { font-family: var(--f-display); font-weight: 800; letter-spacing: 0; color: var(--ink); }
.display { font-size: clamp(2.4rem, 5.4vw, 4.4rem); line-height: 1.25; }
.h2 { font-size: clamp(1.85rem, 3.6vw, 2.9rem); line-height: 1.35; }
.display em, .h2 em { font-style: normal; color: var(--nile); position: relative; }
.display em::after {
    content: ""; position: absolute; inset-inline: 0; bottom: .02em; height: .14em;
    background: linear-gradient(90deg, transparent, var(--gold) 15%, var(--gold) 85%, transparent);
    border-radius: 99px; opacity: .55; transform-origin: right; transform: scaleX(var(--ul, 1));
}
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-2); line-height: 1.9; max-width: 38em; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .92rem; font-weight: 700; color: var(--nile); margin-bottom: 14px; }
.eyebrow-line { width: 28px; height: 2px; background: var(--gold); border-radius: 2px; }
.eyebrow-light { color: var(--gold-l); }

/* word split */
.split .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; will-change: transform; }

/* ---------- buttons ---------- */
.btn {
    --bg: var(--white); --fg: var(--ink); --bd: var(--line);
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 10px 22px; border-radius: 999px;
    background: var(--bg); color: var(--fg); border: 1px solid var(--bd);
    font-weight: 700; font-size: 1rem; line-height: 1.2; white-space: nowrap;
    transition: background .25s, color .25s, border-color .25s, box-shadow .25s, transform .25s;
}
.btn:hover { box-shadow: var(--shadow-1); }
.btn-primary { --bg: var(--nile); --fg: #fff; --bd: var(--nile); box-shadow: 0 10px 24px -10px rgba(29, 95, 168, .7); }
.btn-primary:hover { --bg: var(--nile-d); --bd: var(--nile-d); }
.btn-gold { --bg: var(--gold); --fg: var(--ink); --bd: var(--gold); }
.btn-gold:hover { --bg: #D3AE5C; }
.btn-ghost { --bg: rgba(255, 255, 255, .7); }
.btn-ghost:hover { --bd: var(--nile); --fg: var(--nile); }
.btn-ghost-light { --bg: transparent; --fg: #fff; --bd: rgba(255, 255, 255, .35); }
.btn-ghost-light:hover { --bd: var(--gold-l); --fg: var(--gold-l); }
.btn-sm { min-height: 42px; padding: 8px 18px; font-size: .95rem; }
.btn-lg { min-height: 56px; padding: 12px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.play-dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--mist); color: var(--nile); margin-inline-start: -8px; }
.play-dot .ic { width: 14px; height: 14px; transform: scaleX(-1); }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--nile); font-weight: 700; }
.text-link .ic { transition: transform .25s; }
.text-link:hover .ic { transform: translateX(-4px); }
.text-link.inline { display: inline; }

/* ---------- announce + header ---------- */
.announce { background: var(--ink); color: #DCE6F3; font-size: .9rem; text-align: center; padding: 9px 16px; line-height: 1.6; }
.announce a { color: var(--gold-l); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; margin-inline-start: 6px; white-space: nowrap; }
.announce .ic { width: 1em; height: 1em; }
.announce-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); margin-inline-end: 8px; vertical-align: middle; box-shadow: 0 0 0 0 rgba(194, 154, 69, .7); animation: ping 2.2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(194, 154, 69, 0); } 100% { box-shadow: 0 0 0 0 rgba(194, 154, 69, 0); } }

.site-header { position: sticky; top: 0; z-index: 50; transition: background .3s, box-shadow .3s, border-color .3s; border-bottom: 1px solid transparent; }
.site-header.is-scrolled { background: rgba(246, 248, 251, .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-color: rgba(220, 229, 240, .9); }
.header-row { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand-mark { width: 34px; height: 34px; color: var(--nile); }
.brand-word { font-family: var(--f-logo); font-weight: 700; font-size: 1.55rem; letter-spacing: .04em; line-height: 1; }
.brand-light { color: #fff; }
.brand-light .brand-mark { color: var(--gold-l); }
.nav { display: flex; gap: 26px; margin-inline-start: 18px; }
.nav > a { font-weight: 600; color: var(--ink-2); position: relative; padding: 6px 0; transition: color .2s; }
.nav > a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .3s; transform-origin: right; }
.nav > a:hover { color: var(--ink); }
.nav > a:hover::after { transform: scaleX(1); }
.nav-actions-mobile { display: none; }
.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 18px; }
.link-login { font-weight: 700; color: var(--ink); }
.link-login:hover { color: var(--nile); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; place-items: center; }
.menu-btn .ic { width: 22px; height: 22px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(28px, 5vw, 64px) 0 clamp(64px, 8vw, 110px); overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-glow { position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 980px; max-height: 980px; background: radial-gradient(closest-side, rgba(29, 95, 168, .14), transparent 70%); }
.hero-glow::after { content: ""; position: absolute; left: -40%; top: 55%; width: 60%; height: 60%; background: radial-gradient(closest-side, rgba(194, 154, 69, .16), transparent 70%); }
.hero-lines { position: absolute; inset: auto 0 0 0; width: 100%; height: 60%; }
.hero-lines path { fill: none; stroke: rgba(29, 95, 168, .12); stroke-width: 1.4; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(32px, 5vw, 72px); }
.hero-lead { margin-top: 22px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-ctas.center { justify-content: center; }
.hero-proof { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ink-2); font-size: .95rem; font-weight: 600; }
.hero-proof li { display: inline-flex; align-items: center; gap: 7px; }
.hero-proof .ic { color: var(--ok); }

.hero-visual { position: relative; display: flex; justify-content: center; }
.arch-stage { position: relative; width: min(440px, 82vw); aspect-ratio: 460 / 580; }
.arch {
    position: absolute; inset: 0; overflow: hidden;
    border-radius: 50% 50% 26px 26px / 38% 38% 26px 26px;
    box-shadow: var(--shadow-2), 0 0 0 10px rgba(255, 255, 255, .8), 0 0 0 11px var(--line);
    background: var(--mist);
    transform: translateZ(0);
}
.arch .nile-scene, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-video { opacity: 0; transition: opacity 1s ease; }
.hero-video.is-playing, .hero-video[poster] { opacity: 1; }
.arch-inner { position: absolute; inset: 14px; border: 1px solid rgba(194, 154, 69, .75); border-radius: inherit; pointer-events: none; mix-blend-mode: multiply; }
.nile-scene .felucca { animation: drift 26s ease-in-out infinite alternate; }
.nile-scene .shimmer path { animation: shimmer 5s ease-in-out infinite; }
.nile-scene .shimmer path:nth-child(2n) { animation-delay: -1.7s; animation-duration: 6.5s; }
.nile-scene .shimmer path:nth-child(3n) { animation-delay: -3.1s; }
.nile-scene .sun-glow { transform-origin: 320px 345px; animation: breathe 7s ease-in-out infinite; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(190px); } }
@keyframes shimmer { 0%, 100% { transform: translateX(0); opacity: .25; } 50% { transform: translateX(-14px); opacity: .9; } }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.12); opacity: 1; } }

.seal { position: absolute; width: 112px; height: 112px; top: 6%; left: -34px; z-index: 3; filter: drop-shadow(0 12px 22px rgba(11, 37, 69, .28)); }
.seal svg { width: 100%; height: 100%; }
.seal svg > text, .seal svg > circle:nth-child(3) { transform-origin: 60px 60px; }
.seal-text { font-family: var(--f-body); font-size: 10.4px; font-weight: 700; fill: var(--gold-l); letter-spacing: .3px; transform-origin: 60px 60px; animation: spin 26s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.float-card {
    position: absolute; z-index: 4; display: flex; align-items: center; gap: 12px;
    background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(220, 229, 240, .9); border-radius: 16px; padding: 11px 14px 11px 18px;
    box-shadow: var(--shadow-2); min-width: 220px; max-width: 310px; line-height: 1.45;
    animation: float 6s ease-in-out infinite;
}
.float-card b { display: block; font-size: .95rem; }
.float-card small { display: block; color: var(--ink-2); font-size: .8rem; }
.fc-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.fc-ic .ic { width: 20px; height: 20px; }
.fc-blue { background: var(--mist); color: var(--nile); }
.fc-gold { background: #F6EBD3; color: #9A7631; }
.fc-green { background: #E1F3EA; color: var(--ok); }
.fc-1 { top: 12%; right: -22%; }
.fc-2 { top: 44%; left: -26%; animation-delay: -2s; }
.fc-3 { bottom: 13%; right: -16%; animation-delay: -4s; }
.fc-4 { bottom: -4%; left: -8%; animation-delay: -1s; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* ---------- marquee ---------- */
.marquee { background: var(--ink); color: #fff; padding: 18px 0; overflow: hidden; position: relative; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 12%; z-index: 2; pointer-events: none; }
.marquee::before { right: 0; background: linear-gradient(to left, var(--ink), transparent); }
.marquee::after { left: 0; background: linear-gradient(to right, var(--ink), transparent); }
.marquee-row { display: flex; overflow: hidden; }
.marquee-row + .marquee-row { margin-top: 6px; }
.marquee-track { display: flex; align-items: center; gap: 22px; flex: none; padding-inline-end: 22px; animation: marquee 48s linear infinite; white-space: nowrap; }
.marquee-rev .marquee-track { animation-direction: reverse; animation-duration: 60s; }
.marquee-row:first-child span { font-family: var(--f-display); font-size: clamp(1.25rem, 2.2vw, 1.7rem); font-weight: 600; }
.marquee-rev span { font-size: 1rem; color: #A9BBD3; font-weight: 600; }
.marquee i { font-style: normal; color: var(--gold); font-size: .8rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-head { margin-bottom: clamp(36px, 5vw, 56px); max-width: 760px; }
.section-head .lead { margin-top: 16px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }

/* ---------- before / after ---------- */
.compare {
    position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-2);
    aspect-ratio: 16 / 10; width: 100%; background: #fff; user-select: none;
    border: 1px solid var(--line);
}
.compare-after img, .before-photo { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.compare-after { position: absolute; inset: 0; }
.compare-before { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); background: var(--papyrus); }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: var(--gold); transform: translateX(-1px); pointer-events: none; z-index: 3; }
.compare-handle span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: var(--gold-l); display: flex; align-items: center; justify-content: center; gap: 0; box-shadow: 0 0 0 6px rgba(194, 154, 69, .35), var(--shadow-2); }
.compare-handle .ic { width: 16px; height: 16px; }
.compare-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; z-index: 4; margin: 0; direction: ltr; }
.compare-range:focus-visible + .compare-tag, .compare:focus-within .compare-handle span { outline: 3px solid var(--gold); outline-offset: 3px; }
.compare-tag { position: absolute; top: 16px; z-index: 5; font-weight: 700; font-size: .85rem; padding: 4px 14px; border-radius: 99px; pointer-events: none; }
.tag-before { right: 16px; background: rgba(11, 37, 69, .82); color: var(--papyrus); }
.tag-after { left: 16px; background: var(--nile); color: #fff; }

.paper {
    position: absolute; inset: 0; padding: clamp(28px, 6%, 64px) clamp(28px, 7%, 80px);
    background:
        radial-gradient(120% 90% at 80% 10%, rgba(255, 255, 255, .55), transparent 60%),
        repeating-linear-gradient(to bottom, transparent 0 calc(2.6em - 1px), rgba(29, 95, 168, .18) calc(2.6em - 1px) 2.6em),
        var(--papyrus);
    font-family: var(--f-hand); color: #2A3B55; font-size: clamp(1rem, 2.3vw, 1.75rem); line-height: 2.6em;
}
.paper::before { content: ""; position: absolute; top: 0; bottom: 0; right: clamp(18px, 5%, 56px); width: 2px; background: rgba(176, 58, 46, .35); }
.paper-head { font-weight: 700; color: var(--ink); font-size: 1.15em; }
.hand { list-style: none; padding: 0; margin: 0; }
.hand li:nth-child(2) { transform: rotate(-1deg); color: #A0412E; }
.hand li:nth-child(4) { transform: rotate(.6deg); }
.hand s { text-decoration-color: #A0412E; text-decoration-thickness: 2px; }
.sticky-note {
    position: absolute; left: 8%; bottom: 10%; width: min(220px, 34%); padding: 18px 16px; line-height: 1.6;
    background: #F7DE84; color: #5A3C0B; transform: rotate(-5deg); font-size: .9em;
    box-shadow: 0 12px 20px rgba(60, 40, 0, .18);
}
.coffee { position: absolute; left: 30%; top: 12%; width: 120px; height: 120px; border-radius: 50%; border: 9px solid rgba(124, 79, 37, .18); box-shadow: inset 0 0 0 3px rgba(124, 79, 37, .08); transform: rotate(10deg) scaleY(.95); }

.ba-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 40px; margin-top: 28px; }
.chip-col { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-col:last-child { justify-content: flex-end; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 99px; font-weight: 600; font-size: .95rem; }
.chip-pain { background: var(--papyrus); color: #7A5520; border: 1px dashed rgba(122, 85, 32, .35); text-decoration: line-through; text-decoration-color: rgba(160, 65, 46, .55); }
.chip-gain { background: var(--mist); color: var(--nile-d); }
.chip-gain .ic { color: var(--ok); }

/* ---------- journey ---------- */
.journey { background: linear-gradient(180deg, var(--base), #fff 30%, #fff 70%, var(--base)); }
.journey-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.journey-stage { order: 2; position: sticky; top: calc(var(--header-h) + 28px); }
.journey-frame { background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-2); overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #FBFCFE; direction: ltr; }
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: #E2E8F0; }
.browser-bar em { font-style: normal; margin-inline-start: auto; font-size: .78rem; color: var(--ink-3); background: var(--base); padding: 2px 14px; border-radius: 99px; direction: rtl; }
.journey-screens { position: relative; aspect-ratio: 1400 / 1098; background: var(--base); }
.jshot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transform: scale(1.02); transition: opacity .6s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.jshot.is-active { opacity: 1; transform: none; }
.jshot-phone { display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, var(--mist), var(--base) 70%); }
.jshot-phone .phone { height: 88%; width: auto; aspect-ratio: 600 / 1298; }
.journey-progress { margin-top: 18px; height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; }
.journey-progress span { display: block; height: 100%; width: calc((var(--p, 0) + 1) / 8 * 100%); background: linear-gradient(90deg, var(--gold), var(--nile)); border-radius: 4px; transition: width .5s ease; margin-inline-start: 0; }
.journey-steps { list-style: none; margin: 0; padding: 0; }
.jstep { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 30px 0; min-height: 40vh; align-content: center; opacity: .38; transition: opacity .4s; border-top: 1px solid var(--line); }
.jstep:first-child { border-top: 0; }
.jstep.is-active { opacity: 1; }
.jstep-num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: 1.1rem; background: #fff; border: 1px solid var(--line); color: var(--ink-2); transition: background .3s, color .3s, border-color .3s; }
.jstep.is-active .jstep-num { background: var(--ink); color: var(--gold-l); border-color: var(--ink); }
.jstep-k { color: var(--gold); font-weight: 700; font-size: .9rem; }
.jstep h3 { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.35; margin: 2px 0 8px; }
.jstep p:not(.jstep-k) { color: var(--ink-2); }
.jstep-shot { display: none; }

.phone { background: var(--ink); padding: 8px; border-radius: 30px; box-shadow: var(--shadow-2); }
.phone img { border-radius: 23px; width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tile {
    position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px; transition: border-color .3s, transform .3s, box-shadow .3s;
}
.tile:hover { border-color: #C6D6EA; box-shadow: var(--shadow-1); }
.tile h3 { font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; margin: 14px 0 6px; line-height: 1.35; }
.tile p { color: var(--ink-2); font-size: .98rem; line-height: 1.8; }
.tile-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--mist); color: var(--nile); }
.tile-ic .ic { width: 24px; height: 24px; }
.tile-hero { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; background: linear-gradient(160deg, #fff 40%, var(--mist)); padding-bottom: 0; }
.tile-hero h3 { font-size: 1.7rem; }
.tile-shot { margin-top: 22px; margin-inline-end: -26px; flex: 1; min-height: 200px; border-radius: 16px 0 0 0; overflow: hidden; border: 1px solid var(--line); border-bottom: 0; border-left: 0; box-shadow: var(--shadow-1); }
[dir="rtl"] .tile-shot { border-radius: 0 16px 0 0; border-left: 1px solid var(--line); border-right: 0; margin-inline-end: 0; margin-inline-start: 0; margin-left: -26px; }
.tile-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top right; }
.tile-wide { grid-column: span 2; display: grid; grid-template-columns: 1.2fr 1fr; gap: 6px 24px; align-items: center; }
.tile-wide > .tile-ic, .tile-wide > h3, .tile-wide > p { grid-column: 1; }
.mini-invoice { grid-column: 2; grid-row: 1 / span 3; background: var(--base); border: 1px dashed #C6D6EA; border-radius: 14px; padding: 14px 16px; font-size: .9rem; }
.mini-invoice div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; color: var(--ink-2); }
.mini-invoice b { color: var(--ink); font-variant-numeric: tabular-nums; }
.mini-invoice .mi-total { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 10px; font-weight: 700; color: var(--ink); }
.mini-invoice .mi-total b { color: var(--nile); font-size: 1.05rem; }
.spot::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s;
    background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(194, 154, 69, .14), transparent 60%);
}
.spot:hover::before { opacity: 1; }

/* ---------- roles ---------- */
.roles { background: #fff; }
.roles-box { background: var(--base); border: 1px solid var(--line); border-radius: 28px; padding: clamp(18px, 3vw, 32px); }
.role-tabs { position: relative; display: inline-flex; gap: 4px; padding: 5px; background: #fff; border: 1px solid var(--line); border-radius: 99px; margin-bottom: clamp(22px, 3vw, 34px); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.role-tabs::-webkit-scrollbar { display: none; }
.role-tabs button { position: relative; z-index: 1; border: 0; background: none; padding: 10px 22px; border-radius: 99px; font-weight: 700; color: var(--ink-2); white-space: nowrap; transition: color .3s; }
.role-tabs button[aria-selected="true"] { color: #fff; }
.role-ink { position: absolute; z-index: 0; top: 5px; bottom: 5px; border-radius: 99px; background: var(--ink); transition: left .4s cubic-bezier(.2, .7, .2, 1), width .4s cubic-bezier(.2, .7, .2, 1); }
.role-panel { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.role-panel[hidden] { display: none; }
.role-copy h3 { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.3; }
.role-copy ul { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 12px; }
.role-copy li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.role-copy li .ic { color: var(--ok); margin-top: .35em; }
.role-shot img { border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.role-shot.is-phone { display: flex; justify-content: center; background: radial-gradient(circle at 50% 50%, var(--mist), transparent 70%); padding: 10px 0; }
.role-shot.is-phone .phone { width: min(250px, 60%); }
.role-shot.is-phone .phone img { border: 0; box-shadow: none; }
.role-panel.is-entering .role-shot, .role-panel.is-entering .role-copy { animation: rise .55s cubic-bezier(.2, .7, .2, 1) both; }
.role-panel.is-entering .role-copy { animation-delay: .05s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ---------- courts ---------- */
.courts { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.courts::before { content: ""; position: absolute; width: 640px; height: 820px; left: -180px; top: -120px; border: 1px solid rgba(194, 154, 69, .25); border-radius: 999px 999px 0 0 / 50% 50% 0 0; pointer-events: none; }
.courts::after { content: ""; position: absolute; width: 520px; height: 700px; left: -120px; top: -40px; border: 1px solid rgba(194, 154, 69, .14); border-radius: 999px 999px 0 0 / 50% 50% 0 0; pointer-events: none; }
.courts .h2 { color: #fff; }
.courts .h2 em { color: var(--gold-l); }
.courts .lead { color: #B7C6DA; margin-top: 16px; }
.courts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; position: relative; z-index: 1; }
.docket { background: var(--papyrus); color: var(--ink); border-radius: 20px; padding: clamp(22px, 3vw, 34px); box-shadow: 0 30px 60px rgba(0, 0, 0, .3); position: relative; }
.docket::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(194, 154, 69, .5); border-radius: 14px; pointer-events: none; }
.docket-row { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px dashed rgba(11, 37, 69, .18); font-weight: 600; }
.docket-k { color: #9A7631; font-family: var(--f-display); }
.docket-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.docket-chips span { background: #fff; border: 1px solid rgba(11, 37, 69, .1); padding: 4px 12px; border-radius: 99px; font-size: .88rem; font-weight: 600; color: var(--nile-d); }
.docket-note { margin-top: 16px; font-size: .8rem; color: #8A7A5C; }

/* ---------- numbers ---------- */
.numbers { padding: clamp(56px, 7vw, 88px) 0; }
.numbers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.num { padding: 26px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.num b { display: flex; align-items: baseline; font-family: var(--f-display); font-weight: 700; font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1.1; color: var(--nile); font-variant-numeric: tabular-nums; }
.num b small { font-size: .55em; color: var(--gold); margin-inline-start: 2px; }
.num > span { display: block; color: var(--ink-2); margin-top: 6px; font-weight: 600; }

/* ---------- pricing ---------- */
.billing-toggle { display: inline-flex; gap: 4px; padding: 5px; margin-top: 26px; border-radius: 99px; background: #fff; border: 1px solid var(--line); }
.billing-toggle button { border: 0; background: none; padding: 9px 22px; border-radius: 99px; font-weight: 700; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; }
.billing-toggle button[aria-checked="true"] { background: var(--ink); color: #fff; }
.save { font-size: .74rem; background: var(--gold); color: var(--ink); padding: 1px 9px; border-radius: 99px; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 30px 24px 24px; }
.plan h3 { font-family: var(--f-display); font-weight: 700; font-size: 1.35rem; }
.plan-desc { color: var(--ink-2); font-size: .93rem; line-height: 1.75; margin-top: 8px; min-height: 5.25em; }
.plan-price { margin: 18px 0 18px; min-height: 3.2rem; }
.plan-price b { font-family: var(--f-display); font-size: 2.3rem; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.plan-price small { font-family: var(--f-body); font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.p-yearly { display: none; }
.plans[data-billing-state="yearly"] .p-monthly { display: none; }
.plans[data-billing-state="yearly"] .p-yearly { display: inline; }
.plan-list { list-style: none; padding: 18px 0 0; margin: 0 0 24px; border-top: 1px solid var(--line); display: grid; gap: 9px; font-size: .95rem; flex: 1; align-content: start; }
.plan-list li { display: flex; gap: 9px; align-items: center; }
.plan-list .ic { color: var(--ok); }
.plan-list li.off { color: var(--ink-3); }
.plan-list li.off .ic { color: #B6C2D2; }
.plan.is-popular { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: var(--shadow-2); transform: translateY(-10px); }
.plan.is-popular .plan-desc, .plan.is-popular .plan-price small { color: #B7C6DA; }
.plan.is-popular .plan-list { border-color: rgba(255, 255, 255, .14); }
.plan.is-popular .plan-list .ic { color: var(--gold-l); }
.plan.is-popular .plan-list li.off { color: #7F93AE; }
.plan.is-popular .btn-primary { --bg: var(--gold); --fg: var(--ink); --bd: var(--gold); box-shadow: none; }
.plan-badge { position: absolute; top: -13px; right: 24px; background: var(--gold); color: var(--ink); font-weight: 700; font-size: .8rem; padding: 3px 14px; border-radius: 99px; }
.pricing-note { text-align: center; color: var(--ink-3); font-size: .92rem; margin-top: 30px; }

/* ---------- security ---------- */
.security { background: #fff; }
.sec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.sec-card { padding: 26px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--base); }
.sec-card > .ic { width: 30px; height: 30px; color: var(--gold); }
.sec-card h3 { font-family: var(--f-display); font-weight: 700; font-size: 1.2rem; margin: 14px 0 6px; }
.sec-card p { color: var(--ink-2); font-size: .96rem; line-height: 1.8; }

/* ---------- faq ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 28px); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-weight: 700; font-size: 1.1rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--mist); color: var(--nile); font-size: 1.3rem; font-weight: 600; transition: transform .3s, background .3s, color .3s; }
.faq-list details[open] summary::after { transform: rotate(45deg); background: var(--ink); color: var(--gold-l); }
.faq-list details p { color: var(--ink-2); padding: 0 0 22px; max-width: 46em; }

/* ---------- final ---------- */
.final { padding: 0 0 clamp(72px, 9vw, 120px); }
.final-arch {
    position: relative; overflow: hidden; text-align: center; color: #fff;
    background: radial-gradient(80% 70% at 50% 100%, rgba(29, 95, 168, .55), transparent 70%), var(--ink);
    border-radius: 50% 50% 32px 32px / 260px 260px 32px 32px;
    padding: clamp(96px, 12vw, 150px) clamp(20px, 6vw, 80px) clamp(56px, 7vw, 80px);
}
.final-arch::before { content: ""; position: absolute; inset: 16px; border: 1px solid rgba(194, 154, 69, .45); border-radius: inherit; pointer-events: none; }
.final-arch .h2 { color: #fff; }
.final-arch .h2 em { color: var(--gold-l); }
.final-arch .lead { color: #B7C6DA; margin: 16px auto 0; }

/* ---------- footer ---------- */
.footer { background: #071A33; color: #A9BBD3; padding: clamp(56px, 7vw, 80px) 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr .8fr 1.4fr; gap: 36px; }
.footer h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer nav { display: flex; flex-direction: column; gap: 8px; }
.footer nav a:hover { color: var(--gold-l); }
.footer-brand p { margin-top: 14px; max-width: 30em; line-height: 1.9; }
.newsletter p { line-height: 1.8; }
.newsletter form { display: flex; gap: 8px; margin-top: 14px; }
.newsletter input { flex: 1; min-width: 0; min-height: 48px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .15); background: rgba(255, 255, 255, .06); color: #fff; padding: 0 18px; font: inherit; text-align: right; }
.newsletter input::placeholder { color: #7F93AE; }
.newsletter input:focus { outline: none; border-color: var(--gold); }
.form-msg { margin-top: 10px; font-weight: 600; }
.form-msg.ok { color: #7FD3A8; }
.form-msg.err { color: #F2A38F; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 48px; padding-top: 22px; font-size: .88rem; }
.to-top:hover { color: var(--gold-l); }

/* ---------- reveal (JS adds) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); }
.js.no-motion [data-reveal], .js.reveal-fallback [data-reveal] { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1320px) {
    .fc-1 { right: -10%; }
    .fc-2 { left: -14%; }
    .fc-3 { right: -8%; }
    .seal { left: -14px; }
}
@media (max-width: 1024px) {
    .nav { display: none; }
    .menu-btn { display: grid; }
    .link-login { display: none; }
    .site-header.menu-open .nav {
        display: flex; flex-direction: column; gap: 4px; position: absolute; top: 100%; inset-inline: 16px; margin: 0;
        background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 14px; box-shadow: var(--shadow-2);
    }
    .site-header.menu-open .nav > a { padding: 12px 10px; border-radius: 10px; }
    .site-header.menu-open .nav > a::after { display: none; }
    .site-header.menu-open .nav > a:hover { background: var(--base); }
    .site-header.menu-open .nav-actions-mobile { display: flex; gap: 10px; padding-top: 10px; margin-top: 6px; border-top: 1px solid var(--line); }
    .nav-actions-mobile .btn { flex: 1; }
    .site-header.menu-open { background: rgba(246, 248, 251, .96); }

    .hero-grid { grid-template-columns: 1fr; }
    .hero-copy { text-align: center; }
    .hero-copy .lead { margin-inline: auto; }
    .hero-ctas, .hero-proof { justify-content: center; }
    .hero-visual { margin-top: 24px; }
    .arch-stage { width: min(400px, 74vw); }

    .journey-grid { grid-template-columns: 1fr; }
    .journey-stage { display: none; }
    .jstep { opacity: 1; min-height: 0; }
    .jstep-shot { display: block; margin-top: 18px; }
    .jstep-shot img { border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow-1); }
    .jstep-shot.is-phone .phone { width: min(220px, 60%); }
    .jstep-shot.is-phone .phone img { border: 0; box-shadow: none; }

    .bento { grid-template-columns: repeat(2, 1fr); }
    .numbers-grid, .sec-grid { grid-template-columns: repeat(2, 1fr); }
    .plans { grid-template-columns: repeat(2, 1fr); }
    .plan.is-popular { transform: none; }
    .courts-grid, .faq-grid, .role-panel { grid-template-columns: 1fr; }
    .faq-grid .section-head { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    body { font-size: 1rem; }
    .announce { font-size: .82rem; }
    .header-actions .btn-sm { display: none; }
    .hero { padding-top: 20px; }
    .btn-lg { width: 100%; }
    .arch-stage { width: min(330px, 78vw); }
    .float-card { min-width: 0; max-width: 210px; padding: 8px 10px 8px 12px; gap: 9px; border-radius: 13px; }
    .float-card b { font-size: .82rem; }
    .float-card small { font-size: .7rem; }
    .fc-ic { width: 30px; height: 30px; border-radius: 9px; }
    .fc-ic .ic { width: 16px; height: 16px; }
    .fc-1 { top: 6%; right: -12%; }
    .fc-2 { display: none; }
    .fc-3 { bottom: 16%; right: -10%; }
    .fc-4 { bottom: -5%; left: -8%; }
    .seal { width: 84px; height: 84px; left: -12px; top: 30%; }
    .compare { aspect-ratio: 4 / 5; }
    .paper { font-size: 1rem; }
    .sticky-note { width: 46%; font-size: .85em; padding: 12px; }
    .coffee { width: 80px; height: 80px; left: 6%; top: 50%; }
    .ba-chips { grid-template-columns: 1fr; }
    .chip-col:last-child { justify-content: flex-start; }
    .bento, .plans, .numbers-grid, .sec-grid, .footer-grid { grid-template-columns: 1fr; }
    .tile-hero, .tile-wide { grid-column: auto; grid-row: auto; }
    .tile-wide { grid-template-columns: 1fr; }
    .mini-invoice { grid-column: 1; grid-row: auto; margin-top: 10px; }
    .tile-shot { min-height: 180px; max-height: 240px; }
    .docket-row { grid-template-columns: 1fr; gap: 0; }
    .final-arch { border-radius: 200px 200px 24px 24px / 120px 120px 24px 24px; }
    .footer-bottom { flex-direction: column; }
    .newsletter form { flex-direction: column; }
}

@media (hover: none) {
    .spot::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    .marquee-track { animation: none; }
}

/* ---------- nav "soon" ---------- */
.nav-soon { font-size: .62rem; font-weight: 800; color: #9A7631; background: #F6EBD3; border-radius: 99px; padding: 1px 7px; margin-inline-start: 4px; vertical-align: 2px; }

/* ---------- a day at the firm ---------- */
.day { background: #fff; }
.day-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: d; }
.day-card { position: relative; background: var(--base); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; transition: transform .35s, box-shadow .35s; }
.day-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.day-card figure { margin: 0; position: relative; aspect-ratio: 4 / 3.2; overflow: hidden; }
.day-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.day-card:hover img { transform: scale(1.06); }
.day-card figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(11, 37, 69, .55)); }
.day-time { position: absolute; z-index: 1; top: 12px; inset-inline-start: 12px; background: rgba(11, 37, 69, .82); color: #E9D3A0; font-weight: 800; font-size: .9rem; padding: 4px 12px; border-radius: 99px; backdrop-filter: blur(6px); }
.day-copy { padding: 16px 18px 20px; }
.day-copy h3 { font-family: var(--f-display); font-weight: 800; font-size: 1.15rem; }
.day-copy p { color: var(--ink-2); font-size: .93rem; line-height: 1.8; margin-top: 6px; }
.day-card:not(:last-child)::after { content: ""; position: absolute; top: calc(50% - 30px); inset-inline-end: -14px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(194, 154, 69, .2); z-index: 2; }

/* ---------- role portraits ---------- */
.tab-ava { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; display: inline-block; vertical-align: middle; margin-inline-end: 8px; box-shadow: 0 0 0 2px #fff; }
.role-tabs button { display: inline-flex; align-items: center; }
.role-person { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.role-portrait { position: relative; width: 74px; height: 74px; flex: none; border-radius: 50%; box-shadow: 0 0 0 3px var(--gold), 0 14px 30px rgba(11, 37, 69, .2); }
.role-portrait img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.role-portrait::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid rgba(194, 154, 69, .6); animation: pulse-ring 2.6s ease-out infinite; }
@keyframes pulse-ring { 0% { transform: scale(1); opacity: .9; } 70%, 100% { transform: scale(1.35); opacity: 0; } }
.role-person b { display: block; font-size: 1.1rem; font-weight: 800; }
.role-person small { color: var(--ink-3); font-weight: 600; }
.role-panel.is-entering .role-portrait { animation: rise .55s cubic-bezier(.2, .9, .3, 1.3) both; }

/* ---------- academy (coming soon) ---------- */
.academy { background: radial-gradient(90% 70% at 85% 0%, #164E8C, var(--ink) 55%, #071A33); color: #fff; position: relative; overflow: hidden; }
.academy::before { content: ""; position: absolute; width: 760px; height: 960px; inset-inline-start: -260px; top: -200px; border: 1px solid rgba(194, 154, 69, .2); border-radius: 50% 50% 0 0 / 40% 40% 0 0; pointer-events: none; }
.academy .wrap { position: relative; z-index: 1; }
.academy .h2 { color: #fff; }
.academy .h2 em { color: var(--gold-l); }
.academy .lead { color: #B7C6DA; margin-top: 16px; }
.soon-pill { background: var(--gold); color: var(--ink); font-size: .78rem; font-weight: 800; padding: 2px 10px; border-radius: 99px; }
.academy-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.academy-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 26px; }
.academy-note { color: #9FB3CF; font-size: .9rem; }
.academy-visual { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.cert { position: relative; width: min(380px, 100%); background: linear-gradient(160deg, #FBF7EE, var(--papyrus)); color: var(--ink); border-radius: 18px; padding: 24px 24px 20px; box-shadow: 0 30px 70px rgba(0, 0, 0, .4); transform: rotate(-2.5deg); }
.cert::before { content: ""; position: absolute; inset: 9px; border: 1px solid rgba(194, 154, 69, .6); border-radius: 12px; pointer-events: none; }
.cert-top { display: flex; align-items: center; gap: 10px; color: #9A7631; font-weight: 800; font-size: .9rem; }
.cert-mark { width: 30px; height: 30px; color: var(--nile); }
.cert-name { font-size: 1.3rem; font-weight: 800; line-height: 1.5; margin-top: 14px; }
.cert-meta { color: var(--ink-2); font-size: .9rem; margin-top: 4px; }
.cert-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; margin-top: 18px; padding-top: 14px; border-top: 1px dashed rgba(11, 37, 69, .2); }
.cert-foot small { display: block; color: var(--ink-3); font-size: .75rem; font-weight: 700; }
.cert-foot b { font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.cert-qr { width: 72px; height: 72px; background: #fff; padding: 4px; border-radius: 8px; }
.cert-check { position: absolute; bottom: -14px; inset-inline-start: 22px; display: inline-flex; align-items: center; gap: 6px; background: var(--ok); color: #fff; font-size: .8rem; font-weight: 800; padding: 5px 12px; border-radius: 99px; box-shadow: 0 8px 18px rgba(31, 138, 91, .4); }
.agent-bubble { position: relative; order: -1; align-self: flex-end; max-width: 300px; display: flex; gap: 10px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 12px 14px; border-radius: 16px; font-size: .85rem; line-height: 1.7; color: #DCE6F3; animation: float 6s ease-in-out infinite; }
.agent-bubble b { color: var(--gold-l); }
.agent-bubble em { display: block; font-style: normal; color: #9FB3CF; font-size: .8rem; }
.agent-dot { flex: none; width: 10px; height: 10px; margin-top: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(194, 154, 69, .7); animation: ping 2.2s infinite; }
.academy-flow { list-style: none; padding: 0; margin: clamp(40px, 6vw, 64px) 0 0; display: grid; grid-template-columns: repeat(8, 1fr); gap: 0; counter-reset: f; }
.academy-flow li { counter-increment: f; position: relative; text-align: center; font-size: .86rem; font-weight: 700; color: #DCE6F3; padding: 46px 6px 0; line-height: 1.55; }
.academy-flow li::before { content: counter(f); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #0B2545; border: 1.5px solid var(--gold); color: var(--gold-l); font-weight: 800; z-index: 1; }
.academy-flow li::after { content: ""; position: absolute; top: 16px; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, rgba(194, 154, 69, .15), rgba(194, 154, 69, .6), rgba(194, 154, 69, .15)); }
.academy-flow li:nth-child(3)::before { background: var(--gold); color: var(--ink); }
.academy-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(36px, 5vw, 56px); }
.a-card { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: 20px; padding: 22px; transition: background .3s, border-color .3s; }
.a-card:hover { background: rgba(255, 255, 255, .08); border-color: rgba(233, 211, 160, .35); }
.a-card > .ic { width: 28px; height: 28px; color: var(--gold-l); }
.a-card h3 { font-weight: 800; font-size: 1.12rem; margin: 12px 0 6px; }
.a-card p { color: #B7C6DA; font-size: .93rem; line-height: 1.8; }
.agents { margin-top: 18px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(233, 211, 160, .25); border-radius: 22px; padding: clamp(20px, 3vw, 32px); display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; }
.agents-head h3 { font-weight: 800; font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.45; }
.agents-head h3 span { color: var(--gold-l); display: block; }
.agents-head p { color: #B7C6DA; margin-top: 12px; font-size: .95rem; line-height: 1.9; }
.agents-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.agents-list li { background: rgba(7, 26, 51, .5); border-radius: 14px; padding: 12px 14px; border-inline-start: 3px solid var(--gold); }
.agents-list b { display: block; font-size: .95rem; color: #fff; }
.agents-list span { display: block; color: #9FB3CF; font-size: .84rem; line-height: 1.7; margin-top: 2px; }
.agents-list li:last-child { grid-column: 1 / -1; }

@media (max-width: 1024px) {
    .day-strip { grid-template-columns: repeat(2, 1fr); }
    .day-card::after { display: none; }
    .academy-grid, .agents { grid-template-columns: 1fr; }
    .academy-flow { grid-template-columns: repeat(4, 1fr); row-gap: 24px; }
    .academy-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .day-strip { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
    .day-strip::-webkit-scrollbar { display: none; }
    .day-card { scroll-snap-align: start; }
    .academy-flow { grid-template-columns: repeat(2, 1fr); }
    .academy-cards, .agents-list { grid-template-columns: 1fr; }
    .agent-bubble { max-width: none; align-self: stretch; }
    .cert { margin-inline: auto; }
    .role-portrait { width: 60px; height: 60px; }
}
@media (prefers-reduced-motion: reduce) {
    .role-portrait::after, .agent-bubble, .agent-dot { animation: none; }
}
