/* ==========================================================================
   Cipal IT — v2
   No frameworks. Animations use transform/opacity only.
   ========================================================================== */

:root {
  --bg: #070a12;
  --bg-2: #0b1020;
  --surface: #10172b;
  --surface-2: #151e36;
  --surface-3: #1c2744;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f3f6fc;
  --muted: #a6b0cb;
  --faint: #8590ad;

  --violet: #8b7cff;
  --cyan: #22d3ee;
  --grad: linear-gradient(100deg, var(--violet), var(--cyan));

  --c-till: #fbbf24;
  --c-web: #a78bfa;
  --c-seo: #34d399;
  --c-auto: #22d3ee;

  --ok: #34d399;
  --danger: #fb7185;

  --radius: 16px;
  --radius-lg: 24px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;

  color-scheme: dark;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote {
  margin: 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

ul, ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  touch-action: manipulation;
}

::selection {
  background: var(--violet);
  color: #060912;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.i {
  width: 20px;
  height: 20px;
  display: inline-block;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.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;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  background: var(--cyan);
  color: #060912;
  font-weight: 600;
  padding: 0.7rem 1.1rem;
  border-radius: 10px;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 12px;
}

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: clamp(72px, 10vw, 128px);
}

.section-alt {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.section-head.center .lead {
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font: 600 0.8125rem/1.4 var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}

.h2 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 700;
  margin-top: 0.75rem;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  margin-top: 1rem;
  max-width: 62ch;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font: 600 1rem/1 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  transition: translate 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background-color 0.2s, border-color 0.2s, opacity 0.2s;
}
.btn .i {
  width: 18px;
  height: 18px;
}
.btn-primary {
  background: var(--grad);
  color: #060912;
  box-shadow: 0 10px 30px -10px rgba(139, 124, 255, 0.6);
}
.btn-primary:hover {
  translate: 0 -2px;
  box-shadow: 0 14px 36px -10px rgba(139, 124, 255, 0.8);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-2);
  color: var(--text);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.28);
}
.btn:active {
  translate: 0 0;
  scale: 0.98;
}
.btn-sm {
  min-height: 42px;
  padding: 0.55rem 1rem;
  font-size: 0.9375rem;
}
.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  translate: none;
  box-shadow: none;
}
.btn-block {
  width: 100%;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s;
}
.site-header.is-scrolled {
  background: rgba(7, 10, 18, 0.8);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.site-header.menu-open {
  background: var(--bg);
  border-bottom-color: var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font: 700 1.125rem/1 var(--font-display);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang {
  display: inline-flex;
  padding: 3px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.03);
}
.lang a {
  display: grid;
  place-items: center;
  min-width: 38px;
  min-height: 36px;
  padding: 0 0.5rem;
  border-radius: 7px;
  color: var(--muted);
  font: 600 0.8125rem/1 var(--font-display);
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.lang a:hover {
  color: var(--text);
}
.lang a[aria-current="page"] {
  background: var(--surface-3);
  color: var(--text);
}
.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--grad);
  color: #060912;
  display: grid;
  place-items: center;
}
.logo-mark .i {
  width: 18px;
  height: 18px;
  stroke-width: 2.4;
}
.logo b {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: none;
}
.nav a {
  position: relative;
  padding-block: 0.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  scale: 0 1;
  transform-origin: left;
  transition: scale 0.25s var(--ease);
}
.nav a:hover,
.nav a[aria-current="true"] {
  color: var(--text);
}
.nav a:hover::after,
.nav a[aria-current="true"]::after {
  scale: 1 1;
}

.header-cta {
  display: none;
}

.menu-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: transparent;
}
.menu-btn line {
  transition: transform 0.25s var(--ease), opacity 0.2s;
  transform-origin: center;
  transform-box: fill-box;
}
.menu-btn[aria-expanded="true"] .l1 {
  transform: translateY(6px) rotate(45deg);
}
.menu-btn[aria-expanded="true"] .l2 {
  opacity: 0;
}
.menu-btn[aria-expanded="true"] .l3 {
  transform: translateY(-6px) rotate(-45deg);
}

/* Lives outside <header>: a backdrop-filter ancestor would become the
   containing block for this fixed panel and collapse its height. */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 49;
  padding: 16px var(--gutter) 40px;
  background: var(--bg);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  translate: 0 -8px;
  transition: opacity 0.25s var(--ease), translate 0.25s var(--ease), visibility 0.25s;
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
  transition: opacity 0.25s var(--ease), translate 0.25s var(--ease), visibility 0s;
}
.mobile-menu a:not(.btn) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  border-bottom: 1px solid var(--line);
  font: 500 1.25rem/1 var(--font-display);
  text-decoration: none;
}
.mobile-menu a:not(.btn) .i {
  color: var(--faint);
}
.mobile-menu .btn {
  margin-top: 28px;
}

@media (min-width: 1024px) {
  .nav {
    display: flex;
    gap: clamp(1.1rem, 2.2vw, 2rem);
  }
  .header-cta {
    display: inline-flex;
  }
  .menu-btn,
  .mobile-menu {
    display: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(40px, 8vw, 96px));
  padding-bottom: clamp(64px, 9vw, 112px);
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(640px 420px at 78% 18%, rgba(139, 124, 255, 0.2), transparent 70%),
    radial-gradient(520px 420px at 12% 85%, rgba(34, 211, 238, 0.1), transparent 70%);
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 75% 60% at 50% 0%, #000 30%, transparent 85%);
  mask-image: radial-gradient(ellipse 75% 60% at 50% 0%, #000 30%, transparent 85%);
}
.hero .container {
  position: relative;
}

.hero-grid {
  display: grid;
  gap: clamp(48px, 6vw, 64px);
  align-items: center;
}
@media (min-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
}
.pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
}
.pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--ok);
  animation: ping 2s var(--ease) infinite;
}
@keyframes ping {
  to {
    scale: 2.6;
    opacity: 0;
  }
}

.hero-title {
  margin-top: 1.25rem;
  font-size: clamp(2.6rem, 6.6vw, 4.6rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.hero-sub {
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.7vw, 1.25rem);
  max-width: 56ch;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2rem;
}
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.9375rem;
}
.hero-points li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.hero-points .i {
  width: 18px;
  height: 18px;
  color: var(--ok);
}

/* Hero live board */
.board {
  display: grid;
  gap: 14px;
}
@media (min-width: 560px) {
  .board {
    grid-template-columns: 1fr 1fr;
  }
}
.bc {
  --accent: var(--violet);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  padding: 16px 18px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01)), var(--surface);
  box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.8);
}
.bc::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--accent);
  opacity: 0.85;
}
.bc-till { --accent: var(--c-till); }
.bc-seo { --accent: var(--c-seo); }
.bc-web { --accent: var(--c-web); }
.bc-auto { --accent: var(--c-auto); }

.bc-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
}
.bc-head .i {
  width: 18px;
  height: 18px;
  color: var(--accent);
}
.bc-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ok);
}
.bc-live .pulse {
  width: 6px;
  height: 6px;
}
.bc-big {
  margin-top: 0.85rem;
  font: 700 1.6rem/1.15 var(--font-display);
  font-variant-numeric: tabular-nums;
}
.bc-small {
  margin-top: 0.3rem;
  font-size: 0.8125rem;
  color: var(--muted);
}
.bc > * {
  align-self: stretch;
}
.bc > .rank-badge {
  align-self: flex-start;
}
/* Bottom line of each card pins to the card's bottom edge so cards in a row align */
.bc > .bc-row,
.bc > .rank-badge {
  margin-top: auto;
}
.bc > :has(+ .bc-row),
.bc > :has(+ .rank-badge) {
  margin-bottom: 0.75rem;
}
.bc-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
}
.bc-row .ok {
  color: var(--ok);
  font-weight: 600;
}

.swap {
  transition: opacity 0.26s var(--ease), translate 0.26s var(--ease);
}
.swap.is-out {
  opacity: 0;
  translate: 0 6px;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #052e1f;
  background: var(--c-seo);
}

.stars {
  --rating: 5;
  display: inline-block;
  width: 70px;
  height: 14px;
  vertical-align: -2px;
  background: linear-gradient(90deg, #fbbc04 calc(var(--rating) / 5 * 100%), #5b647d 0);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.4l-5.9 3.1 1.2-6.5L2.5 9.4l6.6-.9z'/%3E%3C/svg%3E") 0 0 / 14px 14px repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.4l-5.9 3.1 1.2-6.5L2.5 9.4l6.6-.9z'/%3E%3C/svg%3E") 0 0 / 14px 14px repeat-x;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 54px;
  margin-top: 0.9rem;
}
.bars span {
  flex: 1;
  height: var(--h);
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, var(--c-web), rgba(167, 139, 250, 0.25));
  transform-origin: bottom;
}
.js .bars span {
  animation: grow 1s var(--ease) both;
  animation-delay: calc(var(--i) * 70ms + 500ms);
}
@keyframes grow {
  from {
    scale: 1 0;
  }
}

.log {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.8rem;
  font-size: 0.8125rem;
}
.log li {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  align-items: start;
  gap: 0.5rem;
  color: var(--muted);
}
.log li:first-child {
  color: var(--text);
}
.log .i {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--ok);
}
.log time {
  color: var(--faint);
  font-size: 0.75rem;
  white-space: nowrap;
}
.log li.is-new {
  animation: slideIn 0.45s var(--ease) both;
}
@keyframes slideIn {
  from {
    opacity: 0;
    translate: 0 -8px;
  }
}

/* ---------- Standards strip ---------- */

.standards {
  padding-block: clamp(40px, 6vw, 56px);
  border-block: 1px solid var(--line);
  background: var(--bg-2);
}
.standards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 20px;
}
@media (min-width: 900px) {
  .standards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.standard b {
  display: block;
  font: 700 clamp(1.75rem, 3.6vw, 2.5rem)/1.1 var(--font-display);
  letter-spacing: -0.02em;
}
.standard span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* ---------- Services overview ---------- */

.svc-grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 640px) {
  .svc-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1140px) {
  .svc-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.accent-till { --accent: var(--c-till); }
.accent-web { --accent: var(--c-web); }
.accent-seo { --accent: var(--c-seo); }
.accent-auto { --accent: var(--c-auto); }

.svc-card {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}
.svc-card:hover {
  translate: 0 -4px;
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}

.icon-box {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.icon-box .i {
  width: 24px;
  height: 24px;
}

.svc-card h3 {
  margin-top: 1.25rem;
  font-size: 1.3rem;
}
.svc-tag {
  margin-top: 0.35rem;
  color: var(--accent);
  font-size: 0.9375rem;
  font-weight: 600;
}
.svc-card > p {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.9688rem;
}

.ticks {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.25rem;
  font-size: 0.9375rem;
}
.ticks li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.ticks .i {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--accent, var(--ok));
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  min-height: 44px;
}
.text-link .i {
  width: 18px;
  height: 18px;
  transition: translate 0.2s var(--ease);
}
.text-link:hover .i {
  translate: 4px 0;
}

/* ---------- Explore tabs ---------- */

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  max-width: max-content;
  margin-inline: auto;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
}
@media (min-width: 860px) {
  .tabs {
    display: flex;
  }
}
.tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.6rem 1.1rem;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: background-color 0.2s, color 0.2s;
}
.tab .i {
  color: var(--accent);
}
@media (max-width: 479px) {
  .tab {
    gap: 0.4rem;
    padding: 0.6rem 0.6rem;
    font-size: 0.875rem;
    white-space: nowrap;
  }
}
.tab:hover {
  color: var(--text);
}
.tab[aria-selected="true"] {
  background: var(--surface-3);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-2);
}

.panel {
  display: grid;
  gap: clamp(32px, 5vw, 56px);
  align-items: start;
  margin-top: clamp(32px, 5vw, 56px);
}
@media (min-width: 1180px) {
  .panel {
    grid-template-columns: 0.92fr 1.08fr;
  }
}
@media (min-width: 720px) and (max-width: 1179px) {
  .panel-copy .ticks {
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
  }
}
.panel:focus-visible {
  outline-offset: 8px;
}
.panel.is-entering {
  animation: fadeUp 0.45s var(--ease);
}
@keyframes fadeUp {
  from {
    opacity: 0;
    translate: 0 12px;
  }
}

.panel-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9375rem;
}
.panel-copy h3 {
  margin-top: 0.6rem;
  font-size: clamp(1.65rem, 3vw, 2.2rem);
}
.panel-copy .what {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.0625rem;
}
.drop {
  margin-top: 10px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s, background-color 0.2s;
}
.panel-copy .what + .drop {
  margin-top: 1.75rem;
}
.drop[open] {
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  background: color-mix(in srgb, var(--accent) 5%, transparent);
}
.drop summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 52px;
  padding: 14px 18px;
  list-style: none;
  cursor: pointer;
  color: var(--text);
  font: 700 0.9375rem/1.4 var(--font-body);
}
.drop summary::-webkit-details-marker {
  display: none;
}
.drop summary .i {
  color: var(--accent);
  transition: rotate 0.25s var(--ease);
}
.drop[open] summary .i {
  rotate: 180deg;
}
.drop summary:focus-visible {
  border-radius: 14px;
  outline-offset: -2px;
}
.panel-copy .drop .ticks,
.panel-copy .drop .chips {
  margin: 0;
  padding: 2px 18px 18px;
  font-size: 1rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1rem;
}
.chip {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 0.8125rem;
}

.callout {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.75rem;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  font-size: 0.9375rem;
}
.callout .i {
  margin-top: 2px;
  color: var(--accent);
}

/* Demo shell */
.demo {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-2);
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 30px 60px -32px rgba(0, 0, 0, 0.85);
}
.demo-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.9375rem;
  color: var(--muted);
}
.demo-title {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.dots {
  display: flex;
  gap: 6px;
}
.dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3a4463;
}
.demo-badge {
  flex: none;
  margin-left: auto;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}
.demo-body {
  padding: clamp(14px, 2.5vw, 24px);
}
.demo-note {
  margin-top: 12px;
  color: var(--faint);
  font-size: 0.8125rem;
}

.seg {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.seg button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 40px;
  padding: 0.4rem 0.9rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background-color 0.2s, color 0.2s;
}
.seg button[aria-pressed="true"] {
  background: var(--surface-3);
  color: var(--text);
}

/* Till demo */
.till {
  display: grid;
  gap: 14px;
}
/* minmax(0, …) stops the receipt's contents from resizing the columns as items are added */
@media (min-width: 600px) {
  .till {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}
.till-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 8px;
  align-content: start;
}
.till-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.35rem;
  min-height: 84px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-weight: 600;
  font-size: 0.9375rem;
  text-align: left;
  transition: scale 0.12s, border-color 0.2s, background-color 0.2s;
}
.till-item:hover {
  border-color: color-mix(in srgb, var(--c-till) 55%, transparent);
}
.till-item:active {
  scale: 0.96;
}
.till-item[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}
.till-item .price {
  color: var(--c-till);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}
.till-item .stock {
  color: var(--faint);
  font-size: 0.75rem;
  font-weight: 500;
}
.till-item .stock.low {
  color: var(--c-till);
}

/* Fixed height: the line list scrolls instead of stretching the demo */
.receipt {
  display: flex;
  flex-direction: column;
  height: 360px;
  min-width: 0;
  padding: 14px;
  border-radius: 14px;
  border: 1px dashed var(--line-2);
  background: #0b1122;
}
.receipt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.receipt-title {
  min-width: 0;
  font: 600 0.75rem/1.2 var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.receipt-clear {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex: none;
  min-height: 32px;
  padding: 0 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}
.receipt-clear .i {
  width: 14px;
  height: 14px;
}
.receipt-clear:hover:not([disabled]) {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.28);
}
.receipt-clear[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}
.till-lines {
  flex: 1;
  min-height: 0;
  margin-top: 10px;
  padding-right: 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
  font-size: 0.875rem;
}
.till-line .name {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.3;
}
.till-empty {
  padding-block: 8px;
  color: var(--faint);
}
.till-line {
  display: grid;
  grid-template-columns: 1fr auto auto 32px;
  align-items: center;
  gap: 8px;
  padding-block: 4px;
  animation: slideIn 0.3s var(--ease) both;
}
.till-line .qty {
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.till-line .amt {
  font-variant-numeric: tabular-nums;
  min-width: 4.5ch;
  text-align: right;
}
.till-line button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--muted);
}
.till-line button .i {
  width: 14px;
  height: 14px;
}
.till-total {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line-2);
  font: 700 1.25rem/1.2 var(--font-display);
  font-variant-numeric: tabular-nums;
}
.till-actions {
  margin-top: 12px;
}
.btn-till {
  background: var(--c-till);
  color: #1f1500;
}
.till-status {
  min-height: 1.4em;
  margin-top: 10px;
  color: var(--ok);
  font-size: 0.8125rem;
}
.till-status.is-warn {
  color: var(--c-till);
}
.till-day {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}

/* Website demo */
.web-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.swatches {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  color: var(--muted);
}
.swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: var(--sw);
  box-shadow: inset 0 0 0 3px var(--surface);
}
.swatch[aria-pressed="true"] {
  border-color: var(--text);
}

.mock-wrap {
  display: flex;
  justify-content: center;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: radial-gradient(circle at 50% 0%, rgba(167, 139, 250, 0.14), transparent 70%), #0b1122;
  transition: opacity 0.16s;
}
.mock-wrap.is-switching {
  opacity: 0;
}
.mock {
  --sa: #7c6cf0;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  background: #f7f7f4;
  color: #15161b;
  font-size: 12px;
  line-height: 1.4;
}
.mock[data-device="mobile"] {
  max-width: 230px;
  border-radius: 24px;
  border: 6px solid #232c49;
}
.mock-top {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  background: #e8e7e2;
}
.mock-top i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c9c8c2;
}
.mock-url {
  flex: 1;
  margin-left: 6px;
  padding: 3px 8px;
  border-radius: 6px;
  background: #fff;
  color: #6b6d75;
  font-size: 11px;
}
.mock-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  font-weight: 700;
}
.mock-nav span {
  display: flex;
  gap: 12px;
  color: #50535c;
  font-weight: 500;
  font-size: 11px;
}
.mock-burger {
  display: none;
  width: 16px;
  height: 10px;
  border-block: 2px solid #15161b;
  position: relative;
}
.mock-burger::after {
  content: "";
  position: absolute;
  inset: 2px 0 auto;
  height: 2px;
  background: #15161b;
}
.mock[data-device="mobile"] .mock-nav span {
  display: none;
}
.mock[data-device="mobile"] .mock-burger {
  display: block;
}
.mock[data-device="mobile"] .mock-top i,
.mock[data-device="mobile"] .mock-url {
  display: none;
}
.mock-hero {
  padding: 20px 14px 22px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--sa) 22%, #fff), #fff 70%);
  transition: background 0.3s;
}
.mock-hero strong {
  display: block;
  max-width: 15ch;
  font: 700 20px/1.12 var(--font-display);
  letter-spacing: -0.02em;
}
.mock-hero p {
  margin-top: 6px;
  color: #50535c;
  font-size: 11px;
}
.mock-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 7px 12px;
  border-radius: 7px;
  background: var(--sa);
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  transition: background-color 0.3s;
}
.mock-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px 14px 16px;
}
.mock[data-device="mobile"] .mock-cards {
  grid-template-columns: 1fr;
}
.mock-card {
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #e6e5e0;
  background: #fff;
  font-weight: 600;
  font-size: 11px;
}
.mock-card i {
  display: block;
  height: 34px;
  margin-bottom: 6px;
  border-radius: 5px;
  background: color-mix(in srgb, var(--sa) 26%, #eee);
  transition: background-color 0.3s;
}

.scores {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 16px;
}
.score {
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
  color: var(--muted);
  font-size: 0.75rem;
}
.ring {
  position: relative;
  width: 58px;
  height: 58px;
}
.ring svg {
  width: 58px;
  height: 58px;
  rotate: -90deg;
}
.ring circle {
  fill: none;
  stroke-width: 5;
}
.ring .track {
  stroke: var(--surface-3);
}
.ring .progress {
  stroke: var(--ok);
  stroke-linecap: round;
  stroke-dasharray: 150.8;
  stroke-dashoffset: 150.8;
  transition: stroke-dashoffset 1.3s var(--ease);
}
.ring b {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--ok);
  font: 700 0.9375rem/1 var(--font-display);
  font-variant-numeric: tabular-nums;
}

/* SEO demo */
.seo-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.serp-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  color: #202124;
  font-size: 0.9375rem;
}
.serp-search .i {
  color: #5f6368;
}
.serp {
  margin-top: 12px;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  color: #202124;
}
.serp-map {
  position: relative;
  height: 96px;
  background:
    linear-gradient(90deg, transparent 30%, #fff 30%, #fff 33%, transparent 33%),
    linear-gradient(0deg, transparent 55%, #fff 55%, #fff 59%, transparent 59%),
    linear-gradient(120deg, transparent 62%, #fdfdfd 62%, #fdfdfd 64%, transparent 64%),
    radial-gradient(circle at 80% 30%, #cdeccf 0 22%, transparent 23%),
    #e5ebf0;
}
.pin {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50% 50% 50% 0;
  rotate: -45deg;
  background: #ea4335;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  transition: scale 0.4s var(--ease), background-color 0.4s;
}
.pin-you {
  background: #9aa0a6;
}
.is-after .pin-you {
  background: #7c6cf0;
  scale: 1.35;
}
.serp-list li {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid #eceff1;
  background: #fff;
}
.serp-list .divider {
  display: block;
  padding: 8px 14px;
  color: #5f6368;
  font-size: 0.75rem;
  text-align: center;
  background: #f8f9fa;
}
.rank {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f1f3f4;
  color: #3c4043;
  font-size: 0.75rem;
  font-weight: 700;
}
.biz-name {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9375rem;
}
.biz-meta {
  margin-top: 2px;
  color: #4d5156;
  font-size: 0.8125rem;
}
.biz-meta .stars {
  background: linear-gradient(90deg, #fbbc04 calc(var(--rating) / 5 * 100%), #dadce0 0);
}
.biz-acts {
  display: flex;
  gap: 6px;
}
.biz-acts span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #dadce0;
  color: #1a73e8;
}
.biz-acts .i {
  width: 15px;
  height: 15px;
}
.you-tag {
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: #7c6cf0;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
}
li.is-you {
  background: #f6f4ff;
}
li.is-you .biz-meta {
  color: #5a4ad1;
}
.is-after li.is-you .rank {
  background: #7c6cf0;
  color: #fff;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}
.stat {
  padding: 12px 10px;
  border-radius: 12px;
  background: var(--surface-2);
  text-align: center;
}
.stat b {
  display: block;
  font: 700 1.3rem/1.1 var(--font-display);
  font-variant-numeric: tabular-nums;
}
.stat span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.75rem;
}
.stat em {
  display: inline-block;
  margin-top: 6px;
  color: var(--ok);
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.4s;
}
.is-after .stat em {
  opacity: 1;
}

/* Automation demo */
.flow {
  display: grid;
  gap: 10px;
}
.flow-step {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  transition: border-color 0.3s, background-color 0.3s;
}
.flow-step + .flow-step::before {
  content: "";
  position: absolute;
  left: 33px;
  top: -11px;
  width: 2px;
  height: 10px;
  background: var(--line-2);
}
.flow-step.is-done + .flow-step::before {
  background: var(--ok);
}
.flow-node {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  transition: background-color 0.3s, color 0.3s;
}
.flow-step strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
}
.flow-step small {
  display: block;
  color: var(--faint);
  font-size: 0.8125rem;
}
.flow-state {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--faint);
  white-space: nowrap;
}
.flow-step.is-running {
  border-color: color-mix(in srgb, var(--cyan) 60%, transparent);
  background: color-mix(in srgb, var(--cyan) 8%, var(--surface-2));
}
.flow-step.is-running .flow-node {
  color: var(--cyan);
  animation: throb 0.8s ease-in-out infinite alternate;
}
.flow-step.is-running .flow-state {
  color: var(--cyan);
}
.flow-step.is-done .flow-node {
  background: rgba(52, 211, 153, 0.14);
  color: var(--ok);
}
.flow-step.is-done .flow-state {
  color: var(--ok);
}
@keyframes throb {
  to {
    scale: 1.08;
  }
}
.auto-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.btn-auto {
  background: var(--c-auto);
  color: #032029;
}
.console {
  min-height: 128px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #05070e;
  color: var(--muted);
  font: 500 0.8125rem/1.7 var(--font-mono);
}
.console li {
  animation: slideIn 0.3s var(--ease) both;
}
.console time {
  color: var(--faint);
}
.console .ok {
  color: var(--ok);
}
.auto-summary {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: var(--ok);
  font-size: 0.875rem;
  font-weight: 600;
}

/* ---------- How it connects ---------- */

.cycle {
  display: grid;
  gap: 28px;
}
@media (min-width: 960px) {
  .cycle {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}
.cycle-step {
  position: relative;
  padding: 26px 24px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.cycle-step::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -20px;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--faint);
  border-bottom: 2px solid var(--faint);
  rotate: 45deg;
  translate: -50% 0;
}
.cycle-step:last-child::after {
  display: none;
}
@media (min-width: 960px) {
  .cycle-step::after {
    left: auto;
    right: -19px;
    top: 50%;
    bottom: auto;
    rotate: -45deg;
    translate: 0 -50%;
  }
}
.cycle-num {
  position: absolute;
  top: 22px;
  right: 22px;
  font: 700 0.875rem/1 var(--font-display);
  color: var(--faint);
}
.cycle-step h3 {
  margin-top: 1.1rem;
  font-size: 1.2rem;
}
.cycle-step p {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.9688rem;
}
.loop-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  max-width: 680px;
  margin: 40px auto 0;
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  text-align: left;
}
.loop-note .i {
  color: var(--cyan);
  width: 24px;
  height: 24px;
}
.loop-note strong {
  color: var(--text);
}

/* ---------- Savings calculator ---------- */

.calc {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  padding: clamp(20px, 4vw, 44px);
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--surface);
}
@media (min-width: 960px) {
  .calc {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
}
.calc-intro .h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
}
.range-field {
  margin-top: 28px;
}
.range-field label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 600;
  font-size: 0.9688rem;
}
.range-field label span {
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}
.range-field .hint {
  margin-top: 2px;
  color: var(--faint);
  font-size: 0.8125rem;
}

input[type="range"] {
  --pct: 50%;
  width: 100%;
  height: 32px;
  margin-top: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--violet), var(--cyan)) 0 0 / var(--pct) 100% no-repeat, var(--surface-3);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  margin-top: -9px;
  border-radius: 50%;
  border: 3px solid var(--cyan);
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: var(--surface-3);
}
input[type="range"]::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
}
input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid var(--cyan);
  background: #fff;
}
input[type="range"]:focus-visible {
  outline: none;
}
input[type="range"]:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 5px rgba(34, 211, 238, 0.35);
}
input[type="range"]:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 5px rgba(34, 211, 238, 0.35);
}

.calc-results {
  display: grid;
  gap: 12px;
}
.result {
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--surface-2);
}
.result span {
  display: block;
  color: var(--muted);
  font-size: 0.875rem;
}
.result b {
  display: block;
  margin-top: 4px;
  font: 700 clamp(1.75rem, 4vw, 2.4rem)/1.1 var(--font-display);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.result.primary {
  border: 1px solid rgba(139, 124, 255, 0.35);
  background: linear-gradient(135deg, rgba(139, 124, 255, 0.14), rgba(34, 211, 238, 0.08)), var(--surface-2);
}
.calc-note {
  color: var(--faint);
  font-size: 0.8125rem;
}

/* ---------- Process ---------- */

.steps {
  display: grid;
  gap: 16px;
}
@media (min-width: 720px) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1100px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}
.step {
  padding: 26px 24px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.step-num {
  font: 700 2.25rem/1 var(--font-display);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.step h3 {
  margin-top: 1rem;
  font-size: 1.2rem;
}
.step p {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.9688rem;
}

/* ---------- Industries ---------- */

.inds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 12px;
}
.ind {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.ind .icon-box {
  --accent: var(--cyan);
  width: 44px;
  height: 44px;
  border-radius: 12px;
}
.ind h3 {
  font-size: 1.05rem;
}
.ind p {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* ---------- FAQ ---------- */

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 820px;
  margin-inline: auto;
}
.faq {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 0.2s;
}
.faq[open] {
  border-color: var(--line-2);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 16px 20px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary .i {
  color: var(--muted);
  transition: rotate 0.25s var(--ease);
}
.faq[open] summary .i {
  rotate: 180deg;
}
.faq-a {
  padding: 0 20px 20px;
  color: var(--muted);
}
@supports (interpolate-size: allow-keywords) {
  :root {
    interpolate-size: allow-keywords;
  }
  .faq::details-content,
  .drop::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size 0.3s var(--ease), content-visibility 0.3s allow-discrete;
  }
  .faq[open]::details-content,
  .drop[open]::details-content {
    block-size: auto;
  }
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  gap: clamp(40px, 6vw, 64px);
}
@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 0.85fr 1.15fr;
  }
}
.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 2rem;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
}
.contact-list .icon-box {
  --accent: var(--cyan);
  width: 44px;
  height: 44px;
  border-radius: 12px;
}
.contact-list a {
  text-decoration: none;
  font-weight: 600;
}
.contact-list a:hover {
  color: var(--cyan);
}
.contact-list small {
  display: block;
  color: var(--muted);
  font-size: 0.875rem;
}

.form-card {
  padding: clamp(20px, 3.5vw, 36px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-2);
  background: var(--surface);
}
.form-row {
  display: grid;
  gap: 18px;
}
@media (min-width: 600px) {
  .form-row.two {
    grid-template-columns: 1fr 1fr;
  }
}
.form-row + .form-row,
.form-row + fieldset,
fieldset + .form-row {
  margin-top: 18px;
}
.field label,
fieldset legend {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 600;
  font-size: 0.9375rem;
}
.req {
  color: var(--danger);
}
.optional {
  color: var(--faint);
  font-weight: 400;
}
.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.9rem;
  border-radius: 11px;
  border: 1px solid var(--line-2);
  background: #0a1020;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea {
  min-height: 130px;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #6c7693;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.2);
}
.field [aria-invalid="true"] {
  border-color: var(--danger);
}
.help {
  margin-top: 0.4rem;
  color: var(--faint);
  font-size: 0.8125rem;
}
.err {
  margin-top: 0.4rem;
  color: var(--danger);
  font-size: 0.8125rem;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}
.checks {
  display: grid;
  gap: 8px;
}
@media (min-width: 520px) {
  .checks {
    grid-template-columns: 1fr 1fr;
  }
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 11px;
  border: 1px solid var(--line-2);
  font-size: 0.9375rem;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.check input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--violet);
}
.check:has(input:checked) {
  border-color: var(--violet);
  background: rgba(139, 124, 255, 0.08);
}
.check:has(input:focus-visible) {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 24px;
}
.form-foot p {
  color: var(--faint);
  font-size: 0.8125rem;
}
.form-status {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 11px;
  font-size: 0.9375rem;
}
.form-status.is-ok {
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.1);
  color: var(--ok);
}
.form-status.is-err {
  border: 1px solid rgba(251, 113, 133, 0.35);
  background: rgba(251, 113, 133, 0.1);
  color: var(--danger);
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 56px 32px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.footer-grid {
  display: grid;
  gap: 36px;
}
@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr;
  }
}
.footer-grid p {
  max-width: 40ch;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9375rem;
}
.footer-grid h3 {
  font: 600 0.8125rem/1 var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.footer-links {
  display: grid;
  gap: 2px;
  margin-top: 0.9rem;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9375rem;
}
.footer-links a:hover {
  color: var(--text);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.875rem;
}

/* ---------- Motion ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
}
.reveal {
  transition: opacity 0.7s var(--ease) var(--d, 0ms), transform 0.7s var(--ease) var(--d, 0ms),
    translate 0.25s var(--ease), border-color 0.25s, background-color 0.25s;
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

.js .rise {
  animation: rise 0.9s var(--ease) both;
  animation-delay: var(--d, 0ms);
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 479px) {
  .demo-bar .dots {
    display: none;
  }
}

/* ---------- Quick-switch bar (second header for the specialty tabs) ---------- */

.subnav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 48;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 10, 18, 0.9);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  opacity: 0;
  visibility: hidden;
  translate: 0 -10px;
  transition: opacity 0.25s var(--ease), translate 0.25s var(--ease), visibility 0.25s;
}
.subnav.is-visible {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
  transition: opacity 0.25s var(--ease), translate 0.25s var(--ease), visibility 0s;
}
.subnav-inner {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding-block: 6px;
}
.subnav-tab {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 48px;
  padding: 6px 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
}
.subnav-tab .i {
  width: 18px;
  height: 18px;
  color: var(--accent);
}
.subnav-tab:hover {
  color: var(--text);
}
.subnav-tab[aria-pressed="true"] {
  background: var(--surface-3);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.subnav-tab .short {
  display: none;
}
@media (max-width: 519px) {
  .subnav-tab .full.has-short {
    display: none;
  }
  .subnav-tab .short {
    display: inline;
  }
}
@media (min-width: 640px) {
  .subnav-tab {
    flex: 0 0 auto;
    flex-direction: row;
    gap: 0.5rem;
    min-height: 40px;
    padding: 8px 16px;
    font-size: 0.875rem;
  }
}
