/* Mumaki Assist page. Draft markers are removed once the key facts are in. */
.draft-banner { margin-top: 1rem; padding: .6rem 1rem; border: 1px dashed var(--warn); border-radius: .6rem; font-size: .85rem; color: var(--ink); background: color-mix(in srgb, var(--warn) 12%, transparent); }
mark.todo { background: #ffe58a; color: #3a2e00; padding: .05em .3em; border-radius: .25em; font-style: normal; font-family: var(--font-sans); font-size: .85em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* Three ways to configure Assist, from plain text to MCP. */
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.6rem); margin-top: clamp(2rem, 4vw, 3.5rem); }
.way { position: relative; display: flex; flex-direction: column; gap: 0.8rem; padding: clamp(1.3rem, 2.4vw, 2rem); border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); color: var(--ink); transition: translate .4s var(--ease), box-shadow .4s var(--ease); }
.way.band-deep { background: var(--deep); color: var(--on-deep); border-color: transparent; --ink: var(--on-deep); --muted: color-mix(in srgb, var(--on-deep) 65%, transparent); --line: color-mix(in srgb, var(--on-deep) 18%, transparent); --surface: color-mix(in srgb, var(--on-deep) 7%, var(--deep)); }
.way:hover { translate: 0 -6px; box-shadow: var(--shadow); }
.way h3 { font: 420 var(--step-2) / 1.15 var(--font-display); letter-spacing: -0.01em; }
.way > p:not(.way-step) { color: var(--muted); }
.way-step { display: flex; align-items: center; gap: 0.6rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: var(--accent); }
.way-mock { margin-top: auto; padding: 1rem; border-radius: var(--radius-m); border: 1px solid var(--line); background: var(--bg); font-size: 0.88rem; display: grid; gap: 0.55rem; }
.way.band-deep .way-mock { background: rgb(0 0 0 / 0.25); }
.way-mock.prompt p:not(.mock-label) { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.8rem; line-height: 1.5; }
.way-mock .bubble { margin: 0; }
.caret { display: inline-block; width: 0.5em; height: 1.1em; margin-left: 2px; vertical-align: text-bottom; background: var(--accent); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.way-mock pre, .tool-code pre { margin: 0; white-space: pre-wrap; font: 0.8rem / 1.6 ui-monospace, SFMono-Regular, Menlo, monospace; }
.way-mock pre b { color: var(--accent); }
.way-mock pre i { font-style: normal; color: var(--ok); }

/* JavaScript tool example on the deep band. */
.tool-code { width: min(100%, 30rem); padding: 1.3rem 1.4rem; border-radius: var(--radius-m); background: rgb(0 0 0 / 0.3); border: 1px solid color-mix(in srgb, var(--on-deep) 15%, transparent); color: var(--on-deep); }
.tool-code .mock-label { color: color-mix(in srgb, var(--on-deep) 60%, transparent); margin-bottom: 0.9rem; text-transform: none; letter-spacing: 0.04em; }
.tool-code pre { overflow-x: auto; white-space: pre; }
.tool-code b { color: #ffd38a; font-weight: 500; }
.tool-code s { text-decoration: none; color: #b9d8a8; }
.tool-code i { font-style: normal; color: color-mix(in srgb, var(--on-deep) 50%, transparent); }

@media (max-width: 900px) { .ways { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .caret { animation: none; } .way { transition: none; } }

/* Pilot case inside the tools band. */
.case { margin-top: 1.6rem; padding: 1.2rem 1.4rem; border-left: 3px solid var(--accent); border-radius: 0 var(--radius-s) var(--radius-s) 0; background: rgb(255 255 255 / 0.06); }
.case .eyebrow { margin-bottom: 0.5rem; }

/* Hero visual: a pulsing voice orb on Assist blue instead of a photo. */
.hero-media.assist-visual { background: radial-gradient(circle at 22% 28%, #8cc6ff 0%, transparent 46%), radial-gradient(circle at 85% 95%, #a9d6ff 0%, transparent 42%), linear-gradient(135deg, #3b8dff 0%, #1d63c4 100%); }
.hero-media.assist-visual::after { background: linear-gradient(200deg, transparent 60%, rgb(8 30 66 / 0.25)); }
.assist-orb { position: absolute; left: clamp(1.5rem, 8vw, 8rem); top: 42%; translate: 0 -50%; display: grid; place-items: center; width: clamp(10rem, 21vw, 18rem); aspect-ratio: 1; border-radius: 50%; background: rgb(255 255 255 / 0.16); box-shadow: 0 0 0 clamp(1.1rem, 2.4vw, 2.2rem) rgb(255 255 255 / 0.09), 0 0 0 clamp(2.2rem, 4.8vw, 4.4rem) rgb(255 255 255 / 0.05); animation: orb 3.2s ease-in-out infinite; }
.assist-orb .wave { height: 38%; gap: clamp(4px, 0.5vw, 7px); }
.assist-orb .wave i { width: clamp(4px, 0.5vw, 7px); background: #fff; }
@keyframes orb { 50% { scale: 1.04; } }

/* Code example: solid navy, never wider than its stage. */
#werkzeuge .stage { grid-template-columns: minmax(0, 1fr); background: rgb(255 255 255 / 0.08); }
.tool-code { max-width: 100%; justify-self: center; background: #1b1b1b; }

@media (max-width: 640px) {
  .hero-media.assist-visual { padding-top: 2rem; border-radius: var(--radius-l); overflow: hidden; background: radial-gradient(circle at 22% 28%, #8cc6ff 0%, transparent 46%), linear-gradient(135deg, #3b8dff 0%, #1d63c4 100%); }
  .assist-orb { position: relative; left: auto; top: auto; translate: none; margin: 0 auto 1.5rem; width: 9rem; }
  .assist-visual .feed { margin: 0 0.75rem 0.75rem; }
}
@media (prefers-reduced-motion: reduce) { .assist-orb { animation: none; } }

/* Three short start topics sit in one row on wide screens. */
@media (min-width: 1000px) { #start .topics { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(1.5rem, 3vw, 3rem); } }

/* Editorial photographs complement the live examples. */
.hero-media.assist-photo-hero { background: var(--tint); }
.assist-photo-hero > img { object-position: 36% 46%; }
.assist-photo-hero::after { background: linear-gradient(0deg, rgb(8 30 66 / .48), transparent 58%); }
.assist-call-stage { display: flex; flex-direction: column; justify-content: flex-start; gap: 0; padding: 0; background: var(--surface); }
.assist-call-photo { display: block; width: 100%; height: clamp(15rem, 26vw, 22rem); object-fit: cover; object-position: 50% 40%; }
.assist-call-stage .mock.call { position: relative; width: calc(100% - 2rem); max-width: 27rem; margin: -2.5rem 1rem 1rem; z-index: 1; }
.assist-setup-photo { position: relative; margin: 2rem 0; overflow: hidden; border-radius: var(--radius-l); background: var(--tint); }
.assist-setup-photo img { display: block; width: 100%; height: clamp(18rem, 35vw, 30rem); object-fit: cover; object-position: 50% 45%; }
.assist-setup-photo figcaption { position: absolute; inset: auto 0 0; padding: 3rem 1.5rem 1.25rem; color: #fff; background: linear-gradient(transparent, rgb(8 30 66 / .7)); font-size: .95rem; }
@media (max-width: 640px) {
  .hero-media.assist-photo-hero { padding-top: 0; background: none; overflow: visible; }
  .assist-photo-hero > img { height: 20rem; object-position: 28% 45%; }
  .assist-photo-hero .feed { position: relative; margin: -2rem .75rem 0; width: calc(100% - 1.5rem); }
  .assist-call-photo { height: 17rem; }
  .assist-setup-photo img { height: 19rem; }
}

/* Medical direction: warm white, calm blue and a subtle sage accent. */
[data-sector='medizin'] {
  --bg: #f6fafb;
  --surface: #ffffff;
  --ink: #193643;
  --muted: #506b76;
  --line: rgb(25 54 67 / .13);
  --accent: #17677a;
  --tint: #eaf3f5;
  --tint-strong: #d9e9ed;
  --deep: #153e52;
  --on-deep: #f3f9fa;
  --ok: #39745c;
}
.assist-medical-label { display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1.25rem; padding: .5rem .8rem; border: 1px solid #c9dfd7; border-radius: 100px; background: #edf6f1; color: #315f4d; font-size: .78rem; font-weight: 550; }
.assist-medical-label svg { width: 1rem; height: 1rem; flex: 0 0 auto; }
[data-sector] .hero h1 .h1-kicker { font-size: clamp(.7rem, 1.2vw, .86rem); letter-spacing: .08em; }
.assist-photo-hero > img { object-position: 38% 48%; }
.assist-setup-photo img { object-position: 50% 50%; }
@media (max-width: 640px) {
  .assist-photo-hero > img { object-position: 30% 46%; }
  .assist-medical-label { font-size: .72rem; }
}

/* Assist uses unnumbered feature lists. Keep their text aligned to the card edge. */
:is([data-sector='assist'],[data-sector='medizin'],[data-sector='commerce']) .topics { counter-reset: none; }
:is([data-sector='assist'],[data-sector='medizin'],[data-sector='commerce']) .topics li { counter-increment: none; grid-template-columns: minmax(0, 1fr); }
:is([data-sector='assist'],[data-sector='medizin'],[data-sector='commerce']) .topics li::before { content: none; }

/* Reset the shared paragraph column along with the removed number column. */
:is([data-sector='assist'],[data-sector='medizin'],[data-sector='commerce']) .topics li > * { grid-column: 1 / -1; min-width: 0; }

/* E-commerce: cool white with an indigo accent. */
[data-sector='commerce'] {
  color-scheme: light;
  --bg: #f5f4ff;
  --surface: #ffffff;
  --ink: #1d1b4b;
  --muted: #55537e;
  --line: rgb(29 27 75 / .13);
  --accent: #4b45d6;
  --accent-ink: #ffffff;
  --tint: #e9e8fc;
  --tint-strong: #d4d2f7;
  --deep: #2b2780;
  --on-deep: #f5f4ff;
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-ink);
  --ok: #1f8a65;
  --warn: #d39a2c;
}
:is([data-sector='medizin'],[data-sector='commerce']) .band-deep { --accent: #bfe0ff; --btn-bg: var(--on-deep); --btn-fg: var(--deep); }
[data-sector='commerce'] .band-deep { --accent: #c9c6ff; }
[data-sector='commerce'] .hero-media.assist-visual { background: radial-gradient(circle at 22% 28%, #b3adff 0%, transparent 46%), radial-gradient(circle at 85% 95%, #c9c3ff 0%, transparent 42%), linear-gradient(135deg, #6a63f0 0%, #3a33b8 100%); }
[data-sector='commerce'] .tool-code { background: #1d1b4b; }

/* Branch cards on the Assist start page. */
.branches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 1.6vw, 1.4rem); margin-top: clamp(2rem, 4vw, 3.5rem); }
.branch { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); color: var(--ink); text-decoration: none; transition: translate .35s var(--ease), box-shadow .35s; }
.branch:hover { translate: 0 -6px; box-shadow: var(--shadow); }
.branch-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--tint); }
.branch-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: scale .6s var(--ease); }
.branch:hover .branch-media img { scale: 1.04; }
.branch-media.is-shop { display: grid; place-items: center; background: radial-gradient(circle at 25% 25%, #b3adff 0%, transparent 50%), linear-gradient(135deg, #6a63f0, #3a33b8); color: #fff; }
.branch-media.is-shop svg { width: 34%; height: auto; aspect-ratio: 1; stroke-width: 1; }
.branch-badge { position: absolute; top: .75rem; left: .75rem; padding: .3em .75em; border-radius: 99px; background: #fff; color: #272727; font-size: .72rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.branch-body { display: flex; flex: 1; flex-direction: column; gap: .55rem; padding: clamp(1.1rem, 1.8vw, 1.5rem); }
.branch-kicker { font-size: .72rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.branch-title { font: 420 var(--step-2) / 1.1 var(--font-display); letter-spacing: -.01em; }
.branch-text { color: var(--muted); }
.branch-addons { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .2rem; }
.branch-addons span { padding: .25em .65em; border-radius: 99px; background: var(--tint); font-size: .8rem; }
.branch-addons small { flex-basis: 100%; color: var(--muted); font-size: .76rem; }
.branch-addons.is-soon span { background: transparent; border: 1px dashed var(--line); }
.branch-cta { display: inline-flex; align-items: center; gap: .4em; margin-top: auto; padding-top: .6rem; font-weight: 550; color: var(--accent); }
.branches-more { margin-top: 1.6rem; }
@media (max-width: 1100px) { .branches { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .branches { grid-template-columns: 1fr; } .branch-media { aspect-ratio: 16 / 9; } }

/* Add-on tiles on the branch pages. */
.addons { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: clamp(.8rem, 1.4vw, 1.2rem); margin-top: clamp(1.8rem, 3.5vw, 3rem); }
.addon { display: flex; flex-direction: column; gap: .45rem; padding: 1.2rem 1.3rem; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); color: var(--ink); text-decoration: none; transition: translate .3s var(--ease), box-shadow .3s; }
a.addon:hover { translate: 0 -4px; box-shadow: var(--shadow); }
.addon b { font: 420 var(--step-1) / 1.2 var(--font-display); }
.addon > span:last-child { color: var(--muted); font-size: .93rem; }
.addon-status { align-self: flex-start; padding: .2em .65em; border-radius: 99px; background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); font-size: .7rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.addon-status.is-soon { background: color-mix(in srgb, var(--warn) 18%, transparent); color: color-mix(in srgb, var(--warn) 55%, var(--ink)); }
.addon.is-soon { border-style: dashed; }
@media (prefers-reduced-motion: reduce) { .branch, .addon, .branch-media img { transition: none; } }

/* Code mocks must not widen the cards on very narrow phones. */
.way { min-width: 0; }
@media (max-width: 900px) { .ways { grid-template-columns: minmax(0, 1fr); } }
.way-mock pre { overflow-x: auto; }

/* Assist start page: a charcoal stage with a coral glow, taken from the logo. */
[data-sector='assist'] .hero-media.assist-visual {
  background:
    radial-gradient(circle at 24% 42%, rgb(255 120 89 / .55) 0%, transparent 38%),
    radial-gradient(circle at 92% 8%, rgb(255 189 164 / .22) 0%, transparent 34%),
    radial-gradient(circle at 70% 110%, rgb(255 120 89 / .28) 0%, transparent 40%),
    linear-gradient(140deg, #2f2d2b 0%, #1f1e1d 100%);
}
[data-sector='assist'] .assist-orb { background: rgb(255 120 89 / .18); box-shadow: 0 0 0 clamp(1.1rem, 2.4vw, 2.2rem) rgb(255 120 89 / .1), 0 0 0 clamp(2.2rem, 4.8vw, 4.4rem) rgb(255 120 89 / .05), 0 0 90px rgb(255 120 89 / .35); }
[data-sector='assist'] .assist-orb .wave i { background: linear-gradient(#ffbda4, #ff7859); }
[data-sector='assist'] .hero h1 em, [data-sector='assist'] h2 em { color: var(--accent); }
[data-sector='assist'] .tool-code s { color: #ffbda4; }
[data-sector='assist'] .tool-code b { color: #ff9a80; }
[data-sector='assist'] .case { border-left-color: var(--coral); }
[data-sector='assist'] .branch-addons span { background: var(--tint); }
[data-sector='assist'] .caret { background: var(--coral); }
@media (max-width: 640px) {
  [data-sector='assist'] .hero-media.assist-visual { background: radial-gradient(circle at 50% 22%, rgb(255 120 89 / .5) 0%, transparent 45%), linear-gradient(160deg, #2f2d2b, #1f1e1d); }
}

/* ---------------------------------------------------------------------------
   Page background: fine grain and a faint, hard-edged light cone in the
   Mumaki colours behind the top of the page. Decoration only. */
:root {
  --grain-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.15 0 0 0 0 0.15 0 0 0 0 0.15 .3 0 0 0 -.12'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 .4 0 0 0 -.15'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
[data-sector='assist'] { --cone-1: #ff7859; --cone-2: #ffbda4; --shade: #a8432a; }
[data-sector='commerce'] { --cone-1: #6a63f0; --cone-2: #b3adff; --shade: #2b2780; }

body[data-sector='assist'], body[data-sector='commerce'] { background-image: var(--grain-dark); }
:is([data-sector='assist'],[data-sector='commerce']) .band-tint { background-image: var(--grain-dark); }
:is([data-sector='assist'],[data-sector='commerce']) .band-deep { background-image: var(--grain-light); }
:is([data-sector='assist'],[data-sector='commerce']) .hero-media.assist-visual::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: var(--grain-light); mix-blend-mode: overlay;
}
:is([data-sector='assist'],[data-sector='commerce']) .assist-visual .assist-orb { z-index: 2; }
:is([data-sector='assist'],[data-sector='commerce']) .assist-visual :is(.hero-caption, .feed) { z-index: 3; }

/* Two walls meeting at a corner: one plane catches the light, the other
   sits in soft shade. A single crisp edge runs diagonally through the
   background; everything else is soft light and plaster-like grain. */
:root {
  --grain-plaster: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.16 0 0 0 0 0.12 0 0 0 0 0.1 .62 0 0 0 -.22'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-glint: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 .7 0 0 0 -.38'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.bg-light {
  /* --p: page scroll progress 0..1 (set by ambient.js). The wall's light
     moves like daylight: the edge turns and slides, the glow wanders down
     and the light gets warmer towards the end of the page. */
  --p: 0; --g: 0; --s: 0; --c: 1;
  --edge-a: calc(124deg + var(--s) * 30deg + var(--p) * 12deg);
  --edge-x: calc(52% + var(--c) * 12% - var(--p) * 10%);
  position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(85% 70% at calc(18% + var(--s) * 22%) calc(4% - var(--c) * 10% + var(--p) * 30%), color-mix(in srgb, var(--cone-2) calc(46% - var(--p) * 8%), transparent), transparent 72%),
    radial-gradient(55% 45% at calc(36% + var(--p) * 10%) 6%, rgb(255 255 255 / .6), transparent 70%),
    radial-gradient(70% 60% at calc(10% - var(--s) * 10%) 105%, color-mix(in srgb, var(--cone-1) calc(10% + var(--p) * 18%), transparent), transparent 70%),
    linear-gradient(180deg, var(--bg), color-mix(in srgb, var(--cone-2) 14%, var(--bg)));
}
body:has(> .bg-light) > main, body:has(> .bg-light) > footer { position: relative; z-index: 1; }
/* Living grain: dark specks plus light glints, shifting in steps on scroll. */
.bg-light::after {
  content: ''; position: absolute; inset: 0;
  background-image: var(--grain-glint), var(--grain-plaster);
  background-size: 260px 260px, 220px 220px;
  background-position: calc(var(--g) * 37px) calc(var(--g) * 53px), calc(var(--g) * -61px) calc(var(--g) * 29px);
}
/* The wall in shade. Its own gradient runs from warm coral at the top to a
   deeper terracotta; the edge starts faint and the shade builds up behind it,
   so the corner reads as light, not as a line. */
.bg-light i:nth-child(1) {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 100% 0%, color-mix(in srgb, var(--cone-2) 30%, transparent), transparent 70%),
    linear-gradient(195deg, color-mix(in srgb, var(--cone-1) 16%, transparent) 0%, color-mix(in srgb, var(--shade) calc(11% + var(--p) * 12%), transparent) 75%),
    var(--grain-plaster);
  background-size: auto, auto, 180px 180px;
  -webkit-mask-image: linear-gradient(var(--edge-a), transparent var(--edge-x), rgb(0 0 0 / .4) calc(var(--edge-x) + .5%), #000 calc(var(--edge-x) + 28%));
          mask-image: linear-gradient(var(--edge-a), transparent var(--edge-x), rgb(0 0 0 / .4) calc(var(--edge-x) + .5%), #000 calc(var(--edge-x) + 28%));
}
.bg-light i:nth-child(2), .bg-light i:nth-child(3) { display: none; }

/* Hero stage opens up on the first scroll; the orb lifts into the light. */
:is([data-sector='assist'],[data-sector='commerce']) .hero-media.assist-visual {
  --h: 0;
  scale: calc(1 + var(--h) * .035);
  transform-origin: 50% 0;
}
:is([data-sector='assist'],[data-sector='commerce']) .assist-visual .assist-orb { translate: 0 calc(-50% - var(--h) * 2.5rem); filter: saturate(calc(1 + var(--h) * .4)) brightness(calc(1 + var(--h) * .12)); }
:is([data-sector='assist'],[data-sector='commerce']) .assist-visual .feed { translate: 0 calc(var(--h) * -1.5rem); }
@media (max-width: 640px) {
  :is([data-sector='assist'],[data-sector='commerce']) .assist-visual .assist-orb { translate: 0 calc(var(--h) * -1rem); }
  .bg-light { --edge-a: calc(104deg + var(--s) * 16deg); --edge-x: calc(62% + var(--c) * 14% - var(--p) * 10%); }
}

/* The page itself keeps a fine grain where the walls are covered. */
body[data-sector='assist'], body[data-sector='commerce'] { background-image: var(--grain-plaster); }

/* ---------------------------------------------------------------------------
   Scroll-scrubbed section transitions (scrub.js sets --v from 0 to 1).
   They follow the scroll both ways; without JS everything is simply shown. */
.has-scrub .scrub { will-change: translate, opacity, filter; }
.has-scrub .scrub-card {
  opacity: calc(.15 + var(--v, 1) * .85);
  translate: 0 calc((1 - var(--v, 1)) * (7rem + var(--i) * 3.5rem));
  rotate: calc((1 - var(--v, 1)) * (var(--i) - 1.5) * 5deg);
}
.has-scrub .scrub-card:hover { translate: 0 calc((1 - var(--v, 1)) * (7rem + var(--i) * 3.5rem) - 6px); }
.has-scrub .scrub-fan {
  opacity: calc(.82 + var(--v, 1) * .18);
  translate: calc((1 - var(--v, 1)) * (1 - var(--i)) * 104%) calc((1 - var(--v, 1)) * 4rem);
  rotate: calc((1 - var(--v, 1)) * (var(--i) - 1) * 8deg);
  z-index: calc(3 - var(--i));
}
.has-scrub .scrub-fan:hover { translate: 0 -6px; }
.has-scrub .scrub-line {
  opacity: calc(.1 + var(--v, 1) * .9);
  translate: calc((1 - var(--v, 1)) * -3rem) 0;
}
.has-scrub .scrub-band {
  clip-path: inset(0 calc((1 - var(--v, 1)) * 7vw) round calc(var(--radius-l) + (1 - var(--v, 1)) * 5rem));
}
.has-scrub .scrub-stage {
  scale: calc(.84 + var(--v, 1) * .16);
  rotate: calc((1 - var(--v, 1)) * -4deg);
  opacity: calc(.3 + var(--v, 1) * .7);
}
@media (max-width: 900px) {
  .has-scrub .scrub-fan { translate: 0 calc((1 - var(--v, 1)) * 5rem); rotate: calc((1 - var(--v, 1)) * (var(--i) - 1) * 3deg); }
  .has-scrub .scrub-card { translate: 0 calc((1 - var(--v, 1)) * 5rem); rotate: calc((1 - var(--v, 1)) * (var(--i) - 1.5) * 2deg); }
  .has-scrub .scrub-band { clip-path: inset(0 calc((1 - var(--v, 1)) * 4vw) round calc(var(--radius-l) + (1 - var(--v, 1)) * 2.5rem)); }
}

/* Scroll-driven marquee of use cases between two sections. */
.marquee { position: relative; z-index: 1; overflow: hidden; padding: clamp(1.5rem, 4vw, 3rem) 0 0; pointer-events: none; user-select: none; }
.marquee-track { display: block; white-space: nowrap; font: italic 360 clamp(2.2rem, 5.5vw, 5rem) / 1.05 var(--font-display); letter-spacing: -.01em; will-change: translate; }
.marquee-track.is-outline { color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--ink) 20%, transparent); translate: calc(-4% - var(--m, .5) * 22%) 0; }
.marquee-track.is-fill { color: color-mix(in srgb, var(--coral, var(--accent)) 70%, transparent); translate: calc(-46% + var(--m, .5) * 38%) 0; }
.marquee-track b { font-weight: inherit; color: var(--ink); -webkit-text-stroke: 0; }

/* Clear product claim in the hero. */
.hero h1.h1-claim { font-size: clamp(2.6rem, 1.4rem + 5.2vw, 6.2rem); }

/* ROI: short owner-level arguments plus a live example calculation. */
.roi { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.roi-copy { display: grid; gap: 1.4rem; }
.roi-points { display: grid; gap: .9rem; margin: .4rem 0 0; padding: 0; list-style: none; }
.roi-points li { position: relative; padding-left: 1.7rem; color: var(--muted); }
.roi-points li::before { content: ''; position: absolute; left: 0; top: .45em; width: .8rem; height: .8rem; border-radius: 50%; background: var(--coral, var(--accent)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--coral, var(--accent)) 20%, transparent); }
.roi-points b { color: var(--ink); font-weight: 600; }
.roi-calc { display: grid; gap: 1.25rem; padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.roi-field { display: grid; gap: .55rem; font-size: .92rem; color: var(--muted); }
.roi-field > span { display: flex; justify-content: space-between; gap: 1rem; }
.roi-field output { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.roi-field input[type=range] { --fill: 50%; appearance: none; -webkit-appearance: none; width: 100%; height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--coral, var(--accent)) var(--fill), color-mix(in srgb, var(--ink) 12%, transparent) var(--fill)); cursor: pointer; }
.roi-field input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 2px solid var(--ink); box-shadow: 0 2px 8px rgb(0 0 0 / .15); }
.roi-field input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--surface); border: 2px solid var(--ink); }
.roi-field input[type=range]:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.roi-result { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: .3rem; }
.roi-result div { display: grid; gap: .3rem; padding: 1rem 1.1rem; border-radius: var(--radius-m); background: var(--tint); }
.roi-result div:first-child { background: var(--ink); color: var(--bg); }
.roi-result span { font-size: .8rem; opacity: .75; }
.roi-result b { font: 420 clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem) / 1 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.roi-note { font-size: .78rem; color: var(--muted); }
.roi-calc .btn { justify-self: start; }
@media (max-width: 900px) { .roi { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .roi-result { grid-template-columns: 1fr; } }
