/* Mr Clean Dot. The royal blue is the logo's own (#0070D6); navy and sky are its darker and lighter companions. */
/* Plus Jakarta Sans (SIL Open Font Licence), latin, one variable file. The fallback is sized to it so nothing jumps when it arrives. */
@font-face { font-family: "Plus Jakarta Sans"; src: url("fonts/plus-jakarta-sans-latin.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "PJS Fallback"; src: local("Segoe UI"), local("Arial"); size-adjust: 104%; ascent-override: 99%; descent-override: 21%; }
:root {
  --navy: #012362;
  --royal: #0070D6;
  --sky: #03A9FD;
  --paper: #ffffff;
  --mist: #EEF3F8;
  --ink-2: rgba(1, 35, 98, .72);
  --ink-3: rgba(1, 35, 98, .5);
  /* Chinese falls to the device's own faces until the Chinese text exists and Noto Sans SC is added. */
  --font: "Plus Jakarta Sans", "PJS Fallback", "Segoe UI", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --per-beat: 1400px;
}
@media (max-width: 760px) { :root { --per-beat: 1100px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--navy); background: var(--paper); line-height: 1.45; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

/* Header */
.top { position: fixed; z-index: 20; inset: 0 0 auto 0; display: flex; align-items: center; justify-content: space-between; padding: max(10px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left)); pointer-events: none; }
.top > * { pointer-events: auto; }
.brand { display: block; width: 120px; filter: drop-shadow(0 2px 6px rgba(1, 35, 98, .18)); }   /* the logo carries its own white backing, so it needs no plate */
.top-cta { font-weight: 700; font-size: 16px; text-decoration: none; color: var(--paper); background: var(--royal); padding: 11px 18px; border-radius: 999px; box-shadow: 0 6px 18px rgba(2, 109, 213, .3); }
.top-cta:active { transform: scale(.97); }
/* On a wide screen the quote button sits 20px further in from the right edge. */
@media (min-width: 761px) { .top-cta { margin-right: 20px; } }

/* Intro: plain and stacked until the script runs */
.intro { background: var(--mist); }
.stage { padding: 110px 20px 48px; display: grid; gap: 28px; justify-items: center; }
.film { display: none; }
.lines { display: grid; gap: 14px; text-align: center; }
.line-hero h2 { font-size: clamp(40px, 11vw, 112px); line-height: .9; letter-spacing: -.05em; font-weight: 800; text-wrap: balance; }
.line-hero p { margin-top: 14px; font-size: clamp(16px, 2.2vw, 22px); color: var(--ink-2); font-weight: 600; }
p.line { font-size: clamp(26px, 6vw, 56px); line-height: 1; letter-spacing: -.035em; font-weight: 800; }
.handoff { display: grid; gap: 24px; justify-items: center; width: 100%; }

/* The phone, drawn in code: an example screen, never a real job */
.phone { width: min(270px, 70vw); background: var(--paper); border: 2px solid var(--navy); border-radius: 30px; padding: 12px 16px 18px; box-shadow: 0 2px 4px rgba(1, 35, 98, .16), 0 30px 60px rgba(1, 35, 98, .28); }
.phone-bar { display: flex; justify-content: center; padding-bottom: 10px; }
.phone-bar span { width: 64px; height: 6px; border-radius: 6px; background: var(--navy); opacity: .85; }
.phone-brand { font-size: 12px; font-weight: 700; color: var(--royal); }
.phone-title { font-size: 21px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin: 2px 0 12px; }
.phone-list li { display: grid; grid-template-columns: 22px 1fr 34px 34px; align-items: center; gap: 8px; padding: 9px 0; border-top: 1px solid rgba(1, 35, 98, .12); font-size: 14px; font-weight: 600; }
.tick { width: 20px; height: 20px; border-radius: 50%; background: var(--sky); position: relative; }
.tick::after { content: ""; position: absolute; left: 6px; top: 3px; width: 6px; height: 10px; border: solid var(--paper); border-width: 0 2.5px 2.5px 0; transform: rotate(40deg); }
.slot { height: 26px; border-radius: 6px; border: 1.5px dashed var(--ink-3); background: var(--mist); }
.phone-note { margin-top: 10px; font-size: 11px; color: var(--ink-2); }

.choose { display: grid; gap: 10px; width: min(420px, 100%); text-align: center; scroll-margin-top: 90px; }
.choose-lead { font-size: 17px; font-weight: 600; background: var(--paper); border-radius: 14px; padding: 8px 12px; justify-self: center; }
.btn { display: block; min-height: 54px; padding: 15px 20px; border-radius: 16px; background: var(--royal); color: var(--paper); font-weight: 800; font-size: 18px; text-decoration: none; box-shadow: 0 8px 22px rgba(2, 109, 213, .32); transition: transform .14s ease-out; }
.btn-alt { background: var(--navy); box-shadow: 0 8px 22px rgba(1, 35, 98, .3); }
.btn:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .btn:hover { transform: translateY(-2px); } }

.replay { position: absolute; right: 16px; bottom: 16px; z-index: 5; font: inherit; font-size: 14px; font-weight: 700; color: var(--navy); background: var(--paper); border: 0; border-radius: 999px; padding: 9px 14px; box-shadow: 0 2px 10px rgba(1, 35, 98, .18); cursor: pointer; }

/* Pinned and scroll-driven: only under the class the script sets */
.js .intro { height: calc(100svh + var(--per-beat) * 6.7); background: var(--mist); }
.js .stage { position: sticky; top: 0; height: 100svh; padding: 0; display: block; overflow: hidden; }
.js .film { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.js .lines { position: absolute; left: 0; right: 0; bottom: 14svh; display: block; padding: 0 20px; pointer-events: none; }
.js .line { position: absolute; left: 50%; bottom: 0; width: max-content; max-width: calc(100vw - 32px); transform: translate(-50%, 12px); opacity: 0; background: var(--paper); border-radius: 22px; padding: 16px 24px; box-shadow: 0 2px 4px rgba(1, 35, 98, .08), 0 18px 44px rgba(1, 35, 98, .16); will-change: transform, opacity; }
.js p.line { font-size: clamp(26px, 4.4vw, 60px); }
.js .line-hero { padding: 22px 28px 20px; }
.js .line-hero h2 { font-size: clamp(40px, 8.2vw, 124px); }
.js .handoff { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 22px; padding: 84px 20px 24px; pointer-events: none; }
.js .handoff.on { pointer-events: auto; }
.js .phone { will-change: transform; }
.js .choose { will-change: transform, opacity; opacity: 0; }
@media (min-width: 900px) {
  .js .handoff { grid-template-columns: auto minmax(0, 420px); column-gap: 64px; align-items: center; justify-content: center; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .js .handoff { grid-template-columns: auto minmax(0, 360px); column-gap: 28px; align-items: center; justify-content: center; padding-top: 64px; }
  .js .phone { transform-origin: center; zoom: .7; }
  .js .lines { bottom: 8svh; }
}

/* Reduced motion: every sequence shown finished, still */
.js.still .intro { height: auto; }
.js.still .stage { position: relative; height: auto; min-height: 100svh; display: grid; padding: 110px 20px 48px; }
.js.still .lines { position: static; display: grid; }
.js.still .line { position: static; transform: none; opacity: 1; margin: 0 auto; }
.js.still .handoff { position: static; padding: 0; pointer-events: auto; }
.js.still .choose { opacity: 1; }

/* Services band: carries the flat's light and the logo's blues, not white cards on white */
.band { background: var(--navy); color: var(--paper); padding: clamp(56px, 9vw, 120px) max(20px, 5vw); }
.band h2 { font-size: clamp(34px, 6vw, 72px); letter-spacing: -.045em; line-height: .95; font-weight: 800; }
.cards { display: grid; gap: 14px; margin-top: 32px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { border-radius: 20px; padding: 22px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); display: grid; gap: 8px; align-content: start; }
.card h3 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.card p { font-size: 16px; color: rgba(255, 255, 255, .82); }
.card-empty { border-style: dashed; background: none; }
.ph { font-size: 13px !important; color: var(--sky) !important; font-weight: 600; }
.steps { margin-top: 40px; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: s; }
.steps li { counter-increment: s; font-size: 16px; color: rgba(255, 255, 255, .82); padding-top: 14px; border-top: 2px solid var(--sky); }
.steps b { display: block; color: var(--paper); font-size: 20px; }
.steps b::before { content: counter(s) ". "; color: var(--sky); }

.foot { background: var(--paper); padding: 40px 20px calc(40px + env(safe-area-inset-bottom)); display: grid; justify-items: center; gap: 8px; text-align: center; font-size: 15px; color: var(--ink-2); }
.foot img { width: 140px; }
.foot .ph { color: var(--royal) !important; }
.real { margin-top: 14px; min-height: 160px; }

/* The hero's words sit straight on the floor: a plate there would cover the mirror the page is showing. */
.js .line-hero { background: none; box-shadow: none; padding: 0; }
.js .line-hero h2 { font-size: clamp(40px, 7vw, 104px); }
.js .line-hero p { color: var(--navy); }
.js.still .line-hero { background: var(--paper); padding: 22px 28px 20px; }

/* The hero's words sit in the middle of the back wall, under the fan; the floor's mirror stays clear. Their centre is 52% down the screen. */
.js .line-hero { bottom: 34svh; translate: 0 50%; }
.js.still .line-hero { translate: none; }
@media (max-height: 520px) and (orientation: landscape) { .js .line-hero { bottom: 40svh; } }
/* On a wide screen the headline is one line across the middle of the wall. It may cross the doorway on the left; it is sized and set a touch left of centre so it stops short of the window. */
@media (min-width: 761px) {
  .js .line-hero { left: 47.5%; text-align: center; }
  .js .line-hero h2 { white-space: nowrap; font-size: clamp(40px, 5.6vw, 84px); }
}

/* On a phone the mascot stands in the lower third, so the lines sit above him. */
@media (max-width: 760px) {
  .js .lines { bottom: 45svh; }
  .js .line-hero { bottom: 3svh; }
  .js.still .lines, .js.still .line-hero { bottom: auto; }
}

/* ---- The film's window, the divider, and the mascot's own layer ---- */
.cast { display: none; }
/* The details. Without scripts: each a before and after pair, side by side. */
.zooms { display: grid; gap: 14px; width: 100%; max-width: 960px; }
.zoom { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.zoom img { display: block; width: 100%; height: auto; border-radius: 12px; }
.z-edge, .chip { display: none; }
.js .zooms { display: block; position: absolute; inset: 0; z-index: 1; max-width: none; pointer-events: none; }
.js .zoom { display: block; position: absolute; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: var(--mist); box-shadow: 0 0 0 4px var(--paper), 0 2px 4px rgba(1, 35, 98, .14), 0 24px 60px rgba(1, 35, 98, .32); opacity: 0; visibility: hidden; will-change: transform, opacity; }
.js .zoom img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.js .z-before { z-index: 1; }
.js .z-edge { display: block; position: absolute; z-index: 2; top: 0; bottom: 0; left: 0; width: 3px; margin-left: -1.5px; background: var(--paper); box-shadow: 0 0 16px 5px rgba(255, 255, 255, .75); opacity: 0; }
.js .chip { display: block; position: absolute; z-index: 3; top: 12px; font-size: 13px; font-weight: 700; color: var(--navy); background: var(--paper); border-radius: 999px; padding: 6px 12px; }
.js .chip-before { right: 12px; }
.js .chip-after { left: 12px; opacity: 0; }
.js.still .zooms { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.js.still .zoom { position: static; opacity: 1; visibility: visible; box-shadow: none; }
.js.still .z-before, .js.still .z-edge, .js.still .chip { display: none; }
.js .window { position: absolute; inset: 0; z-index: 1; overflow: hidden; }
.js .cast { display: block; position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.js .lines { z-index: 3; }
.js .handoff { z-index: 4; }
.js.still .window { position: relative; inset: auto; width: min(100%, 960px); aspect-ratio: 16 / 9; border-radius: 24px; display: grid; }
.js.still .cast { display: none; }
.js.still .film { position: absolute; }

/* Desktop: the film is a framed window on the white page, the headline above it, the lines below, the mascot beside it.
   Phones keep the full-bleed layout for now; they are tuned later. */
@media (min-width: 761px) and (min-height: 600px) {
  .js:not(.still) .intro { background: var(--paper); }
  .js:not(.still) .stage {
    --win-w: min(64vw, calc((100svh - 290px) * 16 / 9));
    --win-h: calc(var(--win-w) * 9 / 16);
    --win-x: calc((100vw - var(--win-w)) / 2 + (0.25 * (var(--win-h) + 3.5svh) - 22px - 14svh) / 2);   /* ladder Dustin, the window and the right Dustin, centred as one group: his ladder overhangs the left by a quarter of his height less 22px, the other overhangs the right by 14svh */
    --win-y: calc(50svh - var(--win-h) / 2 + 40px);
  }
  .js:not(.still) .window { inset: auto; left: var(--win-x); top: var(--win-y); width: var(--win-w); height: var(--win-h); border-radius: 28px; background: var(--mist); box-shadow: 0 2px 4px rgba(1, 35, 98, .1), 0 30px 70px rgba(1, 35, 98, .2); }
  .js:not(.still) .lines { inset: 0; bottom: 0; padding: 0; }
  .js:not(.still) .line { left: calc(var(--win-x) + var(--win-w) / 2); bottom: auto; top: calc(var(--win-y) + var(--win-h) + 14px); padding: 12px 22px; border-radius: 18px; }
  .js:not(.still) p.line { font-size: clamp(22px, 2.6vw, 38px); }
  .js:not(.still) .line-hero { left: calc(var(--win-x) + var(--win-w) / 2); top: auto; bottom: calc(100% - var(--win-y) + 14px); translate: none; padding: 0; }
  .js:not(.still) .line-hero h2 { font-size: clamp(34px, 4.2vw, 62px); }
  .js:not(.still) .line-hero p { margin-top: 8px; font-size: clamp(15px, 1.5vw, 20px); }
  .js:not(.still) .handoff { padding: 16px; gap: 16px; }
  .js:not(.still) .handoff .phone { zoom: .82; }
}


/* ---- The hero: two lines, then the customer's portal in a window that runs past the fold ---- */
.lead { background: var(--paper); padding: 168px 20px 0; display: grid; justify-items: center; gap: 44px; overflow: hidden; }
.lead-copy { display: grid; justify-items: center; gap: 14px; text-align: center; max-width: 1100px; }
.lead h1 { font-size: clamp(34px, 5vw, 78px); line-height: .95; letter-spacing: -.05em; font-weight: 800; color: var(--navy); }
.lead-two { font-size: clamp(22px, 2.9vw, 42px); line-height: 1.05; letter-spacing: -.035em; font-weight: 800; color: var(--royal); }
.lead-sub { font-size: clamp(15px, 1.4vw, 19px); color: var(--navy); }
.lead-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 10px; }
.lead-cta .btn { width: auto; padding-left: 26px; padding-right: 26px; }
.btn-ghost { background: var(--mist); color: var(--royal); box-shadow: none; }

.lead-stage { position: relative; width: min(1120px, 100%); }
.portal { margin: 0; width: 100%; background: var(--paper); border-radius: 22px 22px 0 0; border: 1px solid rgba(1, 35, 98, .12); border-bottom: 0; box-shadow: 0 2px 4px rgba(1, 35, 98, .08), 0 30px 80px rgba(1, 35, 98, .18); overflow: hidden; }
.portal-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid rgba(1, 35, 98, .1); font-size: 13px; font-weight: 700; color: var(--navy); }
.portal-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(1, 35, 98, .16); }
.portal-bar span { margin-left: 10px; }
.portal-bar em { margin-left: auto; font-style: normal; font-weight: 600; color: var(--royal); background: var(--mist); border-radius: 999px; padding: 4px 10px; }
.portal-body { display: grid; grid-template-columns: 190px minmax(0, 1fr); min-height: 520px; }
.portal-nav { display: grid; align-content: start; gap: 4px; padding: 18px 12px; background: var(--mist); border-right: 1px solid rgba(1, 35, 98, .08); font-size: 14px; font-weight: 600; color: var(--ink-2); }
.portal-nav img { width: 64px; height: auto; margin: 0 0 12px 8px; }
.portal-nav span { padding: 9px 12px; border-radius: 10px; }
.portal-nav .on { background: var(--paper); color: var(--navy); box-shadow: 0 1px 3px rgba(1, 35, 98, .12); }
.portal-main { padding: 24px 28px 34px; display: grid; gap: 20px; align-content: start; }
.portal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.portal-kicker { font-size: 13px; font-weight: 700; color: var(--royal); }
.portal-title { font-size: 30px; font-weight: 800; letter-spacing: -.035em; color: var(--navy); line-height: 1.05; }
.portal-chip { font-size: 13px; font-weight: 700; color: var(--navy); background: var(--mist); border-radius: 999px; padding: 7px 12px; white-space: nowrap; }

.track { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; counter-reset: t; }
.track li { counter-increment: t; position: relative; padding-top: 16px; font-size: 14px; font-weight: 700; color: var(--ink-2); border-top: 4px solid rgba(1, 35, 98, .12); transition: color .4s, border-color .4s; }
.track li.done { color: var(--navy); border-top-color: var(--royal); }
.track li.now { color: var(--royal); border-top-color: var(--sky); }

.portal-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 16px; }
.pcard { border: 1px solid rgba(1, 35, 98, .12); border-radius: 16px; padding: 18px; display: grid; gap: 12px; align-content: start; }
.pcard h3 { font-size: 15px; font-weight: 800; color: var(--navy); }
.pcard-row { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.pcard-row > div { display: grid; gap: 10px; justify-items: start; }
.items { list-style: none; display: grid; gap: 10px; font-size: 15px; font-weight: 600; color: var(--navy); }
.items li, .pnote { display: flex; align-items: center; gap: 10px; }
.pnote { font-size: 15px; font-weight: 600; color: var(--navy); }
.lead-stage .tick { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(1, 35, 98, .22); background: var(--paper) center / 12px no-repeat; transition: background-color .35s, border-color .35s; }
.lead-stage .tick.on, .lead-stage li.on .tick { border-color: var(--royal); background-color: var(--royal); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.3l2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.shot { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--mist); }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot img + img { transition: clip-path .9s cubic-bezier(.3, .7, .2, 1); }
.shot b { position: absolute; left: 8px; bottom: 8px; font-size: 12px; font-weight: 700; color: var(--navy); background: var(--paper); border-radius: 999px; padding: 4px 9px; }
.psign { font-size: 15px; font-weight: 700; color: var(--ink-2); background: var(--mist); border-radius: 999px; padding: 11px 18px; transition: background-color .4s, color .4s, box-shadow .4s; }
.psign.on { background: var(--royal); color: var(--paper); box-shadow: 0 6px 18px rgba(2, 109, 213, .3); }

/* The portal plays itself: only under the class its script sets. Without it, the finished state shows. */
.lead-stage .items li .tick { border-color: var(--royal); background-color: var(--royal); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.3l2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.lead-stage.play .items li:not(.on) .tick { border-color: rgba(1, 35, 98, .22); background-color: var(--paper); background-image: none; }
.lead-stage.play .shot:not(.on) img + img { clip-path: inset(0 100% 0 0); }
.lead-stage .shot img + img { clip-path: inset(0 0 0 0); }

@media (max-width: 760px) {
  .lead { padding-top: 150px; gap: 30px; }
  .portal-body { grid-template-columns: 1fr; min-height: 0; }
  .portal-nav { display: none; }
  .portal-main { padding: 18px 16px 26px; }
  .portal-grid, .pcard-row { grid-template-columns: 1fr; }
  .track { grid-template-columns: repeat(5, auto); font-size: 12px; }
  .track li { font-size: 12px; }
  .portal-title { font-size: 24px; }
}

/* The same booking on a phone, standing over the laptop window's right edge. Wide screens only for now. */
.pphone { display: none; }
@media (min-width: 1000px) {
  .lead h1 { white-space: nowrap; }
  /* A phone, not a card: tall body, dark bezel, camera cut-out, status bar, side buttons, home bar. */
  .pphone { display: flex; flex-direction: column; gap: 11px; margin: 0; position: absolute; right: -58px; top: 34px; width: 276px; aspect-ratio: 9 / 19; padding: 10px 16px 10px; background: var(--paper); border: 10px solid #0A1530; border-radius: 48px; box-shadow: 0 0 0 1.5px #2A3A63, inset 0 0 0 1.5px rgba(255, 255, 255, .5), 0 2px 4px rgba(1, 35, 98, .2), 0 34px 80px rgba(1, 35, 98, .4); }
  .pphone::before, .pphone::after { content: ""; position: absolute; width: 4px; border-radius: 3px; background: #0A1530; }
  .pphone::before { left: -15px; top: 104px; height: 34px; box-shadow: 0 48px 0 #0A1530; }   /* volume keys */
  .pphone::after { right: -15px; top: 132px; height: 62px; }                                  /* power key */
  .pphone-status { position: relative; display: flex; justify-content: space-between; align-items: center; height: 26px; padding: 0 6px; font-size: 13px; font-weight: 800; color: var(--navy); }
  .pp-cam { position: absolute; left: 50%; top: 2px; width: 74px; height: 22px; margin-left: -37px; border-radius: 999px; background: #0A1530; }
  .pp-icons { display: flex; align-items: center; gap: 6px; }
  .pp-signal { width: 16px; height: 11px; background: linear-gradient(to right, var(--navy) 0 3px, transparent 3px 4.3px, var(--navy) 4.3px 7.3px, transparent 7.3px 8.6px, var(--navy) 8.6px 11.6px, transparent 11.6px 13px, var(--navy) 13px 16px); clip-path: polygon(0 100%, 0 64%, 3px 64%, 3px 100%, 4.3px 100%, 4.3px 42%, 7.3px 42%, 7.3px 100%, 8.6px 100%, 8.6px 21%, 11.6px 21%, 11.6px 100%, 13px 100%, 13px 0, 16px 0, 16px 100%); }
  .pp-batt { position: relative; width: 23px; height: 11px; border: 1.5px solid var(--navy); border-radius: 3.5px; background: linear-gradient(var(--navy), var(--navy)) 1.5px 50% / 14px 5px no-repeat; }
  .pp-batt::after { content: ""; position: absolute; right: -4px; top: 2px; width: 2px; height: 4px; border-radius: 0 2px 2px 0; background: var(--navy); }
  .pp-home { margin: auto auto 0; width: 104px; height: 5px; border-radius: 999px; background: #0A1530; }
  .pphone .psign { margin-top: 2px; }
  .portal-body { min-height: 596px; }
  .pphone-brand { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; color: var(--navy); }
  .pphone-brand em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--royal); background: var(--mist); border-radius: 999px; padding: 3px 8px; }
  .pphone-title { font-size: 24px; font-weight: 800; letter-spacing: -.035em; line-height: 1.05; color: var(--navy); margin-top: -8px; }
  .pphone .items { font-size: 14px; gap: 9px; }
  .pphone .shot { aspect-ratio: 16 / 9; }
  .pphone .psign { text-align: center; font-size: 14px; }
  .portal-main { padding-right: 250px; }
}

/* The portal's parts, after the build spec: six-step live timeline, quote with one total, item-by-item sign-off. */
.track { grid-template-columns: repeat(6, 1fr); }
.track li { font-size: 13px; line-height: 1.2; }
.portal-tools { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; font-size: 13px; font-weight: 700; background: var(--mist); border-radius: 999px; padding: 3px; }
.lang b, .lang i { font-style: normal; padding: 4px 10px; border-radius: 999px; color: var(--ink-2); }
.lang b { background: var(--paper); color: var(--navy); box-shadow: 0 1px 3px rgba(1, 35, 98, .14); }
.qitems { list-style: none; display: grid; gap: 9px; font-size: 14px; font-weight: 600; color: var(--navy); }
.qitems li { display: flex; justify-content: space-between; gap: 12px; }
.qitems b { color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.qtotal { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid rgba(1, 35, 98, .12); font-size: 20px; font-weight: 800; color: var(--navy); }
.sk { display: block; width: 96px; height: 22px; border-radius: 8px; background: var(--mist); }
.qnote { font-size: 13px; color: var(--ink-2); }
.plink { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--royal); text-decoration: underline; }
.items { gap: 10px; }
.items li { gap: 12px; }
.items .shot { flex: none; display: block; width: 92px; aspect-ratio: 4 / 3; border-radius: 10px; }
.ilabel { display: grid; flex: 1; min-width: 0; }
.ilabel small { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.pflag { font-size: 12px; font-weight: 600; color: var(--ink-2); text-align: center; }
.portal-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
@media (min-width: 1000px) {
  .pphone .items { font-size: 14px; gap: 9px; }
  .pphone .items .shot { width: 76px; }
  .pphone-title { margin-top: -6px; }
  .pphone .pflag { margin-top: auto; }
  .pphone .pp-home { margin-top: 2px; }
}
@media (max-width: 760px) { .track { grid-template-columns: repeat(3, 1fr); row-gap: 12px; } .portal-tools .portal-chip { display: none; } }

/* The navigation: three links in the middle of the header on wide screens. PLACEHOLDER: Login has nowhere to go until the portal exists. */
.nav { display: none; }
@media (min-width: 761px) {
  .nav { display: flex; gap: 6px; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: rgba(255, 255, 255, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 999px; padding: 6px; box-shadow: 0 1px 3px rgba(1, 35, 98, .1), 0 8px 24px rgba(1, 35, 98, .1); }
  .nav a { font-size: 16px; font-weight: 700; color: var(--navy); text-decoration: none; padding: 9px 18px; border-radius: 999px; transition: background-color .15s; }
  .nav a:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
}
@media (min-width: 761px) and (hover: hover) and (pointer: fine) { .nav a:hover { background: var(--mist); } }

/* Login: one gateway, two doors, opened from the nav. */
.login { display: none; }
@media (min-width: 761px) {
  .login { display: block; position: relative; }
  .login summary { list-style: none; cursor: pointer; font-size: 16px; font-weight: 700; color: var(--navy); padding: 9px 18px; border-radius: 999px; transition: background-color .15s; }
  .login summary::-webkit-details-marker { display: none; }
  .login[open] summary { background: var(--mist); }
  .login summary:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
  .login-panel { position: absolute; top: calc(100% + 14px); right: -6px; width: 340px; display: grid; gap: 10px; padding: 16px; background: var(--paper); border-radius: 22px; box-shadow: 0 2px 4px rgba(1, 35, 98, .1), 0 24px 60px rgba(1, 35, 98, .24); }
  .login-lead { font-size: 13px; font-weight: 700; color: var(--royal); }
  .nav .door { display: grid; gap: 3px; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(1, 35, 98, .14); }
  .door b { font-size: 16px; font-weight: 800; color: var(--navy); }
  .door span { font-size: 13px; font-weight: 500; color: var(--ink-2); line-height: 1.35; }
  .login-note { font-size: 12px; color: var(--ink-2); }
}
@media (min-width: 761px) and (hover: hover) and (pointer: fine) { .login summary:hover { background: var(--mist); } .nav .door:hover { background: var(--mist); } }

/* EN / 中文 switch in the nav. It needs the script, so it shows only when the script runs. */
.langsw { display: none; }
@media (min-width: 761px) {
  .js .langsw { display: flex; align-items: center; margin-left: 6px; padding: 3px; background: var(--mist); border-radius: 999px; }
  .langsw button { font: inherit; font-size: 14px; font-weight: 700; color: var(--ink-2); background: none; border: 0; padding: 6px 12px; border-radius: 999px; cursor: pointer; }
  .langsw button[aria-pressed="true"] { background: var(--paper); color: var(--navy); box-shadow: 0 1px 3px rgba(1, 35, 98, .14); }
  .langsw button:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
}
/* Chinese: system Chinese faces, looser display tracking, and the example portal's own switch follows the page. */
:lang(zh-Hans) body { font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", var(--font); }
:lang(zh-Hans) h1, :lang(zh-Hans) h2, :lang(zh-Hans) .lead-two { letter-spacing: 0; }
html:lang(zh-Hans) .lang b { background: none; color: var(--ink-2); box-shadow: none; }
html:lang(zh-Hans) .lang i { background: var(--paper); color: var(--navy); box-shadow: 0 1px 3px rgba(1, 35, 98, .14); }

/* The calculator: services to tick on the left, the selection and the email on the right. */
.calc { scroll-margin-top: 120px; }
.calc-lead { font-size: 20px; color: var(--ink-2); margin-top: 8px; }
.calc-form { display: grid; gap: 24px; margin-top: 32px; align-items: start; }
@media (min-width: 900px) { .calc-form { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); } }
.calc-picks { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 16px; }
.calc-picks legend, .calc-side h3, .calc-field > span { font-size: 15px; font-weight: 800; color: var(--royal); padding: 0; margin-bottom: 4px; }
.picks { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.pick { position: relative; display: block; cursor: pointer; }
.pick input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pick span { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 16px 18px; border-radius: 16px; border: 1.5px solid rgba(1, 35, 98, .16); background: var(--paper); font-size: 17px; font-weight: 700; color: var(--navy); transition: border-color .15s, background-color .15s; }
.pick span::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid rgba(1, 35, 98, .3); background: var(--paper) center / 14px no-repeat; transition: background-color .15s, border-color .15s; }
.pick input:checked + span { border-color: var(--royal); background: var(--mist); }
.pick input:checked + span::before { border-color: var(--royal); background-color: var(--royal); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.5l3 3 6-6.5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.pick input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }
.calc-side { display: grid; gap: 14px; padding: 24px; border-radius: 22px; background: var(--paper); box-shadow: 0 2px 4px rgba(1, 35, 98, .08), 0 18px 48px rgba(1, 35, 98, .14); }
.calc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 16px; font-weight: 600; color: var(--navy); }
.calc-list:empty { display: none; }
.calc-empty { font-size: 15px; color: var(--ink-2); }
.calc-field { display: grid; gap: 4px; }
.calc-field input { font: inherit; font-size: 17px; color: var(--navy); min-height: 52px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid rgba(1, 35, 98, .2); background: var(--paper); width: 100%; }
.calc-field input:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-color: var(--royal); }
.calc-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.calc-check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--royal); }
.calc-side .btn { justify-self: start; border: 0; cursor: pointer; font-family: inherit; }
.calc-note { font-size: 14px; font-weight: 700; color: var(--royal); }
@media (hover: hover) and (pointer: fine) { .pick:hover span { border-color: var(--royal); } }

/* The calculator sits on the navy band: its lead and first label read in light ink there. */
.calc .calc-lead { color: rgba(255, 255, 255, .82); }
.calc .calc-picks legend { color: var(--sky); }

/* Dustin, the helper in the corner. It needs the script, so it shows only when the script runs. */
.bot { display: none; }
.js .bot { display: block; position: fixed; right: 20px; bottom: 20px; z-index: 60; }
.bot-open { display: flex; align-items: center; gap: 10px; font: inherit; font-size: 16px; font-weight: 800; color: var(--navy); background: var(--paper); border: 0; border-radius: 999px; padding: 8px 20px 8px 8px; min-height: 56px; cursor: pointer; box-shadow: 0 2px 4px rgba(1, 35, 98, .12), 0 14px 36px rgba(1, 35, 98, .22); }
.bot-open img { width: 40px; height: 40px; object-fit: cover; object-position: top; border-radius: 50%; background: var(--mist); }
.bot-open:focus-visible, .bot-close:focus-visible, .bot-chips button:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.bot-panel { position: absolute; right: 0; bottom: calc(100% + 12px); width: min(360px, calc(100vw - 40px)); max-height: min(560px, calc(100svh - 120px)); display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; background: var(--paper); border-radius: 22px; overflow: hidden; box-shadow: 0 2px 4px rgba(1, 35, 98, .1), 0 24px 60px rgba(1, 35, 98, .28); }
.bot-panel[hidden] { display: none; }
.bot-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; background: var(--navy); color: var(--paper); }
.bot-head p { display: grid; }
.bot-head b { font-size: 17px; font-weight: 800; }
.bot-head span { font-size: 12px; color: rgba(255, 255, 255, .78); }
.bot-close { font: inherit; font-size: 24px; line-height: 1; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: var(--paper); cursor: pointer; }
.bot-log { display: flex; flex-direction: column; gap: 8px; padding: 16px; overflow-y: auto; min-height: 120px; }
.bot-msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.4; }
.bot-msg.it { align-self: flex-start; background: var(--mist); color: var(--navy); border-bottom-left-radius: 4px; }
.bot-msg.me { align-self: flex-end; background: var(--royal); color: var(--paper); border-bottom-right-radius: 4px; }
.bot-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 16px 12px; }
.bot-chips button { font: inherit; font-size: 14px; font-weight: 700; color: var(--royal); background: var(--paper); border: 1.5px solid rgba(0, 112, 214, .4); border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.bot-note { font-size: 12px; color: var(--ink-2); padding: 0 16px 14px; }
@media (hover: hover) and (pointer: fine) { .bot-chips button:hover { background: var(--mist); } }

/* The before and after pictures are generated illustrations. Each one says so. */
.chip-illus { display: none; }
.js .chip-illus { top: auto; bottom: 12px; left: 12px; font-size: 12px; font-weight: 600; color: var(--paper); background: rgba(1, 35, 98, .72); }
