/* ==========================================================================
   Websites service page (prefix web-). Sits on marketing.css tokens.
   One signature visual: a site that builds itself while its load time drops,
   then hands off to hosting and care. Calm, glass, Mediterranean blue.
   ========================================================================== */

/* ---- Hero: a slow sea behind the copy (no ribbons; those belong to the main page) ---- */
.web-hero::before,
.web-hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(60px);
}
.web-hero::before {
  width: 640px; height: 640px; right: -120px; top: -140px;
  background: radial-gradient(circle, rgba(42, 159, 214, 0.34), rgba(42, 159, 214, 0) 68%);
}
.web-hero::after {
  width: 520px; height: 520px; left: -160px; bottom: -220px;
  background: radial-gradient(circle, rgba(15, 95, 166, 0.22), rgba(15, 95, 166, 0) 68%);
}
@media (prefers-reduced-motion: no-preference) {
  .web-hero::before { animation: webSea 16s ease-in-out infinite alternate; }
  .web-hero::after { animation: webSea 21s ease-in-out infinite alternate-reverse; }
}
@keyframes webSea {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-40px, 30px, 0) scale(1.12); }
}

/* ---- Signature visual ---- */
.web-hero-vis { display: flex; align-items: center; justify-content: flex-end; }
.web-stage {
  --rx: 0deg; --ry: 0deg; --py: 0px; --p: 1;
  --web-ink: rgba(11, 31, 51, 0.78);
  --web-slow: rgba(61, 84, 104, 0.62);
  position: relative;
  width: 100%;
  max-width: 520px;
  padding: 0 0 70px;
  pointer-events: none;
}
.web-tilt {
  position: relative;
  transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.35s ease-out;
  transform-style: preserve-3d;
}
.web-frame {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 0;
}
.web-bar {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  height: 40px; padding: 0 14px;
  border-bottom: 1px solid var(--mkt-hairline);
}
.web-dots { display: inline-flex; gap: 6px; }
.web-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--mkt-accent-line); }
.web-url {
  flex: 1; display: inline-flex; align-items: center; gap: 6px;
  height: 22px; padding: 0 10px; border-radius: 999px;
  background: var(--mkt-accent-soft);
  font-family: var(--font-mono); font-size: 0.66rem; color: var(--mkt-text-2);
  white-space: nowrap; overflow: hidden;
}
.web-url svg { width: 11px; height: 11px; flex: none; color: var(--mkt-accent); }
.web-load { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; }
.web-load span {
  position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--p));
  background: linear-gradient(90deg, var(--med), var(--med-sea));
  transition: opacity 0.4s ease;
}
.web-stage.is-cared .web-load span { opacity: 0; }

.web-page {
  position: relative;
  display: grid; gap: 14px;
  padding: 16px 16px 20px;
  min-height: 262px;
}

/* parts: hidden, then wireframe, then built */
.web-page [class^="web-"], .web-page .web-card > * {
  transition: opacity 0.55s ease, transform 0.55s ease, background 0.7s ease, border-color 0.7s ease, box-shadow 0.7s ease;
}
.web-nav { display: flex; align-items: center; gap: 14px; --d: 0s; }
.web-logo { width: 62px; height: 18px; border-radius: 6px; }
.web-links { display: inline-flex; gap: 10px; flex: 1; justify-content: center; }
.web-links i { width: 34px; height: 8px; border-radius: 4px; }
.web-cta { width: 54px; height: 20px; border-radius: 999px; }
.web-herob {
  display: grid; gap: 9px; align-content: center;
  padding: 18px; border-radius: 12px; min-height: 104px;
  --d: 0.25s;
}
.web-h1 { height: 12px; width: 72%; border-radius: 6px; }
.web-h1--s { width: 48%; height: 8px; }
.web-btn { width: 76px; height: 22px; border-radius: 999px; margin-top: 4px; }
.web-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.web-card { display: grid; gap: 6px; padding: 8px; border-radius: 10px; }
.web-card b { display: block; height: 38px; border-radius: 7px; }
.web-card i { display: block; height: 6px; border-radius: 3px; width: 86%; }
.web-card i + i { width: 56%; }
.web-card:nth-child(2) { --d: 0.1s; }
.web-card:nth-child(3) { --d: 0.2s; }

/* 0: nothing yet */
.web-nav, .web-herob, .web-cards { opacity: 0; transform: translateY(8px); }
/* 1: wireframe */
.web-stage.is-wire .web-nav, .web-stage.is-wire .web-herob, .web-stage.is-wire .web-cards { opacity: 1; transform: none; }
.web-nav > *, .web-herob, .web-herob > *, .web-card, .web-card > * {
  border: 1.5px dashed var(--mkt-accent-line);
  background: transparent;
}
.web-nav > .web-links { border: 0; }
.web-links i { border: 1.5px dashed var(--mkt-accent-line); }
.web-nav > *, .web-herob, .web-card { transition-delay: var(--d, 0s); }
/* 2: built */
.web-stage.is-built .web-nav > *, .web-stage.is-built .web-herob > *, .web-stage.is-built .web-card > *,
.web-stage.is-built .web-links i { border-color: transparent; }
.web-stage.is-built .web-herob {
  border-color: transparent;
  background: linear-gradient(135deg, rgba(42, 159, 214, 0.28), rgba(15, 95, 166, 0.10) 70%);
}
.web-stage.is-built .web-card { border-color: var(--mkt-hairline); background: var(--mkt-glass-strong); }
.web-stage.is-built .web-card b { background: linear-gradient(135deg, var(--med-sea), var(--med)); opacity: 0.85; }
.web-stage.is-built .web-card:nth-child(2) b { background: linear-gradient(135deg, var(--med), var(--med-deep)); }
.web-stage.is-built .web-card:nth-child(3) b { background: linear-gradient(135deg, var(--med-sky), var(--med-sea)); }
.web-stage.is-built .web-card i { background: var(--web-ink); opacity: 0.22; }
.web-stage.is-built .web-logo { background: linear-gradient(135deg, var(--med), var(--med-sea)); }
.web-stage.is-built .web-links i { background: var(--web-ink); opacity: 0.25; }
.web-stage.is-built .web-cta, .web-stage.is-built .web-btn { background: linear-gradient(135deg, var(--med), var(--med-sea)); box-shadow: 0 6px 14px -6px rgba(15, 95, 166, 0.7); }
.web-stage.is-built .web-h1 { background: var(--web-ink); opacity: 0.8; }
.web-stage.is-built .web-h1--s { opacity: 0.3; }

/* Care strip slides up over the foot of the page */
.web-care {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  padding: 10px; border-radius: 14px;
  background: var(--mkt-glass-strong);
  border: 1px solid var(--mkt-edge);
  box-shadow: var(--mkt-shadow);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.web-stage.is-cared .web-care { opacity: 1; transform: none; }
.web-care-item {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--mkt-text);
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.web-care-item svg { width: 15px; height: 15px; color: var(--med-sea); }
.web-care-item:first-child svg { color: #1fae7a; }
.web-stage.is-cared .web-care-item { opacity: 1; transform: none; }
.web-stage.is-cared .web-care-item:nth-child(2) { transition-delay: 0.35s; }
.web-stage.is-cared .web-care-item:nth-child(3) { transition-delay: 0.7s; }

/* Speed gauge */
.web-gauge {
  position: absolute; right: -18px; bottom: -66px;
  width: 168px; padding: 12px 14px 12px;
  border-radius: 18px;
  display: grid; justify-items: center;
  transform: translate3d(0, var(--py), 40px);
  opacity: 0; transition: opacity 0.6s ease;
}
.web-stage.is-wire .web-gauge { opacity: 1; }
.web-gauge-svg { width: 100%; height: auto; display: block; overflow: visible; }
.web-gauge-svg path { fill: none; stroke-width: 9; stroke-linecap: round; }
.web-gauge-track { stroke: var(--mkt-accent-soft); }
.web-gauge-arc { stroke: var(--web-slow); stroke-dasharray: var(--g, 9) 100; transition: stroke 0.5s ease; }
.web-stage.is-fast .web-gauge-arc { stroke: var(--med-sea); filter: drop-shadow(0 0 5px rgba(42, 159, 214, 0.7)); }
.web-gauge-val { margin-top: -34px; line-height: 1; }
.web-gauge-val b {
  font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; letter-spacing: -0.02em;
  color: var(--mkt-text); transition: color 0.4s ease;
  font-variant-numeric: tabular-nums;
}
.web-stage.is-fast .web-gauge-val b { background: var(--mkt-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.web-gauge-cap {
  margin-top: 4px;
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mkt-text-2);
}

/* Steps, source note, pause */
.web-foot { display: flex; align-items: flex-start; gap: 12px; margin-top: 22px; max-width: 64%; }
.web-foot-text { min-width: 0; }
.web-steps { display: flex; gap: 6px; flex-wrap: wrap; }
.web-step {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px;
  color: var(--mkt-text-2); border: 1px solid var(--mkt-hairline);
  transition: color 0.4s ease, background 0.4s ease, border-color 0.4s ease;
}
.web-step.is-on { color: #fff; background: linear-gradient(135deg, var(--med), var(--med-sea)); border-color: transparent; }
.web-step.is-done { color: var(--mkt-accent); border-color: var(--mkt-accent-line); }
.web-note { margin: 8px 0 0; font-size: 0.72rem; line-height: 1.4; color: var(--mkt-text-2); }
.web-pause {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; padding: 0; cursor: pointer;
  color: var(--mkt-accent); background: var(--mkt-glass-strong);
  border: 1px solid var(--mkt-accent-line);
  pointer-events: auto;
}
.web-pause svg { width: 12px; height: 12px; }
.web-pause:hover { border-color: var(--mkt-accent); }
.web-pause:focus-visible { outline: 2px solid var(--med-sea); outline-offset: 3px; }
.web-stage:not(.is-js) .web-pause { display: none; }

/* The same visual, shown inside "What you get" where the hero has none (tablets, phones) */
.web-stage-slot { display: none; }

/* ---- Proof ---- */
.web-proof-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.web-pc { grid-column: span 2; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.web-pc .mkt-proof-logo { height: 38px; margin-bottom: 4px; }
.web-pc .mkt-chips { margin: auto 0 0; padding-top: 6px; }
.web-pc-line { margin: 0; color: var(--text-secondary); line-height: 1.6; font-size: 0.95rem; }
.web-pc--lead {
  grid-column: span 6;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 48px; row-gap: 6px;
  align-items: center; padding: 36px 40px;
}
.web-pc--lead .mkt-proof-logo { grid-column: 1; grid-row: 1; }
.web-pc--lead .mkt-label { grid-column: 1; grid-row: 2; }
.web-pc--lead .mkt-proof-figure { grid-column: 1; grid-row: 3; margin: 6px 0 0; }
.web-pc--lead .web-pc-line { grid-column: 2; grid-row: 1 / span 2; align-self: end; font-size: 1.05rem; }
.web-pc--lead .mkt-chips { grid-column: 2; grid-row: 3; margin: 6px 0 0; padding: 0; }
.web-proof-more { text-align: center; margin: 26px 0 0; }

/* ---- What you get ---- */
.web-scope { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.web-sc { padding: 28px 24px; transition: transform 0.35s ease; }
.web-sc:hover { transform: translateY(-4px); }
.web-sc h3 { margin: 16px 0 6px; font-size: 1.15rem; }
.web-sc p { margin: 0; color: var(--text-secondary); font-size: 0.93rem; line-height: 1.55; }
.web-sc-ico {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  color: var(--mkt-accent); background: var(--mkt-accent-soft); border: 1px solid var(--mkt-accent-line);
  transition: background 0.35s ease, color 0.35s ease;
}
.web-sc-ico svg { width: 22px; height: 22px; }
.web-sc:hover .web-sc-ico { color: #fff; background: linear-gradient(135deg, var(--med), var(--med-sea)); border-color: transparent; }

/* ---- Joined up (hands off to the orange engineering systems) ---- */
.web-join {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: center;
  padding: 40px 44px;
}
.web-join h2 { margin: 0 0 10px; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.web-join p { margin: 0 0 14px; color: var(--text-secondary); line-height: 1.6; }
.web-join-vis { display: flex; align-items: center; gap: 0; }
.web-join-src {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  padding: 12px 16px; border-radius: 14px; font-weight: 600; font-size: 0.9rem;
  color: var(--mkt-accent); background: var(--mkt-accent-soft); border: 1px solid var(--mkt-accent-line);
}
.web-join-src svg { width: 18px; height: 18px; }
.web-join-flow { position: relative; flex: 1; min-width: 40px; height: 2px; background: var(--mkt-accent-line); overflow: hidden; border-radius: 2px; }
.web-join-flow i { position: absolute; top: -2px; left: 0; width: 6px; height: 6px; border-radius: 50%; background: #ff6b00; box-shadow: 0 0 8px rgba(255, 107, 0, 0.8); opacity: 0; }
.web-join-targets { display: grid; gap: 8px; flex: none; }
.web-join-node {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 12px; font-weight: 600; font-size: 0.86rem; text-decoration: none;
  color: var(--mkt-text);
  background: linear-gradient(160deg, rgba(255, 138, 61, 0.18), rgba(255, 107, 0, 0.06) 60%, rgba(255, 255, 255, 0.5));
  border: 1px solid rgba(255, 107, 0, 0.4);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.web-join-node svg { width: 16px; height: 16px; color: #ff6b00; }
.web-join-node:hover { box-shadow: 0 0 0 1px rgba(255, 107, 0, 0.45), 0 0 24px -8px rgba(255, 107, 0, 0.6); transform: translateX(3px); }
.web-join-node:focus-visible { outline: 2px solid #ff6b00; outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .web-join-flow i { animation: webDot 2.6s linear infinite; }
  .web-join-flow i:nth-child(2) { animation-delay: 0.85s; }
  .web-join-flow i:nth-child(3) { animation-delay: 1.7s; }
}
@keyframes webDot {
  0% { left: 0; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { left: calc(100% - 6px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .web-join-flow i { opacity: 1; left: 50%; }
  .web-join-flow i:nth-child(n+2) { display: none; }
}

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .web-join { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 992px) {
  /* the hero loses its right column here, so the visual moves into "What you get" */
  .web-stage-slot { display: block; margin: 36px auto 0; max-width: 520px; padding-right: 8px; }
  .web-stage-slot .web-stage { margin: 0 auto; }
  .web-hero::before { right: -240px; }
}
@media (max-width: 900px) {
  .web-scope { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .web-proof-grid { grid-template-columns: minmax(0, 1fr); }
  .web-pc, .web-pc--lead { grid-column: auto; }
  .web-pc--lead { display: flex; flex-direction: column; gap: 10px; padding: 28px; }
  .web-pc--lead .mkt-proof-figure { margin: 4px 0; }
  .web-pc--lead .mkt-chips { margin: auto 0 0; padding-top: 6px; }
}
@media (max-width: 640px) {
  .web-join { padding: 28px 22px; }
  .web-join-vis { flex-direction: column; align-items: stretch; gap: 0; }
  .web-join-src { align-self: flex-start; }
  .web-join-flow { width: 2px; height: 30px; min-width: 0; margin: 0 0 0 28px; }
  .web-join-flow { overflow: visible; }
  .web-join-flow i { top: 0; left: -2px; }
  .web-join-flow i { animation-name: webDotV; }
  .web-join-targets { margin-top: 0; }
  .web-stage { padding-bottom: 90px; }
  .web-gauge { right: -6px; width: 150px; }
  .web-foot { max-width: 58%; }
}
@keyframes webDotV {
  0% { top: 0; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: 24px; opacity: 0; }
}
@media (max-width: 480px) {
  .web-scope { grid-template-columns: minmax(0, 1fr); }
  .web-page { min-height: 236px; padding: 12px 12px 16px; }
  .web-links { display: none; }
  .web-nav { justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  .web-tilt, .web-page *, .web-care, .web-care-item, .web-gauge { transition: none !important; }
}

/* ==========================================================================
   Hero, take two: the window shows the real Rufen site.
   Design (wire -> designed), Build (re-flows to a phone), Fast (gauge),
   Looked after (activity feed). One caption line under the pills.
   ========================================================================== */

/* text is there from the start but only shows once the design lands */
.web-page .tx { transition: color 0.5s ease 0.15s; }
.web-stage:not(.is-built) .web-page .tx,
.web-stage:not(.is-built) .web-page .tx * { color: transparent !important; }

/* nav: the {RUFEN. logo in text, links, a burger for the phone view, CTA */
.web-logo { width: auto; height: auto; padding: 2px 6px; font: 800 0.86rem/1 var(--font-display, 'Outfit', sans-serif); letter-spacing: -0.01em; color: #0062ff; }
.web-logo b { color: #ff6b00; font-weight: 800; }
.web-stage.is-built .web-logo { background: none; }
.web-burger { display: none; flex-direction: column; gap: 3px; margin-left: auto; padding: 4px; }
.web-burger i { display: block; width: 14px; height: 2px; border-radius: 2px; background: var(--web-ink); opacity: 0.5; }
.web-cta { width: auto; height: auto; padding: 5px 10px; font: 600 0.58rem/1 var(--font-display, 'Outfit', sans-serif); color: #fff; white-space: nowrap; }

/* hero: centred like the real home page, with a few drifting particles */
.web-herob { position: relative; overflow: hidden; justify-items: center; text-align: center; gap: 8px; padding: 18px 16px; min-height: 128px; }
.web-stage.is-built .web-herob { background: linear-gradient(180deg, rgba(0, 98, 255, 0.06), rgba(255, 107, 0, 0.03)); }
.web-badge { padding: 3px 8px; border-radius: 999px; font: 600 0.5rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: #0062ff; }
.web-stage.is-built .web-badge { background: rgba(0, 98, 255, 0.08); border-color: transparent; }
.web-h1 { width: auto; height: auto; max-width: 92%; padding: 2px 4px; font: 800 1.02rem/1.15 var(--font-display, 'Outfit', sans-serif); letter-spacing: -0.01em; color: var(--web-ink); text-wrap: balance; }
.web-stage.is-built .web-h1 { background: none; opacity: 1; }
.web-h1--s { width: 58%; height: 6px; padding: 0; }
.web-stage.is-built .web-h1--s { background: var(--web-ink); opacity: 0.18; }
.web-btns { display: inline-flex; gap: 8px; border: 0 !important; }
.web-btn { width: auto; height: auto; margin-top: 2px; padding: 6px 12px; font: 600 0.58rem/1 var(--font-display, 'Outfit', sans-serif); color: #fff; white-space: nowrap; border: 1.5px dashed var(--mkt-accent-line); border-radius: 999px; }
.web-stage.is-built .web-btn { border-color: transparent; }
.web-stage.is-built .web-btn--ghost { background: var(--mkt-glass-strong); color: var(--web-ink); box-shadow: 0 0 0 1px var(--mkt-hairline); }
.web-spark { position: absolute; left: var(--x); top: var(--y); width: 4px; height: 4px; border-radius: 50%; background: var(--c); opacity: 0; border: 0 !important; transition: opacity 0.6s ease 0.4s; }
.web-stage.is-built .web-spark { opacity: 0.55; }
@media (prefers-reduced-motion: no-preference) {
  .web-stage.is-built .web-spark { animation: webSpark 5s ease-in-out infinite alternate; }
  .web-spark:nth-child(2n) { animation-duration: 6.5s !important; animation-delay: -2s; }
  .web-spark:nth-child(3n) { animation-duration: 4.2s !important; animation-delay: -1s; }
}
@keyframes webSpark { from { transform: translate(0, 0); } to { transform: translate(10px, -8px); } }

/* cards: icon tile, product name, one line */
.web-card { align-content: start; text-align: left; }
.web-card b { width: 22px; height: 22px; border-radius: 6px; }
.web-card strong { font: 700 0.6rem/1.2 var(--font-display, 'Outfit', sans-serif); color: var(--web-ink); padding: 1px 0; }

/* Build: the window narrows to a phone and the page re-flows */
.web-frame { width: 100%; margin: 0 auto; transition: width 0.75s cubic-bezier(0.65, 0, 0.35, 1); }
.web-stage.is-resp:not(.is-fast) .web-frame { width: 250px; }
.web-stage.is-resp:not(.is-fast) .web-links,
.web-stage.is-resp:not(.is-fast) .web-cta { display: none; }
.web-stage.is-resp:not(.is-fast) .web-burger { display: flex; }
.web-stage.is-resp:not(.is-fast) .web-url { font-size: 0.6rem; }
.web-stage.is-resp:not(.is-fast) .web-h1 { font-size: 0.92rem; }
.web-stage.is-resp:not(.is-fast) .web-btns { flex-direction: column; gap: 6px; }
.web-stage.is-resp:not(.is-fast) .web-cards { grid-template-columns: 1fr; }
.web-stage.is-resp:not(.is-fast) .web-card:nth-child(n+2) { display: none; }
.web-stage.is-resp:not(.is-fast) .web-card { grid-template-columns: 22px 1fr; align-items: center; column-gap: 8px; }
.web-stage.is-resp:not(.is-fast) .web-card i { grid-column: 2; }

/* Fast: the gauge only appears from this step */
.web-stage.is-wire .web-gauge { opacity: 0; }
.web-stage.is-fast .web-gauge { opacity: 1; }

/* Looked after: a quiet activity feed */
.web-care { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; gap: 7px; padding: 12px 14px; }
.web-care-item { text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-size: 0.72rem; font-weight: 600; }
.web-care-item svg { color: #1fae7a; }

/* the pills are buttons now: each jumps to its step */
.web-step { pointer-events: auto; cursor: pointer; background: transparent; line-height: inherit; }
.web-step:hover:not(.is-on) { color: var(--mkt-accent); border-color: var(--mkt-accent-line); }
.web-step:focus-visible { outline: 2px solid var(--mkt-accent); outline-offset: 2px; border-radius: 999px; }
.web-note { min-height: 2.6em; }

@media (prefers-reduced-motion: reduce) {
  .web-frame, .web-page .tx, .web-spark { transition: none; }
}
/* the four pills on one line, still clear of the speed gauge */
.web-foot { max-width: 69%; }
.web-steps { flex-wrap: nowrap; gap: 5px; }
@media (max-width: 640px) {
  .web-foot { max-width: 58%; }
  .web-steps { flex-wrap: wrap; }
}
/* once designed, the cards lose the wireframe's dashed edge */
.web-stage.is-built .web-card { border-style: solid; }

/* ===== The demo wears the engineering site's palette, not the marketing one =====
   Royal blue #0062ff to #3b82f6 for actions, brand orange, emerald; neutral
   slate chrome. The pills under the window stay in the page's marketing style. */
.web-stage {
  --eng-blue: #0062ff; --eng-blue-2: #3b82f6; --eng-orange: #ff6b00; --eng-green: #10b981;
  --eng-grad: linear-gradient(135deg, #0062ff 0%, #3b82f6 100%);
  --eng-line: rgba(0, 98, 255, 0.28);
}
.web-stage .web-dots i { background: rgba(15, 23, 42, 0.14); }
.web-stage .web-url { background: #f1f5f9; color: #475569; }
.web-stage .web-url svg { color: var(--eng-blue); }
.web-stage .web-load span { background: var(--eng-grad); }
/* wireframe outlines */
.web-stage .web-nav > *, .web-stage .web-herob, .web-stage .web-herob > *, .web-stage .web-card, .web-stage .web-card > *,
.web-stage .web-links i, .web-stage .web-btn { border-color: var(--eng-line); }
.web-stage.is-built .web-nav > *, .web-stage.is-built .web-herob, .web-stage.is-built .web-herob > *,
.web-stage.is-built .web-card > *, .web-stage.is-built .web-links i, .web-stage.is-built .web-btn { border-color: transparent; }
.web-stage.is-built .web-card { border-color: rgba(15, 23, 42, 0.08); }
/* actions and accents */
.web-stage.is-built .web-cta, .web-stage.is-built .web-btn:not(.web-btn--ghost) { background: var(--eng-grad); box-shadow: 0 6px 14px -6px rgba(0, 98, 255, 0.55); }
.web-stage .web-badge { color: var(--eng-blue); }
.web-stage.is-built .web-badge { background: rgba(0, 98, 255, 0.08); }
.web-stage.is-built .web-card b { opacity: 1; background: var(--eng-grad); }
.web-stage.is-built .web-card:nth-child(2) b { background: linear-gradient(135deg, #10b981, #34d399); }
.web-stage.is-built .web-card:nth-child(3) b { background: linear-gradient(135deg, #ff6b00, #ff8c00); }
/* speed gauge */
.web-stage.is-fast .web-gauge-arc { stroke: var(--eng-blue); filter: drop-shadow(0 0 5px rgba(0, 98, 255, 0.55)); }
.web-stage.is-fast .web-gauge-val b { background: var(--eng-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.web-stage .web-gauge-track { stroke: #e2e8f0; }
/* activity feed */
.web-stage .web-care-item svg { color: var(--eng-green); }

/* ===== Live site viewer and the Infrastructure panel ===== */
a.mkt-chip.mkt-chip--site::after { content: "\2197"; opacity: 0.8; margin-right: 0; }
a.mkt-chip.mkt-chip--infra::after, a.mkt-chip.mkt-chip--panel::after { content: "+"; opacity: 0.8; margin-right: 0; }
.web-modal {
  position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; padding: 3vh 3vw;
  background: rgba(10, 22, 40, 0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity 0.22s ease;
}
.web-modal.is-open { opacity: 1; }
.web-modal[hidden] { display: none; }
.web-modal-win, .web-modal-card { transform: translateY(14px) scale(0.98); transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.web-modal.is-open .web-modal-win, .web-modal.is-open .web-modal-card { transform: none; }

/* the browser window */
.web-modal-win {
  width: min(1200px, 94vw); height: min(820px, 88vh); display: flex; flex-direction: column;
  border-radius: 14px; overflow: hidden; background: #fff;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.web-modal-bar { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 10px 0 14px; background: #f1f5f9; border-bottom: 1px solid #e2e8f0; flex: none; }
.web-modal-dots { display: inline-flex; gap: 6px; }
.web-modal-dots i { width: 11px; height: 11px; border-radius: 50%; background: #cbd5e1; }
.web-modal-url { flex: 1; min-width: 0; display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px; border-radius: 999px; background: #fff; border: 1px solid #e2e8f0; font: 500 0.8rem/1 var(--font-mono); color: #475569; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.web-modal-url svg { width: 13px; height: 13px; color: #10b981; flex: none; }
.web-modal-out { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; font: 600 0.8rem/1 var(--font-display); color: #0062ff; text-decoration: none; white-space: nowrap; }
.web-modal-out:hover { background: rgba(0, 98, 255, 0.08); }
.web-modal-out svg { width: 15px; height: 15px; }
.web-modal-x { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 0; background: transparent; color: #475569; cursor: pointer; flex: none; }
.web-modal-x:hover { background: #e2e8f0; color: #0f172a; }
.web-modal-x:focus-visible, .web-modal-out:focus-visible { outline: 2px solid #0062ff; outline-offset: 2px; }
.web-modal-x svg { width: 18px; height: 18px; }
.web-modal-view { position: relative; flex: 1; background: #fff; }
.web-modal-view iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity 0.3s ease; }
.web-modal.is-loaded .web-modal-view iframe { opacity: 1; }
.web-modal-wait { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 3px solid #e2e8f0; border-top-color: #0062ff; animation: webSpin 0.8s linear infinite; }
.web-modal.is-loaded .web-modal-wait { display: none; }
@keyframes webSpin { to { transform: rotate(360deg); } }

/* the Rufen Infrastructure panel */
.web-modal-card {
  position: relative; width: min(460px, 92vw); padding: 28px 28px 26px; border-radius: 18px; background: #fff;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.55); text-align: left;
}
.web-modal-card .web-modal-x { position: absolute; top: 14px; right: 14px; }
.web-infra-tag { display: inline-block; margin-bottom: 10px; padding: 4px 9px; border-radius: 999px; background: rgba(255, 107, 0, 0.1); color: #c2560a; font: 700 0.66rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; }
.web-modal-card h3 { margin: 0 0 8px; font-size: 1.4rem; color: #0f172a; }
.web-infra-lead { margin: 0 0 16px; color: #475569; font-size: 0.95rem; line-height: 1.5; }
.web-infra-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.web-infra-list li { display: flex; align-items: center; gap: 9px; font-size: 0.88rem; color: #0f172a; }
.web-infra-list svg { width: 17px; height: 17px; color: #0062ff; flex: none; }
@media (max-width: 640px) {
  .web-modal { padding: 0; }
  .web-modal-win { width: 100vw; height: 100dvh; border-radius: 0; }
  .web-modal-out span { display: none; }
  .web-infra-list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .web-modal, .web-modal-win, .web-modal-card, .web-modal-view iframe { transition: none; }
  .web-modal-wait { animation-duration: 2s; }
}
/* inside the window, for a site whose own headers refuse framing */
.web-modal-blocked { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 24px; text-align: center; background: #f8fafc; }
.web-modal-blocked[hidden] { display: none; }
.web-modal-blocked svg { width: 34px; height: 34px; color: #94a3b8; }
.web-modal-blocked b { font: 700 1.3rem/1.2 var(--font-display); color: #0f172a; }
.web-modal-blocked p { margin: 0 0 6px; max-width: 420px; color: #475569; font-size: 0.95rem; line-height: 1.5; }
.web-modal.is-blocked .web-modal-view iframe { display: none; }
/* the embedded site is scaled from its desktop width (websites.js fit()) */
.web-modal-view { overflow: hidden; }
.web-modal-view iframe { transform-origin: 0 0; }

/* fan-out: one line from "Your site" branches to each system */
.web-join-vis { position: relative; }
.web-join-flow { background: none; height: auto; min-width: 70px; }
.web-join-fan { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.web-join-src, .web-join-targets { position: relative; z-index: 1; }
.web-fan-line { fill: none; stroke: rgba(100, 116, 139, 0.4); stroke-width: 1.6; stroke-linecap: round; }
.web-fan-dot { fill: #ff6b00; filter: drop-shadow(0 0 4px rgba(255, 107, 0, 0.8)); }

/* ===== What you get: muted background animations beside each card's icon =====
   Faint at rest, they play on hover (or while on screen on touch devices:
   .is-live from websites.js). Still for reduced motion. */
.web-sc { position: relative; overflow: hidden; }
.web-sc > h3, .web-sc > p, .web-sc > .web-sc-ico { position: relative; z-index: 1; }
.web-sc-anim {
  position: absolute; top: 24px; left: 84px; right: 14px; height: 56px; z-index: 0;
  pointer-events: none; overflow: hidden;
  color: var(--mkt-accent); opacity: 0.16; transition: opacity 0.5s ease;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 88%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 88%, transparent 100%);
}
.web-sc:hover .web-sc-anim, .web-sc.is-live .web-sc-anim { opacity: 0.5; }
.web-sc-anim svg { display: block; overflow: visible; }
.web-sc-anim * { animation-play-state: paused; }
.web-sc:hover .web-sc-anim *, .web-sc.is-live .web-sc-anim * { animation-play-state: running; }

/* 1 Design: a brush paints a little landscape */
.web-anim-design path, .web-anim-design circle { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.web-anim-design .wa-paint, .web-anim-design .wa-ground { stroke-dasharray: 1; stroke-dashoffset: 1; animation: waPaint 4.4s ease-in-out infinite; }
.web-anim-design .wa-ground { stroke-width: 1.2; opacity: 0.6; animation-delay: 0.3s; }
.web-anim-design .wa-sun { opacity: 0; animation: waSun 4.4s ease-in-out infinite; }
.wa-brush {
  position: absolute; left: 0; top: 0; width: 18px; height: 18px; color: currentColor;
  offset-path: path('M4 50 L34 26 L52 38 L80 14 L108 42 L130 32 L166 50'); offset-rotate: 0deg; offset-anchor: 15% 85%;
  animation: waBrush 4.4s ease-in-out infinite;
}
.wa-brush svg { width: 18px; height: 18px; fill: currentColor; }
@keyframes waPaint { 0% { stroke-dashoffset: 1; opacity: 1; } 60% { stroke-dashoffset: 0; opacity: 1; } 88% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes waSun { 0%, 55% { opacity: 0; transform: scale(0.6); transform-origin: 146px 15px; } 66%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes waBrush { 0% { offset-distance: 0%; opacity: 1; } 60% { offset-distance: 100%; opacity: 1; } 70%, 100% { offset-distance: 100%; opacity: 0; } }

/* 2 Build: columns of code stream down (filled by websites.js) */
.web-anim-build { display: flex; justify-content: space-between; font: 500 10px/1.25 var(--font-mono); }
.web-anim-build .wa-col { display: flex; flex-direction: column; animation: waRain var(--t, 3s) linear infinite; animation-delay: var(--o, 0s); }
.web-anim-build .wa-col i { font-style: normal; }
.web-anim-build .wa-col i:nth-child(3n) { opacity: 0.45; }
@keyframes waRain { from { transform: translateY(-50%); } to { transform: translateY(0); } }

/* 3 Hosting: a server, and the web coming out of it */
.web-anim-host rect, .web-anim-host line, .web-anim-host circle, .web-anim-host ellipse, .web-anim-host path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.web-anim-host .wa-led { fill: currentColor; stroke: none; animation: waBlink 1.2s steps(2, jump-none) infinite; }
.web-anim-host .wa-led--2 { animation-delay: 0.6s; }
.web-anim-host .wa-link { stroke-dasharray: 3 4; animation: waFlow 1s linear infinite; }
.web-anim-host .wa-globe { transform-box: fill-box; transform-origin: center; animation: waRise 4s ease-in-out infinite; }
.web-anim-host .wa-mer { animation: waSpin 3s linear infinite; transform-box: fill-box; transform-origin: center; }
.web-anim-host text { fill: currentColor; stroke: none; font: 600 9px var(--font-mono); letter-spacing: 0.1em; }
@keyframes waBlink { 0% { opacity: 1; } 100% { opacity: 0.2; } }
@keyframes waFlow { to { stroke-dashoffset: -7; } }
@keyframes waRise { 0% { transform: translate(-30px, 14px) scale(0.5); opacity: 0; } 30%, 85% { transform: none; opacity: 1; } 100% { transform: translateY(-4px); opacity: 0; } }
@keyframes waSpin { 0% { transform: scaleX(1); } 50% { transform: scaleX(0.15); } 100% { transform: scaleX(1); } }

/* 4 Care: Quill writes a new post, Darko ticks off the updates */
.web-anim-care { display: flex; align-items: center; justify-content: center; gap: 8px; }
.wa-site { position: relative; width: 74px; height: 48px; border: 1.5px solid currentColor; border-radius: 6px; padding: 7px 7px 0; box-sizing: border-box; display: flex; flex-direction: column; gap: 4px; }
.wa-site > i { display: block; height: 3px; width: 100%; border-radius: 2px; background: currentColor; opacity: 0.6; }
.wa-post { display: flex; flex-direction: column; gap: 3px; }
.wa-post i { display: block; height: 3px; border-radius: 2px; background: currentColor; width: 0; animation: waWrite 4.2s ease-in-out infinite; }
.wa-post i:nth-child(1) { --w: 90%; }
.wa-post i:nth-child(2) { --w: 70%; animation-delay: 0.5s; }
.wa-post i:nth-child(3) { --w: 50%; animation-delay: 1s; }
.wa-ticks { position: absolute; right: -6px; top: -8px; display: flex; gap: 2px; }
.wa-ticks em { font-style: normal; font: 700 10px/1 var(--font-body); width: 14px; height: 14px; display: grid; place-items: center; border-radius: 50%; background: currentColor; color: #fff; opacity: 0; animation: waTick 4.2s ease infinite; }
.wa-ticks em:nth-child(2) { animation-delay: 0.6s; }
.wa-who { width: 26px; height: 26px; border-radius: 50%; animation: waBob 2.4s ease-in-out infinite; filter: grayscale(0.4); }
.wa-quill { order: -1; }
.wa-darko { animation-delay: 1.2s; }
@keyframes waWrite { 0% { width: 0; } 35%, 85% { width: var(--w); } 100% { width: 0; } }
@keyframes waTick { 0%, 45% { opacity: 0; transform: scale(0.4); } 55%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes waBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

@media (prefers-reduced-motion: reduce) {
  .web-sc-anim * { animation: none !important; }
  .web-anim-design .wa-paint, .web-anim-design .wa-ground { stroke-dashoffset: 0; }
  .web-anim-design .wa-sun, .web-anim-host .wa-globe, .wa-ticks em { opacity: 1; transform: none; }
  .wa-post i { width: var(--w); }
  .wa-brush { display: none; }
}
/* Infrastructure panel: links to the overview */
.web-infra-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.web-infra-more, .web-infra-all { font: 600 0.9rem/1.3 var(--font-display); color: #0062ff; text-decoration: none; }
.web-infra-more:hover, .web-infra-all:hover { text-decoration: underline; }
.web-infra-all { display: inline-block; margin-top: 14px; font-size: 0.84rem; color: #475569; }

/* Design card, take two: the brush paints a digital product, not a landscape.
   It traces an app screen, then its header line; the interface fills in
   (headline, button, two cards), rests, fades, and the next one starts. */
.web-anim-design .wd-frame, .web-anim-design .wd-head { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.web-anim-design .wd-frame { animation: wdFrame 5s ease-in-out infinite; }
.web-anim-design .wd-head { stroke-width: 1.2; animation: wdHead 5s ease-in-out infinite; }
.web-anim-design .wd-ui { fill: currentColor; stroke: none; opacity: 0; transform-box: fill-box; transform-origin: left center; animation: wdUi 5s ease-out infinite; }
.web-anim-design .wd-dot { animation-delay: 0s; }
.web-anim-design .wd-h1 { --a: 0.55; animation-name: wdUiGrow; }
.web-anim-design .wd-h2 { --a: 0.3; animation-name: wdUiGrow; animation-delay: 0.15s; }
.web-anim-design .wd-btn { --a: 0.9; animation-delay: 0.3s; }
.web-anim-design .wd-card { --a: 0.22; fill: none; stroke: currentColor; stroke-width: 1.3; transform-origin: center; animation-delay: 0.45s; }
.web-anim-design .wd-card--2 { animation-delay: 0.6s; }
.web-anim-design .wa-brush { offset-path: path('M30 4 H140 Q146 4 146 10 V46 Q146 52 140 52 H30 Q24 52 24 46 V10 Q24 4 30 4 Z'); animation: wdBrush 5s ease-in-out infinite; }
@keyframes wdFrame { 0% { stroke-dashoffset: 1; opacity: 1; } 40% { stroke-dashoffset: 0; } 90% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes wdHead { 0%, 40% { stroke-dashoffset: 1; opacity: 1; } 50% { stroke-dashoffset: 0; } 90% { stroke-dashoffset: 0; opacity: 1; } 100% { opacity: 0; } }
@keyframes wdUi { 0%, 50% { opacity: 0; transform: scale(0.6); } 60%, 90% { opacity: var(--a, 0.6); transform: none; } 100% { opacity: 0; } }
@keyframes wdUiGrow { 0%, 50% { opacity: 0; transform: scaleX(0); } 62%, 90% { opacity: var(--a, 0.6); transform: none; } 100% { opacity: 0; } }
@keyframes wdBrush { 0% { offset-distance: 0%; opacity: 1; } 40% { offset-distance: 100%; opacity: 1; } 48%, 100% { offset-distance: 100%; opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .web-anim-design .wd-frame, .web-anim-design .wd-head { stroke-dashoffset: 0; }
  .web-anim-design .wd-ui { opacity: var(--a, 0.6); transform: none; }
}

/* Hero alignment: centre the browser window (not the window + pills + gauge room) on the
   copy column. The pills, note and gauge hang below without counting towards the centring. */
@media (min-width: 1101px) {
  .mkt-hero .web-hero-vis .web-stage { margin-bottom: -156px; }
}

/* The {RUFEN. word in info panel titles, in the brand colours, on every page with panels */
.rufen-word { font-family: var(--font-display, 'Outfit', sans-serif); font-weight: 800; color: #0062ff; letter-spacing: -0.01em; white-space: nowrap; }
.rufen-word .rw-b { color: #ff6b00; margin-right: 0.04em; }
.rufen-word .rw-d { color: #ff6b00; }

/* ===== Dark mode (html[data-theme="dark"]) ===== One block. The info panel (.web-modal-*) is the standard panel for the whole site; it sits on <body>, so it reads whichever --dk-* set its page declares. */
:where(:root[data-theme="dark"]) .rufen-word{ color:#81aaf7; }
:where(:root[data-theme="dark"]) .rufen-word :is(.rw-b,.rw-d){ color:#f39d5e; }
:root[data-theme="dark"] .web-hero::before{ background:radial-gradient(circle,rgba(42,159,214,.12),rgba(42,159,214,0) 68%); }
:root[data-theme="dark"] .web-hero::after{ background:radial-gradient(circle,rgba(15,95,166,.10),rgba(15,95,166,0) 68%); }
/* the hero window shows the real Rufen site: a window, three levels (body s2, bar s3, field s1) */
:root[data-theme="dark"] .web-stage{ --web-ink:rgba(228,237,242,.82); --web-slow:rgba(178,192,201,.55); --eng-blue:#81aaf7; --eng-orange:#f39d5e; --eng-green:#6bcf9d; --eng-grad:linear-gradient(135deg,#1a5cdf,#2063e6); --eng-line:rgba(129,170,247,.38); }
:root[data-theme="dark"] body.pillar-marketing main .web-frame.glass-card{ background:var(--dk-s2); border-color:var(--dk-edge); box-shadow:inset 0 1px 0 var(--dk-edge-hi); }
:root[data-theme="dark"] .web-bar{ background:var(--dk-s3); border-bottom-color:var(--dk-line-3); }
:root[data-theme="dark"] .web-stage .web-dots i{ background:var(--dk-edge); }
:root[data-theme="dark"] .web-stage .web-url{ background:var(--dk-s1); box-shadow:inset 0 0 0 1px var(--dk-line-2); color:var(--text-secondary); }
:root[data-theme="dark"] .web-stage .web-url svg{ color:var(--blue-text); }
:root[data-theme="dark"] .web-stage .web-logo{ color:#81aaf7; }
:root[data-theme="dark"] .web-stage .web-logo b{ color:#f39d5e; }
:root[data-theme="dark"] .web-stage.is-built .web-card{ background:var(--dk-s3); border-color:var(--dk-line-3); }
:root[data-theme="dark"] .web-stage.is-built .web-card b{ background:var(--eng-grad); }
:root[data-theme="dark"] .web-stage.is-built .web-card:nth-child(2) b{ background:linear-gradient(135deg,#2f9a6e,#6bcf9d); }
:root[data-theme="dark"] .web-stage.is-built .web-card:nth-child(3) b{ background:linear-gradient(135deg,#c9692a,#f39d5e); }
:root[data-theme="dark"] .web-stage.is-built .web-btn--ghost{ background:var(--dk-s3); }
:root[data-theme="dark"] .web-stage.is-built .web-cta,:root[data-theme="dark"] .web-stage.is-built .web-btn:not(.web-btn--ghost){ box-shadow:none; }
:root[data-theme="dark"] .web-stage .web-badge{ color:#81aaf7; }
:root[data-theme="dark"] .web-stage.is-built .web-badge{ background:rgba(129,170,247,.12); }
:root[data-theme="dark"] .web-stage.is-built .web-herob{ background:linear-gradient(180deg,rgba(129,170,247,.08),rgba(129,170,247,.03)); }
:root[data-theme="dark"] body.pillar-marketing main .web-gauge.glass-card{ background:var(--dk-s3); border-color:var(--dk-line-3); }
:root[data-theme="dark"] .web-stage .web-gauge-track{ stroke:var(--dk-line-3); }
:root[data-theme="dark"] .web-stage.is-fast .web-gauge-arc{ stroke:var(--blue-text); filter:none; }
:root[data-theme="dark"] .web-stage.is-fast .web-gauge-val b{ background:linear-gradient(135deg,#a2c6fe,#81aaf7); -webkit-background-clip:text; background-clip:text; }
:root[data-theme="dark"] .web-care{ background:var(--dk-s3); border-color:var(--dk-line-3); box-shadow:none; -webkit-backdrop-filter:none; backdrop-filter:none; }
:root[data-theme="dark"] .web-stage .web-care-item svg{ color:var(--green-text); }
:root[data-theme="dark"] .web-step.is-on{ background:var(--btn-mkt); color:#fff; }
:root[data-theme="dark"] .web-pause{ background:var(--dk-s2); border-color:var(--dk-line-3); }
/* what you get, joined up */
:root[data-theme="dark"] .web-sc-ico{ background:rgba(113,193,224,.10); border-color:rgba(113,193,224,.30); }
:root[data-theme="dark"] .web-sc:hover .web-sc-ico{ background:var(--btn-mkt); border-color:var(--btn-mkt); color:#fff; }
:root[data-theme="dark"] .wa-ticks em{ color:var(--dk-s1); }
:root[data-theme="dark"] .web-join-node{ background:var(--dk-s2); border-color:var(--dk-edge); color:var(--text-primary); }
:root[data-theme="dark"] .web-join-node:hover{ background:var(--dk-s3); border-color:#f39d5e; box-shadow:none; }
:root[data-theme="dark"] .web-join-node:focus-visible{ border-color:#f39d5e; outline-color:#97bffe; }
:root[data-theme="dark"] .web-join-node svg{ color:var(--orange-text); }
:root[data-theme="dark"] .web-join-flow i{ background:#f39d5e; box-shadow:none; }
:root[data-theme="dark"] .web-stage.is-built .web-spark{ opacity:.9; }
:root[data-theme="dark"] .web-fan-dot{ fill:#f39d5e; filter:none; }
:root[data-theme="dark"] .web-fan-line{ stroke:rgba(150,190,220,.30); }
/* the info panel: scrim, s3 panel, --dk-edge frame, lit top, inner list on s2 */
:root[data-theme="dark"] .web-modal{ background:var(--dk-scrim); }
:root[data-theme="dark"] .web-modal-card{ background:var(--dk-s3); box-shadow:inset 0 0 0 1px var(--dk-edge),inset 0 1px 0 var(--dk-edge-hi),0 40px 90px -30px rgba(0,3,11,.7); }
:root[data-theme="dark"] .web-modal-card h3{ color:var(--text-primary); }
:root[data-theme="dark"] .web-infra-tag{ background:var(--dk-s4); color:var(--orange-text); box-shadow:inset 0 0 0 1px var(--dk-edge); }
:root[data-theme="dark"] .web-infra-lead{ color:var(--text-secondary); }
:root[data-theme="dark"] .web-infra-list{ background:var(--dk-s2); box-shadow:inset 0 0 0 1px var(--dk-line-2); border-radius:12px; padding:14px 16px; }
:root[data-theme="dark"] .web-infra-list li{ color:var(--text-primary); }
:root[data-theme="dark"] .web-infra-list svg{ color:var(--blue-text); }
:root[data-theme="dark"] :is(.web-infra-more,.web-modal-out){ color:var(--blue-text); }
:root[data-theme="dark"] .web-modal-out:hover{ background:var(--tint-2); }
:root[data-theme="dark"] .web-infra-all{ color:var(--text-secondary); }
:root[data-theme="dark"] .web-modal-x{ color:var(--text-secondary); }
:root[data-theme="dark"] .web-modal-x:hover{ background:var(--dk-s4); color:var(--text-primary); }
/* the site viewer window (the framed third-party page itself stays as that site draws it) */
:root[data-theme="dark"] .web-modal-win{ background:var(--dk-s2); box-shadow:inset 0 0 0 1px var(--dk-edge),inset 0 1px 0 var(--dk-edge-hi),0 40px 90px -30px rgba(0,3,11,.7); }
:root[data-theme="dark"] .web-modal-bar{ background:var(--dk-s3); border-bottom-color:var(--dk-line-3); }
:root[data-theme="dark"] .web-modal-dots i{ background:var(--dk-edge); }
:root[data-theme="dark"] .web-modal-url{ background:var(--dk-s1); border-color:var(--dk-line-2); color:var(--text-secondary); }
:root[data-theme="dark"] .web-modal-url svg{ color:var(--green-text); }
:root[data-theme="dark"] :is(.web-modal-view,.web-modal-blocked){ background:var(--dk-s2); }
:root[data-theme="dark"] .web-modal-wait{ border-color:var(--dk-line-3); border-top-color:var(--blue-text); }
:root[data-theme="dark"] .web-modal-blocked svg{ color:var(--text-muted); }
:root[data-theme="dark"] .web-modal-blocked b{ color:var(--text-primary); }
:root[data-theme="dark"] .web-modal-blocked p{ color:var(--text-secondary); }

/* ===== Phones: the info panel is a bottom sheet (Mars, 23 Nov) =====
   Same panel (the site standard), docked to the bottom where the thumb is: it slides up, has a grab handle,
   and a swipe down closes it (websites.js). Home panels add a "2 of 8" row to step through a pillar (home-panels.js). */
@media (max-width: 640px) {
  .web-modal--infra { place-items: end stretch; padding: 0; z-index: 10000; }   /* above the fixed footer bar (9999) */
  .web-modal--infra .web-modal-card {
    width: 100%; max-height: 86dvh; overflow-y: auto; overscroll-behavior: contain;
    padding: 30px 20px calc(18px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0;
    transform: translateY(100%); transition: transform 0.34s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .web-modal--infra.is-open .web-modal-card { transform: translateY(var(--sheet-drag, 0px)); }
  .web-modal--infra.is-dragging .web-modal-card { transition: none; }
  .web-modal--infra .web-modal-card::before {
    content: ""; position: absolute; top: 9px; left: 50%; width: 40px; height: 5px; margin-left: -20px;
    border-radius: 3px; background: rgba(15, 23, 42, 0.18);
  }
  .web-modal--infra .web-modal-card .web-modal-x { top: 12px; right: 10px; }
  .web-modal--infra .web-modal-card h3 { padding-right: 36px; font-size: 1.25rem; }
  .web-modal--infra .web-infra-lead { font-size: 0.9rem; margin-bottom: 14px; }
  .web-modal--infra .web-infra-list { grid-template-columns: 1fr 1fr; gap: 9px 12px; margin-bottom: 16px; }
  .web-modal--infra .web-infra-list li { font-size: 0.82rem; align-items: flex-start; }
  .web-modal--infra .web-infra-actions { display: grid; grid-template-columns: 1fr; gap: 12px; }
  .web-modal--infra .web-infra-actions .btn { width: 100%; justify-content: center; }
  .web-modal--infra .web-infra-more { text-align: center; }
  .web-modal--infra .web-infra-all { display: block; text-align: center; margin-top: 10px; }
}
.web-sheet-nav { display: none; }
@media (max-width: 640px) {
  .web-sheet-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; }
  .web-sheet-nav button {
    display: inline-flex; align-items: center; gap: 4px; padding: 8px 10px; border: 0; border-radius: 10px; cursor: pointer;
    background: rgba(15, 23, 42, 0.05); color: #0f172a; font: 600 0.8rem/1 var(--font-display);
  }
  .web-sheet-nav button svg { width: 15px; height: 15px; }
  .web-sheet-nav span { font: 600 0.72rem/1 var(--font-mono); letter-spacing: 0.08em; color: #64748b; }
}
@media (max-width: 640px) and (prefers-reduced-motion: reduce) { .web-modal--infra .web-modal-card { transition: none; } }
:root[data-theme="dark"] .web-modal--infra .web-modal-card::before { background: rgba(190, 210, 255, 0.28); }
:root[data-theme="dark"] .web-sheet-nav button { background: var(--dk-s3); color: var(--text-primary); box-shadow: inset 0 0 0 1px var(--dk-line-3); }
:root[data-theme="dark"] .web-sheet-nav span { color: var(--text-secondary); }

.web-modal.is-swap, .web-modal.is-swap .web-modal-card { transition: none !important; }   /* stepping Prev/Next swaps the sheet in place */
