/* WP-S1 (PLAN-05 v1.1): the visual style of the Owner-approved prototype p3
   (GA4-Connection-Journey-v2-prototype-r3-p3.html), adapted for a real page: p3's site area
   (header with progress, then the stage) becomes the page itself. Not shipped: the narration
   rail, scenario chips, fault buttons, fake browser bar and the placeholder (.ph / .overlay)
   styles. No UI library. Font (lead D3, canon CANON-UIUX-05 item 1): p3's IBM Plex Sans,
   self-hosted, IBM's unmodified woff2 files in fonts/ (SIL OFL, fonts/LICENSE.txt); only the
   400/500/600 faces p3 loads, no 700 face (p3's <b> renders from 600); no Google Fonts request. */
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/IBMPlexSans-Regular.woff2) format('woff2')}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/IBMPlexSans-Medium.woff2) format('woff2')}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/IBMPlexSans-SemiBold.woff2) format('woff2')}
:root{
  --bg:#ECEEF2; --surface:#FFFFFF; --surface-2:#F5F6F8; --ink:#16191D; --ink-2:#3D434B; --muted:#5A616B;
  --line:#D2D6DC; --accent:#1F4FB8; --accent-ink:#FFFFFF; --ok:#0B5A43; --ok-bg:#E3F1EC;
  --warn:#7A3604; --warn-bg:#FBEFE4; --info-bg:#F2F5FB; --info-line:#B9C7E6;
  --f-ui:'IBM Plex Sans',system-ui,-apple-system,'Segoe UI',sans-serif;
}
@media (prefers-color-scheme: dark){:root{
  --bg:#111418; --surface:#1A1E24; --surface-2:#20252C; --ink:#E8EBEF; --ink-2:#C2C8D0; --muted:#9AA2AD;
  --line:#343B45; --accent:#7EA2F2; --accent-ink:#0E1420; --ok:#7DD3B0; --ok-bg:#163229;
  --warn:#F2B58A; --warn-bg:#3A2616; --info-bg:#1B2436; --info-line:#33476F; color-scheme:dark }}
*{box-sizing:border-box}
/* The `hidden` attribute beats every display rule: one visible section at a time. */
[hidden]{display:none!important}
body{margin:0;background:var(--surface);color:var(--ink);font-family:var(--f-ui);font-size:15px;line-height:1.5}

/* Site header: brand + progress (p3 .site-h, .prog) */
.site-h{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;padding:12px 24px;border-bottom:1px solid var(--line)}
h1.brand{margin:0;font-size:18px;font-weight:600;line-height:inherit}
.prog{display:flex;flex-wrap:wrap;gap:18px;list-style:none;margin:0;padding:0;font-size:13px;color:var(--muted)}
.prog li{display:flex;align-items:center;gap:7px}
.dot{width:22px;height:22px;border-radius:999px;border:1px solid var(--line);display:inline-flex;align-items:center;justify-content:center;font-size:12px}
/* Non-colour cues: the current step is bold, numbered and aria-current; a done step shows a check. */
.prog .cur{color:var(--ink);font-weight:600}.prog .cur .dot{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.prog .done{color:var(--ok)}.prog .done .dot{background:var(--ok);border-color:var(--ok);color:var(--surface)}

/* Stage (p3 .stage, .col, .card) */
.stage{min-height:600px;padding:36px 24px;display:flex;justify-content:center}
.col{width:100%;max-width:600px;display:flex;flex-direction:column;gap:18px}
.card{border:1px solid var(--line);border-radius:16px;padding:24px 26px;display:flex;flex-direction:column;gap:14px;max-width:540px;width:100%}
.eyebrow{font-size:13px;color:var(--muted);font-weight:500}
h2{margin:0;font-size:30px;line-height:1.25;font-weight:600;text-wrap:balance}
h2.h26{font-size:26px}
.center{text-align:center}
.lead{margin:0;font-size:16px;color:var(--ink-2)}
.ink{color:var(--ink)}
.ink2{color:var(--ink-2)}

/* Steps (p3 .steps) */
.steps{border:1px solid var(--line);border-radius:12px}
.steps>div{display:flex;gap:12px;padding:14px 16px}
.steps>div+div{border-top:1px solid var(--line)}
.num{flex-shrink:0;width:26px;height:26px;border-radius:999px;background:var(--surface-2);display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:600}
.steps span.t{font-size:15px}.steps .s{color:var(--ink-2)}

/* Notes, buttons, small print, links, details (p3) */
.note{display:flex;gap:10px;align-items:flex-start;font-size:14px;color:var(--ink-2)}
.note svg{flex-shrink:0;margin-top:3px}
.btn{font:inherit;font-weight:600;font-size:16px;min-height:48px;padding:0 22px;border-radius:10px;border:0;background:var(--accent);color:var(--accent-ink);cursor:pointer;width:100%}
/* p3's "Download and install" is a link here (the download runs in the same gesture): same look. */
a.btn{display:flex;align-items:center;justify-content:center;text-align:center;text-decoration:none}
.btn.sec{background:var(--surface);color:var(--ink);border:1px solid var(--line);font-weight:500}
.small{font-size:13px;color:var(--muted);text-align:center;margin:0}
.small.start{text-align:start}
a{color:var(--accent)}
details{font-size:14px;color:var(--ink-2);border-top:1px solid var(--line);padding-top:10px}
summary{cursor:pointer;color:var(--accent)}
/* Keyboard focus stays visible (p3's focus rule). */
.btn:focus-visible,summary:focus-visible,a:focus-visible,button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
/* UXB-6: a heading or status that receives focus on a state change (tabindex=-1) shows no ring. */
[tabindex="-1"]:focus{outline:none}

/* Status and waiting lines (p3 .status, .spin, waitLine) */
.status{display:flex;gap:12px;align-items:flex-start;padding:16px 18px;background:var(--info-bg);border:1px solid var(--info-line);border-radius:12px}
.status.plain{background:transparent;border:0;padding:0}
.spin{width:22px;height:22px;flex-shrink:0;border-radius:999px;border:3px solid var(--info-line);border-top-color:var(--accent);animation:sp 1s linear infinite}
@keyframes sp{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion: reduce){.spin{animation:none;border-top-color:var(--accent)}}

/* Google access card (p3 Cgoogle) */
.pair{display:flex;justify-content:center;gap:12px;align-items:center;font-size:13px;font-weight:600}
.pair span{padding:8px 12px;border:1px solid var(--line);border-radius:10px}
.can{border-top:1px solid var(--line);padding-top:12px;display:flex;flex-direction:column;gap:8px}
.can-h{font-size:14px}
.chk{display:flex;gap:9px;align-items:flex-start}
.chk svg{flex-shrink:0;margin-top:4px;color:var(--ok)}
.muted{color:var(--ink-2);margin:0;font-size:14px}
.grey{padding:11px 13px;background:var(--surface-2);border-radius:10px;font-size:14px;color:var(--ink-2)}

/* Result heads (p3 head(), .okhead, .warnhead, .infohead): an icon plus the heading, never colour alone */
.okhead{display:flex;gap:14px;align-items:flex-start}
.okhead .badge{flex-shrink:0;width:44px;height:44px;border-radius:999px;background:var(--ok-bg);color:var(--ok);display:flex;align-items:center;justify-content:center}
.warnhead .badge{background:var(--warn-bg);color:var(--warn)}
.infohead .badge{background:var(--info-bg);color:var(--accent)}

/* Rows (p3 R1) and boxes (p3 LnaBlocked, R2) */
.rows{border:1px solid var(--line);border-radius:12px;font-size:15px}
.rows>div{padding:12px 16px}.rows>div+div{border-top:1px solid var(--line)}
.box{border:1px solid var(--line);border-radius:12px;padding:14px 16px;display:flex;flex-direction:column;gap:8px;font-size:14px;color:var(--ink-2)}
.box p{margin:0}
.howsteps{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:4px}

/* Entering a state (p3 .fade) */
.fade{animation:fd .25s ease-out}@keyframes fd{from{opacity:.4}to{opacity:1}}
@media (prefers-reduced-motion: reduce){.fade{animation:none}}
@media (max-width:560px){h2{font-size:24px}.stage{padding:24px 14px;min-height:520px}.site-h{padding:10px 14px}}
