/* Design launch page. Scoped under body.design-launch so the shared v2 stylesheet (app.css)
   is untouched. Tokens, header, footer, buttons, type and the cookie bar come from app.css. */

body.design-launch {
  --rail: 0px;
  /* One spacing scale for the whole page: the gap between sections, and the inner padding of banded sections */
  --section-gap: clamp(96px, 10vw, 144px);
  --section-pad: clamp(72px, 8vw, 120px);
  --ease-swift: cubic-bezier(0.22, 1, 0.36, 1);
  --frame-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 28px 56px -28px rgba(0, 0, 0, 0.7), 0 8px 18px -8px rgba(0, 0, 0, 0.4);
  --lift-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.85), 0 10px 24px -8px rgba(0, 0, 0, 0.55);
  overflow-x: clip;
}

body.design-launch .slot-cap {
  margin-top: var(--s-3);
  font-size: var(--fs-help);
  line-height: 1.5;
  color: var(--text-3);
  max-width: 64ch;
}

/* Shared section head: problem as the headline, promise underneath */
.dl-section-head { max-width: 46rem; }
.dl-section-head h2 { font-size: clamp(2.25rem, 1.2rem + 3.4vw, 4rem); letter-spacing: -0.038em; line-height: 1; font-weight: 700; }
.dl-section-head p { margin-top: var(--s-4); color: var(--text-2); font-size: var(--fs-lead); line-height: 1.5; max-width: 52ch; }

/* ---------- Hero ---------- */
.dl-hero {
  position: relative;
  overflow: clip;
  padding-top: clamp(40px, 5.5vw, 80px);
  padding-bottom: var(--s-4);
  background: var(--bg);
}
.dl-hero-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--s-5) clamp(32px, 5vw, 80px);
  align-items: end;
}
.dl-hero-head h1 { grid-column: 1 / -1; }
.dl-hero h1 {
  font-size: clamp(2.25rem, 1.2rem + 3.4vw, 4rem);
  line-height: 1;
  letter-spacing: -0.038em;
  font-weight: 700;
  text-wrap: balance;
}
.dl-hero h1 span { display: block; }
.dl-hero h1 .h-problem { color: var(--text-3); font-weight: 650; }
.dl-hero h1 .h-promise { margin-top: 0.08em; color: var(--text); }
.dl-hero .lead { grid-column: 1; font-size: var(--fs-lead); line-height: 1.5; color: var(--text-2); max-width: 46ch; }

/* Register interest, with the launch timing right beside it */
.dl-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); }
.dl-cta .actions { margin: 0; }
.dl-launch-note {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: var(--fs-small); font-weight: 550; color: var(--text);
  white-space: nowrap;
}
.dl-launch-dot {
  flex: none; width: 8px; height: 8px; border-radius: 50%;
  background: var(--green-light);
  box-shadow: 0 0 0 4px var(--green-wash);
}
.dl-hero-head > .dl-cta { grid-column: 2; grid-row: 2 / span 2; align-self: end; justify-self: end; flex-direction: column; align-items: flex-end; }

.dl-hero-shot { margin: clamp(16px, 3vw, 40px) 0 0; perspective: 1800px; }
.dl-hero-frame {
  --rx: 0deg; --ry: 0deg;
  width: min(100% - var(--gutter) * 2, 1400px);
  margin-inline: auto;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 600ms var(--ease-swift);
  -webkit-mask-image: radial-gradient(ellipse 62% 70% at 50% 50%, #000 66%, transparent 100%);
          mask-image: radial-gradient(ellipse 62% 70% at 50% 50%, #000 66%, transparent 100%);
}
.dl-hero-frame img { display: block; width: 100%; height: auto; }
body.design-launch .dl-hero-shot .slot-cap { margin: var(--s-2) auto 0; text-align: center; padding-inline: var(--gutter); }

.dl-hero-foot { display: grid; justify-items: center; gap: var(--s-5); margin-top: var(--s-6); }
.dl-offer-line {
  display: flex; gap: var(--s-3); align-items: flex-start;
  max-width: 52ch; font-size: var(--fs-small); line-height: 1.5; color: var(--text-2);
}
.dl-offer-line svg { flex: none; width: 22px; height: 22px; margin-top: -1px; padding: 3px; border-radius: 6px; background: var(--green); color: var(--green-ink); }
.dl-offer-line strong { color: var(--text); }

.dl-gates {
  width: min(100%, 900px);
  background: var(--surface-1);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: 0 18px 36px -16px rgba(0, 0, 0, 0.7);
}
.dl-gates ol { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); margin: 0; padding: 4px; list-style: none; }
.dl-gates a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 60px; padding: 6px 2px;
  color: var(--text-2); text-decoration: none; font-size: var(--fs-help); font-weight: 500; white-space: nowrap;
  border-radius: 10px;
  transition: color 160ms var(--ease-out), background-color 160ms var(--ease-out);
}
.dl-gates a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.dl-gates .g-n {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 4px; border-radius: 6px;
  border: 1.5px solid var(--line-strong);
  font-size: 0.875rem; font-weight: 650; color: var(--text-3); font-variant-numeric: tabular-nums;
  transition: background-color 220ms var(--ease-out), border-color 220ms var(--ease-out), color 220ms var(--ease-out);
}
.dl-gates a:hover .g-n { border-color: var(--text-3); color: var(--text); }
.dl-gates a[aria-current="step"] { color: var(--text); }
/* Step numbers stay neutral grey in every state */
.dl-gates a[aria-current="step"] .g-n { border-color: var(--text-3); color: var(--text); }
.dl-gates a.is-done .g-n { background: rgba(255, 255, 255, 0.08); border-color: var(--line-strong); color: var(--text-2); }

/* ---------- Problem and promise ---------- */
.dl-story { margin-top: var(--section-gap); }
.dl-story-inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.dl-story h2 { font-size: clamp(2rem, 1.2rem + 2.8vw, 3.5rem); letter-spacing: -0.035em; line-height: 1.04; font-weight: 680; max-width: 17ch; }
.dl-story-body p { color: var(--text-2); font-size: 1.125rem; line-height: 1.6; max-width: 42ch; }
.dl-story-body .dl-promise { margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--green-line); color: var(--text); font-weight: 550; }

/* ---------- Shot frames: each capture keeps its own shape ---------- */
.shot {
  position: relative;
  aspect-ratio: var(--ar, 16 / 10);
  border-radius: 14px; overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  box-shadow: var(--frame-shadow);
}
.shot img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* ---------- Workflow ---------- */
.dl-workflow {
  margin-top: var(--section-gap);
  padding-block: var(--section-pad);
  background: var(--surface-1);
  border-block: 1px solid var(--line);
  scroll-margin-top: var(--header-h);
}
.flow { margin-top: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: minmax(230px, 280px) minmax(0, 1fr); gap: clamp(32px, 4vw, 72px); align-items: start; }

.flow > *, .bld > *, .mx > *, .cab > *, .feature > * { min-width: 0; }
.flow-nav { position: sticky; top: calc(var(--header-h) + 24px); }
.fp-bar { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin: 0 0 var(--s-4); }
.fp-bar i { height: 4px; border-radius: 2px; background: var(--line); transition: background-color 280ms var(--ease-out); }
.fp-bar i.is-on { background: var(--green); }
.flow-links { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.flow-links a {
  display: grid; grid-template-columns: 26px minmax(0, 1fr); align-items: center; gap: var(--s-3);
  min-height: 50px; padding: 6px var(--s-3);
  border-bottom: 1px solid var(--line);
  color: var(--text-2); text-decoration: none; font-size: 0.9375rem; font-weight: 500; line-height: 1.3;
  transition: color 180ms var(--ease-out), background-color 180ms var(--ease-out);
}
.flow-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.03); }
.fl-n {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px;
  border: 1.5px solid var(--line-strong);
  font-size: 0.8125rem; font-weight: 650; color: var(--text-3); font-variant-numeric: tabular-nums;
  transition: background-color 240ms var(--ease-out), border-color 240ms var(--ease-out), color 240ms var(--ease-out);
}
.fl-s { display: none; }
.flow-links a[aria-current="step"] { color: var(--text); font-weight: 600; background: var(--surface-3); border-radius: 10px; border-bottom-color: transparent; }
.flow-links a[aria-current="step"] .fl-n { border-color: var(--text-3); color: var(--text); }
.flow-links a.is-done .fl-n { background: rgba(255, 255, 255, 0.08); border-color: var(--line-strong); color: var(--text-2); }

.flow-steps { margin: 0; padding: 0; list-style: none; }
.flow-step {
  padding-block: clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.flow-step:first-child { padding-top: 0; border-top: 0; }
.flow-step:focus { outline: none; }
.fs-head h3 {
  display: flex; align-items: center; gap: var(--s-3);
  font-size: var(--fs-h2); letter-spacing: -0.03em; line-height: 1.08; font-weight: 650;
}
.fs-n {
  display: inline-grid; place-items: center; flex: none;
  width: 36px; height: 36px; border-radius: 9px;
  border: 1.5px solid var(--line-strong); color: var(--text-3);
  font-size: 1rem; font-weight: 650; font-variant-numeric: tabular-nums;
  transition: background-color 300ms var(--ease-out), color 300ms var(--ease-out);
}
.flow.is-live .flow-step.is-current .fs-n { border-color: var(--text-3); color: var(--text); }
.fs-problem { margin-top: var(--s-3); color: var(--text); font-size: 1.1875rem; font-weight: 550; line-height: 1.45; max-width: 40ch; }
.fs-body { margin-top: var(--s-3); color: var(--text-2); font-size: 1.0625rem; max-width: 62ch; }
.fs-body .text-link { white-space: nowrap; }
.fs-note { margin-top: var(--s-3); display: flex; align-items: center; gap: var(--s-3); color: var(--text-2); font-size: var(--fs-small); }
.tag-beta {
  flex: none; display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px;
  border: 1px solid var(--line-strong); border-radius: 6px; background: rgba(255, 255, 255, 0.04);
  color: var(--text-2); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.01em;
}
.fs-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); align-items: start; }
.fs-pair .fs-media { margin-top: var(--s-6); }
.flow-step .cab { margin-top: var(--s-6); }
@media (max-width: 1300px) {
  /* Inside the journey column the plan takes the full width and the ports sit underneath */
  .flow-step .cab { grid-template-columns: 1fr; }
  .flow-step .ports-list { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
}
.flow-step .sw-stage { margin: 0; }
.offer-link { color: var(--text); text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.offer-link:hover { color: var(--green-light); }

/* ---------- iOS app, coming soon ---------- */
.dl-ios { margin-top: var(--section-gap); margin-bottom: var(--section-gap); scroll-margin-top: calc(var(--header-h) + 8px); }
.ios-panel {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: stretch;
  padding: clamp(32px, 5vw, 64px);
  border: 1px solid var(--line-strong); border-radius: 20px;
  background: var(--surface-1);
}
.ios-text { min-width: 0; }
.ios-panel h2 { margin-top: var(--s-4); font-size: clamp(2rem, 1.2rem + 2.8vw, 3.25rem); letter-spacing: -0.035em; line-height: 1.04; font-weight: 680; max-width: 16ch; text-wrap: balance; }
.ios-lead { margin-top: var(--s-4); color: var(--text-2); font-size: var(--fs-lead); line-height: 1.5; max-width: 48ch; }
.ios-features { margin: var(--s-7) 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s-6); }
.ios-features li { display: grid; gap: 4px; align-content: start; padding-block: var(--s-4); border-top: 1px solid var(--line); }
.if-k { color: var(--text); font-weight: 600; font-size: 1.0625rem; }
.if-v { color: var(--text-2); font-size: var(--fs-small); line-height: 1.5; }
/* Kept free for the iPhone and iPad image; it sets the panel's balance, not its height */
.ios-device { min-height: 1px; }
@media (max-width: 1100px) {
  /* Too narrow to share: the features take the full panel and the device space drops out */
  .ios-panel { grid-template-columns: 1fr; }
  .ios-device { display: none; }
  .ios-panel h2 { max-width: 22ch; }
}
@media (max-width: 560px) {
  .ios-features { grid-template-columns: 1fr; }
}
.tag-soon {
  display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px;
  border: 1px solid var(--green-line); border-radius: 999px; background: var(--green-wash);
  color: var(--green-light); font-size: var(--fs-help); font-weight: 600;
}
.fs-media { margin: var(--s-6) 0 0; position: relative; }

/* Feature rows inside a step: the named capability, then its proof */
.feature {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--s-5) clamp(24px, 3.5vw, 56px); align-items: center;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px dashed var(--line);
}
.feature-wide { grid-template-columns: 1fr; }
.feature-text h4 { font-size: var(--fs-h3); letter-spacing: -0.022em; line-height: 1.15; font-weight: 650; }
.feature-text p { margin-top: var(--s-3); color: var(--text-2); max-width: 52ch; }
.feature-media { margin: 0; position: relative; }
.feature:has(> .feature-text + .feature-text) { align-items: start; grid-template-columns: 1fr 1fr; }


/* Step 6: the install checklist lifted off the main capture */
.shot-tall { background: var(--bg); }
.shot-tall .tall-main { position: absolute; inset: 0; width: auto; height: 100%; left: 2.5%; }
.shot-tall .tall-main.is-centred { left: 50%; transform: translateX(-50%); }
.fs-media-card { padding-bottom: 3%; }
.fs-media-card .shot-card {
  position: absolute; top: 0; right: -3%; width: 36%; margin-top: 27%;
  aspect-ratio: 839 / 880; border-color: var(--text-3); box-shadow: var(--lift-shadow);
}
.fs-media-card .shot-card img { object-fit: cover; object-position: bottom; }
body.design-launch .fs-media-card .slot-cap { max-width: 58%; }

/* Step 3: walls to coverage */
.reveal { --p: 100%; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.reveal img { position: absolute; inset: 0; }
.reveal-top { clip-path: inset(0 calc(100% - var(--p)) 0 0); }
.reveal-handle { display: none; }
.reveal.is-live .reveal-handle {
  display: block; position: absolute; top: 0; bottom: 0; left: var(--p);
  width: 2px; margin-left: -1px; background: var(--text);
  box-shadow: 0 0 0 1px rgba(29, 33, 37, 0.35); pointer-events: none;
}
.reveal-grip {
  position: absolute; top: 50%; left: 50%; display: grid; place-items: center;
  width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 999px;
  background: var(--text); color: var(--bg); box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.6);
  transition: transform 200ms var(--ease-out);
}
.reveal-grip svg { width: 20px; height: 20px; }
.reveal-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; touch-action: pan-y; }
.reveal:has(.reveal-range:focus-visible) .reveal-grip { outline: 2px solid var(--green); outline-offset: 3px; }
.reveal:has(.reveal-range:active) .reveal-grip { transform: scale(0.92); }

/* Tabs and segmented controls */
.tab-list, .seg, .bld-tabs {
  display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--bg);
}
.tab, .seg-btn, .bld-tab {
  min-height: 40px; padding: 0 var(--s-4);
  border: 0; border-radius: 999px; background: transparent;
  color: var(--text-2); font: inherit; font-size: var(--fs-small); font-weight: 550; cursor: pointer;
  transition: color 160ms var(--ease-out), background-color 200ms var(--ease-out);
}
.tab:hover, .seg-btn:hover, .bld-tab:hover { color: var(--text); }
.tab[aria-selected="true"], .seg-btn[aria-selected="true"], .bld-tab[aria-selected="true"] { background: var(--green); color: var(--green-ink); }
.tabs { margin-top: var(--s-6); }
.tab-panel { margin-top: var(--s-5); }
.tab-lede { color: var(--text-2); max-width: 62ch; }
.dialog-shot { margin: var(--s-5) 0 0; max-width: 780px; }
.dialog-link { display: block; border-radius: 14px; }
.dialog-link .shot { transition: transform 260ms var(--ease-swift); }
@media (hover: hover) { .dialog-link:hover .shot { transform: translateY(-3px); } }
.dialog-table { display: none; width: 100%; margin-top: var(--s-4); border-collapse: collapse; font-size: var(--fs-small); }
.dialog-table caption { text-align: left; color: var(--text-3); font-size: var(--fs-help); padding-bottom: var(--s-2); }
.dialog-table th, .dialog-table td { padding: var(--s-3) 0; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.dialog-table th { font-weight: 550; color: var(--text); padding-right: var(--s-4); }
.dialog-table td { color: var(--text-2); font-variant-numeric: tabular-nums; }

html:not(.js) .tab-list, html:not(.js) .seg, html:not(.js) .bld-tabs { display: none; }
html:not(.js) .tab-panel + .tab-panel, html:not(.js) .cab-pane + .cab-pane { margin-top: var(--s-7); }

/* Step 6: a change request, from site to the designer and back. Two lanes, one route */
.cr {
  margin-top: var(--s-6);
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--line-strong); border-radius: 20px;
  background: radial-gradient(ellipse 60% 80% at 100% 0%, rgba(71, 163, 67, 0.10), transparent 70%), var(--bg);
}
.cr-title { font-size: var(--fs-small); font-weight: 600; color: var(--text); }
.cr-board {
  position: relative; margin-top: var(--s-5);
  display: grid; grid-template-columns: 5.75rem minmax(0, 1fr); grid-template-rows: 1fr 1fr;
}
.cr-lane { grid-column: 1 / -1; display: grid; align-content: center; gap: 2px; padding-left: var(--s-4); border-radius: 14px; min-height: 9.5rem; }
.cr-lane-site { grid-row: 1; background: rgba(255, 255, 255, 0.025); }
.cr-lane-desk { grid-row: 2; margin-top: 8px; background: rgba(71, 163, 67, 0.06); }
.cr-lane-t { font-weight: 600; color: var(--text); font-size: var(--fs-small); }
.cr-lane-s { font-size: var(--fs-help); color: var(--text-3); }
.cr-track, .cr-steps { grid-column: 2; grid-row: 1 / span 2; }
.cr-track { width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.cr-track path { fill: none; stroke: var(--green-line); stroke-width: 2; stroke-dasharray: 4 5; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.cr-track .cr-pulse { stroke: var(--green-light); stroke-width: 3; stroke-dasharray: none; opacity: 0; }
.cr-steps {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: 1fr 1fr; row-gap: 8px;
  margin: 0; padding: 0; list-style: none;
}
.cr-step {
  align-self: center; justify-self: stretch;
  display: grid; gap: var(--s-2); align-content: start;
  margin: var(--s-4) 6px;
  padding: var(--s-4); border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--line-strong);
  box-shadow: 0 14px 28px -16px rgba(0, 0, 0, 0.8);
  transition: transform 260ms var(--ease-swift), border-color 200ms var(--ease-out);
}
.cr-step.is-site { grid-row: 1; }
.cr-step.is-desk { grid-row: 2; border-color: var(--green-line); }
.cr-step:nth-child(1) { grid-column: 1; }
.cr-step:nth-child(2) { grid-column: 2; }
.cr-step:nth-child(3) { grid-column: 3; }
.cr-step:nth-child(4) { grid-column: 4; }
.cr-step.is-end { background: linear-gradient(var(--green-wash), var(--green-wash)), var(--surface-2); border-color: var(--green); }
@media (hover: hover) { .cr-step:hover { transform: translateY(-3px); } }
.cr-n {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px;
  background: var(--green); color: var(--green-ink); font-size: 0.8125rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.cr-who { font-size: var(--fs-help); color: var(--text-3); font-weight: 550; position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cr-what { color: var(--text); font-weight: 600; line-height: 1.35; font-size: 0.9875rem; }
.cr-chip {
  justify-self: start; max-width: 100%; margin-top: var(--s-1);
  padding: 4px 10px; border-radius: 8px; border: 1px solid var(--line-strong);
  font-size: var(--fs-help); font-weight: 550; color: var(--text-2); background: var(--bg);
}

/* Step 8: the offer */
.oc-t { color: var(--text); font-weight: 600; font-size: 1.125rem; letter-spacing: -0.01em; }
.oc-d { color: var(--text-2); font-size: var(--fs-small); }

/* ---------- The whole building ---------- */
.dl-building { margin-top: var(--section-gap); scroll-margin-top: var(--header-h); }
.bld { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(32px, 4vw, 64px); }
.bld-stage { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.bld-view {
  position: relative; margin-top: var(--s-4);
  aspect-ratio: 16 / 9;
  border-radius: 18px; overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
}
.bld-img, .bld-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; visibility: hidden;
  transition: opacity 520ms var(--ease-swift), transform 900ms var(--ease-swift), visibility 0s linear 520ms;
  transform: scale(1.025);
}
.bld-img { object-fit: contain; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.bld-img.is-on, .bld-video.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity 520ms var(--ease-swift), transform 900ms var(--ease-swift), visibility 0s; }
.bld-video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.bld-pause {
  position: absolute; right: var(--s-4); bottom: var(--s-4);
  min-height: 44px; padding: 0 var(--s-4);
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface-1);
  color: var(--text-2); font: inherit; font-size: var(--fs-small); font-weight: 550; cursor: pointer;
}
.bld-pause[hidden] { display: none; }
.bld-pause:hover { color: var(--text); border-color: var(--text-3); }
/* Without the script, show the first still only */
.dl-building:not(.is-live) .bld-img[data-stage="1"] { opacity: 1; visibility: visible; transform: none; }
.bld-steps { margin: 0; padding: 0; list-style: none; }
.bld-step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; padding-block: var(--s-6); }
.bld-step:first-child { min-height: 48vh; justify-content: flex-start; padding-top: var(--s-9); }
.bld-step:last-child { min-height: 60vh; }
.bld-step h3 { font-size: var(--fs-h3); letter-spacing: -0.022em; font-weight: 650; }
.bld-step p { margin-top: var(--s-3); color: var(--text-2); max-width: 36ch; }
.dl-building.is-live .bld-step { opacity: 0.42; transition: opacity 400ms var(--ease-out); }
.dl-building.is-live .bld-step.is-current { opacity: 1; }

/* ---------- Metrics ---------- */
.dl-metrics { margin-top: var(--section-gap); padding-block: var(--section-pad); background: var(--surface-1); border-block: 1px solid var(--line); }
.mx { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.mx-list { display: grid; gap: 6px; }
.mx-tab {
  display: grid; gap: 2px; width: 100%; text-align: left;
  padding: var(--s-3) var(--s-4);
  border: 1px solid transparent; border-radius: 12px; background: transparent;
  color: var(--text-2); font: inherit; cursor: pointer;
  transition: background-color 200ms var(--ease-out), border-color 200ms var(--ease-out), color 200ms var(--ease-out);
}
.mx-tab:hover { background: rgba(255, 255, 255, 0.03); color: var(--text); }
.mx-name { font-weight: 600; font-size: 1.0625rem; color: var(--text); }
.mx-line { font-size: var(--fs-small); line-height: 1.45; }
.mx-tab[aria-selected="true"] { background: var(--surface-3); border-color: var(--green-line); color: var(--text); }
.mx-view { display: grid; position: sticky; top: calc(var(--header-h) + 24px); }
.mx-pane { grid-area: 1 / 1; margin: 0; position: relative; }
.dl-metrics.is-live .mx-pane { opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 360ms var(--ease-swift), transform 480ms var(--ease-swift), visibility 0s linear 360ms; }
.dl-metrics.is-live .mx-pane.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity 360ms var(--ease-swift), transform 480ms var(--ease-swift), visibility 0s; }
.dl-metrics:not(.is-live) .mx-pane:not([data-metric="1"]) { display: none; }
.shot-compact { max-width: 560px; }
.row-mark {
  position: absolute; left: 0.6%; right: 0.6%; top: var(--top); height: var(--h);
  border: 2px solid var(--green-light); border-radius: 8px;
  box-shadow: 0 0 0 4px var(--green-wash);
  pointer-events: none;
}

/* ---------- Switches, comms cabinets and cable routes ---------- */
.cab { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.cab-pane { margin: var(--s-4) 0 0; }
.cab-routes { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.cab-routes path {
  fill: none; stroke: var(--green-light); stroke-width: 3; vector-effect: non-scaling-stroke;
  stroke-linecap: round; stroke-linejoin: round;
  opacity: 0.85;
  transition: opacity 240ms var(--ease-out), stroke-width 240ms var(--ease-out);
}
.cab-routes .flow { opacity: 0; }
.cab-routes.has-focus path:not(.is-focus) { opacity: 0.18; }
.cab-routes.has-focus path.is-focus:not(.flow) { opacity: 1; stroke-width: 5; }
.cab-routes.has-focus .flow:not(.is-focus) { opacity: 0; }
.ports-title { font-weight: 600; color: var(--text); }
.ports-list { margin: var(--s-4) 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.port {
  display: grid; grid-template-columns: 4.25rem minmax(0, 1fr); grid-template-rows: auto auto; column-gap: var(--s-3);
  width: 100%; min-height: 56px; padding: var(--s-2) var(--s-4); text-align: left;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface-1);
  color: var(--text-2); font: inherit; cursor: pointer;
  transition: border-color 200ms var(--ease-out), background-color 200ms var(--ease-out);
}
.port:hover, .port:focus-visible { border-color: var(--green-line); }
.port[aria-pressed="true"] { border-color: var(--green); background: var(--green-wash); }
.p-n { grid-row: 1 / span 2; align-self: center; font-weight: 650; color: var(--green-light); font-variant-numeric: tabular-nums; }
.p-ap { color: var(--text); font-weight: 600; }
.p-c { font-size: var(--fs-help); font-variant-numeric: tabular-nums; }
.ports-note { margin-top: var(--s-4); font-size: var(--fs-help); color: var(--text-3); }
.cab-hint { margin-top: var(--s-3); }
/* AP hotspots over the plan: invisible until hovered, focused or pressed */
.ap-hit {
  position: absolute; left: var(--x); top: var(--y); width: 40px; height: 40px; transform: translate(-50%, -50%);
  padding: 0; border: 2px solid transparent; border-radius: 50%; background: transparent; cursor: pointer;
  transition: border-color 180ms var(--ease-out), background-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}
.ap-hit:hover, .ap-hit:focus-visible { border-color: rgba(255, 255, 255, 0.7); }
.ap-hit[aria-pressed="true"] { border-color: var(--green-light); background: rgba(112, 199, 107, 0.16); box-shadow: 0 0 0 4px rgba(29, 33, 37, 0.55); }
@media (max-width: 520px) { .ap-hit { width: 32px; height: 32px; } }

.vid-toggle {
  position: absolute; right: var(--s-3); bottom: var(--s-3);
  min-height: 40px; padding: 0 var(--s-4);
  border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(29, 33, 37, 0.86);
  color: var(--text-2); font: inherit; font-size: var(--fs-small); font-weight: 550; cursor: pointer;
}
.vid-toggle[hidden] { display: none; }
.vid-toggle:hover { color: var(--text); border-color: var(--text-3); }
.rack-shot { border-color: var(--green-line); }

/* ---------- Switch ports: its own section ---------- */
.sw-video { border-color: var(--green-line); box-shadow: var(--lift-shadow); }
.sw-video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.dl-feature-line { grid-column: 1; max-width: 52ch; color: var(--text-3); font-size: var(--fs-small); line-height: 1.55; padding-left: var(--s-4); border-left: 2px solid var(--green); }

/* ---------- Inspect ---------- */
.dl-inspect { margin-top: var(--section-gap); scroll-margin-top: var(--header-h); }
.ins { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.ins > * { min-width: 0; }
.ins-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.ins-list li { display: grid; gap: 4px; padding-block: var(--s-4); border-bottom: 1px solid var(--line); }
.ins-k { color: var(--text); font-weight: 600; font-size: 1.0625rem; }
.ins-v { color: var(--text-2); font-size: var(--fs-small); line-height: 1.5; }
.ins-shots { position: relative; padding-bottom: 12%; }
.ins-shot { margin: 0; }
.ins-shot-main { width: 78%; }
.ins-shot-side { position: absolute; right: 0; bottom: 0; width: 52%; }
.ins-shot-side .shot { box-shadow: var(--lift-shadow); border-color: var(--text-3); }

/* ---------- Offer and close ---------- */
.dl-offer { margin-top: var(--section-gap); scroll-margin-top: calc(var(--header-h) + 8px); }
.dl-offer-panel {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--s-7) clamp(40px, 6vw, 96px);
  padding: clamp(32px, 6vw, 88px);
  border-radius: 28px; border: 1px solid var(--green-line);
  background: radial-gradient(ellipse 70% 90% at 0% 0%, rgba(71, 163, 67, 0.22), transparent 60%), var(--surface-1);
}
.dl-offer-tick { width: 56px; height: 56px; color: var(--green); }
.dl-offer-head h2 { margin-top: var(--s-6); font-size: clamp(2.25rem, 1.2rem + 3.4vw, 4rem); letter-spacing: -0.038em; line-height: 1.02; font-weight: 700; max-width: 15ch; }
.dl-offer-head p { margin-top: var(--s-5); color: var(--text-2); font-size: var(--fs-lead); line-height: 1.5; max-width: 34ch; }
.dl-offer-terms { align-self: end; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.dl-offer-terms li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: var(--s-4); padding-block: var(--s-4); border-bottom: 1px solid var(--line-strong); }
.t-k { font-size: var(--fs-small); font-weight: 600; color: var(--text-3); padding-top: 2px; }
.t-v { color: var(--text); line-height: 1.5; }
.dl-offer-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-6); }
.dl-offer-note { flex-basis: 100%; font-size: var(--fs-help); color: var(--text-3); max-width: 60ch; }

/* ---------- Scroll reveals (armed only when the script runs and motion is allowed) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.motion [data-reveal="wipe"]:not(.is-in) .shot:not(.shot-card) { clip-path: inset(0 100% 0 0); }
  html.motion [data-reveal="wipe"].is-in .shot:not(.shot-card) { animation: wipe-in 1100ms var(--ease-swift) backwards; }
  @keyframes wipe-in { from { clip-path: inset(0 100% 0 0 round 14px); } to { clip-path: inset(0 0 0 0 round 14px); } }
  html.motion [data-reveal="wipe"] .shot-card { opacity: 0; transition: opacity 600ms var(--ease-swift) 700ms; }
  html.motion [data-reveal="wipe"].is-in .shot-card { opacity: 1; }
  html.motion [data-reveal="rise"] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-swift), transform 900ms var(--ease-swift); }
  html.motion [data-reveal="rise"].is-in { opacity: 1; transform: none; }
  html.motion [data-reveal="stagger"] > * { opacity: 0; transform: translateY(14px); transition: opacity 600ms var(--ease-swift), transform 800ms var(--ease-swift); }
  html.motion [data-reveal="stagger"].is-in > * { opacity: 1; transform: none; }
  html.motion [data-reveal="stagger"].is-in > :nth-child(2) { transition-delay: 90ms; }
  html.motion [data-reveal="stagger"].is-in > :nth-child(3) { transition-delay: 180ms; }
  html.motion [data-reveal="stagger"].is-in > :nth-child(4) { transition-delay: 270ms; }
  html.motion [data-reveal="stagger"].is-in > :nth-child(5) { transition-delay: 360ms; }
  html.motion [data-reveal="stagger"].is-in > :nth-child(6) { transition-delay: 450ms; }
  html.motion [data-reveal="stagger"].is-in > :nth-child(7) { transition-delay: 540ms; }
  /* Change request: the cards arrive in order, then a light runs the route from site to designer and back */
  html.motion [data-reveal="cr"] .cr-step { opacity: 0; transform: translateY(12px); transition: opacity 500ms var(--ease-swift), transform 600ms var(--ease-swift); }
  html.motion [data-reveal="cr"].is-in .cr-step { opacity: 1; transform: none; }
  html.motion [data-reveal="cr"].is-in .cr-step:nth-child(2) { transition-delay: 200ms; }
  html.motion [data-reveal="cr"].is-in .cr-step:nth-child(3) { transition-delay: 400ms; }
  html.motion [data-reveal="cr"].is-in .cr-step:nth-child(4) { transition-delay: 600ms; }
  html.motion [data-reveal="cr"].is-in .cr-pulse { opacity: 1; stroke-dasharray: 10 90; animation: cr-run 4200ms var(--ease-in-out, ease-in-out) 900ms infinite; }
  @keyframes cr-run { from { stroke-dashoffset: 10; } to { stroke-dashoffset: -100; } }

  /* Cable routes: each cable draws out from its port, then a light runs along it while in view */
  html.motion .cab-routes path:not(.flow) { stroke-dasharray: var(--len) var(--len); stroke-dashoffset: var(--len); }
  html.motion .cab-routes.is-drawn path:not(.flow) { stroke-dashoffset: 0; transition: stroke-dashoffset 1400ms var(--ease-swift), opacity 240ms var(--ease-out), stroke-width 240ms var(--ease-out); }
  html.motion .cab-routes.is-drawn path[data-port="2"] { transition-delay: 120ms; }
  html.motion .cab-routes.is-drawn path[data-port="3"] { transition-delay: 240ms; }
  html.motion .cab-routes.is-drawn path[data-port="4"] { transition-delay: 360ms; }
  html.motion .cab-routes.is-drawn path[data-port="5"] { transition-delay: 480ms; }
  /* Data on the cable: white packets run out from the switch, mint packets run back from the access point */
  /* Data runs only along the traced cable: white packets out from the port, mint packets back from the AP */
  html.motion .cab-routes path.is-traced:not(.flow) { stroke: var(--green); stroke-width: 6; }
  html.motion .cab-routes .flow.is-traced { opacity: 1; }
  html.motion .cab-routes .flow.fwd.is-traced { stroke: #fff; stroke-width: 7; stroke-dasharray: 0.1 34; animation: flow-out 700ms linear infinite; }
  html.motion .cab-routes .flow.back.is-traced { stroke: #C9F2C6; stroke-width: 3.5; stroke-dasharray: 7 27.1; stroke-dashoffset: 17; animation: flow-back 700ms linear infinite; }
  @keyframes flow-out { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -34.1; } }
  @keyframes flow-back { from { stroke-dashoffset: 17; } to { stroke-dashoffset: 51.1; } }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .feature { grid-template-columns: 1fr; }
  .feature:has(> .feature-text + .feature-text) { grid-template-columns: 1fr 1fr; }
  .cr-board { grid-template-columns: 1fr; }
  .cr-lane { display: none; }
  .cr-track, .cr-steps { grid-column: 1; }
  .cr-who { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
}

@media (max-width: 900px) {
  .dl-hero-head { grid-template-columns: 1fr; gap: var(--s-5); }
  .dl-hero .lead, .dl-hero-head > .dl-cta { grid-column: 1; justify-self: start; align-items: flex-start; }
  .dl-hero-head > .dl-cta { grid-row: auto; }
  .dl-story-inner, .dl-offer-panel, .bld, .mx, .cab, .ins, .fs-pair { grid-template-columns: 1fr; }

  /* The step list becomes a sticky chip bar under the header */
  .flow { grid-template-columns: 1fr; gap: var(--s-5); }
  .flow-nav {
    position: sticky; top: var(--header-h); z-index: 20;
    margin-inline: calc(var(--gutter) * -1); padding: var(--s-2) var(--gutter);
    background: var(--surface-1);
    border-bottom: 1px solid var(--line);
  }
  .fp-bar { margin: 0 0 var(--s-2); }
  .flow-links { display: flex; gap: 6px; overflow-x: auto; border: 0; scrollbar-width: none; overscroll-behavior-x: contain; }
  .flow-links::-webkit-scrollbar { display: none; }
  .flow-links a {
    grid-template-columns: auto auto; gap: 6px; flex: none;
    min-height: 44px; padding: 0 var(--s-3);
    border: 1px solid var(--line); border-radius: 999px; white-space: nowrap;
    position: relative;
  }
  .flow-links a[aria-current="step"] { border-color: var(--green-line); border-radius: 999px; }
  .fl-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .fl-s { display: inline; }
  .fl-n { width: 22px; height: 22px; }
  .flow-step { scroll-margin-top: calc(var(--header-h) + 76px); }

  .bld-stage { top: var(--header-h); z-index: 5; padding-block: var(--s-3); background: var(--bg); margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .bld-tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; border-radius: 14px; }
  .bld-tab { flex: none; }
  .bld-step, .bld-step:first-child, .bld-step:last-child { min-height: 46vh; padding-top: var(--s-6); justify-content: flex-start; }
  .bld-stage .slot-cap { display: none; }

  .mx-view { position: sticky; top: var(--header-h); z-index: 3; order: -1; padding-block: var(--s-2); background: var(--surface-1); }
  .ins-shots { padding-bottom: 0; display: grid; gap: var(--s-4); }
  .ins-shot-main, .ins-shot-side { position: relative; width: 100%; }
  .ins-shot-side { max-width: 520px; }
}

@media (max-width: 760px) {
  .dl-gates ol { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .dl-gates a { min-height: 56px; }
  .fs-media-card { padding-bottom: 0; }
  .shot-tall { aspect-ratio: 2692 / 2362; }
  .shot-tall .tall-main, .shot-tall .tall-main.is-centred { left: 0; width: 100%; transform: none; }
  .fs-media-card .shot-card { position: relative; right: auto; width: 100%; margin-top: var(--s-3); }
  body.design-launch .fs-media-card .slot-cap { max-width: 64ch; }
  .feature:has(> .feature-text + .feature-text) { grid-template-columns: 1fr; }
  .dialog-table { display: table; }
  .cr-board { display: block; }
  .cr-track { display: none; }
  .cr-steps { display: grid; grid-template-columns: 1fr; grid-template-rows: none; row-gap: var(--s-3); padding-left: 18px; border-left: 2px dashed var(--green-line); margin-left: 6px; }
  .cr-step, .cr-step.is-site, .cr-step.is-desk { grid-column: 1; grid-row: auto; width: 100%; margin: 0; justify-self: stretch; }
  .cr::after { content: "Then back to step 1 for the next change."; display: block; margin-top: var(--s-3); font-size: var(--fs-help); color: var(--text-3); }
}

@media (max-width: 520px) {
  .dl-hero .lead { font-size: 1.0625rem; }
  .fs-head h3 { font-size: var(--fs-h3); }
  .dl-offer-terms li { grid-template-columns: 1fr; gap: 2px; }
  .dl-offer-actions .dl-cta .btn { width: 100%; }
  .dl-launch-note { white-space: normal; }
  .vid-toggle { min-height: 32px; right: var(--s-2); bottom: var(--s-2); padding: 0 var(--s-3); font-size: var(--fs-help); }
}

/* ---------- Register interest (#register) ---------- */
.dl-register { margin-top: var(--section-gap); scroll-margin-top: calc(var(--header-h) + 16px); }
.dl-register-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-7) clamp(40px, 6vw, 96px); align-items: start; }
.dl-register-head { padding-top: var(--s-4); }
.dl-register-head h2 { font-size: clamp(2rem, 1.2rem + 2.8vw, 3.5rem); font-weight: 680; line-height: 1.04; letter-spacing: -0.035em; max-width: 12ch; text-wrap: balance; }
.dl-register-head p:not(.dl-launch-note) { margin-top: var(--s-5); color: var(--text-2); font-size: var(--fs-lead); line-height: 1.5; max-width: 30ch; }
.dl-register-head .dl-launch-note { margin-top: var(--s-6); }
.dl-register-card {
  position: relative;
  padding: clamp(24px, 4vw, 48px);
  border-radius: var(--radius-l); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 40%), var(--surface-1);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 2px 4px rgba(0, 0, 0, 0.18), 0 18px 40px -12px rgba(0, 0, 0, 0.45);
}
.reg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5) var(--s-5); }
.reg-field label { display: block; font-size: var(--fs-small); font-weight: 600; line-height: 1.4; color: var(--text); }
.reg-field input, .reg-field select {
  display: block; width: 100%; min-height: 52px; margin-top: var(--s-2); padding: 0 16px;
  font: inherit; font-size: 1.0625rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: 10px;
  transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out), background-color 160ms var(--ease-out);
}
.reg-field select {
  appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%239AA0A6' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 16px 16px;
}
.reg-field select:invalid { color: var(--text-3); }
.reg-field select option { color: var(--text); background: var(--surface-1); }
.reg-field input:hover, .reg-field select:hover { border-color: var(--text-3); }
.reg-field input:focus, .reg-field select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--green-wash); }
.reg-field [aria-invalid="true"] { border-color: var(--error); }
.reg-field [aria-invalid="true"]:focus { border-color: var(--error); box-shadow: 0 0 0 4px rgba(255, 143, 128, 0.16); }
.reg-err, .reg-form-err { display: flex; gap: var(--s-2); margin-top: var(--s-2); font-size: var(--fs-help); line-height: 1.45; color: var(--error); }
.reg-err::before, .reg-form-err::before {
  content: ""; flex: none; width: 14px; height: 14px; margin-top: 3px; border-radius: 50%;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zm-.9 4v5h1.8V4zm0 6.4v1.8h1.8v-1.8z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zm-.9 4v5h1.8V4zm0 6.4v1.8h1.8v-1.8z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.reg-err[hidden], .reg-form-err[hidden] { display: none; }
.reg-wide { grid-column: 1 / -1; }
.reg-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.reg-group legend { float: left; width: 100%; padding: 0; font-size: var(--fs-small); font-weight: 600; line-height: 1.4; color: var(--text); }
.reg-group legend + * { clear: both; }
.reg-hint { margin-top: var(--s-1); font-size: var(--fs-help); line-height: 1.45; color: var(--text-3); }
.reg-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: var(--s-2); margin-top: var(--s-3); }
.reg-opts-role { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.reg-opt {
  position: relative; display: flex; align-items: center; gap: var(--s-3); min-height: 52px; padding: 12px 16px;
  font-size: 1rem; line-height: 1.35; color: var(--text); cursor: pointer; user-select: none;
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: 10px;
  transition: border-color 160ms var(--ease-out), background-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
.reg-opt:hover { border-color: var(--text-3); }
.reg-opt input {
  appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 0; cursor: pointer;
  background: transparent center / 14px 14px no-repeat; border: 1.5px solid var(--text-3); border-radius: 6px;
  transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out);
}
.reg-opt input[type="radio"] { border-radius: 50%; }
.reg-opt input:focus { outline: none; }
.reg-opt input:checked { border-color: var(--green); background-color: var(--green); }
.reg-opt input[type="checkbox"]:checked { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%231D2125' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E"); }
.reg-opt input[type="radio"]:checked { background-image: radial-gradient(circle, var(--green-ink) 0 3.5px, transparent 4px); background-size: 100% 100%; }
.reg-opt:has(input:checked) { border-color: var(--green-line); background-color: var(--green-wash); }
.reg-opt:has(input:focus-visible) { border-color: var(--green); box-shadow: 0 0 0 4px var(--green-wash); }
.reg-group[aria-invalid="true"] .reg-opt { border-color: var(--error); }
.reg-group[aria-invalid="true"] .reg-opt:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(255, 143, 128, 0.16); }
@media (forced-colors: active) {
  .reg-opt input:checked { background-color: Highlight; border-color: Highlight; }
}
.reg-opt input:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.reg-form-err { margin-top: var(--s-5); padding: 12px 14px; border: 1px solid rgba(255, 143, 128, 0.4); border-radius: 10px; background: rgba(255, 143, 128, 0.08); }
.reg-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.reg-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-5); margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.reg-submit { min-width: 200px; }
.reg-submit[disabled] { opacity: 1; cursor: progress; background: var(--green-press); }
.reg-spin { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(29, 33, 37, 0.3); border-top-color: var(--green-ink); }
.is-sending .reg-spin { display: inline-block; animation: reg-spin 800ms linear infinite; }
@keyframes reg-spin { to { transform: rotate(360deg); } }
.reg-privacy { flex: 1 1 260px; font-size: var(--fs-help); line-height: 1.5; color: var(--text-3); }
.reg-privacy a { color: var(--green-light); }
.reg-done { padding-block: var(--s-6); text-align: left; }
.reg-done-tick { width: 56px; height: 56px; color: var(--green); }
.reg-done h3 { margin-top: var(--s-5); font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); font-weight: 650; line-height: 1.08; letter-spacing: -0.03em; outline: none; }
.reg-done p { margin-top: var(--s-4); color: var(--text-2); font-size: var(--fs-lead); line-height: 1.5; max-width: 40ch; overflow-wrap: anywhere; }
@media (prefers-reduced-motion: no-preference) {
  .reg-done:not([hidden]) { animation: reg-in 520ms var(--ease-swift) both; }
  .reg-done:not([hidden]) .reg-done-tick path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: reg-tick 520ms 160ms var(--ease-swift) forwards; }
}
@keyframes reg-in { from { opacity: 0; transform: translateY(8px); filter: blur(4px); } }
@keyframes reg-tick { to { stroke-dashoffset: 0; } }
@media (max-width: 1100px) {
  .dl-register-inner { grid-template-columns: 1fr; }
  .dl-register-head h2 { max-width: 18ch; }
}
@media (max-width: 640px) {
  .reg-grid { grid-template-columns: 1fr; }
  .reg-opts, .reg-opts-role { grid-template-columns: 1fr; }
  .reg-submit { width: 100%; }
}
