/* Solvra, versiunea „Harta de lumină”
   Paleta pornește de la site-ul Duma Luca (fundal teal-negru, coral, lumină seafoam),
   cu salvie și patru pasteluri (roz, piersică, liliachiu, unt). Fonturi: Archivo + Instrument Sans.
   Copii: ../site-backup-v8-inainte-de-floare (violet), ../site-backup-v9-floare (cu floarea),
          ../site-backup-v10-harta-inainte-de-scroll (harta, înainte de scroll-ul nou)

   Mișcare: se animă doar transform și opacity. Fără blur animat și fără backdrop-filter.
   Stările ascunse (înainte de apariție) sunt puse sub html.js, ca pagina să se vadă întreagă și fără JavaScript. */

:root {
  --canvas: #0A1215;
  --canvas-rgb: 10 18 21;
  --panel: #101C21;
  --panel-2: #14242A;
  --hair: #22383F;
  --field: #4A6A6E;
  --text: #E9F1F1;
  --text-rgb: 233 241 241;
  --text-2: #8CA4A9;
  --mist: #C9D7D8;
  --dim: #2E464C;
  --coral: #FF5A3C;
  --coral-hover: #FF7358;
  --coral-rgb: 255 90 60;
  --ink: #1C0A05;
  --flow: #9ED5CF;
  --flow-rgb: 158 213 207;
  --sage: #A9C4A0;
  --sage-rgb: 169 196 160;
  --sage-light: #B9D3B0;
  --blush: #F2C4CE;
  --blush-rgb: 242 196 206;
  --peach: #F6CDB2;
  --lilac: #CBC3EE;
  --lilac-rgb: 203 195 238;
  --butter: #F1E3AE;
  --butter-rgb: 241 227 174;
  --map-a: #1B3236;
  --map-b: #13252A;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in: cubic-bezier(.55, 0, .8, .3);
  --display: "Archivo", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --col-gap: clamp(32px, 6vw, 84px);
  --wrap: 1180px;
  --top: 64px;
  --sheet: 28px;
}

/* each list item gets its own pastel */
.p-blush { --pastel: var(--blush); }
.p-peach { --pastel: var(--peach); }
.p-lilac { --pastel: var(--lilac); }
.p-butter { --pastel: var(--butter); }
.p-sage { --pastel: var(--sage); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scrollbar-color: var(--hair) var(--canvas); }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font: 400 17px/1.62 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
::selection { background: var(--coral); color: var(--ink); }
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
h1 { font-weight: 700; font-stretch: 118%; font-size: clamp(40px, 5.4vw, 82px); line-height: 1.16; letter-spacing: -.02em; }
h2 { font-weight: 700; font-stretch: 115%; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.16; letter-spacing: -.015em; }
h3 { font-weight: 600; font-stretch: 108%; font-size: 21px; line-height: 1.2; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.kicker { font: 500 14px/1.2 var(--body); color: var(--sage-light); margin: 0 0 14px; letter-spacing: .01em; display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .7; }
.small { font-size: 14px; color: var(--text-2); }
.todo { background: rgb(var(--butter-rgb) / .16); color: var(--butter); border-radius: 4px; padding: 0 .3em; font-size: .92em; }
.skip { position: absolute; left: -9999px; top: 8px; }
.skip:focus { left: 8px; z-index: 100; background: var(--text); color: var(--canvas); padding: 8px 12px; border-radius: 6px; }
:focus-visible { outline: 2px solid var(--flow); outline-offset: 3px; border-radius: 4px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* a word that rises out of its own mask (big hero lines and section titles, built by script.js) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .16em .05em .24em; margin: -.16em -.05em -.24em; }
.wi { display: inline-block; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 6px;
  font: 600 15px/1 var(--display); font-stretch: 108%; letter-spacing: .005em;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .25s var(--ease-out);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--coral); color: var(--ink); }
.btn-primary:hover { background: var(--coral-hover); }
.btn-ghost { border-color: var(--field); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--flow); color: var(--flow); }
.btn-small { min-height: 38px; padding: 0 14px; font-size: 13.5px; }

/* ---------------- header ---------------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--top);
  display: flex; align-items: center; gap: 28px; padding: 0 var(--gutter);
  transition: background-color .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.top:has(> .nav) { display: grid; grid-template-columns: 1fr auto 1fr; }
.top:has(> .nav) .top-right { justify-self: end; }
.top.solid { background: var(--canvas); border-bottom-color: var(--hair); }
/* how far down the page you are */
.top-progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, var(--flow), var(--sage-light));
  transform: scaleX(0); transform-origin: 0 50%; transition: opacity .35s var(--ease);
}
html.js .top:not(.solid) .top-progress { opacity: 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 17px/1 var(--display); font-stretch: 115%; letter-spacing: .01em; }
.brand svg { width: 24px; height: 26px; }
.nav { display: flex; gap: 22px; }
.nav a { position: relative; padding: 6px 0; color: var(--text-2); text-decoration: none; font-size: 14.5px; transition: color .25s var(--ease); }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--sage-light);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .4s var(--ease-out);
}
.nav a:hover, .nav a.is-current { color: var(--text); }
.nav a:hover::after, .nav a.is-current::after { transform: none; }
.top-right { display: flex; align-items: center; gap: 14px; }
.anim-toggle {
  display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; color: var(--text-2);
  font: 500 13.5px/1 var(--body); cursor: pointer; padding: 6px 2px;
}
.anim-switch { width: 30px; height: 18px; border-radius: 99px; background: var(--hair); position: relative; transition: background-color .2s; }
.anim-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--text-2); transition: transform .25s var(--ease), background-color .2s; }
.anim-toggle[aria-pressed="true"] .anim-switch { background: rgb(var(--sage-rgb) / .35); }
.anim-toggle[aria-pressed="true"] .anim-switch::after { transform: translateX(12px); background: var(--sage-light); }

/* ---------------- scrub hero ----------------
   The first screen already says what Solvra does (the offer, the buttons, the visitor's business on the map).
   Then the film follows the scroll for 4 screens; on the 5th the page slides over it like a sheet. */
.hero { display: none; position: relative; height: 600svh; }
html.scrub .hero { display: block; }
.stage { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--canvas); }
.stage-media { position: absolute; inset: 0; transform-origin: 62% 50%; will-change: transform; }
.poster, .stage-media video, .stage-media canvas, .scrim { position: absolute; inset: 0; width: 100%; height: 100%; }
.poster { background: var(--canvas) url(media/harta-start.jpg?v=4) 50% 50% / cover no-repeat; }
.stage-media video, .stage-media canvas { object-fit: cover; opacity: 0; transition: opacity .6s var(--ease); }
.stage.film-canvas canvas, .stage.film-video video { opacity: 1; }
/* the live clients (harta-lumini.js), added on top of the film; the dot and the C are cut out of them */
.stage-media canvas.lights { opacity: 1; transition: none; pointer-events: none; }
html:not(.scrub) .stage-media canvas.lights { display: none; }
.scrim {
  background:
    linear-gradient(90deg, rgb(var(--canvas-rgb) / .84) 0%, rgb(var(--canvas-rgb) / .52) 32%, rgb(var(--canvas-rgb) / 0) 60%),
    linear-gradient(180deg, rgb(var(--canvas-rgb) / .55) 0%, rgb(var(--canvas-rgb) / 0) 18%, rgb(var(--canvas-rgb) / 0) 78%, rgb(var(--canvas-rgb) / .86) 100%);
}
/* darkens the film while the page slides over it */
.stage-dim { position: absolute; inset: 0; background: var(--canvas); opacity: 0; pointer-events: none; }

.bands { position: absolute; inset: 0; will-change: transform; }
.band { position: absolute; left: var(--gutter); top: 50%; transform: translateY(-50%); max-width: min(46vw, 760px); pointer-events: none; }
.band.is-live { pointer-events: auto; }
.band .line {
  margin: 0; font: 700 clamp(34px, 4.6vw, 72px)/1.2 var(--display); font-stretch: 118%;
  letter-spacing: -.02em; color: var(--text); text-wrap: balance;
}
.band-final { top: 52%; max-width: min(40vw, 660px); }
.band-final .line { font-size: clamp(38px, 4.9vw, 78px); }
/* the first screen: the promise, the offer and the buttons, there from the first second */
.band-open { top: calc(50% + var(--top) / 2); max-width: min(47vw, 780px); }
.band-open .line { font-size: clamp(36px, 4.3vw, 70px); line-height: 1.14; }
.band-open .final-sub { font-size: 19px; max-width: 40ch; }
/* words wait below their mask, rise in, and leave upwards; the scroll only decides when
   (script.js holds a new line back until the one before it has left: EXIT_MS there = the leaving time here) */
.band .wi { transform: translate3d(0, 150%, 0); transition: transform .36s var(--ease-in) calc(var(--i) * 8ms); will-change: transform; }
.band.is-live .wi { transform: none; transition: transform 1.05s var(--ease-out) calc(var(--i) * 42ms); }
.band.is-after .wi { transform: translate3d(0, -150%, 0); }
.band.skip .wi, .band.skip .final-sub, .band.skip .final-cta, .band.skip .name-field { transition: none; }
/* in the two big bands, the line comes first, then the sentence, the buttons and the name field, one after another */
html.js .band-rich .final-sub, html.js .band-rich .final-cta, html.js .band-rich .name-field {
  opacity: 0; transform: translate3d(0, 14px, 0);
  transition: opacity .35s var(--ease), transform .45s var(--ease), visibility 0s linear .45s;
}
html.js .band-rich .final-cta, html.js .band-rich .name-field { visibility: hidden; }
html.js .band-rich.is-live .final-sub, html.js .band-rich.is-live .final-cta, html.js .band-rich.is-live .name-field {
  opacity: 1; transform: none; visibility: visible;
  transition: opacity .8s var(--ease-out) var(--late, .15s), transform 1s var(--ease-out) var(--late, .15s), visibility 0s;
}
.band-rich.is-live .final-sub { --late: .5s; }
.band-rich.is-live .final-cta { --late: .64s; }
.band-rich.is-live .name-field { --late: .9s; }
/* "see your business on the map": what you type here becomes the label on the map and goes into the WhatsApp message */
.name-field { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 30px; font-size: 14px; color: var(--text-2); }
.name-field input {
  width: min(290px, 100%); padding: 8px 0 7px; border: 0; border-bottom: 1px solid rgb(var(--text-rgb) / .28); border-radius: 0;
  background: transparent; color: var(--text); font: 500 15px/1.2 var(--body); transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.name-field input::placeholder { color: rgb(var(--text-rgb) / .42); }
.name-field input:hover { border-bottom-color: rgb(var(--text-rgb) / .5); }
.name-field input:focus { outline: none; border-bottom-color: var(--flow); box-shadow: 0 1px 0 var(--flow); }
/* the label on the map: grey while nobody finds the business, coral once the pin rises */
.pin-tag {
  position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 8px; padding: 7px 13px 7px 10px;
  border-radius: 999px; background: rgb(var(--canvas-rgb) / .8); border: 1px solid var(--hair);
  font: 500 clamp(13px, .78vw, 15px)/1 var(--body); color: var(--mist); white-space: nowrap; opacity: 0; pointer-events: none;
  will-change: transform, opacity; transition: color .5s var(--ease), border-color .5s var(--ease);
}
.pin-tag::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 9px; background: currentColor; opacity: .45; }
.pin-tag { margin-top: -9px; }
.pin-name { max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.pin-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-2); transition: background-color .5s var(--ease), box-shadow .5s var(--ease); }
.pin-tag.on { color: var(--text); border-color: rgb(var(--coral-rgb) / .6); }
.pin-tag.on .pin-dot { background: var(--coral); box-shadow: 0 0 10px rgb(var(--coral-rgb) / .85); }
html:not(.scrub) .pin-tag { display: none; }
.final-sub { max-width: 46ch; color: var(--mist); margin: 22px 0 26px; font-size: 18px; }
.final-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* where you are in the five-line story */
.rail {
  position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font: 500 12px/1 var(--display); font-variant-numeric: tabular-nums; color: var(--text-2);
}
.rail-num { color: var(--text); }
.rail, .geo { transition: opacity .35s var(--ease); }
.stage.leaving .rail, .stage.leaving .geo { opacity: 0; }
.rail-track { position: relative; width: 1px; height: clamp(120px, 22vh, 200px); background: rgb(var(--text-rgb) / .3); }
.rail-fill { position: absolute; inset: 0; background: var(--flow); transform: scaleY(0); transform-origin: 50% 0; }
.rail-track i { position: absolute; left: -3px; width: 7px; height: 1px; background: rgb(var(--text-rgb) / .5); transition: background-color .3s var(--ease), transform .4s var(--ease-out); }
.rail-track i.on { background: var(--flow); transform: scaleX(1.7); }
/* map coordinates of Oradea, bottom left */
.geo { position: absolute; left: var(--gutter); bottom: 28px; margin: 0; display: flex; gap: 14px; font: 500 12px/1 var(--body); font-variant-numeric: tabular-nums; color: var(--text-2); }
.geo span:first-child { color: var(--mist); }
/* scroll cue */
.cue {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 13px; color: var(--mist); transition: opacity .4s var(--ease), visibility 0s linear .4s;
}
.cue-line { position: relative; width: 1px; height: 44px; overflow: hidden; background: rgb(var(--text-rgb) / .32); }
.cue-line::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 18px; background: var(--flow); animation: cue 1.9s cubic-bezier(.6, 0, .3, 1) infinite; }
@keyframes cue { from { transform: translateY(-18px); } to { transform: translateY(44px); } }
.stage.scrolled .cue { opacity: 0; visibility: hidden; }
.stage.scrolled .cue-line::after { animation-play-state: paused; }
/* film download progress, along the bottom edge */
.loadbar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--flow); transform: scaleX(0); transform-origin: 0 50%; transition: transform .2s linear, opacity .5s var(--ease) .25s; }
.stage.ready .loadbar { opacity: 0; }

/* static hero: phones, animations off, no JavaScript, or when the film fails */
.static-hero { display: flex; position: relative; min-height: 100svh; align-items: flex-end;
  background: var(--canvas) url(media/harta-final.jpg?v=3) 50% 50% / cover no-repeat; }
.static-hero::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgb(var(--canvas-rgb) / .85), rgb(var(--canvas-rgb) / .35) 55%, rgb(var(--canvas-rgb) / 0)), linear-gradient(180deg, rgb(var(--canvas-rgb) / 0) 60%, var(--canvas)); }
.static-in { position: relative; padding: 140px var(--gutter) 12vh; max-width: min(52vw, 860px); }
.static-in h1 { font-size: clamp(38px, 4.6vw, 74px); font-variant-numeric: tabular-nums; }
.static-in .lead { max-width: 46ch; color: var(--mist); font-size: 18px; margin: 22px 0 26px; }
html.scrub .static-hero { display: none; }
.static-lights { display: none; }

/* ---------------- the page (a sheet that slides over the film) ---------------- */
main { position: relative; z-index: 2; background: var(--canvas); }
main::before {
  /* a faint sage and lilac haze that stays put behind the content while the page scrolls */
  content: ""; display: block; position: sticky; top: 0; z-index: -1; height: 100svh; margin-bottom: -100svh; pointer-events: none;
  background:
    radial-gradient(60vw 50vh at 88% 12%, rgb(var(--sage-rgb) / .06), transparent 70%),
    radial-gradient(50vw 50vh at 6% 78%, rgb(var(--lilac-rgb) / .045), transparent 70%);
}
html.scrub main { margin-top: -100svh; border-radius: var(--sheet) var(--sheet) 0 0; overflow: clip; box-shadow: 0 -1px 0 var(--hair); }

/* ---------------- sections ---------------- */
.sec { padding: clamp(84px, 11vw, 150px) 0; position: relative; }
.sec + .sec { border-top: 1px solid var(--hair); }
.sec-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head p:not(.kicker) { color: var(--text-2); font-size: 18px; margin: 18px 0 0; max-width: 56ch; }
.ticks { list-style: none; padding: 0; margin: 14px 0 0; }
.ticks li { position: relative; padding-left: 22px; margin: 6px 0; color: var(--mist); font-size: 15.5px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--pastel, var(--sage)); }

/* ---------------- the customer's journey: one phone that stays on screen, four moments ----------------
   1 the search on Google, 2 the business on Google Maps, 3 its site, 4 the message on WhatsApp.
   script.js sets data-ch (0-3) and a few j-* classes from the scroll; CSS does the moving, in its own time. */
.journey { position: relative; height: 440svh; --jc: var(--lilac); }
.journey[data-ch="1"] { --jc: var(--sage); }
.journey[data-ch="2"] { --jc: var(--peach); }
.journey[data-ch="3"] { --jc: var(--blush); }
.j-stage {
  position: sticky; top: 0; height: 100svh; padding-top: var(--top);
  width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: var(--col-gap); align-items: center;
}
.j-copy h2 { font: 500 16px/1.3 var(--body); letter-spacing: 0; color: var(--text-2); margin-bottom: 28px; display: flex; align-items: center; gap: 10px; }
.j-copy h2::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 12px rgb(var(--coral-rgb) / .8); }
.j-steps { list-style: none; margin: 0; padding: 0; display: grid; }
.j-step { grid-area: 1 / 1; }
.j-step:not(.on) { pointer-events: none; }
.j-time { font: 600 15px/1 var(--display); font-stretch: 108%; font-variant-numeric: tabular-nums; color: var(--jc); margin: 0 0 18px; }
.j-step h3 { font: 700 clamp(30px, 3.4vw, 54px)/1.1 var(--display); font-stretch: 116%; letter-spacing: -.02em; margin: 0 0 22px; max-width: 15ch; }
.j-text { color: var(--mist); font-size: 18.5px; max-width: 38ch; margin: 0; }
.j-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 28px; }
.j-link { color: var(--sage-light); font-size: 15.5px; }
/* the line rises out of its mask, the rest follows; the line before leaves quickly upwards.
   2D moves only (translateY, not translate3d): a 3D move makes every hidden word its own graphics layer, and ~80 of
   them made Chrome redo its layer work on every frame of the scroll (measured: Layerize 0.6 ms per frame) */
html.js:not(.no-anim) .j-step .wi { transform: translateY(150%); transition: transform .3s var(--ease-in); }
html.js:not(.no-anim) .j-step.past .wi { transform: translateY(-150%); }
html.js:not(.no-anim) .j-step.on .wi { transform: none; transition: transform 1s var(--ease-out) calc(.24s + var(--i) * 40ms); }
html.js:not(.no-anim) .j-step .j-time, html.js:not(.no-anim) .j-step .j-text, html.js:not(.no-anim) .j-step .j-cta {
  opacity: 0; transform: translateY(12px); transition: opacity .22s var(--ease), transform .3s var(--ease), visibility 0s linear .3s; visibility: hidden;
}
html.js:not(.no-anim) .j-step.on .j-time, html.js:not(.no-anim) .j-step.on .j-text, html.js:not(.no-anim) .j-step.on .j-cta {
  opacity: 1; transform: none; visibility: visible; transition: opacity .7s var(--ease-out) .5s, transform .9s var(--ease-out) .5s, visibility 0s;
}
html.js:not(.no-anim) .j-step.on .j-time { transition-delay: .18s; }
html.js:not(.no-anim) .j-step.on .j-cta { transition-delay: .7s; }
/* where you are: four short bars that fill as you scroll */
.j-bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: clamp(36px, 6vh, 64px); max-width: 460px; font-size: 12.5px; color: var(--text-2); }
.j-bar span { display: grid; gap: 9px; }
.j-bar i { display: block; height: 2px; border-radius: 2px; background: rgb(var(--text-rgb) / .14); position: relative; overflow: hidden; }
.j-bar i::after { content: ""; position: absolute; inset: 0; background: var(--jc); transform: scaleX(var(--f, 0)); transform-origin: 0 50%; }

/* the device side: a quiet street map behind, a glow in the colour of the moment, the phone */
.j-device { position: relative; display: grid; justify-items: center; align-content: center; gap: 18px; height: 100%; isolation: isolate; }
/* the glow: four ready-made colours that cross-fade (only their opacity changes). No will-change on the journey's parts:
   forcing them into their own layers made the scroll slower further down the page (measured) */
.j-glow { position: absolute; left: 50%; top: 46%; width: min(640px, 120%); aspect-ratio: 1; z-index: -1; transform: translate(-50%, -50%); pointer-events: none; }
.j-glow i { position: absolute; inset: 0; opacity: 0; transition: opacity 1s var(--ease);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--g) 26%, transparent), color-mix(in srgb, var(--g) 7%, transparent) 55%, transparent); }
.j-glow i:nth-child(1) { --g: var(--lilac); } .j-glow i:nth-child(2) { --g: var(--sage); } .j-glow i:nth-child(3) { --g: var(--peach); } .j-glow i:nth-child(4) { --g: var(--blush); }
.journey[data-ch="0"] .j-glow i:nth-child(1), .journey[data-ch="1"] .j-glow i:nth-child(2), .journey[data-ch="2"] .j-glow i:nth-child(3), .journey[data-ch="3"] .j-glow i:nth-child(4) { opacity: 1; }
.j-map { position: absolute; inset: 4% -6%; width: 112%; height: 92%; z-index: -2; opacity: .5;
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent); mask-image: radial-gradient(closest-side, #000 30%, transparent); }
.j-map path, .s-map path, .m-photo path { fill: none; stroke: var(--flow); stroke-width: 1; opacity: .3; vector-effect: non-scaling-stroke; }
.j-map .j-avenue, .s-map .j-avenue, .m-photo .j-avenue { stroke-width: 2.4; opacity: .38; }
.j-map .j-river { stroke-width: 16; opacity: .12; }

.phone {
  --ph: min(68svh, 640px);
  position: relative; height: var(--ph); aspect-ratio: 9 / 19.3; font-size: calc(var(--ph) / 42);
  padding: .5em; border-radius: 3.1em; background: linear-gradient(155deg, #23343a, #080d0f 38%, #121d21 80%, #2a3c42);
  box-shadow: 0 0 0 1px rgb(var(--text-rgb) / .08), 0 2.2em 4em rgb(0 0 0 / .5);
  transform: perspective(1600px) rotateY(var(--ry, -7deg)) rotateX(3deg); transition: transform 1.2s var(--ease-out);
}
.journey[data-ch="1"] .phone { --ry: -3deg; }
.journey[data-ch="2"] .phone { --ry: 2deg; }
.journey[data-ch="3"] .phone { --ry: 6deg; }
.phone-island { position: absolute; top: 1.15em; left: 50%; z-index: 6; width: 5.4em; height: 1.55em; transform: translateX(-50%); border-radius: 1em; background: #000; }
.phone-screen { position: relative; height: 100%; overflow: hidden; border-radius: 2.65em; background: #0D1518; color: var(--text); font-family: var(--body); line-height: 1.3; }
.phone-screen p { margin: 0; }
.ph-status { position: absolute; inset: 0 0 auto; z-index: 5; height: 3.3em; display: flex; align-items: center; justify-content: space-between; padding: .5em 1.9em 0 2.2em; font: 600 .86em/1 var(--body); font-variant-numeric: tabular-nums; }
.ph-icons { display: flex; align-items: flex-end; gap: .18em; height: .8em; }
.ph-icons i { width: .22em; background: currentColor; border-radius: .1em; }
.ph-icons i:nth-child(1) { height: 45%; } .ph-icons i:nth-child(2) { height: 70%; } .ph-icons i:nth-child(3) { height: 100%; }

.scr { position: absolute; inset: 0; padding-top: 3.5em; opacity: .002; transform: translateX(16%) scale(.97); transition: opacity .45s var(--ease), transform .75s var(--ease-out); }
.scr.on { opacity: 1; transform: none; }
.scr.past { transform: translateX(-16%) scale(.97); }
.scr-maps:not(.on):not(.past) { transform: translateY(34%); }
.scr-site:not(.on):not(.past) { transform: scale(.82); }

/* (.002, not 0: a screen at opacity 0 is not drawn at all, so the first time it came up the browser had to draw it
   on the spot, a ~50 ms hitch. Barely there, it is drawn in advance, with the rest of the section) */
/* 1. the search */
.s-bar { display: flex; align-items: center; gap: .7em; height: 2.9em; margin: .5em 1em .7em; padding: 0 1.1em; border-radius: 1.5em; background: #1B272B; font-size: 1em; }
.s-mag { position: relative; flex: none; width: .82em; height: .82em; border: 2px solid var(--text-2); border-radius: 50%; }
.s-mag::after { content: ""; position: absolute; right: -.36em; bottom: -.36em; width: .4em; height: 2px; background: var(--text-2); transform: rotate(45deg); transform-origin: 0 50%; }
.s-q { white-space: nowrap; overflow: hidden; }
.s-caret { display: inline-block; width: 1.5px; height: 1.05em; margin-left: 1px; vertical-align: -.15em; background: var(--flow); }
/* the looping bits (cursor, typing dots) run only while you can see them: a CSS animation that never stops makes the
   browser restyle on every frame, on the whole page (measured) */
.journey.j-live[data-ch="0"] .s-caret { animation: caret 1.05s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.s-tabs { display: flex; gap: 1.2em; padding: 0 1.4em .55em; border-bottom: 1px solid #1E2B30; font-size: .8em; color: var(--text-2); }
.s-tabs .on { color: var(--flow); box-shadow: 0 .6em 0 -.45em var(--flow); }
.s-map { position: relative; height: 8em; margin: .8em 1em; overflow: hidden; border-radius: 1em; background: radial-gradient(60% 80% at 62% 48%, rgb(var(--coral-rgb) / .12), transparent 70%), linear-gradient(135deg, var(--map-a), var(--map-b)); }
.s-map svg, .m-photo svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.s-pin { position: absolute; width: 1em; height: 1em; border-radius: 50% 50% 50% 0; background: #5F777C; transform: translate(-50%, -100%) rotate(-45deg); }
.s-pin::before { content: ""; position: absolute; inset: .3em; border-radius: 50%; background: #0D1518; }
.s-pin-a { left: 24%; top: 52%; } .s-pin-b { left: 80%; top: 70%; }
.s-pin-you { left: 60%; top: 46%; width: 1.35em; height: 1.35em; background: var(--coral); box-shadow: 0 0 1.2em rgb(var(--coral-rgb) / .7); }
.s-pin-you::before { inset: .42em; background: var(--ink); }
.s-res { padding: 0 1em; }
.s-item { position: relative; margin-bottom: .5em; padding: .8em .95em; border-radius: .95em; background: #141F23; opacity: 0; transform: translateY(.8em); transition: opacity .5s var(--ease), transform .7s var(--ease-out), box-shadow .5s var(--ease); }
.journey.j-res .s-item { opacity: .5; transform: none; }
.journey.j-res .s-you { opacity: 1; }
.journey.j-res .s-item:nth-child(2) { transition-delay: .08s; } .journey.j-res .s-item:nth-child(3) { transition-delay: .16s; }
.journey.j-pick .s-you { box-shadow: 0 0 0 1.5px var(--coral), 0 0 2.4em rgb(var(--coral-rgb) / .22); }
.s-name { font: 600 1em/1.2 var(--display); font-stretch: 106%; margin-bottom: .25em !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-meta { font-size: .78em; color: var(--text-2); margin-bottom: .12em !important; }
.s-meta b { color: var(--text); font-weight: 600; }
.s-stars, .w-stars { color: var(--butter); letter-spacing: .04em; }
.s-open { color: var(--sage-light); }
.s-acts { display: flex; gap: .45em; margin-top: .6em; }
.s-act { padding: .38em .85em; border: 1px solid #2B3B41; border-radius: 1em; font-size: .74em; color: var(--flow); }
.s-act.s-site { background: var(--sage-light); border-color: var(--sage-light); color: var(--canvas); font-weight: 600; }
/* the tap: a ring that grows from what the visitor's thumb presses */
.s-you::after, .m-site i::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; opacity: 0; border: 2px solid rgb(var(--text-rgb) / .85); }
.s-you::after { left: 50%; top: 50%; width: 3em; height: 3em; margin: -1.5em 0 0 -1.5em; }
.journey.j-pick .s-you::after { animation: j-tap 1.2s var(--ease-out) .25s 2; }
@keyframes j-tap { from { opacity: .9; transform: scale(.35); } to { opacity: 0; transform: scale(1.6); } }

/* 2. the business on Google Maps */
.m-photo { position: relative; height: 10.5em; overflow: hidden; background: radial-gradient(50% 70% at 50% 55%, rgb(var(--coral-rgb) / .18), transparent 70%), linear-gradient(135deg, var(--map-a), var(--map-b)); }
.m-photo .s-pin-you { left: 50%; top: 58%; }
.m-body { padding: 1.05em 1.3em; }
.m-name { font: 700 1.45em/1.12 var(--display); font-stretch: 112%; letter-spacing: -.01em; margin-bottom: .35em !important; }
.m-meta { font-size: .82em; color: var(--text-2); margin-bottom: .2em !important; }
.m-meta b { color: var(--text); }
.m-acts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4em; margin: 1.05em 0 1em; }
.m-act { display: grid; justify-items: center; gap: .45em; font-size: .72em; color: var(--flow); }
.m-act i { position: relative; width: 3em; height: 3em; border-radius: 50%; background: #17252A; border: 1px solid #27383E; }
.m-site { color: var(--sage-light); font-weight: 600; }
.m-site i { background: var(--sage-light); border-color: var(--sage-light); transition: box-shadow .5s var(--ease); }
.m-site i::after { inset: -.2em; }
.journey.j-tap .m-site i { box-shadow: 0 0 0 .35em rgb(var(--sage-rgb) / .25), 0 0 1.6em rgb(var(--sage-rgb) / .5); }
.journey.j-tap .m-site i::after { animation: j-tap 1.1s var(--ease-out) .1s 2; }
.m-tabs { display: flex; gap: 1.3em; padding-bottom: .5em; border-bottom: 1px solid #1E2B30; font-size: .78em; color: var(--text-2); }
.m-tabs .on { color: var(--flow); }
.m-photos { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: .4em; height: 6em; margin: .9em 0 .8em; }
.m-photos i { border-radius: .7em; background: linear-gradient(140deg, rgb(var(--blush-rgb) / .55), rgb(var(--lilac-rgb) / .25)); }
.m-photos i:nth-child(2) { background: linear-gradient(140deg, rgb(var(--butter-rgb) / .45), rgb(var(--sage-rgb) / .3)); }
.m-photos i:nth-child(3) { background: linear-gradient(140deg, rgb(var(--flow-rgb) / .4), rgb(var(--lilac-rgb) / .3)); }
.m-rev { font-size: .8em; color: var(--mist); }

/* 3. the business's own site (light, so it lights up the phone) */
.scr-site { background: #0D1518; }
.w-url { display: flex; align-items: center; justify-content: center; gap: .5em; height: 2.3em; margin: .3em 1em .55em; border-radius: 1.2em; background: #1B272B; font-size: .8em; color: var(--mist); }
.w-lock { width: .7em; height: .55em; border-radius: .12em; background: var(--text-2); position: relative; }
.w-lock::before { content: ""; position: absolute; left: .12em; right: .12em; bottom: 100%; height: .35em; border: 1.5px solid var(--text-2); border-bottom: 0; border-radius: .3em .3em 0 0; }
.w-win { position: absolute; inset: 6.35em 0 0; overflow: hidden; background: #FFF7F2; color: #2A1D18; }
.w-scroll { will-change: transform; padding-bottom: 1em; }
.w-top { display: flex; align-items: center; gap: .6em; padding: .85em 1.15em; font: 700 .92em/1 var(--display); font-stretch: 108%; }
.w-logo, .c-ava { display: grid; place-items: center; flex: none; width: 1.95em; height: 1.95em; border-radius: 50%; background: var(--coral); color: var(--ink); font: 700 .95em/1 var(--display); }
.w-burger { margin-left: auto; width: 1.15em; height: .75em; border-top: 2px solid; border-bottom: 2px solid; position: relative; }
.w-burger::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: currentColor; }
.w-hero { margin: 0 .85em; padding: 1.5em 1.2em 1.35em; border-radius: 1.2em;
  background: radial-gradient(110% 90% at 85% 5%, #F6CDB2, transparent 62%), radial-gradient(90% 80% at 0% 100%, #F2C4CE, transparent 62%), #F8E4D8; }
.w-h { font: 800 1.85em/1.02 var(--display); font-stretch: 112%; letter-spacing: -.02em; margin-bottom: .4em !important; overflow-wrap: anywhere; }
.w-tag { font-size: .84em; color: #5C4239; margin-bottom: 1.1em !important; }
.w-btn, .w-btn2 { display: inline-block; padding: .72em 1.05em; border-radius: .6em; font: 600 .78em/1 var(--display); }
.w-btn { background: var(--coral); color: var(--ink); }
.w-btn2 { margin-left: .35em; border: 1.5px solid #2A1D18; padding: .62em .95em; }
.w-sec { font: 700 .98em/1.2 var(--display); margin: 1.35em 1.15em .55em !important; }
.w-list { list-style: none; margin: 0 1.15em; padding: 0; }
.w-list li { display: flex; justify-content: space-between; gap: 1em; padding: .6em 0; border-bottom: 1px solid #EED9CC; font-size: .84em; }
.w-list b { color: #B43A22; font-weight: 600; white-space: nowrap; }
.w-txt { margin: 0 1.15em !important; font-size: .84em; color: #5C4239; }
.w-map { position: relative; height: 7em; margin: .9em 1.15em; border-radius: 1em; background: linear-gradient(135deg, #EADBD0, #DDCBBF); }
.w-map .s-pin-you { left: 50%; top: 62%; box-shadow: none; }
.w-wide { display: block; margin: 1.2em 1.15em 0; text-align: center; }

/* 4. the message */
.scr-chat { background: #0A1317; }
.c-top { display: flex; align-items: center; gap: .65em; padding: .3em 1.1em .75em; border-bottom: 1px solid #1B282E; background: #101B20; }
.c-back { width: .6em; height: .6em; border-left: 2px solid var(--flow); border-bottom: 2px solid var(--flow); transform: rotate(45deg); margin-right: .2em; }
.c-who b { display: block; max-width: 11em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 .95em/1.2 var(--display); }
.c-who small { font-size: .72em; color: var(--text-2); }
.c-body { display: flex; flex-direction: column; gap: .5em; padding: .9em .9em; }
.c-day { align-self: center; padding: .3em .85em; border-radius: .6em; background: #17242A; font-size: .7em; color: var(--text-2); }
.c-msg { position: relative; max-width: 80%; padding: .6em .8em .45em; border-radius: .95em; font-size: .85em; line-height: 1.36; }
.c-msg small { display: block; margin-top: .15em; text-align: right; font-size: .74em; color: rgb(var(--text-rgb) / .55); }
.c-out { align-self: flex-end; background: #17504A; border-bottom-right-radius: .3em; }
.c-in { align-self: flex-start; background: #1E2B32; border-bottom-left-radius: .3em; }
.c-slot { display: grid; justify-items: start; }
.c-slot > * { grid-area: 1 / 1; }
.c-typing { display: flex; gap: .28em; padding: .8em .9em; border-radius: .95em; background: #1E2B32; }
.c-typing i { width: .42em; height: .42em; border-radius: 50%; background: var(--text-2); }
.journey.j-live.j-typing .c-typing i { animation: j-dots 1.1s var(--ease) infinite; }
.c-typing i:nth-child(2) { animation-delay: .15s; } .c-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes j-dots { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-.25em); opacity: 1; } }
.c-m1, .c-day2, .c-m2, .c-typing, .c-m3 { opacity: 0; transform: translateY(.6em) scale(.97); transition: opacity .35s var(--ease), transform .55s var(--ease-out); }
.journey.j-b1 .c-m1, .journey.j-b2 .c-day2, .journey.j-typing .c-typing, .journey.j-b2 .c-m2, .journey.j-b3 .c-m3 { opacity: 1; transform: none; }
.journey.j-typing .c-day2 { opacity: 1; transform: none; }
.c-input { position: absolute; left: .85em; right: .85em; bottom: 1.25em; display: flex; align-items: center; height: 2.6em; padding: 0 1.1em; border-radius: 1.3em; background: #1A262C; font-size: .82em; color: var(--text-2); }

/* the name field under the phone */
.j-name { display: grid; justify-items: center; gap: 6px; font-size: 13.5px; color: var(--text-2); text-align: center; }
.j-name input { width: min(250px, 80vw); padding: 6px 0; border: 0; border-bottom: 1px solid rgb(var(--text-rgb) / .28); border-radius: 0; background: transparent; color: var(--text); text-align: center; font: 500 15px/1.2 var(--body); }
.j-name input::placeholder { color: rgb(var(--text-rgb) / .4); }
.j-name input:focus { outline: none; border-bottom-color: var(--flow); box-shadow: 0 1px 0 var(--flow); }

/* animations off (or no JavaScript): an ordinary section, the four moments as a list, the phone showing the site */
html.no-anim .journey, html:not(.js) .journey { height: auto; padding: clamp(84px, 11vw, 150px) 0; }
html.no-anim .j-stage, html:not(.js) .j-stage { position: static; height: auto; padding-top: 0; align-items: start; }
html.no-anim .j-steps, html:not(.js) .j-steps { display: block; }
html.no-anim .j-step, html:not(.js) .j-step { margin-bottom: 34px; pointer-events: auto; }
html.no-anim .j-step h3, html:not(.js) .j-step h3 { font-size: clamp(24px, 2.4vw, 34px); max-width: 24ch; margin-bottom: 12px; }
html.no-anim .j-time, html:not(.js) .j-time { margin-bottom: 10px; }
html.no-anim .j-bar, html:not(.js) .j-bar { display: none; }
html.no-anim .scr, html:not(.js) .scr { transition: none; opacity: 0; }
html.no-anim .scr-site, html:not(.js) .scr-site { opacity: 1; transform: none; }
html.no-anim .j-device, html:not(.js) .j-device { position: sticky; top: calc(var(--top) + 24px); height: auto; }
html.no-anim .phone { --ph: min(78svh, 660px); transition: none; }

/* services: the title stays on the left while the route of light goes by on the right */
.split { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: var(--col-gap); align-items: start; }
.split > .sec-head { position: sticky; top: calc(var(--top) + 56px); margin-bottom: 0; }
.split .vine { max-width: none; }

/* services: a route of light with a pastel map point for each service */
@property --p { syntax: "<number>"; inherits: false; initial-value: 0; }
.vine { list-style: none; margin: 0; padding: 0 0 0 64px; position: relative; max-width: 820px; --p: 0; }
.vine::before, .vine::after { content: ""; position: absolute; left: 21px; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; }
.vine::before { background: var(--hair); }
.vine::after {
  --p: inherit;
  background: linear-gradient(180deg, var(--flow), var(--sage) 70%, var(--sage-light));
  transform-origin: 50% 0; transform: scaleY(var(--p));
}
.vine-item { position: relative; padding: 4px 0 40px; }
.vine-item:last-child { padding-bottom: 0; }
.vine-item::before {
  /* the map point */
  content: ""; position: absolute; left: -50px; top: 5px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--panel-2); border: 1.5px solid var(--hair);
  transform: scale(.8); transition: background-color .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease), transform .6s var(--ease-out);
}
.vine-item.lit::before { background: var(--pastel); border-color: var(--pastel); transform: scale(1); box-shadow: 0 0 0 5px color-mix(in srgb, var(--pastel) 16%, transparent); }
.vine-item h3 { margin-bottom: 8px; }
.vine-item p { color: var(--text-2); margin: 0; max-width: 60ch; }
.vine-item > h3, .vine-item > p, .vine-item > .ticks { transition: opacity .6s var(--ease), transform .8s var(--ease-out); }
html.js .vine-item:not(.lit) > h3, html.js .vine-item:not(.lit) > p, html.js .vine-item:not(.lit) > .ticks { opacity: .5; transform: translate3d(10px, 0, 0); }
.vine-item:first-child h3 { font-size: 28px; }
.vine-item h3 { font-size: 23px; }
.vine-item { padding-bottom: 46px; }
.aside-cta { margin: 48px 0 0 64px; color: var(--text-2); }
.aside-cta a { color: var(--sage-light); }

/* prices: one panel, three columns */
.price-panel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--panel); color: var(--text); border: 1px solid var(--hair); border-radius: 14px; overflow: hidden; }
.tier { padding: 32px 30px 34px; position: relative; transition: background-color .4s var(--ease); }
.tier + .tier { border-left: 1px solid var(--hair); }
.tier:not(:has(.tier-tag)) { padding-top: 77px; }
.tier::before { content: ""; position: absolute; left: 30px; right: 30px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--pastel); opacity: .9; transform-origin: 0 50%; }
html.js .price-panel .tier::before { transform: scaleX(0); transition: transform 1.1s var(--ease-out) calc(.25s + var(--ti, 0) * .14s); }
html.js .price-panel.in .tier::before { transform: none; }
.tier:hover { background: color-mix(in srgb, var(--pastel) 5%, transparent); }
.tier-featured { background: linear-gradient(180deg, color-mix(in srgb, var(--pastel) 9%, transparent), transparent 55%); }
.tier-featured:hover { background: linear-gradient(180deg, color-mix(in srgb, var(--pastel) 13%, transparent), transparent 60%); }
.tier-tag { display: inline-block; font-size: 13px; color: var(--canvas); background: var(--pastel); border-radius: 99px; padding: 4px 11px; margin: 0 0 16px; font-weight: 500; }
.tier h3 { color: var(--text); }
.tier-price { font: 700 52px/1 var(--display); font-stretch: 118%; font-variant-numeric: tabular-nums; margin: 18px 0 18px; letter-spacing: -.02em; color: var(--pastel); }
.tier-price span { font-size: 18px; color: var(--text-2); font-weight: 500; letter-spacing: 0; }
.extras { margin: 30px 0 8px; color: var(--text-2); max-width: 72ch; }

/* steps: a path of light (three strokes instead of a blur filter, so drawing it stays cheap), and a clock that counts the hours */
.steps-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--col-gap); align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.steps-head .sec-head { margin-bottom: 0; }
.clock { display: flex; align-items: baseline; gap: 14px; margin: 0; line-height: .8; }
.clock-n { font: 800 clamp(96px, 13vw, 200px)/.8 var(--display); font-stretch: 120%; letter-spacing: -.04em; font-variant-numeric: tabular-nums;
  background: linear-gradient(170deg, var(--sage-light), var(--flow) 45%, var(--lilac)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.clock-u { font: 600 clamp(18px, 1.6vw, 24px)/1 var(--display); font-stretch: 110%; color: var(--text-2); }
.step-h { margin: 0 0 8px; font: 600 13.5px/1 var(--display); font-stretch: 106%; font-variant-numeric: tabular-nums; color: var(--pastel); }
.path { position: relative; }
.path-line { width: 100%; height: 120px; overflow: visible; }
.path-line path { fill: none; stroke: var(--flow); stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.path-halo { stroke-width: 14; opacity: .07; }
.path-glow { stroke-width: 6; opacity: .16; }
.path-core { stroke-width: 2; }
.steps { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; }
.step { position: static; }
.step .node { position: absolute; top: 0; left: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--panel-2); border: 1.5px solid var(--hair);
  transition: background-color .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease), transform .6s var(--ease-out); transform: scale(.8); }
.step.lit .node { background: var(--pastel); border-color: var(--pastel); transform: scale(1); box-shadow: 0 0 0 6px color-mix(in srgb, var(--pastel) 18%, transparent); }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-2); margin: 0; font-size: 16px; }
.step h3, .step p { transition: opacity .6s var(--ease), transform .8s var(--ease-out); }
html.js .step:not(.lit) h3, html.js .step:not(.lit) p { opacity: .5; transform: translate3d(0, 10px, 0); }
.step .step-h { color: var(--pastel); }

/* work */
.work { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.work-item { text-decoration: none; display: block; background: var(--panel); color: var(--text); border: 1px solid var(--hair); border-radius: 12px; padding: 12px 12px 20px; transition: border-color .3s var(--ease), translate .45s var(--ease-out); }
.work-item:hover { border-color: color-mix(in srgb, var(--pastel) 55%, var(--hair)); translate: 0 -4px; }
.work-shot { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 8px; display: grid; place-items: end center; text-align: center; padding: 16px;
  background: radial-gradient(70% 80% at 70% 30%, color-mix(in srgb, var(--pastel) 22%, transparent), transparent 70%), var(--panel-2); margin-bottom: 16px; }
.work-item h3, .work-item p { padding: 0 8px; }
.work-shot .todo { position: absolute; z-index: 1; left: 10px; top: 9px; font-size: 12px; }
/* a drawn site (menu, picture, two lines of text, a button), a small picture per colour: the browser draws it once
   (as layered CSS gradients it cost a 50-100 ms hitch each time the cards came into view) */
.work-shot::before {
  content: ""; position: absolute; left: 13%; right: 13%; top: 12%; bottom: -6%;
  background: var(--mock) 0 0 / 100% 100% no-repeat; transition: transform .6s var(--ease-out);
}
.work-item.p-blush { --mock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 250'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23F4CDD5'/%3E%3Cstop offset='1' stop-color='%23F9E0E2'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M10 0H290A10 10 0 0 1 300 10V250H0V10A10 10 0 0 1 10 0Z' fill='%23FFF7F2'/%3E%3Crect x='22' y='16' width='96' height='11' rx='4' fill='%23EEDDD2'/%3E%3Crect x='21' y='42' width='258' height='88' rx='9' fill='url(%23g)'/%3E%3Crect x='22' y='150' width='240' height='9' rx='4' fill='%23EEDDD2'/%3E%3Crect x='22' y='170' width='170' height='9' rx='4' fill='%23EEDDD2'/%3E%3Crect x='22' y='196' width='92' height='22' rx='5' fill='%23FF5A3C'/%3E%3C/svg%3E"); }
.work-item.p-lilac { --mock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 250'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23D3CCF1'/%3E%3Cstop offset='1' stop-color='%23E8E0F0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M10 0H290A10 10 0 0 1 300 10V250H0V10A10 10 0 0 1 10 0Z' fill='%23FFF7F2'/%3E%3Crect x='22' y='16' width='96' height='11' rx='4' fill='%23EEDDD2'/%3E%3Crect x='21' y='42' width='258' height='88' rx='9' fill='url(%23g)'/%3E%3Crect x='22' y='150' width='240' height='9' rx='4' fill='%23EEDDD2'/%3E%3Crect x='22' y='170' width='170' height='9' rx='4' fill='%23EEDDD2'/%3E%3Crect x='22' y='196' width='92' height='22' rx='5' fill='%23FF5A3C'/%3E%3C/svg%3E"); }
.work-item.p-peach { --mock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 250'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23F7D4BE'/%3E%3Cstop offset='1' stop-color='%23FBE4D5'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M10 0H290A10 10 0 0 1 300 10V250H0V10A10 10 0 0 1 10 0Z' fill='%23FFF7F2'/%3E%3Crect x='22' y='16' width='96' height='11' rx='4' fill='%23EEDDD2'/%3E%3Crect x='21' y='42' width='258' height='88' rx='9' fill='url(%23g)'/%3E%3Crect x='22' y='150' width='240' height='9' rx='4' fill='%23EEDDD2'/%3E%3Crect x='22' y='170' width='170' height='9' rx='4' fill='%23EEDDD2'/%3E%3Crect x='22' y='196' width='92' height='22' rx='5' fill='%23FF5A3C'/%3E%3C/svg%3E"); }
.work-item:hover .work-shot::before { transform: translateY(-4%); }
.work-item h3 { margin-bottom: 6px; }
.work-item p { margin: 0; color: var(--text-2); font-size: 15px; }

/* about */
.about { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--col-gap); align-items: center; }
.about-photo { aspect-ratio: 4 / 5; border-radius: 14px; display: grid; place-items: center; padding: 16px; text-align: center; border: 1px solid var(--hair);
  background: radial-gradient(70% 60% at 60% 35%, rgb(var(--lilac-rgb) / .16), transparent 70%), radial-gradient(60% 50% at 30% 80%, rgb(var(--sage-rgb) / .14), transparent 70%), var(--panel); }
.about-text h2 { margin-bottom: 22px; }
.about-text p { color: var(--text-2); max-width: 58ch; }

/* faq */
.faq { max-width: 860px; border-top: 1px solid var(--hair); }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font: 600 18px/1.35 var(--display); font-stretch: 106%; transition: color .25s var(--ease), translate .45s var(--ease-out); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2); transform: translateY(-70%) rotate(45deg); transition: transform .45s var(--ease-out), border-color .25s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); border-color: var(--sage-light); }
.faq summary:hover { color: var(--sage-light); translate: 6px 0; }
.faq details[open] summary { color: var(--sage-light); }
.faq details p { color: var(--text-2); margin: 0 0 22px; max-width: 66ch; }
/* answers open and close smoothly where the browser can animate to height: auto */
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .faq details::details-content { block-size: 0; overflow: clip; opacity: 0; transition: block-size .5s var(--ease-out), opacity .4s var(--ease), content-visibility .5s allow-discrete; }
  .faq details[open]::details-content { block-size: auto; opacity: 1; }
  html.no-anim .faq details::details-content { transition: none; }
}

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--col-gap); align-items: center; }
.contact-main h2 { margin-bottom: 18px; }
.contact-main > p:not(.kicker) { color: var(--text-2); font-size: 18px; margin-bottom: 26px; }
.contact-list { list-style: none; padding: 0; margin: 34px 0 0; border-top: 1px solid var(--hair); }
.contact-list li { padding: 12px 0; border-bottom: 1px solid var(--hair); color: var(--text-2); font-size: 15.5px; }
.contact-list a { color: var(--text); }
/* the photo sits in a frame with map crop marks; inside, it drifts a little as the page scrolls */
.contact-art { margin: 0; position: relative; }
.contact-art-frame { border-radius: 16px; overflow: hidden; border: 1px solid var(--hair); aspect-ratio: 43 / 30; background: var(--panel); }
.contact-art img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); will-change: transform; }
.contact-art::before, .contact-art::after { content: ""; position: absolute; width: 22px; height: 22px; pointer-events: none; border: 0 solid var(--sage-light); opacity: .7; }
.contact-art::before { left: -10px; top: -10px; border-width: 1px 0 0 1px; }
.contact-art::after { right: -10px; bottom: -10px; border-width: 0 1px 1px 0; }

/* quotes: words light up as you scroll */
.quote { margin: 0 auto; padding: clamp(70px, 9vw, 120px) 0; width: min(var(--wrap), 100% - 2 * var(--gutter)); }
.quote blockquote { margin: 0; max-width: 30ch; }
.quote p { font: 500 clamp(26px, 3.1vw, 44px)/1.18 var(--display); font-stretch: 104%; letter-spacing: -.01em; margin: 0; }
html.js .quote [data-words] .wd { color: var(--dim); transition: color .6s var(--ease); }
html.js .quote [data-words] .wd.on { color: var(--text); }
.quote figcaption { margin-top: 20px; color: var(--text-2); font-size: 15px; display: flex; align-items: center; gap: 10px; }
.quote figcaption::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--qc); }
.q-blush { --qc: var(--blush); } .q-lilac { --qc: var(--lilac); } .q-butter { --qc: var(--butter); } .q-peach { --qc: var(--peach); } .q-sage { --qc: var(--sage); }
.quote:nth-of-type(even) blockquote { margin-left: auto; }
.quote:nth-of-type(even) figcaption { justify-content: flex-end; }
.quote:nth-of-type(even) p { text-align: right; }

/* footer */
.footer { border-top: 1px solid var(--hair); padding: 56px 0 120px; color: var(--text-2); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--col-gap); }
.brand-footer { color: var(--text); margin-bottom: 10px; }
.to-top { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--text-2); text-decoration: none; transition: color .25s var(--ease); }
.to-top::before { content: ""; width: 7px; height: 7px; border-left: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: translateY(2px) rotate(45deg); transition: transform .4s var(--ease-out); }
.to-top:hover { color: var(--text); }
.to-top:hover::before { transform: translateY(-1px) rotate(45deg); }
.legal p { margin-bottom: 8px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.legal a { color: var(--text-2); }
.legal a:hover { color: var(--text); }

.mobile-bar { display: none; }

/* legal pages (termeni, confidențialitate) */
.legal-page { padding: 130px 0 80px; }
.legal-page h1 { font-size: clamp(34px, 4vw, 52px); margin-bottom: 24px; }
.legal-page h2 { font-size: 24px; margin: 34px 0 10px; }
.legal-page p { color: var(--text-2); max-width: 70ch; }
/* long legal texts: a short summary, a table of contents, numbered sections, lists and small tables */
.legal-page section { scroll-margin-top: calc(var(--top) + 20px); }
.legal-page h3 { font-size: 18px; margin: 22px 0 8px; color: var(--mist); }
.legal-page ul, .legal-page ol { color: var(--text-2); max-width: 70ch; padding-left: 22px; margin: 0 0 1em; }
.legal-page li { margin: 0 0 8px; padding-left: 4px; }
.legal-page li::marker { color: var(--sage); }
.legal-page a { color: var(--sage-light); }
.legal-date { font-size: 15px; }
.legal-sum { max-width: 70ch; margin: 28px 0 34px; padding: 22px 26px 12px; border: 1px solid var(--hair); border-left: 3px solid var(--sage); border-radius: 0 12px 12px 0; background: var(--panel); }
.legal-sum-h { font: 600 17px/1.2 var(--display) !important; font-stretch: 108%; color: var(--text) !important; margin-bottom: 12px !important; }
.legal-sum ul { margin-bottom: 0; }
.legal-sum li { color: var(--mist); }
.legal-toc { max-width: 70ch; margin: 0 0 18px; font-size: 15px; }
.legal-toc ol { list-style: none; padding: 0; columns: 2 240px; column-gap: 32px; }
.legal-toc li { margin: 0 0 6px; padding: 0; break-inside: avoid; }
.legal-toc a { color: var(--text-2); text-decoration: none; }
.legal-toc a:hover { color: var(--sage-light); text-decoration: underline; }
.legal-flag { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 13px; color: var(--canvas); background: var(--butter); }
.legal-table-wrap { max-width: 70ch; overflow-x: auto; margin: 6px 0 16px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 15px; color: var(--text-2); }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--hair); }
.legal-table th { color: var(--text); font-weight: 600; border-bottom-color: var(--field); }
/* the ANPC SAL badge (official image, white, so it sits on its own) */
.sal { margin: 14px 0 12px; }
.sal img { display: block; width: 201px; height: 50px; border-radius: 4px; }
.top-inner { display: flex; align-items: center; gap: 20px; width: 100%; }
.top-inner .brand img { width: 24px; height: auto; }
body:not(:has(.hero)) .top { background: var(--canvas); color: var(--text); border-bottom-color: var(--hair); }

/* ---------------- entrances (only with JavaScript; script.js adds .in when a block scrolls into view) ----------------
   2D moves (translateY): with translate3d every block still waiting to come in was its own graphics layer */
html.js .rise { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
html.js .rise.in { opacity: 1; transform: none; }
/* section titles: each word rises out of its mask */
html.js .rise-words .wi { transform: translateY(150%); transition: transform 1.05s var(--ease-out) calc(var(--d, 0s) + var(--i) * 45ms); }
html.js .rise-words.in .wi { transform: none; }

html.no-anim .rise, html.no-anim .rise-words .wi { opacity: 1; transform: none; transition: none; }
html.no-anim .vine { --p: 1 !important; }
html.no-anim .vine-item::before { background: var(--pastel); border-color: var(--pastel); transform: none; }
html.no-anim .vine-item > *, html.no-anim .step h3, html.no-anim .step p { opacity: 1 !important; transform: none !important; }
html.no-anim .path-line path { stroke-dashoffset: 0 !important; }
html.no-anim .step .node { background: var(--pastel); border-color: var(--pastel); transform: none; }
html.no-anim .quote [data-words] .wd { color: var(--text); transition: none; }
html.no-anim .price-panel .tier::before { transform: none; transition: none; }
html.no-anim .contact-art img { transform: none !important; }

/* ---------------- responsive ---------------- */
@media (max-width: 1080px) {
  .top:has(> .nav) { display: flex; }
  .nav { display: none; }
  .top-right { margin-left: auto; }
  .rail { display: none; }
}
@media (max-width: 860px) {
  .about, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .split > .sec-head { position: static; margin-bottom: 40px; }
  .steps-head { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .price-panel { grid-template-columns: minmax(0, 1fr); }
  .tier + .tier { border-left: 0; border-top: 1px solid var(--hair); }
  .tier:not(:has(.tier-tag)) { padding-top: 32px; }
  .work { grid-template-columns: minmax(0, 1fr); }
  .path-line { display: none; }
  .steps { margin: 0; grid-template-columns: minmax(0, 1fr); gap: 0; padding-left: 40px; position: relative; }
  .steps::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--flow), var(--sage)); }
  .step { position: relative; padding: 0 0 30px; }
  .step .node { top: 2px; left: -40px; }
  .about-photo { aspect-ratio: 16 / 10; }
  .contact-art::before { left: -6px; top: -6px; }
  .contact-art::after { right: -6px; bottom: -6px; }
  .quote:nth-of-type(even) blockquote { margin-left: 0; }
  .quote:nth-of-type(even) figcaption { justify-content: flex-start; }
  .quote:nth-of-type(even) p { text-align: left; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .top { gap: 12px; }
  .top-right .btn { display: none; }
  /* phones: the whole Solvra mark at the top, the text below it */
  .static-hero { background-image: url(media/harta-mobil.jpg?v=5); background-position: 50% var(--top); background-size: 100% auto; }
  /* the picture is 96.9vw tall: the fade must be complete before its bottom edge, or the edge shows as a line */
  .static-hero::before { background: linear-gradient(180deg, rgb(var(--canvas-rgb) / 0) 0, rgb(var(--canvas-rgb) / 0) calc(var(--top) + 60vw), var(--canvas) calc(var(--top) + 95vw)); }
  .static-in { padding-top: calc(var(--top) + 80vw); padding-bottom: 40px; max-width: none; }
  .static-in h1 { font-size: clamp(30px, 8.6vw, 40px); line-height: 1.12; }
  .static-in .lead { font-size: 17px; margin: 16px 0 22px; }
  /* the live clients over the phone picture (same crop of the film's last frame as harta-mobil.jpg: 845x820 px) */
  .static-hero { isolation: isolate; }
  html.js:not(.no-anim) .static-lights { display: block; position: absolute; left: 0; top: var(--top); width: 100%; aspect-ratio: 845 / 820; z-index: -1; pointer-events: none; }
  /* the journey on a phone: the drawn phone on top, the words under it */
  .j-stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); align-items: start; align-content: start; gap: 14px; padding-top: calc(var(--top) + 10px); }
  .j-device { order: -1; height: auto; gap: 10px; }
  .phone { --ph: min(47svh, 430px); }
  .j-glow { width: 110%; }
  .j-copy h2 { display: none; }
  .j-time { margin-bottom: 10px; font-size: 13.5px; }
  .j-step h3 { font-size: clamp(23px, 6.4vw, 30px); max-width: none; margin-bottom: 10px; }
  .j-text { font-size: 15.5px; }
  .j-cta { margin-top: 16px; }
  .j-bar { display: none; }
  .j-name { font-size: 12.5px; gap: 2px; }
  .j-name input { font-size: 14px; padding: 4px 0; }
  html.no-anim .j-device { position: static; }
  .clock-n { font-size: 110px; }
  .vine { padding-left: 52px; }
  .vine-item::before { left: -43px; }
  .vine::before, .vine::after { left: 17px; }
  .aside-cta { margin-left: 0; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; }
  .mobile-bar a { min-height: 50px; display: grid; place-items: center; border-radius: 10px; text-decoration: none; font: 600 15px/1 var(--display); font-stretch: 108%; }
  .mobile-bar a:first-child { background: var(--coral); color: var(--ink); }
  .mobile-bar a:last-child { background: var(--panel); border: 1px solid var(--field); color: var(--text); }
  /* a fade behind the bar, so the page does not show between the two buttons */
  .mobile-bar::before { content: ""; position: absolute; inset: -22px -12px -12px; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgb(var(--canvas-rgb) / 0), var(--canvas) 60%); }
  /* the bar waits below the screen while the hero's own buttons are in view (script.js adds bar-on after them) */
  html.js .mobile-bar { transform: translate3d(0, 150%, 0); transition: transform .5s var(--ease-out); }
  html.js.bar-on .mobile-bar { transform: none; }
}
