/* =========================================================================
   migrate.kmedia.co.il - Kooktail Media design tokens, same values as kmedia.co.il
   Brand gradient is sampled from the logo: blue -> violet -> magenta -> orange.
   No framework and no build step: this file is served as written.
   ========================================================================= */

@font-face {
  font-family: "Changa";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/assets/fonts/changa-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Heebo";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/heebo-hebrew.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Heebo";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/heebo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --blue: #016ab3;
  --blue-deep: #101c58;
  --blue-ink: #0b1436;
  --orange: #ff780b;
  --yellow: #fedd50;
  --red: #e73214;
  --violet: #7b4fd0;
  --magenta: #d94b9c;
  --ok: #178a43;

  --grad-brand: linear-gradient(115deg, var(--blue) 0%, var(--violet) 34%, var(--magenta) 62%, var(--orange) 100%);
  --grad-warm: linear-gradient(115deg, var(--magenta) 0%, var(--orange) 70%, var(--yellow) 100%);
  --grad-cool: linear-gradient(150deg, var(--blue-deep) 0%, var(--blue) 100%);
  --grad-ink: linear-gradient(160deg, #0b1436 0%, #16265e 55%, #1b3f80 100%);

  --bg: #fff;
  --bg-soft: #f5f7fb;
  --bg-tint: #eef3fa;
  --border: #e3e8f2;
  --border-soft: #eef1f7;
  --text: #16203f;
  --text-muted: #5a6684;
  --text-faint: #8c96b0;
  --on-dark-mut: #b9c4e0;

  --font-sans: "Heebo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Changa", "Heebo", system-ui, sans-serif;

  --step--1: clamp(0.83rem, 0.79rem + 0.2vw, 0.94rem);
  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.13rem);
  --step-1: clamp(1.2rem, 1.11rem + 0.44vw, 1.44rem);
  --step-2: clamp(1.44rem, 1.29rem + 0.75vw, 1.84rem);
  --step-3: clamp(1.73rem, 1.49rem + 1.2vw, 2.35rem);
  --step-4: clamp(2.07rem, 1.7rem + 1.85vw, 3rem);
  --step-5: clamp(2.49rem, 1.92rem + 2.83vw, 3.84rem);
  --fs-meta: 0.85rem;
  --fs-label: 0.8rem;

  --gap: clamp(1rem, 0.7rem + 1.5vw, 1.75rem);
  --section-y: clamp(3.5rem, 2.2rem + 6vw, 7rem);
  --shell: 1180px;
  --header-h: 72px;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 34px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgb(16 28 88 / 0.06), 0 2px 8px rgb(16 28 88 / 0.05);
  --shadow-md: 0 4px 12px rgb(16 28 88 / 0.07), 0 12px 32px rgb(16 28 88 / 0.08);
  --shadow-lg: 0 10px 24px rgb(16 28 88 / 0.09), 0 30px 60px rgb(16 28 88 / 0.12);
  --shadow-brand: 0 10px 30px rgb(1 106 179 / 0.28);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--orange); color: #fff; }
:where(a, button, input, textarea, select, summary):focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; inset-inline-start: 1rem; top: -100px; z-index: 999;
  padding: 0.75rem 1.25rem; background: var(--blue-deep); color: #fff;
  border-radius: 0 0 var(--r-md) var(--r-md); transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 0; }

.shell { width: min(100% - 2.5rem, var(--shell)); margin-inline: auto; }
@media (max-width: 480px) { .shell { width: min(100% - 1.75rem, var(--shell)); } }

.section { padding-block: var(--section-y); position: relative; }
.section--soft { background: var(--bg-soft); }
.section--ink { background: var(--grad-ink); color: #fff; }
.section--ink :where(h1, h2, h3) { color: #fff; }
.section--ink p { color: var(--on-dark-mut); }

.accent { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sprite { position: absolute; }
.section--ink .accent { background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* -------------------------------------------------------- section heading */
.sec-head { text-align: center; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.eyebrow { display: inline-block; font-size: var(--step--1); font-weight: 600; letter-spacing: 0.08em; color: var(--orange); margin-bottom: 0.6rem; }
.sec-head h2 { font-size: var(--step-4); }
.sec-head::after { content: ""; display: block; width: 62px; height: 5px; margin: 1.1rem auto 0; border-radius: var(--r-pill); background: var(--grad-warm); }
.sec-head p { margin: 0.9rem auto 0; max-width: 62ch; color: var(--text-muted); font-size: var(--step-1); line-height: 1.6; }
.section--ink .sec-head p { color: var(--on-dark-mut); }

/* ---------------------------------------------------------------- buttons */
.btn {
  --btn-bg: var(--grad-cool); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  padding: 0.85em 1.9em; border-radius: var(--r-pill);
  font-weight: 600; font-size: var(--step-0); line-height: 1.2;
  color: var(--btn-fg); background: var(--btn-bg); box-shadow: var(--shadow-sm);
  position: relative; isolation: isolate; overflow: hidden; text-align: center;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-out);
}
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grad-warm); opacity: 0; transition: opacity 0.35s var(--ease-out); }
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-brand); }
.btn:hover::after { opacity: 1; }
.btn:active { transform: translateY(-1px); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn--warm { --btn-bg: var(--grad-warm); }
.btn--warm::after { background: var(--grad-cool); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--text); border: 2px solid var(--border); box-shadow: none; }
.btn--ghost::after { background: var(--grad-cool); }
.btn--ghost:hover { --btn-fg: #fff; border-color: transparent; }
.btn--light { --btn-bg: #fff; --btn-fg: var(--blue-deep); }
.btn--light::after { background: var(--grad-warm); }
.btn--light:hover { --btn-fg: #fff; }
.btn--on-dark { --btn-bg: transparent; --btn-fg: #fff; border: 2px solid rgb(255 255 255 / 0.3); box-shadow: none; }
.btn--on-dark::after { background: var(--grad-warm); }
.btn--on-dark:hover { border-color: transparent; }
.btn--sm { padding: 0.6em 1.3em; font-size: var(--step--1); }
.btn--lg { padding: 1em 2.2em; font-size: var(--step-1); }
.btn--block { display: flex; width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: wait; transform: none; }

/* ----------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent; transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.scrolled { border-color: var(--border-soft); box-shadow: 0 6px 24px rgb(16 28 88 / 0.07); }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 0.7rem; margin-inline-end: auto; }
.brand img { width: 46px; height: 46px; }
.brand b { display: block; font-family: var(--font-display); font-size: 1.08rem; line-height: 1.1; }
.brand small { display: block; font-size: 0.68rem; color: var(--text-muted); line-height: 1.2; letter-spacing: 0.01em; }
.site-nav { display: flex; align-items: center; gap: 0.35rem; }
.site-nav a:not(.btn) { padding: 0.5rem 0.85rem; border-radius: var(--r-pill); font-weight: 600; font-size: var(--step--1); color: var(--text); transition: background 0.25s, color 0.25s; }
.site-nav a:not(.btn):hover, .site-nav a.is-active { background: var(--bg-tint); color: var(--blue); }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; place-items: center; align-content: center; gap: 5px; }
.nav-toggle span { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--text); transition: transform 0.3s var(--ease-out), opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 920px) {
  .nav-toggle { display: grid; }
  .site-nav {
    position: absolute; inset-inline: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0.15rem;
    padding: 0.75rem 1.25rem 1.25rem; background: var(--bg);
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 0.8rem 0.5rem; border-radius: var(--r-sm); }
  .site-nav .btn { margin-top: 0.5rem; }
}

/* ------------------------------------------------------------------- hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(180deg, #f3f8ff 0%, #eef0fc 52%, #fcf2ea 100%);
  padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(3rem, 6vw, 5.5rem);
}
/* aurora: brand-colour light pools that drift slowly, with a fine grid that fades out towards the edges */
.hero::before {
  content: ""; position: absolute; inset: -15% -10%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(34rem 26rem at 82% 8%, rgb(1 106 179 / 0.26), transparent 62%),
    radial-gradient(30rem 24rem at 60% 80%, rgb(123 79 208 / 0.2), transparent 62%),
    radial-gradient(28rem 22rem at 12% 92%, rgb(255 120 11 / 0.24), transparent 60%),
    radial-gradient(24rem 18rem at 30% 10%, rgb(217 75 156 / 0.14), transparent 62%);
  animation: herodrift 22s ease-in-out infinite alternate;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgb(22 32 63 / 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgb(22 32 63 / 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(72% 85% at 50% 46%, #000 18%, transparent 78%);
  mask-image: radial-gradient(72% 85% at 50% 46%, #000 18%, transparent 78%);
}
@keyframes herodrift { to { transform: translate3d(-3%, 2.5%, 0) scale(1.06); } }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: clamp(2rem, 5vw, 4rem); }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { font-size: var(--step-5); line-height: 1.08; }
.hero .lede { margin-top: 1.25rem; max-width: 52ch; font-size: var(--step-1); line-height: 1.65; color: var(--text-muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.9rem; }
.hero-cta .btn--lg { padding-inline: 1.5em; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin-top: 1.75rem; font-size: var(--step--1); color: var(--text-muted); }
.hero-chips li { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero-chips svg { width: 18px; height: 18px; color: var(--ok); flex: none; }

.fig { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--r-xl); padding: clamp(0.9rem, 2vw, 1.5rem); box-shadow: var(--shadow-lg); width: 100%; max-width: 480px; margin-inline: auto; }
.fig figcaption { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--border-soft); text-align: center; font-size: var(--fs-meta); color: var(--text-muted); }

/* diagram (inline SVG in index.html; styled here because the CSP forbids inline <style>)
   One 5s loop drives the story: on the WordPress side a request waits on the server and the database and the
   visitor sees the page late; on the static side it is answered by the first hop. Every element rests in its
   FINISHED state (packets and spinners hidden, the "loaded" tick on the static side shown), so reduced motion,
   "stop animations" and a failed script all land on a sensible still picture. */
.mg { width: 100%; height: auto; overflow: visible; --mg-loop: 5s; }
.mg text { font-family: var(--font-sans); direction: rtl; }
.mg g, .mg circle, .mg path, .mg ellipse, .mg rect { transform-box: fill-box; transform-origin: center; }

.mg-pa1 { stop-color: #fff8f1; } .mg-pa2 { stop-color: #ffeedd; }
.mg-pb1 { stop-color: #f3f8fd; } .mg-pb2 { stop-color: #e4f0fb; }
.mg-panel-a { stroke: #ffd2a8; }
.mg-panel-b { stroke: #b9d6f0; }
.mg-texture { opacity: 0.55; pointer-events: none; }
.mg-dot { fill: #8a98b8; opacity: 0.28; }

.mg-lane { font-size: 15px; font-weight: 700; }
.mg-lane-a { fill: #b8470a; }
.mg-lane-b { fill: var(--blue); }
.mg-hchip-a { fill: #ffe2c8; }
.mg-hchip-b { fill: #d6e8f8; }
.mg-pill-a { fill: #fff; stroke: #f1a36a; }
.mg-pill-b { fill: #fff; stroke: #9cc4e6; }
.mg-pill-t { font-size: 13px; font-weight: 600; }
.mg-pill-t-a { fill: #b8470a; }
.mg-pill-t-b { fill: var(--blue); }

.mg-node { fill: #fff; stroke: #e1e7f2; stroke-width: 1.5; }
.mg-node-b { stroke: #a9cdea; }
.mg-chip-blue { fill: #e6f0fb; }
.mg-chip-orange { fill: #ffeedd; }
.mg-ico { fill: none; stroke: var(--blue-deep); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mg-ico-blue { stroke: var(--blue); }
.mg-ico-warn { stroke: #b8470a; }
.mg-ico-ok { stroke: var(--ok); stroke-width: 2.4; }
.mg-led { fill: var(--orange); stroke: none; animation: mg-blink 1.3s ease-in-out infinite; }
.mg-led-2 { animation-delay: 0.45s; }
.mg-t { font-size: 14px; font-weight: 700; fill: var(--text); }
.mg-s { font-size: 13px; fill: var(--text-muted); }

.mg-arr { stroke: var(--text-faint); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 5 6; animation: mgdash 1.4s linear infinite; }
.mg-arr-b { stroke: var(--blue); }
.mg-head { fill: var(--text-faint); }
.mg-head-b { fill: var(--blue); }

.mg-chip-warn { fill: #fff; stroke: #f1a36a; }
.mg-chip-ok { fill: #fff; stroke: #8fd1a8; }
.mg-chip-t { font-size: 13px; font-weight: 600; }
.mg-chip-t-warn { fill: #b8470a; }
.mg-chip-t-ok { fill: var(--ok); }
.mg-alert { fill: var(--red); }
.mg-alert-ring { fill: var(--red); opacity: 0; animation: mg-alert 2s ease-out infinite; }
.mg-alert-2 { animation-delay: 0.6s; }
.mg-alert-3 { animation-delay: 1.2s; }
.mg-cap { font-size: 13px; fill: var(--text-muted); }

/* packets: they travel behind the node cards, so a request seems to enter a node, wait, and leave */
.mg-pkt { opacity: 0; }
.mg-halo { opacity: 0.25; }
.mg-halo-a, .mg-core-a { fill: var(--orange); }
.mg-halo-b, .mg-core-b { fill: var(--blue); }
.mg-halo-ok, .mg-core-ok { fill: var(--ok); }
.mg-pkt-a { animation: mg-pkt-a var(--mg-loop) ease-in-out infinite; }
.mg-pkt-b1 { animation: mg-pkt-b1 var(--mg-loop) ease-in-out infinite; }
.mg-pkt-b2 { animation: mg-pkt-b2 var(--mg-loop) ease-in-out infinite; }

/* "working" rings around a node while it holds the request */
.mg-ring { fill: none; stroke: var(--orange); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 26 137; opacity: 0; }
.mg-ring-v { animation: mg-rot 0.9s linear infinite, mg-ring-v var(--mg-loop) infinite; }
.mg-ring-s { animation: mg-rot 0.9s linear infinite, mg-ring-s var(--mg-loop) infinite; }
.mg-ring-d { animation: mg-rot 0.9s linear infinite, mg-ring-d var(--mg-loop) infinite; }
.mg-ring-c { stroke: var(--blue); stroke-dasharray: none; animation: mg-cdn var(--mg-loop) ease-out infinite; }

/* the page arrived: late on the WordPress side, right away on the static side */
.mg-done { opacity: 0; }
.mg-done-b { opacity: 1; animation: mg-done-b var(--mg-loop) infinite; }
.mg-done-a { animation: mg-done-a var(--mg-loop) infinite; }
.mg-done-bg { fill: var(--ok); stroke: #fff; stroke-width: 2; }
.mg-done-ck { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* static side: edge locations answering */
.mg-edge { fill: none; stroke: #9cc4e6; stroke-width: 1.3; stroke-dasharray: 3 4; }
.mg-edge-dot { fill: var(--blue); }
.mg-edge-ring { fill: var(--blue); opacity: 0; animation: mg-alert 2.4s ease-out infinite; }
.mg-e2 { animation-delay: 0.6s; } .mg-e3 { animation-delay: 1.2s; } .mg-e4 { animation-delay: 1.8s; }
.mg-meridian { animation: mg-turn 3.2s ease-in-out infinite; }

/* the migration step */
.mg-divline { fill: none; stroke: #d3dbea; stroke-width: 1.5; stroke-dasharray: 3 5; stroke-linecap: round; }
.mg-pill-go { fill: #fff; stroke: #dfe5f1; stroke-width: 1.5; filter: drop-shadow(0 3px 6px rgb(22 32 63 / 0.1)); }
.mg-go-ring { fill: var(--violet); opacity: 0; animation: mg-alert 2.2s ease-out infinite; }
.mg-go-t { font-size: 14px; font-weight: 700; fill: var(--text); }
.mg-go-ico { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; animation: mg-bob 1.6s ease-in-out infinite; }

.mg-in { animation: mg-in 0.9s var(--ease-out) both; }
.mg-d2 { animation-delay: 0.18s; } .mg-d3 { animation-delay: 0.36s; }

@keyframes mgdash { to { stroke-dashoffset: -22; } }
@keyframes mg-in { from { opacity: 0; transform: translateY(16px); } }
@keyframes mg-rot { to { transform: rotate(360deg); } }
@keyframes mg-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@keyframes mg-alert { 0% { transform: scale(1); opacity: 0.55; } 70%, 100% { transform: scale(2.6); opacity: 0; } }
@keyframes mg-turn { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(0.12); } }
@keyframes mg-bob { 0%, 100% { transform: translateY(-1px); } 50% { transform: translateY(2.5px); } }
@keyframes mg-pkt-a {
  0%, 3% { transform: translateX(0); opacity: 0; }
  5% { opacity: 1; }
  30%, 50% { transform: translateX(-62px); opacity: 1; }
  72%, 86% { transform: translateX(-190px); opacity: 1; }
  92%, 100% { transform: translateX(-190px); opacity: 0; }
}
@keyframes mg-pkt-b1 {
  0%, 3% { transform: translateX(0); opacity: 0; }
  5% { opacity: 1; }
  11% { transform: translateX(-52px); opacity: 1; }
  12%, 100% { transform: translateX(-52px); opacity: 0; }
}
@keyframes mg-pkt-b2 {
  0%, 11% { transform: translateX(0); opacity: 0; }
  13% { opacity: 1; }
  19% { transform: translateX(76px); opacity: 1; }
  20%, 100% { transform: translateX(76px); opacity: 0; }
}
@keyframes mg-ring-v { 0%, 4% { opacity: 0; } 8%, 88% { opacity: 1; } 92%, 100% { opacity: 0; } }
@keyframes mg-ring-s { 0%, 28% { opacity: 0; } 32%, 48% { opacity: 1; } 52%, 100% { opacity: 0; } }
@keyframes mg-ring-d { 0%, 70% { opacity: 0; } 74%, 84% { opacity: 1; } 88%, 100% { opacity: 0; } }
@keyframes mg-cdn { 0%, 9% { transform: scale(0.8); opacity: 0; } 11% { opacity: 0.8; } 22%, 100% { transform: scale(1.35); opacity: 0; } }
@keyframes mg-done-a {
  0%, 90% { opacity: 0; transform: scale(0.4); }
  94% { opacity: 1; transform: scale(1.18); }
  96%, 98% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1); }
}
@keyframes mg-done-b {
  0%, 18% { opacity: 0; transform: scale(0.4); }
  22% { opacity: 1; transform: scale(1.18); }
  25%, 96% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1); }
}

/* ------------------------------------------------------------------ cards */
.grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.5rem), 1fr)); }
.card {
  position: relative; overflow: hidden; height: 100%;
  background: #fff; border: 1px solid var(--border-soft); border-radius: var(--r-lg);
  padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s;
}
.card::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px; background: var(--grad-brand); transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease-out); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card h3 { font-size: var(--step-1); margin: 0.9rem 0 0.4rem; }
.card p { font-size: var(--step--1); line-height: 1.75; color: var(--text-muted); }
.ico {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: var(--r-md);
  color: #fff; background: var(--grad-cool); box-shadow: var(--shadow-brand);
  transition: transform 0.45s var(--ease-spring), background 0.4s;
}
.ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card:hover .ico { transform: rotate(-8deg) scale(1.07); background: var(--grad-warm); }
.ico--warm { background: var(--grad-warm); box-shadow: 0 10px 30px rgb(255 120 11 / 0.28); }
.ico--ok { background: linear-gradient(150deg, #0e6b34, #1faa4f); box-shadow: 0 10px 30px rgb(23 138 67 / 0.25); }

/* ---------------------------------------------------------------- checks */
.panel { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--r-xl); box-shadow: var(--shadow-md); padding: clamp(1.5rem, 4vw, 3rem); }
.included-intro { max-width: 70ch; margin: 0 auto clamp(1.5rem, 3vw, 2.25rem); text-align: center; color: var(--text-muted); font-size: var(--step-1); line-height: 1.7; }
.checks { display: grid; gap: 0.9rem 2.5rem; grid-template-columns: 1fr 1fr; }
@media (min-width: 701px) { .checks--cols { grid-auto-flow: column; grid-template-rows: repeat(6, auto); } }
@media (max-width: 700px) { .checks { grid-template-columns: 1fr; } }
.checks li { display: flex; align-items: flex-start; gap: 0.7rem; line-height: 1.55; }
.checks li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5.5 12.5 4.2 4.2L18.5 7.8'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.checks--info li::before { background-color: var(--orange); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M12 7v6M12 17.2v.1'/%3E%3C/svg%3E"); }

/* ----------------------------------------------------------------- steps */
.steps { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr)); counter-reset: step; }
.steps li { padding: 1.5rem 1.35rem; border-radius: var(--r-lg); background: color-mix(in srgb, #fff 6%, transparent); border: 1px solid color-mix(in srgb, #fff 12%, transparent); }
.steps b { display: block; font-family: var(--font-display); font-size: 1.9rem; line-height: 1; margin-bottom: 0.6rem; background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps h3 { font-size: var(--step-1); margin-bottom: 0.4rem; }
.steps p { font-size: var(--step--1); line-height: 1.75; }

/* ------------------------------------------------------------- two-up row */
.duo { display: grid; gap: var(--gap); grid-template-columns: 1fr 1fr; align-items: stretch; }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } }
.duo .panel h2 { font-size: var(--step-3); margin-bottom: 0.7rem; }
.duo .panel > p { color: var(--text-muted); margin-bottom: 1.1rem; }
.duo .checks { grid-template-columns: 1fr; gap: 0.7rem; }
.duo .checks + p { margin-top: 1.4rem; }
.note { margin-top: 1.25rem; padding: 0.9rem 1.1rem; border-radius: var(--r-md); background: var(--bg-tint); color: var(--text-muted); font-size: var(--step--1); line-height: 1.65; }

/* ------------------------------------------------------------------ price */
.price { max-width: 860px; margin-inline: auto; text-align: center; }
.price .panel { padding: clamp(1.75rem, 4vw, 3rem); }
.price h3 { font-size: var(--step-2); margin-bottom: 0.6rem; }
.price p { color: var(--text-muted); max-width: 60ch; margin-inline: auto; }
.factors { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; max-width: 38rem; margin: 1.4rem auto 1.8rem; }
.factors li { padding: 0.5rem 1.05rem; border-radius: var(--r-pill); background: var(--bg-soft); border: 1px solid var(--border); font-size: var(--step--1); font-weight: 600; color: var(--blue-deep); }

/* -------------------------------------------------------------------- faq */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 0.75rem; }
.faq details { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--r-md); box-shadow: var(--shadow-sm); transition: border-color 0.3s, box-shadow 0.3s; }
.faq details[open] { border-color: color-mix(in srgb, var(--blue) 35%, transparent); box-shadow: var(--shadow-md); }
.faq summary { list-style: none; display: flex; align-items: center; gap: 0.9rem; padding: 1.1rem 1.25rem; cursor: pointer; font-weight: 600; font-size: 1.2rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg-tint); color: var(--blue); font-size: 1.3rem; line-height: 1; font-weight: 500; transition: transform 0.3s var(--ease-out), background 0.3s, color 0.3s;
}
.faq details[open] summary::before { content: "\2212"; background: var(--grad-warm); color: #fff; }
.faq .answer { padding: 0 1.25rem 1.25rem 1.25rem; padding-inline-start: calc(1.25rem + 28px + 0.9rem); color: var(--text-muted); line-height: 1.85; }

/* ---------------------------------------------------------------- contact */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 920px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-copy h2 { font-size: var(--step-4); }
.contact-copy > p { margin-top: 1rem; font-size: var(--step-1); line-height: 1.65; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.contact-points { margin-top: 1.75rem; display: grid; gap: 0.6rem; color: var(--on-dark-mut); font-size: var(--step--1); }
.contact-points li { display: flex; gap: 0.6rem; align-items: center; }
.contact-points svg { width: 18px; height: 18px; color: var(--yellow); flex: none; }

.form { background: #fff; color: var(--text); border-radius: var(--r-xl); padding: clamp(1.5rem, 3.5vw, 2.4rem); box-shadow: var(--shadow-lg); display: grid; gap: 1rem; }
.form-row { display: grid; gap: 6px; }
.form-row.two { grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row.two > div { display: grid; gap: 6px; }
@media (max-width: 560px) { .form-row.two { grid-template-columns: 1fr; } }
.form label { font-weight: 500; font-size: var(--step--1); }
.form input[type=text], .form input[type=tel], .form input[type=email], .form textarea {
  width: 100%; padding: 0.8rem 1rem; border: 1.5px solid var(--border); border-radius: var(--r-sm); background: #fff; color: var(--text);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.form textarea { resize: vertical; min-height: 104px; }
.form input:focus, .form textarea:focus { border-color: var(--blue); outline: 3px solid color-mix(in srgb, var(--blue) 22%, transparent); outline-offset: 0; }
.form input[dir=ltr] { text-align: right; }
.form-row.check { grid-template-columns: auto 1fr; align-items: start; gap: 0.7rem; }
.form-row.check input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--blue); }
.form-row.check a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile:empty { display: none; }
.form-status { min-height: 1.5em; font-weight: 500; }
.form-status.ok { color: var(--ok); }
.form-status.error { color: #c0341a; }

/* ----------------------------------------------------------------- footer */
.site-footer { background: var(--blue-ink); color: var(--on-dark-mut); padding-block: 2.5rem; border-top: 3px solid transparent; border-image: var(--grad-brand) 1; }
.footer-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; }
.footer-brand { display: flex; align-items: center; gap: 0.75rem; color: #fff; }
.footer-brand img { width: 44px; height: 44px; }
.footer-brand b { font-family: var(--font-display); font-size: 1.3rem; display: block; line-height: 1.1; }
.footer-brand small { color: var(--on-dark-mut); font-size: 0.78rem; letter-spacing: 0.01em; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; font-size: var(--fs-meta); }
.footer-links a, .link-button { color: var(--on-dark-mut); transition: color 0.25s; }
.footer-links a:hover, .link-button:hover { color: #fff; }
.link-button { font-size: inherit; text-decoration: underline; text-underline-offset: 3px; }
.copyright { width: 100%; font-size: var(--fs-meta); color: var(--text-faint); }

/* ------------------------------- floating widgets: physical left/right on purpose */
.fab { position: fixed; bottom: 20px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--shadow-md); transition: transform 0.3s var(--ease-spring); }
.fab:hover { transform: scale(1.08); }
.fab svg { width: 28px; height: 28px; }
.fab-whatsapp { right: 20px; background: #25d366; color: #fff; }
.fab-whatsapp svg { fill: currentColor; }
.fab-a11y { left: 20px; background: var(--blue-deep); color: #fff; }
.fab-a11y svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.fab-a11y svg circle { fill: currentColor; stroke: none; }

.a11y-panel { position: fixed; bottom: 88px; left: 20px; z-index: 70; width: min(300px, calc(100vw - 40px)); display: grid; gap: 8px; padding: 16px; background: #fff; color: var(--text); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.a11y-panel[hidden], .cookie-banner[hidden] { display: none; }
.a11y-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.a11y-head button { width: 36px; height: 36px; border-radius: 10px; background: var(--bg-soft); }
.a11y-panel > button, .a11y-text button { font-size: var(--step--1); text-align: start; padding: 0.6rem 0.8rem; border: 1.5px solid var(--border); border-radius: var(--r-sm); background: #fff; }
.a11y-panel > button[aria-pressed="true"] { border-color: var(--blue); background: var(--bg-tint); font-weight: 600; }
.a11y-text { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.a11y-text button { width: 48px; text-align: center; font-weight: 700; }
.a11y-reset { color: #c0341a; }
.a11y-panel > a { text-align: center; padding-top: 4px; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

.cookie-banner { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); width: min(760px, calc(100vw - 32px)); z-index: 80; display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; background: #fff; color: var(--text); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.cookie-banner p { font-size: var(--fs-meta); line-height: 1.6; color: var(--text-muted); }
.cookie-banner a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions { display: flex; gap: 0.5rem; flex: none; }
@media (max-width: 620px) { .cookie-banner { flex-direction: column; align-items: stretch; } .cookie-actions { justify-content: stretch; } .cookie-actions .btn { flex: 1; } }

/* --------------------------------------------------------------- reveal */
html.reveal [data-reveal]:not(.is-visible) { opacity: 0; transform: translateY(26px); }
[data-reveal] { transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); transition-delay: var(--reveal-delay, 0ms); }

/* ------------------------------------------------ accessibility settings */
html.a11y-text-1 { font-size: 112.5%; }
html.a11y-text-2 { font-size: 125%; }
html.a11y-text-3 { font-size: 140%; }
html.a11y-grayscale body { filter: grayscale(1); }
html.a11y-links a { text-decoration: underline !important; text-decoration-thickness: 2px !important; }
html.a11y-readable body, html.a11y-readable button, html.a11y-readable input, html.a11y-readable textarea { font-family: Arial, "Heebo", sans-serif !important; letter-spacing: 0.02em; word-spacing: 0.08em; line-height: 1.9; }
html.a11y-no-motion *, html.a11y-no-motion *::before, html.a11y-no-motion *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
html.a11y-contrast { --text: #000; --text-muted: #000; --text-faint: #222; --border: #000; --border-soft: #000; --bg-soft: #fff; --bg-tint: #fff; --on-dark-mut: #fff; }
html.a11y-contrast .section--ink, html.a11y-contrast .site-footer { background: #000; color: #fff; }
html.a11y-contrast .hero { background: #fff; }
html.a11y-contrast .hero::before, html.a11y-contrast .hero::after { display: none; }
html.a11y-contrast .accent { background: none; color: inherit; -webkit-text-fill-color: currentColor; text-decoration: underline; }
html.a11y-contrast .card, html.a11y-contrast .panel, html.a11y-contrast .faq details, html.a11y-contrast .fig { border: 2px solid #000; box-shadow: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html.reveal [data-reveal]:not(.is-visible) { opacity: 1; transform: none; }
}

.notfound { font-size: var(--step-4); margin-bottom: 0.5rem; }

@media (max-width: 560px) {
  .hero-cta .btn { width: 100%; }
}

/* ===================================================== benefits: bento tiles
   Every illustration rests in its FINISHED state. The "before" look only exists while html.reveal is set and the
   tile has not been revealed yet, so reduced motion, "stop animations" and a failed script all land on the end result. */
.bento-sec { overflow: hidden; isolation: isolate; }
.bento-glow {
  position: absolute; inset: -18% -8% auto; height: 125%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(34rem 24rem at 82% 16%, rgb(123 79 208 / 0.36), transparent 62%),
    radial-gradient(30rem 22rem at 10% 66%, rgb(255 120 11 / 0.2), transparent 60%),
    radial-gradient(28rem 20rem at 56% 100%, rgb(1 106 179 / 0.34), transparent 62%);
  animation: glowdrift 24s ease-in-out infinite alternate;
}
@keyframes glowdrift { to { transform: translate3d(-4%, 3%, 0) scale(1.07); } }

.bento {
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-areas:
    "speed speed cdn up"
    "speed speed surface surface"
    "srv plug ssl cost";
}
.tile--speed { grid-area: speed; } .tile--cdn { grid-area: cdn; } .tile--up { grid-area: up; } .tile--surface { grid-area: surface; }
.tile--srv { grid-area: srv; } .tile--plug { grid-area: plug; } .tile--ssl { grid-area: ssl; } .tile--cost { grid-area: cost; }
@media (max-width: 1040px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "speed speed" "cdn up" "surface surface" "srv plug" "ssl cost"; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; grid-template-areas: "speed" "cdn" "up" "surface" "srv" "plug" "ssl" "cost"; }
}

.tile {
  position: relative; display: flex; flex-direction: column; gap: 1.1rem; overflow: hidden;
  padding: clamp(1.25rem, 2.4vw, 1.75rem); border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgb(255 255 255 / 0.09), rgb(255 255 255 / 0.03));
  border: 1px solid rgb(255 255 255 / 0.12);
  box-shadow: 0 18px 50px rgb(3 8 30 / 0.35);
}
.tile > * { position: relative; z-index: 1; }
/* pointer spotlight: a soft light under the content and a gradient edge that follows the mouse */
.tile::before, .tile::after { content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.35s; }
.tile::before { background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgb(255 255 255 / 0.14), transparent 55%); }
.tile::after {
  padding: 1px;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 0%), var(--orange), var(--violet) 45%, transparent 72%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
}
.tile:hover::before, .tile:hover::after { opacity: 1; }

.tile-copy h3 { font-size: var(--step-1); line-height: 1.25; }
.tile-copy p { margin-top: 0.45rem; font-size: var(--step--1); line-height: 1.7; color: var(--on-dark-mut); }
.tile--speed .tile-copy h3 { font-size: var(--step-1); }
.tile--speed .tile-copy p { font-size: var(--step--1); max-width: 34ch; }
.art { margin-top: auto; }
.tile--speed .art { margin-block: auto; }
:is(.tile--cdn, .tile--up, .tile--srv, .tile--plug, .tile--ssl, .tile--cost) .art {
  margin: 0 0 0.3rem; min-height: 112px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0.35rem;
}

/* -- speed: the same request, two roads ------------------------------------ */
.race { display: block; width: 100%; height: auto; }
.race text { font-family: var(--font-sans); font-size: 14px; fill: var(--on-dark-mut); direction: rtl; }
.race .lane-t { font-size: 15px; font-weight: 700; }
.race .lane-wp { fill: #ffb27a; }
.race .lane-st { fill: var(--yellow); }
.race .track { stroke: rgb(255 255 255 / 0.16); stroke-width: 2; stroke-linecap: round; }
.race .node { fill: #16265e; stroke: rgb(255 255 255 / 0.4); stroke-width: 1.5; }
.race .end { fill: #14a35a; stroke: #6ff0a4; }
.race .dot { stroke: rgb(255 255 255 / 0.55); stroke-width: 2; transform: translateX(-360px); }
.race .dot-wp { fill: var(--orange); }
.race .dot-st { fill: var(--yellow); }
.race .dot, .race .end { animation-duration: 5.2s; animation-iteration-count: infinite; animation-fill-mode: forwards; animation-play-state: paused; }
.race .dot-wp { animation-name: race-wp; }
.race .dot-st { animation-name: race-st; }
.race .end-wp { animation-name: arrive-wp; }
.race .end-st { animation-name: arrive-st; }
.tile.is-visible .race .dot, .tile.is-visible .race .end { animation-play-state: running; }
@keyframes race-wp {
  0% { transform: translateX(0); }
  12% { transform: translateX(-120px); animation-timing-function: step-end; }
  24% { transform: translateX(-120px); }
  38% { transform: translateX(-240px); animation-timing-function: step-end; }
  52% { transform: translateX(-240px); }
  66%, 100% { transform: translateX(-360px); }
}
@keyframes race-st {
  0% { transform: translateX(0); }
  7% { transform: translateX(-180px); }
  12% { transform: translateX(-180px); }
  20%, 100% { transform: translateX(-360px); }
}
@keyframes arrive-wp { 0%, 64% { fill: #16265e; stroke: rgb(255 255 255 / 0.4); } 68%, 100% { fill: #14a35a; stroke: #6ff0a4; } }
@keyframes arrive-st { 0%, 18% { fill: #16265e; stroke: rgb(255 255 255 / 0.4); } 22%, 100% { fill: #14a35a; stroke: #6ff0a4; } }

/* -- global network ---------------------------------------------------------- */
.cdn { width: 100%; max-width: 220px; height: auto; }
.cdn .links line { stroke: rgb(255 255 255 / 0.16); stroke-width: 1.2; }
.cdn .links .near { stroke: var(--yellow); stroke-width: 2; stroke-dasharray: 4 5; animation: dashflow 1.1s linear infinite; }
.cdn .pts circle { fill: rgb(255 255 255 / 0.4); }
.cdn .pts .hot { fill: var(--yellow); }
.cdn .you { fill: var(--orange); }
.cdn .ring { fill: none; stroke: var(--yellow); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: ping 2.4s ease-out infinite; }
@keyframes dashflow { to { stroke-dashoffset: -18; } }
@keyframes ping { 0% { transform: scale(0.5); opacity: 0.9; } 100% { transform: scale(2.3); opacity: 0; } }

/* -- availability ---------------------------------------------------------------- */
.ecg { width: 100%; max-width: 230px; height: auto; }
.ecg path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ecg .base { stroke: rgb(255 255 255 / 0.16); stroke-width: 2.5; }
.ecg .beat { stroke: #3ddc84; stroke-width: 3.2; stroke-dasharray: 22 78; animation: beat 2.2s linear infinite; }
@keyframes beat { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.live { display: inline-flex; align-items: center; gap: 0.45rem; font-size: var(--fs-label); font-weight: 600; color: #7ff0b0; }
.live i { width: 9px; height: 9px; border-radius: 50%; background: #3ddc84; animation: live 1.8s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgb(61 220 132 / 0.6); } 100% { box-shadow: 0 0 0 10px rgb(61 220 132 / 0); } }

/* -- attack surface ---------------------------------------------------------------- */
.surface { display: flex; flex-direction: column; align-items: flex-start; gap: 0.7rem; }
.surface-col { display: grid; gap: 0.55rem; }
.surface-col ul { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.surface-label { font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.04em; color: var(--on-dark-mut); }
.surface-arrow { width: 26px; height: 26px; flex: none; color: var(--yellow); transform: rotate(-90deg); margin-inline-start: 0.5rem; }
.chip { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.85rem; border-radius: var(--r-pill); font-size: var(--fs-label); font-weight: 600; border: 1px solid transparent; transition: opacity 0.5s, background 0.5s; }
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.chip--risk { color: #ffb4a4; background: rgb(231 50 20 / 0.14); border-color: rgb(231 50 20 / 0.35); opacity: 0.45; text-decoration: line-through; text-decoration-thickness: 2px; }
.chip--safe { color: #7ff0b0; background: rgb(23 138 67 / 0.2); border-color: rgb(61 220 132 / 0.45); }
html.reveal .tile:not(.is-visible) .chip--risk { opacity: 1; text-decoration: none; }
.chip--risk:nth-child(1) { transition-delay: 0.2s; } .chip--risk:nth-child(2) { transition-delay: 0.45s; } .chip--risk:nth-child(3) { transition-delay: 0.7s; }

/* -- no server ------------------------------------------------------------------------ */
.rack { width: 100%; max-width: 150px; height: auto; }
.rack .unit { fill: rgb(255 255 255 / 0.06); stroke: rgb(255 255 255 / 0.25); stroke-width: 1.4; }
.rack .slot { stroke: rgb(255 255 255 / 0.2); stroke-width: 3; stroke-linecap: round; }
.rack .led { fill: #56608a; transition: fill 0.5s; }
html.reveal .tile:not(.is-visible) .rack .led { fill: #3ddc84; }
.rack circle:nth-of-type(1) { transition-delay: 0.2s; } .rack circle:nth-of-type(2) { transition-delay: 0.5s; } .rack circle:nth-of-type(3) { transition-delay: 0.8s; }

/* -- nothing to update ------------------------------------------------------------------ */
.updates { position: relative; width: 100%; }
.pill { position: absolute; inset-inline-start: 0; display: inline-flex; align-items: center; gap: 0.45rem; width: fit-content; padding: 0.36rem 0.85rem; border-radius: var(--r-pill); font-size: var(--fs-label); font-weight: 600; border: 1px solid transparent; transition: opacity 0.5s, transform 0.5s var(--ease-out); }
.pill svg { width: 14px; height: 14px; }
.pill--up { color: #ffc08f; background: rgb(255 120 11 / 0.18); border-color: rgb(255 120 11 / 0.4); opacity: 0; transform: translateX(-36px); }
.pill--up:nth-child(1) { top: 0; transition-delay: 0.1s; } .pill--up:nth-child(2) { top: 36px; transition-delay: 0.35s; } .pill--up:nth-child(3) { top: 72px; transition-delay: 0.6s; }
.pill--ok { top: 36px; color: #7ff0b0; background: rgb(23 138 67 / 0.22); border-color: rgb(61 220 132 / 0.45); transition-delay: 0.95s; }
html.reveal .tile:not(.is-visible) .pill--up { opacity: 1; transform: none; }
html.reveal .tile:not(.is-visible) .pill--ok { opacity: 0; }
.updates { min-height: 110px; }

/* -- ssl ------------------------------------------------------------------------------------ */
.lock { width: 100%; max-width: 130px; height: auto; overflow: visible; }
.lock .shackle { fill: none; stroke: #3ddc84; stroke-width: 6; stroke-linecap: round; transition: transform 0.6s var(--ease-spring) 0.15s, stroke 0.4s 0.15s; }
.lock .body { fill: rgb(255 255 255 / 0.07); stroke: #3ddc84; stroke-width: 3; transition: stroke 0.4s 0.3s; }
.lock .hole { fill: #3ddc84; transition: fill 0.4s 0.3s; }
.lock .hole-l { stroke: #3ddc84; stroke-width: 3; stroke-linecap: round; transition: stroke 0.4s 0.3s; }
.https { direction: ltr; font-family: var(--font-display); font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.04em; color: #7ff0b0; transition: opacity 0.4s 0.6s; }
html.reveal .tile:not(.is-visible) .lock .shackle { transform: translateY(-12px); stroke: #ff9b5a; }
html.reveal .tile:not(.is-visible) .lock .body, html.reveal .tile:not(.is-visible) .lock .hole-l { stroke: #ff9b5a; }
html.reveal .tile:not(.is-visible) .lock .hole { fill: #ff9b5a; }
html.reveal .tile:not(.is-visible) .https { opacity: 0; }

/* -- cost --------------------------------------------------------------------------------------- */
.bars { width: 100%; max-width: 150px; height: auto; overflow: visible; }
.bars .bar { transform-box: fill-box; transform-origin: bottom; transition: transform 0.7s var(--ease-out); }
.bars .bar:nth-child(1) { fill: #ff8a4c; transition-delay: 0.1s; } .bars .bar:nth-child(2) { fill: #ffb347; transition-delay: 0.28s; }
.bars .bar:nth-child(3) { fill: #d6dc5a; transition-delay: 0.46s; } .bars .bar:nth-child(4) { fill: #3ddc84; transition-delay: 0.64s; }
html.reveal .tile:not(.is-visible) .bars .bar { transform: scaleY(0); }

/* high contrast / stop animations: the tiles keep their text and borders, decoration steps back */
html.a11y-contrast .tile { background: #000; border: 2px solid #fff; box-shadow: none; }
html.a11y-contrast .tile::before, html.a11y-contrast .tile::after, html.a11y-contrast .bento-glow { display: none; }
html.a11y-contrast .tile-copy p { color: #fff; }
