:root {
  --bg: #fafaf8;
  --bg-alt: #f1f1ed;
  --surface: #ffffff;
  --ink: #111214;
  --ink-2: #3c3f46;
  --muted: #6b6f78;
  --line: #e3e3de;
  --accent: #1f4fd8;
  --accent-soft: #e8eefc;
  --dark: #0f1012;
  --dark-2: #17181b;
  --dark-line: #2a2c31;
  --radius: 14px;
  --head: "Inter Tight", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 1px 2px rgba(17, 18, 20, 0.04), 0 12px 32px rgba(17, 18, 20, 0.08);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; overflow-x: clip; overscroll-behavior-x: none; }
body { font-family: var(--body); background: var(--bg); color: var(--ink); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; overflow-x: clip; overscroll-behavior-x: none; }
main, .footer { overflow-x: clip; }
html.menu-open, body.menu-open { overflow: hidden; overscroll-behavior: none; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: #fff; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4 { font-family: var(--head); letter-spacing: -0.02em; line-height: 1.15; font-weight: 600; }
.container { width: min(1200px, 100% - 48px); margin-inline: auto; }
.muted { color: var(--muted); }
.icon { width: 22px; height: 22px; flex: none; }
.icon.sm { width: 15px; height: 15px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip:focus { left: 8px; }

/* Prevent CSS grid tracks from stretching wider than viewport */
.hero-grid > *, .case > *, .stack-grid > *, .about-grid > *, .faq-grid > *, .planner > *,
.pricing-grid > *, .services > *, .process > *, .benefits > *, .about-facts > *,
.calc-type-grid > *, .calc-addon-grid > *, .fields > *, .case-facts > *, .options-cards > * { min-width: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 10px; font-weight: 600; font-size: 0.95rem; line-height: 1.2;
  border: 1px solid rgba(102, 107, 118, 0);
  background-color: #85a2a7;
  background-image: linear-gradient(#737a8d, #363f70);
  color: #fff;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.22), 0 19px 22px -8px rgba(13, 71, 135, 0.87);
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.25s var(--ease), box-shadow 0.25s;
  white-space: nowrap; position: relative; overflow: hidden; isolation: isolate;
}
.btn .icon { transition: transform 0.3s var(--ease); }
.btn:hover {
  transform: translateY(-1px);
  background-image: linear-gradient(#7e8699, #3e487e);
  color: #fff;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.28), 0 22px 26px -8px rgba(13, 71, 135, 0.92);
}
.btn:hover .icon { transform: translate(2px, -2px); }
.btn:active { transform: translateY(1px); }
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.8s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn-sm { padding: 9px 16px; font-size: 0.88rem; }
.btn-primary, .btn-dark, .btn-outline, .btn-ghost-light, .btn-outline-light {
  background-color: #85a2a7;
  background-image: linear-gradient(#737a8d, #363f70);
  border-color: rgba(102, 107, 118, 0);
  color: #fff;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.22), 0 19px 22px -8px rgba(13, 71, 135, 0.87);
}
.btn-primary:hover, .btn-dark:hover, .btn-outline:hover, .btn-ghost-light:hover, .btn-outline-light:hover {
  background-image: linear-gradient(#7e8699, #3e487e);
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right);
  transition: transform 0.5s var(--ease), padding 0.5s var(--ease);
}
.nav.scrolled { padding-top: 10px; }
.nav-inner {
  position: relative; display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px;
  border: 1px solid transparent; border-radius: 0; background: rgba(250, 250, 248, 0);
  backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  transition: width 0.6s var(--ease), height 0.5s var(--ease), padding 0.5s var(--ease), border-radius 0.5s var(--ease), background 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.nav.scrolled .nav-inner {
  width: min(1120px, 100% - 24px); height: 58px; padding: 0 10px 0 14px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.78); border-color: rgba(17, 18, 20, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 12px 32px -12px rgba(17, 18, 20, 0.22);
}
.nav-progress {
  position: absolute; left: 18px; right: 18px; bottom: -1px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), #7c5cff); transform: scaleX(0); transform-origin: left;
  opacity: 0; transition: opacity 0.3s;
}
.nav.scrolled .nav-progress { opacity: 1; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 600; flex-shrink: 0; }
.brand-mark {
  display: block; width: auto; height: 32px; max-width: 180px; object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.14));
  transition: transform 0.3s var(--ease), filter 0.3s var(--ease);
}
.brand:hover .brand-mark { transform: scale(1.08) translateY(-1px); filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25)); }
.nav-links { position: relative; display: flex; align-items: center; gap: 4px; }
.nav-links a { position: relative; z-index: 1; padding: 8px 12px; border-radius: 8px; font-size: 0.92rem; color: var(--ink-2); white-space: nowrap; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-indicator {
  position: absolute; left: 0; top: 0; z-index: 0; border-radius: 9px; pointer-events: none; opacity: 0;
  background: rgba(17, 18, 20, 0.06); box-shadow: inset 0 0 0 1px rgba(17, 18, 20, 0.04);
}
.nav-indicator.ready { transition: transform 0.45s var(--ease), width 0.45s var(--ease), opacity 0.25s; }
.nav-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 9px; padding: 3px; background: var(--surface); }
.lang-switch button { padding: 4px 9px; border-radius: 6px; font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.burger { display: none; width: 42px; height: 42px; position: relative; flex-shrink: 0; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--ink); transition: transform 0.25s, top 0.25s, background 0.3s; }
.burger span:first-child { top: 16px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 20.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 20.5px; transform: rotate(-45deg); }

/* Nav over dark sections (contact, footer) */
.brand-name, .lang-switch, .lang-switch button, .nav-cta { transition: color 0.3s, background 0.3s, border-color 0.3s; }
.nav.scrolled.on-dark .nav-inner {
  background: rgba(23, 24, 27, 0.78); border-color: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
}
.nav.on-dark .brand-name { color: #fff; }
.nav.on-dark .brand-mark { filter: brightness(1.25) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5)); }
.nav.on-dark .brand:hover .brand-mark { filter: brightness(1.35) drop-shadow(0 4px 12px rgba(255, 255, 255, 0.3)); }
.nav.on-dark .nav-links a { color: #a9acb4; }
.nav.on-dark .nav-links a:hover, .nav.on-dark .nav-links a.active { color: #fff; }
.nav.on-dark .nav-indicator { background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.nav.on-dark .lang-switch { background: var(--dark); border-color: var(--dark-line); }
.nav.on-dark .lang-switch button { color: #7d808a; }
.nav.on-dark .lang-switch button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.nav.on-dark .nav-cta {
  background-color: #85a2a7; background-image: linear-gradient(#737a8d, #363f70);
  color: #fff; border-color: rgba(255, 255, 255, 0.12);
}
.nav.on-dark .nav-cta:hover { background-image: linear-gradient(#7e8699, #3e487e); color: #fff; }
.nav.on-dark .burger span { background: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; padding: clamp(98px, 11vh, 136px) 0 40px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg::before {
  content: ""; position: absolute; inset: 0; opacity: 0.6;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 25%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 60% 25%, #000 20%, transparent 75%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: -10%;
  background: radial-gradient(520px circle at 78% 22%, rgba(31, 79, 216, 0.16), transparent 62%),
              radial-gradient(460px circle at 12% 8%, rgba(124, 92, 255, 0.11), transparent 60%),
              radial-gradient(380px circle at 55% 90%, rgba(22, 163, 74, 0.06), transparent 60%);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate3d(-3%, 2%, 0) scale(1.06); } }
.hero-copy > * { animation: rise 0.9s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.hero-copy > :nth-child(3) { animation-delay: 0.16s; }
.hero-copy > :nth-child(4) { animation-delay: 0.24s; }
.hero-visual { animation: rise 1.1s 0.15s var(--ease) both; }
.clients { animation: rise 0.9s 0.35s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); filter: blur(6px); } }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
h1 { font-size: clamp(2.05rem, 3.6vw, 3.05rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.06; }
.hero-brand {
  position: relative; isolation: isolate; display: block; width: min(100%, 520px);
  margin: 0; padding: 0; line-height: 0; border: 0; background: transparent;
  box-shadow: none;
}
.hero-brand::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 3%; right: 3%; top: -34%; height: 48%;
  background:
    linear-gradient(112deg, transparent 17%, rgba(255,255,255,0.5) 18%, rgba(255,255,255,0.06) 19%, transparent 22%),
    linear-gradient(108deg, transparent 42%, rgba(255,255,255,0.42) 43%, rgba(255,255,255,0.05) 44%, transparent 47%),
    linear-gradient(116deg, transparent 69%, rgba(255,255,255,0.36) 70%, rgba(255,255,255,0.04) 71%, transparent 74%);
  filter: blur(1.5px); opacity: 0.72;
}
.hero-brand::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 12%; right: 10%; bottom: -24px; height: 30px;
  background: radial-gradient(ellipse, rgba(66, 86, 108, 0.28), rgba(91, 112, 137, 0.1) 42%, transparent 74%);
  filter: blur(6px);
}
.hero-logo {
  position: relative; z-index: 0; display: block; width: 100%; height: auto;
}
.hero-text { margin-top: 22px; font-size: 1.12rem; color: var(--ink-2); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-meta dt { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.hero-meta dd { font-weight: 500; margin-top: 2px; }

.hero-visual { position: relative; aspect-ratio: 1.12; width: 100%; }
.browser { position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.browser img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.browser, .phone { transition: transform 0.8s var(--ease); }
.browser-back { top: 0; right: 0; width: 82%; transform: translate3d(calc(var(--px, 0) * -10px), calc(var(--py, 0) * -8px), 0); }
.browser-front { bottom: 4%; left: 0; width: 78%; transform: translate3d(calc(var(--px, 0) * 16px), calc(var(--py, 0) * 12px), 0); box-shadow: 0 2px 4px rgba(17, 18, 20, 0.04), 0 30px 60px -20px rgba(17, 18, 20, 0.28); }
.phone {
  position: absolute; right: 2%; bottom: 0; width: 23%; border-radius: 22px; border: 6px solid var(--ink); overflow: hidden; background: var(--ink);
  box-shadow: 0 30px 60px -18px rgba(17, 18, 20, 0.4);
  transform: translate3d(calc(var(--px, 0) * 26px), calc(var(--py, 0) * 20px), 0);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { translate: 0 -10px; } }
.phone img { aspect-ratio: 9 / 19.5; object-fit: cover; object-position: top; }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #f4f4f1; border-bottom: 1px solid var(--line); min-width: 0; }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #dcdcd6; flex: none; }
.browser-bar span { margin-left: 10px; font-size: 0.72rem; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

.clients { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 32px; margin-top: 56px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.clients > span { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
#client-list { display: flex; flex-wrap: wrap; gap: 10px 32px; }
#client-list a { display: inline-flex; align-items: center; gap: 6px; font-family: var(--head); font-weight: 600; font-size: 1.1rem; color: var(--ink-2); transition: color 0.2s; }
#client-list a:hover { color: var(--accent); }

@keyframes drop { from { opacity: 0; transform: translateY(-8px) scale(0.98); } }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden; padding: 26px 0; border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-family: var(--head); font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 600; letter-spacing: -0.02em; color: #b4b6bc; white-space: nowrap; transition: color 0.3s; }
.marquee-track span:hover { color: var(--ink); }
.marquee-track span::after { content: "✦"; font-size: 0.7em; color: var(--accent); opacity: 0.6; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 112px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin-bottom: 56px; }
.kicker { display: flex; align-items: center; gap: 10px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 14px; }
.kicker::before { content: ""; width: 22px; height: 1.5px; background: currentColor; border-radius: 2px; flex: none; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); letter-spacing: -0.03em; }
.section-sub { margin-top: 16px; color: var(--ink-2); font-size: 1.06rem; }

/* ---------- Case studies ---------- */
.case { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; padding: 56px 0; border-top: 1px solid var(--line); }
.case:first-child { border-top: 0; padding-top: 0; }
.case.flip .case-media { order: 2; }
.case.pulse .case-frame { box-shadow: 0 0 0 3px var(--accent), var(--shadow); }
.case-media { position: sticky; top: 96px; }
.case-frame { display: block; width: 100%; text-align: left; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); transition: box-shadow 0.3s, transform 0.3s; cursor: zoom-in; }
.case-frame:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(17, 18, 20, 0.04), 0 28px 56px -18px rgba(17, 18, 20, 0.28); }
.case-frame:hover .case-shot:not(.is-mobile) img { transform: scale(1.03); }
.case-shot { aspect-ratio: 16 / 10; overflow: hidden; background: #f4f4f1; display: grid; place-items: center; }
.case-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: opacity 0.15s, transform 0.8s var(--ease); }
.case-shot.is-mobile img { width: 27%; height: auto; aspect-ratio: 390 / 844; border-radius: 16px; border: 5px solid var(--ink); object-fit: cover; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.thumb { padding: 7px 14px; border-radius: 8px; font-size: 0.86rem; color: var(--ink-2); border: 1px solid var(--line); background: var(--surface); transition: all 0.2s; }
.thumb:hover { border-color: var(--ink-2); }
.thumb.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.case-type { font-size: 0.82rem; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; }
.case-body h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 8px 0 12px; }
.case-summary { font-size: 1.08rem; color: var(--ink-2); }
.case-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 28px 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.case-facts div { padding: 16px 18px; }
.case-facts div + div { border-left: 1px solid var(--line); }
.case-facts strong { display: block; font-family: var(--head); font-size: 1.6rem; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.case-facts span { font-size: 0.84rem; color: var(--muted); }
.case-body h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 24px 0 8px; font-family: var(--body); }
.case-body > p { color: var(--ink-2); }
.checks { list-style: none; display: grid; gap: 9px; }
.checks li { display: flex; gap: 10px; color: var(--ink-2); }
.checks .icon { width: 18px; height: 18px; color: var(--accent); margin-top: 3px; }
.case-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-size: 0.8rem; padding: 4px 10px; border-radius: 6px; background: var(--bg-alt); color: var(--ink-2); border: 1px solid var(--line); }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.service { position: relative; background: var(--surface); padding: 14px 14px 32px; transition: background-color 0.4s; }
.service h3 { font-size: 1.15rem; margin-bottom: 8px; padding-inline: 16px; }
.service p { color: var(--ink-2); font-size: 0.96rem; padding-inline: 16px; }
.spot { position: relative; isolation: isolate; }
.spot::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.35s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(31, 79, 216, 0.09), transparent 50%);
}
.spot:hover::before { opacity: 1; }

/* Illustrations */
.service-art {
  position: relative; height: 176px; margin-bottom: 26px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(circle, rgba(17, 18, 20, 0.08) 1px, transparent 1.3px) 0 0 / 14px 14px, var(--bg-alt);
  transition: border-color 0.5s var(--ease);
}
.service-art::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 50% 60%, rgba(31, 79, 216, 0.1), transparent 70%); opacity: 0; transition: opacity 0.6s var(--ease); }
.service-art::after { content: ""; position: absolute; inset: auto 0 0; height: 18px; background: linear-gradient(transparent, var(--bg-alt)); pointer-events: none; }
.service-art svg { position: relative; width: 100%; height: 100%; display: block; transition: transform 0.7s var(--ease); font-family: var(--body); }
.service:hover .service-art, .service.live .service-art { border-color: rgba(31, 79, 216, 0.22); }
.service:hover .service-art::before, .service.live .service-art::before { opacity: 1; }
.service:hover .service-art svg { transform: translateY(-4px); }

.s-box { fill: #fff; stroke: #dcdcd6; }
.s-shadow { fill: rgba(17, 18, 20, 0.07); }
.s-ln { fill: none; stroke: #e6e6e1; }
.s-mut { fill: #e4e4df; }
.s-alt { fill: #efefeb; }
.s-side { fill: #f7f7f4; }
.s-ink { fill: #2a2c31; }
.s-ink-ln { fill: none; stroke: #2a2c31; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.s-acc { fill: var(--accent); }
.s-acc-soft { fill: var(--accent-soft); }
.s-acc-ln { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.s-wln { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.s-thin { stroke-width: 1.3; }
.s-wdot { fill: #fff; }
.s-cur { fill: var(--ink); stroke: #fff; stroke-width: 1.2; stroke-linejoin: round; }
.s-shirt { fill: #fff; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.s-fly { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.2; }
.s-ok { fill: #1f9d55; }
.s-ok-soft { fill: #e2f4e9; }
.s-blue { fill: var(--accent-soft); }
.s-grey { fill: #efefeb; }
.s-selr { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.4; }
.s-today { fill: none; stroke: #c9cbd0; stroke-width: 1; }
.s-track { fill: none; stroke: #e4e4df; stroke-width: 5; }
.s-arc { fill: none; stroke: #1f9d55; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 4; transform: rotate(-90deg); }
.s-led { fill: #1f9d55; }
.tap { fill: none; stroke: var(--accent); stroke-width: 2; opacity: 0; }

.s-h { fill: var(--ink); font-family: var(--head); font-size: 12.5px; font-weight: 700; letter-spacing: -0.02em; }
.s-t { fill: var(--ink); font-size: 8.5px; font-weight: 600; }
.s-tl { fill: var(--ink-2); font-size: 8.5px; font-weight: 500; }
.s-tm { fill: #8a8d94; font-size: 7.2px; font-weight: 500; }
.s-ta { fill: var(--accent); font-size: 9px; font-weight: 700; }
.s-ta-sm { fill: var(--accent); font-weight: 600; }
.s-tw { fill: #fff; font-size: 8px; font-weight: 600; text-anchor: middle; }
.s-big { fill: var(--ink); font-family: var(--head); font-size: 14px; font-weight: 700; letter-spacing: -0.02em; }
.s-score { fill: var(--ink); font-family: var(--head); font-size: 12px; font-weight: 700; text-anchor: middle; }
.s-d { fill: var(--ink-2); font-size: 7.5px; font-weight: 500; text-anchor: middle; }
.s-dim { fill: #c2c4c9; }
.s-slot { fill: var(--ink-2); font-size: 8px; font-weight: 600; text-anchor: middle; }
.s-slot-on { fill: var(--accent); }
.s-ini { fill: #6b6f78; font-size: 6px; font-weight: 700; text-anchor: middle; }
.s-pill { font-size: 6.3px; font-weight: 600; text-anchor: middle; }
.s-blue-t { fill: var(--accent); }
.s-grey-t { fill: #6b6f78; }
.s-ok-soft-t, .s-okt { fill: #1a8a4a; }
.s-okt { font-size: 7.2px; font-weight: 600; }
.s-wfill { fill: #fff; }
.s-you.s-tm { fill: var(--accent); font-weight: 600; }
.s-you.s-tl { fill: var(--ink); font-weight: 700; }

/* Motion. Every loop is 7s, starts and ends on the finished frame, and only runs while the card is live or hovered */
:where(.service-art) .a { transform-box: fill-box; transform-origin: center; animation: 7s var(--ease) infinite paused; }
.service:hover .service-art .a, .service.live .service-art .a { animation-play-state: running; }
.tap { animation-name: tap; }
@keyframes tap { 0% { opacity: 0.9; transform: scale(0.3); } 9% { opacity: 0; transform: scale(1.7); } 100% { opacity: 0; transform: scale(1.7); } }
@keyframes press { 0%, 100% { transform: none; } 50% { transform: scale(0.93); } }

/* 1. Website: a visitor arrives, presses "enquire", the owner gets a notification */
.w-cx, .w-cy, .w-click { transform-box: view-box; transform-origin: 0 0; }
.w-cx { transform: translateX(92px); animation-name: w-cx; }
.w-cy { transform: translateY(126px); animation-name: w-cy; }
.w-click { animation-name: w-click; }
@keyframes w-cx { 0%, 5% { transform: translateX(92px); } 6%, 18% { transform: translateX(300px); animation-timing-function: cubic-bezier(0.45, 0, 0.25, 1); } 42%, 100% { transform: translateX(92px); } }
@keyframes w-cy { 0%, 5% { transform: translateY(126px); } 6%, 18% { transform: translateY(176px); animation-timing-function: cubic-bezier(0.1, 0.7, 0.3, 1); } 42%, 100% { transform: translateY(126px); } }
@keyframes w-click { 0%, 2% { opacity: 1; } 5%, 17% { opacity: 0; } 20% { opacity: 1; transform: none; } 45% { transform: scale(0.82); } 49%, 100% { opacity: 1; transform: none; } }
.w-btn { animation-name: w-btn; }
@keyframes w-btn { 0%, 44%, 50%, 100% { transform: none; filter: none; } 46% { transform: scale(0.93); filter: brightness(1.2); } }
.w-toast { animation-name: w-toast; }
@keyframes w-toast { 0%, 2% { opacity: 1; transform: none; } 7%, 52% { opacity: 0; transform: translateY(-10px) scale(0.96); } 58% { opacity: 1; transform: none; animation-timing-function: ease-out; } 100% { opacity: 1; transform: none; } }

/* 2. Store: add to cart, it flies into the cart, the total updates, the order goes through */
.c-add { animation-name: c-add; }
@keyframes c-add { 0%, 19%, 25%, 100% { transform: none; } 22% { transform: scale(0.94); } }
.c-fx, .c-fy { transform-box: view-box; transform-origin: 0 0; }
.c-fx { transform: translateX(165px); animation-name: c-fx; }
.c-fy { transform: translateY(87px); animation-name: c-fy; }
@keyframes c-fx { 0%, 22% { transform: translateX(76px); animation-timing-function: linear; } 40%, 100% { transform: translateX(165px); } }
@keyframes c-fy { 0%, 22% { transform: translateY(124px); animation-timing-function: ease-out; } 31% { transform: translateY(58px); animation-timing-function: ease-in; } 40%, 100% { transform: translateY(87px); } }
.c-item { opacity: 0; animation-name: c-item; }
@keyframes c-item { 0%, 22% { opacity: 0; transform: scale(0.6); } 25% { opacity: 1; transform: scale(1.1); } 38% { opacity: 1; transform: scale(0.9); } 41%, 100% { opacity: 0; transform: scale(0.9); } }
.c-row { animation-name: c-row; }
@keyframes c-row { 0%, 2% { opacity: 1; transform: none; } 7%, 39% { opacity: 0; transform: translateX(-8px); } 45%, 100% { opacity: 1; transform: none; } }
.c-n1, .c-t1 { opacity: 0; animation-name: swap-a; }
.c-n2, .c-t2 { animation-name: swap-b; }
@keyframes swap-a { 0%, 3% { opacity: 0; } 6%, 40% { opacity: 1; } 42%, 100% { opacity: 0; } }
@keyframes swap-b { 0%, 3% { opacity: 1; } 6%, 40% { opacity: 0; } 42%, 100% { opacity: 1; } }
.c-badge { animation-name: c-badge; }
@keyframes c-badge { 0%, 40%, 100% { transform: none; } 44% { transform: scale(1.35); } 50% { transform: none; } }
.c-pay { animation-name: c-pay; }
@keyframes c-pay { 0%, 62% { transform: none; } 65% { transform: scale(0.94); } 68%, 100% { transform: none; } }
.c-done { animation-name: c-done; }
@keyframes c-done { 0%, 3% { opacity: 1; } 7%, 66% { opacity: 0; } 70%, 100% { opacity: 1; } }

/* 3. Booking: pick a day, pick a time, confirm */
.b-day { animation-name: b-day; }
@keyframes b-day { 0%, 3% { opacity: 1; transform: none; } 8%, 20% { opacity: 0; transform: scale(0.4); } 25% { opacity: 1; transform: scale(1.15); } 29%, 100% { opacity: 1; transform: none; } }
.b-dnum { fill: #fff; font-weight: 700; animation-name: b-dnum; }
@keyframes b-dnum { 0%, 3% { fill: #fff; } 8%, 20% { fill: var(--ink-2); } 24%, 100% { fill: #fff; } }
.b-slot { animation-name: b-slot; }
@keyframes b-slot { 0%, 3% { opacity: 1; } 8%, 34% { opacity: 0; } 38%, 100% { opacity: 1; } }
.b-done { animation-name: b-done; }
@keyframes b-done { 0%, 3% { opacity: 1; transform: none; } 8%, 53% { opacity: 0; transform: translateY(3px); } 58%, 100% { opacity: 1; transform: none; } }

/* 4. Web app: a new order lands at the top of the list and the numbers update */
.d-rows { transform: translateY(18px); animation-name: d-rows; }
@keyframes d-rows { 0%, 6% { transform: translateY(18px); } 12%, 30% { transform: none; } 38%, 100% { transform: translateY(18px); } }
.d-new { animation-name: d-new; }
@keyframes d-new { 0%, 2% { opacity: 1; transform: none; } 6%, 34% { opacity: 0; transform: translateY(-6px); } 42%, 100% { opacity: 1; transform: none; } }
.d-flash { fill: var(--accent-soft); opacity: 0; animation-name: d-flash; }
@keyframes d-flash { 0%, 40% { opacity: 0; } 46% { opacity: 1; } 70%, 100% { opacity: 0; } }
.d-n1 { opacity: 0; animation-name: d-n1; }
.d-n2 { animation-name: d-n2; }
@keyframes d-n1 { 0%, 4% { opacity: 0; } 8%, 42% { opacity: 1; } 45%, 100% { opacity: 0; } }
@keyframes d-n2 { 0%, 4% { opacity: 1; transform: none; } 8%, 42% { opacity: 0; transform: translateY(4px); } 46%, 100% { opacity: 1; transform: none; } }
.d-plus { animation-name: d-plus; }
@keyframes d-plus { 0%, 4% { opacity: 1; transform: none; } 8%, 43% { opacity: 0; transform: scale(0.6); } 48% { opacity: 1; transform: scale(1.12); } 52%, 100% { opacity: 1; transform: none; } }

/* 5. SEO: someone searches, the client's site climbs to #1, the speed score fills up */
.g-caret { fill: var(--accent); opacity: 0; }
.g-caret.on { opacity: 1; animation: caret 0.9s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.g-res { animation-name: g-res; }
@keyframes g-res { 0%, 3% { opacity: 1; } 8%, 36% { opacity: 0; } 42%, 100% { opacity: 1; } }
.g-a, .g-b { transform: translateY(32px); }
.g-a { animation-name: g-down; }
.g-b { animation-name: g-down; }
@keyframes g-down { 0%, 7% { transform: translateY(32px); } 8%, 50% { transform: none; } 62%, 100% { transform: translateY(32px); } }
.g-you { animation-name: g-you; }
@keyframes g-you { 0%, 7% { transform: none; } 8%, 50% { transform: translateY(64px); } 62%, 100% { transform: none; } }
.g-glow { animation-name: g-glow; }
@keyframes g-glow { 0%, 50% { opacity: 0.5; } 64% { opacity: 1; } 80%, 100% { opacity: 1; } }
.g-arc { animation-name: g-arc; }
@keyframes g-arc { 0%, 4% { stroke-dashoffset: 4; opacity: 1; } 9% { opacity: 0; } 10%, 62% { stroke-dashoffset: 100; opacity: 0; } 63% { opacity: 1; } 84%, 100% { stroke-dashoffset: 4; opacity: 1; } }
.g-score { animation-name: g-score; }
@keyframes g-score { 0%, 3% { opacity: 1; } 8%, 70% { opacity: 0; } 80%, 100% { opacity: 1; } }

/* 6. Hosting: servers online, SSL renewed, nightly backup runs */
.h-led { animation: h-led 1.4s steps(1) infinite paused; }
@keyframes h-led { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.h-shackle { transform-origin: bottom; animation-name: h-shackle; }
@keyframes h-shackle { 0%, 70%, 82%, 100% { transform: none; } 74%, 78% { transform: translateY(-4px); } }
.h-prog { transform-origin: left center; animation-name: h-prog; }
@keyframes h-prog { 0%, 4% { transform: none; } 9%, 14% { transform: scaleX(0.02); animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1); } 62%, 100% { transform: none; } }
.h-run { opacity: 0; animation-name: swap-c; }
.h-done { animation-name: swap-d; }
@keyframes swap-c { 0%, 4% { opacity: 0; } 8%, 62% { opacity: 1; } 65%, 100% { opacity: 0; } }
@keyframes swap-d { 0%, 4% { opacity: 1; } 8%, 62% { opacity: 0; } 66%, 100% { opacity: 1; } }

/* ---------- Pricing & Calculator ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 56px; }
.pricing-card {
  position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px 24px; transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.pricing-card:hover {
  transform: translateY(-4px); border-color: rgba(31, 79, 216, 0.4);
  box-shadow: 0 16px 36px -12px rgba(17, 18, 20, 0.1);
}
.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 8px 24px -8px rgba(31, 79, 216, 0.25);
}
.badge-popular {
  position: absolute; top: -11px; left: 24px; background: var(--accent); color: #fff;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 12px;
}
.pricing-head h3 { font-size: 1.22rem; font-weight: 600; margin-bottom: 12px; }
.price-tag { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.price-from { font-size: 0.92rem; color: var(--muted); font-weight: 500; }
.price-val { font-family: var(--head); font-size: 2.2rem; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); line-height: 1; }
.price-period { font-size: 0.85rem; color: var(--muted); }
.pricing-desc { font-size: 0.92rem; color: var(--ink-2); line-height: 1.5; margin-bottom: 20px; min-height: 44px; }
.pricing-features { list-style: none; display: grid; gap: 10px; margin-bottom: 26px; padding-top: 18px; border-top: 1px solid var(--line); flex-grow: 1; }
.pricing-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; color: var(--ink-2); line-height: 1.4; }
.pricing-features .icon { width: 16px; height: 16px; color: var(--accent); margin-top: 2px; flex: none; }
.pricing-btn { width: 100%; margin-top: auto; }

/* Interactive Calculator Box */
.calc-box {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 40px; box-shadow: var(--shadow);
}
.calc-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.calc-kicker { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); display: block; margin-bottom: 6px; }
.calc-header h3 { font-size: 1.6rem; letter-spacing: -0.02em; margin-bottom: 6px; }
.calc-badge { font-size: 0.82rem; font-weight: 600; padding: 6px 14px; border-radius: 20px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; flex: none; }

.calc-step-block { margin-bottom: 30px; }
.calc-label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.calc-type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.calc-opt-card {
  position: relative; display: flex; flex-direction: column; padding: 16px 18px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--bg); cursor: pointer; transition: all 0.2s; user-select: none;
}
.calc-opt-card input { position: absolute; opacity: 0; pointer-events: none; }
.calc-opt-card:hover { border-color: var(--ink-2); background: #fff; }
.calc-opt-card.active { border-color: var(--accent); background: var(--accent-soft); }
.calc-opt-title { font-weight: 600; font-size: 0.98rem; margin-bottom: 4px; color: var(--ink); }
.calc-opt-price { font-size: 0.88rem; font-weight: 600; color: var(--accent); }

.calc-addon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.calc-addon-card {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px; border-radius: 10px; border: 1.5px solid var(--line);
  background: var(--bg); cursor: pointer; transition: all 0.2s; user-select: none;
}
.calc-addon-card input { position: absolute; opacity: 0; pointer-events: none; }
.calc-addon-card:hover { border-color: var(--ink-2); background: #fff; }
.calc-addon-card.active { border-color: var(--accent); background: var(--accent-soft); }
.calc-addon-text { font-size: 0.92rem; font-weight: 500; color: var(--ink); min-width: 0; }
.calc-addon-badge { font-size: 0.82rem; font-weight: 600; color: var(--accent); background: #fff; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line); flex: none; }

/* Maintenance Toggle Card */
.calc-maint-card {
  background: #f8f9fc; border: 1.5px solid #d9e2ec; border-radius: 14px; padding: 22px 24px; margin-bottom: 32px;
}
.calc-maint-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 10px; }
.toggle-control { position: relative; display: inline-flex; align-items: center; gap: 14px; cursor: pointer; user-select: none; max-width: 100%; }
.toggle-control input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-switch {
  position: relative; width: 48px; height: 26px; background: #cbd2d9; border-radius: 14px;
  transition: background 0.25s var(--ease); flex: none;
}
.toggle-switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform 0.25s var(--ease);
}
.toggle-control input:checked + .toggle-switch { background: var(--accent); }
.toggle-control input:checked + .toggle-switch::after { transform: translateX(22px); }
.toggle-text { min-width: 0; }
.toggle-text strong { display: block; font-size: 1.05rem; color: var(--ink); }
.toggle-text .muted { font-size: 0.86rem; font-weight: normal; }

.calc-maint-price-badge {
  font-family: var(--head); font-size: 1.25rem; font-weight: 700; color: var(--accent);
  background: #fff; padding: 6px 16px; border-radius: 20px; border: 1px solid #d9e2ec;
}
.calc-maint-note { font-size: 0.88rem; color: var(--ink-2); line-height: 1.5; }

/* Calculator Footer & Live Totals */
.calc-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding-top: 26px; border-top: 1px solid var(--line);
}
.calc-totals { display: flex; align-items: center; gap: 28px; }
.calc-total-col span { display: block; font-size: 0.84rem; margin-bottom: 4px; }
.calc-main-num { font-family: var(--head); font-size: 2rem; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; line-height: 1; }
.calc-maint-num { font-family: var(--head); font-size: 1.45rem; font-weight: 600; color: var(--accent); line-height: 1; }
.calc-total-divider { width: 1px; height: 42px; background: var(--line); }

/* ---------- Process ---------- */
.process { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: s; }
.process li { position: relative; padding-top: 22px; border-top: 2px solid var(--line); }
.process li::before { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: linear-gradient(90deg, var(--accent), #7c5cff); transform: scaleX(0); transform-origin: left; transition: transform 1s 0.2s var(--ease); }
.process li.in::before { transform: scaleX(1); }
.process .num { font-family: var(--head); font-size: 0.9rem; color: var(--muted); font-weight: 600; }
.process h3 { font-size: 1.15rem; margin: 10px 0 8px; }
.process p { color: var(--ink-2); font-size: 0.95rem; }
.benefits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 72px; }
.benefit { display: flex; gap: 16px; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color 0.3s, transform 0.4s var(--ease); }
.benefit:hover { border-color: rgba(31, 79, 216, 0.35); transform: translateY(-2px); }
.benefit > .icon { color: var(--accent); margin-top: 2px; }
.benefit h3 { font-size: 1.05rem; margin-bottom: 4px; }
.benefit p { color: var(--ink-2); font-size: 0.95rem; }

/* ---------- Stack ---------- */
.stack-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }
.stack-grid .section-head { position: sticky; top: 100px; margin-bottom: 0; }
.stack-detail { margin-top: 28px; padding: 20px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); min-height: 96px; }
.stack-detail .tech-name { font-family: var(--head); font-weight: 600; font-size: 1.2rem; margin-bottom: 8px; }
.stack-detail .tech-desc { color: var(--ink-2); font-size: 0.96rem; line-height: 1.55; }
.stack-detail .tech-used { margin-top: 12px; font-size: 0.86rem; }
.stack-detail ul { list-style: none; margin-top: 6px; display: grid; gap: 4px; }
.stack-detail a { font-weight: 600; color: var(--accent); }
.stack-detail a:hover { text-decoration: underline; }
.stack-group { padding: 26px 0; border-top: 1px solid var(--line); }
.stack-group:first-child { border-top: 0; padding-top: 0; }
.stack-group h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-family: var(--body); margin-bottom: 14px; }
.stack-items { display: flex; flex-wrap: wrap; gap: 8px; }
.tech { padding: 9px 15px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line); font-size: 0.94rem; font-weight: 500; transition: all 0.2s; }
.tech.used::after { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-left: 8px; vertical-align: middle; }
.tech:hover { border-color: var(--ink-2); }
.tech.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.tech.active.used::after { background: #fff; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; }
.about-text p { font-size: 1.1rem; color: var(--ink-2); margin-bottom: 18px; }
.about-text p:first-child { font-size: 1.3rem; color: var(--ink); font-family: var(--head); letter-spacing: -0.01em; line-height: 1.45; }
.about-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 32px; }
.about-facts div { background: var(--surface); padding: 18px 20px; }
.about-facts dt { font-size: 0.8rem; color: var(--muted); }
.about-facts dd { font-weight: 500; margin-top: 2px; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; text-align: left; padding: 22px 0; font-family: var(--head); font-size: 1.1rem; font-weight: 600; }
.plus { position: relative; width: 14px; height: 14px; flex: none; }
.plus::before, .plus::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: var(--ink); transition: transform 0.25s; }
.plus::after { transform: rotate(90deg); }
.faq-item.open .plus::after { transform: rotate(0); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s ease; }
.faq-a > div { overflow: hidden; }
.faq-a p { color: var(--ink-2); padding-bottom: 22px; max-width: 620px; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }

/* ---------- Contact / Planner ---------- */
.section-dark { position: relative; isolation: isolate; overflow: hidden; background: var(--dark); color: #f3f3f1; }
.section-dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(700px circle at 85% 0%, rgba(31, 79, 216, 0.22), transparent 60%),
              radial-gradient(600px circle at 0% 100%, rgba(124, 92, 255, 0.12), transparent 60%);
}
.section-dark .kicker { color: #8ea8ff; }
.section-dark .section-sub { color: #a9acb4; }
.planner { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
.planner-form, .summary { background: rgba(23, 24, 27, 0.75); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--dark-line); border-radius: 18px; padding: 32px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 30px 60px -30px rgba(0, 0, 0, 0.6); }
.steps { list-style: none; display: flex; gap: 8px; margin-bottom: 30px; flex-wrap: wrap; }
.steps li { display: flex; align-items: center; gap: 8px; font-size: 0.86rem; color: #7d808a; padding-right: 14px; }
.steps li span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--dark-line); font-size: 0.76rem; font-weight: 600; flex: none; }
.steps li.active { color: #fff; }
.steps li.active span { background: #fff; color: var(--ink); border-color: #fff; }
.steps li.done { color: #c9cbd1; cursor: pointer; }
.steps li.done span { background: var(--accent); border-color: var(--accent); color: #fff; }
.step { border: 0; min-height: 250px; }
.step legend, .done h3 { font-family: var(--head); font-size: 1.4rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 20px; color: #fff; }
.label { font-size: 0.86rem; color: #a9acb4; margin: 4px 0 10px; }
.label + .options { margin-bottom: 20px; }
.options { display: flex; flex-wrap: wrap; gap: 10px; }
.options-cards { display: grid; grid-template-columns: repeat(3, 1fr); }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { display: block; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--dark-line); font-size: 0.94rem; color: #d7d9de; transition: all 0.2s; }
.options-cards .opt span { padding: 18px; height: 100%; font-weight: 500; }
.opt:hover span { border-color: #4a4d55; }
.opt input:checked + span { border-color: var(--accent); background: rgba(31, 79, 216, 0.16); color: #fff; }
.opt input:focus-visible + span { outline: 2px solid #8ea8ff; outline-offset: 2px; }

.form-cost-preview {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; border-radius: 12px; background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--dark-line); margin-bottom: 18px;
}
.label-dim { font-size: 0.82rem; color: #a9acb4; display: block; margin-bottom: 4px; }
.cost-num { font-family: var(--head); font-size: 1.85rem; font-weight: 700; color: #fff; line-height: 1; }
.cost-badge { font-size: 0.78rem; font-weight: 600; padding: 4px 10px; border-radius: 12px; background: rgba(31, 79, 216, 0.3); color: #8ea8ff; border: 1px solid rgba(31, 79, 216, 0.5); }

.form-maint-box {
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--dark-line); border-radius: 12px;
  padding: 18px 20px; margin-bottom: 22px;
}
.form-maint-box .toggle-text strong { color: #fff; font-size: 0.98rem; }
.form-maint-box .maint-fee { display: inline-block; font-size: 0.92rem; font-weight: 600; color: #8ea8ff; margin-left: 8px; }
.form-maint-badge { font-family: var(--head); font-size: 1.15rem; font-weight: 700; color: #8ea8ff; margin-top: 10px; }
.maint-hint { font-size: 0.82rem; color: #a9acb4; margin-top: 8px; line-height: 1.4; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fields label { display: grid; gap: 6px; font-size: 0.86rem; color: #a9acb4; }
.fields .full { grid-column: 1 / -1; }
/* Explicit 16px prevents iOS Safari from auto-zooming and shifting the viewport on input focus */
.fields input, .fields textarea { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--dark-line); background: var(--dark); color: #fff; font: inherit; font-size: 16px; line-height: 1.4; resize: vertical; transition: border-color 0.2s; }
.fields input:focus, .fields textarea:focus { outline: none; border-color: var(--accent); }
.hp { position: absolute; left: -9999px; }
.form-error { min-height: 1.4em; color: #ff8a8a; font-size: 0.9rem; margin-top: 12px; }
.form-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
.done { text-align: center; padding: 30px 0; }
.done-icon { width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: #16a34a; color: #fff; font-size: 1.6rem; }
.done p { color: #c9cbd1; max-width: 420px; margin: 0 auto 24px; }
.mail-options { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: -6px 0 24px; }
.mail-options a, .mail-options button { padding: 11px 18px; border-radius: 10px; border: 1px solid var(--dark-line); color: #fff; font-weight: 600; font-size: 0.92rem; transition: border-color 0.2s, background 0.2s; }
.mail-options a:first-child { background: var(--accent); border-color: var(--accent); }
.mail-options a:hover, .mail-options button:hover { border-color: #fff; }
.mail-menu {
  position: absolute; z-index: 130; min-width: 220px; max-width: calc(100vw - 24px); padding: 6px; border-radius: 14px; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); box-shadow: 0 24px 48px -16px rgba(17, 18, 20, 0.35); animation: drop 0.25s var(--ease);
}
.mail-menu p { padding: 8px 12px 6px; font-size: 0.78rem; color: var(--muted); }
.mail-menu a, .mail-menu button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 9px; font-size: 0.94rem; font-weight: 500; }
.mail-menu a:hover, .mail-menu button:hover { background: var(--bg-alt); }
.mail-menu button { border-top: 1px solid var(--line); border-radius: 0 0 9px 9px; margin-top: 4px; color: var(--ink-2); }
.summary { position: sticky; top: 96px; }
.summary h3 { font-size: 1.05rem; margin-bottom: 18px; color: #fff; }
.summary dl > div { padding: 12px 0; border-top: 1px solid var(--dark-line); }
.summary dt { font-size: 0.78rem; color: #7d808a; text-transform: uppercase; letter-spacing: 0.06em; }
.summary dd { margin-top: 2px; color: #e7e8eb; font-size: 0.95rem; word-break: break-word; }
.summary dd.muted { color: #5c5f68; }
.direct { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--dark-line); font-size: 0.92rem; color: #a9acb4; }
.direct-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.direct a { color: #fff; font-weight: 600; word-break: break-all; }
.direct a:hover { color: #8ea8ff; }
#phone-link { display: block; margin-top: 6px; }
.copy { font-size: 0.8rem; padding: 5px 10px; border: 1px solid var(--dark-line); border-radius: 7px; color: #c9cbd1; flex: none; }
.copy:hover { border-color: #fff; color: #fff; }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: #8b8e97; border-top: 1px solid var(--dark-line); font-size: 0.9rem; }
.footer-mark {
  padding-top: 48px; font-family: var(--head); font-weight: 700; letter-spacing: -0.05em; line-height: 0.9; white-space: nowrap;
  font-size: clamp(2.6rem, 11vw, 8.4rem);
  background: linear-gradient(180deg, #2a2c31 10%, var(--dark) 95%); -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none;
}
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--dark-line); }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px 20px; }
.footer a:hover { color: #fff; }

/* ---------- Lightbox / toast ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10, 10, 12, 0.92); display: flex; align-items: center; justify-content: center; padding: 40px 80px; overscroll-behavior: contain; }
.lightbox[hidden] { display: none; }
.lightbox figure { max-width: 1200px; width: 100%; display: grid; justify-items: center; gap: 14px; }
.lightbox img { max-height: 82vh; width: auto; max-width: 100%; border-radius: 10px; }
.lightbox img.is-mobile { max-height: 82vh; }
.lightbox figcaption { color: #c9cbd1; font-size: 0.9rem; text-align: center; }
.lb-close { position: absolute; top: 16px; right: 22px; font-size: 2.2rem; color: #fff; line-height: 1; width: 44px; height: 44px; display: grid; place-items: center; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 1.8rem; line-height: 1; display: grid; place-items: center; }
.lb-nav:hover { background: rgba(255, 255, 255, 0.22); }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.toast { position: fixed; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 10px; font-size: 0.92rem; opacity: 0; pointer-events: none; transition: all 0.25s; z-index: 120; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); filter: blur(4px); transition: opacity 0.8s var(--ease) var(--d, 0s), transform 0.8s var(--ease) var(--d, 0s), filter 0.8s var(--ease) var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; filter: none; }

/* ---------- Responsive ---------- */
/* 13" laptops / 1280px displays */
@media (max-width: 1280px) {
  .nav-inner { gap: 14px; }
  .brand-mark { height: 28px; }
  .nav-links { gap: 2px; }
  .nav-links a { padding: 7px 9px; font-size: 0.87rem; }
  .nav-cta { padding: 8px 13px; font-size: 0.84rem; }
  .hero-grid { gap: 40px; }
  .clients { margin-top: 40px; }
}

/* Tablets & smaller laptops (iPad Pro / Air / Mini landscape & portrait) */
@media (max-width: 1140px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .nav-indicator { display: none; }
  /* Keep mobile/tablet navbar width constant when scrolling so brand & buttons never jump horizontally */
  .nav-inner { width: min(1200px, 100% - 32px); padding: 0 12px; }
  .nav.scrolled .nav-inner { width: min(1200px, 100% - 32px); padding: 0 12px; }
  /* Full-screen menu. backdrop-filter would trap position:fixed inside the bar, so drop it while open */
  body.menu-open .nav-inner { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: fixed; inset: 0; height: 100dvh; max-height: 100dvh;
    z-index: -1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    padding: 88px 24px calc(28px + env(safe-area-inset-bottom)); background: var(--bg);
    animation: fade-in 0.3s ease;
  }
  .nav-links.open a {
    font-family: var(--head); font-size: clamp(1.25rem, 4.6vw, 1.65rem); font-weight: 600; letter-spacing: -0.02em; color: var(--ink);
    padding: 12px 2px; border-bottom: 1px solid var(--line); border-radius: 0; animation: rise 0.45s var(--ease) both;
  }
  .nav-links.open a.active { color: var(--accent); }
  .nav-links.open a:nth-child(2) { animation-delay: 0.04s; }
  .nav-links.open a:nth-child(3) { animation-delay: 0.08s; }
  .nav-links.open a:nth-child(4) { animation-delay: 0.12s; }
  .nav-links.open a:nth-child(5) { animation-delay: 0.16s; }
  .nav-links.open a:nth-child(6) { animation-delay: 0.2s; }
  .nav-links.open a:nth-child(7) { animation-delay: 0.24s; margin-bottom: 24px; }
  .nav-links.open a.menu-cta {
    display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: auto; padding: 16px; border: 0; border-radius: 14px;
    font-family: var(--body); font-size: 1.02rem; letter-spacing: 0; color: #fff; background-color: #85a2a7; background-image: linear-gradient(#737a8d, #363f70);
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.22), 0 19px 22px -8px rgba(13, 71, 135, 0.87); animation-delay: 0.28s;
  }
  .nav.on-dark .nav-links.open { background: var(--dark); }
  .nav.on-dark .nav-links.open a { color: #fff; border-color: var(--dark-line); }
  .nav.on-dark .nav-links.open a.active { color: #8ea8ff; }
  .nav .nav-links.open a.menu-cta, .nav.on-dark .nav-links.open a.menu-cta { color: #fff; border: 0; }

  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .calc-type-grid { grid-template-columns: repeat(2, 1fr); }
  .calc-addon-grid { grid-template-columns: repeat(2, 1fr); }
  .calc-box { padding: 30px; }
}
.menu-cta { display: none; }
@keyframes fade-in { from { opacity: 0; } }

@media (max-width: 960px) {
  .hero-grid, .case, .stack-grid, .about-grid, .faq-grid, .planner { grid-template-columns: 1fr; }
  .hero-grid { gap: 40px; }
  .hero-visual { max-width: 580px; margin-inline: auto; }
  .case { gap: 28px; }
  .case.flip .case-media { order: 0; }
  .case-media, .stack-grid .section-head, .summary { position: static; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 40px; }
}

/* iPhone & Android phones */
@media (max-width: 640px) {
  html { scroll-padding-top: 76px; }
  .container { width: min(100% - 32px, 1200px); }
  .nav-inner { width: min(100% - 20px, 1200px); height: 58px; gap: 10px; padding: 0 10px; }
  .nav.scrolled { padding-top: 8px; }
  .nav.scrolled .nav-inner { width: min(100% - 20px, 1200px); height: 56px; padding: 0 10px; border-radius: 15px; }
  .brand-mark { height: 24px; max-width: 132px; }
  .nav-actions { gap: 8px; }
  .nav-cta { display: none; }

  .hero { padding: 90px 0 32px; }
  h1 { font-size: clamp(1.85rem, 7.2vw, 2.45rem); }
  h2 { font-size: clamp(1.55rem, 6vw, 2.05rem); }
  .hero-text { font-size: 1.02rem; margin-top: 16px; }
  .hero-actions { margin-top: 24px; }
  .hero-meta { gap: 18px 28px; margin-top: 32px; padding-top: 20px; }
  .hero-visual { max-width: 100%; aspect-ratio: 1.14; }
  .browser { border-radius: 9px; }
  .browser-bar { height: 22px; padding: 0 8px; gap: 4px; }
  .browser-bar i { width: 6px; height: 6px; }
  .browser-bar span { font-size: 0.65rem; padding: 0 6px; margin-left: 4px; max-width: 72%; }
  .phone { border-width: 3px; border-radius: 13px; width: 25%; }
  .clients { margin-top: 34px; padding: 18px 0; gap: 12px 20px; }
  #client-list { gap: 10px 18px; }

  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .case { padding: 40px 0; }
  .case-shot.is-mobile img { width: 42%; border-width: 4px; border-radius: 14px; }

  .pricing-grid { grid-template-columns: 1fr; margin-bottom: 36px; }
  .pricing-card { padding: 26px 20px; }
  .pricing-desc { min-height: 0; }

  .calc-box { padding: 22px 16px; border-radius: 16px; }
  .calc-header { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 22px; padding-bottom: 18px; }
  .calc-header h3 { font-size: 1.35rem; }
  .calc-badge { white-space: normal; }
  .calc-type-grid, .calc-addon-grid { grid-template-columns: 1fr; }
  .calc-maint-card { padding: 18px 16px; }
  .calc-maint-top { gap: 12px; }
  .calc-footer { flex-direction: column; align-items: stretch; gap: 18px; }
  .calc-totals { flex-wrap: wrap; justify-content: space-between; gap: 14px 20px; }
  .calc-total-divider { display: none; }
  .calc-main-num { font-size: 1.7rem; }
  .calc-maint-num { font-size: 1.3rem; }
  .calc-footer .btn { width: 100%; }

  .services, .process, .benefits, .about-facts, .fields { grid-template-columns: 1fr; }
  .benefits { margin-top: 44px; }
  .benefit { padding: 20px; }
  .options-cards { grid-template-columns: 1fr 1fr; }
  .case-facts strong { font-size: 1.3rem; }
  .case-facts div { padding: 12px; }
  .planner-form, .summary { padding: 20px 16px; border-radius: 14px; }
  .form-cost-preview { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; }
  .steps { gap: 6px; margin-bottom: 22px; }
  .steps li { font-size: 0; padding-right: 0; }
  .steps li span { font-size: 0.76rem; }
  .direct-row { flex-wrap: wrap; gap: 8px; }

  .footer-mark { font-size: clamp(2.6rem, 15.5vw, 5.2rem); padding-top: 36px; }
  .footer-inner { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .footer-links { flex-wrap: wrap; gap: 12px 18px; }

  .lightbox { padding: 64px 16px 84px; }
  .lightbox img { max-height: 70dvh; }
  .lb-close { top: 12px; right: 12px; }
  .lb-nav { top: auto; bottom: 16px; transform: none; }
  .lb-prev { left: calc(50% - 58px); }
  .lb-next { right: calc(50% - 58px); }
}

/* Narrow phones (iPhone SE, 320px–480px) */
@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; }
  .case-facts { grid-template-columns: 1fr; }
  .case-facts div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 14px; }
  .case-facts div + div { border-left: 0; border-top: 1px solid var(--line); }
  .case-foot .btn { width: 100%; }
  .options-cards { grid-template-columns: 1fr; }
  .thumb, .tech { min-height: 40px; }
  .form-nav { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
  .marquee-track { flex-wrap: wrap; width: auto; }
  .marquee-track .dup { display: none; }
  .process li::before { transform: scaleX(1); }
}
