/* ==========================================================================
   ErzenAPPS — site stylesheet
   1. Tokens          6. Hero & home sections
   2. Base            7. Product pages
   3. Layout          8. Legal pages
   4. Typography      9. Forms
   5. Components     10. Footer, motion, responsive
   ========================================================================== */

/* 1. Tokens ============================================================== */

:root {
  --font-sans: 'Inter var', Inter, -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI',
    Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

  --bg: #fbfaf8;
  --bg-muted: #f4f2ee;
  --surface: #ffffff;
  --surface-2: #f8f7f4;
  --ink: #12141a;
  --ink-2: #454b57;
  --ink-3: #646b78;
  --line: rgb(18 20 26 / 10%);
  --line-strong: rgb(18 20 26 / 16%);

  --accent: #6242cf;
  --accent-hover: #533ab3;
  --accent-soft: rgb(98 66 207 / 9%);
  --accent-contrast: #ffffff;

  --ok: #1f7a52;
  --ok-soft: rgb(31 122 82 / 10%);
  --warn: #8f5a0f;
  --warn-soft: rgb(143 90 15 / 12%);
  --danger: #b3261e;

  --brand-gradient: linear-gradient(100deg, #ff8a3d 0%, #e94b88 28%, #9d4edd 55%, #2a5a7d 78%, #48b9ab 100%);

  --shadow-sm: 0 1px 2px rgb(18 20 26 / 5%), 0 1px 3px rgb(18 20 26 / 4%);
  --shadow-md: 0 4px 12px rgb(18 20 26 / 6%), 0 12px 28px rgb(18 20 26 / 6%);
  --shadow-lg: 0 8px 24px rgb(18 20 26 / 8%), 0 28px 60px rgb(18 20 26 / 10%);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --speed: 0.28s;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0e13;
    --bg-muted: #111419;
    --surface: #14171e;
    --surface-2: #191d25;
    --ink: #f3f4f7;
    --ink-2: #c2c7d1;
    --ink-3: #8b93a1;
    --line: rgb(255 255 255 / 10%);
    --line-strong: rgb(255 255 255 / 18%);

    --accent: #a591ff;
    --accent-hover: #b9aaff;
    --accent-soft: rgb(165 145 255 / 14%);
    --accent-contrast: #14101f;

    --ok: #6ed3a4;
    --ok-soft: rgb(110 211 164 / 14%);
    --warn: #e5b567;
    --warn-soft: rgb(229 181 103 / 14%);
    --danger: #ff8b82;

    --shadow-sm: 0 1px 2px rgb(0 0 0 / 40%);
    --shadow-md: 0 4px 14px rgb(0 0 0 / 36%), 0 14px 32px rgb(0 0 0 / 30%);
    --shadow-lg: 0 10px 30px rgb(0 0 0 / 42%), 0 30px 70px rgb(0 0 0 / 38%);
  }
}

/* 2. Base =============================================================== */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis-weight: none;
  overflow-wrap: break-word;
}

body.is-nav-open {
  overflow: hidden;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 640;
  letter-spacing: -0.022em;
  line-height: 1.12;
  color: var(--ink);
  text-wrap: balance;
}

p {
  margin: 0;
}

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

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

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

[hidden] {
  display: none !important;
}

img {
  height: auto;
}

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

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

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--bg);
  font-size: 0.9rem;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform var(--speed) var(--ease);
}

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

.icon {
  flex: none;
}

/* 3. Layout ============================================================= */

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

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

.section--tight {
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
}

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

.section--facts {
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.25rem, 4vw, 3.25rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head__title {
  font-size: clamp(1.85rem, 3.6vw, 2.7rem);
}

.section-head__lead {
  margin-top: 0.9rem;
  color: var(--ink-2);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.65;
  text-wrap: pretty;
}

.section-foot {
  margin-top: clamp(2rem, 3.5vw, 2.75rem);
}

/* 4. Typography ========================================================= */

.eyebrow {
  margin-bottom: 0.9rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 620;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.prose {
  max-width: 40rem;
  color: var(--ink-2);
  font-size: 1.02rem;
  line-height: 1.75;
  display: grid;
  gap: 1.1rem;
}

.prose--wide {
  max-width: 46rem;
}

.prose .lead {
  color: var(--ink);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.5;
  letter-spacing: -0.012em;
  font-weight: 500;
}

.prose a:not(.text-link),
.legal-body a,
.contact-note a,
.split__body a:not(.text-link) {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.prose a:not(.text-link):hover,
.legal-body a:hover,
.split__body a:not(.text-link):hover {
  color: var(--accent-hover);
}

/* 5. Components ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 560;
  letter-spacing: -0.006em;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--speed) var(--ease), border-color var(--speed) var(--ease),
    color var(--speed) var(--ease), transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}

.btn .icon {
  transition: transform var(--speed) var(--ease);
}

.btn:hover .icon {
  transform: translateX(2px);
}

.btn--primary {
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: var(--accent);
  color: var(--accent-contrast);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

.btn--sm {
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 0.9rem 1.6rem;
  font-size: 1rem;
}

.btn--block {
  display: flex;
  width: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  color: var(--accent);
  font-weight: 560;
  font-size: 0.96rem;
}

.text-link .icon {
  transition: transform var(--speed) var(--ease);
}

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

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.76rem;
  font-weight: 560;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentcolor;
}

.badge--available {
  background: var(--ok-soft);
  border-color: transparent;
  color: var(--ok);
}

.badge--coming-soon,
.badge--in-development {
  background: var(--warn-soft);
  border-color: transparent;
  color: var(--warn);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag {
  padding: 0.28rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.78rem;
  font-weight: 500;
}

.product-icon {
  border-radius: 22%;
  box-shadow: var(--shadow-sm);
  background: var(--surface-2);
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.62rem 1.15rem;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  transition: border-color var(--speed) var(--ease), transform var(--speed) var(--ease),
    box-shadow var(--speed) var(--ease);
}

.store-btn:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.store-btn span {
  display: flex;
  flex-direction: column;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.store-btn small {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.store-note {
  padding: 0.7rem 1rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 0.9rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--speed) var(--ease), background var(--speed) var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.05rem;
  font-weight: 640;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: var(--shadow-sm);
}

.brand__name-accent {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav__link {
  display: inline-block;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 0.93rem;
  font-weight: 520;
  transition: color var(--speed) var(--ease), background var(--speed) var(--ease);
}

.site-nav__link:hover {
  color: var(--ink);
  background: var(--surface-2);
}

.site-nav__link.is-active {
  color: var(--ink);
  font-weight: 600;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle__icon--close,
.nav-toggle[aria-expanded='true'] .nav-toggle__icon {
  display: none;
}

.nav-toggle[aria-expanded='true'] .nav-toggle__icon--close {
  display: block;
}

.mobile-nav {
  display: none;
  gap: 1rem;
  padding: 0.5rem var(--gutter) 1.5rem;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.mobile-nav__list {
  display: grid;
}

.mobile-nav__link {
  display: block;
  padding: 0.85rem 0.25rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 520;
}

.mobile-nav__link.is-active {
  color: var(--accent);
}

/* 6. Hero & home ======================================================== */

.hero {
  position: relative;
  padding-block: clamp(3.5rem, 9vw, 7rem) clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  inset-inline: -10%;
  top: -70%;
  height: 150%;
  background: radial-gradient(34% 32% at 28% 62%, rgb(255 138 61 / 13%) 0%, transparent 68%),
    radial-gradient(36% 34% at 52% 58%, rgb(157 78 221 / 14%) 0%, transparent 68%),
    radial-gradient(32% 30% at 76% 64%, rgb(72 185 171 / 11%) 0%, transparent 68%);
  filter: blur(28px);
  mask-image: radial-gradient(70% 60% at 50% 62%, #000 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 62%, #000 0%, transparent 100%);
  animation: drift 30s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes drift {
  from {
    transform: translate3d(-2%, 0, 0) scale(1);
  }
  to {
    transform: translate3d(2%, 3%, 0) scale(1.08);
  }
}

.hero__inner {
  position: relative;
  max-width: 54rem;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.9rem 0.4rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: var(--ink-2);
  font-size: 0.83rem;
  font-weight: 540;
}

.hero__eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-gradient);
}

.hero__title {
  margin-top: 1.5rem;
  font-size: clamp(2.8rem, 7.4vw, 5.1rem);
  font-weight: 660;
  letter-spacing: -0.035em;
  line-height: 1.03;
}

.hero__title-accent {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  max-width: 38rem;
  margin-top: 1.4rem;
  color: var(--ink-2);
  font-size: clamp(1.05rem, 1.9vw, 1.28rem);
  line-height: 1.6;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero__products {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: clamp(2.75rem, 6vw, 4rem);
  padding-top: clamp(1.75rem, 4vw, 2.5rem);
  border-top: 1px solid var(--line);
}

.hero__product {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 1.15rem 0.65rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  transition: border-color var(--speed) var(--ease), transform var(--speed) var(--ease),
    box-shadow var(--speed) var(--ease);
}

.hero__product:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hero__product-text {
  display: grid;
  line-height: 1.35;
}

.hero__product-text strong {
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.012em;
}

.hero__product-text small {
  color: var(--ink-3);
  font-size: 0.8rem;
}

/* Featured product ----------------------------------------------------- */

.section--featured {
  padding-top: clamp(1rem, 2vw, 2rem);
}

.featured {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(1.75rem, 4vw, 3.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.featured__identity {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1.4rem;
}

.featured__title {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
}

.featured__tagline {
  margin-top: 0.35rem;
  color: var(--ink-3);
  font-size: 1rem;
}

.featured__summary {
  color: var(--ink-2);
  font-size: 1.02rem;
  line-height: 1.7;
}

.featured__features {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.featured__features li {
  display: flex;
  gap: 0.7rem;
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.55;
}

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

.featured__check {
  display: grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}

.featured__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 1.6rem 0 1.25rem;
}

.featured__platform {
  color: var(--ink-3);
  font-size: 0.88rem;
}

.featured__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.featured__byline {
  color: var(--ink-3);
  font-size: 0.86rem;
  letter-spacing: 0.01em;
}

.featured__visual-card {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--surface-2), var(--bg-muted));
}

.featured__visual-caption {
  margin-top: 1.1rem;
  color: var(--ink-3);
  font-size: 0.84rem;
  text-align: center;
}

.sudoku {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  border: 2px solid var(--line-strong);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  font-variant-numeric: tabular-nums;
}

.sudoku__cell {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: clamp(0.7rem, 1.5vw, 1rem);
  font-weight: 560;
}

.sudoku__cell:nth-child(9n) {
  border-right: 0;
}

.sudoku__cell:nth-last-child(-n + 9) {
  border-bottom: 0;
}

.sudoku__cell.is-block-right {
  border-right-color: var(--line-strong);
  border-right-width: 2px;
}

.sudoku__cell.is-block-bottom {
  border-bottom-color: var(--line-strong);
  border-bottom-width: 2px;
}

.sudoku__cell.is-empty {
  background: var(--surface-2);
}

/* Product grid --------------------------------------------------------- */

/* Capping the track keeps a single card from stretching the full width of the
   page while the catalogue is small; extra cards still fill the row. */
.product-grid,
.policy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 32rem));
  justify-content: start;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: clamp(1.35rem, 2.5vw, 1.85rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color var(--speed) var(--ease), transform var(--speed) var(--ease),
    box-shadow var(--speed) var(--ease);
}

.product-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.product-card__link {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.product-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.product-card__body {
  flex: 1;
}

.product-card__title {
  font-size: 1.35rem;
}

.product-card__tagline {
  margin-top: 0.3rem;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 540;
}

.product-card__summary {
  margin-top: 0.8rem;
  color: var(--ink-2);
  font-size: 0.96rem;
  line-height: 1.65;
}

/* Sits above .product-card__link so the store buttons stay individually
   clickable inside a card that is itself a link. */
.product-card .store-buttons,
.product-card .store-note {
  position: relative;
  z-index: 1;
}

.store-buttons--compact .store-btn {
  padding: 0.5rem 0.9rem;
}

.store-buttons--compact .store-btn span {
  font-size: 0.9rem;
}

.tech-card--compact {
  gap: 1rem;
}

.product-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.product-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 560;
}

.product-card__cta .icon {
  transition: transform var(--speed) var(--ease);
}

.product-card:hover .product-card__cta .icon {
  transform: translateX(3px);
}

/* Capability / steps / tech / principles -------------------------------- */

.capability-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.capability {
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}

.capability:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.capability__icon,
.decision__icon,
.contact-card__icon,
.channel__icon,
.trust__icon,
.split__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1.1rem;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.capability h3,
.decision h3,
.principle h3,
.tech-card h3,
.feature h3 {
  font-size: 1.1rem;
  letter-spacing: -0.015em;
}

.capability p,
.decision p,
.principle p,
.tech-card p,
.feature p {
  margin-top: 0.55rem;
  color: var(--ink-2);
  font-size: 0.94rem;
  line-height: 1.65;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 1.6rem;
  border-top: 2px solid var(--line-strong);
}

.step__num {
  display: block;
  margin-bottom: 0.6rem;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.step__title {
  font-size: 1.2rem;
}

.step__body {
  margin-top: 0.6rem;
  color: var(--ink-2);
  font-size: 0.94rem;
  line-height: 1.65;
}

.steps--compact .step__body {
  font-size: 0.9rem;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

/* Four cards read better as a 2x2 block than as 3 + 1. */
@media (min-width: 820px) {
  .tech-grid--home {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Five cards: 3 on the first row, 2 wider ones on the second. */
@media (min-width: 900px) {
  .capability-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .capability {
    grid-column: span 2;
  }

  .capability:nth-child(4),
  .capability:nth-child(5) {
    grid-column: span 3;
  }
}

.tech-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.tech-card .tags {
  margin-top: auto;
  padding-top: 0.4rem;
}

.tech-card .tag {
  background: var(--surface-2);
}

.principle-grid,
.decision-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

/* Principles come in fours and carry longer copy: 2x2 beats 3 + 1. */
@media (min-width: 820px) {
  .principle-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.principle,
.decision,
.feature {
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

/* Split / trust / facts / contact cards --------------------------------- */

.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.75rem, 5vw, 4rem);
  align-items: start;
}

.split__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.split__body {
  display: grid;
  gap: 1.1rem;
  color: var(--ink-2);
  font-size: 1.02rem;
  line-height: 1.75;
}

.split__body .text-link {
  justify-self: start;
}

.trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(1.75rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
}

.trust__title {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
}

.trust__lead {
  margin: 0.85rem 0 1.3rem;
  color: var(--ink-2);
  line-height: 1.7;
}

.trust__list {
  display: grid;
  gap: 0.65rem;
}

.trust__list a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  transition: border-color var(--speed) var(--ease), transform var(--speed) var(--ease);
}

.trust__list a:hover {
  border-color: var(--line-strong);
  transform: translateX(3px);
}

.trust__list strong {
  font-weight: 600;
}

.trust__list span {
  flex: 1;
  color: var(--ink-3);
  font-size: 0.9rem;
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.fact {
  padding: 1.35rem 1.5rem;
  border-left: 2px solid var(--line-strong);
}

.fact__value {
  display: block;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 640;
  letter-spacing: -0.02em;
}

.fact__label {
  display: block;
  margin-top: 0.3rem;
  color: var(--ink-3);
  font-size: 0.88rem;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.contact-card {
  display: grid;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color var(--speed) var(--ease), transform var(--speed) var(--ease),
    box-shadow var(--speed) var(--ease);
}

.contact-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.contact-card strong {
  font-size: 1.05rem;
  font-weight: 600;
}

.contact-card span:last-child {
  margin-top: 0.25rem;
  color: var(--ink-3);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

/* CTA band ------------------------------------------------------------- */

.cta-band__inner {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  border-radius: var(--radius-xl);
  background: var(--ink);
  color: var(--bg);
  text-align: center;
  overflow: hidden;
}

.cta-band__inner::before {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 4px;
  background: var(--brand-gradient);
}

.cta-band__title {
  color: inherit;
  font-size: clamp(1.75rem, 4vw, 2.85rem);
}

.cta-band__lead {
  max-width: 40rem;
  margin: 1rem auto 0;
  color: color-mix(in srgb, var(--bg) 72%, transparent);
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.65;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.cta-band .btn--primary {
  background: var(--bg);
  color: var(--ink);
}

.cta-band .btn--primary:hover {
  background: var(--accent);
  color: var(--accent-contrast);
}

.cta-band .btn--ghost {
  background: transparent;
  border-color: color-mix(in srgb, var(--bg) 32%, transparent);
  color: var(--bg);
}

.cta-band .btn--ghost:hover {
  border-color: var(--bg);
}

/* 7. Product pages ====================================================== */

.page-hero {
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}

.page-hero__inner {
  max-width: 46rem;
}

.page-hero__title {
  font-size: clamp(2.3rem, 5.4vw, 3.6rem);
  letter-spacing: -0.032em;
}

.page-hero__lead {
  max-width: 38rem;
  margin-top: 1.15rem;
  color: var(--ink-2);
  font-size: clamp(1.02rem, 1.7vw, 1.2rem);
  line-height: 1.65;
  text-wrap: pretty;
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.85rem;
}

.page-hero--error {
  border-bottom: 0;
  padding-block: clamp(4rem, 12vw, 8rem);
}

.breadcrumb {
  padding-top: clamp(1.25rem, 3vw, 2rem);
  color: var(--ink-3);
  font-size: 0.86rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.breadcrumb li + li::before {
  content: '/';
  margin-right: 0.4rem;
  color: var(--line-strong);
}

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

.product-hero {
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}

.product-hero__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.product-hero__identity {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.product-hero__title {
  margin-top: 0.7rem;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  letter-spacing: -0.032em;
}

.product-hero__tagline {
  margin-top: 0.5rem;
  color: var(--ink-2);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
}

.product-hero__actions {
  display: grid;
  gap: 0.85rem;
}

.product-hero__privacy {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink-3);
  font-size: 0.88rem;
}

.product-hero__privacy a {
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.product-hero__privacy a:hover {
  color: var(--accent);
}

.product-overview {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}

.product-overview__text {
  display: grid;
  gap: 1.15rem;
  color: var(--ink-2);
  font-size: 1.04rem;
  line-height: 1.75;
}

.product-specs {
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.product-specs__title {
  font-size: 0.78rem;
  font-weight: 620;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.product-specs dl {
  display: grid;
  gap: 0.85rem;
  margin: 1.15rem 0 0;
}

.product-specs dl > div {
  display: grid;
  gap: 0.15rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.product-specs dl > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.product-specs dt {
  color: var(--ink-3);
  font-size: 0.82rem;
}

.product-specs dd {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 540;
}

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.shot img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.related {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 1rem;
}

.related__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color var(--speed) var(--ease), transform var(--speed) var(--ease);
}

.related__item:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.related__text {
  display: grid;
  flex: 1;
}

.related__text strong {
  font-size: 1.02rem;
  font-weight: 600;
}

.related__text span {
  color: var(--ink-3);
  font-size: 0.9rem;
}

/* Privacy Center cards -------------------------------------------------- */

.policy-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  padding: clamp(1.35rem, 2.5vw, 1.85rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color var(--speed) var(--ease), transform var(--speed) var(--ease),
    box-shadow var(--speed) var(--ease);
}

.policy-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.policy-card__link {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.policy-card__body {
  flex: 1;
}

.policy-card__title {
  font-size: 1.3rem;
}

.policy-card__kind {
  margin-top: 0.25rem;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 540;
}

.policy-card__summary {
  margin-top: 0.8rem;
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.65;
}

.policy-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 0.86rem;
}

.policy-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--ink);
  font-weight: 560;
}

.policy-card:hover .policy-card__cta .icon {
  transform: translateX(3px);
}

.policy-card__cta .icon {
  transition: transform var(--speed) var(--ease);
}

/* 8. Legal pages ======================================================== */

.legal {
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
}

.legal-header {
  display: flex;
  align-items: flex-start;
  gap: clamp(1.25rem, 3vw, 2rem);
  margin: clamp(1.75rem, 4vw, 2.75rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  padding-bottom: clamp(1.75rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--line);
}

.legal-header__title {
  font-size: clamp(2rem, 4.6vw, 3rem);
  letter-spacing: -0.03em;
}

.legal-header__lead {
  max-width: 42rem;
  margin-top: 0.85rem;
  color: var(--ink-2);
  font-size: 1.05rem;
  line-height: 1.65;
}

.legal-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 0.84rem;
}

.legal-meta span {
  color: var(--ink-3);
}

.legal-meta time {
  font-weight: 560;
}

.legal-layout {
  display: grid;
  grid-template-columns: 15rem 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 92px;
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.legal-toc__title {
  margin-bottom: 0.85rem;
  color: var(--ink-3);
  font-size: 0.76rem;
  font-weight: 620;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.legal-toc ol {
  display: grid;
  gap: 0.15rem;
  counter-reset: toc;
}

.legal-toc a {
  display: block;
  padding: 0.32rem 0;
  color: var(--ink-2);
  font-size: 0.88rem;
  line-height: 1.45;
}

.legal-toc a span {
  color: var(--ink-3);
}

.legal-toc a:hover {
  color: var(--accent);
}

.legal-body {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  max-width: 46rem;
  /* Grid items default to min-width:auto, which would let a wide table push
     the whole page sideways instead of scrolling inside .table-scroll. */
  min-width: 0;
}

.legal-section {
  scroll-margin-top: 96px;
  /* Also a grid item (of .legal-body): let .table-scroll scroll instead of
     widening the page. */
  min-width: 0;
}

.legal-section h2 {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin-bottom: 1rem;
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
}

.legal-section__num {
  display: inline-grid;
  place-items: center;
  flex: none;
  min-width: 1.85rem;
  height: 1.85rem;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 620;
}

.legal-section h3 {
  margin-top: 1.75rem;
  font-size: 1.08rem;
  scroll-margin-top: 96px;
}

.legal-body p {
  margin-top: 0.9rem;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.75;
}

.legal-body ul {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
  padding-left: 1.25rem;
  list-style: disc;
  color: var(--ink-2);
  line-height: 1.7;
}

.legal-body li::marker {
  color: var(--line-strong);
}

/* Legal documents quote full URLs; let them break rather than widen the page
   on a narrow screen. */
.legal-body a,
.legal-body li,
.legal-body td {
  overflow-wrap: anywhere;
}

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

.legal-note,
.legal-todo {
  margin-top: 1.35rem;
  padding: 1.15rem 1.35rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  line-height: 1.7;
}

.legal-note {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  color: var(--ink-2);
}

.legal-todo {
  display: grid;
  gap: 0.35rem;
  border: 1px dashed var(--warn);
  background: var(--warn-soft);
  color: var(--ink-2);
}

.legal-todo strong {
  color: var(--warn);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.table-scroll {
  margin-top: 1.35rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.table-scroll table {
  width: 100%;
  min-width: 28rem;
  border-collapse: collapse;
  font-size: 0.93rem;
}

.table-scroll th,
.table-scroll td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  color: var(--ink-2);
}

.table-scroll th {
  background: var(--surface-2);
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

.table-scroll tr:last-child td {
  border-bottom: 0;
}

.legal-footer {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: clamp(1.75rem, 3vw, 2.5rem);
  border-top: 1px solid var(--line);
}

.legal-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.legal-footer p {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink-3);
  font-size: 0.92rem;
}

.legal-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* 9. Forms ============================================================== */

.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-layout__title {
  margin-bottom: 1.5rem;
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
}

.channel-list {
  display: grid;
  gap: 1.75rem;
}

.channel {
  display: flex;
  gap: 1rem;
}

.channel__icon {
  margin-bottom: 0;
}

.channel h2 {
  font-size: 1.05rem;
}

.channel p {
  margin: 0.3rem 0 0.5rem;
  color: var(--ink-2);
  font-size: 0.93rem;
  line-height: 1.6;
}

.channel a {
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 540;
  overflow-wrap: anywhere;
}

.channel a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.contact-note {
  margin-top: 2rem;
  padding: 1.15rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 0.92rem;
  line-height: 1.65;
}

.form {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form__field {
  display: grid;
  gap: 0.45rem;
}

.form__field label {
  font-size: 0.88rem;
  font-weight: 560;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font-size: 0.98rem;
  transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}

.form textarea {
  min-height: 9rem;
  resize: vertical;
}

.form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentcolor 50%),
    linear-gradient(135deg, currentcolor 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 1.25rem, calc(100% - 0.85rem) 1.25rem;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form input[aria-invalid='true'],
.form textarea[aria-invalid='true'] {
  border-color: var(--danger);
}

.form__error {
  color: var(--danger);
  font-size: 0.84rem;
}

.form__honey {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding-top: 0.35rem;
}

.form__note {
  color: var(--ink-3);
  font-size: 0.86rem;
}

.form__privacy a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.form__status {
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.93rem;
  line-height: 1.6;
}

.form__status--ok {
  background: var(--ok-soft);
  color: var(--ok);
}

.form__status--error {
  background: var(--warn-soft);
  color: var(--warn);
}

.form button[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.form-fallback {
  display: grid;
  gap: 1rem;
  justify-items: start;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

/* Grid and flex children shrink below their content instead of stretching the
   page. Without this a long word, a wide table or a code-like string can force
   a horizontal scrollbar on narrow screens. */
.legal-toc,
.split__body,
.split__head,
.product-overview__text,
.contact-layout__main,
.contact-layout__aside,
.featured__content,
.featured__visual,
.trust__content,
.trust__list,
.channel > div,
.related__text,
.hero__product-text,
.product-card__body,
.policy-card__body {
  min-width: 0;
}

/* Language switcher ----------------------------------------------------- */

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
}

.lang-switch__option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  color: var(--ink-3);
  font-size: 0.78rem;
  font-weight: 620;
  letter-spacing: 0.03em;
  transition: color var(--speed) var(--ease), background var(--speed) var(--ease);
}

.lang-switch__option:hover {
  color: var(--ink);
}

.lang-switch__option.is-current {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

/* In the mobile menu the control is full width and comfortably tappable. */
.lang-switch--block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  padding: 3px;
}

.lang-switch--block .lang-switch__option {
  padding-block: 0.7rem;
  font-size: 0.9rem;
}

@media (max-width: 860px) {
  .site-header__actions .lang-switch {
    display: none;
  }
}

.error-divider {
  width: 100%;
  max-width: 22rem;
  margin: clamp(2rem, 5vw, 3rem) 0;
  border: 0;
  border-top: 1px solid var(--line);
}

/* 10. Footer, motion, responsive ======================================== */

.site-footer {
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  border-top: 1px solid var(--line);
  background: var(--bg-muted);
}

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(2rem, 5vw, 4rem);
}

.site-footer__tagline {
  max-width: 24rem;
  margin: 1.1rem 0;
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.65;
}

.site-footer__mail {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink-2);
  font-size: 0.93rem;
}

.site-footer__mail:hover {
  color: var(--accent);
}

.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.site-footer__heading {
  margin-bottom: 0.9rem;
  color: var(--ink-3);
  font-size: 0.76rem;
  font-weight: 620;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.site-footer__column ul {
  display: grid;
  gap: 0.55rem;
}

.site-footer__column a {
  color: var(--ink-2);
  font-size: 0.93rem;
}

.site-footer__column a:hover {
  color: var(--accent);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 0.86rem;
}

/* Scroll reveal --------------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

[data-reveal].is-visible,
.no-js [data-reveal] {
  opacity: 1;
  transform: none;
}

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

@media (max-width: 1024px) {
  .featured,
  .trust,
  .split,
  .product-overview,
  .contact-layout,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
  }

  .legal-toc ol {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
    display: grid;
  }

  .featured__visual {
    max-width: 27rem;
  }
}

@media (max-width: 860px) {
  html {
    scroll-padding-top: 80px;
  }

  .site-nav,
  .site-header__cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .mobile-nav:not([hidden]) {
    display: grid;
    max-height: calc(100vh - 69px);
    max-height: calc(100dvh - 69px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .no-js .nav-toggle {
    display: none;
  }

  .no-js .site-header {
    position: static;
  }

  .no-js .mobile-nav[hidden] {
    display: grid !important;
    max-height: none;
    overflow: visible;
  }

  .site-footer__top {
    grid-template-columns: 1fr;
  }

  .site-footer__nav {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr));
  }
}

@media (max-width: 620px) {
  .hero__products {
    display: grid;
  }

  .hero__product {
    width: 100%;
  }

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

  .product-hero__identity {
    flex-direction: column;
    align-items: flex-start;
  }

  .featured__foot,
  .legal-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .fact {
    padding-block: 0.85rem;
  }

  .btn--lg {
    width: 100%;
  }

  .hero__actions .btn,
  .page-hero__actions .btn,
  .cta-band__actions .btn {
    flex: 1 1 100%;
  }
}

/* Preferences ----------------------------------------------------------- */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media print {
  :root {
    color-scheme: light;
    --bg: #fff;
    --bg-muted: #fff;
    --surface: #fff;
    --surface-2: #f4f4f4;
    --ink: #000;
    --ink-2: #222;
    --ink-3: #444;
    --accent: #333;
    --accent-soft: #f0f0f0;
    --accent-contrast: #fff;
    --ok: #222;
    --ok-soft: #f0f0f0;
    --warn: #333;
    --warn-soft: #f0f0f0;
    --danger: #222;
    --line: #ddd;
    --line-strong: #aaa;
    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: none;
  }

  .site-header,
  .site-footer,
  .cta-band,
  .legal-toc,
  .skip-link {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    overflow: visible !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .hero__title-accent,
  .brand__name-accent {
    background: none;
    color: #000;
  }

  .hero__glow {
    display: none;
  }

  .table-scroll {
    overflow: visible;
  }

  .table-scroll table {
    min-width: 0;
  }
}
