/* RemotePass case — scrollytelling deck styles */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--rp-app-bg); color: var(--rp-ink); font-family: var(--font-sans); overflow-x: hidden; }

/* ---- top progress + chrome ---- */
.deck-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0%; background: var(--rp-ai-gradient); z-index: 100; transition: width .1s linear; }
.deck-nav { position: fixed; top: 0; left: 0; right: 0; height: 60px; display: flex; align-items: center; gap: 16px; padding: 0 28px; z-index: 90;
  background: rgba(255,255,255,.72); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--rp-border); }
.deck-nav img { height: 24px; }
.deck-nav .sec { font-size: 13px; font-weight: 700; color: var(--rp-muted); }
.deck-nav .spacer { flex: 1; }
.deck-nav .cta { display: inline-flex; align-items: center; gap: 8px; background: var(--rp-blue); color: #fff; font-weight: 700; font-size: 14px; padding: 9px 16px; border-radius: 4px; text-decoration: none; }
.deck-nav .cta:hover { background: var(--rp-blue-hover); }
.deck-nav .navlink { font-size: 14px; font-weight: 700; color: var(--rp-ink); text-decoration: none; padding: 6px 10px; }
.deck-nav .navlink:hover { color: var(--rp-ai-indigo); }

/* ---- PRD chapter ---- */
.prd { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; max-width: 1000px; width: 100%; }
.prd-card { background: #fff; border: 1px solid var(--rp-border); border-radius: 12px; padding: 18px 20px; box-shadow: var(--rp-shadow-card); }
.prd-card.span2, .prd-card.span3 { grid-column: 1 / -1; }
.prd .lbl { font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--rp-ai-indigo); margin-bottom: 9px; }
.prd p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--rp-ink); }
.prd ul { margin: 0; padding-left: 18px; }
.prd li { font-size: 14px; line-height: 1.6; color: var(--rp-ink); }
.prd .reqs { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
.prd .reqs > div { display: flex; flex-direction: column; gap: 8px; }
.prd .reqs p { font-size: 13.5px; color: var(--rp-muted); line-height: 1.5; }
.rp0, .rp1, .rp2 { display: inline-flex; align-self: flex-start; font-size: 12px; font-weight: 800; padding: 3px 11px; border-radius: 9999px; }
.rp0 { background: var(--rp-ai-soft); color: var(--rp-ai-indigo); }
.rp1 { background: var(--rp-blue-soft); color: var(--rp-blue); }
.rp2 { background: #F1F1F3; color: var(--rp-muted); }
@media (max-width: 860px) { .prd { grid-template-columns: 1fr; } .prd .reqs { grid-template-columns: 1fr; } }

/* ---- standalone success metrics (S10) ---- */
.bigmetrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; max-width: 1020px; width: 100%; }
.bm { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: 28px; }
.bm .tag { font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #b69cff; }
.bm .big { font-size: clamp(26px, 3vw, 38px); font-weight: 800; letter-spacing: -0.02em; margin: 10px 0 12px; color: #fff; }
.bm .dsc { font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.8); }
@media (max-width: 860px) { .bigmetrics { grid-template-columns: 1fr; } }

/* ---- discovery / division of labour (S11) ---- */
.dol { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 30px; max-width: 880px; width: 100%; }
.dol > div { font-size: 14px; color: var(--rp-muted); line-height: 1.5; background: var(--rp-app-bg); border-radius: 10px; padding: 13px 16px; }
.dol .who { display: inline-block; font-weight: 800; color: var(--rp-ink); margin-right: 6px; }
@media (max-width: 860px) { .dol { grid-template-columns: 1fr; } }

/* ---- section frame ---- */
.sec-panel { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 110px clamp(28px, 8vw, 150px) 90px; position: relative; }
.sec-panel.dark { background: var(--rp-ink); color: #fff; }
.sec-panel.grad { background: linear-gradient(150deg,#0F1035 0%, #1b1b66 55%, #3a1f8f 100%); color: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--rp-ai-indigo); margin-bottom: 20px; }
.dark .eyebrow, .grad .eyebrow { color: #b69cff; }
.eyebrow .num { width: 26px; height: 26px; border-radius: 50%; background: var(--rp-ai-gradient); color: #fff; display: grid; place-items: center; font-size: 13px; }
h2.title { font-size: clamp(34px, 5vw, 60px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; margin: 0; max-width: 16ch; }
.dark .title, .grad .title, .ladder-stage .title { color: #fff; }
.lede { font-size: clamp(17px, 1.6vw, 22px); line-height: 1.55; color: var(--rp-muted); margin-top: 22px; max-width: 60ch; }
.dark .lede, .grad .lede, .ladder-stage .lede { color: rgba(255,255,255,.82); }
.lede b { color: var(--rp-ink); } .dark .lede b, .grad .lede b, .ladder-stage .lede b { color: #fff; }


/* ---- reveal ---- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease-standard), transform .7s var(--ease-standard); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---- S1 hero ---- */
.hero { height: 280vh; position: relative; }
.hero .stage { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; background: #fff; text-align: center; }
.hero .ghost { position: absolute; font-weight: 800; color: var(--rp-blue-soft); line-height: 1; font-size: 52vw; z-index: 0; letter-spacing: -0.04em; user-select: none; }
.hero .h1 { position: relative; z-index: 1; font-size: clamp(44px, 8vw, 104px); font-weight: 800; letter-spacing: -0.03em; }
.hero .swap { display: inline-block; background: var(--rp-ai-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; transition: opacity .3s var(--ease-standard), transform .3s var(--ease-standard); }
.hero .sub { position: relative; z-index: 1; font-size: clamp(16px, 1.7vw, 22px); color: var(--rp-muted); margin-top: 24px; max-width: 60ch; }
.hero .by { position: relative; z-index: 1; margin-top: 18px; font-size: 15px; font-weight: 700; color: var(--rp-ai-indigo); }
.scroll-cue { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 1; color: var(--rp-faint); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

/* ---- category chips ---- */
.cats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; max-width: 760px; }
.cat { display: inline-flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--rp-border); border-radius: 9999px; padding: 10px 16px; font-weight: 700; font-size: 15px; box-shadow: var(--rp-shadow-card); transition: opacity .5s, filter .5s; }
.cat .b { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 9999px; background: #F1F1F3; color: var(--rp-muted); font-size: 12px; display: grid; place-items: center; }
.cat.dim { opacity: .4; filter: grayscale(1); }
.cat.lit { border-color: var(--rp-blue); color: var(--rp-blue); } .cat.lit .b { background: var(--rp-blue-soft); color: var(--rp-blue); }

.bignum { font-size: clamp(64px, 12vw, 150px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.bignum.grad { background: var(--rp-ai-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---- cards grid ---- */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.opp { background: #fff; border-radius: 14px; box-shadow: var(--rp-shadow-card); padding: 28px; border-top: 4px solid var(--rp-blue); }
.opp.ai { border-top-color: var(--rp-ai-indigo); }
.opp .k { width: 44px; height: 44px; border-radius: 10px; background: var(--rp-blue-soft); display: grid; place-items: center; margin-bottom: 16px; }
.opp.ai .k { background: var(--rp-ai-soft); }
.opp h3 { font-size: 21px; margin: 0 0 8px; font-weight: 800; }
.opp p { font-size: 15px; color: var(--rp-muted); line-height: 1.5; margin: 0; }
.opp .why { font-size: 13px; color: var(--rp-ink); margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--rp-border); line-height: 1.5; }
.opp .why b { color: var(--rp-ai-indigo); font-weight: 800; }
.opp.reveal-card { background: #fff; }
@media (max-width: 920px) { .cards3 { grid-template-columns: 1fr; } }

/* ---- prioritisation axes + why ---- */
.axes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 26px; max-width: 860px; }
.axis { background: var(--rp-app-bg); border-radius: 10px; padding: 13px 15px; }
.axis b { font-size: 13.5px; display: block; }
.axis span { font-size: 12px; color: var(--rp-muted); line-height: 1.45; display: block; margin-top: 4px; }
.score .nm b { font-weight: 800; display: block; }
.score .nm .sub { display: block; font-weight: 600; font-size: 11.5px; color: var(--rp-muted); margin-top: 3px; line-height: 1.4; }
@media (max-width: 920px) { .axes { grid-template-columns: 1fr 1fr; } }

/* ---- scorecard ---- */
.score { width: 100%; max-width: 820px; margin-top: 34px; background: #fff; border-radius: 14px; box-shadow: var(--rp-shadow-card); overflow: hidden; }
.score .r { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; align-items: center; padding: 15px 22px; border-bottom: 1px solid var(--rp-border); font-size: 14px; }
.score .r.head { font-weight: 800; color: var(--rp-muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .03em; }
.score .r.win { background: linear-gradient(90deg, var(--rp-ai-soft), #fff); position: relative; }
.score .r.win::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--rp-ai-gradient); }
.score .nm { font-weight: 800; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

/* ---- autonomy ladder (S6) ---- */
.ladder-wrap { height: 320vh; position: relative; }
.ladder-stage { position: sticky; top: 0; height: 100vh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 5vw; padding: 90px clamp(28px,8vw,150px); background: var(--rp-ink); color: #fff; }
.ladder { position: relative; height: 62vh; }
.rung { position: absolute; left: 0; right: 0; display: flex; align-items: center; gap: 18px; opacity: .25; transform: translateX(-12px); transition: opacity .4s, transform .4s; }
.rung.on { opacity: 1; transform: none; }
.rung .lvl { font-size: 13px; font-weight: 800; width: 30px; color: #b69cff; }
.rung .bar { flex: 1; height: 2px; background: rgba(255,255,255,.18); position: relative; }
.rung.on .bar { background: var(--rp-ai-gradient); }
.rung .txt { position: absolute; left: 48px; top: -38px; display: flex; flex-direction: column; gap: 5px; }
.rung .rt { display: block; font-size: 18px; font-weight: 800; }
.rung .rd { display: block; font-size: 13px; color: rgba(255,255,255,.7); }
.climber { position: absolute; left: -6px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(255,255,255,.18); transition: top .2s linear; }

/* ---- S7 buckets split ---- */
.split { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; margin-top: 40px; width: 100%; max-width: 920px; }
.bk { border-radius: 14px; padding: 22px; color: #fff; min-height: 150px; }
.bk.auto { background: var(--rp-ai-gradient); } .bk.decide { background: var(--rp-blue); } .bk.clarify { background: #FD7E14; }
.bk .bn { font-size: 42px; font-weight: 800; } .bk .bl { font-weight: 800; font-size: 16px; margin-top: 4px; } .bk .bd { font-size: 13px; opacity: .9; margin-top: 6px; }

/* ---- metrics / guardrails ---- */
.metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 34px; max-width: 820px; }
.metric { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 24px; }
.metric .mt { font-size: 15px; font-weight: 800; } .metric .md { font-size: 13.5px; opacity: .75; margin-top: 6px; line-height: 1.45; }

/* ---- timeline (S10) ---- */
.timeline { position: relative; margin-top: 44px; max-width: 860px; padding-left: 8px; }
.timeline .track { position: absolute; left: 15px; top: 6px; bottom: 6px; width: 3px; background: var(--rp-border); }
.timeline .fill { position: absolute; left: 15px; top: 6px; width: 3px; background: var(--rp-ai-gradient); height: 0; transition: height 1s var(--ease-standard); }
.phase { position: relative; padding: 0 0 30px 52px; }
.phase .pin { position: absolute; left: 8px; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--rp-border); transition: border-color .4s; }
.phase.in .pin { border-color: var(--rp-ai-indigo); }
.phase h4 { margin: 0; font-size: 18px; font-weight: 800; }
.phase p { margin: 6px 0 0; font-size: 14.5px; color: var(--rp-muted); line-height: 1.5; }

/* ---- evals callout (S10) ---- */
.evalbox { margin-top: 30px; max-width: 880px; background: var(--rp-ai-soft); border: 1px solid #E3D8FA; border-radius: 14px; padding: 22px 24px; }
.evalbox .eh { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--rp-ai-indigo); margin-bottom: 16px; }
.evalbox .eh svg { width: 17px; height: 17px; }
.evalbox .eg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.evalbox .eg > div { display: flex; flex-direction: column; gap: 5px; }
.evalbox .eg b { font-size: 15px; }
.evalbox .eg span { font-size: 13.5px; color: var(--rp-muted); line-height: 1.5; }
@media (max-width: 920px) { .evalbox .eg { grid-template-columns: 1fr; } }

/* ---- bullets ---- */
.blist { margin: 26px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; max-width: 64ch; }
.blist li { display: flex; gap: 13px; font-size: 16.5px; line-height: 1.45; }
.blist .ic { width: 26px; height: 26px; border-radius: 7px; background: var(--rp-ai-soft); color: var(--rp-ai-indigo); display: grid; place-items: center; flex: none; margin-top: 1px; }
.dark .blist .ic, .grad .blist .ic { background: rgba(255,255,255,.12); color: #fff; }

/* ---- final CTA ---- */
.endcta { display: inline-flex; align-items: center; gap: 10px; background: var(--rp-ai-gradient); color: #fff; font-weight: 700; font-size: 17px; padding: 15px 26px; border-radius: 8px; text-decoration: none; margin-top: 34px; box-shadow: var(--rp-shadow-ai); }

.preview-card { margin-top: 38px; width: 100%; max-width: 760px; border-radius: 14px; overflow: hidden; box-shadow: var(--rp-shadow-pop); border: 1px solid var(--rp-border); background: #fff; }
.preview-card img { width: 100%; display: block; }

/* ---- S4 opportunity map (2x2) ---- */
.quadwrap { display: grid; grid-template-columns: 1.35fr 0.85fr; gap: 30px; margin-top: 38px; align-items: center; max-width: 1060px; width: 100%; }
.quad { position: relative; background: #fff; border: 1px solid var(--rp-border); border-radius: 14px; box-shadow: var(--rp-shadow-card); padding: 34px 26px 30px 56px; }
.quad-plot { position: relative; height: 380px; border-left: 2px solid var(--rp-border-strong); border-bottom: 2px solid var(--rp-border-strong);
  background-image: linear-gradient(to right, transparent calc(50% - 1px), var(--rp-border) calc(50% - 1px), var(--rp-border) calc(50% + 1px), transparent calc(50% + 1px)),
  linear-gradient(to bottom, transparent calc(50% - 1px), var(--rp-border) calc(50% - 1px), var(--rp-border) calc(50% + 1px), transparent calc(50% + 1px)); }
.goal-zone { position: absolute; right: 0; top: 0; width: 50%; height: 50%; background: rgba(243,238,252,.5); }
.goal-zone span { position: absolute; top: 12px; right: 14px; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--rp-ai-indigo); opacity: .7; }
.quad-arrows { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.qarrow { position: absolute; z-index: 2; width: 17px; height: 17px; color: var(--rp-ai-indigo); transform: translate(-50%, -50%); opacity: .8; }
.ax-y, .ax-x { position: absolute; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--rp-muted); }
.ax-y b, .ax-x b { color: var(--rp-ai-indigo); font-weight: 800; padding: 0 2px; }
.ax-x { bottom: 8px; left: 56px; right: 26px; text-align: center; }
.ax-y { left: 14px; top: 34px; bottom: 30px; writing-mode: vertical-rl; transform: rotate(180deg); display: flex; align-items: center; justify-content: center; }
.qpt { position: absolute; z-index: 2; }
.qdot { position: absolute; left: 0; top: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--rp-muted); transform: translate(-50%, -50%); }
.qlab { position: absolute; top: 50%; left: 13px; transform: translateY(-50%); white-space: nowrap; font-size: 12.5px; font-weight: 700; color: var(--rp-muted); line-height: 1.25; }
.qpt.lft .qlab { left: auto; right: 13px; text-align: right; }
.qlab b { display: block; font-size: 13.5px; color: var(--rp-ink); }
.qlab em { display: block; font-style: normal; font-size: 10.5px; color: var(--rp-faint); font-weight: 700; letter-spacing: .01em; margin-top: 1px; }
.qpt.today .qlab em { font-style: italic; }
.qpt.qopp .qdot { background: var(--rp-ai-purple); box-shadow: 0 0 0 5px var(--rp-ai-soft); }
.qpt.qopp .qlab b { color: var(--rp-ai-purple); }
.qpt.bet .qdot { width: 18px; height: 18px; background: var(--rp-ai-indigo); box-shadow: 0 0 0 6px var(--rp-ai-soft); }
.qpt.bet .qlab b { color: var(--rp-ai-indigo); }
.quad-side { display: flex; flex-direction: column; gap: 16px; }
.qcard { background: var(--rp-ai-soft); border: 1px solid #E3D8FA; border-radius: 12px; padding: 18px 20px; }
.qcard.alt { background: var(--rp-app-bg); border-color: var(--rp-border); }
.qcard .qh { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 800; margin-bottom: 8px; }
.qcard .qh svg { width: 19px; height: 19px; }
.qcard p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--rp-muted); }
@media (max-width: 960px) { .quadwrap { grid-template-columns: 1fr; } .qlab { font-size: 11px; } }

/* ---- S7 funnel (132 -> 18) ---- */
.funnel { display: flex; align-items: stretch; gap: 14px; margin-top: 36px; max-width: 920px; width: 100%; }
.fstep { flex: 1; background: #fff; border: 1px solid var(--rp-border); border-radius: 12px; padding: 18px 18px 16px; box-shadow: var(--rp-shadow-card); }
.fstep.hot { border-color: #E3D8FA; background: linear-gradient(180deg, var(--rp-ai-soft), #fff); box-shadow: var(--rp-shadow-ai); }
.fstep .fn { font-size: 38px; font-weight: 800; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.fstep.hot .fn { background: var(--rp-ai-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fstep .fl { font-weight: 800; font-size: 14.5px; margin-top: 8px; }
.fstep .fd { font-size: 12.5px; color: var(--rp-muted); line-height: 1.5; margin-top: 5px; }
.farrow { align-self: center; color: var(--rp-faint); width: 22px; height: 22px; flex: none; }
@media (max-width: 820px) { .funnel { flex-direction: column; } .farrow { transform: rotate(90deg); } }

/* ---- S6 ladder extras ---- */
.ladder-note { margin-top: 16px; font-size: 13.5px; line-height: 1.55; color: rgba(255,255,255,.6); max-width: 46ch; border-left: 2px solid rgba(182,156,255,.5); padding-left: 14px; }
.rung .here { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #fff; background: var(--rp-ai-gradient); padding: 2px 8px; border-radius: 9999px; margin-left: 8px; vertical-align: middle; }
