/* ==========================================================================
   VEXONA — Components
   Mobile-first. Only tokens from themes.css are used for colour/space/motion.
   Layout-level breakpoints live in responsive.css.
   ========================================================================== */

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  --btn-bg: var(--surface);
  --btn-fg: var(--text);
  --btn-border: var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0.6rem 1.15rem;
  border: 1px solid var(--btn-border);
  border-radius: var(--radius-md);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--shadow-xs);
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.btn:hover {
  --btn-bg: var(--surface-2);
  --btn-border: var(--border-strong);
  text-decoration: none;
}
.btn:active {
  transform: translateY(1px);
}
.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn--primary {
  --btn-bg: var(--accent);
  --btn-fg: var(--on-accent);
  --btn-border: var(--accent);
}
.btn--primary:hover {
  --btn-bg: var(--accent-hover);
  --btn-border: var(--accent-hover);
}
.btn--primary:active {
  --btn-bg: var(--accent-active);
}

.btn--secondary {
  --btn-bg: var(--accent-soft);
  --btn-fg: var(--accent-text);
  --btn-border: var(--accent-soft-border);
  box-shadow: none;
}
.btn--secondary:hover {
  --btn-bg: var(--accent-soft);
  --btn-border: var(--accent-text);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-border: transparent;
  --btn-fg: var(--text-muted);
  box-shadow: none;
}
.btn--ghost:hover {
  --btn-bg: var(--surface-2);
  --btn-fg: var(--text);
  --btn-border: transparent;
}

.btn--danger {
  --btn-bg: var(--danger-soft);
  --btn-fg: var(--danger);
  --btn-border: var(--danger-border);
  box-shadow: none;
}
.btn--danger:hover {
  --btn-bg: var(--danger-soft);
  --btn-border: var(--danger);
}

.btn--on-accent {
  --btn-bg: var(--on-accent);
  --btn-fg: var(--accent);
  --btn-border: var(--on-accent);
}
.btn--on-accent:hover {
  --btn-bg: var(--on-accent);
  --btn-border: var(--on-accent);
  filter: brightness(0.96);
}
.btn--outline-on-accent {
  --btn-bg: transparent;
  --btn-fg: var(--on-accent);
  --btn-border: color-mix(in srgb, var(--on-accent) 55%, transparent);
  box-shadow: none;
}
.btn--outline-on-accent:hover {
  --btn-bg: color-mix(in srgb, var(--on-accent) 12%, transparent);
  --btn-border: var(--on-accent);
}

.btn--sm {
  min-height: 36px;
  padding: 0.4rem 0.8rem;
  font-size: var(--fs-xs);
}
.btn--lg {
  min-height: 52px;
  padding: 0.8rem 1.6rem;
  font-size: var(--fs-base);
}
.btn--block {
  width: 100%;
}
.btn.is-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
.btn.is-loading::after {
  content: "";
  position: absolute;
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid var(--on-accent);
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn:not(.btn--primary).is-loading::after {
  border-color: var(--text-muted);
  border-right-color: transparent;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
}
.link-arrow .icon {
  transition: transform var(--dur) var(--ease);
}
.link-arrow:hover .icon {
  transform: translateX(3px);
}

.icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-muted);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease);
}
.icon-btn:hover {
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
}
.icon-btn .icon {
  width: 1.3rem;
  height: 1.3rem;
}
.count-badge {
  position: absolute;
  top: 3px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding-inline: 5px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 11px;
  font-weight: var(--fw-bold);
  line-height: 18px;
  text-align: center;
}

/* ---- Badges ------------------------------------------------------------- */
.badge {
  --b-bg: var(--surface-2);
  --b-fg: var(--text-muted);
  --b-border: var(--border);
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.18rem 0.6rem;
  border: 1px solid var(--b-border);
  border-radius: var(--radius-full);
  background: var(--b-bg);
  color: var(--b-fg);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  line-height: 1.5;
  white-space: nowrap;
}
.badge--accent {
  --b-bg: var(--accent-soft);
  --b-fg: var(--accent-text);
  --b-border: var(--accent-soft-border);
}
.badge--success {
  --b-bg: var(--success-soft);
  --b-fg: var(--success);
  --b-border: var(--success-border);
}
.badge--warning {
  --b-bg: var(--warning-soft);
  --b-fg: var(--warning);
  --b-border: var(--warning-border);
}
.badge--danger {
  --b-bg: var(--danger-soft);
  --b-fg: var(--danger);
  --b-border: var(--danger-border);
}
.badge--info {
  --b-bg: var(--info-soft);
  --b-fg: var(--info);
  --b-border: var(--info-border);
}
.badge--dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ---- Cards -------------------------------------------------------------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.card--flat {
  box-shadow: none;
}
.card--muted {
  background: var(--surface-2);
  box-shadow: none;
}
.card--interactive:hover,
.card--interactive:focus-within {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card--accent {
  border-color: var(--accent-soft-border);
  background: var(--accent-soft);
  box-shadow: none;
}
.card__title {
  font-size: var(--fs-lg);
}

.icon-tile {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-border);
  color: var(--accent-text);
}
.icon-tile .icon {
  width: 1.4rem;
  height: 1.4rem;
}
.icon-tile--lg {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
}

/* Service / product card */
.service-card {
  gap: var(--space-4);
  height: 100%;
}
.service-card__media {
  margin: calc(-1 * var(--space-6)) calc(-1 * var(--space-6)) 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--surface-2);
}
.service-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}
.service-card__cat {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--text-subtle);
  letter-spacing: 0.02em;
}
.service-card__title {
  font-size: var(--fs-lg);
  line-height: 1.25;
}
.service-card__title a {
  color: var(--text);
}
.service-card__title a::after {
  /* whole card is clickable via the title link, buttons stay above it */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
}
.service-card__title a:hover {
  text-decoration: none;
  color: var(--accent-text);
}
.service-card__short {
  color: var(--text-muted);
  font-size: var(--fs-sm);
}
.service-card__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}
.meta-label {
  display: block;
  font-size: var(--fs-xs);
  color: var(--text-subtle);
}
.meta-value {
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--text);
}
.product-gallery {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.product-gallery__main {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--surface-2);
}
.product-gallery__main img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-gallery__thumbs {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  padding-bottom: 2px; /* room for the focus ring */
}
.product-gallery__thumb {
  flex: none;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-2);
  cursor: pointer;
}
.product-gallery__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-gallery__thumb[aria-current="true"] {
  border-color: var(--accent);
}
.service-card__actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: var(--space-2);
}
.service-card__actions .btn {
  flex: 1;
}

.wish-btn {
  position: relative;
  z-index: 1;
  flex: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--surface);
  color: var(--text-subtle);
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease),
    background var(--dur-fast) var(--ease);
}
.wish-btn:hover {
  color: var(--danger);
  border-color: var(--border-strong);
}
.wish-btn[aria-pressed="true"] {
  color: var(--danger);
  background: var(--danger-soft);
  border-color: var(--danger-border);
}
.wish-btn[aria-pressed="true"] .icon {
  fill: currentColor;
}

/* Category card */
.category-card {
  gap: var(--space-3);
  height: 100%;
}
.category-card h3 a {
  color: var(--text);
}
.category-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.category-card h3 a:hover {
  text-decoration: none;
}
.category-card p {
  color: var(--text-muted);
  font-size: var(--fs-sm);
}
.category-card .link-arrow {
  margin-top: auto;
  padding-top: var(--space-2);
}

/* ---- Forms -------------------------------------------------------------- */
.form {
  display: grid;
  gap: var(--space-5);
}
.form-row {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: minmax(0, 1fr);
}
.field {
  display: grid;
  gap: var(--space-2);
  align-content: start;
}
.field__label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--text);
}
.field__label .req {
  color: var(--danger);
  margin-left: 2px;
}
.field__label .opt {
  font-weight: var(--fw-regular);
  color: var(--text-subtle);
  font-size: var(--fs-xs);
  margin-left: var(--space-1);
}
.field__hint {
  font-size: var(--fs-xs);
  color: var(--text-subtle);
}
.field__error {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
  font-size: var(--fs-sm);
  color: var(--danger);
}
.field__error:empty {
  display: none;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.65rem 0.9rem;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease),
    background var(--dur-fast) var(--ease);
}
.input::placeholder,
.textarea::placeholder {
  color: var(--text-subtle);
  opacity: 1;
}
.input:hover,
.select:hover,
.textarea:hover {
  border-color: var(--text-subtle);
}
.input:focus-visible,
.select:focus-visible,
.textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 0;
  border-color: var(--focus);
}
.textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.5;
}
.input[aria-invalid="true"],
.select[aria-invalid="true"],
.textarea[aria-invalid="true"] {
  border-color: var(--danger);
  background: var(--danger-soft);
}
.input:disabled,
.select:disabled,
.textarea:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: var(--surface-2);
}

.select-wrap {
  position: relative;
}
.select-wrap::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--text-subtle);
  border-bottom: 2px solid var(--text-subtle);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.4rem;
  cursor: pointer;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  cursor: pointer;
}
.check input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex: none;
  accent-color: var(--accent);
  cursor: pointer;
}

.choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.choice {
  position: relative;
}
.choice input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}
.choice span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.45rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  background: var(--surface);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-muted);
  transition: all var(--dur-fast) var(--ease);
}
.choice input:hover + span {
  border-color: var(--text-subtle);
}
.choice input:checked + span {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-text);
}
.choice input:focus-visible + span {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* Honeypot: must be invisible to people but present in the DOM */
.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* File dropzone */
.dropzone {
  display: grid;
  gap: var(--space-2);
  justify-items: center;
  padding: var(--space-6) var(--space-4);
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  text-align: center;
  color: var(--text-muted);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.dropzone:hover,
.dropzone.is-dragover,
.dropzone:focus-within {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.dropzone .icon {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--accent-text);
}
.dropzone__btn {
  color: var(--accent-text);
  font-weight: var(--fw-semibold);
  text-decoration: underline;
  cursor: pointer;
}
.file-list {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.file-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  font-size: var(--fs-sm);
}
.file-item__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: var(--fw-medium);
}
.file-item__size {
  color: var(--text-subtle);
  font-size: var(--fs-xs);
}
.file-item.is-error {
  border-color: var(--danger-border);
  background: var(--danger-soft);
}
.file-item.is-uploading {
  opacity: 0.75;
}

/* ---- Alerts / states ---------------------------------------------------- */
.alert {
  --a-fg: var(--info);
  --a-bg: var(--info-soft);
  --a-border: var(--info-border);
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-4);
  border: 1px solid var(--a-border);
  border-radius: var(--radius-md);
  background: var(--a-bg);
  color: var(--text);
  font-size: var(--fs-sm);
}
.alert > .icon {
  color: var(--a-fg);
  margin-top: 1px;
}
.alert--success {
  --a-fg: var(--success);
  --a-bg: var(--success-soft);
  --a-border: var(--success-border);
}
.alert--warning {
  --a-fg: var(--warning);
  --a-bg: var(--warning-soft);
  --a-border: var(--warning-border);
}
.alert--danger {
  --a-fg: var(--danger);
  --a-bg: var(--danger-soft);
  --a-border: var(--danger-border);
}
.alert__title {
  font-weight: var(--fw-semibold);
  margin-bottom: 2px;
}
.alert ul {
  list-style: disc;
  padding-left: var(--space-5);
  margin-top: var(--space-1);
}

.empty {
  display: grid;
  justify-items: center;
  gap: var(--space-3);
  padding: var(--space-12) var(--space-6);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-align: center;
}
.empty p {
  max-width: 44ch;
  color: var(--text-muted);
}
.empty .empty__title {
  color: var(--text);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  letter-spacing: -0.015em;
}

.skeleton {
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, var(--skeleton-a) 0%, var(--skeleton-b) 50%, var(--skeleton-a) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}
.skeleton-card {
  min-height: 250px;
  border-radius: var(--radius-lg);
}

/* ---- Header & navigation ------------------------------------------------ */
/* Sticky lives on the wrapper (a sticky child can't escape its parent's height).
   The mobile nav is a sibling of .site-header on purpose: backdrop-filter on the
   header would otherwise become the containing block for its position:fixed panel. */
#site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  min-height: var(--header-h);
}
.site-header {
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-xs);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  height: var(--header-h);
}

/* ---- Brand logo ---------------------------------------------------------------------------------
   logoHtml() (ui.js) renders two <img>: the light artwork and the dark artwork. Exactly one is shown, chosen by
   the active theme, so the logo follows the manual toggle as well as the OS setting. Only the HEIGHT is set here
   (fluid with the screen); the width follows the image's own aspect ratio, which is identical for both themes,
   so switching theme never moves anything. */
.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  color: var(--text);
  border-radius: var(--radius-sm);
}
.brand:hover {
  text-decoration: none;
}
.logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.logo__img {
  display: block;
  width: auto;
  max-width: none; /* never let a flex/grid parent squeeze the logo out of proportion */
  height: var(--logo-h, 28px);
}
.logo__img--dark {
  display: none;
}
:root[data-theme="dark"] .logo__img--light {
  display: none;
}
:root[data-theme="dark"] .logo__img--dark {
  display: block;
}
@media (prefers-color-scheme: dark) {
  /* no-JavaScript fallback: follow the OS until theme-init.js has set data-theme */
  :root:not([data-theme="light"]) .logo__img--light {
    display: none;
  }
  :root:not([data-theme="light"]) .logo__img--dark {
    display: block;
  }
}
/* Plain-text stand-in, only used if the logo config could not be read */
.logo--text {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  letter-spacing: 0.14em;
  line-height: 1.2;
  color: var(--text);
}
/* Shown by theme-init.js when the page scripts failed to load: a notice plus plain links, so the visitor is never stranded */
.app-fallback {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-4);
  padding: var(--space-3) var(--gutter);
  background: var(--warning-soft);
  border-bottom: 1px solid var(--warning-border);
  color: var(--text);
  font-size: var(--fs-sm);
}
.app-fallback a {
  color: var(--accent-text);
  font-weight: var(--fw-semibold);
  text-decoration: underline;
}
/* The one logo: the full artwork (mark, wordmark, tagline) exactly as designed. --logo-h is its height; the width
   follows the artwork's own proportions. Each place sets its own size:
   sign-in pages (default) 120–152px · admin sidebar 96px (admin.css) · website header · footer. */
.logo--lockup {
  --logo-h: clamp(120px, 26vw, 152px);
}
/* Website header: 48px on a 320px phone (about 70px wide), growing smoothly to 58px on desktop */
.site-header .logo--lockup {
  --logo-h: clamp(48px, 42px + 1vw, 58px);
}
.site-footer .logo--lockup {
  --logo-h: 88px;
}

.nav {
  display: none;
  align-items: center;
  gap: 2px;
  margin-left: var(--space-6);
}
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.5rem 0.7rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: var(--fw-medium);
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.nav__link:hover {
  color: var(--text);
  background: var(--surface-2);
  text-decoration: none;
}
.nav__link[aria-current="page"] {
  color: var(--accent-text);
  background: var(--accent-soft);
}

.nav-dropdown {
  position: relative;
}
.nav-dropdown__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: -12px;
  z-index: var(--z-overlay);
  width: min(560px, 90vw);
  padding: var(--space-3);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.nav-dropdown__item {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-3);
  border-radius: var(--radius-md);
  color: var(--text);
}
.nav-dropdown__item:hover {
  background: var(--surface-2);
  text-decoration: none;
}
.nav-dropdown__item strong {
  display: block;
  font-size: var(--fs-sm);
}
.nav-dropdown__item span {
  display: block;
  font-size: var(--fs-xs);
  color: var(--text-subtle);
  line-height: 1.4;
}
.nav-dropdown__item .icon-tile {
  width: 34px;
  height: 34px;
}
.nav-dropdown__all {
  grid-column: 1 / -1;
  margin-top: var(--space-1);
  padding: var(--space-3);
  border-top: 1px solid var(--border);
}
.nav__chevron {
  width: 0.9rem;
  height: 0.9rem;
  transition: transform var(--dur) var(--ease);
}
[aria-expanded="true"] > .nav__chevron {
  transform: rotate(180deg);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-left: auto;
}
.header-actions .btn {
  display: none;
}
/* Progressive header: the row must never be wider than the screen. The logo is compact (about 70px wide on a
   phone), so search, cart, theme and menu are always in the bar; the Get Started button joins at 480px.
   Measured: nothing overlaps or leaves the screen from 320px up. */
@media (min-width: 480px) {
  .header-actions .btn {
    display: inline-flex;
  }
}

.theme-toggle .icon {
  transition: transform var(--dur) var(--ease), opacity var(--dur-fast) var(--ease);
}
.theme-toggle .i-moon {
  display: block;
}
.theme-toggle .i-sun {
  display: none;
}
:root[data-theme="dark"] .theme-toggle .i-moon {
  display: none;
}
:root[data-theme="dark"] .theme-toggle .i-sun {
  display: block;
}
.theme-toggle:active .icon {
  transform: rotate(25deg) scale(0.9);
}

.menu-toggle .i-close {
  display: none;
}
.menu-toggle[aria-expanded="true"] .i-menu {
  display: none;
}
.menu-toggle[aria-expanded="true"] .i-close {
  display: block;
}

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: var(--z-overlay);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4) var(--gutter) var(--space-8);
  overflow-y: auto;
  background: var(--bg);
  border-top: 1px solid var(--border);
  animation: sheet-in var(--dur) var(--ease);
}
.mobile-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0.75rem var(--space-3);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
}
.mobile-nav__link:hover,
.mobile-nav__link[aria-current="page"] {
  background: var(--surface-2);
  text-decoration: none;
}
.mobile-nav__link[aria-current="page"] {
  color: var(--accent-text);
}
.mobile-nav__sub {
  display: grid;
  gap: 2px;
  margin: 0 0 var(--space-2) var(--space-4);
  padding-left: var(--space-3);
  border-left: 2px solid var(--border);
}
.mobile-nav__sub a {
  padding: 0.55rem var(--space-3);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: var(--fs-sm);
}
.mobile-nav__foot {
  margin-top: auto;
  display: grid;
  gap: var(--space-3);
  padding-top: var(--space-6);
}
.mobile-theme-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  font-weight: var(--fw-semibold);
}

/* ---- Breadcrumb --------------------------------------------------------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  font-size: var(--fs-sm);
  color: var(--text-subtle);
}
.breadcrumb li + li::before {
  content: "/";
  margin-right: var(--space-2);
  color: var(--border-strong);
}
.breadcrumb a {
  color: var(--text-muted);
}
.breadcrumb [aria-current="page"] {
  color: var(--text);
  font-weight: var(--fw-medium);
}

/* ---- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 1.5rem + 5vw, 6rem) clamp(3rem, 2rem + 4vw, 5.5rem);
  background: var(--hero-glow), var(--bg);
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(70% 70% at 60% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 70% at 60% 30%, #000 20%, transparent 75%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-12);
  align-items: center;
}
.hero__title {
  font-size: var(--fs-display);
  font-weight: var(--fw-extrabold);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.hero__title span {
  display: block;
}
.hero__title .accent {
  color: var(--accent-text);
}
.hero__lead {
  margin-top: var(--space-6);
  max-width: 34rem;
  font-size: var(--fs-lg);
  color: var(--text-muted);
}
.hero__cta {
  margin-top: var(--space-8);
}
.hero__chips {
  margin-top: var(--space-8);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.chip-static {
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--surface);
  color: var(--text-muted);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
}

/* Hero illustration: an abstract automation pipeline (decorative) */
.flow {
  position: relative;
  display: grid;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
.flow__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
}
.flow__bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border-strong);
}
.flow__bar span {
  margin-left: var(--space-2);
  font-size: var(--fs-xs);
  color: var(--text-subtle);
  font-weight: var(--fw-medium);
}
.flow__node {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.flow__node strong {
  display: block;
  font-size: var(--fs-sm);
}
.flow__node small {
  color: var(--text-subtle);
  font-size: var(--fs-xs);
}
.flow__node .badge {
  margin-left: auto;
}
.flow__node + .flow__node::before {
  content: "";
  position: absolute;
  left: 30px;
  top: calc(var(--space-4) * -1);
  width: 2px;
  height: var(--space-4);
  background: var(--accent-soft-border);
}
.flow__chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 92px;
  padding: var(--space-3) var(--space-4) 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.flow__chart i {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: var(--accent-soft-border);
}
.flow__chart i:nth-child(4n + 2) {
  background: var(--accent);
}

/* ---- Trust / stat strip ------------------------------------------------- */
.stat-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.stat {
  padding: var(--space-5) var(--space-5);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat:nth-child(2n) {
  border-right: 0;
}
.stat:nth-last-child(-n + 2) {
  border-bottom: 0;
}
.stat__value {
  display: block;
  font-size: var(--fs-2xl);
  font-weight: var(--fw-extrabold);
  letter-spacing: -0.03em;
  color: var(--text);
}
.stat__label {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* ---- Process steps ------------------------------------------------------ */
.steps {
  display: grid;
  gap: var(--space-5);
  counter-reset: step;
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-4);
  align-items: start;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-border);
  color: var(--accent-text);
  font-weight: var(--fw-bold);
}
.step h3 {
  font-size: var(--fs-md);
  margin-bottom: var(--space-1);
}
.step p {
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

/* ---- Feature / why list ------------------------------------------------- */
.feature {
  display: grid;
  gap: var(--space-3);
  align-content: start;
}
.feature p {
  color: var(--text-muted);
  font-size: var(--fs-sm);
}
.check-list {
  display: grid;
  gap: var(--space-3);
}
.check-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-3);
  align-items: start;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.check-list .icon {
  color: var(--accent-text);
  margin-top: 2px;
}

/* ---- CTA band ----------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: var(--space-6);
  padding: clamp(1.75rem, 1rem + 4vw, 4rem);
  border-radius: var(--radius-xl);
  background: var(--accent);
  color: var(--on-accent);
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(color-mix(in srgb, var(--on-accent) 10%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--on-accent) 10%, transparent) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(80% 100% at 100% 0%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(80% 100% at 100% 0%, #000, transparent 70%);
  pointer-events: none;
}
.cta-band > * {
  position: relative;
  z-index: 1;
}
.cta-band h2 {
  color: var(--on-accent);
}
.cta-band p {
  margin-top: var(--space-3);
  max-width: 40rem;
  color: color-mix(in srgb, var(--on-accent) 88%, transparent);
  font-size: var(--fs-md);
}

/* ---- Pricing ------------------------------------------------------------ */
.price-card {
  gap: var(--space-5);
  height: 100%;
}
.price-card--popular {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.price-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.price-card__tier {
  font-size: var(--fs-lg);
}
.price-card__tagline {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  margin-top: var(--space-1);
}
.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.price__amount {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-extrabold);
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.price__amount--quote {
  font-size: var(--fs-2xl);
}
.price__note {
  font-size: var(--fs-xs);
  color: var(--text-subtle);
}
.price-card__delivery {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.price-card .check-list {
  flex: 1;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

/* ---- Tabs / chips ------------------------------------------------------- */
.tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--space-2);
  padding-bottom: var(--space-2);
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.tab {
  flex: none;
  min-height: 42px;
  padding: 0.45rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--surface);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  transition: all var(--dur-fast) var(--ease);
}
.tab:hover {
  border-color: var(--border-strong);
  color: var(--text);
}
.tab[aria-selected="true"],
.tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

/* ---- Accordion (native details) ---------------------------------------- */
.accordion {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}
.accordion details + details {
  border-top: 1px solid var(--border);
}
.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 56px;
  padding: var(--space-4) var(--space-5);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  list-style: none;
  transition: background var(--dur-fast) var(--ease);
}
.accordion summary::-webkit-details-marker {
  display: none;
}
.accordion summary:hover {
  background: var(--surface-2);
}
.accordion summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--text-subtle);
  border-bottom: 2px solid var(--text-subtle);
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--dur) var(--ease);
}
.accordion details[open] > summary::after {
  transform: rotate(-135deg) translateY(-2px);
}
.accordion details[open] > summary {
  color: var(--accent-text);
}
.accordion__body {
  padding: 0 var(--space-5) var(--space-5);
  color: var(--text-muted);
  max-width: 72ch;
}

/* ---- Tables ------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.table {
  font-size: var(--fs-sm);
}
.table th,
.table td {
  padding: 0.8rem var(--space-4);
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--border);
}
.table thead th {
  position: sticky;
  top: 0;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.table tbody tr:last-child td {
  border-bottom: 0;
}
.table tbody tr:hover {
  background: var(--surface-2);
}
.table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.table--compare th[scope="row"] {
  font-weight: var(--fw-semibold);
  background: var(--surface-2);
  white-space: nowrap;
}
.table--compare td,
.table--compare thead th:not(:first-child) {
  text-align: center;
}

/* ---- Modal / dialog ----------------------------------------------------- */
dialog.modal {
  width: min(560px, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg);
  overflow: auto;
}
dialog.modal::backdrop {
  background: var(--overlay);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
dialog.modal[open] {
  animation: modal-in var(--dur) var(--ease);
}
.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border);
}
.modal__body {
  padding: var(--space-6);
}
.modal__foot {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}
dialog.modal--search {
  align-self: start;
  margin-top: 8vh;
}

/* Search results */
.search-box {
  position: relative;
  display: flex;
  align-items: center;
}
.search-box .icon {
  position: absolute;
  left: 0.95rem;
  color: var(--text-subtle);
}
.search-box .input {
  padding-left: 2.6rem;
}
.search-results {
  display: grid;
  gap: 2px;
  margin-top: var(--space-4);
  max-height: 52vh;
  overflow-y: auto;
}
.search-result {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  color: var(--text);
}
.search-result:hover,
.search-result:focus-visible {
  background: var(--surface-2);
  text-decoration: none;
}
.search-result strong {
  display: block;
  font-size: var(--fs-sm);
}
.search-result small {
  color: var(--text-subtle);
  font-size: var(--fs-xs);
}
.search-group {
  margin-top: var(--space-3);
  padding: 0 var(--space-3);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-subtle);
}
kbd {
  padding: 0.1rem 0.4rem;
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: var(--radius-xs);
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ---- Toasts ------------------------------------------------------------- */
.toast-region {
  position: fixed;
  z-index: var(--z-toast);
  right: var(--space-4);
  bottom: var(--space-4);
  left: var(--space-4);
  display: grid;
  gap: var(--space-2);
  justify-items: end;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  max-width: 420px;
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  font-size: var(--fs-sm);
  pointer-events: auto;
  animation: toast-in var(--dur-slow) var(--ease);
}
.toast--error {
  border-left-color: var(--danger);
}
.toast--warning {
  border-left-color: var(--warning);
}
.toast a {
  font-weight: var(--fw-semibold);
  white-space: nowrap;
}
.toast__msg {
  flex: 1;
}

/* ---- Filters ------------------------------------------------------------ */
.catalog {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
}
.catalog__bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}
.catalog__bar .search-box {
  flex: 1 1 220px;
}
.filters,
.filters__facets {
  display: grid;
  gap: var(--space-5);
  align-content: start;
}
.filters__group {
  display: grid;
  gap: var(--space-3);
}
.filters__title {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
}
.filters__list {
  display: grid;
  gap: var(--space-2);
}
.filters__list .check {
  color: var(--text);
  padding: 2px 0;
}
.filters__count {
  margin-left: auto;
  color: var(--text-subtle);
  font-size: var(--fs-xs);
  font-variant-numeric: tabular-nums;
}
.filters__list .check span:first-of-type {
  flex: 1;
}
.filters__head {
  display: none;
}
.filters__backdrop {
  display: none;
}
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.25rem 0.5rem 0.25rem 0.75rem;
  border: 1px solid var(--accent-soft-border);
  border-radius: var(--radius-full);
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
}
.filter-pill button {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
}
.filter-pill button:hover {
  background: var(--accent-soft-border);
}
.result-count {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* ---- Service line / detail page ---------------------------------------- */
.page-hero {
  position: relative;
  padding-block: clamp(2rem, 1.2rem + 4vw, 4.5rem);
  background: var(--hero-glow), var(--bg);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-size: var(--fs-4xl);
  max-width: 22ch;
}
.page-hero__lead {
  margin-top: var(--space-4);
  max-width: 44rem;
  font-size: var(--fs-lg);
  color: var(--text-muted);
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-8);
}
.detail-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-8);
}
.detail-block h2 {
  font-size: var(--fs-2xl);
  margin-bottom: var(--space-4);
}
.detail-block h3 {
  margin-bottom: var(--space-3);
}
.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
.fact {
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.fact strong {
  display: block;
  margin-top: 2px;
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* Offering selector (line pages): horizontal scroller on phones, vertical list on desktop */
.offering-picker {
  display: flex;
  gap: var(--space-2);
  padding-bottom: var(--space-2);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.offering-btn {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: var(--space-3);
  min-width: 220px;
  scroll-snap-align: start;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  text-align: left;
  color: var(--text);
  transition: all var(--dur-fast) var(--ease);
}
.offering-btn:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.offering-btn[aria-selected="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 3px 0 0 var(--accent);
}
.offering-btn strong {
  display: block;
  font-size: var(--fs-sm);
}
.offering-btn small {
  display: block;
  color: var(--text-subtle);
  font-size: var(--fs-xs);
}

/* ---- Checkout ----------------------------------------------------------- */
.stepper {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}
.stepper__item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-bottom: 2px solid var(--border);
  color: var(--text-subtle);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
}
.stepper__num {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
}
.stepper__item.is-done {
  color: var(--accent-text);
  border-color: var(--accent);
}
.stepper__item.is-done .stepper__num {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}
.stepper__item.is-current {
  color: var(--text);
  border-color: var(--accent);
}
.stepper__item.is-current .stepper__num {
  border-color: var(--accent);
  color: var(--accent-text);
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-8);
  align-items: start;
}
.summary {
  gap: var(--space-4);
}
.summary__line {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  font-size: var(--fs-sm);
}
.summary__line--total {
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
}
.order-item {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.order-item__head {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  align-items: flex-start;
}
.order-item__pkg {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.timeline {
  display: grid;
  gap: var(--space-5);
}
.timeline li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-4);
}
.timeline .icon-tile {
  width: 36px;
  height: 36px;
}

/* ---- Footer ------------------------------------------------------------- */
.site-footer {
  flex-shrink: 0;
  margin-top: auto;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-8);
  padding-block: var(--space-16) var(--space-10);
}
.footer-brand p {
  margin-top: var(--space-4);
  max-width: 32ch;
  color: var(--text-muted);
  font-size: var(--fs-sm);
}
.footer-col h2 {
  margin-bottom: var(--space-4);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-subtle);
}
.footer-col ul {
  display: grid;
  gap: var(--space-2);
}
.footer-col a {
  display: inline-block;
  padding-block: 0.3rem; /* comfortable tap target on phones */
  color: var(--text-muted);
  font-size: var(--fs-sm);
}
.footer-col a:hover {
  color: var(--accent-text);
}
.contact-list {
  display: grid;
  gap: var(--space-3);
}
.contact-list li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  color: var(--text-muted);
  font-size: var(--fs-sm);
}
.contact-list .icon {
  margin-top: 2px;
  color: var(--accent-text);
}
.contact-list a {
  min-width: 0;
  color: var(--text-muted);
  overflow-wrap: anywhere; /* a long email may wrap on a narrow column instead of poking out of it */
}
.contact-list a:hover {
  color: var(--accent-text);
}
/* Phone: a compact footer. The link lists sit side by side (Services on the left; Company and Legal stacked on the right)
   instead of one very long column, with tighter spacing. */
@media (max-width: 639.98px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-6) var(--space-5);
    padding-block: var(--space-8) var(--space-4);
  }
  .footer-brand,
  .footer-grid > .footer-col:last-child {
    grid-column: 1 / -1;
  }
  .footer-grid > .footer-col:nth-child(2) {
    grid-row: span 2;
  }
  .footer-brand p {
    max-width: none;
    margin-top: var(--space-2);
  }
  .footer-col h2 {
    margin-bottom: var(--space-2);
  }
  .footer-col ul {
    gap: 0;
  }
  .site-footer .logo--lockup {
    --logo-h: 72px;
  }
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  align-items: center;
  justify-content: space-between;
  /* extra room below so the floating WhatsApp button never covers the last line */
  padding-block: var(--space-6) calc(var(--space-6) + 4rem);
  border-top: 1px solid var(--border);
  font-size: var(--fs-sm);
  color: var(--text-subtle);
}
.social {
  display: flex;
  gap: var(--space-2);
}
.social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text-muted);
}
.social a:hover {
  color: var(--accent-text);
  border-color: var(--accent-soft-border);
  background: var(--accent-soft);
}
.newsletter {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.newsletter .input {
  min-height: 42px;
}

/* ---- Floating WhatsApp & sticky mobile CTA ----------------------------- */
.wa-float {
  --wa: #147a41; /* white text on this = 5.4:1 (the brighter WhatsApp green was 3.6:1 and failed WCAG AA) */
  position: fixed;
  right: var(--space-4);
  bottom: var(--space-4);
  z-index: var(--z-float);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 52px;
  padding: 0 1rem;
  border-radius: var(--radius-full);
  background: var(--wa);
  color: #ffffff;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  box-shadow: var(--shadow-lg);
  transition: transform var(--dur) var(--ease), filter var(--dur) var(--ease);
}
.wa-float:hover {
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-2px);
  filter: brightness(1.06);
}
.wa-float .icon {
  width: 1.5rem;
  height: 1.5rem;
}
.wa-float__label {
  display: none;
}
body.has-mobile-cta .wa-float {
  bottom: 84px;
}
.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-sticky);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--gutter) calc(var(--space-3) + env(safe-area-inset-bottom));
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
}
.mobile-cta__info {
  flex: 1;
  min-width: 0;
  line-height: 1.25;
}
.mobile-cta__info strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--fs-sm);
}
.mobile-cta__info span {
  font-size: var(--fs-xs);
  color: var(--text-subtle);
}
body.has-mobile-cta {
  padding-bottom: 76px;
}

/* ---- Misc --------------------------------------------------------------- */
.divider-label {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  color: var(--text-subtle);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}
.divider-label::before,
.divider-label::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--border);
}
.kv {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: var(--space-2) var(--space-6);
  font-size: var(--fs-sm);
}
.kv dt {
  color: var(--text-subtle);
}
.kv dd {
  margin: 0;
  font-weight: var(--fw-medium);
  overflow-wrap: anywhere;
}
.pending-line {
  color: var(--text-subtle);
  font-style: italic;
}

/* ---- Website assistant (chat) -------------------------------------------------------------------
   A floating "Ask us" button above the WhatsApp button, and a chat panel (assets/js/assistant.js).
   Desktop: a card in the bottom-right corner. Phone: a full-screen sheet. */
.ai-launcher {
  position: fixed;
  right: var(--space-4);
  bottom: calc(var(--space-4) + var(--ai-stack, 0px));
  z-index: var(--z-float);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 52px;
  padding: 0 1rem;
  border: 0;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.ai-launcher[hidden] {
  display: none;
}
.ai-launcher:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}
.ai-launcher .icon {
  width: 1.4rem;
  height: 1.4rem;
}
.ai-launcher__label {
  display: none;
}
body.has-wa {
  --ai-stack: 64px; /* room for the WhatsApp button underneath */
}
body.has-mobile-cta .ai-launcher {
  bottom: calc(84px + var(--ai-stack, 0px));
}
body.ai-open .wa-wrap {
  display: none; /* the panel covers that corner; keep the button out of the tab order meanwhile */
}

.ai-panel {
  position: fixed;
  right: var(--space-4);
  bottom: var(--space-4);
  z-index: var(--z-overlay);
  display: flex;
  flex-direction: column;
  width: min(400px, calc(100vw - 2 * var(--space-4)));
  height: min(620px, calc(100vh - 2 * var(--space-4)));
  height: min(620px, calc(100dvh - 2 * var(--space-4)));
  overflow: hidden;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.ai-panel[hidden] {
  display: none;
}
.ai-panel__head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.ai-panel__badge {
  display: grid;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--accent-soft);
  color: var(--accent-text);
}
.ai-panel__heading {
  flex: 1;
  min-width: 0;
}
.ai-panel__title {
  margin: 0;
  font-size: var(--fs-base);
  line-height: 1.25;
}
.ai-panel__sub {
  margin: 0;
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.ai-log {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--space-3);
  min-height: 0;
  padding: var(--space-4);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.ai-msg {
  display: flex;
}
.ai-msg--user {
  justify-content: flex-end;
}
.ai-msg__bubble {
  max-width: 88%;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-lg);
  font-size: var(--fs-sm);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.ai-msg--bot .ai-msg__bubble {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-bottom-left-radius: var(--radius-sm);
}
.ai-msg--user .ai-msg__bubble {
  background: var(--accent);
  color: var(--on-accent);
  border-bottom-right-radius: var(--radius-sm);
}
.ai-msg__bubble p {
  margin: 0;
}
.ai-msg__bubble p + p,
.ai-msg__bubble p + ul {
  margin-top: 0.5rem;
}
.ai-msg__bubble ul {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
}
.ai-msg__bubble a {
  color: var(--accent-text);
  font-weight: var(--fw-semibold);
  text-decoration: underline;
}
.ai-msg--card {
  display: block;
}
.ai-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 1.3em;
}
.ai-dots i {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--text-muted);
  animation: ai-blink 1.2s ease-in-out infinite;
}
.ai-dots i:nth-child(2) {
  animation-delay: 0.15s;
}
.ai-dots i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes ai-blink {
  0%, 80%, 100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}
.ai-suggest {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.ai-chip {
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: var(--fs-sm);
  text-align: left;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.ai-chip:hover {
  border-color: var(--accent);
  color: var(--accent-text);
}
.ai-form {
  display: flex;
  align-items: flex-end;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4) 0;
  border-top: 1px solid var(--border);
}
.ai-form__input {
  flex: 1;
  min-height: 44px;
  max-height: 120px;
  resize: none;
}
.ai-form__send {
  flex: none;
  width: 44px;
  min-width: 44px;
  padding: 0;
}
.ai-note {
  margin: 0;
  padding: var(--space-2) var(--space-4) var(--space-3);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.ai-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent-text);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.ai-panel.is-busy .ai-form__send {
  opacity: 0.6;
}
.ai-card {
  display: grid;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}
.ai-card__title {
  margin: 0;
  font-size: var(--fs-base);
}
.ai-card__hint {
  margin: 0;
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.ai-card .textarea {
  min-height: 84px;
}
.ai-card__error:empty {
  display: none;
}
.ai-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
@media (max-width: 599px) {
  .ai-panel {
    inset: 0;
    width: auto;
    height: auto;
    border: 0;
    border-radius: 0;
  }
  .ai-form {
    padding-bottom: env(safe-area-inset-bottom);
  }
}
