/* Optident landing. Every value comes from tokens.css. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono-var-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

/* Base */

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

:root { interpolate-size: allow-keywords; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5rem;
  scrollbar-color: var(--line-strong) var(--bg);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  caret-color: var(--accent);
}

main { overflow-x: clip; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }
strong { font-weight: var(--w-semibold); }
::selection { background: var(--accent-tint-2); color: var(--text); }
p { text-wrap: pretty; }

a {
  color: var(--accent-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}
a:hover { color: var(--accent-hover); }

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

.i { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: var(--track-mono); }

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

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

.skip {
  position: absolute;
  left: var(--gutter);
  top: 0;
  z-index: var(--z-skip);
  padding: 0.75rem 1rem;
  border-radius: var(--r-input);
  background: var(--text);
  color: var(--bg);
  font-weight: var(--w-semibold);
  text-decoration: none;
  transform: translateY(-120%);
  transition: transform var(--dur-fast) var(--ease-out);
}
.skip:focus { transform: translateY(0.75rem); color: var(--bg); }

/* Type */

.display {
  font-size: var(--t-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--track-display);
  font-weight: var(--w-display);
  font-stretch: var(--stretch-display);
  text-wrap: balance;
}

.h2 {
  font-size: var(--t-h2);
  line-height: var(--lh-heading);
  letter-spacing: var(--track-heading);
  font-weight: var(--w-display);
  font-stretch: var(--stretch-display);
  text-wrap: balance;
}

.h3 {
  font-size: var(--t-h3);
  line-height: 1.25;
  letter-spacing: -0.012em;
  font-weight: var(--w-semibold);
}

.lead {
  font-size: var(--t-lead);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 36em;
  text-wrap: pretty;
}

.muted { color: var(--text-muted); }
.accent { color: var(--accent-text); }

/* Buttons: primary = the one signup action; secondary; link */

.btn {
  --h: var(--control-h);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: var(--h);
  padding: 0 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font: inherit;
  font-size: 1rem;
  font-weight: var(--w-semibold);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}
.btn .i { width: 1.15em; height: 1.15em; transition: transform var(--dur-base) var(--ease-out); }
.btn:hover .i--arrow { transform: translateX(3px); }
.btn--lg { --h: var(--control-h-lg); padding: 0 1.6rem; font-size: 1.0625rem; }
.btn--block { width: 100%; }

.btn--primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-accent); }
.btn--primary:hover { background: var(--accent-hover); color: var(--on-accent); box-shadow: var(--shadow-accent-hover); }

.btn--secondary { background: var(--surface); border-color: var(--line-strong); color: var(--text); }
.btn--secondary:hover { border-color: var(--text-muted); color: var(--text); }

.btn--link {
  padding: 0 0.35rem;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.35em;
}
.btn--link:hover { color: var(--text); text-decoration-color: var(--accent); }

.btn--inverse { background: var(--paper-0); color: var(--blue-700); box-shadow: 0 10px 24px -12px rgb(15 23 41 / 0.5); }
.btn--inverse:hover { background: var(--blue-50); color: var(--blue-800); }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn--primary:hover,
  .btn--inverse:hover { transform: translateY(-1px); }
}
.btn:active { transform: translateY(1px) scale(0.985); }

.btn:disabled,
.btn[aria-disabled="true"] {
  background: var(--bg-sunken);
  border-color: transparent;
  color: var(--text-subtle);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}
.btn--link[aria-disabled="true"] { background: none; text-decoration-color: var(--line); }

/* Chips: stock states always carry a word, never color alone */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 1.625rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--r-chip);
  font-size: var(--t-micro);
  font-weight: var(--w-semibold);
  line-height: 1.2;
  white-space: nowrap;
}
.chip .i { width: 1rem; height: 1rem; }
.chip--ok { background: var(--ok-bg); color: var(--ok-text); }
.chip--warn { background: var(--warn-bg); color: var(--warn-text); }
.chip--crit { background: var(--crit-bg); color: var(--crit-text); }
.chip--info { background: var(--accent-tint); color: var(--accent-text); }
.chip--neutral { background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--text-muted); }

/* Nav */

.nav-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 1px; }

.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out);
}
.nav.is-scrolled,
.nav.is-open { border-bottom-color: var(--line); }
.nav.is-open { background: var(--bg); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav { background: var(--bg); }
}

.nav__inner { display: flex; align-items: center; gap: var(--s-6); height: 4rem; }
.nav__logo { display: inline-flex; align-items: center; min-height: var(--control-h); }
.nav__logo img { height: 26px; width: auto; }
.nav__links { display: flex; align-items: center; gap: var(--s-1); }

.nav__links a,
.nav__login {
  display: inline-flex;
  align-items: center;
  min-height: var(--control-h);
  padding: 0 0.8rem;
  border-radius: var(--r-pill);
  color: var(--text-muted);
  font-size: var(--t-small);
  font-weight: var(--w-medium);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.nav__links a:hover,
.nav__login:hover { color: var(--text); background: var(--bg-sunken); }
.nav__links a[aria-current="true"] { color: var(--text); background: var(--bg-sunken); }
.nav__login { color: var(--text); font-weight: var(--w-semibold); }

.nav__end { display: flex; align-items: center; gap: var(--s-2); margin-left: auto; }

.nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: var(--control-h);
  height: var(--control-h);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.nav__toggle .i--close { display: none; }
.nav__toggle[aria-expanded="true"] .i--open { display: none; }
.nav__toggle[aria-expanded="true"] .i--close { display: block; }

.nav__panel { padding: var(--s-2) 0 var(--s-5); border-top: 1px solid var(--line); background: var(--bg); }
.nav__panel li a:not(.btn) {
  display: flex;
  align-items: center;
  min-height: 3rem;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 1.0625rem;
  font-weight: var(--w-medium);
  text-decoration: none;
}
.nav__panel .btn { width: 100%; margin-top: var(--s-4); }

/* Sections */

.section { position: relative; padding-block: var(--section-y) calc(var(--section-y) * 1.08); }
.section--sunken { background: var(--bg-sunken); }
.section__head { display: grid; gap: var(--s-4); max-width: 46rem; margin-bottom: clamp(2.5rem, 2rem + 2.5vw, 4.5rem); }
.section__head--center { margin-inline: auto; justify-items: center; text-align: center; }

.section--ink { overflow: clip; background: var(--surface-inverse); color: var(--text-on-inverse); }
.section--ink::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(55% 60% at 50% 0%, rgb(36 99 235 / 0.38), transparent 72%);
  pointer-events: none;
}
.section--ink > .container { position: relative; z-index: 1; }
.section--ink .lead { color: var(--text-on-inverse-muted); }

/* Hero */

.hero { position: relative; overflow: clip; padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) clamp(4rem, 3rem + 4vw, 6.5rem); }
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(40% 60% at 72% 50%, var(--glow), transparent 72%);
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}
.hero__copy { display: grid; gap: var(--s-5); justify-items: start; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); padding-top: var(--s-2); }
.hero__visual img { width: 100%; filter: drop-shadow(0 30px 40px rgb(15 23 41 / 0.12)); }
.hero__facts { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; color: var(--text-muted); font-size: var(--t-small); }
.hero__facts li { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero__facts .i { width: 1rem; height: 1rem; color: var(--accent-text); }

/* Pains: one card per situation */

.pains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.pain {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.pain__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--r-panel);
  background: var(--accent-tint);
  color: var(--accent-text);
}
.pain__icon .i { width: 1.5rem; height: 1.5rem; }
.pain__q { font-size: 1.1875rem; line-height: 1.35; font-weight: var(--w-semibold); letter-spacing: -0.01em; text-wrap: pretty; }
.pain__cost {
  display: grid;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: var(--s-4);
  border-top: 1px dashed var(--line-strong);
  color: var(--text-muted);
  font-size: var(--t-small);
  line-height: 1.4;
}
.pain__metric {
  color: var(--accent-text);
  font-size: 2.25rem;
  font-weight: var(--w-bold);
  font-stretch: var(--stretch-display);
  letter-spacing: -0.035em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.pain__lead { color: var(--text); font-size: 1.375rem; font-weight: var(--w-bold); font-stretch: var(--stretch-display); letter-spacing: -0.02em; line-height: 1.1; }

.pains__close { display: grid; justify-items: center; gap: var(--s-5); margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); text-align: center; }
.pains__close p { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem); font-weight: var(--w-semibold); letter-spacing: -0.015em; text-wrap: balance; }
.pains__close p span { color: var(--text-muted); font-weight: var(--w-medium); }

/* How it works rail */

.rail { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6); }
.rail::before {
  content: "";
  position: absolute;
  top: 1.375rem;
  left: 1.375rem;
  right: calc((100% - 4rem) / 3 - 1.375rem);
  height: 1px;
  background: var(--line-strong);
}
.rail__step { position: relative; display: grid; gap: var(--s-3); align-content: start; }
.rail__step p { max-width: 24em; }
.rail__node {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: var(--s-3);
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 0 0 6px var(--bg);
}
.rail__node .i { width: 1.35rem; height: 1.35rem; }
.rail__artifact { margin-top: var(--s-4); font-size: var(--t-micro); }

.scanframe {
  display: grid;
  gap: 0.6rem;
  justify-items: start;
  padding: 1rem 1.1rem;
  background:
    linear-gradient(var(--accent), var(--accent)) top left / 1rem 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) top left / 2px 1rem no-repeat,
    linear-gradient(var(--accent), var(--accent)) top right / 1rem 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) top right / 2px 1rem no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom left / 1rem 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom left / 2px 1rem no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom right / 1rem 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom right / 2px 1rem no-repeat;
}

.scan { display: grid; gap: 0.5rem; }
.scan__items { display: grid; gap: 0.4rem; }
.scan__items li {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  align-items: center;
  gap: 0.7rem;
  padding: 0.45rem 0.7rem 0.45rem 0.45rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-label);
}
.scan__items img { width: 2.25rem; height: 2.25rem; border-radius: var(--r-chip); background: var(--accent-tint); }
.scan__items li > span:last-child { display: grid; gap: 0.1rem; min-width: 0; }
.scan__items strong { font-size: 0.875rem; font-weight: var(--w-semibold); }

.rules { display: grid; gap: 0.5rem; }
.rule { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.35rem; }

.ticket {
  display: grid;
  gap: 0.5rem;
  padding: 0.9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-label);
}
.ticket__row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.ticket__row + .ticket__row { padding-top: 0.5rem; border-top: 1px dashed var(--line-strong); }

/* Product proof: real screenshot with numbered markers */

.figure {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 3.4fr);
  gap: var(--s-4) clamp(1.5rem, 1rem + 2vw, 3rem);
  align-items: center;
}
.figure__frame {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
}
.figure__frame img { width: 100%; }
.figure__canvas { position: relative; }
.marker {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: var(--w-semibold);
  line-height: 1;
}
.figure__canvas .marker {
  position: absolute;
  left: var(--x);
  top: var(--y);
  margin: -0.75rem 0 0 -0.75rem;
  box-shadow: 0 0 0 3px var(--marker-ring);
}
.figure__notes { display: grid; gap: var(--s-4); }
.figure__notes li {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  font-size: var(--t-small);
  line-height: 1.45;
}
.figure figcaption { grid-column: 1; font-size: var(--t-micro); color: var(--text-muted); }

/* Unique: the ink band, the peak of the scroll. The statement on the left, the six differences as a ruled list. */

.unique {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 1rem + 5vw, 6rem);
  align-items: start;
}
.unique__head { position: sticky; top: 7rem; display: grid; gap: var(--s-5); justify-items: start; }
.unique__head .lead { max-width: 30em; }
.section--ink .accent { color: var(--blue-300); }
.unique__list { border-top: 1px solid rgb(255 255 255 / 0.14); }
.unique__row {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  padding-block: clamp(1.25rem, 1rem + 0.8vw, 1.75rem);
  border-bottom: 1px solid rgb(255 255 255 / 0.14);
}
.unique__row h3 { padding-top: 0.55rem; font-size: 1.25rem; line-height: 1.3; font-weight: var(--w-semibold); letter-spacing: -0.01em; }
.unique__row p { margin-top: 0.35rem; max-width: 38em; color: var(--text-on-inverse-muted); }
.feature__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--r-panel);
  background: linear-gradient(180deg, var(--blue-600), var(--blue-700));
  color: var(--paper-0);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.25), 0 14px 28px -12px rgb(36 99 235 / 0.8);
}
.feature__icon .i { width: 1.4rem; height: 1.4rem; }

/* Marketplace */

.market {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: center;
}
.market__visual { position: relative; }
.market__visual::before {
  content: "";
  position: absolute;
  inset: 8% 6%;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), transparent);
  pointer-events: none;
}
.market__visual img { position: relative; width: min(100%, 36rem); margin-inline: auto; }
.market__copy { display: grid; gap: var(--s-5); justify-items: start; }
.points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5) var(--s-6); padding-block: var(--s-2); }
.point { display: grid; gap: 0.3rem; }
.point h3 { display: flex; align-items: center; gap: 0.5rem; font-size: 1.0625rem; font-weight: var(--w-semibold); }
.point h3 .i { color: var(--accent-text); }
.point p { font-size: var(--t-small); color: var(--text-muted); }

/* Comparison matrix */

.matrix-wrap { position: relative; overflow-x: auto; }
.matrix { width: 100%; min-width: 34rem; border-collapse: separate; border-spacing: 0; font-size: var(--t-small); }
.matrix th,
.matrix td { padding: 0.95rem 1rem; text-align: center; }
.matrix thead th { color: var(--text-muted); font-size: var(--t-micro); font-weight: var(--w-semibold); vertical-align: bottom; }
.matrix thead th:not(:first-child) { width: 12rem; }
.matrix thead .us { border-radius: var(--r-label) var(--r-label) 0 0; color: var(--accent-text); font-size: var(--t-small); }
.matrix tbody tr:last-child .us { border-radius: 0 0 var(--r-label) var(--r-label); }
.matrix th[scope="row"] { font-weight: var(--w-medium); text-align: left; }
.matrix tbody tr + tr > * { border-top: 1px solid var(--line); }
.matrix .us { background: var(--accent-tint); }
.matrix tbody tr + tr > .us { border-top-color: var(--accent-tint-2); }
.matrix .i { margin-inline: auto; width: 1.25rem; height: 1.25rem; }
.matrix .yes { color: var(--accent-text); }
.matrix .no { color: var(--text-muted); }
.matrix .abbr { display: none; }

/* Testimonials */

.quotes {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: start;
}
.quote { display: grid; gap: var(--s-5); }
.quote blockquote { font-weight: var(--w-medium); letter-spacing: -0.012em; text-wrap: pretty; }
.quote--lead blockquote { font-size: clamp(1.3rem, 1.05rem + 1.3vw, 2rem); line-height: 1.28; font-stretch: 92%; }
.quote--side { margin-top: clamp(0rem, -2rem + 7vw, 5rem); padding-top: var(--s-5); border-top: 1.5px solid var(--text); }
.quote--side blockquote { font-size: clamp(1.1875rem, 1rem + 0.55vw, 1.4375rem); line-height: 1.4; }
.quote figcaption { display: flex; align-items: center; gap: 0.9rem; }
.quote img { width: 3.5rem; height: 3.5rem; border-radius: var(--r-label); object-fit: cover; }
.quote__name { display: block; font-style: normal; font-weight: var(--w-semibold); }
.quote__role { color: var(--text-muted); font-size: var(--t-small); }

/* Pricing: one plan, one clear price */

.plan {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  max-width: 64rem;
  margin-inline: auto;
  overflow: hidden;
  border: 1.5px solid transparent;
  border-radius: var(--r-plan);
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(140deg, var(--blue-300), var(--accent) 35%, var(--line) 72%) border-box;
  box-shadow: var(--shadow-plan);
}
.plan__main { display: flex; flex-direction: column; gap: var(--s-5); padding: clamp(1.75rem, 1rem + 2.5vw, 3rem); }
.plan__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); }
.plan__name { font-size: 1.375rem; font-weight: var(--w-bold); letter-spacing: -0.015em; }
.plan__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; }
.plan__amount {
  font-size: clamp(3.75rem, 2.75rem + 3vw, 5.25rem);
  font-weight: var(--w-bold);
  font-stretch: var(--stretch-display);
  letter-spacing: -0.045em;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}
.plan__per { font-size: 1.25rem; font-weight: var(--w-medium); color: var(--text-muted); }
.plan__was { font-size: 1.25rem; font-weight: var(--w-semibold); color: var(--text-muted); text-decoration: line-through; text-decoration-thickness: 2px; }
.plan__timeline { display: grid; grid-template-columns: minmax(6.5rem, 1fr) 3fr; gap: 0.35rem; }
.plan__phase { display: grid; gap: 0.3rem; align-content: start; }
.plan__bar { height: 0.5rem; border-radius: var(--r-pill); background: var(--line-strong); }
.plan__phase--now .plan__bar { background: var(--accent); }
.plan__when { margin-top: 0.3rem; font-size: var(--t-micro); font-weight: var(--w-medium); color: var(--text-muted); }
.plan__what { font-size: 1.125rem; font-weight: var(--w-bold); letter-spacing: -0.01em; }
.plan__phase--now .plan__what { color: var(--accent-text); }
.plan__note { display: flex; align-items: center; justify-content: center; gap: 0.45rem; font-size: var(--t-micro); color: var(--text-muted); }
.plan__note .i { width: 1rem; height: 1rem; }
.plan__included { display: grid; align-content: start; gap: var(--s-5); padding: clamp(1.75rem, 1rem + 2.5vw, 3rem); background: var(--bg-sunken); }
.plan__label { font-size: var(--t-small); font-weight: var(--w-semibold); }
.plan__list { display: grid; gap: 0.9rem; }
.plan__list li { display: flex; align-items: flex-start; gap: 0.7rem; font-size: var(--t-small); line-height: 1.45; }
.plan__list .i {
  width: 1.3rem;
  height: 1.3rem;
  padding: 0.22rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
}

/* FAQ: closed accordions */

.faq-layout { display: grid; gap: clamp(2.5rem, 2rem + 2vw, 4rem); max-width: 52rem; }
.faq__intro { display: grid; gap: var(--s-4); justify-items: center; text-align: center; }
.faq { display: grid; gap: var(--s-3); }
.faq__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.faq__item[open] { border-color: var(--line-strong); box-shadow: var(--shadow-card); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  min-height: 3.75rem;
  padding: 1.05rem 1.1rem 1.05rem 1.4rem;
  border-radius: var(--r-card);
  font-size: 1.0625rem;
  font-weight: var(--w-semibold);
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--accent-text); }
.faq__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--bg-sunken);
  color: var(--text);
  transition: transform var(--dur-base) var(--ease-out), background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.faq__icon .i { width: 1.1rem; height: 1.1rem; }
.faq__item[open] .faq__icon { background: var(--accent); color: var(--on-accent); transform: rotate(45deg); }
.faq__answer { max-width: 60ch; padding: 0 1.4rem 1.35rem; color: var(--text-muted); line-height: 1.65; }

/* Closing band */

.cta {
  padding-block: clamp(4rem, 3rem + 4vw, 6.5rem);
  background:
    radial-gradient(60% 140% at 92% 0%, rgb(255 255 255 / 0.18), transparent 60%),
    radial-gradient(50% 120% at 0% 100%, rgb(15 23 41 / 0.28), transparent 65%),
    var(--accent);
  color: var(--on-accent);
}
.cta__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-6); align-items: end; }
.cta .h2 { max-width: 18ch; }
.cta p { max-width: 34em; margin-top: var(--s-4); font-size: var(--t-lead); }

/* Footer */

.footer { padding-block: var(--s-8) var(--s-6); background: var(--surface-inverse); color: var(--text-on-inverse); font-size: var(--t-small); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: var(--s-7) var(--s-6); padding-bottom: var(--s-7); }
.footer__brand { display: grid; gap: var(--s-4); align-content: start; justify-items: start; }
.footer__logo { display: inline-flex; align-items: center; min-height: var(--control-h); }
.footer__brand .logo { height: 24px; width: auto; filter: brightness(0) invert(1); }
.footer__brand p { color: var(--text-on-inverse-muted); max-width: 22em; }
.footer__enisa { width: 8.5rem; }
.footer__title { margin-bottom: var(--s-2); color: var(--text-on-inverse); font-size: var(--t-small); font-weight: var(--w-semibold); }
.footer__links a,
.footer__cookies {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-on-inverse-muted);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out);
}
.footer__links a:hover,
.footer__cookies:hover { color: var(--text-on-inverse); text-decoration: underline; text-underline-offset: 0.22em; }
.footer__links .i { flex: none; width: 1rem; height: 1rem; }
.footer__news { padding-block: var(--s-6); border-top: 1px solid rgb(255 255 255 / 0.1); }
.footer .field__label { color: var(--text-on-inverse); }
.footer .field__hint,
.footer .field__status { color: var(--text-on-inverse-muted); }
.footer .input { background: rgb(255 255 255 / 0.06); border-color: rgb(255 255 255 / 0.18); color: var(--text-on-inverse); }
.footer .input::placeholder { color: var(--text-on-inverse-muted); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3) var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid rgb(255 255 255 / 0.1);
  color: var(--text-on-inverse-muted);
  font-size: var(--t-micro);
}

/* Form field */

.field { display: grid; gap: 0.5rem; }
.field__label { font-weight: var(--w-semibold); }
.field__row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.input {
  flex: 1 1 11rem;
  min-width: 0;
  height: var(--control-h);
  padding: 0 0.9rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-input);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.input::placeholder { color: var(--text-muted); opacity: 1; }
.input:hover { border-color: var(--text-subtle); }
.input:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint-2); }
.input[aria-invalid="true"] { border-color: var(--crit-600); }
.field__hint { font-size: var(--t-micro); color: var(--text-muted); }
.field__error { display: flex; align-items: center; gap: 0.4rem; font-size: var(--t-micro); color: var(--crit-text); }
.field__error[hidden] { display: none; }
.field__status:empty { display: none; }
.field__status { font-size: var(--t-micro); color: var(--text); }

/* Motion: entrances on scroll, lift on hover. Content is visible by default and under reduced motion. */

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal],
  .js [data-reveal-group] > * {
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
    transition-delay: calc(var(--i, 0) * 70ms);
  }
  .js [data-reveal].is-inview,
  .js [data-reveal-group].is-inview > * { opacity: 1; transform: none; }

  .js .rail::before { transform: scaleX(0); transform-origin: left center; transition: transform 1.1s var(--ease-out); }
  .js .rail.is-inview::before { transform: scaleX(1); }
  .js .rail__node { opacity: 0; transform: scale(0.6); transition: opacity 0.4s var(--ease-out), transform 0.5s var(--ease-out); }
  .js .rail.is-inview .rail__node { opacity: 1; transform: none; }
  .js .rail.is-inview .rail__step:nth-child(2) .rail__node { transition-delay: 0.35s; }
  .js .rail.is-inview .rail__step:nth-child(3) .rail__node { transition-delay: 0.7s; }

  .faq__item::details-content {
    block-size: 0;
    overflow-y: clip;
    transition: block-size var(--dur-base) var(--ease-out), content-visibility var(--dur-base) allow-discrete;
  }
  .faq__item[open]::details-content { block-size: auto; }
}


/* Responsive */

@media (max-width: 1080px) {
  .nav__inner > nav,
  .nav__login { display: none; }
  .nav__inner { gap: var(--s-3); }
  .nav__end .btn { padding: 0 1rem; }
  .nav__toggle { display: inline-flex; }

  .figure { grid-template-columns: minmax(0, 1fr); }
  .figure__notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .hero__grid,
  .market,
  .quotes,
  .plan,
  .faq-layout,
  .cta__inner { grid-template-columns: minmax(0, 1fr); }

  .hero__visual { max-width: 40rem; margin-inline: auto; }
  .faq__intro { position: static; }
  .pains { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .unique { grid-template-columns: minmax(0, 1fr); }
  .unique__head { position: static; }
  .market__visual { order: 2; }
  .quote--side { margin-top: 0; }
  .cta__inner { align-items: start; }

  .rail { grid-template-columns: minmax(0, 1fr); gap: var(--s-7); }
  .rail::before { top: 0; bottom: 0; left: 1.375rem; right: auto; width: 1px; height: auto; }
  .js .rail::before,
  .js .rail.is-inview::before { transform: none; }
  .rail__step { padding-left: 4rem; }
  .rail__node { position: absolute; top: 0; left: 0; margin: 0; }
  .rail__artifact { max-width: 28rem; }

  .matrix thead th:not(:first-child) { width: 7.5rem; }

  .footer__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer__brand,
  .footer__news { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .pains,
  .points,
  .figure__notes { grid-template-columns: minmax(0, 1fr); }

  .hero__actions .btn--primary { width: 100%; }
  .hero__actions { width: 100%; }
  .plan__timeline { grid-template-columns: minmax(5.5rem, 1fr) 2fr; }

  .figure__frame { overflow-x: auto; }
  .figure__canvas { width: 40rem; }

  .matrix { min-width: 0; font-size: var(--t-micro); }
  .matrix thead th:not(:first-child) { width: auto; }
  .matrix th,
  .matrix td { padding: 0.8rem 0.35rem; }
  .matrix th[scope="row"] { padding-left: 0.5rem; }
  .matrix thead .us { font-size: var(--t-micro); }
  .matrix .full {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .matrix .abbr { display: inline; }

  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* Language switcher */

.lang { position: relative; }
.lang__button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: var(--control-h);
  padding: 0 0.7rem;
  border-radius: var(--r-pill);
  color: var(--text-muted);
  font-size: var(--t-small);
  font-weight: var(--w-semibold);
  list-style: none;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.lang__button::-webkit-details-marker { display: none; }
.lang__button:hover,
.lang[open] .lang__button { color: var(--text); background: var(--bg-sunken); }
.lang__button .i { width: 1.1rem; height: 1.1rem; }
.lang__caret { transition: transform var(--dur-base) var(--ease-out); }
.lang[open] .lang__caret { transform: rotate(180deg); }
.lang__menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  z-index: var(--z-nav);
  min-width: 11rem;
  padding: 0.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  box-shadow: var(--shadow-lift);
}
.lang__menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2.75rem;
  padding: 0 0.8rem;
  border-radius: var(--r-input);
  color: var(--text);
  font-size: var(--t-small);
  font-weight: var(--w-medium);
  text-decoration: none;
}
.lang__menu a:hover { background: var(--bg-sunken); color: var(--text); }
.lang__menu a[aria-current="true"] { color: var(--accent-text); font-weight: var(--w-semibold); }
.lang__menu a[aria-current="true"]::after { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--accent); }

.nav__langs { display: flex; gap: var(--s-2); margin-top: var(--s-4); }
.nav__langs a {
  display: grid;
  flex: 1;
  place-items: center;
  min-height: var(--control-h);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  color: var(--text);
  font-size: var(--t-small);
  font-weight: var(--w-semibold);
  text-decoration: none;
}
.nav__langs a[aria-current="true"] { background: var(--accent-tint); border-color: transparent; color: var(--accent-text); }

/* Cookie consent: non-blocking, reject as easy as accept */

.consent {
  position: fixed;
  left: var(--gutter);
  bottom: var(--gutter);
  z-index: var(--z-skip);
  width: min(100% - 2 * var(--gutter), 30rem);
  padding: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-lift);
}
.consent[hidden] { display: none; }
.consent__body { display: grid; gap: var(--s-4); }
.consent__title { display: flex; align-items: center; gap: 0.5rem; font-size: 1.0625rem; font-weight: var(--w-bold); }
.consent__title .i { width: 1.35rem; height: 1.35rem; color: var(--accent-text); }
.consent__text { color: var(--text-muted); font-size: var(--t-small); line-height: 1.55; }
.consent__prefs { display: grid; gap: var(--s-2); }
.consent__prefs[hidden] { display: none; }
.consent__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0.9rem;
  background: var(--bg);
  border-radius: var(--r-label);
  font-size: var(--t-micro);
  cursor: pointer;
}
.consent__option > span { display: grid; gap: 0.15rem; }
.consent__option strong { font-size: var(--t-small); }
.consent__option > span > span { color: var(--text-muted); }
.consent__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.consent__actions .btn { flex: 1 1 8rem; }
.consent__actions .btn[hidden] { display: none; }
.consent__more {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: var(--control-h);
  padding: 0;
  background: none;
  border: 0;
  color: var(--text);
  font: inherit;
  font-size: var(--t-small);
  font-weight: var(--w-semibold);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 0.3em;
  cursor: pointer;
}
.consent__more:hover { text-decoration-color: var(--accent); }

.toggle {
  position: relative;
  flex: none;
  width: 2.5rem;
  height: 1.5rem;
  margin: 0;
  border-radius: var(--r-pill);
  background: var(--text-muted);
  appearance: none;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out);
}
.toggle::after {
  content: "";
  position: absolute;
  top: 0.2rem;
  left: 0.2rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--paper-0);
  box-shadow: 0 1px 2px rgb(15 23 41 / 0.3);
  transition: transform var(--dur-base) var(--ease-out);
}
.toggle:checked { background: var(--accent); }
.toggle:checked::after { transform: translateX(1rem); }
.toggle:disabled { opacity: 0.6; cursor: not-allowed; }
.toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }



@media (prefers-reduced-motion: no-preference) {
  .js .consent:not([hidden]) { animation: consent-in var(--dur-slow) var(--ease-out) both; }
  @keyframes consent-in {
    from { opacity: 0; transform: translateY(1.5rem); }
    to { opacity: 1; transform: none; }
  }
}

@media (max-width: 960px) {
  .lang { display: none; }
}

@media (max-width: 640px) {
  .consent { left: 0.75rem; right: 0.75rem; bottom: 0.75rem; width: auto; padding: 1.2rem; }
}

@media (max-width: 400px) {
  .nav__logo img { height: 22px; }
}

/* Not-found page */

.notfound { position: relative; display: grid; align-items: center; min-height: calc(100dvh - 4rem); overflow: clip; padding-block: var(--section-y); }
.notfound__inner { position: relative; display: grid; gap: var(--s-5); justify-items: start; }
.notfound__inner .lead { max-width: 34em; }
.notfound__links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); padding-top: var(--s-2); }

/* Inner pages: page header, ruled lists, figures, plans, distributor, legal reading */

.page-hero { position: relative; overflow: clip; padding-block: clamp(3rem, 2rem + 4vw, 6rem) clamp(3.5rem, 2.5rem + 4vw, 6.5rem); }
.page-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
.page-hero__grid:not(:has(> .page-hero__visual)) { grid-template-columns: minmax(0, 54rem); }
.page-hero__copy { display: grid; gap: var(--s-5); justify-items: start; }
.page-hero--center .page-hero__grid { justify-content: center; text-align: center; }
.page-hero--center .page-hero__copy { justify-items: center; }
.page-hero__note { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.8rem; border-radius: var(--r-chip); background: var(--accent-tint); color: var(--accent-text); font-size: var(--t-small); font-weight: var(--w-medium); }
.page-hero__note .i { width: 1rem; height: 1rem; }
.page-hero__visual { position: relative; }
.page-hero__visual img { width: 100%; }
.page-hero__visual--frame { overflow: hidden; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-card); box-shadow: var(--shadow-card); }
.page-hero__visual--panel { justify-self: center; width: min(100%, 28rem); padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-card); box-shadow: var(--shadow-card); }
.page-hero__visual--panel .rail__artifact { margin-top: 0; }
.page-hero .figures { margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); }

.section--flush { padding-top: 0; }
.plans { display: grid; gap: var(--s-6); }
.plan__for { color: var(--text-muted); font-size: var(--t-small); }
.plan-alt {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: var(--s-6) clamp(2rem, 1rem + 4vw, 4rem);
  width: 100%;
  max-width: 64rem;
  margin-inline: auto;
  padding: clamp(1.75rem, 1rem + 2.5vw, 3rem);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-plan);
}
.plan-alt__main { display: grid; gap: var(--s-4); align-content: start; justify-items: start; }
.plan-alt__price { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem); font-weight: var(--w-bold); font-stretch: var(--stretch-display); letter-spacing: -0.03em; line-height: 1; }

.rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 1rem + 4vw, 5rem); border-top: 1px solid var(--line-strong); }
.rows__item { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 1.25rem; align-items: start; padding-block: clamp(1.25rem, 1rem + 0.8vw, 1.75rem); border-bottom: 1px solid var(--line-strong); }
.rows__item h3 { padding-top: 0.55rem; font-size: 1.1875rem; line-height: 1.3; font-weight: var(--w-semibold); letter-spacing: -0.01em; }
.rows__item p { margin-top: 0.35rem; max-width: 36em; color: var(--text-muted); }

.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5) var(--s-6); padding-block: var(--s-6); border-block: 1px dashed var(--line-strong); }
.figures__item { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 0.45rem; }
.figures__value { color: var(--accent-text); font-size: clamp(2.25rem, 1.6rem + 2vw, 3.25rem); font-weight: var(--w-bold); font-stretch: var(--stretch-display); letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.figures__label { max-width: 18em; color: var(--text-muted); font-size: var(--t-small); line-height: 1.45; }

.quote--solo { max-width: 52rem; margin: clamp(3rem, 2rem + 3vw, 5rem) auto 0; }
.container > .quote--solo:first-child { margin-top: 0; }

.enisa-note { display: flex; align-items: center; gap: var(--s-5); margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); color: var(--text-muted); font-size: var(--t-small); }
.enisa-note img { width: 7.5rem; flex: none; }

.distributor { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto; gap: var(--s-6) clamp(2rem, 1rem + 3vw, 4rem); align-items: center; padding: clamp(1.75rem, 1rem + 2.5vw, 3rem); background: var(--bg-sunken); border-radius: var(--r-plan); }
.distributor__copy { display: grid; gap: var(--s-3); }

.cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); }
.cta .btn--link { color: var(--on-accent); text-decoration-color: rgb(255 255 255 / 0.5); }
.cta .btn--link:hover { color: var(--on-accent); text-decoration-color: var(--on-accent); }

.legal { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) var(--section-y); }
.legal__inner { display: grid; gap: var(--s-5); max-width: 46rem; }
.legal__back { display: inline-flex; align-items: center; gap: 0.45rem; justify-self: start; min-height: var(--control-h); color: var(--text-muted); font-size: var(--t-small); font-weight: var(--w-medium); text-decoration: none; }
.legal__back:hover { color: var(--text); }
.legal__back .i { width: 1rem; height: 1rem; transition: transform var(--dur-base) var(--ease-out); }
.legal__back:hover .i { transform: translateX(-3px); }
.legal__updated { color: var(--text-muted); font-family: var(--font-mono); font-size: var(--t-micro); }
.legal__section { display: grid; gap: var(--s-3); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.legal__section h2 { font-size: 1.1875rem; font-weight: var(--w-semibold); letter-spacing: -0.01em; }
.legal__section p { max-width: 65ch; color: var(--text-muted); line-height: 1.7; }
.legal__contact { display: grid; gap: var(--s-2); margin-top: var(--s-4); padding: var(--s-6); background: var(--bg-sunken); border-radius: var(--r-card); }
.legal__contact h2 { font-size: 1.0625rem; font-weight: var(--w-semibold); }

.nav__links a[aria-current="page"] { color: var(--text); background: var(--bg-sunken); }

@media (max-width: 960px) {
  .page-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .page-hero__visual { max-width: 40rem; }
  .plan-alt,
  .distributor { grid-template-columns: minmax(0, 1fr); justify-items: start; }
}

@media (max-width: 640px) {
  .rows,
  .figures { grid-template-columns: minmax(0, 1fr); }
  .enisa-note { flex-direction: column; align-items: flex-start; }
}

/* Facturas preview: the invoice repository as a small product card (example data) */

.market--reverse .market__visual { order: 2; }
.ledger { width: min(100%, 34rem); margin-inline: auto; overflow: hidden; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-card); box-shadow: var(--shadow-card); font-size: var(--t-small); text-align: left; }
.ledger__head,
.ledger__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; padding: 0.9rem 1.1rem; }
.ledger__head strong { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 1rem; }
.ledger__head .i { width: 1.1rem; height: 1.1rem; color: var(--accent-text); }
.ledger__chart { display: grid; gap: 0.5rem; padding: 0.9rem 1.1rem 1rem; border-top: 1px solid var(--line); }
.ledger__label { color: var(--text-muted); font-size: var(--t-micro); }
.ledger__bars { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); align-items: end; gap: 0.4rem; height: 4.5rem; }
.ledger__bars span { height: var(--h); border-radius: 4px 4px 1px 1px; background: var(--accent-tint-2); }
.ledger__bars span:nth-last-child(-n + 3) { background: var(--accent); }
.ledger__rows { border-top: 1px solid var(--line); }
.ledger__row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 0.25rem 0.9rem; padding: 0.7rem 1.1rem; border-bottom: 1px solid var(--line); }
.ledger__row strong { font-weight: var(--w-semibold); }
.ledger__row .mono { color: var(--text-muted); font-size: var(--t-micro); }
.ledger__amount { min-width: 5.5rem; font-family: var(--font-mono); font-size: var(--t-micro); font-weight: var(--w-semibold); text-align: right; font-variant-numeric: tabular-nums; }
.ledger__foot { background: var(--bg-sunken); }
.ledger__foot .mono { color: var(--text-muted); font-size: var(--t-micro); }
.ledger__btn { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.25rem; padding: 0 0.9rem; border-radius: var(--r-pill); background: var(--accent); color: var(--on-accent); font-weight: var(--w-semibold); white-space: nowrap; }
.ledger__btn .i { width: 1rem; height: 1rem; }
.ledger__note { margin-top: 0.75rem; text-align: center; color: var(--text-muted); font-size: var(--t-micro); }

@media (max-width: 400px) {
  .ledger__row { grid-template-columns: minmax(0, 1fr) auto; }
  .ledger__row .chip { display: none; }
}

/* Scan intro: a phone scanning an invoice (drawn with the system, no photo) and three ticks */

.scan-intro__visual::before { inset: 4% 12%; }
.phone {
  position: relative;
  width: min(100%, 17.5rem);
  margin-inline: auto;
  padding: 0.65rem;
  border-radius: 2.5rem;
  background: var(--surface-inverse);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08), 0 40px 80px -32px rgb(15 23 41 / 0.5);
}
.phone__screen {
  display: grid;
  align-content: start;
  gap: 0.85rem;
  min-height: 29rem;
  padding: 1.25rem 1rem 1.1rem;
  border-radius: 1.9rem;
  background: var(--bg-sunken);
}
.phone__bar { display: flex; align-items: center; justify-content: space-between; font-size: var(--t-small); font-weight: var(--w-semibold); }
.phone__doc {
  position: relative;
  display: grid;
  gap: 0.55rem;
  padding: 1rem 0.95rem;
  overflow: hidden;
  background: var(--surface);
  border-radius: var(--r-paper);
  box-shadow: var(--shadow-card);
}
.phone__doc-head,
.phone__doc-total { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; }
.phone__doc-head strong { font-size: var(--t-micro); letter-spacing: 0.08em; }
.phone__doc .mono { font-size: var(--t-nano); color: var(--text-muted); }
.phone__doc-total { margin-top: 0.3rem; padding-top: 0.55rem; border-top: 1px dashed var(--line-strong); }
.phone__doc-total .mono:last-child { color: var(--text); font-weight: var(--w-semibold); }
.phone__line { height: 0.45rem; border-radius: 2px; background: var(--line); }
.phone__line--mid { width: 78%; }
.phone__line--short { width: 55%; }
.phone__scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent calc(50% - 1px), var(--accent) calc(50% - 1px), var(--accent) calc(50% + 1px), transparent calc(50% + 1px));
  filter: drop-shadow(0 0 6px rgb(36 99 235 / 0.55));
  pointer-events: none;
}
.phone__result { justify-self: center; }
.phone__shutter { justify-self: center; width: 3.25rem; height: 3.25rem; margin-top: 0.5rem; border: 3px solid var(--accent); border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 4px var(--surface), inset 0 0 0 20px var(--accent-tint-2); }

@media (prefers-reduced-motion: no-preference) {
  .phone__scan { animation: phone-scan 2.6s var(--ease-out) infinite alternate; }
  @keyframes phone-scan {
    from { transform: translateY(-38%); }
    to { transform: translateY(38%); }
  }
}

.checks { display: grid; gap: var(--s-4); }
.checks li { display: grid; grid-template-columns: 1.75rem minmax(0, 1fr); gap: 0.15rem 0.8rem; align-items: start; }
.checks__tick { grid-row: span 2; display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--accent-tint); color: var(--accent-text); }
.checks__tick .i { width: 0.95rem; height: 0.95rem; }
.checks strong { font-weight: var(--w-semibold); }
.checks li > span:last-child { color: var(--text-muted); font-size: var(--t-small); }

.section--sunken .rail__node { box-shadow: 0 0 0 6px var(--bg-sunken); }

/* Motion and hover (user request, 2026-09-13). Pointer effects need a fine pointer; movement needs no reduced-motion. */

/* Inner-page lists as cards, not bullets */
.rows { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); border-top: 0; }
.rows__item {
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-4);
  align-content: start;
  padding: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}
.rows__item h3 { padding-top: 0; }
.section:not(.section--sunken) .rows__item { background: var(--bg-sunken); border-color: transparent; }
@media (max-width: 960px) { .rows { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .rows { grid-template-columns: minmax(0, 1fr); } }

/* Spotlight: a soft light that follows the pointer inside a card */
.pain, .rows__item, .plan-alt, .distributor, .unique__row, .figure__frame, .ledger, .quote { position: relative; isolation: isolate; }
.pain::after, .rows__item::after, .plan-alt::after, .distributor::after, .unique__row::after, .figure__frame::after, .ledger::after, .quote::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  background: radial-gradient(24rem circle at var(--mx, 50%) var(--my, 50%), rgb(36 99 235 / 0.1), transparent 62%);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out);
}
.unique__row::after { background: radial-gradient(26rem circle at var(--mx, 50%) var(--my, 50%), rgb(143 178 249 / 0.12), transparent 62%); }

.marker { transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); }
.marker.is-active { transform: scale(1.35); box-shadow: 0 0 0 6px rgb(36 99 235 / 0.22); }
.figure__notes li { border-radius: var(--r-label); transition: background-color var(--dur-fast) var(--ease-out); }
.figure__notes li.is-active { background: var(--accent-tint); }

@media (hover: hover) and (pointer: fine) {
  .pain, .rows__item, .plan, .plan-alt, .distributor, .quote, .figure__frame {
    transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
  }
  .pain:hover::after, .rows__item:hover::after, .plan-alt:hover::after, .distributor:hover::after, .unique__row:hover::after,
  .figure__frame:hover::after, .ledger:hover::after, .quote:hover::after { opacity: 1; }
  .pain:hover, .rows__item:hover, .plan-alt:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
    box-shadow: var(--shadow-lift);
  }
  .plan:hover { transform: translateY(-4px); }
  .pain__icon, .feature__icon, .point h3 .i, .checks__tick { transition: transform var(--dur-base) var(--ease-out); }
  .pain:hover .pain__icon, .rows__item:hover .feature__icon, .unique__row:hover .feature__icon, .point:hover h3 .i, .checks li:hover .checks__tick { transform: scale(1.1) rotate(-6deg); }
  .unique__row { transition: background-color var(--dur-base) var(--ease-out); }
  .unique__row:hover { background: rgb(255 255 255 / 0.03); }
  .figure__notes li { cursor: default; }
  .matrix tbody tr { transition: background-color var(--dur-fast) var(--ease-out); }
  .matrix tbody tr:hover { background: color-mix(in srgb, var(--accent-tint) 70%, transparent); }
  .footer__links a { background: linear-gradient(currentColor, currentColor) left calc(100% - 0.55rem) / 0 1px no-repeat; transition: color var(--dur-fast) var(--ease-out), background-size var(--dur-base) var(--ease-out); }
  .footer__links a:hover { background-size: 100% 1px; text-decoration: none; }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .btn--primary { position: relative; overflow: hidden; isolation: isolate; }
  .btn--primary::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / 0.35) 50%, transparent 70%);
    transform: translateX(-120%);
  }
  .btn--primary:hover::after { transform: translateX(120%); transition: transform 0.8s var(--ease-out); }

  /* 3D tilt on product previews */
  .hero__visual img, .page-hero__visual > :first-child, .market__visual > :first-child {
    transform: perspective(1100px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
    transition: transform 0.6s var(--ease-out);
  }
  .hero__visual:hover img, .page-hero__visual:hover > :first-child, .market__visual:hover > :first-child { will-change: transform; }
}

@media (prefers-reduced-motion: no-preference) {
  /* Staggered entrance of the first screen */
  .hero__copy > *, .page-hero__copy > * { animation: rise-in 0.9s var(--ease-out) both; }
  .hero__copy > :nth-child(2), .page-hero__copy > :nth-child(2) { animation-delay: 0.08s; }
  .hero__copy > :nth-child(3), .page-hero__copy > :nth-child(3) { animation-delay: 0.16s; }
  .hero__copy > :nth-child(4), .page-hero__copy > :nth-child(4) { animation-delay: 0.24s; }
  .hero__visual, .page-hero__visual { animation: rise-in 1.1s 0.15s var(--ease-out) both; }
  .hero__visual { translate: 0 0; animation: rise-in 1.1s 0.15s var(--ease-out) both, float 7s 1.3s ease-in-out infinite; }
  @keyframes rise-in { from { opacity: 0; transform: translateY(1.25rem); } }
  @keyframes float { 50% { translate: 0 -10px; } }

  /* Spend bars grow when the Facturas card comes into view */
  .js .ledger__bars span { transform: scaleY(0.08); transform-origin: bottom; transition: transform 0.9s var(--ease-out); }
  .js .ledger.is-inview .ledger__bars span { transform: none; }
  .ledger__bars span:nth-child(2) { transition-delay: 0.05s; }
  .ledger__bars span:nth-child(3) { transition-delay: 0.1s; }
  .ledger__bars span:nth-child(4) { transition-delay: 0.15s; }
  .ledger__bars span:nth-child(5) { transition-delay: 0.2s; }
  .ledger__bars span:nth-child(6) { transition-delay: 0.25s; }
  .ledger__bars span:nth-child(7) { transition-delay: 0.3s; }
  .ledger__bars span:nth-child(8) { transition-delay: 0.35s; }
  .ledger__bars span:nth-child(9) { transition-delay: 0.4s; }

  /* Reading progress under the nav, driven by scroll where the browser supports it */
  @supports (animation-timeline: scroll()) {
    body::before {
      content: "";
      position: fixed;
      inset: 0 0 auto;
      z-index: calc(var(--z-nav) + 1);
      height: 3px;
      background: var(--accent);
      transform-origin: 0 50%;
      animation: reading-progress linear both;
      animation-timeline: scroll(root);
      pointer-events: none;
    }
    @keyframes reading-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  }
}

/* Four cards sit two by two; the phone preview is a little smaller in a page header */
.rows:has(> .rows__item:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .rows:has(> .rows__item:nth-child(4):last-child) { grid-template-columns: minmax(0, 1fr); } }
.page-hero .phone { width: min(100%, 16rem); }

/* Languages not built yet: shown, not linked */
picture { display: block; }
.market__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); }
.lang__soon { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: var(--control-h); padding: 0 0.75rem; color: var(--text-muted); cursor: default; }
.lang__soon small { font-size: var(--t-nano); color: var(--text-muted); }
.nav__langs .lang__soon { justify-content: center; min-width: 3rem; padding: 0 0.9rem; border: 1px dashed var(--line-strong); border-radius: var(--r-pill); }

/* Hero illustration, rebuilt in HTML/CSS in the style of the original (scales like an image through container units) */

.hero-art {
  --frame: color-mix(in srgb, var(--accent) 13%, var(--surface));
  --edge: color-mix(in srgb, var(--accent) 22%, var(--surface));
  position: relative;
  width: 100%;
  aspect-ratio: 1196 / 727;
  font-size: 1.42cqw;
  line-height: 1.25;
  color: var(--text);
}
.hero__visual:has(> .hero-art), .page-hero__visual:has(> .hero-art) { width: 100%; container-type: inline-size; }
.hero-art img { width: auto; max-width: none; filter: none; }
.hero-art__chart { position: absolute; left: 50%; top: 1.5%; display: flex; align-items: end; gap: 0.7em; height: 11%; }
.hero-art__chart span { width: 1.5em; height: 55%; border-radius: 0.4em 0.4em 0 0; background: var(--line-strong); }
.hero-art__chart span:nth-child(2) { height: 75%; background: color-mix(in srgb, var(--ok-text) 30%, var(--surface)); }
.hero-art__chart span:nth-child(3) { height: 100%; background: color-mix(in srgb, var(--ok-text) 45%, var(--surface)); }

.hero-art__monitor { position: absolute; left: 17%; top: 13%; width: 62%; height: 84%; display: flex; flex-direction: column; align-items: center; }
.hero-art__screen {
  width: 100%;
  height: 76%;
  padding: 2.2em 2.4em;
  background: var(--surface);
  border: 1.1em solid var(--frame);
  border-bottom-width: 2.6em;
  border-radius: 1.6em;
  box-shadow: 0 2em 4em -2em rgb(15 23 41 / 0.2), inset 0 0 0 1px var(--edge);
}
.hero-art__head { display: grid; grid-template-columns: 1fr 5.5em 8.2em; align-items: center; gap: 1em; padding-bottom: 1.2em; border-bottom: 1px solid var(--line); font-size: 1.05em; color: var(--text-muted); }
.hero-art__head img { height: 1.9em; }
.hero-art__row { display: grid; grid-template-columns: 3.6em 1fr 5.5em 8.2em; align-items: center; gap: 1em; padding-block: 1.05em; border-bottom: 1px solid var(--line); }
.hero-art__row:last-child { border-bottom: 0; }
.hero-art__row img { width: 3.6em; height: 3.6em; border-radius: 0.7em; background: var(--accent-tint); }
.hero-art__name { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 1.2em; }
.hero-art__name strong { grid-column: 1; font-size: 1.05em; }
.hero-art__name small { grid-column: 1; color: var(--text-muted); font-size: 0.95em; }
.hero-art__name i { grid-column: 2; grid-row: 1 / 3; align-self: center; height: 0.45em; border-radius: 1em; background: linear-gradient(to right, var(--line-strong) var(--w), var(--line) var(--w)); }
.hero-art__qty { font-size: 1.15em; }
.hero-art .chip { justify-self: start; min-height: 0; padding: 0.35em 0.8em; border-radius: 0.6em; font-size: 0.95em; }
.hero-art__stand { width: 13%; height: 12%; background: linear-gradient(var(--frame), var(--edge)); clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%); }
.hero-art__base { width: 34%; height: 4%; border-radius: 1em; background: var(--frame); box-shadow: inset 0 0 0 1px var(--edge); }

.hero-art__phone { position: absolute; left: 5.5%; top: 45%; width: 16%; height: 52%; padding: 0.8em; border-radius: 2.4em; background: var(--surface-inverse); box-shadow: 0 2em 3em -1.5em rgb(15 23 41 / 0.45); }
.hero-art__phone-screen { display: flex; flex-direction: column; align-items: center; gap: 1.3em; height: 100%; padding: 1.8em 1em 1.4em; border-radius: 1.8em; background: var(--surface); }
.hero-art__menu { align-self: flex-start; width: 1.2em; height: 0.8em; border-block: 0.22em solid var(--text); }
.hero-art__phone-screen strong { font-size: 1.45em; font-weight: var(--w-semibold); }
.hero-art__barcode {
  position: relative;
  width: 82%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 1em;
  background:
    repeating-linear-gradient(90deg, color-mix(in srgb, var(--accent) 55%, var(--surface)) 0 0.35em, transparent 0.35em 0.7em) center / 70% 58% no-repeat,
    var(--bg-sunken);
}
.hero-art__beam { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent calc(50% - 0.12em), var(--accent) calc(50% - 0.12em), var(--accent) calc(50% + 0.12em), transparent calc(50% + 0.12em)); }
.hero-art__home { margin-top: auto; width: 2.6em; height: 0.5em; border-radius: 1em; background: var(--line-strong); }

.hero-art__badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 1em;
  padding: 1em 1.4em;
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: 1.3em;
  box-shadow: 0 1.2em 2.4em -1.4em rgb(15 23 41 / 0.28);
  font-size: 1.15em;
  font-weight: var(--w-semibold);
  color: var(--text-muted);
  white-space: nowrap;
}
.hero-art__badge--win { left: 8%; top: 2.5%; }
.hero-art__badge--alert { right: 8%; top: 3.5%; max-width: 19%; white-space: normal; text-align: center; }
.hero-art__seal { display: grid; place-items: center; width: 2.6em; height: 2.6em; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.hero-art__seal .i { width: 1.3em; height: 1.3em; }
.hero-art__bell { display: grid; place-items: center; flex: none; width: 2.4em; height: 2.4em; color: var(--warn-text); }
.hero-art__bell .i { width: 2em; height: 2em; }

.hero-art__compare {
  position: absolute;
  right: 2.5%;
  top: 57%;
  display: grid;
  gap: 0.9em;
  width: 21%;
  padding: 1.3em;
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: 1.4em;
  box-shadow: 0 1.6em 3em -1.6em rgb(15 23 41 / 0.32);
}
.hero-art__offer { display: grid; gap: 0.3em; padding-bottom: 0.9em; border-bottom: 1px solid var(--line); }
.hero-art__offer span { color: var(--accent-text); font-size: 1.15em; font-weight: var(--w-semibold); }
.hero-art__offer strong { font-size: 1.5em; }
.hero-art__cart { display: grid; place-items: center; min-height: 2.8em; border-radius: 0.9em; background: var(--accent); color: var(--on-accent); font-size: 1.1em; font-weight: var(--w-semibold); }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .hero__visual > .hero-art { transform: perspective(1100px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); transition: transform 0.6s var(--ease-out); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-art__badge, .hero-art__compare { animation: hero-bob 6s ease-in-out infinite; }
  .hero-art__badge--alert { animation-delay: -2s; }
  .hero-art__compare { animation-delay: -4s; }
  .hero-art__bell .i { transform-origin: 50% 10%; animation: hero-bell 3.2s ease-in-out infinite; }
  .hero-art__beam { animation: phone-scan 2.4s var(--ease-out) infinite alternate; }
  .hero-art__chart span { transform-origin: bottom; animation: hero-grow 1.2s 0.4s var(--ease-out) both; }
  .hero-art__chart span:nth-child(2) { animation-delay: 0.55s; }
  .hero-art__chart span:nth-child(3) { animation-delay: 0.7s; }
  @keyframes hero-bob { 50% { translate: 0 -0.6em; } }
  @keyframes hero-bell { 0%, 70%, 100% { rotate: 0deg; } 76% { rotate: 14deg; } 82% { rotate: -12deg; } 88% { rotate: 8deg; } 94% { rotate: -4deg; } }
  @keyframes hero-grow { from { transform: scaleY(0); } }
}

/* How it works: three steps, each with a live preview of that step (scan → levels → restock) */

.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); margin: 0; padding: 0; list-style: none; }
/* Subgrid rows keep the three previews the same height, so the step titles line up */
.flow__step { position: relative; display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.flow__stage {
  display: grid;
  align-content: center;
  gap: 0.6rem;
  min-height: 16rem;
  margin: 0.5rem 0.5rem 0;
  padding: 1.1rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 5%, var(--bg-sunken));
  font-size: var(--t-micro);
}
.flow__text { display: grid; gap: var(--s-3); align-content: start; padding: var(--s-5) var(--s-5) var(--s-6); }
.flow__text .h3 { display: flex; align-items: center; gap: 0.7rem; }
.flow__num { display: grid; place-items: center; flex: none; width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.flow__aside { display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.75rem 0.9rem; border-radius: var(--r-label); background: var(--bg-sunken); color: var(--text-muted); font-size: 0.9375rem; }
.flow__aside .i { flex: none; width: 1.2rem; height: 1.2rem; margin-top: 0.15rem; color: var(--accent-text); }
.flow__arrow {
  position: absolute;
  z-index: 2;
  top: 8.5rem;
  right: calc(-1.25rem - var(--s-5) / 2);
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent-text);
  box-shadow: 0 6px 16px -8px rgb(15 23 41 / 0.3);
}
.flow__arrow .i { width: 1.1rem; height: 1.1rem; }

.flow__sources { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin-bottom: 0.2rem; }
.flow__source { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.65rem; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface); color: var(--text); font-weight: var(--w-semibold); }
.flow__source .i { width: 0.95rem; height: 0.95rem; color: var(--accent-text); }
.flow__sources .chip { margin-left: auto; }

.level { display: grid; gap: 0.9rem; padding: 0.9rem; border: 1px solid var(--line); border-radius: var(--r-label); background: var(--surface); }
.level__head, .level--row { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr) auto; align-items: center; gap: 0.7rem; }
.level--row { padding-block: 0.7rem; }
.level img { width: 2.25rem; height: 2.25rem; border-radius: var(--r-chip); background: var(--accent-tint); }
.level strong { display: block; font-size: 0.875rem; font-weight: var(--w-semibold); }
.level__track { position: relative; height: 0.5rem; margin: 0.3rem 0 1.5rem; border-radius: var(--r-pill); background: var(--line); }
.level__fill { position: absolute; inset: 0 auto 0 0; width: var(--now); border-radius: inherit; background: var(--warn-text); }
.level__mark { position: absolute; top: -0.3rem; left: var(--at); width: 2px; height: 1.1rem; translate: -1px 0; background: var(--text); }
.level__mark span { position: absolute; top: 1.35rem; left: 50%; translate: -50% 0; color: var(--text-muted); font-size: 0.75rem; white-space: nowrap; }
.level__mark--max span { left: auto; right: 0; translate: none; }

.restock { display: grid; gap: 0.55rem; padding: 0.9rem; border: 1px solid var(--line); border-radius: var(--r-label); background: var(--surface); }
.restock__head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.restock__head strong { display: flex; align-items: center; gap: 0.45rem; font-size: 0.875rem; font-weight: var(--w-semibold); }
.restock__head .i { width: 1rem; height: 1rem; color: var(--accent-text); }
.restock__items { display: grid; }
.restock__items li { display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; align-items: center; gap: 0.6rem; padding-block: 0.4rem; border-top: 1px solid var(--line); }
.restock__items img { width: 2rem; height: 2rem; border-radius: var(--r-chip); background: var(--accent-tint); }
.restock__items span { color: var(--text); font-weight: 500; }
.restock__items b { color: var(--accent-text); font-weight: var(--w-semibold); font-variant-numeric: tabular-nums; }
.restock__btn { display: flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 2.5rem; margin-top: 0.2rem; border-radius: var(--r-label); background: var(--accent); color: var(--on-accent); font-size: 0.875rem; font-weight: var(--w-semibold); }
.restock__btn .i { width: 1rem; height: 1rem; }

@media (max-width: 1080px) {
  .flow { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .flow__step { grid-row: auto; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-rows: none; }
  .flow__stage { margin: 0.5rem; }
  .flow__text { align-content: center; }
  .flow__arrow { top: auto; right: calc(50% - 1.25rem); bottom: calc(-1.25rem - var(--s-6) / 2); rotate: 90deg; }
}
@media (max-width: 640px) {
  .flow__step { grid-template-columns: minmax(0, 1fr); }
  .flow__stage { margin: 0.5rem 0.5rem 0; min-height: 0; }
}

/* On first view: products are recognised one by one, the level bar drops below the minimum, the list fills up */
@media (prefers-reduced-motion: no-preference) {
  .js .flow .scan__items li,
  .js .flow .restock__items li { opacity: 0; translate: 0 0.5rem; transition: opacity 0.5s var(--ease-out), translate 0.5s var(--ease-out); }
  .js .flow.is-inview .scan__items li,
  .js .flow.is-inview .restock__items li { opacity: 1; translate: none; }
  .js .flow .scan__items li:nth-child(2) { transition-delay: 0.15s; }
  .js .flow .scan__items li:nth-child(3) { transition-delay: 0.3s; }
  .js .flow .restock__items li:nth-child(1) { transition-delay: 0.9s; }
  .js .flow .restock__items li:nth-child(2) { transition-delay: 1.05s; }
  .js .flow .restock__items li:nth-child(3) { transition-delay: 1.2s; }
  .js .flow .level__fill { width: 100%; transition: width 1.1s 0.45s var(--ease-out); }
  .js .flow.is-inview .level__fill { width: var(--now); }
  .js .flow .level__head .chip { opacity: 0; scale: 0.8; transition: opacity 0.4s 1.4s var(--ease-out), scale 0.4s 1.4s var(--ease-out); }
  .js .flow.is-inview .level__head .chip { opacity: 1; scale: 1; }
  .js .flow .flow__arrow { opacity: 0; translate: -0.5rem 0; transition: opacity 0.5s 0.6s var(--ease-out), translate 0.5s 0.6s var(--ease-out); }
  .js .flow.is-inview .flow__arrow { opacity: 1; translate: none; }
}

/* Product menu in the nav: the four product pages, each with one line, and a link to how it works */

.navmenu { position: relative; }
.navmenu__button {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: var(--control-h);
  padding: 0 0.7rem 0 0.8rem;
  border-radius: var(--r-pill);
  color: var(--text-muted);
  font-size: var(--t-small);
  font-weight: var(--w-medium);
  white-space: nowrap;
  list-style: none;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.navmenu__button::-webkit-details-marker { display: none; }
.navmenu__button:hover,
.navmenu[open] .navmenu__button,
.navmenu:has([aria-current="page"]) .navmenu__button { color: var(--text); background: var(--bg-sunken); }
.navmenu__caret { width: 1rem; height: 1rem; transition: transform var(--dur-base) var(--ease-out); }
.navmenu[open] .navmenu__caret { transform: rotate(180deg); }
.navmenu__panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: -0.5rem;
  z-index: var(--z-nav);
  width: 25rem;
  padding: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  box-shadow: var(--shadow-lift);
}
.navmenu__list { display: grid; gap: 0.15rem; }
.nav__links .navmenu__list a {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  align-items: center;
  gap: 0.8rem;
  min-height: 0;
  padding: 0.6rem 0.7rem;
  border-radius: var(--r-input);
  color: var(--text);
  white-space: normal;
}
.nav__links .navmenu__list a:hover,
.nav__links .navmenu__list a[aria-current="page"] { background: var(--bg-sunken); }
.navmenu__icon { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: var(--r-label); background: var(--accent-tint); color: var(--accent-text); transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.navmenu__list a:hover .navmenu__icon,
.navmenu__list a[aria-current="page"] .navmenu__icon { background: var(--accent); color: var(--on-accent); }
.navmenu__icon .i { width: 1.25rem; height: 1.25rem; }
.navmenu__list strong { display: block; font-size: var(--t-small); font-weight: var(--w-semibold); }
.navmenu__list small { display: block; margin-top: 0.1rem; color: var(--text-muted); font-size: 0.8125rem; font-weight: 400; line-height: 1.4; }
.nav__links .navmenu__foot {
  display: flex;
  justify-content: space-between;
  min-height: 0;
  margin-top: 0.4rem;
  padding: 0.75rem 0.8rem 0.5rem;
  border-top: 1px solid var(--line);
  border-radius: 0;
  color: var(--accent-text);
  font-weight: var(--w-semibold);
}
.nav__links .navmenu__foot:hover { background: none; color: var(--text); }
.navmenu__foot .i { width: 1rem; height: 1rem; }

.nav__group-title { display: block; padding-top: var(--s-3); color: var(--text-muted); font-size: var(--t-micro); font-weight: var(--w-semibold); }
.nav__sub a .i { flex: none; width: 1.2rem; height: 1.2rem; margin-right: 0.7rem; color: var(--accent-text); }

@media (prefers-reduced-motion: no-preference) {
  .navmenu[open] .navmenu__panel { animation: navmenu-in 0.2s var(--ease-out); }
  @keyframes navmenu-in { from { opacity: 0; translate: 0 -0.3rem; } }
}

/* Team illustration: a staff member logs a use on the phone app and the whole team sees it at once on the web app.
   One 7 s loop (the count on the phone, the button, the sync, the new row in the feed, the stock); without motion it shows the end state. */

.market__visual:has(> .team-art) { width: 100%; container-type: inline-size; }
.team-art {
  --edge: color-mix(in srgb, var(--accent) 22%, var(--surface));
  --loop: 7s;
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 0.68;
  font-size: 1.5cqw;
  line-height: 1.25;
  color: var(--text);
}
.market-art img, .team-art img { width: auto; max-width: none; margin: 0; filter: none; }
.team-art__lot { display: grid; grid-template-columns: auto 1fr; gap: 0.4em 1em; padding: 0.8em 1em; border-radius: 0.9em; background: var(--bg-sunken); font-size: 0.9em; }
.team-art__lot span { color: var(--text-muted); }
.team-art__lot b { justify-self: end; font-weight: var(--w-semibold); font-variant-numeric: tabular-nums; }
.team-art .i { flex: none; }
.team-art__swap { display: grid; }
.team-art__swap > * { grid-area: 1 / 1; }
.team-art__before { opacity: 0; }

.team-art__window { position: absolute; right: 0; top: 4%; width: 70%; overflow: hidden; background: var(--surface); border: 1px solid var(--edge); border-radius: 1.6em; box-shadow: 0 2.4em 4.4em -2.2em rgb(15 23 41 / 0.28); }
.team-art__bar { display: flex; align-items: center; justify-content: space-between; gap: 1em; padding: 1.1em 1.4em; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
.team-art__bar img { height: 1.7em; }
.team-art__live { display: inline-flex; align-items: center; gap: 0.5em; padding: 0.35em 0.8em; border-radius: 1em; background: var(--ok-bg); color: var(--ok-text); font-size: 0.9em; font-weight: var(--w-semibold); }
.team-art__live i { width: 0.55em; height: 0.55em; border-radius: 50%; background: currentColor; }
.team-art__body { display: grid; gap: 1em; padding: 1.4em; }
.team-art__stock { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1em; padding: 1em; border: 1px solid var(--line); border-radius: 1em; }
.team-art__stock img { width: 3.6em; height: 3.6em; border-radius: 0.7em; background: var(--accent-tint); }
.team-art__stock strong, .team-art__row strong, .team-art__item strong { display: block; font-size: 1.05em; font-weight: var(--w-semibold); }
.team-art__stock small, .team-art__row small, .team-art__item small { display: block; margin-top: 0.15em; color: var(--text-muted); font-size: 0.9em; }
.team-art__count { font-size: 1.5em; font-weight: var(--w-semibold); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.team-art__label { margin: 0.2em 0 -0.4em; color: var(--text-muted); font-size: 0.9em; font-weight: var(--w-semibold); }
.team-art__feed { display: grid; margin: 0; padding: 0; list-style: none; }
.team-art__feed > li { display: grid; grid-template-rows: 1fr; }
.team-art__feed > li > div { min-height: 0; overflow: hidden; }
.team-art__row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.9em; padding: 0.8em 0.6em; border-bottom: 1px solid var(--line); }
.team-art__feed > li:last-child .team-art__row { border-bottom: 0; }
.team-art__new .team-art__row { border-radius: 0.8em 0.8em 0 0; }
.team-art__avatar { display: grid; place-items: center; width: 2.6em; height: 2.6em; border-radius: 0.8em; background: var(--accent-tint); color: var(--accent-text); font-weight: var(--w-semibold); }
.team-art__avatar--b { background: var(--ok-bg); color: var(--ok-text); }
.team-art__avatar--c { background: var(--warn-bg); color: var(--warn-text); }
.team-art__row b { font-size: 1.2em; font-variant-numeric: tabular-nums; }
.team-art__out { color: var(--text); }
.team-art__in { color: var(--ok-text); }

.team-art__phone { position: absolute; left: 0; top: 13%; width: 32%; height: 36em; padding: 0.8em; border-radius: 2.6em; background: var(--surface-inverse); box-shadow: 0 2em 3.4em -1.6em rgb(15 23 41 / 0.45); }
.team-art__screen { display: flex; flex-direction: column; gap: 1.1em; height: 100%; padding: 1.6em 1.3em 1.3em; border-radius: 2em; background: var(--surface); }
.team-art__app { display: flex; align-items: center; justify-content: space-between; }
.team-art__app strong { font-size: 1.35em; font-weight: var(--w-semibold); }
.team-art__user { display: grid; place-items: center; width: 2.2em; height: 2.2em; border-radius: 0.7em; background: var(--accent-tint); color: var(--accent-text); font-size: 0.9em; font-weight: var(--w-semibold); }
.team-art__code {
  position: relative;
  height: 7.5em;
  overflow: hidden;
  border-radius: 1em;
  background:
    repeating-linear-gradient(90deg, var(--text) 0 0.22em, transparent 0.22em 0.5em, var(--text) 0.5em 0.62em, transparent 0.62em 0.95em) center / 72% 52% no-repeat,
    var(--bg-sunken);
}
.team-art__beam { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent calc(50% - 0.12em), var(--accent) calc(50% - 0.12em), var(--accent) calc(50% + 0.12em), transparent calc(50% + 0.12em)); }
.team-art__item { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0.8em; }
.team-art__item img { width: 3em; height: 3em; border-radius: 0.7em; background: var(--accent-tint); }
.team-art__stepper { display: grid; grid-template-columns: 2.6em 1fr 2.6em; align-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 0.9em; }
.team-art__step { display: grid; place-items: center; height: 2.6em; background: var(--bg-sunken); color: var(--text-muted); font-weight: var(--w-semibold); }
.team-art__stepper .team-art__swap { justify-items: center; font-size: 1.3em; font-weight: var(--w-semibold); font-variant-numeric: tabular-nums; }
.team-art__save { display: grid; place-items: center; min-height: 3em; margin-top: auto; border-radius: 0.9em; background: var(--accent); color: var(--on-accent); font-size: 1.05em; font-weight: var(--w-semibold); }

.team-art__sync { position: absolute; left: 36%; top: 74%; display: flex; align-items: center; gap: 0.6em; padding: 0.8em 1.2em 0.8em 0.9em; background: var(--surface); border: 1px solid var(--edge); border-radius: 1.2em; box-shadow: 0 1.4em 2.8em -1.5em rgb(15 23 41 / 0.32); color: var(--text-muted); font-size: 1.05em; font-weight: var(--w-semibold); white-space: nowrap; }
.team-art__sync .i { width: 1.4em; height: 1.4em; color: var(--accent); }

@media (prefers-reduced-motion: no-preference) {
  .team-art__beam { animation: team-scan 2.4s var(--ease-out) infinite alternate; }
  .team-art__sync { animation: hero-bob 6s ease-in-out infinite; }
  .team-art__sync .i { animation: team-spin var(--loop) var(--ease-out) infinite; }
  .team-art__stepper .team-art__before { animation: team-before-step var(--loop) ease infinite; }
  .team-art__stepper .team-art__after { animation: team-after-step var(--loop) ease infinite; }
  .team-art__save { animation: team-press var(--loop) ease infinite; }
  .team-art__new { animation: team-row var(--loop) var(--ease-out) infinite; }
  .team-art__new .team-art__row { animation: team-flash var(--loop) ease infinite; }
  .team-art__count .team-art__before { animation: team-before-count var(--loop) ease infinite; }
  .team-art__count .team-art__after { animation: team-after-count var(--loop) ease infinite; }
  .team-art__count { animation: team-pop var(--loop) var(--ease-out) infinite; }

  /* 22 % the count goes to 2 · 35 % «Registrar salida» · 38–48 % sync · 44–52 % the row slides into the feed · 50 % stock updated */
  @keyframes team-scan { from { translate: 0 -40%; } to { translate: 0 40%; } }
  @keyframes team-before-step { 0%, 22% { opacity: 1; } 26%, 100% { opacity: 0; } }
  @keyframes team-after-step { 0%, 22% { opacity: 0; } 26%, 100% { opacity: 1; } }
  @keyframes team-press { 0%, 32%, 38%, 100% { scale: 1; } 35% { scale: 0.95; } }
  @keyframes team-spin { 0%, 37% { rotate: 0deg; } 48%, 100% { rotate: 360deg; } }
  @keyframes team-row { 0%, 44% { grid-template-rows: 0fr; opacity: 0; } 52%, 100% { grid-template-rows: 1fr; opacity: 1; } }
  @keyframes team-flash { 0%, 50% { background: var(--accent-tint); } 92%, 100% { background: transparent; } }
  @keyframes team-before-count { 0%, 48% { opacity: 1; } 52%, 100% { opacity: 0; } }
  @keyframes team-after-count { 0%, 48% { opacity: 0; } 52%, 100% { opacity: 1; } }
  @keyframes team-pop { 0%, 48%, 60%, 100% { scale: 1; } 53% { scale: 1.2; } }
}

/* Pricing: the launch offer strip across the top of the price card, and the Enterprise row under it on the home */

.plan__offer { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 0.6rem; padding: 0.85rem 1.25rem; background: var(--accent); color: var(--on-accent); font-size: var(--t-small); text-align: center; }
.plan__offer .i { flex: none; width: 1.2rem; height: 1.2rem; }
.plan__offer strong { font-weight: var(--w-bold); }

.plan-ent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-4) var(--s-5);
  max-width: 64rem;
  margin: var(--s-5) auto 0;
  padding: var(--s-5) clamp(1.25rem, 1rem + 1.5vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-plan);
}
.plan-ent__text { display: grid; gap: 0.3rem; }
.plan-ent__name { color: var(--text-muted); font-size: 1.125rem; font-weight: var(--w-semibold); }
.plan-ent__name strong { color: var(--text); font-weight: var(--w-bold); }
.plan-ent__text p:last-child { max-width: 40em; color: var(--text-muted); font-size: var(--t-small); }
.plan-ent__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); }
@media (max-width: 860px) {
  .plan-ent { grid-template-columns: auto minmax(0, 1fr); }
  .plan-ent__actions { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: no-preference) {
  .plan__offer .i { transform-origin: 50% 55%; animation: offer-tick 4s ease-in-out infinite; }
  @keyframes offer-tick { 0%, 88%, 100% { rotate: 0deg; } 92% { rotate: 14deg; } 96% { rotate: -8deg; } }
}

/* How it works, step 1: the invoice is read line by line and each product enters the inventory with its quantity */

.flow__invoice { position: relative; display: grid; gap: 0.25rem; overflow: hidden; padding: 0.6rem 0.8rem; border: 1px solid var(--line); border-radius: var(--r-label); background: var(--surface); color: var(--text-muted); font-size: 0.78rem; }
.flow__invoice-head { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 0.15rem; }
.flow__invoice-head strong { color: var(--text); font-size: 0.8125rem; font-weight: var(--w-semibold); }
.flow__beam { position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--accent); box-shadow: 0 0 0.6rem color-mix(in srgb, var(--accent) 60%, transparent); opacity: 0; }
.flow__to { position: relative; z-index: 1; justify-self: center; display: grid; place-items: center; width: 1.5rem; height: 1.5rem; margin-block: -0.45rem; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.flow__to .i { width: 0.85rem; height: 0.85rem; rotate: 90deg; }
.flow .scan__items .is-in { grid-template-columns: 2.25rem minmax(0, 1fr) auto; }
.flow .scan__items .is-in > span:nth-child(2) { display: grid; gap: 0.1rem; min-width: 0; }
.flow__plus { padding: 0.2rem 0.55rem; border-radius: var(--r-chip); background: var(--ok-bg); color: var(--ok-text); font-size: 0.8125rem; font-weight: var(--w-semibold); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: no-preference) {
  .js .flow.is-inview .flow__beam { animation: flow-read 1.1s 0.2s var(--ease-out) both; }
  .js .flow .scan__items li:nth-child(1) { transition-delay: 0.9s; }
  .js .flow .scan__items li:nth-child(2) { transition-delay: 1.05s; }
  .js .flow .scan__items li:nth-child(3) { transition-delay: 1.2s; }
  @keyframes flow-read { 0% { top: 0; opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
}

/* Blog: a ruled list of articles and a reading layout for each one */

.posts { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.posts__item a {
  display: grid;
  grid-template-columns: minmax(0, 13rem) minmax(0, 1fr) auto;
  align-items: baseline;
  gap: var(--s-2) var(--s-6);
  padding: var(--s-6) var(--s-4);
  border-bottom: 1px solid var(--line-strong);
  color: inherit;
  text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease-out);
}
.posts__item a:hover { background: var(--bg-sunken); }
.posts__meta { grid-row: 1 / 3; display: grid; gap: 0.3rem; color: var(--text-muted); font-size: var(--t-small); }
.posts__meta .post__cat { color: var(--accent-text); font-weight: var(--w-semibold); }
.posts__title { font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.625rem); font-weight: var(--w-semibold); letter-spacing: -0.015em; line-height: 1.25; text-wrap: balance; }
.posts__excerpt { grid-column: 2; max-width: 62ch; color: var(--text-muted); }
.posts__more { grid-column: 3; grid-row: 1 / 3; align-self: center; display: inline-flex; align-items: center; gap: 0.4rem; color: var(--accent-text); font-weight: var(--w-semibold); white-space: nowrap; }
.posts__more .i { width: 1rem; height: 1rem; transition: transform var(--dur-base) var(--ease-out); }
.posts__item a:hover .posts__more .i { transform: translateX(3px); }
@media (max-width: 860px) {
  .posts__item a { grid-template-columns: minmax(0, 1fr); padding-inline: 0; }
  .posts__meta { grid-row: auto; display: flex; flex-wrap: wrap; gap: 0.3rem 0.9rem; }
  .posts__excerpt, .posts__more { grid-column: auto; grid-row: auto; }
}

.post { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) var(--section-y); }
.post__inner { display: grid; gap: var(--s-5); max-width: 46rem; }
.post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 1rem; color: var(--text-muted); font-size: var(--t-small); }
.post__cat { color: var(--accent-text); font-weight: var(--w-semibold); }
.post__title { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); text-wrap: balance; }
.post__lead { max-width: 62ch; color: var(--text-muted); font-size: var(--t-lead); line-height: 1.6; }
.post__body { display: grid; gap: var(--s-4); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.post__body h2 { margin-top: var(--s-5); font-size: 1.5rem; font-weight: var(--w-semibold); letter-spacing: -0.015em; line-height: 1.25; text-wrap: balance; }
.post__body h3 { margin-top: var(--s-2); font-size: 1.1875rem; font-weight: var(--w-semibold); }
.post__body p, .post__body li { max-width: 65ch; line-height: 1.75; }
.post__body ul, .post__body ol { display: grid; gap: 0.55rem; padding-left: 1.3rem; }
.post__body ul { list-style: disc; }
.post__body ol { list-style: decimal; }
.post__body li::marker { color: var(--accent-text); font-weight: var(--w-semibold); }
.post__body a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 0.2em; }
.post__body strong { font-weight: var(--w-semibold); }
.post__example { padding: var(--s-4) var(--s-5); border: 1px dashed var(--line-strong); border-radius: var(--r-label); background: var(--surface); color: var(--text-muted); }
.post__note { display: grid; gap: var(--s-2); margin-block: var(--s-3); padding: var(--s-5); border-radius: var(--r-card); background: var(--accent-tint); }
.post__note-title { color: var(--accent-text); font-weight: var(--w-semibold); }
.post__cta { display: grid; gap: var(--s-3); justify-items: start; margin-top: var(--s-6); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-radius: var(--r-card); background: var(--surface-inverse); color: var(--text-on-inverse); }
.post__cta-title { font-size: 1.5rem; font-weight: var(--w-bold); letter-spacing: -0.015em; }
.post__cta p:not(.post__cta-title) { color: var(--text-on-inverse-muted); }
.post__cta .btn--link { color: var(--text-on-inverse); }
.post__related { display: grid; gap: var(--s-3); margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.post__related h2 { font-size: 1.125rem; font-weight: var(--w-semibold); }
.post__related ul { display: grid; }
.post__related a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: var(--s-4) 0; border-bottom: 1px solid var(--line); color: var(--text); font-weight: var(--w-medium); text-decoration: none; }
.post__related a .i { flex: none; width: 1rem; height: 1rem; color: var(--accent-text); transition: transform var(--dur-base) var(--ease-out); }
.post__related a:hover { color: var(--accent-text); }
.post__related a:hover .i { transform: translateX(3px); }

/* Traceability illustration: one product's record (lot, expiry and history of entries, uses and an expiry alert) and
   the lot and expiry of each product in the storeroom. The history appears step by step on first view. */

.market__visual:has(> .trace-art) { width: 100%; container-type: inline-size; }
.trace-art {
  --edge: color-mix(in srgb, var(--accent) 22%, var(--surface));
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 0.5;
  font-size: 1.5cqw;
  line-height: 1.25;
  color: var(--text);
}
.trace-art img { width: auto; max-width: none; margin: 0; filter: none; }
.trace-art .i { flex: none; }

.trace-art__card,
.trace-art__lots,
.trace-art__badge {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--edge);
  box-shadow: 0 1.8em 3.6em -2em rgb(15 23 41 / 0.3);
}

.trace-art__card { left: 0; top: 3%; width: 61%; display: grid; gap: 1em; padding: 1.5em; border-radius: 1.6em; }
.trace-art__head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0.8em 1.1em; padding-bottom: 1.1em; border-bottom: 1px solid var(--line); }
.trace-art__head img { width: 4.2em; height: 4.2em; border-radius: 0.9em; background: var(--accent-tint); }
.trace-art__head strong { display: block; font-size: 1.3em; font-weight: var(--w-semibold); letter-spacing: -0.01em; }
.trace-art__head small { color: var(--text-muted); font-size: 0.95em; }
.trace-art__tags { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.6em; }
.trace-art__tag { display: inline-flex; align-items: center; gap: 0.45em; padding: 0.4em 0.8em; border-radius: 0.7em; background: var(--accent-tint); color: var(--accent-text); font-size: 0.95em; font-weight: var(--w-semibold); font-variant-numeric: tabular-nums; }
.trace-art__tag .i { width: 1.1em; height: 1.1em; }
.trace-art__tag--date { background: var(--warn-bg); color: var(--warn-text); }
.trace-art__label { margin: 0; color: var(--text-muted); font-size: 0.9em; font-weight: var(--w-semibold); }

.trace-art__steps { position: relative; display: grid; gap: 0.9em; margin: 0; padding: 0; list-style: none; }
.trace-art__steps::before { content: ""; position: absolute; top: 1.2em; bottom: 1.2em; left: 1.2em; width: 2px; translate: -1px 0; background: var(--line); }
.trace-art__step { position: relative; display: grid; grid-template-columns: 2.4em minmax(0, 1fr) auto; align-items: center; gap: 0.9em; }
.trace-art__node { display: grid; place-items: center; width: 2.4em; height: 2.4em; border-radius: 50%; background: var(--accent-tint); color: var(--accent-text); box-shadow: 0 0 0 0.35em var(--surface); }
.trace-art__node .i { width: 1.2em; height: 1.2em; }
.trace-art__step.is-in .trace-art__node { background: var(--ok-bg); color: var(--ok-text); }
.trace-art__step.is-alert .trace-art__node { background: var(--warn-bg); color: var(--warn-text); }
.trace-art__step strong { display: block; font-size: 1.05em; font-weight: var(--w-semibold); }
.trace-art__step small { display: block; margin-top: 0.15em; color: var(--text-muted); font-size: 0.9em; }
.trace-art__step time { color: var(--text-muted); font-size: 0.9em; font-variant-numeric: tabular-nums; }

.trace-art__badge { right: 2%; top: 6%; display: flex; align-items: center; gap: 0.8em; padding: 0.9em 1.3em 0.9em 1em; border-radius: 1.2em; }
.trace-art__badge .i { width: 1.8em; height: 1.8em; color: var(--accent); }
.trace-art__badge strong { display: block; font-size: 1.05em; font-weight: var(--w-semibold); }
.trace-art__badge small { display: block; color: var(--text-muted); font-size: 0.9em; }

.trace-art__lots { right: 0; top: 50%; width: 38%; display: grid; padding: 1.2em 1.3em; border-radius: 1.4em; }
.trace-art__lots p { display: grid; grid-template-columns: minmax(0, 1fr) 5.2em 5.2em; align-items: center; gap: 0.8em; margin: 0; padding: 0.75em 0.5em; border-bottom: 1px solid var(--line); font-size: 0.95em; }
.trace-art__lots p:last-child { border-bottom: 0; }
.trace-art__lots .trace-art__lots-head { color: var(--text-muted); font-size: 0.85em; font-weight: var(--w-semibold); }
.trace-art__lot span:first-child { font-weight: 500; }
.trace-art__lots .trace-art__lot.is-soon { border-bottom-color: transparent; border-radius: 0.7em; background: var(--warn-bg); }
.trace-art__lot.is-soon span:last-child { color: var(--warn-text); font-weight: var(--w-semibold); }

@media (prefers-reduced-motion: no-preference) {
  .js .trace-art__step { opacity: 0; translate: -0.8em 0; transition: opacity 0.5s var(--ease-out), translate 0.5s var(--ease-out); }
  .js .is-inview .trace-art__step { opacity: 1; translate: none; }
  .js .trace-art__step:nth-child(1) { transition-delay: 0.2s; }
  .js .trace-art__step:nth-child(2) { transition-delay: 0.45s; }
  .js .trace-art__step:nth-child(3) { transition-delay: 0.7s; }
  .js .trace-art__step:nth-child(4) { transition-delay: 0.95s; }
  .trace-art__badge { animation: hero-bob 6s ease-in-out infinite; }
  .trace-art__lots { animation: hero-bob 6s ease-in-out -3s infinite; }
  .trace-art__step.is-alert .trace-art__node { animation: trace-pulse 2.8s ease-out 1.4s infinite; }
  @keyframes trace-pulse {
    0% { box-shadow: 0 0 0 0.35em var(--surface), 0 0 0 0.35em color-mix(in srgb, var(--warn-text) 35%, transparent); }
    70%, 100% { box-shadow: 0 0 0 0.35em var(--surface), 0 0 0 1.3em transparent; }
  }
}

/* Blog article FAQ */

.post__faq { display: grid; gap: var(--s-4); margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.post__faq h2 { font-size: 1.5rem; font-weight: var(--w-semibold); letter-spacing: -0.015em; }
.post__faq .faq { max-width: none; }

.lead strong {
  color: var(--text);
  font-weight: 600;
}

.figures__source {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* How it works, compact: the heading, the three steps and the note fit one laptop screen */
.section__head--tight { margin-bottom: var(--s-6); }
/* The other way in: orders bought elsewhere also enter through step 1, so the note closes the loop under the steps */
.flow + .flow__aside { width: fit-content; max-width: 100%; margin: var(--s-5) auto 0; padding: 0; background: none; }
.flow__aside strong { color: var(--text); font-weight: var(--w-semibold); }
.flow .flow__stage { min-height: 0; gap: 0.45rem; padding: 0.9rem; }
.flow .scan__items { gap: 0.3rem; }
.flow .scan__items li { padding-block: 0.3rem; }
.flow .scan__items strong { line-height: 1.25; }
.flow .scan__items .mono { line-height: 1.3; }
.flow .scan__items .is-in { grid-template-columns: 1.9rem minmax(0, 1fr) auto; }
.flow .scan__items img { width: 1.9rem; height: 1.9rem; }
.flow .flow__invoice { gap: 0.1rem; padding: 0.5rem 0.75rem; line-height: 1.4; }
.flow .flow__text { padding: var(--s-4) var(--s-5) var(--s-5); }

/* How it works, in a loop: while the section is on screen the steps take turns (site.js adds .is-active).
   The active card lights up and replays its own gesture: the invoice is read, stock drops below the minimum,
   the list fills and the button is ready. Without motion nothing changes: every step shows its final state. */
.flow__step { transition: border-color 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out); }
.flow__stage { transition: background-color 0.5s var(--ease-out); }
.flow__num { transition: box-shadow 0.5s var(--ease-out); }
@media (prefers-reduced-motion: no-preference) {
  .js .flow.is-inview .flow__arrow { transition: opacity 0.5s 0.6s var(--ease-out), translate 0.5s 0.6s var(--ease-out), background-color 0.4s var(--ease-out), border-color 0.4s var(--ease-out), color 0.4s var(--ease-out); }
  .flow__step.is-active { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); box-shadow: 0 22px 44px -30px color-mix(in srgb, var(--accent) 70%, transparent); }
  .flow__step.is-active .flow__stage { background-color: color-mix(in srgb, var(--accent) 11%, var(--bg-sunken)); }
  .flow__step.is-active .flow__num { box-shadow: 0 0 0 0.3rem color-mix(in srgb, var(--accent) 18%, transparent); }
  .flow__step.is-active .flow__arrow { border-color: var(--accent); background-color: var(--accent); color: var(--on-accent); }
  .flow__step.is-active .flow__arrow .i { animation: flow-nudge 1.4s 1s var(--ease-out) both; }

  .flow__step.is-active .flow__beam { animation: flow-read 1.1s 0.1s var(--ease-out) both; }
  .flow__step.is-active .flow__plus { animation: flow-pop 0.45s 0.8s var(--ease-out) both; }
  .flow__step.is-active .scan__items li:nth-child(2) .flow__plus { animation-delay: 0.95s; }
  .flow__step.is-active .scan__items li:nth-child(3) .flow__plus { animation-delay: 1.1s; }

  .flow__step.is-active .level__fill { animation: flow-drop 1.1s 0.2s var(--ease-out) both; }
  .flow__step.is-active .level__head .chip { animation: flow-pop 0.45s 1.1s var(--ease-out) both; }
  .flow__step.is-active .level--row .chip { animation: flow-pop 0.45s 1.3s var(--ease-out) both; }

  .flow__step.is-active .restock__items li { animation: flow-in 0.45s 0.1s var(--ease-out) both; }
  .flow__step.is-active .restock__items li:nth-child(2) { animation-delay: 0.25s; }
  .flow__step.is-active .restock__items li:nth-child(3) { animation-delay: 0.4s; }
  .flow__step.is-active .restock__btn { animation: flow-ready 1.3s 0.8s var(--ease-out) both; }

  @keyframes flow-pop { from { opacity: 0; scale: 0.6; } }
  @keyframes flow-drop { from { width: 100%; } }
  @keyframes flow-in { from { opacity: 0; translate: -0.5rem 0; } }
  @keyframes flow-ready { from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); } to { box-shadow: 0 0 0 0.6rem color-mix(in srgb, var(--accent) 0%, transparent); } }
  @keyframes flow-nudge { 0%, 100% { translate: 0 0; } 45% { translate: 0.25rem 0; } }
}

/* Tienda, on the right of the bar: the shop itself, open to any dental professional */
.nav__shop { display: inline-flex; align-items: center; gap: 0.4rem; }
@media (max-width: 1080px) { .nav__shop { display: none; } }
.nav__logo { flex: none; }
.nav__shop .i { width: 1.05rem; height: 1.05rem; color: var(--accent-text); }
.nav__panel a .i { width: 1.1rem; height: 1.1rem; color: var(--accent-text); }

/* Quiénes somos: the co-founder's words lead the page, beside the title */
.founder { width: min(100%, 32rem); display: grid; gap: var(--s-4); margin: 0; }
.founder__mark { display: block; height: 2.4rem; color: var(--accent); font-size: 5.5rem; font-weight: var(--w-semibold); line-height: 0.85; }
.founder blockquote { margin: 0; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.875rem); font-weight: var(--w-medium); font-stretch: 92%; line-height: 1.28; letter-spacing: -0.015em; text-wrap: pretty; }
.founder figcaption { display: flex; align-items: center; gap: 0.85rem; padding-top: var(--s-4); border-top: 1px solid var(--line); }
.founder__icon { display: grid; flex: none; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: var(--r-label); background: var(--accent-tint); color: var(--accent-text); }
.founder__icon .i { width: 1.4rem; height: 1.4rem; }
.story-figures { display: grid; gap: var(--s-4); margin-top: clamp(3rem, 2rem + 3vw, 5rem); }

.pain__cost span strong { color: var(--text); font-weight: var(--w-semibold); }

/* Payments: Stripe's official badge, in Stripe blurple */
.stripe-badge { display: inline-flex; flex: none; border-radius: 4px; }
.stripe-badge img { display: block; width: 7.25rem; height: auto; }
.stripe-badge:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.plan__note { flex-wrap: wrap; row-gap: 0.5rem; }
.plan__note .stripe-badge { margin-left: 0.35rem; }
.footer__pay { display: inline-flex; align-items: center; gap: 0.5rem; }
.footer__pay .i { width: 1rem; height: 1rem; }
.footer__pay .stripe-badge { margin-left: 0.25rem; }

/* Pains, compact: the icon sits beside the question and the close shares one row with its button,
   so the heading, the six situations and the call to action fit one laptop screen */
.pain {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: var(--s-4);
  padding: clamp(1.25rem, 1rem + 0.8vw, 1.6rem);
}
.pain__icon { width: 2.75rem; height: 2.75rem; align-self: center; }
.pain__q { align-self: center; }
.pain__cost { grid-column: 1 / -1; align-self: end; margin-top: 0; }
.pains__close { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s-4) var(--s-6); margin-top: var(--s-6); }

/* Marketplace illustration, drawn in HTML/CSS in the style of the hero (scales like an image through container units).
   One 8 s loop tells the marketplace story: stock runs low, Optident searches the product, compares the distributors,
   settles on the best option, and the product flies into the cart. Without motion it shows the end state. */

.market__visual:has(> .market-art) { width: 100%; container-type: inline-size; }
.market-art {
  --edge: color-mix(in srgb, var(--accent) 22%, var(--surface));
  --row: 4.4em;
  --step: 5em; /* row height plus the gap between rows */
  --loop: 8s;
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 0.72;
  font-size: 1.5cqw;
  line-height: 1.25;
  color: var(--text);
}
.market-art img { width: auto; max-width: none; filter: none; }
.market-art .i { flex: none; }
.market-art__swap { display: grid; }
.market-art__swap > * { grid-area: 1 / 1; }
.market-art__before { opacity: 0; }

.market-art__window {
  position: absolute;
  left: 1%;
  top: 9%;
  width: 63%;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: 1.6em;
  box-shadow: 0 2.4em 4.4em -2.2em rgb(15 23 41 / 0.28);
}
.market-art__bar { display: flex; align-items: center; gap: 1em; padding: 1.1em 1.4em; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
.market-art__bar img { height: 1.7em; }
.market-art__search { flex: 1; display: flex; align-items: center; gap: 0.6em; min-width: 0; padding: 0.55em 0.9em; overflow: hidden; border: 1px solid var(--line); border-radius: 0.8em; background: var(--surface); color: var(--text-muted); font-size: 0.95em; white-space: nowrap; }
.market-art__search .i { width: 1.2em; height: 1.2em; }
.market-art__query { display: inline-block; overflow: hidden; }
.market-art__caret { width: 0.1em; height: 1.1em; margin-left: -0.45em; background: var(--accent); }
.market-art__bag { position: relative; display: grid; place-items: center; width: 2.6em; height: 2.6em; border-radius: 0.8em; background: var(--accent-tint); color: var(--accent-text); }
.market-art__bag .i { width: 1.4em; height: 1.4em; }
.market-art__bag b { position: absolute; top: -0.55em; right: -0.55em; display: grid; place-items: center; min-width: 1.6em; height: 1.6em; border-radius: 1em; background: var(--accent); color: var(--on-accent); font-size: 0.8em; }
.market-art__bag b > span { grid-area: 1 / 1; }

.market-art__body { display: grid; gap: 1.1em; padding: 1.4em; }
.market-art__product { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 1.2em; }
.market-art__photo { grid-row: 1 / 3; display: grid; place-items: center; width: 5.6em; height: 5.6em; border-radius: 1em; background: var(--accent-tint); }
.market-art__photo img { width: 4.4em; height: 4.4em; border-radius: 0.6em; }
.market-art__product strong { align-self: end; font-size: 1.35em; font-weight: var(--w-semibold); letter-spacing: -0.01em; }
.market-art__product small { align-self: start; color: var(--text-muted); font-size: 1em; }
.market-art__status { display: flex; align-items: center; gap: 0.5em; margin: 0; color: var(--accent-text); font-size: 0.95em; font-weight: var(--w-semibold); }
.market-art__status .i { width: 1.25em; height: 1.25em; }
.market-art__save { margin-left: 0.3em; padding: 0.15em 0.55em; border-radius: 0.5em; background: var(--ok-bg); color: var(--ok-text); font-weight: var(--w-semibold); }

.market-art__offers { position: relative; display: grid; gap: 0.6em; margin: 0; padding: 0; list-style: none; }
.market-art__offer { display: grid; grid-template-columns: 1fr auto 4.2em; align-items: center; gap: 0.9em; height: var(--row); padding: 0 1em; border: 1px solid var(--line); border-radius: 1em; }
.market-art__cursor {
  position: absolute;
  inset: 0 0 auto;
  height: var(--row);
  border: 0.15em solid var(--accent);
  border-radius: 1em;
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  box-shadow: 0 0.8em 1.6em -1em color-mix(in srgb, var(--accent) 60%, transparent);
  transform: translateY(var(--step));
  pointer-events: none;
}
.market-art__dist { display: grid; gap: 0.15em; }
.market-art__dist strong { font-size: 1.02em; font-weight: var(--w-semibold); }
.market-art__dist small { display: flex; align-items: center; gap: 0.45em; color: var(--text-muted); font-size: 0.9em; }
.market-art__dist small .i { width: 1.25em; height: 1.25em; color: var(--accent-text); }
.market-art__best { grid-column: 2; padding: 0.3em 0.7em; border-radius: 0.6em; background: var(--accent); color: var(--on-accent); font-size: 0.85em; font-weight: var(--w-semibold); white-space: nowrap; }
.market-art__offer b { grid-column: 3; justify-self: end; font-size: 1.3em; font-variant-numeric: tabular-nums; }
.market-art__add { display: flex; align-items: center; justify-content: center; gap: 0.6em; min-height: 3em; border-radius: 0.9em; background: var(--accent); color: var(--on-accent); font-size: 1.05em; font-weight: var(--w-semibold); }
.market-art__add .i { width: 1.2em; height: 1.2em; }

.market-art__toast,
.market-art__cart,
.market-art__verified {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--edge);
  box-shadow: 0 1.4em 2.8em -1.5em rgb(15 23 41 / 0.32);
}
.market-art__verified { right: 0; top: 1%; display: flex; align-items: center; gap: 0.7em; padding: 0.8em 1.3em 0.8em 0.9em; border-radius: 1.2em; font-size: 1.05em; font-weight: var(--w-semibold); color: var(--text-muted); white-space: nowrap; }
.market-art__verified .i { width: 1.6em; height: 1.6em; color: var(--accent); }
.market-art__toast { right: 5%; top: 12%; display: flex; align-items: center; gap: 0.9em; padding: 0.9em 1.3em 0.9em 1em; border-radius: 1.2em; }
.market-art__bell { display: grid; place-items: center; width: 2.6em; height: 2.6em; border-radius: 0.8em; background: var(--warn-bg); color: var(--warn-text); }
.market-art__bell .i { width: 1.4em; height: 1.4em; }
.market-art__toast-text { display: grid; gap: 0.15em; }
.market-art__toast strong { font-size: 1.05em; font-weight: var(--w-semibold); }
.market-art__toast small { color: var(--text-muted); font-size: 0.95em; white-space: nowrap; }

.market-art__cart { right: 0; top: 29%; width: 38%; display: grid; padding: 1.3em; border-radius: 1.5em; }
.market-art__cart-head { display: grid; gap: 0.25em; padding-bottom: 0.8em; border-bottom: 1px solid var(--line); }
.market-art__cart-head strong { display: flex; align-items: center; gap: 0.5em; font-size: 1.2em; font-weight: var(--w-semibold); }
.market-art__cart-head strong .i { width: 1.1em; height: 1.1em; color: var(--accent-text); }
.market-art__cart-head span { color: var(--text-muted); font-size: 0.9em; }
.market-art__line { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.8em; margin-inline: -0.5em; padding: 0.6em 0.5em; border-bottom: 1px solid var(--line); border-radius: 0.6em 0.6em 0 0; }
.market-art__line img { width: 2.6em; height: 2.6em; border-radius: 0.6em; background: var(--accent-tint); }
.market-art__line b { color: var(--text-muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.market-art__pay { display: flex; align-items: center; justify-content: space-between; gap: 0.6em; margin-top: 0.9em; padding: 0.8em 1em; border-radius: 0.9em; background: var(--text); color: var(--surface); font-size: 1.02em; font-weight: var(--w-semibold); }
.market-art__pay .i { width: 1.2em; height: 1.2em; }

/* The product that flies from «Añadir al carrito» to the cart; set at the button's centre, only visible in motion. */
.market-art__fly { position: absolute; left: 20.3em; top: 35.5em; display: grid; place-items: center; width: 2.6em; height: 2.6em; border-radius: 0.6em; background: var(--surface); box-shadow: 0 0.8em 1.6em -0.6em rgb(15 23 41 / 0.45); opacity: 0; pointer-events: none; }
.market-art__fly img { width: 2.2em; height: 2.2em; }

@media (prefers-reduced-motion: no-preference) {
  .market-art__cart, .market-art__verified { animation: hero-bob 6s ease-in-out infinite; }
  .market-art__verified { animation-delay: -1.5s; }
  .market-art__toast { animation: market-toast var(--loop) var(--ease-out) infinite; }
  .market-art__bell .i { transform-origin: 50% 10%; animation: market-ring var(--loop) ease-in-out infinite; }
  .market-art__toast .market-art__before, .market-art__bag .market-art__before, .market-art__cart-head .market-art__before { animation: market-before var(--loop) ease infinite; }
  .market-art__toast .market-art__after, .market-art__bag .market-art__after, .market-art__cart-head .market-art__after { animation: market-after var(--loop) ease infinite; }
  .market-art__status .market-art__before { animation: market-before-found var(--loop) ease infinite; }
  .market-art__status .market-art__after { animation: market-after-found var(--loop) ease infinite; }
  .market-art__query { animation: market-type var(--loop) infinite; }
  .market-art__caret { animation: market-caret 1s steps(1) infinite; }
  .market-art__cursor { animation: market-scan var(--loop) var(--ease-out) infinite; }
  .market-art__best, .market-art__save { animation: market-pop var(--loop) var(--ease-out) infinite; }
  .market-art__status .i { animation: market-spark var(--loop) var(--ease-out) infinite; }
  .market-art__add { animation: market-press var(--loop) ease infinite; }
  .market-art__fly { animation: market-fly var(--loop) infinite; }
  .market-art__line--new { animation: market-flash var(--loop) ease infinite; }
  .market-art__bag b { animation: market-bump var(--loop) var(--ease-out) infinite; }

  /* 0–6 % the alert pops · 4–16 % the search types · 18–56 % the distributors are compared ·
     60 % best option · 67 % button pressed · 68–82 % the product flies · 84 % it lands in the cart */
  @keyframes market-toast { 0% { opacity: 0; scale: 0.85; } 6%, 100% { opacity: 1; scale: 1; } }
  @keyframes market-ring { 0%, 4%, 18%, 100% { rotate: 0deg; } 7% { rotate: 14deg; } 10% { rotate: -12deg; } 13% { rotate: 8deg; } 16% { rotate: -4deg; } }
  @keyframes market-type { 0%, 4% { max-width: 0; animation-timing-function: steps(13, end); } 16% { max-width: 9em; } 17%, 100% { max-width: 20em; } }
  @keyframes market-scan {
    0%, 17% { opacity: 0; transform: translateY(0); }
    21%, 28% { opacity: 1; transform: translateY(0); }
    34%, 40% { transform: translateY(var(--step)); }
    46%, 52% { transform: translateY(calc(var(--step) * 2)); }
    58%, 100% { opacity: 1; transform: translateY(var(--step)); }
  }
  @keyframes market-before-found { 0%, 57% { opacity: 1; } 61%, 100% { opacity: 0; } }
  @keyframes market-after-found { 0%, 57% { opacity: 0; } 61%, 100% { opacity: 1; } }
  @keyframes market-before { 0%, 83% { opacity: 1; } 86%, 100% { opacity: 0; } }
  @keyframes market-after { 0%, 83% { opacity: 0; } 86%, 100% { opacity: 1; } }
  @keyframes market-pop { 0%, 58% { opacity: 0; scale: 0.6; } 63%, 100% { opacity: 1; scale: 1; } }
  @keyframes market-spark { 0%, 58% { scale: 1; } 63% { scale: 1.35; } 70%, 100% { scale: 1; } }
  @keyframes market-press { 0%, 65%, 70%, 100% { scale: 1; } 67% { scale: 0.96; } }
  @keyframes market-fly {
    0%, 67% { opacity: 0; transform: translate(0, 0) scale(0.6); }
    69% { opacity: 1; transform: translate(0, 0) scale(1); animation-timing-function: ease-out; }
    76% { opacity: 1; transform: translate(11.5em, -19em) scale(1.15); animation-timing-function: ease-in; }
    82% { opacity: 1; transform: translate(var(--fly-x, 22.5em), var(--fly-y, -15.9em)) scale(0.9); }
    85%, 100% { opacity: 0; transform: translate(var(--fly-x, 22.5em), var(--fly-y, -15.9em)) scale(0.5); }
  }
  @keyframes market-flash { 0%, 82% { opacity: 0.3; background: transparent; } 86% { opacity: 1; background: var(--accent-tint); } 100% { opacity: 1; background: transparent; } }
  @keyframes market-bump { 0%, 83%, 100% { scale: 1; } 87% { scale: 1.35; } }
}
