/* =========================================================
   SkladOk — landing page
   Design system: «Тихий порядок»
   ========================================================= */

/* ---------- Fonts ---------- */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("assets/fonts/inter-tight-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("assets/fonts/inter-tight-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */

:root {
  --ink: #0b0d0e;
  --ink-soft: #1c2023;
  --slate: #4f5b62;
  --slate-light: #65717a;
  --paper: #f6f8f4;
  --paper-bright: #fcfdfb;
  --white: #ffffff;
  --sky: #bfdff6;
  --mint: #e5efcc;
  --green: #60ab00;
  --green-deep: #3f7000;
  --coral: #f9636d;
  --teal: #00686e;
  --line: rgba(11, 13, 14, 0.1);
  --line-strong: rgba(11, 13, 14, 0.16);
  --line-light: rgba(255, 255, 255, 0.12);

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(80px, 11vw, 144px);
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-soft: 0 24px 70px -34px rgba(11, 13, 14, 0.28);
  --shadow-phone: 0 60px 120px -30px rgba(11, 13, 14, 0.45);
}

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

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

html.menu-open,
body.menu-open {
  overflow: hidden;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body,
button,
input,
textarea {
  font-family: var(--font-body);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.4rem, 1.5rem + 3.5vw, 4.6rem);
  line-height: 0.98;
}

h3 {
  font-size: clamp(1.6rem, 1.3rem + 1.3vw, 2.5rem);
  line-height: 1.05;
}

p {
  margin: 0;
  text-wrap: pretty;
}

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

img,
svg,
picture {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
}

button,
input {
  font: inherit;
}

::selection {
  background: var(--mint);
  color: var(--ink);
}

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

.screens :focus-visible,
.footer :focus-visible,
.full :focus-visible {
  outline-color: var(--white);
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 14px;
  transform: translateY(-150%);
  transition: transform 0.25s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.section {
  padding-block: var(--section-y);
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
}

/* ---------- Typography helpers ---------- */

.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--slate);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-label::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--line-strong);
}

.section-label > span {
  color: var(--green-deep);
  font-variant-numeric: tabular-nums;
}

.section-label--light {
  color: rgba(255, 255, 255, 0.62);
}

.section-label--light::before {
  background: rgba(255, 255, 255, 0.24);
}

.section-label--light > span {
  color: var(--mint);
}

.section-head {
  display: grid;
  gap: 20px;
}

.section-head__body {
  max-width: 880px;
}

.section-head h2 {
  margin-top: 14px;
}

.section-head__lead {
  max-width: 56ch;
  margin-top: 20px;
  color: var(--slate);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.15rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--slate);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.eyebrow__barcode {
  width: 16px;
  height: 12px;
  flex: none;
  background: repeating-linear-gradient(
    90deg,
    var(--ink) 0 1px,
    transparent 1px 3px
  );
}

/* ---------- Buttons and links ---------- */

.appstore-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 12px 30px -16px rgba(11, 13, 14, 0.55);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    background 0.35s var(--ease);
}

.appstore-button:hover {
  transform: translateY(-2px);
  background: #15181a;
  box-shadow: 0 18px 40px -18px rgba(11, 13, 14, 0.6);
}

.appstore-button:active {
  transform: translateY(0);
}

.appstore-button__icon {
  width: 26px;
  height: 26px;
  flex: none;
}

.appstore-button__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
}

.appstore-button__small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.appstore-button__large {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.appstore-button--small {
  min-height: 42px;
  padding: 8px 16px;
  border-radius: 999px;
  gap: 8px;
}

.appstore-button--small .appstore-button__icon {
  width: 18px;
  height: 18px;
}

.appstore-button--small .appstore-button__text {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.appstore-button--small .appstore-button__small {
  display: none;
}

.appstore-button--small .appstore-button__large {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
}

.appstore-button--light {
  border-color: rgba(11, 13, 14, 0.08);
  background: var(--white);
  color: var(--ink);
}

.appstore-button--light:hover {
  background: var(--paper);
}

.appstore-button--light .appstore-button__small {
  color: var(--slate);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  transition:
    gap 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.text-link:hover {
  gap: 12px;
  border-color: var(--ink);
}

.text-link .icon {
  width: 16px;
  height: 16px;
  transition: transform 0.35s var(--ease);
}

.text-link:hover .icon {
  transform: translateX(2px);
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding-block: 14px;
  border-bottom: 1px solid transparent;
  transition:
    padding 0.35s var(--ease),
    background 0.35s var(--ease),
    border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.site-header.is-scrolled {
  padding-block: 8px;
  border-bottom-color: var(--line);
  background: rgba(246, 248, 244, 0.84);
  box-shadow: 0 12px 40px -30px rgba(11, 13, 14, 0.35);
  backdrop-filter: blur(18px) saturate(1.35);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.brand__mark {
  width: 38px;
  height: 38px;
  /* The SVG already has a 28/131 rounded border. Keep the CSS clip inside
     the inner stroke edge so it doesn't shave the border at the corners. */
  border-radius: 18%;
  box-shadow: 0 4px 14px rgba(11, 13, 14, 0.1);
}

.nav {
  display: none;
  align-items: center;
  gap: clamp(20px, 2.4vw, 36px);
}

.nav__link {
  position: relative;
  padding: 8px 0;
  color: var(--slate);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.25s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--ink);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.lang-switch a,
.lang-switch span {
  display: grid;
  min-width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: var(--slate);
  transition:
    color 0.25s var(--ease),
    background 0.25s var(--ease);
}

.lang-switch a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.85);
}

.lang-switch [aria-current="page"] {
  background: var(--ink);
  color: var(--white);
}

.nav-toggle {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  transition:
    background 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.nav-toggle:hover {
  background: var(--white);
  border-color: var(--line-strong);
}

.nav-toggle__lines {
  position: relative;
  display: block;
  width: 18px;
  height: 10px;
}

.nav-toggle__lines span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  border-radius: 99px;
  background: currentColor;
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}

.nav-toggle__lines span:first-child {
  top: 0;
}

.nav-toggle__lines span:last-child {
  top: 8px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__lines span:first-child {
  top: 4px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__lines span:last-child {
  top: 4px;
  transform: rotate(-45deg);
}

/* ---------- Mobile menu ---------- */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding-top: 100px;
  padding-bottom: 32px;
  background: var(--paper);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition:
    opacity 0.35s var(--ease),
    visibility 0.35s var(--ease),
    transform 0.35s var(--ease);
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.mobile-menu__inner {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.mobile-menu__nav {
  display: grid;
  border-top: 1px solid var(--line);
}

.mobile-menu__nav a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 3.2rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
}

.mobile-menu__nav a span {
  width: 24px;
  color: var(--green-deep);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.mobile-menu__footer {
  display: grid;
  gap: 18px;
  margin-top: auto;
  padding-top: 40px;
}

.mobile-menu__footer .appstore-button {
  width: 100%;
}

.mobile-menu__mail {
  color: var(--slate);
  font-size: 15px;
}

.mobile-menu__footer p {
  color: var(--slate-light);
  font-size: 12px;
}

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

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  flex-direction: column;
  justify-content: center;
  overflow: clip;
  padding-top: clamp(124px, 15vh, 168px);
  padding-bottom: 0;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.82), transparent 34%),
    radial-gradient(circle at 12% 88%, rgba(255, 255, 255, 0.5), transparent 36%),
    linear-gradient(135deg, #bfdff6 0%, #d8e9e8 45%, #e5efcc 100%);
}

.hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 79px,
    rgba(11, 13, 14, 0.035) 79px 80px
  );
  mask-image: linear-gradient(to bottom, #000 0%, transparent 88%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 88%);
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  opacity: 0.11;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero__grid {
  display: grid;
  gap: 24px;
}

.hero__copy {
  max-width: 680px;
}

.hero__eyebrow {
  max-width: 100%;
}

.hero__title {
  margin-top: 24px;
  font-size: clamp(2.4rem, 12vw, 5rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

html.lang-en .hero__title {
  font-size: clamp(2.1rem, 10.3vw, 4.5rem);
}

html.lang-es .hero__title {
  font-size: clamp(1.75rem, 9.2vw, 4rem);
}

.hero__title-line {
  display: block;
  white-space: nowrap;
}

.hero__accent {
  color: var(--green-deep);
}

.hero__lead {
  max-width: 52ch;
  margin-top: 28px;
  color: var(--slate);
  font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.2rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 24px;
  margin-top: 36px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  margin-top: 24px;
  color: var(--slate);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.hero__meta span + span::before {
  content: "·";
  margin: 0 10px;
  color: var(--slate-light);
}

.hero__stage {
  position: relative;
  width: 100%;
  max-width: 560px;
  min-height: 560px;
  margin-inline: auto;
  margin-top: 16px;
}

.hero__stage-card {
  position: absolute;
  inset: 9% 1% 4% 7%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 44px;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.52),
    rgba(255, 255, 255, 0.08)
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 30px 80px -40px rgba(11, 13, 14, 0.25);
  transform: rotate(-3deg);
  backdrop-filter: blur(10px);
}

.hero__glow {
  position: absolute;
  top: 10%;
  left: 10%;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.85), transparent 66%);
  filter: blur(18px);
  pointer-events: none;
}

.phone-pos {
  position: absolute;
  z-index: 1;
  transform: rotate(var(--rot, 0deg)) translate3d(var(--px, 0px), var(--py, 0px), 0);
}

.phone-pos--front {
  --rot: -3deg;
  bottom: 2%;
  left: 3%;
  z-index: 2;
}

.phone-pos--rear {
  --rot: 7deg;
  top: 2%;
  right: 0;
  z-index: 1;
}

.phone-pos--front .phone {
  --phone-w: clamp(210px, 18vw, 255px);
}

.phone-pos--rear .phone {
  --phone-w: clamp(180px, 16vw, 220px);
}

.phone {
  position: relative;
  width: var(--phone-w, 300px);
  padding: calc(var(--phone-w, 300px) * 0.028);
  border-radius: calc(var(--phone-w, 300px) * 0.17);
  background: linear-gradient(145deg, #2a2d2f, #0b0d0e 40%, #1c2023);
  box-shadow:
    var(--shadow-phone),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.phone::before {
  content: "";
  position: absolute;
  top: 21%;
  left: calc(var(--phone-w, 300px) * -0.011);
  width: 2px;
  height: 9%;
  border-radius: 2px;
  background: #2b2e30;
  box-shadow: 0 calc(var(--phone-w, 300px) * 0.16) 0 #2b2e30;
}

.phone::after {
  content: "";
  position: absolute;
  top: 27%;
  right: calc(var(--phone-w, 300px) * -0.011);
  width: 2px;
  height: 13%;
  border-radius: 2px;
  background: #2b2e30;
}

.phone__screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1080 / 2424;
  border-radius: calc(var(--phone-w, 300px) * 0.145);
  background: #e9f2f5;
}

.phone__screen picture {
  position: absolute;
  inset: 0;
  display: block;
}

.phone__screen img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.phone__island {
  position: absolute;
  top: calc(var(--phone-w, 300px) * 0.032);
  left: 50%;
  z-index: 2;
  width: 30%;
  height: calc(var(--phone-w, 300px) * 0.072);
  border-radius: 999px;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: translateX(-50%);
}

.phone__glare {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(255, 255, 255, 0.04) 24%,
    transparent 42%
  );
  mix-blend-mode: screen;
  pointer-events: none;
}

.float-card {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 24px 60px -28px rgba(11, 13, 14, 0.45);
  backdrop-filter: blur(16px) saturate(1.2);
}

.float-card--doc {
  top: 42%;
  left: -3%;
  animation:
    float 6s ease-in-out infinite,
    fade-in 0.8s var(--ease) 0.8s both;
}

.float-card--stock {
  right: -2%;
  bottom: 12%;
  animation:
    float 6.5s ease-in-out -3s infinite,
    fade-in 0.8s var(--ease) 0.95s both;
}

.float-card__icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: none;
  place-items: center;
  border-radius: 10px;
  background: var(--sky);
  color: var(--ink);
}

.float-card__icon--mint {
  background: var(--mint);
  color: var(--green-deep);
}

.float-card__icon .icon {
  width: 18px;
  height: 18px;
}

.float-card__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.float-card__label {
  color: var(--slate);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.float-card__value {
  margin-top: 3px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.float-card__sub {
  margin-top: 3px;
  color: var(--slate);
  font-size: 10px;
}

.hero__barcode {
  position: absolute;
  top: 50%;
  left: -30px;
  z-index: 4;
  display: none;
  flex-direction: column;
  gap: 18px;
  color: rgba(11, 13, 14, 0.36);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
}

.hero__ledger {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(32px, 4.5vw, 56px);
  border-top: 1px solid var(--line);
}

.ledger-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 20px 24px 24px 0;
  border-right: 1px solid var(--line);
}

.ledger-item:last-child {
  border-right: 0;
}

.ledger-item__index {
  color: var(--green-deep);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.ledger-item__title {
  margin-top: 5px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.ledger-item__text {
  max-width: 24ch;
  color: var(--slate);
  font-size: 12px;
  line-height: 1.45;
}

/* ---------- Intro ---------- */

.intro {
  background: var(--paper);
}

.intro__statement {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-top: clamp(48px, 8vw, 96px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.intro__statement p {
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3.4rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.045em;
}

.intro__statement span {
  max-width: 22ch;
  color: var(--slate);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-align: right;
  text-transform: uppercase;
}

.tabs-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(48px, 7vw, 80px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tab-card {
  position: relative;
  padding: 24px 24px 28px 0;
  border-right: 1px solid var(--line);
  transition: background 0.35s var(--ease);
}

.tab-card:last-child {
  border-right: 0;
}

.tab-card:hover {
  background: rgba(255, 255, 255, 0.55);
}

.tab-card__icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
}

.tab-card__icon .icon {
  width: 19px;
  height: 19px;
}

.tab-card__index {
  display: block;
  margin-top: 18px;
  color: var(--green-deep);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.tab-card h3 {
  margin-top: 6px;
  font-size: 18px;
  letter-spacing: -0.025em;
}

.tab-card p {
  max-width: 26ch;
  margin-top: 8px;
  color: var(--slate);
  font-size: 13px;
  line-height: 1.5;
}

.intro__note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  color: var(--slate);
  font-size: 13px;
}

.intro__note .icon {
  width: 18px;
  height: 18px;
  color: var(--green-deep);
}

/* ---------- Features ---------- */

.features {
  background: linear-gradient(to bottom, var(--paper), #fbfcf8 50%, var(--paper));
}

.feature {
  display: grid;
  gap: 32px;
  align-items: center;
  margin-top: clamp(64px, 9vw, 120px);
}

.feature__copy {
  max-width: 530px;
}

.feature__index {
  color: var(--green-deep);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.feature__title {
  max-width: 14ch;
  margin-top: 14px;
}

.feature__body {
  margin-top: 18px;
  color: var(--slate);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.1rem);
}

.feature__list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.feature__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink);
  font-size: 14px;
}

.feature__check {
  display: grid;
  width: 20px;
  height: 20px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: var(--mint);
  color: var(--green-deep);
}

.feature__check .icon {
  width: 12px;
  height: 12px;
}

.feature__visual {
  position: relative;
  min-height: clamp(420px, 40vw, 540px);
  overflow: clip;
  border-radius: 32px;
  isolation: isolate;
}

.feature__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(11, 13, 14, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 13, 14, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 86%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 86%);
  pointer-events: none;
}

.feature__visual .phone {
  --phone-w: clamp(200px, 22vw, 270px);
  position: absolute;
  bottom: -14%;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%) rotate(var(--phone-rot, -3deg));
  transition: transform 0.7s var(--ease);
}

.feature__visual:hover .phone {
  transform: translateX(-50%) rotate(0deg) translateY(-6px);
}

.feature--reverse .feature__visual .phone {
  --phone-rot: 3deg;
}

.feature__visual--scanner {
  background:
    radial-gradient(circle at 72% 18%, rgba(96, 171, 0, 0.2), transparent 42%),
    linear-gradient(160deg, #1c2023, #0b0d0e 72%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.feature__visual--scanner::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
}

.feature__visual--scanner .phone {
  box-shadow:
    var(--shadow-phone),
    0 0 0 1px rgba(255, 255, 255, 0.14);
}

.feature__visual--docs {
  background: linear-gradient(160deg, #e7f3fc, #bfdff6);
}

.feature__visual--stock {
  background: linear-gradient(160deg, #f3f7e8, #e5efcc);
}

.feature__visual--catalog {
  background: linear-gradient(160deg, #f6f8f4, #e8f0ef);
}

.visual-chip {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 40px -24px rgba(11, 13, 14, 0.5);
  color: var(--ink);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  backdrop-filter: blur(12px);
}

.visual-chip .icon {
  width: 14px;
  height: 14px;
  color: var(--green-deep);
}

.visual-chip--bottom {
  bottom: 24px;
  left: 24px;
}

.feature__visual--docs .visual-chip--bottom {
  right: 24px;
  left: auto;
}

.feature__visual--stock .visual-chip--bottom {
  right: 24px;
  left: auto;
}

.feature__visual--scanner .visual-chip--bottom {
  top: 24px;
  bottom: auto;
  left: 24px;
}

.feature__visual::after {
  content: attr(data-number) / "";
  position: absolute;
  right: 24px;
  bottom: 16px;
  z-index: 1;
  color: rgba(11, 13, 14, 0.06);
  font-family: var(--font-display);
  font-size: 78px;
  font-weight: 600;
  line-height: 0.8;
  letter-spacing: -0.06em;
  pointer-events: none;
}

.feature__visual--scanner::after {
  color: rgba(255, 255, 255, 0.06);
}

.tag-stack {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.tag-pill {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--white);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 30px -18px rgba(11, 13, 14, 0.4);
}

.tag-pill--green {
  background: #1e7a4a;
}

.tag-pill--amber {
  background: #b45309;
}

.status-chip {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 40px -24px rgba(11, 13, 14, 0.5);
  color: var(--green-deep);
  font-size: 11px;
  font-weight: 600;
}

.status-chip__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(96, 171, 0, 0.14);
}

.stock-card {
  position: absolute;
  top: 52%;
  left: 24px;
  z-index: 4;
  display: grid;
  gap: 6px;
  width: 200px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 20px 50px -26px rgba(11, 13, 14, 0.45);
}

.stock-card__name {
  font-size: 12px;
  font-weight: 600;
}

.stock-card__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: var(--slate);
  font-size: 10px;
}

.stock-card__row strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.stock-card__delta {
  justify-self: start;
  margin-top: 2px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--green-deep);
  font-size: 9px;
  font-weight: 600;
}

.source-card {
  position: absolute;
  top: 52%;
  right: 24px;
  z-index: 4;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 4px 10px;
  width: 230px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 20px 50px -26px rgba(11, 13, 14, 0.45);
}

.source-card__icon {
  display: grid;
  width: 36px;
  height: 36px;
  grid-row: span 2;
  place-items: center;
  border-radius: 10px;
  background: rgba(0, 104, 110, 0.09);
  color: var(--teal);
}

.source-card__icon .icon {
  width: 18px;
  height: 18px;
}

.source-card__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.source-card__text strong {
  font-size: 12px;
  font-weight: 600;
}

.source-card__text span {
  margin-top: 2px;
  color: var(--slate);
  font-size: 10px;
}

.source-card__badge {
  grid-column: 2;
  justify-self: start;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(0, 104, 110, 0.08);
  color: var(--teal);
  font-size: 9px;
  font-weight: 600;
}

.details {
  display: grid;
  gap: 16px;
  margin-top: clamp(64px, 8vw, 100px);
}

.detail-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.detail-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.detail-card__icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: var(--paper);
  color: var(--green-deep);
}

.detail-card__icon .icon {
  width: 20px;
  height: 20px;
}

.detail-card h3 {
  margin-top: 20px;
  font-size: 20px;
  letter-spacing: -0.025em;
}

.detail-card p {
  margin-top: 8px;
  color: var(--slate);
  font-size: 14px;
}

/* ---------- Screens gallery ---------- */

.screens {
  position: relative;
  overflow: clip;
  background:
    radial-gradient(circle at 82% 10%, rgba(96, 171, 0, 0.13), transparent 34%),
    radial-gradient(circle at 8% 82%, rgba(0, 104, 110, 0.12), transparent 34%),
    var(--ink);
  color: var(--white);
}

.screens h2 {
  color: var(--white);
}

.screens .section-head__lead {
  color: rgba(255, 255, 255, 0.62);
}

.screens__meta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.screens__meta::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(96, 171, 0, 0.14);
  animation: pulse 3s ease-in-out infinite;
}

.gallery {
  --slide-w: clamp(230px, 25vw, 320px);
  margin-top: clamp(40px, 6vw, 72px);
}

.gallery__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.gallery__counter {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.14em;
}

.gallery__counter strong {
  color: var(--white);
  font-weight: 500;
}

.gallery__arrows {
  display: flex;
  gap: 8px;
}

.gallery__arrow {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  transition:
    background 0.3s var(--ease),
    color 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.gallery__arrow:hover:not(:disabled) {
  border-color: var(--white);
  background: var(--white);
  color: var(--ink);
}

.gallery__arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.gallery__arrow .icon {
  width: 19px;
  height: 19px;
}

.gallery__viewport {
  display: flex;
  gap: clamp(18px, 3vw, 40px);
  overflow-x: auto;
  padding-bottom: 28px;
  padding-right: calc(100% - var(--slide-w));
  scroll-behavior: smooth;
  scroll-padding-left: 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.gallery__viewport::-webkit-scrollbar {
  display: none;
}

.gallery__slide {
  position: relative;
  flex: 0 0 var(--slide-w);
  scroll-snap-align: start;
}

.gallery__slide::before {
  content: "";
  position: absolute;
  inset: 12% -10% 22%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 171, 0, 0.16), transparent 68%);
  filter: blur(24px);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}

.gallery__slide.is-active::before {
  opacity: 1;
}

.gallery__slide .phone {
  --phone-w: var(--slide-w);
  width: 100%;
  transition:
    transform 0.55s var(--ease),
    box-shadow 0.55s var(--ease);
}

.gallery__slide.is-active .phone {
  transform: translateY(-6px);
  box-shadow:
    0 70px 130px -40px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

.gallery__slide figcaption {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 2px 8px;
  margin-top: 22px;
  opacity: 0.58;
  transition: opacity 0.45s var(--ease);
}

.gallery__slide.is-active figcaption {
  opacity: 1;
}

.gallery__index {
  grid-row: span 2;
  padding-top: 4px;
  color: var(--green);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.gallery__slide h3 {
  font-size: 18px;
  letter-spacing: -0.025em;
}

.gallery__slide figcaption p {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12.5px;
  line-height: 1.45;
}

.gallery__dots {
  display: flex;
  gap: 0;
  margin-top: 20px;
}

.gallery__dot {
  display: grid;
  width: 32px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  background: none;
}

.gallery__dot span {
  display: block;
  width: 28px;
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.3s var(--ease);
}

.gallery__dot:hover span {
  background: rgba(255, 255, 255, 0.5);
}

.gallery__dot[aria-current="true"] span {
  background: var(--mint);
}

/* ---------- How it works ---------- */

.how {
  background: var(--paper);
}

.how__grid {
  display: grid;
  gap: 48px;
}

.how__intro h2 {
  margin-top: 16px;
}

.how__intro > p {
  max-width: 46ch;
  margin-top: 20px;
  color: var(--slate);
}

.how__intro .text-link {
  margin-top: 24px;
}

.steps {
  position: relative;
  display: grid;
}

.steps::before {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 23px;
  width: 1px;
  background: var(--line);
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.step:first-child {
  padding-top: 0;
  border-top: 0;
}

.step:last-child {
  padding-bottom: 0;
}

.step__number {
  position: relative;
  z-index: 1;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper);
  color: var(--green-deep);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
}

.step__meta {
  color: var(--slate);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.step h3 {
  margin-top: 8px;
  font-size: clamp(1.4rem, 1.2rem + 1vw, 2rem);
}

.step__content > p {
  max-width: 52ch;
  margin-top: 10px;
  color: var(--slate);
}

.ui-card {
  display: grid;
  gap: 0;
  max-width: 460px;
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.ui-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.ui-card__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
}

.ui-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.ui-dot--teal {
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(0, 104, 110, 0.12);
}

.ui-card__badge {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--green-deep);
  font-size: 9px;
  font-weight: 600;
}

.ui-card__badge--muted {
  background: var(--paper);
  color: var(--slate);
}

.ui-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

.ui-row:last-of-type {
  border-bottom: 0;
}

.ui-row__label {
  color: var(--slate);
}

.ui-row__value {
  color: var(--ink);
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.ui-row__value--green {
  color: var(--green-deep);
}

.ui-button {
  justify-self: start;
  margin-top: 14px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 10px;
  font-weight: 500;
}

/* ---------- Use cases ---------- */

.usecases {
  border-top: 1px solid var(--line);
  background: var(--paper-bright);
}

.case-grid {
  display: grid;
  gap: 16px;
  margin-top: clamp(40px, 6vw, 64px);
}

.case-card {
  position: relative;
  display: flex;
  min-height: 280px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.case-card--sky {
  background: linear-gradient(145deg, #e7f3fc, var(--sky));
}

.case-card--mint {
  background: linear-gradient(145deg, #f3f7e8, var(--mint));
}

.case-card--paper {
  background: var(--white);
}

.case-card--ink {
  border-color: transparent;
  background: var(--ink);
  color: var(--white);
}

.case-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.case-card__icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
}

.case-card__icon .icon {
  width: 23px;
  height: 23px;
}

.case-card--ink .case-card__icon {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.case-card__tag {
  color: var(--slate);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.case-card--ink .case-card__tag {
  color: rgba(255, 255, 255, 0.6);
}

.case-card h3 {
  margin-top: 36px;
  font-size: clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
}

.case-card p {
  max-width: 36ch;
  margin-top: 8px;
  color: var(--slate);
  font-size: 14px;
}

.case-card--ink p {
  color: rgba(255, 255, 255, 0.65);
}

.case-card::after {
  content: attr(data-number) / "";
  position: absolute;
  right: 24px;
  bottom: 16px;
  color: rgba(11, 13, 14, 0.06);
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.06em;
  pointer-events: none;
}

.case-card--ink::after {
  color: rgba(255, 255, 255, 0.08);
}

.case-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 16px;
  overflow: hidden;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 28px;
  background: var(--ink);
  color: var(--white);
}

.case-banner p {
  max-width: 20ch;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1.6vw, 2.6rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.case-banner img {
  width: min(34%, 260px);
  opacity: 0.7;
  filter: invert(1);
}

/* ---------- Full version ---------- */

.full {
  background: var(--paper);
}

.full__card {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 5vw, 72px);
  border-radius: clamp(28px, 4vw, 48px);
  background: var(--ink);
  color: var(--white);
  isolation: isolate;
}

.full__card::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 171, 0, 0.2), transparent 68%);
  pointer-events: none;
}

.full__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 80%);
  pointer-events: none;
}



.full__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 48px;
}

.full__copy h2 {
  max-width: 15ch;
  margin-top: 16px;
  color: var(--white);
}

.full__copy > p {
  max-width: 52ch;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.65);
}

.check-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
}

.check-list__icon {
  display: grid;
  width: 22px;
  height: 22px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: rgba(96, 171, 0, 0.18);
  color: var(--mint);
}

.check-list__icon .icon {
  width: 12px;
  height: 12px;
}

.pricing {
  display: grid;
  align-content: start;
  gap: 12px;
}

.price-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
}

.price-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price-card__period {
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.price-card__unit {
  color: rgba(255, 255, 255, 0.45);
  font-size: 10px;
}

.price-card__amount {
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.4rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.045em;
}

.price-card__amount span {
  margin-left: 4px;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.price-card__note {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  line-height: 1.45;
}

.price-card--featured {
  border-color: var(--green);
  background: var(--mint);
  color: var(--ink);
}

.price-card--featured .price-card__period,
.price-card--featured .price-card__unit,
.price-card--featured .price-card__note {
  color: var(--green-deep);
}

.price-card--featured .price-card__amount {
  color: var(--ink);
}

.price-card--featured .price-card__amount span {
  color: var(--green-deep);
}

.price-card__badge {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--green);
  color: var(--ink);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.full .appstore-button {
  width: 100%;
  margin-top: 4px;
}

.pricing__note {
  color: rgba(255, 255, 255, 0.58);
  font-size: 10.5px;
  line-height: 1.5;
}

/* ---------- Final CTA ---------- */

.final {
  position: relative;
  overflow: clip;
  padding-block: clamp(80px, 12vw, 150px);
  background: linear-gradient(135deg, var(--sky) 0%, #d8e9e8 45%, var(--mint) 100%);
  text-align: center;
}

.final__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.85), transparent 42%),
    radial-gradient(circle at 12% 100%, rgba(255, 255, 255, 0.4), transparent 34%);
}

.final__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 79px,
    rgba(11, 13, 14, 0.03) 79px 80px
  );
  mask-image: linear-gradient(to bottom, #000, transparent 90%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 90%);
}

.final__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.final__icon {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  box-shadow: 0 24px 60px -20px rgba(11, 13, 14, 0.45);
}

.final .section-label {
  justify-content: center;
  margin-top: 28px;
}

.final h2 {
  max-width: 22ch;
  margin-top: 18px;
  font-size: clamp(2.5rem, 1.7rem + 3.6vw, 5rem);
}

.final__inner > p:not(.section-label):not(.final__meta) {
  max-width: 46ch;
  margin-top: 18px;
  color: var(--slate);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.2rem);
}

.final .appstore-button {
  margin-top: 30px;
}

.final__meta {
  margin-top: 18px;
  color: var(--slate);
  font-size: 12px;
}

.final__barcode {
  width: min(100%, 420px);
  height: 40px;
  margin-top: 48px;
  opacity: 0.3;
}

.final__barcode img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

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

.footer {
  overflow: clip;
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(10px, 1.5vw, 20px);
  background: var(--ink);
  color: var(--white);
}

.footer__top {
  display: grid;
  gap: 36px;
}

.brand--footer {
  color: var(--white);
}

.footer__brand > p {
  max-width: 28ch;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.footer__mail {
  display: inline-block;
  margin-top: 20px;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(229, 239, 204, 0.35);
  color: var(--mint);
  font-size: 14px;
}

.footer__col-title {
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer__col a,
.footer__col p {
  display: block;
  padding: 5px 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
}

.footer__col a:hover {
  color: var(--white);
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(48px, 7vw, 80px);
  padding-top: 24px;
  border-top: 1px solid var(--line-light);
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__legal a:hover {
  color: var(--white);
}

.footer__wordmark {
  margin-top: 32px;
  color: rgba(255, 255, 255, 0.045);
  font-family: var(--font-display);
  font-size: clamp(4rem, 21vw, 16rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.07em;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}

.footer__wordmark::before {
  content: "SkladOk";
}

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

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js .hero__copy > * {
  animation: fade-up 0.9s var(--ease) both;
}

.js .hero__copy > *:nth-child(1) {
  animation-delay: 0.05s;
}

.js .hero__copy > *:nth-child(2) {
  animation-delay: 0.12s;
}

.js .hero__copy > *:nth-child(3) {
  animation-delay: 0.2s;
}

.js .hero__copy > *:nth-child(4) {
  animation-delay: 0.28s;
}

.js .hero__copy > *:nth-child(5) {
  animation-delay: 0.36s;
}

.js .hero__stage {
  animation: fade-in 1s var(--ease) 0.1s both;
}

.js .phone-pos--front .phone {
  animation: phone-rise 1s var(--ease) 0.35s both;
}

.js .phone-pos--rear .phone {
  animation: phone-rise 1s var(--ease) 0.5s both;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes phone-rise {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

/* ---------- Responsive ---------- */

@media (min-width: 600px) {
  .details,
  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (min-width: 760px) {
  .hero__ledger {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .case-card {
    min-height: 300px;
  }

  .footer__bottom {
    flex-direction: row;
    align-items: center;
  }
}

@media (min-width: 900px) {
  .nav {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .mobile-menu {
    display: none;
  }

}

@media (min-width: 980px) {
  .footer__top {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
  }

  .footer__brand {
    grid-column: auto;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
    align-items: center;
    gap: 24px;
  }

  .hero__stage {
    min-height: 570px;
    margin-top: 0;
  }

  .hero__title {
    font-size: clamp(3rem, 6vw, 5rem);
  }

  html.lang-en .hero__title {
    font-size: clamp(2.7rem, 5.2vw, 4.5rem);
  }

  html.lang-es .hero__title {
    font-size: clamp(2.7rem, 4.4vw, 3.9rem);
  }

  .hero__barcode {
    display: flex;
  }

  .section-head--split {
    grid-template-columns: 200px minmax(0, 1fr);
    align-items: start;
    gap: 48px;
  }

  .section-head--split .section-label {
    padding-top: 10px;
  }

  .section-head--split h2 {
    margin-top: 0;
  }

  .feature {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
    gap: clamp(48px, 7vw, 104px);
  }

  .feature--reverse .feature__copy {
    order: 2;
  }

  .feature--reverse .feature__visual {
    order: 1;
  }

  .how__grid {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: clamp(48px, 8vw, 120px);
  }

  .how__intro {
    position: sticky;
    top: 120px;
    align-self: start;
  }

  .full__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: clamp(40px, 6vw, 80px);
    align-items: start;
  }
}

@media (min-width: 1100px) {
  .details {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  .case-grid {
    gap: 20px;
  }

  .case-card {
    min-height: 320px;
  }
}

@media (max-width: 979px) {
  .hero {
    min-height: auto;
    padding-top: 128px;
  }

  .feature__visual {
    min-height: 480px;
  }

  .feature__visual .phone {
    --phone-w: 200px;
    bottom: -8%;
  }

  .hero__stage {
    margin-top: 8px;
  }

  .feature--reverse .feature__copy,
  .feature--reverse .feature__visual {
    order: 0;
  }
}

@media (max-width: 899px) {
  .site-header__actions .appstore-button--small {
    display: none;
  }

  .site-header {
    padding-block: 10px;
  }

  .section-head--split {
    gap: 16px;
  }
}

@media (max-width: 759px) {
  .stock-card,
  .source-card {
    display: none;
  }

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

  .ledger-item {
    padding: 16px 16px 18px 0;
  }

  .ledger-item:nth-child(2n) {
    border-right: 0;
    padding-left: 16px;
  }

  .ledger-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .intro__statement {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .intro__statement span {
    text-align: left;
  }

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

  .tab-card {
    padding: 20px 20px 24px 0;
  }

  .tab-card:nth-child(2n) {
    border-right: 0;
    padding-left: 20px;
  }

  .tab-card:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .how__intro .text-link {
    margin-top: 20px;
  }

  .case-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .case-banner img {
    width: min(100%, 260px);
  }

  .footer__wordmark {
    margin-top: 24px;
  }
}

@media (max-width: 559px) {
  .site-header__inner {
    gap: 12px;
  }

  .site-header__actions {
    gap: 8px;
  }

  .lang-switch a,
  .lang-switch span {
    min-width: 25px;
    height: 27px;
  }

  .hero {
    padding-top: 112px;
  }

  .hero__eyebrow {
    font-size: 9px;
    letter-spacing: 0.1em;
  }

  .hero__lead {
    margin-top: 22px;
  }

  .hero__actions {
    align-items: stretch;
    gap: 12px;
    margin-top: 28px;
  }

  .hero__actions .appstore-button {
    width: 100%;
  }

  .hero__actions .text-link {
    align-self: flex-start;
  }

  .hero__stage {
    min-height: 500px;
  }

  .phone-pos--front {
    bottom: 0;
    left: 0;
  }

  .phone-pos--rear {
    top: 2%;
    right: 0;
  }

  .phone-pos--front .phone {
    --phone-w: 220px;
  }

  .phone-pos--rear .phone {
    --phone-w: 178px;
  }

  .float-card {
    gap: 8px;
    padding: 9px 12px;
    border-radius: 13px;
  }

  .float-card--doc {
    top: 42%;
    left: -3%;
  }

  .float-card--stock {
    right: -2%;
    bottom: 6%;
  }

  .float-card__icon {
    width: 30px;
    height: 30px;
  }

  .float-card__icon .icon {
    width: 15px;
    height: 15px;
  }

  .float-card__value {
    font-size: 18px;
  }

  .float-card__sub {
    font-size: 9px;
  }

  .hero__ledger {
    margin-top: 32px;
  }

  .intro__statement p {
    font-size: clamp(1.7rem, 8vw, 2.4rem);
  }

  .tabs-grid {
    grid-template-columns: 1fr;
  }

  .tab-card {
    padding: 20px 0 22px;
    border-right: 0;
  }

  .tab-card:nth-child(2n) {
    padding-left: 0;
  }

  .tab-card:nth-child(-n + 2) {
    border-bottom: 0;
  }

  .tab-card:not(:last-child) {
    border-bottom: 1px solid var(--line);
  }

  .feature__visual {
    min-height: 460px;
    border-radius: 24px;
  }

  .feature__visual .phone {
    --phone-w: 190px;
    bottom: -7%;
  }

  .tag-stack {
    top: 16px;
    right: 16px;
  }

  .tag-pill {
    padding: 6px 9px;
    font-size: 9px;
  }

  .status-chip {
    top: 16px;
    left: 16px;
  }

  .stock-card {
    top: 50%;
    left: 16px;
    width: 184px;
    padding: 12px;
  }

  .source-card {
    top: 50%;
    right: 16px;
    width: 214px;
    padding: 10px;
  }

  .visual-chip {
    padding: 7px 10px;
    font-size: 10px;
  }

  .visual-chip--bottom {
    bottom: 16px;
    left: 16px;
  }

  .feature__visual--docs .visual-chip--bottom,
  .feature__visual--stock .visual-chip--bottom {
    right: 16px;
    left: auto;
  }

  .feature__visual--scanner .visual-chip--bottom {
    top: 16px;
    bottom: auto;
    left: 16px;
  }

  .visual-number {
    right: 16px;
    bottom: 10px;
    font-size: 60px;
  }

  .details {
    gap: 12px;
  }

  .detail-card {
    padding: 22px;
  }

  .gallery {
    --slide-w: clamp(212px, 68vw, 260px);
  }

  .gallery__top {
    margin-bottom: 18px;
  }

  .gallery__arrow {
    width: 42px;
    height: 42px;
  }

  .gallery__slide figcaption {
    margin-top: 18px;
  }

  .step {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 16px;
    padding: 26px 0;
  }

  .steps::before {
    left: 19px;
  }

  .step__number {
    width: 40px;
    height: 40px;
    font-size: 12px;
  }

  .ui-card {
    padding: 15px;
  }

  .case-card {
    min-height: 250px;
    padding: 22px;
    border-radius: 24px;
  }

  .case-card h3 {
    margin-top: 28px;
  }

  .case-banner {
    padding: 24px;
    border-radius: 24px;
  }

  .full__card {
    padding: 26px 20px;
    border-radius: 26px;
  }

  

  .price-card {
    padding: 18px;
  }

  .final__icon {
    width: 82px;
    height: 82px;
    border-radius: 20px;
  }

  .final h2 {
    font-size: clamp(2.5rem, 12vw, 3.6rem);
  }

  .final .appstore-button {
    width: 100%;
    max-width: 320px;
  }

  .final__barcode {
    margin-top: 36px;
  }

  .footer__legal {
    gap: 12px;
  }
}

@media (max-width: 379px) {
  :root {
    --gutter: 16px;
  }

  .site-header__inner {
    gap: 8px;
  }

  .site-header__actions {
    gap: 6px;
  }

  .lang-switch a,
  .lang-switch span {
    min-width: 24px;
    height: 26px;
    font-size: 9px;
  }

  .brand {
    font-size: 17px;
  }

  .brand__mark {
    width: 34px;
    height: 34px;
  }

  .hero__stage {
    min-height: 460px;
  }

  .phone-pos--front .phone {
    --phone-w: 200px;
  }

  .phone-pos--rear .phone {
    --phone-w: 160px;
  }

  .hero__meta {
    column-gap: 14px;
    row-gap: 4px;
  }

  .hero__meta span + span::before {
    display: none;
  }

  .float-card__label {
    font-size: 8px;
  }

  .float-card__value {
    font-size: 17px;
  }

  .ledger-item__text {
    font-size: 11px;
  }

  .stock-card {
    width: 170px;
  }

  .source-card {
    width: 196px;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js .reveal,
  .js .hero__copy > *,
  .js .hero__stage,
  .js .phone-pos .phone {
    opacity: 1 !important;
    transform: none !important;
  }

}

/* ---------- Legal pages ---------- */

.legal-page {
  background: var(--paper);
}

.legal-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 248, 244, 0.9);
  backdrop-filter: blur(18px) saturate(1.3);
}

.legal-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.legal-header__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--slate);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.25s var(--ease);
}

.legal-header__back:hover {
  color: var(--ink);
}

.legal-main {
  padding-block: clamp(48px, 7vw, 96px) clamp(64px, 9vw, 120px);
}

.legal-layout {
  display: grid;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}

.legal-sidebar {
  min-width: 0;
}

.legal-kicker {
  color: var(--green-deep);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.legal-sidebar h1 {
  margin-top: 12px;
  font-size: clamp(2.4rem, 1.7rem + 2.5vw, 3.8rem);
  line-height: 0.98;
}

.legal-dates {
  margin-top: 20px;
  color: var(--slate);
  font-size: 13px;
  line-height: 1.7;
}

.legal-language {
  margin-top: 20px;
  padding: 14px 16px;
  border-left: 2px solid var(--green);
  background: rgba(229, 239, 204, 0.42);
  color: var(--slate);
  font-size: 12px;
  line-height: 1.65;
}

.legal-language strong {
  color: var(--ink);
  font-weight: 600;
}

.legal-toc {
  margin-top: 28px;
}

.legal-toc__title {
  margin-bottom: 10px;
  color: var(--slate-light);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.legal-toc ol {
  display: grid;
  gap: 2px;
  counter-reset: legal-toc;
}

.legal-toc li {
  counter-increment: legal-toc;
}

.legal-toc a {
  display: flex;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  color: var(--slate);
  font-size: 13px;
  line-height: 1.4;
  transition:
    color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.legal-toc a::before {
  content: counter(legal-toc, decimal-leading-zero);
  flex: none;
  padding-top: 2px;
  color: var(--slate-light);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.legal-toc a:hover {
  border-bottom-color: var(--line-strong);
  color: var(--ink);
}

.legal-contact {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.legal-contact a {
  color: var(--green-deep);
  font-size: 14px;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-contact a:hover {
  color: var(--ink);
}

.legal-document {
  max-width: 760px;
  min-width: 0;
}

.legal-section {
  padding-bottom: 32px;
}

.legal-section + .legal-section {
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  font-size: clamp(1.45rem, 1.15rem + 1vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.legal-section h3 {
  margin-top: 24px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
}

.legal-section p,
.legal-section ul,
.legal-section ol {
  margin-top: 14px;
  color: var(--slate);
  font-size: 15px;
  line-height: 1.75;
}

.legal-section p strong {
  color: var(--ink);
  font-weight: 600;
}

.legal-section ul,
.legal-section ol {
  padding-left: 1.3em;
}

.legal-section ul {
  list-style: disc;
}

.legal-section ol {
  list-style: decimal;
}

.legal-section li {
  margin-top: 8px;
  padding-left: 4px;
}

.legal-section li::marker {
  color: var(--green-deep);
}

.legal-section a {
  color: var(--green-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-section a:hover {
  color: var(--ink);
}

.legal-callout {
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid rgba(96, 171, 0, 0.25);
  border-radius: var(--radius-sm);
  background: rgba(229, 239, 204, 0.35);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.legal-callout p {
  margin: 0;
  color: inherit;
  font-size: inherit;
}

.legal-callout p + p {
  margin-top: 10px;
}

.legal-footer {
  padding-block: 28px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.legal-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--slate);
  font-size: 12px;
}

.legal-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.legal-footer__nav a {
  color: var(--slate);
}

.legal-footer__nav a:hover {
  color: var(--ink);
}

.legal-footer__nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

@media (min-width: 900px) {
  .legal-layout {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: clamp(48px, 7vw, 96px);
  }

  .legal-sidebar {
    position: sticky;
    top: 96px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
  }

  .legal-footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (max-width: 559px) {
  .legal-header__inner {
    gap: 12px;
  }

  .legal-header__back {
    font-size: 12px;
  }

  .legal-main {
    padding-top: 36px;
  }

  .legal-section p,
  .legal-section ul,
  .legal-section ol {
    font-size: 14.5px;
  }
}

@media print {
  .legal-page {
    background: #fff;
  }

  .legal-header,
  .legal-footer {
    display: none;
  }

  .legal-main {
    padding: 0;
  }

  .legal-layout {
    display: block;
  }

  .legal-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    margin-bottom: 24px;
    padding: 0;
  }

  .legal-toc,
  .legal-contact {
    display: none;
  }

  .legal-language {
    border: 1px solid #999;
    background: none;
  }

  .legal-document {
    max-width: none;
  }

  .legal-section {
    padding-bottom: 18px;
  }

  .legal-section + .legal-section {
    padding-top: 18px;
    border-top-color: #ccc;
  }

  .legal-section h2 {
    font-size: 14pt;
  }

  .legal-section p,
  .legal-section ul,
  .legal-section ol,
  .legal-callout {
    color: #000;
    font-size: 10.5pt;
    line-height: 1.5;
  }

  .legal-section a {
    color: #000;
  }

  .legal-section a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    word-break: break-all;
  }

  .legal-callout {
    border: 1px solid #999;
    background: none;
  }

  .legal-section h2,
  .legal-section h3 {
    break-after: avoid;
  }
}
