/* RTN Global v2 — signature elements for the inner pages */

.page-hero-inner.has-visual {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.page-hero-inner.has-visual h1 { font-size: clamp(2.4rem, 1rem + 4.2vw, 5rem); }
@media (max-width: 980px) { .page-hero-inner.has-visual { grid-template-columns: 1fr; } }
.hero-visual { position: relative; }
@media (prefers-reduced-motion: no-preference) {
  .js .hero-visual { opacity: 0; translate: 0 24px; transition: opacity 800ms 200ms var(--ease-out), translate 800ms 200ms var(--ease-out); }
  .js .is-ready .hero-visual { opacity: 1; translate: 0 0; }
}
.visual-caption { margin-top: 14px; min-height: 1.6em; color: #DDE0FF; font-size: var(--step--1); }

/* ---------- Services: Build / Fix / Run browser ---------- */
.mode-tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 14px; border-radius: 999px; background: rgb(255 255 255 / 0.12); }
.mode-tabs button {
  min-height: 40px; padding: 8px 18px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: #fff; font: inherit; font-weight: 700; font-size: var(--step--1);
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
.mode-tabs button:hover { background: rgb(255 255 255 / 0.12); }
.mode-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); }
.mode-tabs button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.mode-frame { cursor: default; }
.mini {
  position: absolute; inset: 0; padding: 5%; background: #FFF8F1;
  display: grid; grid-template-columns: 1.1fr 1fr; grid-template-rows: auto 1fr auto; gap: 6%;
}
.m-block { border-radius: 8px; position: relative; transition: translate 600ms var(--ease-out), rotate 600ms var(--ease-out), box-shadow 300ms var(--ease), background-color 400ms var(--ease), width 600ms var(--ease-out); }
.m-nav { grid-column: 1 / -1; min-height: 16px; display: flex; justify-content: space-between; align-items: center; }
.m-nav b { width: 22%; height: 14px; border-radius: 4px; background: #2B1B12; }
.m-nav i { width: 34%; height: 9px; border-radius: 4px; background: #D9C7B8; }
.m-copy { display: grid; align-content: center; gap: 12px; }
.m-title { height: clamp(22px, 4vw, 46px); background: #2B1B12; }
.m-text { height: 10px; background: #D9C7B8; width: 80%; }
.m-btn { height: clamp(16px, 2vw, 24px); width: 42%; background: #E2552C; border-radius: 999px; }
.m-img { background: radial-gradient(circle at 35% 30%, #FFD9A8, #F08A4B 55%, #B5462A); border-radius: 50% 50% 12px 12px; }
.m-cards { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; min-height: clamp(40px, 7vw, 80px); }
.m-cards .m-block { background: #fff; box-shadow: 0 6px 18px -8px rgb(80 40 20 / 0.25); }

/* Build: wireframe to filled, in sequence */
@media (prefers-reduced-motion: no-preference) {
  .modes[data-mode="build"].is-playing .m-block { animation: wire-in 900ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 140ms); }
}
@keyframes wire-in {
  0% { background: transparent; box-shadow: inset 0 0 0 1.5px #9A8F86; opacity: 0.35; }
  55% { background: transparent; box-shadow: inset 0 0 0 1.5px #9A8F86; opacity: 1; }
}

/* Fix: broken first, then snapped into place */
.m-bug {
  position: absolute; z-index: 2; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff;
  background: var(--bug); opacity: 0; scale: 0.5;
  transition: opacity 200ms var(--ease), scale 300ms var(--ease-out), background-color 300ms var(--ease);
}
.m-bug::after { content: "!"; }
.modes[data-mode="fix"] .m-bug { opacity: 1; scale: 1; }
.modes[data-mode="fix"]:not(.is-fixed) .m-copy { translate: 8% 0; }
.modes[data-mode="fix"]:not(.is-fixed) .m-btn { width: 78%; background: #8C8C9C; }
.modes[data-mode="fix"]:not(.is-fixed) .m-img { rotate: 4deg; translate: 0 6%; }
.modes[data-mode="fix"]:not(.is-fixed) .m-cards .m-block:nth-child(2) { translate: 0 22%; }
.modes[data-mode="fix"]:not(.is-fixed) .is-buggy { box-shadow: 0 0 0 2px var(--bug); }
.modes[data-mode="fix"].is-fixed .m-bug { background: var(--ok); }
.modes[data-mode="fix"].is-fixed .m-bug::after { content: "\2713"; }

/* Run: maintenance log slides up */
.m-log {
  position: absolute; right: 4%; bottom: 5%; width: min(64%, 320px); z-index: 3;
  padding: 12px 14px; border-radius: 12px; background: var(--ink); color: #fff;
  font-family: var(--mono); font-size: clamp(9px, 0.85vw, 12px); line-height: 1.6;
  box-shadow: 0 20px 40px -12px rgb(0 0 0 / 0.45);
  opacity: 0; translate: 0 16px; transition: opacity 300ms var(--ease), translate 400ms var(--ease-out);
}
.m-log li { display: flex; gap: 8px; opacity: 0; }
.m-log li::before { content: "\2713"; color: #6EE7B0; }
.modes[data-mode="run"] .m-log { opacity: 1; translate: 0 0; }
.modes[data-mode="run"] .m-log li { opacity: 1; transition: opacity 250ms var(--ease); transition-delay: calc(300ms + var(--i, 0) * 380ms); }

/* ---------- Services: speed race ---------- */
.race { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.race-lane { border-radius: var(--r-lg); background: #1E1E2C; padding: 18px; }
.race-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.race-head strong { font-size: var(--step-0); }
.race-time { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: var(--step-1); }
.race-lane[data-lane="before"] .race-time { color: #FFB3A1; }
.race-lane[data-lane="after"] .race-time { color: #8DEBC1; }
.race-bar { height: 4px; border-radius: 4px; background: rgb(255 255 255 / 0.12); overflow: hidden; margin-bottom: 14px; }
.race-bar span { display: block; height: 100%; width: 0%; background: currentColor; }
.race-lane[data-lane="before"] .race-bar { color: var(--bug); }
.race-lane[data-lane="after"] .race-bar { color: var(--ok); }
.race-page { aspect-ratio: 16 / 10; border-radius: 12px; background: #fff; padding: 6%; display: grid; grid-template-rows: auto 1fr auto; gap: 8%; }
.rp { border-radius: 6px; background: #ECECF2; position: relative; overflow: hidden; }
.rp::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.75), transparent); translate: -100% 0; }
@media (prefers-reduced-motion: no-preference) { .rp:not(.is-in)::after { animation: shimmer 1.2s linear infinite; } }
@keyframes shimmer { to { translate: 100% 0; } }
.rp-nav { height: 12px; width: 40%; }
.rp-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 6%; }
.rp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5%; height: 34px; }
.rp.is-in { transition: background-color 250ms var(--ease); }
.rp.is-in::after { display: none; }
.rp-nav.is-in { background: #14141F; }
.rp-title.is-in { background: #2D2AE0; }
.rp-photo.is-in { background: radial-gradient(circle at 35% 30%, #FFD9A8, #F08A4B 55%, #B5462A); }
.rp-card.is-in { background: #CFD3FF; }
.race-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 20px; color: #B9B9CC; font-size: var(--step--1); }
@media (max-width: 760px) { .race { grid-template-columns: 1fr; } }

/* ---------- Services: example maintenance month ---------- */
.run-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .run-grid { grid-template-columns: 1fr; } }
.month { position: sticky; top: 110px; border-radius: var(--r-lg); background: var(--ink); color: #fff; padding: 24px; }
.month h3 { font-size: var(--step-0); margin-bottom: 4px; }
.month > p { color: #9A9AB0; font-size: var(--step--1); margin-bottom: 16px; }
.month ol li { display: grid; grid-template-columns: 64px 1fr 22px; gap: 10px; align-items: center; padding-block: 10px; border-top: 1px solid rgb(255 255 255 / 0.1); font-size: var(--step--1); }
.month ol li > span:first-child { color: #9A9AB0; font-family: var(--mono); }
.month ol li svg { width: 20px; height: 20px; color: #6EE7B0; }
@media (prefers-reduced-motion: no-preference) {
  .js .month ol li { opacity: 0; translate: 0 8px; }
  .js .month.is-in ol li { opacity: 1; translate: 0 0; transition: opacity 300ms var(--ease-out), translate 300ms var(--ease-out); transition-delay: calc(var(--i, 0) * 160ms); }
  .js .month ol li svg { scale: 0.25; opacity: 0; filter: blur(4px); }
  .js .month.is-in ol li svg { scale: 1; opacity: 1; filter: blur(0); transition: scale 300ms var(--ease-out), opacity 300ms, filter 300ms; transition-delay: calc(var(--i, 0) * 160ms + 220ms); }
}

/* ---------- Team: live sprint board ---------- */
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 14px; border-radius: var(--r-lg); background: rgb(255 255 255 / 0.1); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.16); }
.board-col { display: flex; flex-direction: column; gap: 8px; min-height: 290px; padding: 10px; border-radius: var(--r-md); background: rgb(19 17 107 / 0.55); }
.board-col h2 { font-size: var(--step--1); font-weight: 700; color: #DDE0FF; display: flex; justify-content: space-between; margin-bottom: 4px; }
.board-col h2 span { font-variant-numeric: tabular-nums; color: #B8BCFF; }
.task { padding: 10px 12px; border-radius: 10px; background: #fff; color: var(--ink); font-size: var(--step--1); font-weight: 600; line-height: 1.3; box-shadow: 0 8px 18px -10px rgb(0 0 0 / 0.5); }
.task-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; gap: 6px; }
.task-tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); }
.task .avatar { width: 26px; height: 26px; font-size: 10px; animation: none; }
.board-col[data-col="done"] .task { background: #F1F1F5; }
.board-col[data-col="done"] .task-tag { background: #E6F7EF; color: #0D6B47; }
@media (max-width: 560px) { .board { grid-template-columns: repeat(3, minmax(150px, 1fr)); overflow-x: auto; } }

/* ---------- About: live clocks ---------- */
.clocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.clock { padding: 24px; border-radius: var(--r-lg); background: rgb(255 255 255 / 0.1); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.16); display: grid; gap: 12px; justify-items: start; }
.clock-face { width: clamp(110px, 14vw, 170px); height: auto; aspect-ratio: 1; }
.clock-face circle { fill: none; stroke: rgb(255 255 255 / 0.35); stroke-width: 2; }
.clock-face line { stroke: #fff; stroke-linecap: round; transform-origin: 50px 50px; }
.clock-face .h { stroke-width: 4; }
.clock-face .m { stroke-width: 3; }
.clock-face .s { stroke-width: 1.5; stroke: #FFD25E; }
.clock-face .tick { stroke: rgb(255 255 255 / 0.5); stroke-width: 2; }
.clock-label { font-size: var(--step--1); color: #DDE0FF; }
.clock-time { font-size: var(--step-2); font-weight: 800; font-stretch: 112%; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.clock-diff { grid-column: 1 / -1; color: #fff; font-size: var(--step-1); font-weight: 600; padding-top: 4px; }
@media (max-width: 420px) { .clock { padding: 16px; } }
.run-grid .svc { grid-template-columns: 1fr; gap: 12px; }
.page-hero-inner.has-visual > * { min-width: 0; }

/* =================== About page redesign =================== */
/* Statement: the confirmed facts as one sentence */
.statement-section { padding-bottom: clamp(56px, 8vw, 112px); }
.statement { font-size: clamp(2rem, 0.9rem + 3.7vw, 4.6rem); line-height: 1.06; max-width: 19ch; color: var(--ink); }
.statement .stat { color: var(--blue); font-variant-numeric: tabular-nums; }
.statement .stat-place { box-shadow: inset 0 -0.14em 0 var(--sky); }
.story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px clamp(32px, 6vw, 96px); margin-top: clamp(48px, 7vw, 96px); padding-top: 32px; border-top: 1px solid var(--line); }
.story-lead { font-size: var(--step-2); line-height: 1.25; letter-spacing: -0.01em; font-weight: 600; }
.story-body p { color: var(--ink-2); font-size: var(--step-1); }
.story-body p + p { margin-top: 16px; }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } }

/* In their words */
.words { background: var(--ink); color: #fff; }
.words .section-head p { color: #B9B9CC; }
.word-rows { counter-reset: w; }
.word-row {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 16px clamp(32px, 5vw, 80px);
  padding-block: clamp(32px, 5vw, 56px); border-top: 1px solid rgb(255 255 255 / 0.14);
}
.word-row h3 { font-size: var(--step-1); font-weight: 700; color: #CFD3FF; line-height: 1.3; }
.word-row figure { margin: 0; }
.word-row blockquote { margin: 0; font-size: clamp(1.5rem, 0.9rem + 2vw, 2.6rem); line-height: 1.2; letter-spacing: -0.02em; font-weight: 500; color: #E6E6F0; }
.word-row blockquote p::before { content: "“"; }
.word-row blockquote p::after { content: "”"; }
.word-row figcaption { margin-top: 18px; color: #9A9AB0; font-size: var(--step--1); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.word-row figcaption span { padding: 3px 10px; border-radius: 999px; background: rgb(255 255 255 / 0.1); color: #fff; font-weight: 700; font-size: 12px; }
@media (max-width: 800px) { .word-row { grid-template-columns: 1fr; } }

/* the highlighter sweep */
.hl {
  color: #fff; padding: 0 0.08em;
  background: linear-gradient(var(--blue), var(--blue)) no-repeat left 55% / 0% 88%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size 1100ms var(--ease-out);
}
.hl.is-lit { background-size: 100% 88%; }
@media (prefers-reduced-motion: reduce) { .hl { background-size: 100% 88%; } }

/* People */
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.person { display: flex; flex-direction: column; border-radius: var(--r-lg); background: #fff; box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.person-art {
  position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle, rgb(255 255 255 / 0.28) 1.2px, transparent 1.6px) 0 0 / 22px 22px, var(--blue);
}
.person-art-alt { background-color: var(--blue-night); }
.person-art span {
  font-size: clamp(5rem, 3rem + 6vw, 9rem); font-stretch: 125%; font-weight: 800; letter-spacing: -0.05em; line-height: 1;
  color: transparent; -webkit-text-stroke: 2px #fff;
  transition: color 400ms var(--ease-out), translate 500ms var(--ease-out);
}
.person:hover .person-art span { color: #fff; translate: 0 -4px; }
.person-body { display: flex; flex-direction: column; gap: 10px; padding: 24px 26px 28px; flex: 1; }
.person-body h3 { font-size: var(--step-2); font-stretch: 112%; font-weight: 800; letter-spacing: -0.02em; }
.person-body > p:not(.person-role):not(.ask) { color: var(--ink-2); }
.ask { margin-top: 8px; font-weight: 700; font-size: var(--step--1); }
.ask-list { display: flex; flex-wrap: wrap; gap: 6px; }
.ask-list li { padding: 5px 12px; border-radius: 999px; background: var(--paper-2); font-size: var(--step--1); font-weight: 600; }
.person-team { background: var(--paper-2); box-shadow: none; }
.person-team .link { margin-top: auto; color: var(--blue); }
.team-dots { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; padding: 28px 26px 8px; aspect-ratio: 4 / 3; align-content: center; }
.team-dots i { aspect-ratio: 1; border-radius: 50%; background: var(--line); transition: background-color 300ms var(--ease), scale 300ms var(--ease-out); }
.team-dots i.on { background: var(--blue); }
.team-dots i.plus { background: none; display: grid; place-items: center; font-style: normal; font-weight: 800; color: var(--blue); font-size: 1.2rem; }
@media (max-width: 960px) { .people { grid-template-columns: 1fr; } .person-art, .team-dots { aspect-ratio: 16 / 7; } }

/* ---------- About: story in four chapters (replaces the one-sentence statement) ---------- */
.chapters-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); }
.chapter-sticky { position: sticky; top: 120px; align-self: start; padding-top: 12px; }
.chapter-num { overflow: hidden; line-height: 0.9; padding-bottom: 0.04em; }
.chapter-num span {
  display: inline-block;
  font-size: clamp(5rem, 2.4rem + 8vw, 11rem); font-stretch: 125%; font-weight: 800; letter-spacing: -0.05em;
  color: var(--blue); font-variant-numeric: tabular-nums;
}
@media (prefers-reduced-motion: no-preference) {
  .chapter-num span.is-rolling { animation: chapter-roll 520ms var(--ease-out) both; }
}
@keyframes chapter-roll { from { translate: 0 60%; opacity: 0; } }
.chapter-label { margin-top: 10px; font-size: var(--step-1); font-weight: 700; }
.chapter-ticks { display: flex; gap: 6px; margin-top: 22px; }
.chapter-ticks li { width: 36px; height: 4px; border-radius: 4px; background: var(--line); transition: background-color 300ms var(--ease), width 300ms var(--ease-out); }
.chapter-ticks li.is-on { background: var(--blue); }
.chapter-ticks li.is-current { width: 64px; }

.chapter-list { display: grid; }
.chapter { padding-block: clamp(40px, 9vh, 96px); border-top: 1px solid var(--line); min-height: 52vh; display: grid; align-content: center; gap: 14px; transition: opacity 400ms var(--ease); }
.chapter:first-child { border-top: 0; padding-top: 12px; }
.js .chapter:not(.is-active) { opacity: 0.32; }
.chapter h3 { font-size: var(--step-3); font-stretch: 112%; font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; max-width: 16ch; }
.chapter p { font-size: var(--step-1); color: var(--ink-2); max-width: 34em; }
.chapter-inline-num { display: none; }
.country-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.country-cloud li { padding: 7px 14px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line); font-weight: 600; font-size: var(--step--1); }
.country-cloud li:first-child { background: var(--blue); color: #fff; box-shadow: none; }

@media (max-width: 860px) {
  .chapters-grid { grid-template-columns: 1fr; }
  .chapter-sticky { display: none; }
  .chapter { min-height: 0; }
  .js .chapter:not(.is-active) { opacity: 1; }
  .chapter-inline-num { display: block; font-size: clamp(3.6rem, 2rem + 8vw, 5rem) !important; font-stretch: 125%; font-weight: 800; letter-spacing: -0.05em; line-height: 0.9; color: var(--blue) !important; }
}
.chapter-num { overflow: visible; overflow-y: clip; overflow-x: visible; }
.chapter-num span { font-size: clamp(4.4rem, 1.6rem + 6.2vw, 8.6rem); }

/* =================== Services redesign: build explorer + after-launch panels =================== */
.builds { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.build-tabs { display: grid; gap: 6px; position: sticky; top: 110px; }
.build-tab {
  display: grid; gap: 2px; text-align: left; padding: 16px 18px; border: 0; border-radius: var(--r-md);
  background: transparent; color: var(--ink); font: inherit; cursor: pointer; position: relative;
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
.build-tab strong { font-size: var(--step-1); font-stretch: 112%; letter-spacing: -0.01em; }
.build-tab small { color: var(--mute); font-size: var(--step--1); }
.build-tab:hover { background: var(--paper-2); }
.build-tab[aria-selected="true"] { background: var(--blue); color: #fff; }
.build-tab[aria-selected="true"] small { color: #DDE0FF; }
.build-tab:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.build-panels { border-radius: var(--r-lg); background: #fff; box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.build-panel[hidden] { display: none; }
.build-preview { background: var(--paper-2); padding: clamp(20px, 3.5vw, 44px); display: grid; place-items: center; min-height: 300px; }
.build-info { display: grid; gap: 16px; padding: clamp(22px, 3vw, 32px); }
.build-info > p { font-size: var(--step-1); color: var(--ink-2); max-width: 36em; }
.build-includes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; }
.build-includes li { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; }
.build-includes svg { width: 18px; height: 18px; flex: none; color: var(--ok); translate: 0 2px; }
.build-info .btn { justify-self: start; }
.build-note { margin-top: 20px; color: var(--mute); }
@media (max-width: 900px) {
  .builds { grid-template-columns: 1fr; }
  .build-tabs { position: static; display: flex; overflow-x: auto; gap: 8px; padding-bottom: 4px; scrollbar-width: thin; }
  .build-tab { flex: none; padding: 12px 16px; box-shadow: inset 0 0 0 1px var(--line); }
  .build-tab small { display: none; }
}
@media (max-width: 560px) { .build-includes { grid-template-columns: 1fr; } }

/* shared preview chrome */
.pv-browser { width: min(100%, 620px); border-radius: 14px; background: #fff; overflow: hidden; box-shadow: 0 24px 50px -24px rgb(20 20 40 / 0.35), 0 0 0 1px rgb(0 0 0 / 0.05); }
.pv-bar { display: flex; gap: 6px; padding: 10px 12px; background: #F1F1F4; border-bottom: 1px solid #E5E5EA; }
.pv-bar i { width: 9px; height: 9px; border-radius: 50%; background: #D5D5DD; }
.pv-stage { aspect-ratio: 16 / 9.5; padding: 5%; position: relative; container-type: inline-size; }
.pv-stage b, .pv-stage span, .pv-stage i, .pv-stage em { display: block; }
/* entrance: parts rise in when a panel opens */
@media (prefers-reduced-motion: no-preference) {
  .build-panel.is-active .pv-stage > *, .build-panel.is-active .pv-phones > * { animation: pv-in 520ms var(--ease-out) both; }
  .build-panel.is-active .pv-stage > *:nth-child(2), .build-panel.is-active .pv-phones > *:nth-child(2) { animation-delay: 90ms; }
  .build-panel.is-active .pv-stage > *:nth-child(3) { animation-delay: 180ms; }
}
@keyframes pv-in { from { opacity: 0; translate: 0 14px; } }

/* website */
.pv-site { display: grid; grid-template-rows: auto 1fr auto; gap: 7%; background: #FFFBF5; }
.s-nav { display: flex; align-items: center; gap: 4%; }
.s-nav b { width: 18%; height: 2.4cqw; border-radius: 4px; background: #2B1B12; margin-right: auto; }
.s-nav span { width: 9%; height: 1.4cqw; border-radius: 3px; background: #D9C7B8; }
.s-nav em { width: 14%; height: 3.4cqw; border-radius: 999px; background: #E2552C; }
.s-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 6%; align-items: center; }
.s-hero > div:first-child { display: grid; gap: 2.2cqw; }
.s-hero b { height: 4.4cqw; border-radius: 6px; background: #2B1B12; }
.s-hero b + b { width: 70%; }
.s-hero span { height: 1.6cqw; width: 85%; border-radius: 4px; background: #D9C7B8; }
.s-hero em { width: 34%; height: 4cqw; border-radius: 999px; background: #E2552C; }
.s-img { aspect-ratio: 4 / 3.4; border-radius: 12px; background: radial-gradient(circle at 30% 30%, #FFD9A8, #F08A4B 55%, #B5462A); }
.s-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; }
.s-row i { height: 8cqw; border-radius: 8px; background: #fff; box-shadow: 0 6px 16px -8px rgb(80 40 20 / 0.3); }

/* web app */
.pv-app { display: grid; grid-template-columns: 22% 1fr; gap: 0; padding: 0; }
.a-side { background: #14141F; padding: 14% 12%; display: grid; align-content: start; gap: 9%; }
.a-side b { height: 2.4cqw; width: 70%; border-radius: 4px; background: #fff; margin-bottom: 14%; }
.a-side i { height: 1.6cqw; border-radius: 4px; background: #3A3A4A; }
.a-side i:nth-child(3) { background: var(--blue); }
.a-main { padding: 5%; display: grid; grid-template-rows: auto 1fr; gap: 6%; background: #F7F7FB; }
.a-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; }
.a-stats span { padding: 6% 8%; border-radius: 10px; background: #fff; font-size: 1.4cqw; color: #5E5E70; box-shadow: 0 0 0 1px #ECECF2; }
.a-stats b { font-size: 2.6cqw; color: #14141F; font-weight: 800; }
.a-chart { display: flex; align-items: flex-end; gap: 4%; padding: 5% 5% 0; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px #ECECF2; }
.a-chart i { flex: 1; height: var(--h); border-radius: 6px 6px 0 0; background: linear-gradient(var(--blue), #6E6BFF); transform-origin: bottom; }
@media (prefers-reduced-motion: no-preference) {
  .build-panel.is-active .a-chart i { animation: bar-grow 700ms var(--ease-out) both; animation-delay: calc(240ms + var(--n, 0) * 70ms); }
}
@keyframes bar-grow { from { scale: 1 0; } }

/* store */
.pv-store { display: grid; grid-template-rows: auto 1fr; gap: 5%; background: #fff; }
.st-nav { display: flex; justify-content: space-between; align-items: center; }
.st-nav b { width: 18%; height: 2.4cqw; border-radius: 4px; background: #14141F; }
.st-cart { font-size: 1.6cqw; font-weight: 700; display: flex !important; gap: 0.6cqw; align-items: center; color: #14141F; }
.st-cart em { font-style: normal; min-width: 2.6cqw; height: 2.6cqw; border-radius: 999px; background: var(--bug); color: #fff; display: grid !important; place-items: center; font-size: 1.4cqw; }
.st-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 4%; }
.st-item { display: grid; grid-template-rows: 1fr auto; gap: 6%; }
.st-item i { border-radius: 8px; background: var(--c); }
.st-item b { height: 1.5cqw; width: 70%; border-radius: 3px; background: #DADAE2; display: none !important; }
.st-item span { font-size: 1.6cqw; font-weight: 800; color: #14141F; }

/* wix editor */
.pv-wix { display: grid; grid-template-columns: 7% 1fr; gap: 3%; background: #F4F5F8; }
.w-tools { display: grid; align-content: start; gap: 1.4cqw; padding-top: 2%; }
.w-tools i { aspect-ratio: 1; border-radius: 6px; background: #fff; box-shadow: 0 0 0 1px #E2E2EA; }
.w-tools i:first-child { background: var(--blue); }
.w-canvas { display: grid; grid-template-rows: 1.2fr 1fr; gap: 5%; background: #fff; border-radius: 6px; padding: 5%; box-shadow: 0 0 0 1px #E2E2EA; }
.w-block { border-radius: 6px; background: #EEF0FF; position: relative; }
.w-sel { outline: 2px solid var(--blue); outline-offset: 3px; background: linear-gradient(120deg, #E9E7FF, #F6E7F5); padding: 5%; display: grid; align-content: center; gap: 1.6cqw; }
.w-sel b { height: 3.6cqw; width: 60%; border-radius: 5px; background: #1F1640; }
.w-sel > span:not(.w-h) { height: 1.5cqw; width: 75%; border-radius: 4px; background: #B9B3D6; }
.w-h { position: absolute; width: 1.6cqw; height: 1.6cqw; border-radius: 2px; background: #fff; box-shadow: 0 0 0 2px var(--blue); }
.w-h1 { top: -0.8cqw; left: -0.8cqw; margin: -3px; } .w-h2 { top: -0.8cqw; right: -0.8cqw; margin: -3px; }
.w-h3 { bottom: -0.8cqw; left: -0.8cqw; margin: -3px; } .w-h4 { bottom: -0.8cqw; right: -0.8cqw; margin: -3px; }
.w-label { position: absolute; top: -3.8cqw; left: -3px; padding: 0.3cqw 1cqw; border-radius: 4px; background: var(--blue); color: #fff; font-style: normal; font-size: 1.3cqw; font-weight: 700; }
.w-row { display: grid; grid-template-columns: 1fr 1fr; gap: 4%; }

/* mobile */
.pv-phones { display: flex; gap: clamp(14px, 3vw, 32px); align-items: flex-end; justify-content: center; }
.phone { width: clamp(120px, 17vw, 180px); aspect-ratio: 9 / 18.5; border-radius: 26px; background: #14141F; padding: 8px; position: relative; box-shadow: 0 24px 50px -24px rgb(20 20 40 / 0.5); }
.phone-2 { translate: 0 -18px; }
.ph-notch { position: absolute; top: 12px; left: 50%; translate: -50% 0; width: 32%; height: 12px; border-radius: 999px; background: #14141F; z-index: 1; }
.ph-screen { height: 100%; border-radius: 19px; background: #F7F7FB; overflow: hidden; display: grid; grid-template-rows: auto auto 1fr auto; gap: 8px; padding: 30px 10px 10px; }
.ph-screen > b { height: 10px; width: 60%; border-radius: 4px; background: #14141F; }
.ph-card { height: 70px; border-radius: 12px; background: linear-gradient(135deg, var(--blue), #8E8BFF); }
.ph-list { display: grid; gap: 6px; align-content: start; }
.ph-list i { height: 26px; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px #ECECF2; }
.ph-tab { display: flex; justify-content: space-around; padding-top: 6px; border-top: 1px solid #ECECF2; }
.ph-tab i { width: 14px; height: 14px; border-radius: 4px; background: #CFCFDA; }
.ph-tab i:first-child { background: var(--blue); }
.phone-2 .ph-screen { grid-template-rows: 1fr auto; padding: 0; gap: 0; }
.ph-map { background: radial-gradient(circle at 60% 40%, var(--blue) 0 6px, rgb(45 42 224 / 0.25) 7px 16px, transparent 17px), repeating-linear-gradient(35deg, #E6EBE2 0 14px, #DCE3D6 14px 15px), #E9EEE4; }
.ph-sheet { background: #fff; border-radius: 16px 16px 0 0; padding: 12px 10px 14px; display: grid; gap: 6px; box-shadow: 0 -6px 16px rgb(0 0 0 / 0.08); }
.ph-sheet b { height: 9px; width: 55%; border-radius: 3px; background: #14141F; }
.ph-sheet span { height: 7px; width: 80%; border-radius: 3px; background: #D5D5DE; }
.ph-sheet em { height: 24px; border-radius: 999px; background: var(--blue); margin-top: 4px; }

/* after launch: two contrasting plan panels */
.after-launch { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; align-items: stretch; }
.plan-panel { display: flex; flex-direction: column; gap: 18px; padding: clamp(24px, 3vw, 40px); border-radius: var(--r-lg); }
.plan-maint { background: #fff; box-shadow: 0 0 0 1px var(--line); }
.plan-team { background: var(--blue); color: #fff; }
.plan-panel > p { font-size: var(--step-1); color: var(--ink-2); max-width: 32em; }
.plan-team > p { color: #DDE0FF; }
.plan-panel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; }
.plan-panel-head h3 { font-size: var(--step-3); font-stretch: 112%; font-weight: 800; letter-spacing: -0.03em; }
.plan-price { font-weight: 700; color: var(--mute); }
.plan-price b { font-size: var(--step-2); color: var(--ink); font-stretch: 125%; letter-spacing: -0.02em; }
.plan-team .plan-price { color: #DDE0FF; }
.plan-team .build-includes svg { color: #8DEBC1; }
.plan-panel .btn { align-self: flex-start; margin-top: auto; }
.plan-maint .month { position: static; }
.avatar-stack { display: flex; }
.avatar-stack span { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin-left: -10px; background: #fff; color: var(--blue); font-weight: 800; font-size: 14px; box-shadow: 0 0 0 4px var(--blue); }
.avatar-stack span:first-child { margin-left: 0; }
.avatar-stack .more { background: var(--blue-night); color: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .plan-team:hover .avatar-stack span { translate: 0 -4px; transition: translate 300ms var(--ease-out); }
  .plan-team .avatar-stack span { transition: translate 300ms var(--ease-out); transition-delay: calc(var(--n, 0) * 40ms); }
}
@media (max-width: 980px) { .after-launch { grid-template-columns: 1fr; } }
.build-preview { height: clamp(300px, 34vw, 420px); min-height: 0; overflow: hidden; }
.build-preview .pv-browser { max-height: 100%; }
.st-item span { font-size: 2.1cqw; }
.phone { width: clamp(110px, 13vw, 165px); height: auto; }

/* =================== Build explorer: realistic demo previews (text, not placeholder bars) =================== */
.pv-bar { align-items: center; }
.pv-url { margin-left: 8px; padding: 2px 10px; border-radius: 999px; background: #fff; font-family: var(--mono); font-size: 10px; color: #6A6A78; }
.pv-stage, .ph-screen { font-family: var(--font); color: #1A1A24; line-height: 1.3; }
.pv-stage .mh, .pv-stage p, .ph-screen p, .pv-stage ul, .ph-screen ul { margin: 0; padding: 0; list-style: none; }
.pv-stage svg { width: 1em; height: 1em; display: inline-block; vertical-align: -0.12em; }

/* Northside Physio */
.d-site { background: #F6FAF9; display: grid; grid-template-rows: auto 1fr auto; gap: 5%; }
.ds-nav { display: flex; align-items: center; gap: 3cqw; font-size: 1.7cqw; color: #4A5E5A; }
.ds-nav strong { margin-right: auto; font-size: 2.4cqw; color: #0F4C45; font-weight: 800; letter-spacing: -0.02em; }
.ds-nav strong span { font-weight: 400; }
.ds-nav em { font-style: normal; padding: 0.8cqw 1.8cqw; border-radius: 999px; background: #0F4C45; color: #fff; font-weight: 700; }
.ds-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 5%; align-items: center; }
.ds-hero .mh { font-size: 5cqw; line-height: 1.02; letter-spacing: -0.03em; color: #0F2E2A; font-weight: 800; }
.ds-hero p { margin-top: 1.6cqw; font-size: 1.8cqw; color: #4A5E5A; }
.ds-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 1.6cqw; margin-top: 2.4cqw; }
.ds-cta em { font-style: normal; padding: 1.1cqw 2.2cqw; border-radius: 999px; background: #F2994A; color: #1F1206; font-weight: 800; font-size: 1.7cqw; }
.ds-rating { font-size: 1.5cqw; color: #4A5E5A; display: inline-flex !important; align-items: center; gap: 0.5cqw; }
.ds-rating svg { color: #F2B23A; }
.ds-photo { aspect-ratio: 4 / 3.6; border-radius: 14px; position: relative; background:
  radial-gradient(circle at 70% 35%, rgb(255 255 255 / 0.5) 0 10%, transparent 11%),
  radial-gradient(ellipse at 40% 110%, #0F4C45 0 45%, transparent 46%),
  linear-gradient(160deg, #A8DCD1, #5FB3A6); }
.ds-badge { position: absolute; left: -6%; bottom: 10%; padding: 1.2cqw 1.8cqw; border-radius: 10px; background: #fff; font-size: 1.4cqw; color: #4A5E5A; box-shadow: 0 8px 20px -8px rgb(15 46 42 / 0.4); display: grid !important; }
.ds-badge b { font-size: 2cqw; color: #0F2E2A; }
.ds-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3%; }
.ds-cards div { padding: 1.6cqw 1.8cqw; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px #E1ECE9; display: grid; gap: 0.4cqw; }
.ds-cards b { font-size: 1.8cqw; color: #0F2E2A; }
.ds-cards span { font-size: 1.4cqw; color: #56696A; }

/* Fleetline dashboard */
.d-app { display: grid; grid-template-columns: 21% 1fr; padding: 0; background: #F6F7FB; }
.da-side { background: #111827; color: #9CA3AF; padding: 2.4cqw 1.8cqw; display: grid; align-content: start; gap: 1.2cqw; font-size: 1.6cqw; }
.da-side strong { color: #fff; font-size: 2.2cqw; margin-bottom: 1.4cqw; letter-spacing: -0.02em; }
.da-side span { padding: 0.7cqw 1cqw; border-radius: 6px; }
.da-side .on { background: #1F2937; color: #fff; box-shadow: inset 3px 0 0 var(--blue); }
.da-main { padding: 2.4cqw; display: grid; grid-template-rows: auto auto 1fr auto; gap: 1.6cqw; min-width: 0; }
.da-head { display: flex; justify-content: space-between; align-items: center; }
.da-head b { font-size: 2.3cqw; color: #111827; letter-spacing: -0.01em; }
.da-head span { font-size: 1.3cqw; font-weight: 700; color: #0D6B47; background: #E6F7EF; padding: 0.4cqw 1.2cqw; border-radius: 999px; }
.da-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4cqw; }
.da-stats div { background: #fff; border-radius: 8px; padding: 1.2cqw 1.4cqw; box-shadow: 0 0 0 1px #E8EAF2; display: grid; }
.da-stats span { font-size: 1.3cqw; color: #6B7280; }
.da-stats b { font-size: 2.6cqw; color: #111827; letter-spacing: -0.02em; }
.da-stats em { font-style: normal; font-size: 1.2cqw; font-weight: 700; color: #0D8A55; }
.da-chart { background: #fff; border-radius: 8px; box-shadow: 0 0 0 1px #E8EAF2; padding: 1.4cqw 1.6cqw 0.4cqw; min-height: 0; display: flex; }
.da-bars { flex: 1; display: flex; align-items: flex-end; gap: 1.6cqw; }
.da-bars i { flex: 1; height: var(--h); position: relative; border-radius: 5px 5px 0 0; background: linear-gradient(var(--blue), #7C79FF); transform-origin: bottom; margin-bottom: 2.4cqw; }
.da-bars i span { position: absolute; left: 50%; bottom: -2.3cqw; translate: -50% 0; font-size: 1.15cqw; color: #9CA3AF; font-style: normal; }
@media (prefers-reduced-motion: no-preference) {
  .build-panel.is-active .da-bars i { animation: bar-grow 700ms var(--ease-out) both; animation-delay: calc(240ms + var(--n, 0) * 70ms); }
}
.da-table { display: grid; gap: 0.6cqw; }
.da-table div { display: grid; grid-template-columns: 14% 1fr auto; align-items: center; padding: 0.9cqw 1.4cqw; border-radius: 6px; background: #fff; box-shadow: 0 0 0 1px #E8EAF2; font-size: 1.4cqw; color: #374151; }
.da-table em { font-style: normal; font-weight: 700; font-size: 1.2cqw; padding: 0.3cqw 1cqw; border-radius: 999px; }
.da-table .ok { background: #E6F7EF; color: #0D6B47; }
.da-table .go { background: #EEF0FF; color: var(--blue); }

/* Ridgeway Roasters */
.d-store { background: #FBF8F4; display: grid; grid-template-rows: auto auto 1fr; gap: 3.4%; }
.dst-nav { display: flex; align-items: center; gap: 2.6cqw; font-size: 1.6cqw; color: #6B5B4D; }
.dst-nav strong { margin-right: auto; font-size: 2.3cqw; color: #2A1E14; letter-spacing: -0.02em; font-weight: 800; }
.dst-cart { font-style: normal; font-weight: 700; color: #2A1E14; display: inline-flex !important; align-items: center; gap: 0.6cqw; }
.dst-cart b { min-width: 2.6cqw; height: 2.6cqw; border-radius: 999px; display: grid; place-items: center; background: #C2410C; color: #fff; font-size: 1.3cqw; }
.dst-chips { display: flex; gap: 1cqw; }
.dst-chips span { padding: 0.6cqw 1.6cqw; border-radius: 999px; font-size: 1.4cqw; font-weight: 600; color: #6B5B4D; box-shadow: inset 0 0 0 1px #E6DCD0; }
.dst-chips .on { background: #2A1E14; color: #fff; box-shadow: none; }
.dst-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3%; min-height: 0; }
.dst-item { display: grid; grid-template-rows: 1fr auto auto; gap: 0.6cqw; background: #fff; border-radius: 10px; padding: 1.4cqw; box-shadow: 0 0 0 1px #EFE7DD; min-height: 0; }
.dst-bag { border-radius: 6px 6px 10px 10px; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 80%, #000) 0 12%, var(--c) 12%); display: grid; place-items: center; min-height: 0; position: relative; }
.dst-bag i { font-style: normal; font-weight: 800; font-size: 1.8cqw; color: #fff; padding: 0.6cqw 1.2cqw; border: 2px solid rgb(255 255 255 / 0.8); border-radius: 4px; letter-spacing: 0.02em; }
.dst-item b { font-size: 1.7cqw; color: #2A1E14; }
.dst-item span { font-size: 1.6cqw; font-weight: 800; color: #C2410C; }

/* Luna Yoga in the Wix editor */
.d-wix { padding: 0; display: grid; grid-template-rows: auto 1fr; background: #EEF0F5; }
.dw-top { display: flex; align-items: center; gap: 1.4cqw; padding: 1.2cqw 1.8cqw; background: #fff; border-bottom: 1px solid #E2E4EC; font-size: 1.5cqw; color: #4B5563; }
.dw-top span { padding: 0.5cqw 1.2cqw; border-radius: 6px; }
.dw-top .on { background: #EEF0FF; color: var(--blue); font-weight: 700; }
.dw-top em { margin-left: auto; font-style: normal; padding: 0.6cqw 1.8cqw; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 700; }
.dw-body { display: grid; grid-template-columns: 1fr 24%; gap: 2cqw; padding: 2.4cqw; min-height: 0; }
.dw-site { background: #FFF9F2; border-radius: 6px; box-shadow: 0 0 0 1px #E2E4EC; padding: 2cqw 2.4cqw; display: grid; grid-template-rows: auto 1fr; gap: 3cqw; min-height: 0; }
.dw-nav { display: flex; gap: 2.2cqw; align-items: center; font-size: 1.5cqw; color: #7A6656; }
.dw-nav strong { margin-right: auto; font-family: Georgia, serif; font-style: italic; font-size: 2.4cqw; color: #4A2E1F; font-weight: 400; }
.dw-sel { position: relative; outline: 2px solid var(--blue); outline-offset: 1.2cqw; border-radius: 4px; display: grid; align-content: start; gap: 1.6cqw; }
.dw-sel .mh { font-family: Georgia, serif; font-weight: 400; font-size: 3.6cqw; color: #4A2E1F; letter-spacing: -0.01em; }
.dw-rows { display: grid; gap: 1cqw; }
.dw-rows div { display: grid; grid-template-columns: 22% 1fr auto; align-items: center; padding: 1cqw 1.4cqw; border-radius: 6px; background: #fff; box-shadow: 0 0 0 1px #F0E4D8; font-size: 1.5cqw; color: #5A4636; }
.dw-rows b { color: #4A2E1F; }
.dw-rows em { font-style: normal; font-weight: 700; color: #fff; background: #B5654A; padding: 0.4cqw 1.4cqw; border-radius: 999px; font-size: 1.3cqw; }
.dw-label { position: absolute; top: calc(-1.2cqw - 2.8cqw); left: -1.2cqw; font-style: normal; font-size: 1.3cqw; font-weight: 700; padding: 0.4cqw 1.2cqw; border-radius: 4px; background: var(--blue); color: #fff; }
.dw-h { position: absolute; width: 1.6cqw; height: 1.6cqw; border-radius: 2px; background: #fff; box-shadow: 0 0 0 2px var(--blue); }
.dw-h.h1 { top: calc(-1.2cqw - 0.8cqw); left: calc(-1.2cqw - 0.8cqw); } .dw-h.h2 { top: calc(-1.2cqw - 0.8cqw); right: calc(-1.2cqw - 0.8cqw); }
.dw-h.h3 { bottom: calc(-1.2cqw - 0.8cqw); left: calc(-1.2cqw - 0.8cqw); } .dw-h.h4 { bottom: calc(-1.2cqw - 0.8cqw); right: calc(-1.2cqw - 0.8cqw); }
.dw-panel { background: #fff; border-radius: 6px; box-shadow: 0 0 0 1px #E2E4EC; padding: 1.6cqw; display: grid; align-content: start; gap: 1.2cqw; font-size: 1.4cqw; color: #4B5563; }
.dw-panel b { font-size: 1.7cqw; color: #111827; }
.dw-panel span { padding: 0.8cqw 1cqw; border-radius: 6px; background: #F5F6FA; }
.dw-panel em { font-style: normal; padding: 0.8cqw 1cqw; border-radius: 6px; background: #EEF0FF; color: var(--blue); font-weight: 700; font-family: var(--mono); font-size: 1.25cqw; }

/* Brightside app (continues the hero demo) */
.ph-screen { container-type: inline-size; }
.d-ph1 { grid-template-rows: auto auto 1fr auto; gap: 7cqw; padding: 34cqw 7cqw 7cqw; background: #F8F6FD; }
.ph-hi { font-size: 9cqw; font-weight: 800; letter-spacing: -0.02em; color: #1F1640; }
.ph-next { display: grid; gap: 1.5cqw; padding: 7cqw; border-radius: 14px; background: linear-gradient(135deg, #6741D9, #9C7BFF); color: #fff; }
.ph-next span { font-size: 6cqw; opacity: 0.85; }
.ph-next b { font-size: 10cqw; letter-spacing: -0.02em; }
.ph-next em { font-style: normal; font-size: 6cqw; opacity: 0.9; }
.ph-menu { display: grid; gap: 3cqw; align-content: start; }
.ph-menu li { padding: 5cqw 6cqw; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px #ECE8F5; font-size: 6.4cqw; font-weight: 600; color: #1F1640; }
.ph-tabs { display: flex; justify-content: space-around; padding-top: 4cqw; border-top: 1px solid #ECE8F5; font-size: 5.6cqw; color: #8A82A3; }
.ph-tabs .on { color: #6741D9; font-weight: 800; }
.d-ph2 { grid-template-rows: 1fr auto; padding: 0; gap: 0; }
.d-ph2 .ph-map { position: relative; background: repeating-linear-gradient(35deg, #E3E8DE 0 16px, #D8DFD2 16px 17px), #E9EEE4; }
.ph-route { position: absolute; left: 22%; top: 30%; width: 50%; height: 40%; border: 3px dashed #6741D9; border-left: 0; border-bottom: 0; border-radius: 0 20px 0 0; }
.ph-pin { position: absolute; left: 18%; top: 66%; width: 12cqw; height: 12cqw; border-radius: 50%; background: #6741D9; box-shadow: 0 0 0 4cqw rgb(103 65 217 / 0.25); }
.ph-home { position: absolute; right: 22%; top: 26%; width: 10cqw; height: 10cqw; border-radius: 3px; background: #1F1640; }
.d-ph2 .ph-sheet { display: grid; gap: 2.4cqw; padding: 7cqw; border-radius: 16px 16px 0 0; background: #fff; box-shadow: 0 -6px 16px rgb(0 0 0 / 0.08); }
.d-ph2 .ph-sheet b { font-size: 8cqw; color: #1F1640; letter-spacing: -0.01em; height: auto; width: auto; background: none; }
.d-ph2 .ph-sheet span { font-size: 5.6cqw; color: #6E6687; height: auto; width: auto; background: none; }
.d-ph2 .ph-sheet em { font-style: normal; font-size: 6cqw; font-weight: 700; color: #fff; text-align: center; padding: 4cqw; border-radius: 999px; background: #6741D9; height: auto; margin-top: 1cqw; }
@media (prefers-reduced-motion: no-preference) {
  .build-panel.is-active .ph-pin { animation: pin-move 2.4s 600ms var(--ease) infinite alternate; }
}
@keyframes pin-move { to { left: 30%; top: 46%; } }
/* demo previews: rows share the frame instead of growing past it */
.pv-stage { overflow: hidden; }
.d-site { grid-template-rows: auto minmax(0, 1fr) auto; }
.ds-hero { min-height: 0; align-items: stretch; }
.ds-hero > div:first-child { align-self: center; }
.ds-photo { aspect-ratio: auto; height: 100%; min-height: 0; }
.da-main { grid-template-rows: auto auto minmax(0, 1fr) auto; }
.d-store { grid-template-rows: auto auto minmax(0, 1fr); }
.dst-grid { grid-template-rows: minmax(0, 1fr); }
.dst-item { grid-template-rows: minmax(0, 1fr) auto auto; }
.dw-body, .dw-site { min-height: 0; }
.dw-site { grid-template-rows: auto minmax(0, 1fr); }
/* phones: the phone frame is the sizing container (the screen's own padding can't use itself) */
.ph-screen { container-type: normal; }
.phone { container-type: inline-size; width: clamp(110px, 12vw, 150px); }
/* browser previews fill the fixed preview box, so their content shrinks to fit */
.build-preview .pv-browser { height: 100%; display: flex; flex-direction: column; }
.build-preview .pv-stage { flex: 1 1 auto; aspect-ratio: auto; min-height: 0; }

/* =================== Speed race: a real store page, loading (replaces abstract blocks) =================== */
.race-page.rr { container-type: inline-size; display: flex; flex-direction: column; gap: 2.6cqw; padding: 4cqw; overflow: hidden; background: #FBF8F4; }
.rr .rp { flex: none; border-radius: 8px; }
.rr .rp.is-in { background: transparent; }
.rr-in { display: flex; width: 100%; height: 100%; opacity: 0; transition: opacity 260ms var(--ease); }
.rp.is-in > .rr-in { opacity: 1; }
.rr-nav { height: 5cqw; }
.rr-nav .rr-in { align-items: center; gap: 2.6cqw; font-size: 2cqw; color: #6B5B4D; }
.rr-nav strong { margin-right: auto; font-size: 2.8cqw; color: #2A1E14; letter-spacing: -0.02em; }
.rr-nav em { font-style: normal; }
.rr-banner { height: 22cqw; }
.rr-banner .rr-in { border-radius: 10px; background: linear-gradient(120deg, #F3E3CF, #E9CBA7); align-items: flex-end; justify-content: center; gap: 4cqw; padding-bottom: 2.4cqw; }
.rr-bag { display: grid; place-items: center; width: 11cqw; height: 15cqw; border-radius: 4px 4px 8px 8px; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 78%, #000) 0 14%, var(--c) 14%); box-shadow: 0 8px 16px -8px rgb(60 30 10 / 0.5); }
.rr-bag b { font-size: 1.9cqw; color: #fff; padding: 0.4cqw 0.9cqw; border: 2px solid rgb(255 255 255 / 0.85); border-radius: 3px; }
/* the slow page reserves no space for its banner, so the layout jumps when it arrives */
.rr-banner.no-reserve:not(.is-in) { height: 0; margin-top: -2.6cqw; }
.rr-title { height: 12cqw; }
.rr-title .rr-in { flex-direction: column; justify-content: center; gap: 1.6cqw; }
.rr-title b { font-size: 3.8cqw; line-height: 1.05; letter-spacing: -0.03em; color: #2A1E14; max-width: 22ch; }
.rr-title i { align-self: flex-start; font-style: normal; font-weight: 800; font-size: 1.8cqw; padding: 0.9cqw 2cqw; border-radius: 999px; background: #2A1E14; color: #fff; }
.rr-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2cqw; flex: none; }
.rr-card { height: 9cqw; }
.rr-card .rr-in { flex-direction: column; justify-content: center; padding: 0 2cqw; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px #EFE7DD; }
.rr-card b { font-size: 1.9cqw; color: #2A1E14; }
.rr-card em { font-style: normal; font-weight: 800; font-size: 1.9cqw; color: #C2410C; }
/* fit the whole store page (nav + banner + headline + products) inside the 16:10 frame */
.race-page.rr { aspect-ratio: 16 / 10; gap: 2cqw; padding: 3.4cqw 4cqw; }
.rr-nav { height: 4cqw; }
.rr-banner { height: 17cqw; }
.rr-bag { width: 9cqw; height: 12.5cqw; }
.rr-banner.no-reserve:not(.is-in) { margin-top: -2cqw; }
.rr-title { height: 10cqw; }
.rr-title b { font-size: 3.4cqw; }
.rr-card { height: 8cqw; }
.rr-title { height: auto; min-height: 10cqw; }
.rr-title .rr-in { height: auto; padding-block: 0.6cqw; }
.rr-title b { font-size: 3.2cqw; }
/* the race lane is the sizing container, so the page's own padding and gaps scale correctly */
.race-lane { container-type: inline-size; }
.race-page.rr { container-type: normal; }

/* =================== Services FAQ: "Ask us anything" chat =================== */
.ask-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.ask-qs { display: grid; gap: 8px; }
.ask-q {
  text-align: left; padding: 16px 20px; border: 0; border-radius: var(--r-md); cursor: pointer;
  background: #fff; color: var(--ink); font: inherit; font-weight: 700; font-size: var(--step-0); line-height: 1.35;
  box-shadow: 0 0 0 1px var(--line);
  transition: background-color 160ms var(--ease), color 160ms var(--ease), box-shadow 160ms var(--ease), translate 200ms var(--ease-out);
}
.ask-q:hover { box-shadow: 0 0 0 1.5px var(--ink); }
.ask-q[aria-selected="true"] { background: var(--blue); color: #fff; box-shadow: none; translate: 6px 0; }
.ask-q:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.ask-chat { position: sticky; top: 110px; display: flex; flex-direction: column; border-radius: var(--r-lg); background: #fff; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -30px rgb(20 20 40 / 0.25); overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.chat-avatar { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font-weight: 800; font-size: 14px; }
.chat-head b { display: block; }
.chat-head small { display: flex; align-items: center; gap: 6px; color: var(--mute); font-size: var(--step--1); }
.chat-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.chat-body { min-height: 320px; padding: 24px 20px; background: var(--paper); display: flex; flex-direction: column; justify-content: flex-end; }
.ask-a { display: flex; flex-direction: column; gap: 10px; }
.ask-a[hidden] { display: none; }
.bubble { margin: 0; max-width: 85%; padding: 12px 16px; border-radius: 18px; line-height: 1.45; }
.bubble-you { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 6px; font-weight: 600; }
.bubble-rtn { align-self: flex-start; background: #fff; color: var(--ink); border-bottom-left-radius: 6px; box-shadow: 0 0 0 1px var(--line); font-size: var(--step-1); }
.bubble-typing { align-self: flex-start; display: none; gap: 5px; padding: 14px 16px; background: #fff; border-radius: 18px; border-bottom-left-radius: 6px; box-shadow: 0 0 0 1px var(--line); }
.bubble-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--mute); opacity: 0.4; }
.chat-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line); color: var(--mute); font-weight: 600; }

/* the reply sequence: your question slides in, a typing indicator, then the answer */
@media (prefers-reduced-motion: no-preference) {
  .ask-a.is-playing .bubble-you { animation: bubble-in 260ms var(--ease-out) both; }
  .ask-a.is-playing .bubble-typing { display: inline-flex; animation: typing-life 900ms linear both; }
  .ask-a.is-playing .bubble-typing i { animation: typing-dot 900ms ease-in-out infinite; }
  .ask-a.is-playing .bubble-typing i:nth-child(2) { animation-delay: 150ms; }
  .ask-a.is-playing .bubble-typing i:nth-child(3) { animation-delay: 300ms; }
  .ask-a.is-playing .bubble-rtn { animation: bubble-in 320ms 900ms var(--ease-out) both; }
}
@keyframes bubble-in { from { opacity: 0; translate: 0 10px; scale: 0.96; } }
@keyframes typing-life { 0% { opacity: 0; } 15%, 85% { opacity: 1; } 100% { opacity: 0; height: 0; padding-block: 0; margin-top: -10px; } }
@keyframes typing-dot { 50% { opacity: 1; translate: 0 -3px; } }

@media (max-width: 900px) {
  .ask-grid { grid-template-columns: 1fr; }
  .ask-qs { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 4px; scrollbar-width: thin; }
  .ask-q { flex: none; max-width: 78vw; white-space: normal; padding: 12px 16px; font-size: var(--step--1); }
  .ask-q[aria-selected="true"] { translate: 0 0; }
  .ask-chat { position: static; }
  .chat-body { min-height: 260px; }
  .bubble-rtn { font-size: var(--step-0); }
}
/* FAQ gets its own surface so it reads as a separate section from "Run" above it */
.section.ask { background: #ECEEFB; }
.section.ask .ask-q { box-shadow: 0 0 0 1px #DADDF3; }
.section.ask .ask-q[aria-selected="true"] { box-shadow: none; }
.section.ask .chat-body { background: #F6F7FD; }

/* Run: team card at its natural height, with a small helper card below it */
.after-launch { align-items: start; }
.plan-stack { display: grid; gap: 20px; align-content: start; }
.plan-stack .plan-team { gap: 16px; }
.plan-stack .plan-team .btn { margin-top: 4px; }
.plan-help { display: grid; gap: 8px; padding: 22px 26px; border-radius: var(--r-lg); background: var(--paper-2); }
.plan-help h3 { font-size: var(--step-1); font-weight: 800; letter-spacing: -0.01em; }
.plan-help p { color: var(--ink-2); }
.plan-help .link { justify-self: start; color: var(--blue); }
/* right column matches the Maintenance card: team card at natural height, helper card fills the rest */
.after-launch { align-items: stretch; }
.plan-stack { grid-template-rows: auto 1fr; }
.plan-help { align-content: center; }

/* Run section spacing after the trim */
.plan-panel { gap: 16px; }
.plan-panel-head { margin-bottom: 2px; }
.plan-maint .month { margin-block: 4px; }
.plan-maint .month h3 { margin-bottom: 10px; }
.plan-panel .btn { margin-top: auto; }
.plan-help { gap: 6px; padding: 22px 26px; }
/* more breathing room inside the Run cards */
.plan-panel { gap: 24px; padding: clamp(30px, 3.6vw, 48px); }
.plan-panel-head { margin-bottom: 4px; }
.plan-maint .month { margin-block: 8px; padding: 26px; }
.plan-maint .month h3 { margin-bottom: 14px; }
.plan-team .build-includes { gap: 12px 24px; }
.plan-stack { gap: 24px; }
.plan-help { gap: 10px; padding: 28px clamp(30px, 3.6vw, 48px); }

/* Build explorer auto-advance: progress bar on the active tab + Pause/Play control */
.build-side { position: sticky; top: 110px; display: grid; gap: 12px; align-content: start; }
.build-side .build-tabs { position: static; }
.build-tab::after {
  content: ""; position: absolute; left: 18px; right: 18px; bottom: 8px; height: 3px; border-radius: 3px;
  background: rgb(255 255 255 / 0.85); transform-origin: left; scale: var(--progress, 0) 1; opacity: 0;
}
.build-tab[aria-selected="true"]::after { opacity: 1; }
.builds.is-manual .build-tab::after { display: none; }
.build-auto {
  justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px 8px 12px;
  border: 0; border-radius: 999px; background: var(--paper-2); color: var(--ink); font: inherit; font-weight: 600; font-size: var(--step--1); cursor: pointer;
  transition: background-color 160ms var(--ease);
}
.build-auto:hover { background: var(--line); }
.build-auto:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.build-auto svg { width: 16px; height: 16px; }
.build-auto .ba-play { display: none; }
.build-auto[aria-pressed="true"] .ba-pause { display: none; }
.build-auto[aria-pressed="true"] .ba-play { display: block; }
@media (prefers-reduced-motion: reduce) { .build-auto { display: none; } }
@media (max-width: 900px) {
  .build-side { position: static; }
  .build-tab::after { left: 12px; right: 12px; bottom: 5px; }
}

/* =================== Fix section: symptom picker + diagnosis console =================== */
.diagnose { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.symptoms-title { color: #B9B9CC; font-weight: 700; margin-bottom: 12px; }
.symptom-list { display: grid; gap: 8px; }
.symptom {
  display: flex; gap: 14px; align-items: flex-start; text-align: left; padding: 16px 18px; border: 0; border-radius: var(--r-md); cursor: pointer;
  background: rgb(255 255 255 / 0.05); color: #fff; font: inherit; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1);
  transition: background-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.symptom:hover { background: rgb(255 255 255 / 0.09); }
.symptom strong { display: block; font-size: var(--step-0); }
.symptom small { color: #9A9AB0; font-size: var(--step--1); }
.sy-dot { flex: none; width: 12px; height: 12px; margin-top: 5px; border-radius: 50%; background: var(--bug); box-shadow: 0 0 0 4px rgb(255 90 54 / 0.2); transition: background-color 300ms var(--ease), box-shadow 300ms var(--ease); }
.symptom[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: none; }
.symptom[aria-selected="true"] small { color: var(--mute); }
.symptom.is-solved .sy-dot { background: var(--ok); box-shadow: 0 0 0 4px rgb(25 169 116 / 0.2); }
.symptom:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.console { border-radius: var(--r-lg); background: #0C0C14; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.1), 0 40px 80px -40px rgb(0 0 0 / 0.8); overflow: hidden; display: flex; flex-direction: column; }
.console-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #16161F; border-bottom: 1px solid rgb(255 255 255 / 0.06); font-family: var(--mono); font-size: 12px; color: #8E8EA6; }
.console-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2E2E3C; }
.console-bar span { margin-left: 8px; }
.console-bar em { margin-left: auto; font-style: normal; padding: 2px 8px; border-radius: 999px; background: rgb(255 255 255 / 0.08); color: #B9B9CC; }
.console-body { padding: 22px 22px 18px; min-height: 330px; }
.dx[hidden] { display: none; }
.dx-log { display: grid; gap: 10px; font-family: var(--mono); font-size: clamp(12px, 0.95vw, 14px); line-height: 1.5; color: #D6D6E4; }
.dx-log li { display: flex; gap: 10px; align-items: baseline; }
.dx-cmd { color: #8E8EA6; }
.dx-cmd::before { content: "$"; color: var(--sky); }
.dx-tag { flex: none; padding: 1px 8px; border-radius: 4px; font-size: 0.85em; font-weight: 500; }
.dx-bad .dx-tag { background: rgb(255 90 54 / 0.16); color: #FF9A80; }
.dx-good .dx-tag { background: rgb(25 169 116 / 0.18); color: #6EE7B0; }
.dx-result { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 22px; padding-top: 18px; border-top: 1px dashed rgb(255 255 255 / 0.14); }
.dx-result-label { font-family: var(--mono); font-size: 12px; color: #8E8EA6; }
.dx-metric { display: grid; gap: 2px; }
.dx-metric > span { font-size: var(--step--1); color: #B9B9CC; }
.dx-metric b { display: flex; align-items: baseline; gap: 10px; font-size: var(--step-2); font-stretch: 112%; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.dx-metric s { color: #FF9A80; text-decoration-thickness: 2px; font-weight: 600; }
.dx-metric i { font-style: normal; color: #8E8EA6; font-size: 0.7em; }
.dx-metric em { font-style: normal; color: #6EE7B0; }
.console-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 22px; border-top: 1px solid rgb(255 255 255 / 0.06); color: #9A9AB0; font-size: var(--step--1); }

/* the investigation types out line by line, then the result lands */
@media (prefers-reduced-motion: no-preference) {
  .dx.is-playing .dx-log li { animation: dx-line 300ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 520ms); }
  .dx.is-playing .dx-cmd::after { content: ""; display: inline-block; width: 0.55em; height: 1em; margin-left: 4px; background: var(--sky); vertical-align: -0.15em; animation: dx-caret 520ms steps(1) 2 both; }
  .dx.is-playing .dx-result { animation: dx-line 400ms var(--ease-out) both; animation-delay: calc(var(--n, 4) * 520ms + 150ms); }
}
@keyframes dx-line { from { opacity: 0; translate: 0 6px; } }
@keyframes dx-caret { 50% { opacity: 0; } }

@media (max-width: 900px) {
  .diagnose { grid-template-columns: 1fr; }
  .symptom-list { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 4px; scrollbar-width: thin; }
  .symptom { flex: none; max-width: 74vw; padding: 12px 14px; }
  .symptom small { display: none; }
  .console-body { min-height: 0; }
}
/* the caret blinks twice while the command "runs", then disappears */
@keyframes dx-caret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
/* let the console shrink to the screen and its lines wrap */
.diagnose > * { min-width: 0; }
.dx-log li { display: block; }
.dx-tag { display: inline-block; margin-right: 8px; }
.dx-cmd::before { margin-right: 8px; }
@media (max-width: 900px) { .console-body { padding: 18px 16px 14px; } .dx-log { font-size: 12px; } .dx-metric b { font-size: var(--step-1); } }

/* =================== Fix section: bug hunt (broken page first; each fix happens when you click) =================== */
.bughunt { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.bughunt > * { min-width: 0; }
.bh-frame { container-type: inline-size; border-radius: 16px; background: #fff; overflow: visible; box-shadow: 0 40px 80px -40px rgb(0 0 0 / 0.8); }
.bh-frame .pv-bar { border-radius: 16px 16px 0 0; }
.bh-page { position: relative; padding: 3.6cqw 4cqw 4.4cqw; background: #FBF8F4; color: #2A1E14; border-radius: 0 0 16px 16px; display: grid; gap: 3cqw; }
.bh-page .broken, .bh-page .ok { font-style: normal; }
.bug:not(.is-fixed) .ok, .bug.is-fixed .broken { display: none !important; }

.bh-nav { display: flex; align-items: center; gap: 3cqw; font-size: 1.9cqw; color: #6B5B4D; }
.bh-nav strong { margin-right: auto; font-size: 2.7cqw; color: #2A1E14; letter-spacing: -0.02em; }
.bh-cart { position: relative; font-weight: 700; color: #2A1E14; display: inline-flex; gap: 0.5cqw; }
.bh-cart:not(.is-fixed) .broken { color: #C2410C; }

.bh-hero { position: relative; height: 19cqw; border-radius: 10px; }
.bh-missing { height: 100%; border-radius: 10px; border: 2px dashed #D9CFC4; background: #F1ECE6; display: grid; place-content: center; justify-items: center; gap: 0.8cqw; color: #6F655B; font-family: var(--mono); font-size: 1.6cqw; }
.bh-missing svg { width: 5cqw; height: 5cqw; }
.bh-banner { height: 100%; border-radius: 10px; background: linear-gradient(120deg, #F3E3CF, #E9CBA7); display: flex; align-items: flex-end; justify-content: center; gap: 4cqw; padding-bottom: 2.4cqw; }
.bh-bag { display: grid; place-items: center; width: 10cqw; height: 13cqw; border-radius: 4px 4px 8px 8px; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 78%, #000) 0 14%, var(--c) 14%); box-shadow: 0 8px 16px -8px rgb(60 30 10 / 0.5); font-style: normal; }
.bh-bag b { font-size: 1.8cqw; color: #fff; padding: 0.4cqw 0.9cqw; border: 2px solid rgb(255 255 255 / 0.85); border-radius: 3px; }

.bh-copy { display: grid; gap: 1.4cqw; }
.bh-title { position: relative; justify-self: start; }
.bh-title .mh { margin: 0; font-size: 4.2cqw; line-height: 1.05; letter-spacing: -0.03em; font-weight: 800; color: #2A1E14; max-width: 20ch; }
.bh-title:not(.is-fixed) .mh { font-family: "Times New Roman", serif; font-weight: 400; letter-spacing: 0.08em; white-space: nowrap; margin-bottom: -2.6cqw; max-width: none; }
.bh-copy p { margin: 0; font-size: 1.9cqw; color: #6B5B4D; }

.bh-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4cqw; }
.bh-card { display: grid; gap: 1cqw; padding: 2cqw; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px #EFE7DD; align-content: start; }
.bh-card > b { font-size: 2cqw; }
.bh-price { position: relative; justify-self: start; font-size: 2.2cqw; font-weight: 800; color: #C2410C; }
.bh-price em { font-style: normal; }
.bh-price.bug:not(.is-fixed) { color: #C2410C; font-family: var(--mono); font-weight: 500; }
.bh-add { position: relative; display: block; }
.bh-add em { display: block; text-align: center; font-style: normal; font-weight: 700; font-size: 1.7cqw; padding: 1.1cqw 0; border-radius: 999px; background: #2A1E14; color: #fff; }
.bh-add.bug:not(.is-fixed) em { width: 58%; overflow: hidden; white-space: nowrap; text-overflow: clip; padding-inline: 1cqw; text-align: left; background: #75695F; rotate: -4deg; translate: 2cqw 0.6cqw; }

/* a repaired part flashes green once */
@media (prefers-reduced-motion: no-preference) {
  .bug.is-fixed:not(.no-flash) { animation: bh-repaired 900ms var(--ease-out); }
}
@keyframes bh-repaired { 0% { box-shadow: 0 0 0 0 rgb(25 169 116 / 0.9); } 100% { box-shadow: 0 0 0 14px rgb(25 169 116 / 0); } }
.bh-title.is-fixed, .bh-price.is-fixed, .bh-cart.is-fixed { border-radius: 6px; }

/* pins + tooltips */
.bh-pin {
  position: absolute; top: -12px; right: -12px; z-index: 3; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: var(--bug); color: #fff; font: 800 13px/1 var(--font); cursor: pointer;
  box-shadow: 0 0 0 4px rgb(255 90 54 / 0.25), 0 4px 10px rgb(0 0 0 / 0.25);
  transition: background-color 250ms var(--ease), scale 160ms var(--ease);
}
.bh-pin:hover { scale: 1.12; }
.bh-pin:active { scale: 0.96; }
.bh-pin:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) { .bug:not(.is-fixed) > .bh-pin { animation: pin-pulse 1.8s var(--ease) infinite; } }
.bh-pin-ok { display: none; width: 16px; height: 16px; }
.bug.is-fixed > .bh-pin { background: var(--ok); box-shadow: 0 0 0 4px rgb(25 169 116 / 0.25), 0 4px 10px rgb(0 0 0 / 0.2); cursor: default; }
.bug.is-fixed > .bh-pin .bh-pin-n { display: none; }
.bug.is-fixed > .bh-pin .bh-pin-ok { display: block; }
.bh-hero > .bh-pin { top: 12px; right: 12px; }
.bh-tip {
  position: absolute; z-index: 4; top: calc(100% + 10px); right: -12px; width: max-content; max-width: 240px;
  padding: 8px 12px; border-radius: 8px; background: var(--ink); color: #fff; font: 600 12px/1.4 var(--font); white-space: normal;
  opacity: 0; translate: 0 -4px; pointer-events: none; transition: opacity 160ms var(--ease), translate 160ms var(--ease);
}
.bh-tip .t-fix { display: none; color: #8DEBC1; }
.bug.is-fixed .bh-tip .t-bug { display: none; }
.bug.is-fixed .bh-tip .t-fix { display: block; }
.bh-pin:hover + .bh-tip, .bh-pin:focus-visible + .bh-tip { opacity: 1; translate: 0 0; }
.bh-hero > .bh-tip { top: 50px; right: 12px; }

/* side panel */
.bh-panel { display: grid; gap: 16px; padding: 24px; border-radius: var(--r-lg); background: rgb(255 255 255 / 0.05); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1); }
.bh-count { margin: 0; font-size: var(--step-1); font-weight: 700; }
.bh-count b { font-size: var(--step-3); font-stretch: 125%; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; margin-right: 6px; }
.bh-meter { height: 6px; border-radius: 6px; background: rgb(255 255 255 / 0.1); overflow: hidden; }
.bh-meter span { display: block; height: 100%; width: calc(var(--done, 0) * 20%); border-radius: 6px; background: var(--ok); transition: width 400ms var(--ease-out); }
.bh-list { display: grid; gap: 10px; }
.bh-list li { display: flex; gap: 12px; align-items: flex-start; }
.bh-n { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--bug); color: #fff; font-weight: 800; font-size: 12px; transition: background-color 250ms var(--ease); }
.bh-list strong { display: block; font-size: var(--step--1); font-weight: 600; color: #DADAE6; transition: color 250ms var(--ease); }
.bh-list small { display: block; max-height: 0; overflow: hidden; opacity: 0; color: #8DEBC1; font-size: 12.5px; transition: max-height 350ms var(--ease-out), opacity 250ms var(--ease); }
.bh-list li.is-fixed .bh-n { background: var(--ok); }
.bh-list li.is-fixed strong { color: #8E8EA6; text-decoration: line-through; text-decoration-color: rgb(255 255 255 / 0.3); }
.bh-list li.is-fixed small { max-height: 3em; opacity: 1; margin-top: 2px; }
.bh-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.bh-actions [hidden] { display: none; }
.bh-reset { padding: 8px 2px; border: 0; background: none; color: #B9B9CC; font: inherit; font-weight: 600; font-size: var(--step--1); text-decoration: underline; text-underline-offset: 0.3em; cursor: pointer; }
.bh-reset:hover { color: #fff; }
.bh-cta { display: grid; gap: 12px; padding-top: 16px; border-top: 1px solid rgb(255 255 255 / 0.1); }
.bh-cta p { margin: 0; color: #B9B9CC; font-size: var(--step--1); }
.bh-cta .btn { justify-self: start; }
.bughunt.is-all-fixed .bh-done-text { color: #fff; }

@media (max-width: 980px) { .bughunt { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .bh-pin { width: 24px; height: 24px; top: -10px; right: -10px; font-size: 11px; }
  .bh-tip { max-width: 180px; }
}
/* bug hunt layout fixes: the page never grows wider than its frame */
.bh-page { grid-template-columns: minmax(0, 1fr); }
.bh-page > * { min-width: 0; }
.bh-title:not(.is-fixed) .mh { white-space: normal; max-width: 22ch; letter-spacing: 0.06em; line-height: 0.95; margin-bottom: -3.2cqw; }
.bh-title > .bh-pin { top: -10px; right: -34px; }
.bh-price > .bh-pin, .bh-cart > .bh-pin { top: -6px; right: -34px; }
.bh-price > .bh-tip, .bh-cart > .bh-tip, .bh-title > .bh-tip { right: -34px; }
.bh-add > .bh-pin { top: -10px; right: -6px; }
.bh-price > .bh-tip, .bh-title > .bh-tip { left: 0; right: auto; }
.bh-item { display: flex; gap: 12px; align-items: flex-start; width: 100%; padding: 6px 8px; margin: -6px -8px; border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background-color 160ms var(--ease); }
.bh-item:hover { background: rgb(255 255 255 / 0.06); }
.bh-item:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.bh-list li.is-fixed .bh-item { cursor: default; }
.bh-list li.is-fixed .bh-item:hover { background: none; }
@media (max-width: 560px) { .bh-pin { width: 20px; height: 20px; font-size: 10px; } }
/* bug hunt auto-play: spotlighted bug shows its tooltip; Pause/Play on the dark panel */
.bug.is-current > .bh-tip { opacity: 1; translate: 0 0; }
.bug.is-current > .bh-pin { scale: 1.18; }
.bh-auto { background: rgb(255 255 255 / 0.08); color: #fff; }
.bh-auto:hover { background: rgb(255 255 255 / 0.16); }
.bh-auto:focus-visible { outline-color: #fff; }
.bh-auto[hidden] { display: none; }
