/* =========================================================
   Services & pricing — calculators, quote desk, FAQ. Builds on style.css.
   ========================================================= */
body[data-page="services"] .nav__quote { display: none !important; } /* the tab bar has its own quote link */
body[data-page="services"] main { counter-reset: sec 6; } /* the six services are 01–06; the quote desk continues at 07 */
.svc, .quote, .faq { scroll-margin-top: calc(var(--nav-h) + 96px); }

/* ---------- Hero ---------- */
.svc-hero { padding-bottom: clamp(28px, 4vw, 56px); }
.svc-hero__grid { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.svc-hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.svc-hero__points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; }
.svc-hero__points li { display: inline-flex; align-items: center; gap: 9px; color: var(--ink-2); font-size: 14px; }
.svc-hero__points .i, .svc__skills .i { width: 21px; height: 21px; padding: 4px; border-radius: 50%; color: #fff; background: var(--grad); stroke-width: 3; }
.sculpt--hero { justify-self: end; width: 100%; max-width: 560px; aspect-ratio: 1; border-radius: 36px; }
a.sculpt__label {
  right: auto; bottom: 54px; z-index: 2; align-items: center; padding: 9px 12px 9px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.82); border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow);
  pointer-events: auto; transition: transform 0.4s var(--ease-out);
}
a.sculpt__label:hover { transform: translateY(-2px); }
a.sculpt__label .i { width: 15px; height: 15px; color: var(--violet); }
.sculpt__bars { position: absolute; left: 22px; right: 22px; bottom: 16px; z-index: 2; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.sculpt__bars button { display: grid; align-items: center; height: 24px; }
.sculpt__bars button::before, .sculpt__bars i { content: ""; grid-area: 1 / 1; height: 3px; border-radius: 3px; }
.sculpt__bars button::before { background: rgba(24, 18, 70, 0.12); transition: background-color 0.2s; }
.sculpt__bars button:hover::before { background: rgba(24, 18, 70, 0.24); }
.sculpt__bars i { background: var(--grad); transform-origin: 0 50%; transform: scaleX(var(--fill, 0)); }

/* The 3D stage (js/svc3d.js). No frame: the objects float free, and the canvas is larger than
   its column so nothing gets clipped as they turn. */
.svc-hero { overflow-x: clip; }
.svc-stage {
  position: relative; justify-self: end; width: 100%; max-width: 600px; aspect-ratio: 1; margin-bottom: 30px;
  cursor: grab; touch-action: pan-y; -webkit-user-select: none; user-select: none;
}
.svc-stage.is-dragging { cursor: grabbing; }
.svc-stage::before {
  content: ""; position: absolute; inset: 4%; border-radius: 50%; pointer-events: none;
  background:
    radial-gradient(closest-side at 42% 44%, rgba(106, 77, 255, 0.26), rgba(31, 143, 255, 0.12) 58%, transparent 78%),
    radial-gradient(closest-side at 68% 66%, rgba(255, 79, 154, 0.22), transparent 72%);
  filter: blur(14px);
  animation: stage-breathe 8s ease-in-out infinite alternate;
}
@keyframes stage-breathe { to { transform: scale(1.08) rotate(10deg); opacity: 0.82; } }
.svc-stage__canvas {
  position: absolute; inset: -14%; width: 128%; height: 128%; display: block; pointer-events: none;
  opacity: 0; transform: scale(0.94); transition: opacity 1.1s var(--ease), transform 1.5s var(--ease-out);
}
.svc-stage.is-ready .svc-stage__canvas { opacity: 1; transform: none; }
.svc-stage__hint {
  position: absolute; top: 0; right: 2%; z-index: 2; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); pointer-events: none; opacity: 0; transition: opacity 0.6s;
}
.svc-stage.is-ready .svc-stage__hint { opacity: 1; }
.svc-stage.is-dragging .svc-stage__hint { opacity: 0; }
.svc-stage__caption {
  position: absolute; left: 50%; bottom: -26px; z-index: 2; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 16px 10px 18px; border-radius: 999px; white-space: nowrap;
  background: rgba(255, 255, 255, 0.8); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow); color: var(--ink);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease);
}
.svc-stage__text { display: inline-flex; align-items: baseline; gap: 10px; }
.svc-stage__title { font-size: 15px; font-weight: 600; letter-spacing: -0.02em; }
.svc-stage__sub { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-3); }
a.svc-stage__caption { cursor: pointer; }
a.svc-stage__caption .i { width: 15px; height: 15px; color: var(--violet); transition: transform 0.3s var(--ease); }
a.svc-stage__caption:hover { transform: translateX(-50%) translateY(-2px); }
a.svc-stage__caption:hover .i { transform: translate(2px, -2px); }
.svc-stage.is-swap .svc-stage__text { animation: cap-swap 0.55s var(--ease-out); }
@keyframes cap-swap { from { opacity: 0; transform: translateY(8px); } }
.svc-stage__bars {
  position: absolute; left: 50%; bottom: -62px; z-index: 2; transform: translateX(-50%);
  width: min(300px, 76%); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px;
}
.svc-stage__bars button { display: grid; align-items: center; height: 22px; }
.svc-stage__bars button::before, .svc-stage__bars button::after { content: ""; grid-area: 1 / 1; height: 3px; border-radius: 3px; }
.svc-stage__bars button::before { background: rgba(24, 18, 70, 0.12); transition: background-color 0.2s; }
.svc-stage__bars button:hover::before { background: rgba(24, 18, 70, 0.24); }
.svc-stage__bars button::after { background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }
.svc-stage__bars button.is-done::after { transform: scaleX(1); }
.svc-stage__bars button.is-active::after { animation: bar-fill var(--dur, 5s) linear forwards; }
.svc-stage.is-dragging .svc-stage__bars button.is-active::after { animation-play-state: paused; }
@keyframes bar-fill { to { transform: scaleX(1); } }
.svc-stage--tour { margin-bottom: 64px; }
.svc-stage.is-static { cursor: default; }
.svc-stage.is-static .svc-stage__hint { display: none; }
@media (prefers-reduced-motion: reduce) {
  .svc-stage::before { animation: none; }
  .svc-stage__bars button.is-active::after { animation: none; transform: scaleX(1); }
}

/* ---------- Sticky service tabs ---------- */
.svc-nav { position: sticky; top: calc(12px + var(--nav-h) + 8px); z-index: 40; pointer-events: none; }
.svc-nav__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px; border-radius: 999px;
  background: var(--glass-strong); border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  pointer-events: auto; transition: box-shadow 0.4s;
}
.svc-nav.is-stuck .svc-nav__inner { box-shadow: var(--glass-shadow), 0 24px 44px -26px rgba(56, 42, 140, 0.5); }
.svc-nav__links {
  --fade-s: 0px; --fade-e: 0px;
  display: flex; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--fade-s), #000 calc(100% - var(--fade-e)), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 var(--fade-s), #000 calc(100% - var(--fade-e)), transparent);
}
.svc-nav__links.is-fade-start { --fade-s: 26px; }
.svc-nav__links.is-fade-end { --fade-e: 40px; }
.svc-nav__links::-webkit-scrollbar { display: none; }
.svc-nav__links a { display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 9px 14px; border-radius: 999px; color: var(--ink-3); font-size: 13.5px; font-weight: 500; white-space: nowrap; transition: color 0.2s, background-color 0.3s; }
.svc-nav__links a .i { width: 16px; height: 16px; }
.svc-nav__links a:hover { color: var(--ink); }
.svc-nav__links a.is-active { color: #fff; background: var(--ink); }
.svc-nav__end { display: flex; align-items: center; gap: 6px; flex: none; }
.currency select {
  height: 38px; padding: 0 30px 0 14px; border-radius: 999px; border: 1px solid var(--line-2); appearance: none; cursor: pointer;
  background: rgba(255, 255, 255, 0.85) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23707070' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center / 13px;
  font-size: 13px; font-weight: 500;
}
.currency select:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.svc-nav__quote { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 6px 0 14px; border-radius: 999px; color: #fff; background: var(--ink); font-size: 13.5px; font-weight: 500; white-space: nowrap; transition: background-color 0.3s; }
.svc-nav__quote.has-items { background: var(--grad); }
.svc-nav__quote .i { width: 16px; height: 16px; }
.svc-nav__quote b { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 99px; background: rgba(255, 255, 255, 0.22); font-size: 12px; }
.is-pulse { animation: pulse-ring 0.9s var(--ease-out); }
/* when a price bar is docked to the bottom of the screen, the chat button sits above it */
body:has([data-calc]) .chat { bottom: calc(max(18px, env(safe-area-inset-bottom)) + var(--calc-dock, 0px)); transition: bottom 0.3s var(--ease-out); }
body[data-page="services"] .chat.is-open { bottom: max(18px, env(safe-area-inset-bottom)); }
.is-calc-docked .chat:not(.is-open) .chat__fab { padding: 0 6px; } /* just the round button, so it hides fewer options */
.is-calc-docked .chat:not(.is-open) .chat__fab-label, .is-calc-docked .chat__nudge { display: none; }
.is-calc-docked:has(.calc__breakdown[open]) .chat:not(.is-open) { opacity: 0; pointer-events: none; } /* out of the breakdown's way while it's open */
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(106, 77, 255, 0.6); } 100% { box-shadow: 0 0 0 16px rgba(106, 77, 255, 0); } }

/* ---------- One section per service ---------- */
.svc { position: relative; padding: clamp(64px, 8vw, 116px) 0; }
.svc + .svc::before { content: ""; position: absolute; top: 0; left: 50%; width: min(var(--container), 100% - var(--gutter) * 2); height: 1px; translate: -50% 0; background: linear-gradient(90deg, transparent, var(--line-2) 20%, var(--line-2) 80%, transparent); }
.svc__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.94fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.svc__num { display: inline-flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.svc__num span { padding: 3px 10px; border-radius: 999px; color: #fff; background: var(--grad); letter-spacing: 0.04em; }
.svc__title { margin-top: 18px; font-size: clamp(2.4rem, 5vw, 4.3rem); font-weight: 600; line-height: 1; letter-spacing: -0.056em; text-wrap: balance; }
.svc__title .sig { font-size: 1.2em; line-height: 0.8; }
.svc__lead { max-width: 56ch; margin-top: 20px; color: var(--ink-2); font-size: clamp(16px, 1.35vw, 18px); }
.svc__deals {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 10px 16px; border-radius: 999px;
  background: var(--glass-strong); border: 1px solid rgba(106, 77, 255, 0.35); box-shadow: var(--glass-shadow);
  color: var(--ink); font-size: 14px; font-weight: 500; transition: border-color 0.25s, transform 0.3s var(--ease);
}
.svc__deals > .i:first-child { width: 16px; height: 16px; color: var(--violet); }
.svc__deals > .i:last-child { width: 15px; height: 15px; transition: transform 0.35s var(--ease); }
.svc__deals:hover { border-color: var(--violet); transform: translateY(-2px); }
.svc__deals:hover > .i:last-child { transform: translate(2px, -2px); }
.svc__block { margin-top: clamp(32px, 4vw, 46px); }
.svc__h { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; color: var(--ink-3); font-size: 11.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }
.svc__h::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.svc__skills { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 24px; margin-bottom: 20px; }
.svc__skills li { display: grid; grid-template-columns: 21px minmax(0, 1fr); gap: 11px; color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.svc__projects { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.proj { display: grid; grid-template-columns: 74px minmax(0, 1fr); align-items: center; gap: 14px; padding: 10px; border-radius: 22px; color: inherit; }
.proj__thumb { position: relative; overflow: hidden; width: 74px; aspect-ratio: 1; border-radius: 16px; background: var(--bg-soft); border: 1px solid var(--line); }
.proj__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.8s var(--ease-out); }
.proj:hover .proj__thumb img { transform: scale(1.08); }
.proj__thumb--phone img { object-position: 50% 14%; }
.proj__thumb--store { display: grid; align-content: center; gap: 5px; padding: 12px; background: #fff; }
.proj__thumb--store i { height: 7px; border-radius: 4px; background: #d6d3e6; }
.proj__thumb--store i:nth-child(1) { width: 70%; background: var(--ink); }
.proj__thumb--store i:nth-child(3) { width: 80%; background: var(--violet); }
.proj__thumb--self { display: grid; place-items: center; background: var(--ink); border: 0; }
.proj__thumb--self svg { width: 56%; height: 56%; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.proj__body { min-width: 0; }
.proj__body strong { display: block; font-size: 15.5px; letter-spacing: -0.02em; }
.proj__body small { display: block; margin-top: 1px; color: var(--ink-3); font-size: 12.5px; }
.proj__body em { display: block; margin-top: 5px; color: var(--violet); font-size: 12.5px; font-style: normal; font-weight: 500; }
.svc__credential { display: inline-flex; align-items: center; gap: 9px; margin-top: 16px; color: var(--ink-2); font-size: 14px; }
.svc__credential .i { color: var(--violet); }
.svc__cases { display: grid; gap: 8px; }
.svc__cases li { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; gap: 14px; padding: 12px 16px 12px 12px; border-radius: 16px; background: rgba(255, 255, 255, 0.6); border: 1px solid var(--line); color: var(--ink-2); font-size: 14.5px; }
.svc__cases b { padding: 4px 10px; border-radius: 999px; background: rgba(106, 77, 255, 0.09); color: var(--violet); font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; text-align: center; }
.svc__month { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.svc__month li { padding: 16px; border-radius: 18px; background: rgba(255, 255, 255, 0.62); border: 1px solid var(--line); color: var(--ink-2); font-size: 14px; }
.svc__month b { display: block; margin-bottom: 6px; color: var(--ink); font-size: 13px; font-family: var(--font-mono); font-weight: 500; }
.svc__note { margin-top: 14px; color: var(--ink-3); font-size: 14px; }
.svc__note a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- The calculator ---------- */
.calc {
  container: pricer / inline-size;
  position: sticky; top: calc(12px + var(--nav-h) + 74px); align-self: start;
  display: flex; flex-direction: column; overflow: hidden;
  max-height: calc(100vh - var(--nav-h) - 176px); max-height: calc(100dvh - var(--nav-h) - 176px); /* clear of the chat button */
  padding: 0; border-radius: 30px; background: rgba(255, 255, 255, 0.72);
}
.calc:hover { --lift: 0px; }
.calc__fallback { padding: 28px; color: var(--ink-2); }
.calc__fallback a { color: var(--violet); text-decoration: underline; }
.calc.is-ready .calc__fallback { display: none; }
/* a slim header: the options get the room */
.calc__head { flex: none; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 13px 14px 13px 16px; border-bottom: 1px solid var(--line); }
.calc__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 13px; color: #fff; background: var(--grad); box-shadow: 0 10px 20px -12px rgba(106, 77, 255, 0.85); }
.calc__icon .i { width: 18px; height: 18px; }
.calc__heading h3 { font-size: 18px; letter-spacing: -0.03em; }
.calc__reset { width: 34px; height: 34px; }
.calc__reset .i { width: 15px; height: 15px; }
.calc__body { flex: 1; min-height: 0; display: grid; align-content: start; gap: 18px; padding: 16px 18px 20px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(24, 18, 70, 0.2) transparent; }
.calc__included { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 9px; padding: 10px 12px; border-radius: 14px; background: rgba(106, 77, 255, 0.05); border: 1px solid rgba(106, 77, 255, 0.14); color: var(--ink-2); font-size: 12.5px; line-height: 1.45; }
.calc__included .i { width: 18px; height: 18px; margin-top: 1px; padding: 3.5px; border-radius: 50%; color: #fff; background: var(--grad); stroke-width: 3; }
.calc__included b { color: var(--ink); font-weight: 600; }
.calc__group { min-width: 0; margin: 0; padding: 0; border: 0; }
.calc__group > legend, .range__head label { margin-bottom: 10px; padding: 0; color: var(--ink); font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; }
.calc__hint { margin-left: 6px; color: var(--ink-3); font-size: 12px; font-weight: 400; }

/* single choice: cards */
.opts { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 8px; }
.opt { position: relative; display: flex; }
.opt input, .chk input, .pace__opt input, .calc__toggle input { position: absolute; opacity: 0; pointer-events: none; }
.opt__card {
  flex: 1; display: grid; align-content: start; gap: 2px; padding: 12px 12px 11px; border-radius: 16px; cursor: pointer;
  border: 1.5px solid var(--line-2); background: rgba(255, 255, 255, 0.66);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.35s, transform 0.35s var(--ease-out);
}
.opt__card b { font-size: 14px; font-weight: 600; line-height: 1.25; letter-spacing: -0.015em; }
.opt__card small { color: var(--ink-3); font-size: 12px; line-height: 1.35; }
.opt__card em { margin-top: 7px; color: var(--ink-2); font-family: var(--font-mono); font-size: 11.5px; font-style: normal; }
.opt:hover .opt__card { border-color: var(--line-3); transform: translateY(-1px); }
.opt input:checked + .opt__card { border-color: transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; box-shadow: 0 12px 26px -16px rgba(106, 77, 255, 0.8); }
.opt input:checked + .opt__card em { color: var(--violet); }
.opt input:focus-visible + .opt__card, .chk input:focus-visible + span, .pace__opt input:focus-visible + span { outline: 2px solid var(--violet); outline-offset: 2px; }

/* multiple choice: ticks */
.chks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.chk { position: relative; display: flex; }
.chk > span { flex: 1; display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 14px; cursor: pointer; border: 1.5px solid var(--line-2); background: rgba(255, 255, 255, 0.66); font-size: 13.5px; line-height: 1.3; transition: border-color 0.2s, background-color 0.2s; }
.chk > span:hover { border-color: var(--line-3); }
.chk__tick { width: 20px; height: 20px; padding: 3px; border-radius: 7px; border: 1.5px solid var(--line-3); color: transparent; stroke-width: 3.2; transition: background 0.2s, border-color 0.2s, color 0.2s; }
.chk b { font-weight: 500; }
.chk em { color: var(--ink-3); font-family: var(--font-mono); font-size: 11px; font-style: normal; white-space: nowrap; }
.chk input:checked + span { border-color: rgba(106, 77, 255, 0.5); background: rgba(106, 77, 255, 0.06); }
.chk input:checked + span .chk__tick { color: #fff; border-color: transparent; background: var(--grad); }
.chk input:checked + span em { color: var(--violet); }

/* sliders */
.range__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.range__head output { padding: 3px 11px; border-radius: 999px; background: var(--ink); color: #fff; font-family: var(--font-mono); font-size: 12px; white-space: nowrap; }
.calc__range input[type="range"], .offer__slider { width: 100%; height: 28px; margin: 4px 0 2px; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.calc__range input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--violet), var(--blue) var(--p, 50%), rgba(24, 18, 70, 0.1) var(--p, 50%)); }
.offer__slider::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: rgba(24, 18, 70, 0.12); }
.calc__range input[type="range"]::-webkit-slider-thumb, .offer__slider::-webkit-slider-thumb {
  width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; -webkit-appearance: none; appearance: none;
  background: #fff; border: 2px solid var(--violet); box-shadow: 0 6px 14px -4px rgba(106, 77, 255, 0.7); transition: transform 0.25s var(--ease-out);
}
.calc__range input[type="range"]:active::-webkit-slider-thumb, .offer__slider:active::-webkit-slider-thumb { transform: scale(1.15); }
.calc__range input[type="range"]::-moz-range-track, .offer__slider::-moz-range-track { height: 6px; border-radius: 6px; background: rgba(24, 18, 70, 0.1); }
.calc__range input[type="range"]::-moz-range-progress { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--violet), var(--blue)); }
.calc__range input[type="range"]::-moz-range-thumb, .offer__slider::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--violet); }
.calc__range input[type="range"]:focus-visible, .offer__slider:focus-visible { outline: 2px solid var(--violet); outline-offset: 4px; border-radius: 6px; }
.range__note { color: var(--ink-3); font-size: 12.5px; }

/* switch */
.calc__toggle { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 16px; cursor: pointer; border: 1.5px solid var(--line-2); background: rgba(255, 255, 255, 0.66); }
.switch { position: relative; width: 42px; height: 24px; border-radius: 99px; background: rgba(24, 18, 70, 0.16); transition: background 0.25s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(10, 10, 10, 0.22); transition: transform 0.35s var(--ease-out); }
.calc__toggle input:checked + .switch { background: var(--grad); }
.calc__toggle input:checked + .switch::after { transform: translateX(18px); }
.calc__toggle input:focus-visible + .switch { outline: 2px solid var(--violet); outline-offset: 2px; }
.calc__toggle-text b { display: block; font-size: 13.5px; font-weight: 600; }
.calc__toggle-text small { display: block; color: var(--ink-3); font-size: 12px; }
.calc__toggle em { color: var(--ink-3); font-family: var(--font-mono); font-size: 11.5px; font-style: normal; white-space: nowrap; }

/* timeline: segmented */
.pace { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 5px; border-radius: 18px; background: rgba(24, 18, 70, 0.05); }
.pace__opt { position: relative; display: flex; }
.pace__opt span { flex: 1; display: grid; gap: 1px; padding: 9px 12px; border-radius: 14px; text-align: center; cursor: pointer; transition: background-color 0.25s, box-shadow 0.3s; }
.pace__opt b { font-size: 14px; font-weight: 600; }
.pace__opt small { color: var(--ink-3); font-size: 11.5px; }
.pace__opt input:checked + span { background: #fff; box-shadow: 0 8px 18px -10px rgba(24, 18, 70, 0.45); }

/* the total: one compact bar — price and buttons on a row, the range underneath */
.calc__total { position: relative; z-index: 3; flex: none; display: grid; gap: 7px; padding: 15px 18px 13px; background: rgba(255, 255, 255, 0.92); box-shadow: 0 -16px 26px -22px rgba(24, 18, 70, 0.32); }
.calc__bar { position: absolute; top: 0; left: 0; right: 0; display: flex; gap: 2px; height: 4px; overflow: hidden; background: rgba(24, 18, 70, 0.08); } /* each part of the price, as a coloured rule */
.calc__bar i { min-width: 3px; transition: flex-grow 0.6s var(--ease-out); }
.calc__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; }
.calc__price { display: grid; gap: 1px; min-width: 0; }
.calc__label { color: var(--ink-3); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; }
.calc__amount { display: block; width: fit-content; font-size: clamp(1.7rem, 2.3vw, 2.15rem); font-weight: 650; line-height: 1.08; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; white-space: nowrap; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; transform-origin: 0 60%; }
.calc__amount.is-bump { animation: bump 0.55s var(--ease-out); }
@keyframes bump { 30% { transform: scale(1.05); } }
.calc__actions { display: flex; gap: 8px; margin-left: auto; }
.calc__actions .btn { --h: 44px; padding: 0 18px; font-size: 14.5px; }
.calc__actions .calc__ask { width: 44px; padding: 0; }
.calc__ask span { display: none; }
@container pricer (min-width: 540px) {
  .calc__actions .calc__ask { width: auto; padding: 0 18px; }
  .calc__ask span { display: inline; }
}
.calc__meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 14px; }
.calc__sub { color: var(--ink-2); font-size: 12.5px; }
.calc__breakdown summary { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 12.5px; font-weight: 500; cursor: pointer; list-style: none; white-space: nowrap; }
.calc__breakdown summary:hover, .calc__breakdown[open] summary { color: var(--ink); }
.calc__breakdown summary::-webkit-details-marker { display: none; }
.calc__breakdown summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; rotate: 225deg; translate: 0 2px; transition: rotate 0.3s var(--ease-out); }
.calc__breakdown[open] summary::after { rotate: 45deg; translate: 0 -2px; }
.calc__breakdown summary:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 4px; }
/* opens as a card floating above the price, so the options never get squeezed */
.calc__breakdown ul {
  position: absolute; left: 12px; right: 12px; bottom: calc(100% + 8px); z-index: 4;
  display: grid; gap: 7px; max-height: min(52vh, 340px); overflow-y: auto; overscroll-behavior: contain;
  padding: 14px 16px; border-radius: 18px; font-size: 13px;
  background: rgba(255, 255, 255, 0.97); border: 1px solid var(--line-2); box-shadow: 0 22px 44px -22px rgba(24, 18, 70, 0.5);
  animation: lift-in 0.25s var(--ease-out);
}
@keyframes lift-in { from { opacity: 0; transform: translateY(6px); } }
.calc__breakdown li { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-2); }
.calc__breakdown li b { color: var(--ink); font-family: var(--font-mono); font-weight: 500; white-space: nowrap; }
.calc__breakdown li.is-total { margin-top: 2px; padding-top: 8px; border-top: 1px solid var(--line-2); color: var(--ink); font-weight: 600; }
.calc__add.is-done { background: var(--live); border-color: var(--live); }

/* ---------- Quote desk ---------- */
.quote__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.quote__summary, .quote__form { padding: clamp(22px, 3vw, 34px); border-radius: 32px; }
.quote__summary { position: sticky; top: calc(12px + var(--nav-h) + 74px); }
.quote__summary:hover, .quote__form:hover { --lift: 0px; }
.quote__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.quote__head h3 { display: flex; align-items: center; gap: 10px; font-size: 21px; letter-spacing: -0.035em; }
.quote__head h3 .i { color: var(--violet); }
.quote__clear { color: var(--ink-3); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.quote__clear:hover { color: var(--ink); }
.quote__clear[hidden] { display: none; }
.quote__items { display: grid; gap: 10px; }
.qitem { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 14px; border-radius: 22px; background: rgba(255, 255, 255, 0.74); border: 1px solid var(--line); animation: pop 0.45s var(--ease-out); }
.qitem__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: #fff; background: var(--grad); }
.qitem__icon .i { width: 19px; height: 19px; }
.qitem__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.qitem__top strong { font-size: 15.5px; letter-spacing: -0.02em; }
.qitem__top b { font-family: var(--font-mono); font-size: 14px; font-weight: 500; white-space: nowrap; }
.qitem p { margin-top: 4px; color: var(--ink-2); font-size: 13px; line-height: 1.5; }
.qitem__deal { display: inline-block; margin-right: 4px; padding: 1px 7px; border-radius: 999px; background: var(--grad); color: #fff; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.04em; vertical-align: 1px; }
.qitem p s { color: var(--ink-4); }
.qitem__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 10px; color: var(--ink-3); font-size: 12.5px; }
.qitem__meta span, .qitem__meta a, .qitem__meta button { display: inline-flex; align-items: center; gap: 5px; }
.qitem__meta a, .qitem__meta button { color: var(--ink-2); transition: color 0.2s; }
.qitem__meta a:hover, .qitem__meta button:hover { color: var(--violet); }
.qitem__meta .i { width: 14px; height: 14px; }
.quote__empty[hidden] { display: none; }
.quote__empty p { color: var(--ink-2); font-size: 15px; }
.quote__quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.quote__quick .chip { cursor: pointer; }
.quote__quick .chip:hover { color: var(--ink); border-color: var(--violet); }
.quote__quick .chip .i { width: 15px; height: 15px; color: var(--violet); }
.quote__quick .chip em { color: var(--ink-3); font-family: var(--font-mono); font-size: 11.5px; font-style: normal; }
.quote__totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0 0; padding-top: 18px; border-top: 1px solid var(--line-2); }
.quote__totals[hidden] { display: none; }
.quote__totals dt { color: var(--ink-3); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.quote__totals dd { margin: 4px 0 0; font-size: clamp(1.15rem, 2vw, 1.6rem); font-weight: 650; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.quote__totals div:first-child dd { width: fit-content; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.quote__note { display: flex; gap: 9px; margin-top: 18px; color: var(--ink-3); font-size: 13px; }
.quote__note .i { flex: none; width: 16px; height: 16px; margin-top: 2px; }

.quote__form { display: grid; gap: 16px; }
.quote__form h3 { font-size: 22px; letter-spacing: -0.035em; }
.quote__form .field em { color: var(--ink-3); font-style: normal; font-weight: 400; }
.offer { display: grid; gap: 10px; padding: 18px; border-radius: 22px; background: rgba(106, 77, 255, 0.05); border: 1px solid rgba(106, 77, 255, 0.18); transition: background-color 0.4s, border-color 0.4s; }
.offer[data-tone="good"] { background: rgba(23, 199, 154, 0.08); border-color: rgba(23, 199, 154, 0.38); }
.offer[data-tone="close"] { background: rgba(31, 143, 255, 0.07); border-color: rgba(31, 143, 255, 0.32); }
.offer[data-tone="lean"] { background: rgba(255, 154, 61, 0.09); border-color: rgba(255, 154, 61, 0.38); }
.offer[data-tone="far"] { background: rgba(255, 79, 154, 0.07); border-color: rgba(255, 79, 154, 0.32); }
.offer__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; color: var(--ink-2); font-size: 13.5px; font-weight: 500; }
.offer__est b { color: var(--ink); font-family: var(--font-mono); font-weight: 500; }
.offer__input { display: flex; align-items: center; gap: 8px; padding: 0 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line-2); transition: border-color 0.2s, box-shadow 0.2s; }
.offer__input:focus-within { border-color: #a393ff; box-shadow: 0 0 0 4px rgba(126, 104, 255, 0.22); }
.offer__cur { color: var(--ink-3); font-size: 22px; font-weight: 600; white-space: nowrap; }
.offer__input input { flex: 1; min-width: 0; height: 58px; border: 0; outline: 0; background: transparent; font-size: 26px; font-weight: 650; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.offer__input input::placeholder { color: var(--ink-4); font-weight: 500; }
.offer__slider:disabled { opacity: 0.4; cursor: not-allowed; }
.offer__meter { position: relative; height: 8px; border-radius: 8px; background: linear-gradient(90deg, rgba(255, 79, 154, 0.22), rgba(255, 154, 61, 0.24) 50%, rgba(31, 143, 255, 0.24) 66%, rgba(23, 199, 154, 0.28) 77%); }
.offer__fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 8px; background: var(--grad); transition: width 0.5s var(--ease-out); }
.offer__mark { position: absolute; top: -6px; width: 2px; height: 20px; border-radius: 2px; background: var(--ink); translate: -1px 0; }
.offer__mark::after { content: "estimate"; position: absolute; top: -18px; left: 50%; translate: -50% 0; color: var(--ink-3); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; white-space: nowrap; }
.offer__verdict { margin-top: 4px; color: var(--ink-2); font-size: 14px; font-weight: 500; }
.offer__verdict[data-tone="good"] { color: #0b8f6c; }
.offer__verdict[data-tone="close"] { color: #0f6fd6; }
.offer__verdict[data-tone="lean"] { color: #b4560c; }
.offer__verdict[data-tone="far"] { color: #c21d6c; }
.quote__send { display: flex; flex-wrap: wrap; gap: 8px; }
.quote__send .btn--primary { flex: 1 1 100%; }
.quote__send .btn--ghost { flex: 1 1 auto; }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq__grid .section__head { margin-bottom: 0; }
.faq__list { display: grid; gap: 10px; }
.faq__item { padding: 0; border-radius: 22px; }
.faq__item:hover { --lift: -3px; }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; font-size: 16.5px; font-weight: 600; letter-spacing: -0.02em; list-style: none; cursor: pointer; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(24, 18, 70, 0.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 12px no-repeat;
  transition: transform 0.45s var(--ease-out), background-color 0.3s;
}
.faq__item[open] summary::after { transform: rotate(45deg); background-color: rgba(106, 77, 255, 0.16); }
.faq__item p { max-width: 64ch; padding: 0 22px 22px; color: var(--ink-2); font-size: 15.5px; }
.link-btn { color: var(--violet); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .svc__projects { grid-template-columns: 1fr; }
  .chks { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .svc-hero__grid, .svc__grid, .quote__grid, .faq__grid { grid-template-columns: 1fr; }
  .sculpt.sculpt--hero { justify-self: center; max-width: 480px; height: auto; aspect-ratio: 1; }
  .svc-stage { justify-self: center; max-width: 480px; margin: 12px auto 40px; }
  .svc-nav__links a span { display: none; }
  .svc-nav__links a.is-active span { display: inline; }
  .quote__summary { position: static; }
  .svc__projects { grid-template-columns: 1fr 1fr; }
}

/* Not enough height for a scrolling card (phones, tablets, short laptop screens):
   the calculator flows with the page and its price bar docks to the bottom of the screen. */
@media (max-width: 900px), (max-height: 680px) {
  .calc { position: relative; top: auto; max-height: none; overflow: clip; }
  .calc__body { overflow: visible; }
  .calc__total { position: sticky; bottom: 0; background: rgba(255, 255, 255, 0.94); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
}

@media (max-width: 640px) {
  .svc-hero__cta .btn { flex: 1 1 auto; }
  .svc-nav__inner { gap: 4px; }
  .svc-nav__quote span { display: none; }
  .svc__skills, .svc__projects, .svc__month { grid-template-columns: 1fr; }
  .opts { grid-template-columns: repeat(min(var(--n, 3), 2), minmax(0, 1fr)); }
  .svc__cases li { grid-template-columns: 1fr; gap: 6px; }
  .svc__cases b { justify-self: start; }
  .quote__totals { grid-template-columns: 1fr 1fr; }
  .quote__totals div:last-child { grid-column: 1 / -1; }
  .calc__head { padding: 12px 12px 12px 14px; }
  .calc__heading h3 { font-size: 17px; }
  .calc__body { padding: 14px 14px 18px; }
  .calc__total { gap: 6px; padding: 13px 14px 11px; }
  .calc__row { gap: 8px 10px; }
  .calc__label { font-size: 10px; letter-spacing: 0.1em; }
  .calc__amount { font-size: 1.65rem; }
  .calc__actions { gap: 6px; }
  .calc__actions .btn { --h: 42px; padding: 0 14px; font-size: 14px; }
  .calc__actions .calc__ask { width: 42px; padding: 0; }
  .calc__sub, .calc__breakdown summary { font-size: 12px; }
  .calc__meta { flex-wrap: nowrap; }
  .calc__sub { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .calc__sub-k { display: none; }
  .currency select { height: 36px; padding: 0 25px 0 11px; background-position: right 9px center; font-size: 12.5px; }
  .svc-nav__quote { height: 36px; }
}
