/* Studio Hasak — an indigo-to-blue field, light Apple-grey pages, one green action. */

:root {
  --ground: #f5f5f7;
  --surface: #ffffff;
  --ink: #1d1d1f;
  --muted: #6a6a70;
  --on-deep: #ffffff;
  --on-deep-soft: rgba(255, 255, 255, 0.78);
  --line: rgba(255, 255, 255, 0.16);
  --blue: #2f5bea;
  --green-ink: #0c2b10;

  --deep: linear-gradient(180deg, #1b1560 0%, #2c1a7c 38%, #32309b 66%, #3f68c8 100%);
  --deep-flat: linear-gradient(160deg, #2a1a7a 0%, #3340a8 100%);
  --green: linear-gradient(90deg, #3ddc5a 0%, #b7ec3c 100%);

  --font-text: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-display: var(--font-text);

  --step-small: 0.875rem;
  --step-body: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --step-title: clamp(1.625rem, 1.3rem + 1vw, 2.25rem);
  --step-head: clamp(2.5rem, 1.4rem + 3.6vw, 4.5rem);

  --m: clamp(20px, 3.4vw, 64px);
  --gap: clamp(16px, 1.6vw, 24px);
  --section: clamp(96px, 11vw, 160px);
  --r: 28px;
  --r-s: 16px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; overflow-x: clip; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--font-text); font-size: var(--step-body); line-height: 1.5;
  font-optical-sizing: auto; -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg, canvas { display: block; }
h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; text-underline-offset: 0.2em; transition: color 180ms ease, opacity 180ms ease; }
:focus-visible { outline: 2px solid #7dff4f; outline-offset: 3px; }
main :focus-visible { outline-color: var(--blue); }
.hero :focus-visible, .contact :focus-visible { outline-color: #7dff4f; }
::selection { background: #b7ec3c; color: var(--green-ink); }
.skip { position: fixed; left: 12px; top: -80px; z-index: 60; padding: 12px 18px; border-radius: 12px; background: #fff; color: var(--ink); font-weight: 600; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* large type: tight; size-specific tracking */
h1, .serv-title, .process-title, .clause h3, .pricing h2, .faq h2, .contact-prompt, .foot-name, .serv-name {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 58px; padding: 0 34px; border: 0; border-radius: 999px;
  background: var(--green); color: var(--green-ink);
  font: 600 var(--step-body)/1 var(--font-text); letter-spacing: -0.01em; text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 30px -10px rgba(90, 225, 80, 0.55);
  transition: transform 160ms var(--ease-out), box-shadow 200ms ease, filter 200ms ease;
}
.btn:active { transform: scale(0.97); transition-duration: 100ms; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { filter: brightness(1.05); box-shadow: 0 14px 36px -10px rgba(90, 225, 80, 0.75); }
}

/* ---------- top bar and nav ---------- */
.topbar {
  position: absolute; inset: 0 0 auto 0; z-index: 30; height: 40px;
  display: flex; align-items: center; justify-content: center; gap: clamp(20px, 4vw, 72px);
  background: rgba(16, 12, 72, 0.5); color: var(--on-deep-soft); font-size: 0.8125rem;
}
.topbar span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.topbar svg { width: 16px; height: 16px; }

.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 40; height: 64px;
  display: flex; align-items: center; gap: 28px; padding: 0 var(--m); color: #fff;
  background: rgba(36, 28, 120, 0.9);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  transition: transform 260ms var(--ease-out), background-color 260ms ease;
}
.bar.is-top { transform: translateY(44px); background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.02em; font-size: 1.125rem; text-decoration: none; }
.wordmark i { width: 14px; height: 14px; border-radius: 4px; background: var(--green); }
#nav { display: flex; gap: 30px; margin-right: auto; padding-left: 26px; font-size: 0.9375rem; }
#nav a { text-decoration: none; color: var(--on-deep-soft); }
.bar-cta { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.9375rem; text-decoration: none; }
.bar-cta svg { transition: transform 200ms var(--ease-out); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: #fff; cursor: pointer; place-items: center; }
.menu-btn:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) {
  #nav a:hover { color: #fff; }
  .bar-cta:hover svg { transform: translateX(3px); }
  .foot a:hover, .contact-rows a:hover { opacity: 0.75; }
}

/* ---------- hero ---------- */
.hero { background: var(--deep); color: var(--on-deep); }
.hero .scene-stage {
  min-height: 100svh; padding: 128px var(--m) 20px;
  display: flex; flex-direction: column; gap: 20px; background: var(--deep);
}
.hero-main {
  flex: 1; min-height: 0;
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr) auto; gap: var(--gap); align-items: center;
}
.hero-copy { display: grid; gap: clamp(14px, 2.2svh, 24px); justify-items: start; }
.eyebrow { display: flex; align-items: center; gap: 12px; color: #6ff07c; font-weight: 500; }
h1 { font-size: min(7vw, 13.5svh); font-weight: 800; line-height: 0.98; letter-spacing: -0.04em; }
.hero-copy .lead { font-size: var(--step-lead); line-height: 1.32; letter-spacing: -0.012em; max-width: 27em; color: var(--on-deep-soft); }
.perks {
  width: min(100%, 560px); margin-top: 8px;
  display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--r-s);
}
.perks li { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: clamp(52px, 7.6svh, 72px); padding: 0 12px; font-size: 0.9375rem; color: var(--on-deep-soft); }
.perks li:nth-child(odd) { border-right: 1px solid var(--line); }
.perks li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

.device-zone { position: relative; height: 100%; min-height: 420px; display: grid; place-items: center; perspective: 1500px; }
.back-window {
  position: absolute; left: -2%; right: 14%; top: 24%; aspect-ratio: 16 / 10;
  border-radius: 14px; overflow: hidden; background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.bw-top { height: 22px; display: flex; align-items: center; gap: 5px; padding: 0 10px; background: rgba(255, 255, 255, 0.12); }
.bw-top i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.5); }
.bw-body { position: relative; padding: 7% 7%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bw-body b { grid-column: 1 / span 2; height: 12px; border-radius: 6px; background: rgba(255, 255, 255, 0.55); }
.bw-body b + b { grid-column: 1 / span 1; }
.bw-body span { grid-column: 1 / -1; height: 18px; width: 30%; border-radius: 9px; background: #7dff4f; }
.bw-body em { height: 54px; border-radius: 8px; background: rgba(255, 255, 255, 0.2); }

.device {
  position: relative; height: min(100%, 58svh, 42vw); aspect-ratio: 9 / 19; padding: 1.6%;
  border-radius: 13% / 6.2%; background: #15152e;
  box-shadow: 0 0 0 2px #8e93b4, 7px 9px 0 1px #5f6488, 34px 44px 70px -18px rgba(6, 4, 50, 0.65);
  transform: rotateZ(13deg) rotateY(-20deg) rotateX(8deg);
  transform-style: preserve-3d; will-change: transform; touch-action: pan-y;
}
.device-screen {
  position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 11.5% / 5.4%;
  background:
    radial-gradient(90% 55% at 88% 12%, #ff5fd2 0%, transparent 62%),
    radial-gradient(90% 50% at 12% 40%, #ff8a3c 0%, transparent 60%),
    radial-gradient(80% 45% at 80% 62%, #2a3bff 0%, transparent 65%),
    radial-gradient(90% 50% at 30% 100%, #17b6c9 0%, transparent 62%),
    #4b1fa8;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.device-notch { position: absolute; left: 50%; top: 2.2%; width: 32%; height: 3.4%; transform: translateX(-50%); border-radius: 99px; background: #0b0b1c; }

.hotspot { position: absolute; left: calc(50% + 6.5vw); top: 13%; display: flex; align-items: center; pointer-events: none; }
.hotspot i {
  position: relative; flex: none; width: 14px; height: 14px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.28);
  animation: hot-pulse 2.6s var(--ease-out) infinite;
}
.hotspot span { display: block; margin-left: 72px; font-size: var(--step-body); font-weight: 500; letter-spacing: -0.012em; white-space: nowrap; }
@keyframes hot-pulse { 0%, 100% { box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.28); } 50% { box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.1); } }

.rail { display: grid; gap: 12px; }
.rail button {
  width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; cursor: pointer;
  background: rgba(255, 255, 255, 0.07); color: #fff; border: 1px solid var(--line);
  transition: transform 120ms var(--ease-out), border-color 200ms ease, background-color 200ms ease;
}
.rail svg { width: 24px; height: 24px; }
.rail button:active { transform: scale(0.94); }
.rail button.is-active { border: 2px solid #5fe873; background: rgba(95, 232, 115, 0.14); }
@media (hover: hover) and (pointer: fine) { .rail button:hover { background: rgba(255, 255, 255, 0.15); } }

.scene-serv, .serv-pin { display: none; }
.hero.is-live .serv-pin { display: block; position: absolute; top: calc(var(--hold, 2) * 37svh + 72px); }
.hero.is-live .scene-serv { display: block; position: absolute; left: var(--m); top: 50%; transform: translateY(-50%); width: 33vw; opacity: 0; visibility: hidden; }
.scene-serv h2 { font-size: var(--step-title); font-weight: 600; letter-spacing: -0.022em; line-height: 1.15; color: var(--on-deep-soft); margin-bottom: 18px; }
.scene-serv ul { display: grid; }
.scene-serv li { grid-area: 1 / 1; opacity: 0; translate: 0 14px; visibility: hidden; transition: opacity 240ms ease, translate 360ms var(--ease-out), visibility 240ms; }
.scene-serv li.is-active { opacity: 1; translate: 0 0; visibility: inherit; }
.scene-serv h3 { font-size: clamp(44px, 5.2vw, 84px); font-weight: 700; line-height: 1.02; letter-spacing: -0.035em; color: #fff; margin-bottom: 16px; }
.scene-serv p { font-size: var(--step-lead); line-height: 1.32; letter-spacing: -0.012em; color: var(--on-deep-soft); }
html:has(.hero.is-live) .serv { display: none; }

.steps {
  flex: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap);
  padding: 16px 28px; border-radius: 22px; counter-reset: s;
  background: rgba(255, 255, 255, 0.09); box-shadow: inset 0 0 0 1px var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(120%); backdrop-filter: blur(18px) saturate(120%);
}
.steps li { display: flex; align-items: center; gap: 16px; font-size: 0.9375rem; line-height: 1.35; }
.steps b { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34); font-weight: 500; font-variant-numeric: tabular-nums; }
.steps a { font-weight: 600; text-underline-offset: 3px; }
@media (max-height: 760px) and (min-width: 768px) { .steps { display: none; } }

/* ---------- services ---------- */
.serv { padding: var(--section) var(--m) 0; }
.serv-title { font-size: var(--step-head); margin-bottom: 56px; }
.serv-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); }
.serv-list { grid-column: 1 / 7; }
.serv-item { min-height: 30svh; padding-bottom: 36px; display: grid; align-content: start; gap: 10px; }
.serv-item:last-child { min-height: 44svh; }
.serv-name {
  font-size: clamp(40px, 5.4vw, 84px); background: none; border: 0; padding: 4px 0; margin: 0; cursor: pointer; text-align: left;
  color: #86868b; justify-self: start;
  transition: color 200ms ease, transform 120ms var(--ease-out);
}
.serv-name:active { transform: scale(0.98); }
.serv-item.is-active .serv-name { color: var(--ink); }
.serv-desc { max-width: 31rem; color: var(--muted); }
.serv-item.is-active .serv-desc { color: var(--ink); }
.serv-frame {
  grid-column: 7 / 13; position: sticky; top: 92px; align-self: start; height: min(78svh, 46vw);
  border-radius: var(--r); background: var(--deep-flat); overflow: hidden; touch-action: pan-y;
}
.serv-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ---------- process ---------- */
.process { margin-top: var(--section); background: var(--surface); }
.process .scene-stage { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); }
.process-text { padding: 120px var(--m); }
.process-title { font-size: var(--step-title); color: var(--muted); font-weight: 600; letter-spacing: -0.022em; margin-bottom: 40px; }
.clauses { display: grid; gap: 56px; }
.clause h3 { font-size: clamp(40px, 4.8vw, 76px); margin-bottom: 20px; }
.clause p { max-width: 30rem; }
.process-figure { background: var(--deep-flat); display: grid; place-items: center; padding: 96px var(--m); }
.build { position: relative; width: min(38vw, 560px); border-radius: 14px; overflow: hidden; background: #fff; color: var(--ink); box-shadow: 0 40px 80px -30px rgba(8, 6, 60, 0.7); }
.build-top { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; background: #eeeef2; font-size: 13px; color: #55555b; }
.build-top i { width: 10px; height: 10px; border-radius: 50%; background: #d1d1d8; }
.build-top i:nth-child(1) { background: #ff6b5e; } .build-top i:nth-child(2) { background: #ffbe3d; } .build-top i:nth-child(3) { background: #3fcc58; }
.build-top span { margin-left: 12px; }
.build-body { position: relative; aspect-ratio: 4 / 4.4; overflow: hidden; }
.b-notes, .b-wire, .b-site { position: absolute; inset: 0; }
.b-notes { padding: 28px; display: grid; align-content: start; gap: 4px; font-size: 15px; }
.b-q { color: #6a6a70; margin-top: 14px; }
.b-q:first-child { margin-top: 0; }
.b-a { font-size: 19px; font-weight: 600; letter-spacing: -0.012em; }
.b-wire span { position: absolute; border-radius: 6px; background: #e8e8ee; }
.w-nav { left: 6%; right: 6%; top: 5%; height: 4%; }
.w-h { left: 6%; width: 64%; top: 16%; height: 7%; }
.w-h2 { top: 25%; width: 44%; }
.w-btn { left: 6%; top: 36%; width: 24%; height: 6%; background: #c4f3b5 !important; }
.w-img { left: 6%; right: 6%; top: 47%; height: 26%; }
.w-col { top: 77%; height: 18%; width: 27%; }
.w-col:nth-of-type(6) { left: 6%; } .w-col:nth-of-type(7) { left: 36.5%; } .w-col:nth-of-type(8) { left: 67%; }
.b-site { background: #fff; }
.b-page { height: 168%; display: flex; flex-direction: column; color: var(--ink); font-size: 13px; }
.p-nav { display: flex; gap: 14px; align-items: center; padding: 10% 7% 3%; flex: none; }
.p-nav b { margin-right: auto; font-weight: 700; }
.p-hero { flex: 3; background: var(--deep-flat); color: #fff; padding: 7%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; }
.p-hero p { font-size: 20px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
.p-hero span { background: var(--green); color: var(--green-ink); padding: 9px 16px; border-radius: 99px; font-weight: 600; }
.p-cols { flex: 1.4; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; padding: 6% 7%; }
.p-cols i { border-radius: 10px; background: #ff9a6b; }
.p-cols i:nth-child(2) { background: #7fd4ff; }
.p-cols i:nth-child(3) { background: #c9d4ff; }
.p-band { flex: 1; background: #f5f5f7; padding: 0 7%; display: flex; align-items: center; font-size: 16px; font-weight: 600; }
.p-lines { flex: 1; padding: 6% 7%; display: grid; gap: 8px; align-content: center; }
.p-lines i { height: 8px; border-radius: 4px; background: #e2e2e8; }
.p-lines i:nth-child(2) { width: 80%; } .p-lines i:nth-child(3) { width: 56%; }
.p-foot { flex: none; padding: 5% 7%; background: #eeeef2; }
.b-admin {
  position: absolute; left: 0; right: 0; top: 36px; height: 34px;
  display: flex; align-items: center; gap: 16px; padding: 0 14px;
  background: #1f2a6e; color: #fff; font-size: 13px;
}
.b-admin b { font-weight: 600; }
.b-admin span { color: rgba(255, 255, 255, 0.72); }
.b-toast { position: absolute; right: 14px; bottom: 14px; padding: 12px 16px; border-radius: 12px; background: #1f2a6e; color: #fff; font-size: 14px; box-shadow: 0 10px 24px -8px rgba(8, 6, 60, 0.6); }
.process-track { display: none; }

.process.is-live .process-text { position: relative; padding-bottom: 120px; display: flex; flex-direction: column; justify-content: center; }
.process.is-live .process-title { position: absolute; top: 104px; left: var(--m); }
.process.is-live .clauses { display: block; position: relative; min-height: 20rem; }
.process.is-live .clause { position: absolute; left: 0; top: 0; right: 0; }
.process.is-live .process-track { display: block; position: absolute; left: var(--m); width: calc(50% - var(--m) * 2); bottom: 40px; }
.track { height: 6px; border-radius: 3px; overflow: hidden; background: #e4e4ea; }
.track-fill { display: block; height: 100%; background: var(--blue); transform-origin: 0 50%; transform: scaleX(0); }
.track-names { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 14px; font-size: var(--step-small); color: var(--muted); }
.track-names li { transition: color 200ms ease; }
.process[data-beat="0"] .track-names li:nth-child(1),
.process[data-beat="1"] .track-names li:nth-child(2),
.process[data-beat="2"] .track-names li:nth-child(3),
.process[data-beat="3"] .track-names li:nth-child(4) { color: var(--ink); font-weight: 600; }

/* ---------- pricing ---------- */
.pricing { padding: var(--section) var(--m) 0; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); }
.pricing-side { grid-column: 1 / 5; position: sticky; top: 92px; align-self: start; }
.pricing h2 { font-size: var(--step-head); margin-bottom: 32px; }
.sheets-card { }
.sheets { position: relative; aspect-ratio: 1 / 1.08; border-radius: var(--r); background: var(--deep-flat); padding: 12%; }
.sheets i, .s-page { position: absolute; left: 14%; bottom: 12%; width: 58%; aspect-ratio: 3 / 4; border-radius: 10px; }
.sheets i {
  background: #c9d4ff; opacity: 0;
  transform: translate(calc((var(--i) + 1) * 2.4%), calc((var(--i) + 1) * -2%));
  transform-origin: 0 100%;
  transition: opacity 160ms ease, transform 200ms var(--ease-out), visibility 160ms;
  filter: brightness(calc(0.96 - var(--i) * 0.05));
  z-index: calc(20 - var(--i));
}
.sheets i:not(.on) { visibility: hidden; transform: translate(calc((var(--i) + 1) * 2.4%), calc((var(--i) + 1) * -2% + 12px)); }
.sheets i.on { opacity: 1; }
.s-page { background: #fff; z-index: 30; display: block; overflow: hidden; }
.s-page::before { content: ""; position: absolute; left: 8%; right: 8%; top: 26%; height: 34%; border-radius: 6px; background: #eceef8; }
.s-page::after { content: ""; position: absolute; left: 8%; right: 18%; top: 66%; height: 6px; border-radius: 3px; background: #eceef8; }
.s-page span { position: absolute; opacity: 0; transform: scale(0.94); transition: opacity 160ms ease, transform 200ms var(--ease-out); }
.s-logo { left: 8%; top: 6%; font: 800 clamp(20px, 2.4vw, 34px)/1 var(--font-display); color: var(--ink); letter-spacing: -0.04em; }
.s-foto { left: 8%; right: 8%; top: 26%; height: 34%; border-radius: 6px; background: var(--deep-flat); }
.s-text { left: 8%; right: 18%; top: 66%; height: 6px; border-radius: 3px; background: #b4b4bc; }
.s-text::before, .s-text::after { content: ""; position: absolute; left: 0; height: 6px; border-radius: 3px; background: #b4b4bc; }
.s-text::before { top: 14px; right: 0; } .s-text::after { top: 28px; right: 34%; }
.s-keep { right: 8%; top: 7%; width: 18%; aspect-ratio: 1; border-radius: 50%; background: var(--green); }
.has-logo .s-logo, .has-foto .s-foto, .has-texty .s-text, .has-udrzba .s-keep { opacity: 1; transform: none; }

.pricing-main { grid-column: 5 / 13; }
.menu { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.menu-group { background: var(--surface); border-radius: var(--r); padding: clamp(24px, 2.8vw, 40px); }
.menu h3 { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.018em; margin-bottom: 24px; }
.menu dl { display: grid; gap: 20px; }
.row { display: flex; justify-content: space-between; gap: 20px; font-size: var(--step-body); font-weight: 500; font-variant-numeric: tabular-nums; }
.row dt small { display: block; font-size: var(--step-small); font-weight: 400; color: var(--muted); margin-top: 2px; }
.row dd { white-space: nowrap; }

.estimate { margin-top: var(--gap); background: var(--surface); border-radius: var(--r); padding: clamp(24px, 2.8vw, 40px); }
.estimate h3 { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.018em; margin-bottom: 28px; }
.est-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.est-range { display: grid; gap: 14px; }
.est-range span { display: flex; justify-content: space-between; }
.est-range output { font-variant-numeric: tabular-nums; font-weight: 600; }
.rwrap { position: relative; display: block !important; height: 40px; }
.rwrap::before { content: ""; position: absolute; left: 0; right: 0; top: 17px; height: 6px; border-radius: 3px; background: #e4e4ea; }
.rfill { position: absolute; left: 0; right: 0; top: 17px; height: 6px; border-radius: 3px; background: var(--blue); transform-origin: 0 50%; transform: scaleX(var(--f, 0.2)); }
.rwrap input { position: relative; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 40px; background: transparent; margin: 0; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; background: transparent; }
input[type="range"]::-moz-range-track { height: 6px; background: transparent; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -12px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.16), 0 0 0 0.5px rgba(0, 0, 0, 0.06); transition: transform 120ms var(--ease-out); }
input[type="range"]::-moz-range-thumb { width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.16); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.08); }
.est-extras { border: 0; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.est-extras legend { padding: 0; margin-bottom: 12px; }
.est-extras label {
  display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; border-radius: 12px;
  background: var(--ground); cursor: pointer; transition: background-color 200ms ease, transform 120ms var(--ease-out);
}
.est-extras label:active { transform: scale(0.98); }
.est-extras input { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; margin: 0; border-radius: 50%; background: #d8d8de; display: grid; place-items: center; flex: none; cursor: pointer; transition: background-color 160ms ease; }
.est-extras input::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #fff; transform: scale(0.4); opacity: 0; transition: transform 160ms var(--ease-out), opacity 120ms ease; }
.est-extras input:checked { background: var(--blue); }
.est-extras input:checked::after { transform: scale(1); opacity: 1; }
.est-extras label:has(input:checked) { background: #e7ecfd; }
.est-price { font-size: var(--step-lead); font-weight: 500; }
.est-price strong { font-weight: 700; font-size: clamp(60px, 6.4vw, 96px); line-height: 1; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.est-time { margin-top: 12px; font-weight: 500; }
.est-note { color: var(--muted); margin: 4px 0 24px; }

/* ---------- faq ---------- */
.faq { padding: var(--section) var(--m) 0; display: grid; gap: 12px; }
.qa-head { margin-bottom: 28px; }
.faq h2 { font-size: var(--step-head); }
.qa:not(.qa-head) {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: baseline;
  padding: clamp(24px, 2.6vw, 36px) clamp(24px, 2.8vw, 40px); border-radius: 22px; background: var(--surface);
}
.qa h3 { grid-column: 1 / 7; font-size: var(--step-title); font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; max-width: 20ch; }
.qa p { grid-column: 7 / 13; }

/* ---------- contact ---------- */
.contact { margin: var(--section) var(--m) 0; padding: clamp(64px, 9vw, 120px) clamp(24px, 6vw, 80px); border-radius: var(--r); background: var(--deep-flat); color: #fff; }
.contact > * { max-width: 640px; margin-left: auto; margin-right: auto; }
.contact-kicker { font-size: var(--step-lead); letter-spacing: -0.012em; color: var(--on-deep-soft); margin-bottom: 12px; }
.contact-prompt { font-size: var(--step-head); }
.contact-form { margin-top: 32px; display: grid; gap: 20px; justify-items: start; }
.cf-grid { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cf-grid label { display: grid; gap: 6px; font-size: var(--step-small); font-weight: 500; }
.cf-wide { grid-column: 1 / -1; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 15px 18px; border: 0; border-radius: var(--r-s);
  background: #fff; color: var(--ink); font: 400 1.0625rem/1.45 var(--font-text);
}
.contact-form textarea { display: block; resize: vertical; min-height: 148px; }
.contact-form ::placeholder { color: #6a6a70; }
.contact-form input:focus, .contact-form textarea:focus { outline: 3px solid #7dff4f; outline-offset: 2px; }
.contact-form [aria-invalid="true"] { outline: 3px solid #ffb3a8; outline-offset: 2px; }
.cf-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn[disabled] { opacity: 0.7; cursor: default; }
.cf-status { font-weight: 500; }
.cf-status:empty { display: none; }
.cf-status a { color: inherit; }
.contact-help { margin-top: 16px; font-size: var(--step-small); color: var(--on-deep-soft); }
.contact-help a { color: #fff; }
.contact-rows { margin-top: 48px; display: grid; gap: 10px; }
.contact-rows div { display: grid; grid-template-columns: 7rem 1fr; gap: 16px; }
.contact-rows dt { color: var(--on-deep-soft); }

/* ---------- footer ---------- */
.foot { position: relative; margin-top: var(--section); height: 100svh; min-height: 620px; overflow: hidden; background: var(--deep); color: #fff; }
.foot-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.foot-top { position: relative; display: flex; justify-content: space-between; gap: 32px; padding: 32px var(--m); font-size: 0.9375rem; }
.foot-top nav { display: flex; gap: 24px; flex-wrap: wrap; }
.foot-top nav a { text-decoration: none; }
.foot-top address { font-style: normal; text-align: right; color: var(--on-deep-soft); }
.foot-bottom { position: absolute; left: var(--m); right: var(--m); bottom: 24px; }
.foot-name { font-size: 15vw; line-height: 1; font-weight: 800; letter-spacing: -0.05em; white-space: nowrap; }
.foot-name-text { display: inline-block; }
.foot-legal { margin-top: 12px; font-size: var(--step-small); color: var(--on-deep-soft); }

/* ---------- entrances ---------- */
html.motion .reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: var(--d, 0ms); }
html.motion .reveal.in { opacity: 1; transform: none; }

@media (max-width: 1360px) {
  .hotspot span { white-space: normal; max-width: 6.5em; margin-left: 40px; line-height: 1.25; }
}

/* ---------- tablet ---------- */
@media (max-width: 1023px) {
  #nav { display: none; }
  .bar-cta { margin-left: auto; }
  .menu-btn { display: grid; }
  .bar.is-open #nav {
    display: grid; gap: 4px; position: absolute; left: 12px; right: 12px; top: calc(100% + 8px); padding: 12px;
    border-radius: 20px; background: #2a1f85; transform-origin: 90% 0; font-size: 1.0625rem;
  }
  .bar.is-open #nav a { padding: 12px; color: #fff; }
  .hotspot { left: 54%; }
  .hotspot span { white-space: normal; max-width: 8em; margin-left: 30px; font-size: 0.9375rem; }
  .menu { grid-template-columns: 1fr; }
  .est-grid { grid-template-columns: 1fr; }
  .est-result { order: -1; }
  .qa h3 { grid-column: 1 / 6; }
  .qa p { grid-column: 6 / 13; }
}

/* ---------- phone ---------- */
@media (max-width: 767px) {
  :root { --section: 80px; --r: 24px; }
  .topbar { justify-content: space-between; padding: 0 var(--m); gap: 12px; font-size: 0.75rem; }
  .topbar .topbar-form { display: none; }
  .topbar span { font-size: 0; gap: 6px; }
  .topbar a { font-size: 0.8125rem; }
  .bar { gap: 12px; }
  .bar-cta { display: none; }
  .menu-btn { margin-left: auto; }

  .hero .scene-stage { min-height: 0; padding-top: 124px; }
  .hero-main { display: flex; flex-direction: column; align-items: stretch; gap: 28px; }
  h1 { font-size: 21vw; }
  .btn { width: 100%; }
  .hero-copy { justify-items: stretch; }
  .perks { width: 100%; }
  .perks li { font-size: 0.875rem; padding: 0 8px; }
  .device-zone { height: 520px; min-height: 0; }
  .device { height: 470px; }
  .back-window { left: 0; right: 30%; top: 22%; }
  .hotspot { left: 62%; top: 5%; }
  .hotspot span { font-size: 0.9375rem; max-width: 9em; white-space: normal; }
  .hotspot span { margin-left: 16px; }
  .hotspot { left: 58%; }
  .rail { grid-template-columns: repeat(5, 1fr); gap: 8px; }
  .rail button { width: 100%; height: 56px; }
  .steps { grid-template-columns: 1fr; padding: 16px 18px; gap: 14px; }

  .serv-title { margin-bottom: 24px; }
  .serv-grid { display: flex; flex-direction: column; }
  .serv-frame { order: -1; align-self: stretch; position: relative; top: 0; height: 40svh; margin-bottom: 24px; }
  .serv-list { display: flex; flex-wrap: wrap; column-gap: 18px; row-gap: 4px; }
  .serv-item, .serv-item:last-child { display: contents; }
  .serv-name { font-size: 8.6vw; min-height: 48px; }
  .serv-desc { order: 9; flex-basis: 100%; margin-top: 12px; min-height: 5.2em; }
  .serv-item:not(.is-active) .serv-desc { display: none; }

  .process .scene-stage { grid-template-columns: 1fr; }
  .process-figure { padding: 56px var(--m); }
  .build { width: 100%; max-width: 420px; }
  .b-notes { padding: 20px; }
  .process.is-live .scene-stage { grid-template-rows: minmax(0, 1fr) auto auto; }
  .process.is-live .process-figure { grid-row: 1; min-height: 0; padding: 24px var(--m); }
  .process.is-live .build { width: 100%; max-width: 420px; height: 100%; }
  .process.is-live .build-body { aspect-ratio: auto; height: calc(100% - 36px); }
  .process.is-live .process-text { grid-row: 2; padding: 20px var(--m) 16px; justify-content: flex-start; }
  .process.is-live .process-title { position: static; margin-bottom: 8px; font-size: 1.0625rem; }
  .process.is-live .clauses { display: grid; min-height: 0; }
  .process.is-live .clause { position: static; grid-area: 1 / 1; }
  .process.is-live .clause h3 { font-size: 9vw; margin-bottom: 12px; }
  .process.is-live .clause p { font-size: 1rem; }
  .process.is-live .process-track { grid-row: 3; position: static; width: auto; margin: 0 var(--m) 20px; }

  .pricing-side, .pricing-main { grid-column: 1 / -1; position: static; }
  .pricing-side { margin-bottom: 20px; }
  .pricing h2 { margin-bottom: 20px; }
  .sheets { aspect-ratio: 16 / 11; }
  .sheets i, .s-page { left: 30%; width: 34%; bottom: 10%; }
  .est-extras { grid-template-columns: 1fr; }

  .qa:not(.qa-head) { grid-template-columns: 1fr; row-gap: 10px; }
  .qa h3, .qa p { grid-column: 1; max-width: none; }

  .contact { margin-left: 12px; margin-right: 12px; }
  .cf-grid { grid-template-columns: 1fr; }
  .contact-form .btn { width: 100%; }
  .contact-rows div { grid-template-columns: 1fr; gap: 2px; }

  .foot { height: 84svh; min-height: 560px; }
  .foot-top { flex-direction: column; gap: 16px; }
  .foot-top address { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.motion .reveal { transform: none; transition: opacity 300ms ease; }
  .hotspot i { animation: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .bar { background: #2a1f85; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .steps { background: #2c3a9e; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
