/* mophop.ro: page-local styles. The engine (scrollcraft.css) is untouched;
   this file themes it through tokens and styles our own markup. */

@font-face { font-family: "Outfit Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/outfit-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+20A0-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Outfit Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/outfit-latin-wght-normal.woff2) format("woff2-variations");
  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: "Inter Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/inter-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/inter-latin-wght-normal.woff2) format("woff2-variations");
  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 {
  --sc-canvas:     #f5f6f8;   /* the app's background */
  --sc-surface:    #ffffff;
  --sc-ink:        #1c2231;   /* the app's foreground, navy */
  --sc-ink-soft:   #525a6c;
  --sc-accent:     #ff5961;   /* brand coral, owns the actions and the moments */
  --sc-accent-ink: #1c2231;   /* white on coral is 2.8:1, navy is 5.6:1 */
  --sc-font-display: "Outfit Variable", system-ui, sans-serif;
  --sc-font-text:    "Inter Variable", system-ui, sans-serif;
  /* light ground: halved shadows tinted toward the canvas, white edge light */
  --sc-shadow-color: 224 24% 30%;
  --sc-e1: 0 1px 2px hsl(var(--sc-shadow-color) / 0.10), 0 1px 1px hsl(var(--sc-shadow-color) / 0.06);
  --sc-e2: 0 2px 4px hsl(var(--sc-shadow-color) / 0.08), 0 8px 18px -6px hsl(var(--sc-shadow-color) / 0.14);
  --sc-e3: 0 4px 8px hsl(var(--sc-shadow-color) / 0.07), 0 24px 48px -16px hsl(var(--sc-shadow-color) / 0.22);
  --sc-edge: inset 0 1px 0 rgb(255 255 255 / 0.9);
  --bar-h: 64px;
  --sage: #6f8f78;
}

body { font-optical-sizing: auto; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
.sc-display { font-weight: 600; }
.sc-display--md { font-size: clamp(1.85rem, 1.3rem + 2vw, 3rem); }

.when { color: var(--sc-ink-soft); font-weight: 500; }
/* a glyph, not an inline-block: no line break can fall between the dot and its word */
.when::before { content: "\2022"; color: var(--sc-accent); margin-right: 0.18em; }
.tag {
  position: absolute; top: var(--sc-4); right: var(--sc-4);
  font-size: var(--sc-t-xs); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--sc-ink-soft); background: var(--sc-canvas);
  padding: 0.2em 0.6em; border-radius: var(--sc-r-pill); z-index: 3;
}
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--sc-accent); }
.note { font-size: var(--sc-t-sm); color: var(--sc-ink-soft); max-width: 52ch; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--sc-surface); padding: 8px 12px; border-radius: var(--sc-r-sm); }
.skip:focus { left: 8px; }

/* ------------------------------------------------------------ buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0 1.4em; border-radius: var(--sc-r-pill);
  background: var(--sc-accent); color: var(--sc-accent-ink);
  font-weight: 650; text-decoration: none; white-space: nowrap;
  box-shadow: var(--sc-e1);
  transition: transform 120ms var(--sc-ease-out), background-color 160ms var(--sc-ease-out), box-shadow 160ms var(--sc-ease-out);
}
.btn--sm { min-height: 40px; padding: 0 1.1em; font-size: var(--sc-t-sm); }
.btn--ghost { background: transparent; color: var(--sc-ink); box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--sc-ink) 30%, transparent); }
.btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: #ff6d74; box-shadow: var(--sc-e2); }
  .btn--ghost:hover { background: color-mix(in oklab, var(--sc-ink) 6%, transparent); box-shadow: inset 0 0 0 1.5px var(--sc-ink); }
}
.link { color: var(--sc-ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--sc-accent); text-decoration-thickness: 2px; text-underline-offset: 0.3em; }

/* --------------------------------------------------- the bar and rail -- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: var(--sc-z-chrome);
  height: var(--bar-h); display: flex; align-items: center; gap: var(--sc-5);
  padding: 0 clamp(1rem, 2.4vw, 2rem);
  background: color-mix(in oklab, var(--sc-canvas) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 color-mix(in oklab, var(--sc-ink) 8%, transparent);
}
.bar__mark { flex-shrink: 0; }
.bar__mark img { height: 1.5rem; width: auto; }
.bar__actions { margin-left: auto; display: flex; align-items: center; gap: var(--sc-4); }
.bar__login, .bar__link { font-size: var(--sc-t-sm); font-weight: 600; color: var(--sc-ink); text-decoration: none; white-space: nowrap; }
.bar__login:hover, .bar__link:hover { text-decoration: underline; }
.bar__link[aria-current] { text-decoration: underline; text-decoration-color: var(--sc-accent); text-decoration-thickness: 2px; text-underline-offset: 0.35em; }
/* the language switcher stays visible on phones too */
.lang { display: flex; font-size: var(--sc-t-sm); font-weight: 600; }
.lang a { display: grid; place-items: center; min-width: 2em; min-height: 2.75em; color: var(--sc-ink-soft); text-decoration: none; }
.lang a:hover { color: var(--sc-ink); }
.lang a[aria-current] { color: var(--sc-ink); text-decoration: underline; text-decoration-color: var(--sc-accent); text-decoration-thickness: 2px; text-underline-offset: 0.35em; }

.rail { flex: 1; min-width: 0; display: flex; justify-content: center; }
.rail ol { display: flex; align-items: stretch; position: relative; }
.rail ol::before { /* the line the day runs along */
  content: ""; position: absolute; left: 12px; right: 12px; top: 9px; height: 1px;
  background: color-mix(in oklab, var(--sc-ink) 14%, transparent);
}
.rail li { position: relative; }
.rail a, .rail__next {
  display: grid; padding: 18px 12px 4px; text-decoration: none; color: var(--sc-ink-soft);
  font-size: 12px; line-height: 1.25; white-space: nowrap;
}
.rail a::before, .rail__next::before {
  content: ""; position: absolute; top: 5px; left: 12px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--sc-canvas); box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--sc-ink) 30%, transparent);
  transition: background-color 200ms var(--sc-ease-out), box-shadow 200ms var(--sc-ease-out), transform 200ms var(--sc-ease-out);
}
.rail__t { font-weight: 650; color: var(--sc-ink); font-variant-numeric: tabular-nums; }
.rail li.is-past a::before { background: var(--sc-ink); box-shadow: none; }
.rail li.is-now a::before { background: var(--sc-accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--sc-accent) 22%, transparent); transform: scale(1.1); }
.rail li.is-now a { color: var(--sc-ink); }
.rail a:hover .rail__w { color: var(--sc-ink); }
/* the cycle: at check-in the next booking lands at the start of the day */
.rail__next { display: none; color: var(--sc-ink); }
.rail__next::before { background: var(--sc-accent); box-shadow: none; }
.rail.is-cycled .rail__next { display: grid; animation: rail-in 420ms var(--sc-ease-out) both; }
.rail.is-cycled li:not(.rail__next) a::before { background: var(--sc-ink); box-shadow: none; transform: none; }
@keyframes rail-in { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- hero -- */
/* The scene is the plate's own 2752:1536 frame, covering the viewport. Every
   plane is positioned in that frame, so they stay registered at any size. */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 560px;
  overflow: clip; isolation: isolate; background: #eef0f2;
  --hp: 0; --mx: 0; --my: 0;
}
.hero__scene {
  --w: max(100vw, 179.17svh);
  position: absolute; top: 0; height: max(100svh, 55.81vw); width: var(--w);
  left: calc(50% - var(--w) / 2);
}
.plane { position: absolute; max-width: none; pointer-events: none; will-change: transform; }
.plane--far {
  /* only ever seen through the window hole in the room plane (73.7-96.2% x, 3.6-54.6% y) */
  left: 72%; top: -6%; width: 27%; height: auto; z-index: 1;
  transform: translate3d(calc(var(--mx) * -2%), calc(var(--hp) * 40% + var(--my) * -1%), 0);
}
.plane--room {
  inset: 0; width: 100%; height: 100%; z-index: 2;
  transform-origin: 60% 70%;
  transform: translate3d(calc(var(--mx) * -0.7%), calc(var(--hp) * 16% + var(--my) * -0.5%), 0) scale(calc(1.01 + var(--hp) * 0.07));
}
.plane--light {
  inset: 0; z-index: 3; mix-blend-mode: screen; opacity: calc(0.55 - var(--hp) * 0.3);
  background:
    radial-gradient(38% 52% at 85% 30%, rgb(255 250 238 / 0.85), transparent 70%),
    linear-gradient(115deg, transparent 52%, rgb(255 252 244 / 0.35) 64%, transparent 76%);
  transform: translate3d(calc(var(--mx) * -1%), calc(var(--hp) * 10%), 0);
}
.plane--jamb { top: 0; height: 100%; width: auto; z-index: 5; }
.plane--jamb-l {
  left: 0; transform-origin: 0 50%;
  transform: translate3d(calc(var(--mx) * -1.6% - var(--hp) * 140%), 0, 0) scale(calc(1 + var(--hp) * 0.3));
}
.plane--jamb-r {
  left: 92.32%; transform-origin: 100% 50%;
  transform: translate3d(calc(var(--mx) * -1.6% + var(--hp) * 140%), 0, 0) scale(calc(1 + var(--hp) * 0.3));
}
.hero__copy {
  position: absolute; z-index: 4; /* between the room and the door frame */
  left: max(var(--sc-gutter), 11vw); top: calc(var(--bar-h) + clamp(2rem, 11vh, 7.5rem));
  width: min(46rem, 50vw);
  opacity: calc(1 - var(--hp) * 1.4);
  transform: translate3d(0, calc(var(--hp) * -6vh), 0);
}
.hero__title { font-size: clamp(2.4rem, 1.2rem + 3.2vw, 4.5rem); line-height: 1.02; letter-spacing: -0.03em; text-wrap: balance; }
.hero::after { /* the floor fades into the page, so the plane clip line never shows */
  content: ""; position: absolute; inset: auto 0 0 0; height: 14vh; z-index: 6; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--sc-canvas));
}
.hero__sub { margin-top: var(--sc-5); font-size: var(--sc-t-lg); line-height: 1.5; color: var(--sc-ink-soft); max-width: 34ch; text-wrap: pretty; }
.hero__actions { margin-top: var(--sc-6); display: flex; align-items: center; gap: var(--sc-5); flex-wrap: wrap; }
.hero__login { display: none; margin-top: var(--sc-4); font-size: var(--sc-t-sm); color: var(--sc-ink-soft); }
.hero__login a { color: var(--sc-ink); font-weight: 600; }

/* ----------------------------------------------- shared moment layout -- */
.moment { scroll-margin-top: var(--bar-h); }
.booking__stage, .review__stage { display: grid; align-items: center; padding-top: var(--bar-h); }
/* a screen shorter than the copy + card: the stage grows instead of clipping the card,
   still sticky, so the card's last lines scroll in as the pin ends */
.booking__stage, .review__stage { height: auto; min-height: 100svh; overflow: visible; }
.booking__grid, .review__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 6vw, 6rem); align-items: center;
}
.booking__copy > * + *, .review__copy > * + * { margin-top: var(--sc-5); }
.facts { display: grid; gap: var(--sc-3); padding-top: var(--sc-2); }
.facts li { position: relative; padding-left: 1.4em; color: var(--sc-ink); max-width: 52ch; font-size: var(--sc-t-sm); }
.facts li::before { content: ""; position: absolute; left: 0.2em; top: 0.62em; width: 0.5em; height: 1.5px; background: var(--sc-accent); }

/* a raised surface: the calendar, the offer, the code, the proof */
.cal, .offer, .code, .proof, .list {
  position: relative; background: var(--sc-surface); border-radius: var(--sc-r-lg);
  box-shadow: var(--sc-e3), var(--sc-edge);
}
.cal { padding: var(--sc-6); }
.cal__head { display: flex; align-items: baseline; gap: var(--sc-3); padding-right: 6rem; }
.cal__prop { font-family: var(--sc-font-display); font-weight: 600; font-size: var(--sc-t-lg); line-height: 1.2; }
.cal__month { color: var(--sc-ink-soft); font-size: var(--sc-t-sm); }
.cal__week {
  position: relative; display: grid; grid-template-columns: repeat(7, 1fr);
  margin-top: var(--sc-5); padding-bottom: 5.2rem;
  border-top: 1px solid var(--sc-hairline); border-bottom: 1px solid var(--sc-hairline);
}
.cal__week span { padding: var(--sc-2) 0 0 var(--sc-2); font-size: var(--sc-t-xs); color: var(--sc-ink-soft); font-variant-numeric: tabular-nums; }
.cal__week span + span { border-left: 1px solid var(--sc-hairline); }
.cal__stay, .cal__job {
  position: absolute; height: 1.9rem; display: flex; align-items: center; padding: 0 0.7em;
  font-style: normal; font-size: var(--sc-t-xs); font-weight: 600; border-radius: var(--sc-r-sm); white-space: nowrap; overflow: hidden;
}
/* 14 → 17 oct: columns 2..4 and half of 5 (checkout at 11:00) */
.cal__stay { top: 2.1rem; left: calc(100% / 7 * 1 + 4px); width: calc(100% / 7 * 3.4 - 8px); background: color-mix(in oklab, var(--sc-ink) 9%, var(--sc-surface)); color: var(--sc-ink); }
.cal__job {
  top: 4.3rem; left: calc(100% / 7 * 4.3); width: calc(100% / 7 * 2.4);
  background: var(--sc-accent); color: var(--sc-accent-ink);
  opacity: clamp(0, (var(--sc-p) - 0.24) * 12, 1);
  transform: translateY(calc(clamp(0, (0.32 - var(--sc-p)) * 60, 6) * 1px));
}
.cal__log { margin-top: var(--sc-5); display: grid; gap: var(--sc-3); }
.cal__log li { display: flex; gap: var(--sc-3); font-size: var(--sc-t-sm); line-height: 1.45; }
.cal__log time { flex: none; width: 3.2em; color: var(--sc-ink-soft); font-variant-numeric: tabular-nums; }
.cal__log .is-aside { padding-left: calc(3.2em + var(--sc-3)); color: var(--sc-ink-soft); font-style: italic; }
.cal__log .is-ok { font-weight: 650; }
.cal__log .is-ok time { color: var(--sc-ink); }
.cal__log .is-ok::after { content: ""; flex: none; width: 1.1em; height: 1.1em; margin-left: auto; border-radius: 50%; background: var(--sc-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.5L12 5.6' fill='none' stroke='%231c2231' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat; }

/* -------------------------------------------- the offer, then accepted -- */
/* two steps side by side, each a text and a card; the cards line up at the bottom */
.duo__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); }
.duo__step { display: grid; grid-template-rows: 1fr auto; gap: var(--sc-6); }
.offer { padding: var(--sc-5) var(--sc-6) var(--sc-6); }
.offer__name { font-family: var(--sc-font-display); font-weight: 600; font-size: var(--sc-t-lg); line-height: 1.2; padding-right: 6rem; }
.offer__badges { margin-top: var(--sc-3); }
.offer__meta { margin-top: var(--sc-2); font-size: var(--sc-t-sm); color: var(--sc-ink-soft); }
.offer__line { margin-top: var(--sc-3); font-size: var(--sc-t-sm); }
.offer__actions { margin-top: var(--sc-5); display: flex; gap: var(--sc-3); }
.offer__actions .btn { pointer-events: none; }
.offer__log { margin-top: var(--sc-4); display: flex; align-items: center; gap: var(--sc-2); font-size: var(--sc-t-sm); color: var(--sc-ink-soft); }
.pill { display: inline-block; font-size: var(--sc-t-xs); font-weight: 600; padding: 0.2em 0.65em; border-radius: var(--sc-r-pill); box-shadow: inset 0 0 0 1px var(--sc-hairline-strong); }
.pill--ok { background: var(--sc-accent); color: var(--sc-accent-ink); box-shadow: none; } /* coral = on track, as in the app */

/* ------------------------------------------------------------ the code -- */
.code-act { padding-top: clamp(3rem, 6vw, 6rem); }
.code-act__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.code-act__grid > :is(.code, .pay) { order: -1; } /* booking and review put the card right; code and payment mirror them */
.code-act__copy > h2 + * { margin-top: var(--sc-6); }
.code { padding: var(--sc-7) var(--sc-6) var(--sc-6); }
.code__label { font-size: var(--sc-t-sm); color: var(--sc-ink-soft); font-weight: 600; }
.code__digits {
  position: relative; margin-top: var(--sc-4);
  font-family: var(--sc-font-display); font-weight: 600; font-variant-numeric: tabular-nums;
  font-size: clamp(4.2rem, 2rem + 8vw, 8.5rem); line-height: 1.12;
}
/* one cell per digit, so the wipe turns each dot into its own digit */
.code__mask, .code__real { display: grid; grid-template-columns: repeat(4, 0.72em); }
.code__mask i, .code__real i { font-style: normal; text-align: center; }
.code__mask { color: color-mix(in oklab, var(--sc-ink) 22%, transparent); }
.code__real { position: absolute; inset: 0 auto 0 0; background: var(--sc-surface); color: var(--sc-ink); padding-block: 0.05em; }
.code__log { margin-top: var(--sc-4); display: flex; align-items: center; gap: var(--sc-2); font-size: var(--sc-t-sm); color: var(--sc-ink-soft); }

/* ------------------------------------------------------------- the peak -- */
.peak__silence { top: calc(var(--bar-h) + clamp(2rem, 12vh, 8rem)); bottom: auto; left: max(var(--sc-gutter), 11vw); max-width: min(44rem, 46vw); }
.peak__silence > * + * { margin-top: var(--sc-4); }
/* steps 6, 7, 8 take turns in one card, top right over the window: the list holds the left, the bed stays clear */
.peak__step {
  top: calc(var(--bar-h) + clamp(1.5rem, 8vh, 5rem)); bottom: auto; left: auto; right: var(--sc-gutter);
  width: min(27rem, 38vw); max-width: none;
  padding: var(--sc-5) var(--sc-6); background: rgb(255 255 255 / 0.94); border-radius: var(--sc-r-lg); box-shadow: var(--sc-e3), var(--sc-edge);
}
.peak__step > * + * { margin-top: var(--sc-3); }
.peak__step h2 { font-family: var(--sc-font-display); font-weight: 600; font-size: var(--sc-t-xl); line-height: 1.15; letter-spacing: var(--sc-track-snug); text-wrap: balance; }
.peak__step p, .peak__step .facts li { font-size: var(--sc-t-sm); color: var(--sc-ink-soft); }
.peak__step .facts { gap: var(--sc-1); padding-top: 0; }
.peak__step .eyebrow, .peak__step .peak__kicker { color: var(--sc-ink); }
.peak__kicker { font-weight: 650; }
.list {
  position: absolute; z-index: var(--sc-z-copy);
  left: max(var(--sc-gutter), 11vw); top: calc(var(--bar-h) + clamp(1.5rem, 8vh, 5rem));
  width: min(23rem, 34vw); padding: var(--sc-5) var(--sc-5) var(--sc-4);
}
.list__head { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--sc-font-display); font-weight: 600; font-size: var(--sc-t-lg); }
.list__by { font-family: var(--sc-font-text); font-weight: 500; font-size: var(--sc-t-xs); color: var(--sc-ink-soft); }
.list ol { margin-top: var(--sc-4); display: grid; }
.list li {
  position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--sc-3);
  padding: 0.62rem 0 0.62rem 2.1rem; border-top: 1px solid var(--sc-hairline); font-size: var(--sc-t-sm);
  transition: color 200ms var(--sc-ease-out);
}
.list li::before { /* the box */
  content: ""; position: absolute; left: 0; top: 50%; width: 1.25rem; height: 1.25rem; margin-top: -0.625rem;
  border-radius: 6px; box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--sc-ink) 32%, transparent);
  transition: background-color 180ms var(--sc-ease-out), box-shadow 180ms var(--sc-ease-out), transform 180ms var(--sc-ease-out);
}
.list li::after { /* the tick */
  content: ""; position: absolute; left: 0.2rem; top: 50%; width: 0.85rem; height: 0.85rem; margin-top: -0.425rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.4l2.9 2.8L12.5 5' fill='none' stroke='%231c2231' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  clip-path: inset(0 100% 0 0); transition: clip-path 260ms var(--sc-ease-out);
}
.list li.is-done::before { background: var(--sc-accent); box-shadow: none; transform: scale(1.06); }
.list li.is-done::after { clip-path: inset(0 0 0 0); }
.list li.is-done { color: var(--sc-ink-soft); }
.shot {
  position: relative; width: 3.6rem; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden;
  background: color-mix(in oklab, var(--sc-ink) 8%, transparent);
  opacity: 0; transform: scale(0.92); transition: opacity 240ms var(--sc-ease-out), transform 240ms var(--sc-ease-out);
}
.shot canvas, .shot img, .proof__photo canvas, .proof__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot img, .proof__photo img { opacity: 1; }
.has-shot .shot canvas, .has-shot .proof__photo canvas { opacity: 1; }
.shot canvas, .proof__photo canvas { opacity: 0; z-index: 1; }
.list li.is-done .shot { opacity: 1; transform: none; }
.list__note { margin-top: var(--sc-3); font-size: var(--sc-t-xs); color: var(--sc-ink-soft); }
.flash { position: absolute; inset: 0; z-index: 15; background: #fff; opacity: 0; pointer-events: none; }
.flash.is-on { animation: flash 420ms var(--sc-ease-out); }
@keyframes flash { 0% { opacity: 0.75; } 100% { opacity: 0; } }

/* ------------------------------------------------------------ the proof -- */
.proof { padding: var(--sc-5); max-width: 30rem; justify-self: end; width: 100%; }
.proof__photo { position: relative; aspect-ratio: 4 / 3; border-radius: var(--sc-r-md); overflow: hidden; background: #e9ecef; }
.proof__stamp {
  position: absolute; z-index: 2; left: var(--sc-3); bottom: var(--sc-3);
  background: rgb(255 255 255 / 0.92); color: var(--sc-ink); font-size: var(--sc-t-xs); font-weight: 600;
  padding: 0.25em 0.6em; border-radius: var(--sc-r-pill);
}
.proof__line { margin-top: var(--sc-4); font-weight: 650; font-size: var(--sc-t-sm); }
.proof__line--soft { margin-top: var(--sc-2); font-weight: 500; color: var(--sc-ink-soft); }
.proof__clock { margin-top: var(--sc-3); height: 6px; border-radius: 3px; background: color-mix(in oklab, var(--sc-ink) 9%, transparent); overflow: hidden; }
.proof__clock i { display: block; height: 100%; background: var(--sage); transform-origin: 0 50%; transform: scaleX(calc(1 - clamp(0, var(--sc-p) * 1.4, 0.1))); }
.proof__actions { margin-top: var(--sc-4); display: flex; gap: var(--sc-3); flex-wrap: wrap; }
.proof__actions .btn { pointer-events: none; }
.proof__ok { transform: scale(calc(1 - clamp(0, (var(--sc-p) - 0.5) * 10, 1) * clamp(0, (0.62 - var(--sc-p)) * 10, 1) * 0.04)); }
.proof__paid { margin-top: var(--sc-4); display: flex; align-items: center; gap: var(--sc-2); font-weight: 650; }

/* ------------------------------------------------------------ the expert -- */
.expert { padding-block: clamp(4rem, 9vw, 9rem); }
.expert__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 7vw, 7rem); align-items: start; }
.expert__head { position: sticky; top: calc(var(--bar-h) + 2rem); }
.eyebrow { font-size: var(--sc-t-sm); font-weight: 650; color: var(--sc-ink); letter-spacing: 0.02em; }
/* the client's numbered steps: one label style on every scene */
.step { text-transform: uppercase; letter-spacing: 0.06em; }
.expert__head .eyebrow + h2, .step + h2 { margin-top: var(--sc-3); }
.expert__head .sc-lede { color: var(--sc-ink-soft); font-size: var(--sc-t-lg); line-height: 1.5; max-width: 34ch; }
.expert__head > .sc-lede, .expert__head > .sc-lede + p { margin-top: var(--sc-6); }
.expert__points > div { padding: var(--sc-6) 0; border-top: 1px solid var(--sc-hairline-strong); display: grid; grid-template-columns: minmax(9rem, 0.6fr) 1fr; gap: var(--sc-5); }
.expert__points > div:last-child { border-bottom: 1px solid var(--sc-hairline-strong); }
.expert__points dt { font-family: var(--sc-font-display); font-weight: 600; font-size: var(--sc-t-lg); line-height: 1.2; }
.expert__points dd { color: var(--sc-ink-soft); max-width: 46ch; }
.expert__actions { display: flex; align-items: center; gap: var(--sc-5); flex-wrap: wrap; }

/* ------------------------------------------------------------- the close -- */
/* dvh, not the engine's svh: the act is sized in vh (the large viewport), so an
   svh stage leaves bare canvas under the footer at page end once the URL bar hides */
.close__stage { display: grid; height: 100dvh; }
.close__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.close__panel {
  position: absolute; z-index: var(--sc-z-copy); right: var(--sc-gutter); top: calc(var(--bar-h) + clamp(2rem, 13vh, 8rem));
  width: min(36rem, 44vw);
}
.close__panel > * + * { margin-top: var(--sc-6); }
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sc-4); }
.door { padding: var(--sc-5); background: rgb(255 255 255 / 0.86); border-radius: var(--sc-r-lg); box-shadow: var(--sc-e2), var(--sc-edge); display: grid; gap: var(--sc-4); align-content: space-between; }
.door__q { font-weight: 600; line-height: 1.35; }
.door__more { display: block; width: fit-content; margin-top: var(--sc-1); font-size: var(--sc-t-xs); color: var(--sc-ink-soft); }
.close__small { font-size: var(--sc-t-base); color: var(--sc-ink); max-width: 44ch; text-wrap: balance; }
.close__small a { font-weight: 600; white-space: nowrap; }
.close__panel > h2 + .close__less, .close__less + .close__tag { margin-top: var(--sc-3); }
.close__less span { display: block; }
.close__tag { font-family: var(--sc-font-display); font-weight: 600; font-size: var(--sc-t-lg); line-height: 1.3; }
.foot {
  position: absolute; z-index: var(--sc-z-copy); left: 0; right: 0; bottom: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sc-2) var(--sc-5);
  padding: var(--sc-4) var(--sc-gutter); font-size: var(--sc-t-xs); color: var(--sc-ink);
  background: rgb(255 255 255 / 0.9); box-shadow: 0 -1px 0 var(--sc-hairline);
}
.foot__mark { height: 1rem; width: auto; }
.foot__links { display: flex; flex-wrap: wrap; gap: var(--sc-2) var(--sc-4); margin-left: auto; }
.foot a { color: var(--sc-ink); }

/* ------------------------------------------------------ other pages -- */
/* /preturi, /cum-functioneaza, /pentru-gazde, /pentru-experti: plain pages
   without the engine, sections of a head beside a body */
.pp { padding-top: var(--bar-h); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.pp-title { font-size: clamp(2.4rem, 1.2rem + 3.2vw, 4.5rem); line-height: 1.02; letter-spacing: -0.03em; max-width: 15ch; text-wrap: balance; }
.pp-lede { margin-top: var(--sc-5); font-size: var(--sc-t-lg); line-height: 1.5; color: var(--sc-ink-soft); max-width: 40ch; text-wrap: pretty; }

.pp-sec {
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 6rem); align-items: start;
  padding-block: clamp(3.5rem, 7vw, 6.5rem); border-top: 1px solid var(--sc-hairline-strong);
}
.pp-sec__head > * + * { margin-top: var(--sc-4); }
.pp-sec__head .eyebrow + h2 { margin-top: var(--sc-3); }
.pp-sec__head p:has(.btn) { margin-top: var(--sc-6); }

.includes { columns: 2 15rem; column-gap: var(--sc-7); }
.includes li { break-inside: avoid; position: relative; padding: 0.55rem 0 0.55rem 1.4em; border-bottom: 1px solid var(--sc-hairline); }
.includes li::before { content: ""; position: absolute; left: 0.2em; top: 1.2em; width: 0.5em; height: 1.5px; background: var(--sc-accent); }

.faq details { border-bottom: 1px solid var(--sc-hairline); }
.faq details:first-child { border-top: 1px solid var(--sc-hairline); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--sc-4);
  padding: var(--sc-4) 0; cursor: pointer; list-style: none; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 1.6rem; height: 1.6rem; display: grid; place-items: center; border-radius: 50%; background: var(--sc-surface); box-shadow: var(--sc-e1); font-weight: 500; transition: transform 200ms var(--sc-ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 2.5rem var(--sc-5) 0; color: var(--sc-ink-soft); max-width: 60ch; }

.pp-close { padding-block: clamp(4rem, 8vw, 7rem); border-top: 1px solid var(--sc-hairline-strong); }
.pp-close > * + * { margin-top: var(--sc-4); }
.pp-close h2 { max-width: 18ch; text-wrap: balance; }
.pp-close__actions { margin-top: var(--sc-6) !important; display: flex; align-items: center; gap: var(--sc-5); flex-wrap: wrap; }

/* the landing's footer sits on a photo; here it ends the page */
.pp .foot { position: static; background: none; box-shadow: 0 -1px 0 var(--sc-hairline-strong); max-width: var(--sc-maxw); margin-inline: auto; }
.foot a[aria-current] { font-weight: 650; }

/* --------------------------------------------------------------- phones -- */
@media (max-width: 1100px) {
  .rail__w { display: none; }
}
@media (min-width: 861px) and (max-width: 1000px) {
  .bar__login { display: none; } /* the bar's links fit on one row; the hero and the footer keep the login */
}
@media (max-width: 860px) {
  :root { --bar-h: 56px; }
  .bar { gap: var(--sc-3); }
  .bar__mark img { height: 1.3rem; }
  .bar__login, .bar__link { display: none; }
  /* the rail collapses to the moment you are in */
  .rail { justify-content: flex-start; }
  .rail ol::before { display: none; }
  .rail li { display: none; }
  .rail li.is-now { display: block; }
  .rail a { padding: 0 0 0 16px; font-size: 13px; display: flex; gap: 0.4em; align-items: center; }
  .rail a::before { top: 50%; left: 0; margin-top: -4.5px; }
  .rail .rail__w { display: inline; }
  .rail.is-cycled li { display: none; }
  .rail.is-cycled .rail__next { display: flex; gap: 0.4em; padding: 0 0 0 16px; font-size: 13px; align-items: center; }
  .rail.is-cycled .rail__next::before { top: 50%; left: 0; margin-top: -4.5px; }

  .hero__scene { --w: max(100vw, 179.17svh); left: calc(50% - var(--w) * 0.64); }
  .hero__copy { left: var(--sc-gutter); right: var(--sc-gutter); width: auto; top: calc(var(--bar-h) + 1.5rem); }
  .hero__title { font-size: clamp(2.15rem, 1.4rem + 4vw, 3rem); }
  .hero__sub { font-size: var(--sc-t-base); }
  .hero__copy::before { /* a wash where the copy sits, not over the room */
    content: ""; position: absolute; z-index: -1; inset: -2rem calc(var(--sc-gutter) * -1) -2.5rem;
    background: linear-gradient(to bottom, rgb(245 246 248 / 0.92) 0%, rgb(245 246 248 / 0.82) 70%, transparent 100%);
  }
  .plane--jamb-l { display: none; }

  .hero__login { display: block; }
  /* minmax(0, …): the calendar's min-content must not widen the column past a 360 px screen */
  .booking__grid, .review__grid, .code-act__grid, .expert__grid, .duo__grid { grid-template-columns: minmax(0, 1fr); gap: var(--sc-6); }
  .duo__grid { gap: var(--sc-8); }
  .code-act__grid > :is(.code, .pay) { order: 0; }
  .booking__stage, .review__stage { align-items: start; padding-top: calc(var(--bar-h) + 1rem); }
  .booking__copy .sc-body, .booking__copy .facts li:nth-child(n+2) { display: none; }
  .cal { padding: var(--sc-5); }
  .cal__week { padding-bottom: 4.6rem; }
  .cal__job { right: 4px; width: auto; padding: 0 0.5em; } /* "Curățenie 11:00" whole on a 360 px card */
  .review__copy .sc-body + .sc-body { display: none; }
  .proof { justify-self: stretch; max-width: none; }
  .proof__photo { aspect-ratio: 16 / 9; }

  /* phones: the clip owns the top of the screen and the list sits under it, so
     the bed (where the reset happens) is never behind the list */
  .peak .sc-stage .sc-stage__poster, .peak .sc-stage video[data-sc-scrub] { inset: 0 0 auto 0; height: 64%; object-position: 55% 50%; }
  .peak [data-sc-stage] { background: var(--sc-canvas); }
  .peak__silence { left: var(--sc-gutter); right: var(--sc-gutter); max-width: none; top: calc(64% + 1.5rem); }
  .list { left: var(--sc-gutter); right: var(--sc-gutter); width: auto; top: auto; bottom: 0.75rem; padding: var(--sc-3) var(--sc-4); }
  .list ol { margin-top: var(--sc-2); }
  .list li { padding-block: 0.36rem; font-size: 0.875rem; }
  .shot { width: 2.6rem; }
  .list__note { display: none; }
  .peak__step { left: var(--sc-gutter); right: var(--sc-gutter); width: auto; top: calc(var(--bar-h) + 1rem); padding: var(--sc-4) var(--sc-5); }
  /* the card sits on the clip: one line of body, so the bed stays in view */
  .peak__step h2 { font-size: 1.35rem; }
  .peak__step .peak__more { display: none; }
  .peak__step .facts { display: inline; }
  .peak__step .facts li { display: inline; padding: 0; max-width: none; }
  .peak__step .facts li::before { display: none; }

  .expert__head { position: static; }
  .expert__points > div { grid-template-columns: 1fr; gap: var(--sc-2); padding: var(--sc-5) 0; }

  .close__bg { object-position: 24% 50%; }
  /* panel and footer in flow at the bottom: on a short phone the stage grows and the
     heading stays under the bar instead of the panel running up behind it */
  .close__stage { height: auto; min-height: 100dvh; display: flex; flex-direction: column; padding-top: var(--bar-h); }
  .close__panel {
    position: relative; inset: auto; margin-top: auto; width: auto; padding: var(--sc-6) var(--sc-gutter) var(--sc-5);
    background: linear-gradient(to bottom, rgb(245 246 248 / 0) 0, rgb(245 246 248 / 0.94) 3.5rem);
  }
  .close .foot { position: relative; }
  .close__panel > * + * { margin-top: var(--sc-5); }
  .close__small { font-size: var(--sc-t-sm); }
  .close__less span { display: inline; }
  .doors { grid-template-columns: 1fr; gap: var(--sc-3); }
  .door { grid-template-columns: 1fr auto; align-items: center; padding: var(--sc-3) var(--sc-3) var(--sc-3) var(--sc-4); }
  .foot { gap: var(--sc-1) var(--sc-4); padding-block: var(--sc-3); }
  .foot > span:nth-child(2) { display: none; }
  .foot__links { margin-left: 0; }
  .close .foot__page { display: none; } /* the doors above link the role pages; the footer must stay two rows */

  .pp-sec { grid-template-columns: 1fr; }
  .faq details p { padding-right: 0; }
}
@media (max-width: 860px) and (max-height: 700px) {
  .peak .sc-stage .sc-stage__poster, .peak .sc-stage video[data-sc-scrub] { height: 58%; }
  .peak__silence { top: calc(58% + 1rem); }
  .list__head { font-size: 1rem; }
  .list li { padding-block: 0.24rem; font-size: 0.8125rem; }
  .list li::before { width: 1.05rem; height: 1.05rem; margin-top: -0.525rem; }
  .booking__copy .facts { display: none; } /* the 3-line heading pushed the calendar's last line off short phones */
  /* the proof card ran under the screen edge: heading + the Plată protejată note, a flatter photo */
  .review__copy .sc-body { display: none; }
  .review .proof__photo { aspect-ratio: 5 / 2; }
  .close__small { display: none; } /* keeps the grown close stage inside its pin; Prețuri is in the menu */
}
/* very short phones (an SE in Safari): the step card stays off the list, step 5 stays on screen */
@media (max-width: 860px) and (max-height: 600px) {
  .peak .sc-stage .sc-stage__poster, .peak .sc-stage video[data-sc-scrub] { height: 50%; }
  .peak__silence { top: calc(50% + 1rem); }
  .peak__step p, .peak__step .facts { display: none; }
}
/* landscape tablets and short laptops: the close panel and the proof card are
   taller than the stage, so the doors sit under the footer and the payout never shows */
@media (min-width: 861px) and (max-height: 800px) {
  .close__panel { top: calc(var(--bar-h) + var(--sc-5)); }
  .close__panel > * + * { margin-top: var(--sc-5); }
  .close__less span { display: inline; }
  .close__small { max-width: none; }
}
@media (min-width: 861px) and (max-height: 700px) {
  .close__panel { top: calc(var(--bar-h) + var(--sc-5)); width: min(36rem, 52vw); }
  .close__panel h2 { font-size: var(--sc-t-xl); }
  .close__panel > * + * { margin-top: var(--sc-5); }
  .doors { grid-template-columns: 1fr; gap: var(--sc-3); }
  .door { grid-template-columns: 1fr auto; align-items: center; padding: var(--sc-3) var(--sc-3) var(--sc-3) var(--sc-4); }
  .close .foot__page { display: none; } /* the doors link the role pages; the footer stays one row */
  .review .proof__photo { aspect-ratio: 2 / 1; } /* the pinned act only; the role pages scroll */
}
@media (min-width: 861px) and (max-height: 600px) {
  .close__small { display: none; } /* the doors ran into the footer; Prețuri stays in the bar */
}
@media (max-width: 560px) {
  /* a phone bar holds the mark, the language switcher and the button; the rail's moment has no room left */
  .rail li.is-now, .rail.is-cycled .rail__next { display: none; }
}
@media (max-width: 400px) {
  .bar__actions { gap: var(--sc-2); }
  .lang a { min-width: 1.6em; }
  .bar .btn--sm { padding: 0 0.9em; }
  .list__by { display: none; }
  .rail .rail__w { display: none; }
}

@media (max-width: 360px) {
  .bar__mark img { height: 1.1rem; }
  .bar__actions { gap: var(--sc-1); }
  .lang a { min-width: 0; padding-inline: 0.25em; }
}
@media (max-width: 340px) {
  .bar__mark img { height: 1rem; }
  /* four languages (HU RO EN DE) + the button on a 320 px phone */
  .lang a { padding-inline: 0.1em; }
  .bar .btn--sm { padding: 0 0.6em; }
}

/* ------------------------------------------------------- reduced motion -- */
@media (prefers-reduced-motion: reduce) {
  .hero { --hp: 0 !important; --mx: 0 !important; --my: 0 !important; }
  .plane, .hero__copy { transform: none !important; }
  .hero__copy { opacity: 1 !important; }
  .list li::before { background: var(--sc-accent); box-shadow: none; }
  .list li::after { clip-path: none; }
  .list li { color: var(--sc-ink-soft); }
  .shot { opacity: 1; transform: none; }
  .cal__job { opacity: 1; transform: none; }
  .rail__next, .flash { animation: none !important; }
}

/* a keyboard user must never land on a link that has not faded in yet */
[data-sc-in]:focus-within, [data-sc-stagger] > :focus-within { opacity: 1 !important; transform: none !important; }
