/* MEDISUPPLY landing page.
   Concept: the Kingdom's medical supply network, alive. Deep "night" green,
   gold supply routes, Najdi parapet (sharafat) bands between sections. */

:root {
  --night: #06302A;
  --night-2: #0B3D35;
  --green: #0A7058;
  --green-deep: #075543;
  --mint: #2FA36B;
  --teal: #3194A0;
  --gold: #C9A13A;
  --gold-soft: #E7C661;
  --stone: #F1F5F3;
  --ink: #0F2A24;
  --muted: #4A5F59;
  --line: #D7E2DE;
  --font-display: 'Reem Kufi', 'Readex Pro', system-ui, sans-serif;
  --font-body: 'Readex Pro', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.75; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure { margin: 0; }
img, svg { max-width: 100%; }
a { color: var(--green); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; inset-inline-start: 1rem; top: -120px; z-index: 100; background: var(--night); color: #fff; padding: .6rem 1rem; border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 1rem; }
.ic { width: 1.15em; height: 1.15em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .88rem 1.45rem; border: 2px solid transparent; border-radius: 12px; font: inherit; font-size: 1rem; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .18s, color .18s, border-color .18s, transform .18s, box-shadow .18s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--sm { padding: .58rem 1.05rem; font-size: .93rem; border-radius: 10px; }
.btn--gold { background: var(--gold); color: var(--night); box-shadow: 0 12px 26px -14px rgba(201, 161, 58, .8); }
.btn--gold:hover { background: #D9B552; color: var(--night); }
.btn--line-light { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn--line-light:hover { background: #fff; border-color: #fff; color: var(--night); }
.btn--green { background: var(--green); color: #fff; }
.btn--green:hover { background: var(--green-deep); color: #fff; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .97); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 28px -22px rgba(6, 48, 42, .55); }
.header-bar { display: flex; align-items: center; gap: 1.5rem; min-height: 78px; }
.brand { display: inline-flex; flex-shrink: 0; border-radius: 8px; }
.brand img { display: block; width: auto; height: 56px; }
.site-nav { display: flex; align-items: center; gap: 1.8rem; margin-inline-start: auto; }
.nav-links { display: flex; gap: 1.6rem; margin: 0; padding: 0; list-style: none; }
.nav-links a { position: relative; color: var(--muted); font-size: .97rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.nav-links a::after { content: ''; position: absolute; inset-inline: 0; bottom: -7px; height: 2px; border-radius: 2px; background: var(--gold); transform: scaleX(0); transition: transform .22s var(--ease-out); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 1.1rem; }
.lang-link { display: inline-flex; align-items: center; gap: .35rem; color: var(--muted); font-size: .93rem; font-weight: 500; text-decoration: none; }
.lang-link:hover, .signin-link:hover { color: var(--green); }
.signin-link { color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
.menu-toggle { display: none; align-items: center; gap: .45rem; margin-inline-start: auto; padding: .5rem .8rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.menu-toggle .ic-close, .site-header.is-open .menu-toggle .ic-open { display: none; }
.site-header.is-open .menu-toggle .ic-close { display: inline; }
@media (max-width: 1060px) {
  .header-bar { min-height: 68px; }
  .brand img { height: 48px; }
  .menu-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; inset-inline: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 1rem; padding: .6rem 1.25rem 1.4rem; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -30px rgba(6, 48, 42, .5); }
  .site-header.is-open .site-nav { display: flex; }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a { display: block; padding: .7rem 0; border-bottom: 1px solid var(--stone); }
  .nav-links a::after { display: none; }
  .nav-actions { flex-wrap: wrap; gap: .9rem 1.2rem; }
}

/* ---------- Najdi parapet bands ---------- */
.band { height: 20px; background-repeat: repeat-x; background-position: bottom center; background-size: 28px 20px; }
.band--stone { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='20'%3E%3Cpath d='M0 20 14 2 28 20Z' fill='%23F1F5F3'/%3E%3Cpath d='M10.5 20 14 15.5 17.5 20Z' fill='%23C9A13A'/%3E%3C/svg%3E"); }
.band--night { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='20'%3E%3Cpath d='M0 20 14 2 28 20Z' fill='%2306302A'/%3E%3Cpath d='M10.5 20 14 15.5 17.5 20Z' fill='%23C9A13A'/%3E%3C/svg%3E"); }
.band--green { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='20'%3E%3Cpath d='M0 20 14 2 28 20Z' fill='%230A7058'/%3E%3Cpath d='M10.5 20 14 15.5 17.5 20Z' fill='%23C9A13A'/%3E%3C/svg%3E"); }
.on-white { background-color: #fff; }
.on-night { background-color: var(--night); }
.on-green { background-color: var(--green); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-top: clamp(2.6rem, 6vw, 4.6rem); background: radial-gradient(50% 60% at 50% 0%, rgba(201, 161, 58, .1), transparent 70%), var(--night); color: #fff; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: clamp(1.5rem, 4vw, 4rem); padding-bottom: clamp(3.2rem, 6vw, 4.8rem); }
.hero-title { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 700; line-height: 1.3; color: #fff; }
html[lang="en"] .hero-title { line-height: 1.12; word-spacing: .12em; }
.hero-line { display: block; text-wrap: balance; }
.hero-lead { max-width: 58ch; margin-top: 1.4rem; font-size: 1.12rem; color: rgba(255, 255, 255, .78); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: .55rem 1.5rem; margin: 1.7rem 0 0; padding: 0; list-style: none; font-size: .95rem; color: rgba(255, 255, 255, .76); }
.hero-points li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-points .ic { color: var(--gold-soft); }
.band--rise { position: absolute; inset-inline: 0; bottom: -1px; }
@media (max-width: 1023px) {
  .hero-grid { grid-template-columns: 1fr; }
  .network { width: min(100%, 600px); margin-inline: auto; }
}

/* Load sequence: headline written in reading direction, then the network comes alive. */
.hero-line { animation: write-rtl .8s calc(.08s + var(--i) * .16s) var(--ease-out) both; }
[dir="ltr"] .hero-line { animation-name: write-ltr; }
.hero-lead { animation: rise .7s .45s var(--ease-out) both; }
.hero-ctas { animation: rise .7s .6s var(--ease-out) both; }
.hero-points { animation: rise .7s .75s var(--ease-out) both; }
.band--rise { animation: build-rtl 1.3s 1s cubic-bezier(.65, 0, .35, 1) both; }
[dir="ltr"] .band--rise { animation-name: build-ltr; }
@keyframes write-rtl { from { clip-path: inset(-25% -4% -25% 104%); } to { clip-path: inset(-25% -4% -25% -4%); } }
@keyframes write-ltr { from { clip-path: inset(-25% 104% -25% -4%); } to { clip-path: inset(-25% -4% -25% -4%); } }
@keyframes build-rtl { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }
@keyframes build-ltr { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Network map ---------- */
.network { position: relative; }
.network::before { content: ''; position: absolute; inset: 4% 6% 14%; z-index: 0; background: radial-gradient(closest-side, rgba(49, 148, 160, .32), transparent); }
.network-stage { position: relative; z-index: 1; }
.nm { display: block; width: 100%; height: auto; overflow: visible; }
.nm-outline { fill: none; stroke: rgba(231, 198, 97, .6); stroke-width: 1.3; stroke-linejoin: round; stroke-dasharray: 1000; animation: draw 2.1s .25s cubic-bezier(.65, 0, .35, 1) both; }
.nm-land { animation: appear 1s 1.1s both; }
.nm-route { fill: none; stroke: rgba(231, 198, 97, .3); stroke-width: 1.3; stroke-dasharray: 100; animation: draw-route .9s calc(1.9s + var(--i) * .09s) var(--ease-out) both; }
.nm-flow-line { fill: none; stroke: var(--gold-soft); stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: 2 10; animation: nm-flow 1.1s linear infinite, appear .6s 2.8s both; }
.nm-parcels { animation: appear .6s 3s both; }
.nm-parcel-glow { fill: rgba(231, 198, 97, .35); }
.nm-parcel-core { fill: #fff; }
.nm-node { transform-box: fill-box; transform-origin: center; animation: pop .55s calc(1.45s + var(--i) * .06s) var(--ease-pop) both; }
.nm-hub-ring { fill: none; stroke: var(--gold-soft); stroke-opacity: .6; stroke-width: 1.2; }
.nm-hub-dot { fill: var(--gold-soft); }
.nm-site-dot { fill: #fff; }
.nm-pulse, .nm-ping { fill: none; transform-box: fill-box; transform-origin: center; opacity: 0; }
.nm-pulse { stroke: #fff; stroke-width: 1.1; animation: pulse 3.2s calc(var(--i) * -.55s) ease-out infinite; }
.nm-ping { stroke: var(--gold-soft); stroke-width: 1.6; }
.nm-site.is-ping .nm-ping { animation: ping 1.2s ease-out; }
.nm-label { font-family: var(--font-body); font-size: 13px; font-weight: 500; fill: rgba(255, 255, 255, .72); animation: appear .6s 2.2s both; }
.nm-label--hub { font-size: 15px; font-weight: 600; fill: var(--gold-soft); }
.nm-label { transition: opacity .3s; }
.nm-label.is-muted { opacity: 0 !important; }
@keyframes draw { from { stroke-dashoffset: 1000; } to { stroke-dashoffset: 0; } }
@keyframes draw-route { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes nm-flow { to { stroke-dashoffset: -12; } }
@keyframes pop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
@keyframes pulse { 0% { opacity: .55; transform: scale(1); } 100% { opacity: 0; transform: scale(3.6); } }
@keyframes ping { 0% { opacity: .95; transform: scale(1); } 100% { opacity: 0; transform: scale(4.4); } }
.network.is-paused .nm *, .network.is-paused .net-chip { animation-play-state: paused; }

/* Still version (OG card) */
.nm--still * { animation: none !important; }
.nm--still .nm-route { stroke: rgba(231, 198, 97, .75); stroke-width: 1.7; stroke-dasharray: none; }

/* Status chips over the map (illustrative) */
.network-chips { position: absolute; inset: 0; pointer-events: none; }
.net-chip { position: absolute; display: flex; align-items: center; gap: .45rem; padding: .36rem .75rem; border-radius: 999px; background: #fff; color: var(--ink); font-size: .8rem; font-weight: 500; line-height: 1.5; white-space: nowrap; box-shadow: 0 14px 28px -14px rgba(0, 0, 0, .6); opacity: 0; transform: translate(calc(-50% + var(--shift, 0px)), calc(-100% - 16px + var(--lift, 8px))); transition: opacity .35s ease, transform .5s var(--ease-out); }
.net-chip.is-on { --lift: 0px; opacity: 1; }
.net-chip::before { content: ''; flex-shrink: 0; width: .55rem; height: .55rem; border-radius: 50%; background: var(--tone, var(--gold)); }
.net-chip::after { content: ''; position: absolute; left: calc(50% - var(--shift, 0px)); bottom: -4px; width: 9px; height: 9px; border-radius: 2px; background: #fff; transform: translateX(-50%) rotate(45deg); }
.net-chip--delivered { --tone: var(--mint); }
.net-chip--accepted { --tone: var(--teal); }
.net-chip--shipped, .net-chip--transit { --tone: var(--gold); }
.net-chip--new { --tone: #E8743B; }
.network-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.3rem; margin-top: .9rem; font-size: .84rem; color: rgba(255, 255, 255, .64); }
.network-legend span { display: inline-flex; align-items: center; }
.legend-note { padding: .05rem .6rem; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; font-size: .76rem; }
.key { display: inline-block; flex-shrink: 0; width: .62rem; height: .62rem; margin-inline-end: .45rem; border-radius: 50%; }
.key--hub { background: var(--gold-soft); box-shadow: 0 0 0 3px rgba(231, 198, 97, .25); }
.key--site { background: #fff; }
@media (max-width: 600px) {
  .nm-label { display: none; }
  .nm-label--hub { display: inline; font-size: 23px; }
  .net-chip { font-size: .72rem; padding: .3rem .6rem; }
}

/* ---------- Facts ribbon ---------- */
.facts { padding: 1.5rem 0 1.9rem; background: var(--stone); }
.facts-list { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: .9rem 0; margin-block: 0; padding: 0; list-style: none; }
.facts-list li { position: relative; display: inline-flex; align-items: baseline; gap: .45rem; padding-inline: 1.2rem; font-size: .98rem; color: var(--muted); }
.facts-list li + li::before { content: ''; position: absolute; inset-inline-start: -6px; top: 50%; width: 12px; height: 9px; background: var(--gold); clip-path: polygon(50% 0, 100% 100%, 0 100%); transform: translateY(-50%); }
.facts-list strong { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; line-height: 1.2; color: var(--green); font-variant-numeric: tabular-nums; }
@media (max-width: 720px) {
  .facts-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem .8rem; }
  .facts-list li { flex-direction: column; align-items: center; gap: .1rem; padding: 0; text-align: center; line-height: 1.4; }
  .facts-list li + li::before { display: none; }
  .facts-list li:last-child { grid-column: 1 / -1; }
}
html.js [data-reveal]:not(.is-in) [data-count] { visibility: hidden; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.6rem, 7vw, 5.6rem); }
.section-head { max-width: 780px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section h2, .final h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 3.1vw, 2.6rem); font-weight: 700; line-height: 1.35; color: var(--ink); text-wrap: balance; }
html[lang="en"] .section h2, html[lang="en"] .final h2 { line-height: 1.2; word-spacing: .1em; }
.section-lead { max-width: 64ch; margin-top: .9rem; font-size: 1.08rem; color: var(--muted); text-wrap: pretty; }

/* ---------- Who it is for: role switcher ---------- */
.role-tabs { display: flex; flex-wrap: wrap; gap: .4rem; width: fit-content; max-width: 100%; margin-bottom: 2.4rem; padding: .4rem; border-radius: 16px; background: var(--stone); }
.role-tab { display: inline-flex; align-items: center; gap: .55rem; padding: .72rem 1.15rem; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font: inherit; font-size: .98rem; font-weight: 600; cursor: pointer; transition: background-color .2s, color .2s, box-shadow .2s; }
.role-tab:hover { color: var(--ink); }
.role-tab[aria-selected="true"] { background: #fff; color: var(--green); box-shadow: 0 8px 20px -12px rgba(6, 48, 42, .5); }
/* Panels share one grid cell so the section keeps the tallest panel's height when switching. */
.role-panels { display: grid; }
.role-panel { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 5vw, 4.5rem); }
.role-panel[hidden] { display: grid; visibility: hidden; }
html:not(.js) .role-panel { grid-area: auto; }
html:not(.js) .role-panel[hidden] { visibility: visible; margin-top: 3.5rem; }
.role-panel:focus-visible { outline-offset: 8px; }
.role-copy h3 { text-wrap: balance; margin-bottom: 1.3rem; font-family: var(--font-display); font-size: clamp(1.35rem, 2.3vw, 1.75rem); font-weight: 700; line-height: 1.45; }
.role-panel.is-playing .role-copy { animation: rise .5s var(--ease-out) both; }
.ticks { display: grid; gap: .8rem; margin: 0; padding: 0; list-style: none; }
.ticks li { display: grid; grid-template-columns: 1.4rem 1fr; gap: .55rem; line-height: 1.65; }
.ticks .ic { margin-top: .3rem; color: var(--green); }
.role-copy .btn { margin-top: 1.8rem; }
@media (max-width: 900px) { .role-panel { grid-template-columns: 1fr; } }

.role-mock { position: relative; }
.role-mock::before { content: ''; position: absolute; inset: 10% 2% -4% 6%; z-index: 0; border-radius: 40px; background: radial-gradient(60% 60% at 70% 30%, rgba(49, 148, 160, .22), transparent 70%), radial-gradient(50% 50% at 20% 80%, rgba(201, 161, 58, .2), transparent 70%); }
.mock { position: relative; z-index: 1; max-width: 470px; margin-inline: auto; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 34px 60px -34px rgba(6, 48, 42, .55); }
.mock-bar { display: flex; align-items: center; gap: .35rem; padding: .75rem 1rem; background: var(--night); color: rgba(255, 255, 255, .86); font-size: .85rem; font-weight: 600; }
.mock-bar i { width: .55rem; height: .55rem; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.mock-bar span { margin-inline-start: .55rem; }
.mock-body { display: grid; gap: .8rem; padding: 1.1rem 1.15rem 1.25rem; font-size: .88rem; line-height: 1.5; }
html.js .roles:not(.is-in) .mock-body > * { opacity: 0; }
.role-panel.is-playing .mock-body > * { animation: rise .45s calc(.15s + var(--r) * .12s) var(--ease-out) both; }
.mock-group { display: grid; gap: .45rem; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 12px; }
.mock-vendor { font-size: .8rem; font-weight: 600; color: var(--green); }
.mock-line { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: baseline; gap: .7rem; }
.mock-line > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-qty { font-size: .78rem; color: var(--muted); }
.mock-line b, .mock-field b { font-variant-numeric: tabular-nums; }
.mock-note { font-size: .8rem; color: var(--muted); }
.mock-pay { display: flex; flex-wrap: wrap; gap: .5rem; }
.mock-chip { padding: .3rem .85rem; border: 1px solid var(--line); border-radius: 999px; font-size: .8rem; color: var(--muted); }
.role-panel.is-playing .mock-chip--pick { animation: pick-chip .35s 1.15s both; }
.mock-total { display: flex; justify-content: space-between; align-items: center; padding-top: .75rem; border-top: 1px dashed var(--line); font-weight: 600; }
.mock-total b { font-family: var(--font-display); font-size: 1.2rem; color: var(--green); }
.mock-search { display: flex; align-items: center; gap: .55rem; padding: .6rem .8rem; border: 1.5px solid var(--green); border-radius: 10px; color: var(--muted); }
.mock-typed { color: var(--ink); font-weight: 500; }
.role-panel.is-playing .mock-typed { animation: type .9s .35s steps(10, end) both; }
.mock-result { display: flex; align-items: center; justify-content: space-between; gap: .7rem; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 10px; }
.mock-result b, .mock-row b { display: block; font-weight: 600; }
.mock-result small, .mock-row small { display: block; font-size: .75rem; color: var(--muted); }
.mock-picked { display: inline-flex; align-items: center; gap: .3rem; color: var(--green); font-size: .78rem; font-weight: 600; white-space: nowrap; opacity: 0; }
.role-panel.is-playing .mock-result { animation: rise .45s .27s var(--ease-out) both, pick-row .35s 1.25s both; }
.role-panel.is-playing .mock-picked { animation: appear .3s 1.3s both; }
.mock-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.mock-field { display: grid; padding: .5rem .75rem; border: 1px solid var(--line); border-radius: 10px; }
.mock-field small { font-size: .72rem; color: var(--muted); }
.mock-status { justify-self: start; padding: .3rem .85rem; border-radius: 999px; background: #FFF4D6; color: #7A5A0F; font-size: .78rem; font-weight: 600; }
.mock-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 12px; }
.mock-btn { flex-shrink: 0; padding: .32rem .8rem; border-radius: 8px; background: var(--green); color: #fff; font-size: .78rem; font-weight: 600; }
.mock-stamp { position: absolute; inset-inline-end: .8rem; top: 50%; display: inline-flex; align-items: center; gap: .3rem; padding: .32rem .7rem; border-radius: 8px; background: #E5F4EC; color: var(--green); font-size: .78rem; font-weight: 700; opacity: 0; transform: translateY(-50%); }
.role-panel.is-playing .mock-row--approve .mock-btn { animation: vanish .2s 1.2s both; }
.role-panel.is-playing .mock-stamp { animation: stamp .45s 1.25s var(--ease-pop) both; }
.mock-row--alert { border-color: #F1D9A4; background: #FFFAEC; }
.mock-tag { flex-shrink: 0; color: #8A6410; font-size: .76rem; font-weight: 600; }
@keyframes pick-chip { to { background: var(--green); border-color: var(--green); color: #fff; } }
@keyframes pick-row { to { border-color: var(--green); background: #EFF8F3; } }
@keyframes type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes vanish { to { opacity: 0; } }
@keyframes stamp { from { opacity: 0; transform: translateY(-50%) scale(1.6); } to { opacity: 1; transform: translateY(-50%) scale(1); } }

/* ---------- Catalog: live search + departments ---------- */
.catalog { background: var(--stone); }
.catalog-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; gap: clamp(2rem, 4vw, 3.5rem); }
@media (max-width: 1000px) { .catalog-grid { grid-template-columns: 1fr; } }
.console { overflow: hidden; border-radius: 20px; background: var(--night); color: #fff; box-shadow: 0 34px 60px -34px rgba(6, 48, 42, .7); }
.console-head { padding: 1.5rem 1.6rem 0; }
.console-head h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: #fff; }
.console-count { margin-top: .2rem; font-size: .93rem; font-weight: 600; color: var(--gold-soft); }
.console-form { display: flex; gap: .5rem; padding: 1.1rem 1.6rem 0; }
.console-form input { flex: 1; min-width: 0; padding: .8rem 1rem; border: 0; border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: 1rem; }
.console-form input:focus-visible { outline-offset: 0; }
.console-form button { display: inline-flex; align-items: center; gap: .4rem; padding: 0 1.2rem; border: 0; border-radius: 10px; background: var(--gold); color: var(--night); font: inherit; font-weight: 600; cursor: pointer; }
.console-form button:hover { background: #D9B552; }
.console-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; padding: .9rem 1.6rem 0; font-size: .88rem; color: rgba(255, 255, 255, .7); }
.chip { padding: .2rem .8rem; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; background: transparent; color: #fff; font: inherit; font-size: .85rem; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.chip:hover, .chip[aria-pressed="true"] { border-color: #fff; background: #fff; color: var(--night); }
.console-results { min-height: 19rem; margin: 1.1rem 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, .12); }
.console-results li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .78rem 1.6rem; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.console-results li.is-new { animation: rise .35s calc(var(--n) * 55ms) var(--ease-out) both; }
.result-name { font-weight: 500; line-height: 1.4; }
.result-cat { font-size: .82rem; line-height: 1.4; color: rgba(255, 255, 255, .62); }
.result-variants { flex-shrink: 0; font-size: .8rem; color: var(--gold-soft); white-space: nowrap; }
.console-status { color: rgba(255, 255, 255, .72); font-size: .95rem; }
.console-results li.console-status { padding-block: 1.4rem; border-bottom: 0; }
.console-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; padding: .9rem 1.6rem 1.2rem; font-size: .82rem; color: rgba(255, 255, 255, .6); }
@media (max-width: 575px) {
  .console-results { min-height: 0; }
  .console-results li:nth-child(n+5) { display: none; }
  .console-form button span { display: none; }
}

.cats h3 { margin-bottom: .6rem; font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: var(--muted); }
.cats-list { columns: 2 15rem; column-gap: 2.2rem; margin: 0; padding: 0; list-style: none; }
.cats-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .25rem .8rem; padding: .62rem 0; border-bottom: 1px solid var(--line); font-size: .94rem; line-height: 1.5; break-inside: avoid; }
.cat-count { font-size: .8rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cat-bar { grid-column: 1 / -1; display: block; height: 4px; overflow: hidden; border-radius: 2px; background: #DCE6E2; }
.cat-bar span { display: block; width: var(--w); height: 100%; border-radius: inherit; background: var(--green); transition: width 1.1s calc(var(--i) * 45ms) var(--ease-out); }
html.js .cats-list:not(.is-in) .cat-bar span { width: 0; }

/* ---------- Order journey ---------- */
.journey { position: relative; padding-top: 4.7rem; }
.journey-steps { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.journey-steps li { padding-inline-end: 1rem; }
.journey-dot { display: flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border: 2px solid var(--green); border-radius: 50%; background: var(--green); color: #fff; font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; box-shadow: 0 0 0 6px rgba(10, 112, 88, .12); transition: background-color .35s, border-color .35s, color .35s, box-shadow .35s; transition-delay: calc(var(--i) * .48s); }
html.js .journey:not(.is-in) .journey-dot { border-color: var(--line); background: #fff; color: var(--muted); box-shadow: none; }
.journey-steps h3 { margin: 1rem 0 .3rem; font-size: 1.02rem; font-weight: 600; }
.journey-steps p { margin: 0; font-size: .9rem; line-height: 1.6; color: var(--muted); }
.journey-track { position: absolute; z-index: 0; top: calc(4.7rem + 1.375rem - 1px); inset-inline-start: 1.375rem; width: calc(100% * 6 / 7); height: 2px; background: var(--line); }
.journey-fill { position: absolute; inset-block: 0; inset-inline-start: 0; width: 100%; background: var(--green); transition: width 2.9s linear; }
html.js .journey:not(.is-in) .journey-fill { width: 0; }
.journey-truck { position: absolute; top: -4.5rem; inset-inline-end: 0; display: flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--gold); color: var(--night); box-shadow: 0 10px 20px -10px rgba(201, 161, 58, .9); transform: translateX(50%); }
.journey-truck::after { content: ''; position: absolute; bottom: -5px; left: 50%; width: 10px; height: 10px; border-radius: 2px; background: var(--gold); transform: translateX(-50%) rotate(45deg); }
.journey-truck .ic { position: relative; z-index: 1; width: 1.3rem; height: 1.3rem; stroke-width: 2; }
[dir="rtl"] .journey-truck { transform: translateX(-50%); }
[dir="rtl"] .journey-truck .ic { transform: scaleX(-1); }
@media (max-width: 900px) {
  .journey { padding-top: 0; }
  .journey-track { display: none; }
  .journey-steps { grid-template-columns: 1fr; gap: 1.6rem; }
  .journey-steps li { position: relative; display: grid; grid-template-columns: 2.75rem 1fr; column-gap: 1rem; padding: 0; }
  .journey-dot { grid-row: span 2; }
  .journey-steps h3 { margin-top: .45rem; }
  .journey-steps li:not(:last-child)::before, .journey-steps li:not(:last-child)::after { content: ''; position: absolute; top: 2.75rem; bottom: -1.6rem; inset-inline-start: calc(1.375rem - 1px); width: 2px; }
  .journey-steps li:not(:last-child)::before { background: var(--line); }
  .journey-steps li:not(:last-child)::after { background: var(--green); transform-origin: top; transition: transform .45s calc(var(--i) * .48s + .1s) linear; }
  html.js .journey:not(.is-in) .journey-steps li::after { transform: scaleY(0); }
}

/* ---------- Payments ---------- */
.pay { background: var(--night); color: rgba(255, 255, 255, .8); }
.pay h2 { color: #fff; }
.pay .section-lead { color: rgba(255, 255, 255, .72); }
.pay-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 5vw, 4.5rem); }
@media (max-width: 960px) { .pay-grid { grid-template-columns: 1fr; } }
.pay-methods { display: grid; gap: 1.4rem; margin-top: 2rem; }
.pay-method { display: grid; grid-template-columns: 2.7rem 1fr; gap: 1rem; }
.pay-method > .ic { width: 2.7rem; height: 2.7rem; padding: .62rem; border-radius: 12px; background: rgba(255, 255, 255, .08); color: var(--gold-soft); }
.pay-method h3 { margin-bottom: .25rem; font-size: 1.08rem; font-weight: 600; color: #fff; }
.pay-method p { color: rgba(255, 255, 255, .7); }
.split { padding: clamp(1.4rem, 3vw, 2.1rem); border: 1px solid rgba(255, 255, 255, .13); border-radius: 22px; background: rgba(255, 255, 255, .05); }
.split-title { margin-bottom: 1.1rem; color: rgba(255, 255, 255, .7); }
.split-source { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem; color: rgba(255, 255, 255, .78); }
.split-source strong { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.split-bar { display: flex; height: 16px; margin: 1.1rem 0 1.3rem; overflow: hidden; border-radius: 8px; background: rgba(255, 255, 255, .1); }
.split-vendor { width: calc(100% - var(--fee) - 4px); background: var(--mint); transition: width 1s .45s var(--ease-out); }
.split-fee { width: var(--fee); margin-inline-start: 4px; background: var(--gold); transition: width 1s .45s var(--ease-out), margin .4s .45s; }
html.js .split:not(.is-in) .split-vendor { width: 100%; }
html.js .split:not(.is-in) .split-fee { width: 0; margin-inline-start: 0; }
.split-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.split-row:last-child { border-bottom: 0; }
.split-row > span { display: inline-flex; align-items: center; }
.split-row strong { font-weight: 600; color: #fff; white-space: nowrap; font-variant-numeric: tabular-nums; }
.key--vendor { background: var(--mint); }
.key--fee { background: var(--gold); }
.split-note { display: flex; align-items: center; gap: .55rem; margin-top: 1rem; padding: .75rem .95rem; border-radius: 12px; background: rgba(47, 163, 107, .14); color: #C3EBD6; font-size: .93rem; }
.split-note .ic { color: #74D7A6; }

/* ---------- Trust ---------- */
.trust { background: var(--stone); }
.trust-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.trust-list li { padding-inline: 1.5rem; border-inline-start: 1px solid var(--line); }
.trust-list li:first-child { padding-inline-start: 0; border-inline-start: 0; }
.trust-icon { display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; margin-bottom: 1rem; border-radius: 14px; background: var(--night); color: var(--gold-soft); }
.trust-icon .ic { width: 1.35rem; height: 1.35rem; }
.trust-list h3 { margin-bottom: .35rem; font-size: 1.08rem; font-weight: 600; }
.trust-list p { font-size: .95rem; color: var(--muted); }
@media (max-width: 1000px) {
  .trust-list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.2rem; }
  .trust-list li:nth-child(odd) { padding-inline-start: 0; border-inline-start: 0; }
}
@media (max-width: 560px) {
  .trust-list { grid-template-columns: 1fr; }
  .trust-list li { padding-inline: 0; border-inline-start: 0; }
}

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 880px; }
.faq-list { margin-top: 2rem; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem 0; font-size: 1.06rem; font-weight: 600; list-style: none; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .ic { width: 1.7rem; height: 1.7rem; padding: .32rem; border-radius: 50%; background: var(--stone); color: var(--green); transition: transform .25s var(--ease-out), background-color .25s, color .25s; }
.faq-list details[open] summary .ic { transform: rotate(45deg); background: var(--green); color: #fff; }
.faq-list details p { max-width: 70ch; padding-bottom: 1.3rem; color: var(--muted); }
@supports (interpolate-size: allow-keywords) {
  .faq-list { interpolate-size: allow-keywords; }
  .faq-list details::details-content { height: 0; overflow: clip; transition: height .3s var(--ease-out), content-visibility .3s allow-discrete; }
  .faq-list details[open]::details-content { height: auto; }
}

/* ---------- Final call to action ---------- */
.final { position: relative; overflow: hidden; padding-block: clamp(3.6rem, 7vw, 5.2rem); background: var(--green); color: #fff; text-align: center; }
.final::after { content: ''; position: absolute; inset: auto 0 0; height: 70px; opacity: .1; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='70'%3E%3Cpath d='M0 70 42 6 84 70Z' fill='%23FFFFFF'/%3E%3C/svg%3E") repeat-x bottom center / 84px 70px; }
.final .wrap { position: relative; z-index: 1; }
.final h2 { color: #fff; }
.final .section-lead { margin-inline: auto; color: rgba(255, 255, 255, .86); }
.final .hero-ctas { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { padding: 2.8rem 0 2.3rem; background: var(--night); color: rgba(255, 255, 255, .7); font-size: .93rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.footer-brand { max-width: 430px; }
.logo-plate { display: inline-flex; margin-bottom: 1rem; padding: .55rem .85rem; border-radius: 16px; background: #fff; }
.logo-plate img { display: block; width: auto; height: 64px; }
.footer-links { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.footer-links a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.copyright { color: rgba(255, 255, 255, .55); }

/* ---------- Reduced motion: show every final state, keep nothing moving ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .nm-flow, .nm-parcels, .nm-pulse { display: none; }
}
