/* Tokens copied from docs/reference/design-system/tokens.css (Professional Blue). */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-latin.woff2?v=c940764593d0') format('woff2');
}

@font-face {
  font-family: Inter Fallback;
  src: local(Arial);
  ascent-override: 90.44%;
  descent-override: 22.52%;
  line-gap-override: 0%;
  size-adjust: 107.12%;
}

:root {
  --background: hsl(210 20% 98%);
  --foreground: hsl(213 25% 15%);
  --card: hsl(0 0% 100%);
  --muted: hsl(210 30% 96%);
  --muted-foreground: hsl(213 15% 45%);
  --popover: hsl(0 0% 100%);
  --popover-foreground: hsl(222.2 84% 4.9%);
  --primary: hsl(213 94% 32%);
  --primary-foreground: hsl(0 0% 100%);
  --secondary: hsl(213 60% 48%);
  --logo-cloud: hsl(213 60% 50%);
  --accent: hsl(24 100% 56%);
  --border: hsl(213 20% 88%);
  --input: hsl(213 20% 88%);
  --ring: hsl(213 94% 32%);
  --success: hsl(142 72% 29%);
  --danger: hsl(0 74% 42%);
  --danger-subtle: hsl(0 86% 97%);
  --success-subtle: hsl(138 76% 97%);

  --font-sans: 'Inter', 'Inter Fallback', system-ui, sans-serif;
  --font-features: 'cv01', 'ss01', 'case';
  --weight-body: 435;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-heading: 650;
  --weight-bold: 700;
  --tracking-body: -0.011em;
  --tracking-heading: -0.022em;
  --tracking-tight: -0.025em;

  --radius: 0.5rem;
  --radius-sm: calc(var(--radius) * 0.5);
  --radius-md: calc(var(--radius) * 0.75);
  --radius-xl: calc(var(--radius) * 1.5);
  --radius-2xl: calc(var(--radius) * 2);
  --shadow-xs: 0 1px 2px 0 hsl(0 0% 0% / 0.05);
  --shadow-sm: 0 1px 3px 0 hsl(0 0% 0% / 0.1), 0 1px 2px -1px hsl(0 0% 0% / 0.1);
  --shadow-md: 0 4px 6px -1px hsl(0 0% 0% / 0.1), 0 2px 4px -2px hsl(0 0% 0% / 0.1);
  --shadow-lg: 0 10px 15px -3px hsl(0 0% 0% / 0.1), 0 4px 6px -4px hsl(0 0% 0% / 0.1);
  --shadow-xl: 0 20px 25px -5px hsl(0 0% 0% / 0.1), 0 8px 10px -6px hsl(0 0% 0% / 0.1);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --control-height: 2.25rem;
  --control-height-lg: 2.5rem;

  --cycle: 16s;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  border-color: var(--border);
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-weight: var(--weight-body);
  font-optical-sizing: auto;
  font-feature-settings: var(--font-features);
  letter-spacing: var(--tracking-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: var(--weight-heading);
  letter-spacing: var(--tracking-heading);
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: var(--primary);
}

svg.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: var(--primary-foreground);
}

.skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

/* Buttons mirror ui/button.tsx */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  height: var(--control-height);
  padding: 0.5rem 1rem;
  border: 0;
  border-radius: var(--radius-md);
  font: inherit;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: var(--weight-medium);
  letter-spacing: inherit;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 150ms var(--ease),
    color 150ms var(--ease),
    box-shadow 150ms var(--ease);
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 1px var(--ring);
}

.btn:disabled {
  pointer-events: none;
  opacity: 0.5;
}

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

.btn-primary:hover {
  background: color-mix(in oklab, var(--primary) 90%, transparent);
}

.btn-outline {
  background: var(--background);
  color: var(--foreground);
  border: 1px solid var(--input);
  box-shadow: var(--shadow-sm);
}

.btn-ghost {
  background: transparent;
  color: var(--foreground);
}

.btn-outline:hover,
.btn-ghost:hover {
  background: color-mix(in oklab, var(--accent) 50%, transparent);
  color: var(--foreground);
}

.btn-lg {
  height: var(--control-height-lg);
  padding: 0 2rem;
}

.btn-icon {
  width: var(--control-height);
  padding: 0;
}

/* Header mirrors layouts/AuthLayout.tsx */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: var(--card);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}

/* The app's public pages frame header and footer in Tailwind's `container mx-auto px-4`: these steps and 1rem, so neither moves a pixel between the website and the login page. */
.site-header .container,
.site-footer .container {
  max-width: none;
  padding-inline: 1rem;
}

@media (min-width: 40rem) {
  .site-header .container,
  .site-footer .container {
    max-width: 40rem;
  }
}

@media (min-width: 48rem) {
  .site-header .container,
  .site-footer .container {
    max-width: 48rem;
  }
}

@media (min-width: 64rem) {
  .site-header .container,
  .site-footer .container {
    max-width: 64rem;
  }
}

@media (min-width: 80rem) {
  .site-header .container,
  .site-footer .container {
    max-width: 80rem;
  }
}

@media (min-width: 96rem) {
  .site-header .container,
  .site-footer .container {
    max-width: 96rem;
  }
}

.brand {
  display: flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
  transition: opacity 150ms var(--ease);
}

.brand:hover {
  opacity: 0.8;
}

.brand-logo {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
}

.logo-cloud {
  fill: var(--logo-cloud);
  opacity: 0.4;
}

.logo-shield {
  fill: var(--primary);
}

.logo-check {
  fill: none;
  stroke: #fff;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-name {
  display: block;
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: var(--weight-bold);
  color: var(--primary);
}

.brand-tagline {
  display: block;
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--muted-foreground);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Language menu mirrors i18n/LanguageSwitcher.tsx */
.lang {
  position: relative;
}

.lang > summary .icon {
  width: 1rem;
  height: 1rem;
}

.lang > summary {
  list-style: none;
}

.lang > summary::-webkit-details-marker {
  display: none;
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.25rem);
  width: 12rem;
  margin: 0;
  padding: 0.25rem;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--popover);
  color: var(--popover-foreground);
  box-shadow: var(--shadow-md);
  animation: menu-in 150ms var(--ease);
}

.lang-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.375rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: inherit;
  text-decoration: none;
}

.lang-item:hover,
.lang-item:focus-visible,
.lang-item[aria-current='page'] {
  outline: none;
  background: color-mix(in oklab, var(--accent) 50%, transparent);
}

.lang-item > span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-item .icon {
  width: 1rem;
  height: 1rem;
  color: var(--primary);
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.97);
  }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    to bottom right,
    color-mix(in oklab, var(--primary) 5%, transparent),
    var(--background),
    color-mix(in oklab, var(--accent) 5%, transparent)
  );
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  will-change: transform;
}

.hero-glow-1 {
  width: 32rem;
  height: 32rem;
  right: -6rem;
  top: -8rem;
  background: color-mix(in oklab, var(--secondary) 22%, transparent);
  animation: drift 18s ease-in-out infinite alternate;
}

.hero-glow-2 {
  width: 24rem;
  height: 24rem;
  left: 30%;
  bottom: -12rem;
  background: color-mix(in oklab, var(--accent) 14%, transparent);
  animation: drift 22s ease-in-out -6s infinite alternate-reverse;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 3rem;
  align-items: center;
  padding-block: 3.5rem 2.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 9999px;
  background: var(--card);
  font-size: 0.8125rem;
  font-weight: var(--weight-medium);
  color: var(--muted-foreground);
  box-shadow: var(--shadow-xs);
}

.pulse-dot {
  position: relative;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--success);
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--success);
  animation: ping 2s var(--ease) infinite;
}

.hero h1 {
  margin-top: 1.25rem;
  font-size: clamp(2.25rem, 1.4rem + 3.4vw, 3.75rem);
  line-height: 1.05;
  font-weight: var(--weight-bold);
  letter-spacing: -0.035em;
}

.hero h1 em {
  font-style: normal;
  color: var(--primary);
}

.lead {
  margin-top: 1.25rem;
  max-width: 34rem;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}

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

/* Hero scene: one consultation running through its four stages */
.scene [data-label]::before {
  content: attr(data-label);
}

.scene {
  position: relative;
  max-width: 28rem;
  width: 100%;
  margin-inline: auto;
  padding: 2.75rem 0;
}

.device {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  background: var(--card);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.device-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.8125rem;
  font-weight: var(--weight-medium);
}

.dots {
  display: flex;
  gap: 0.3rem;
}

.dots span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--border);
}

.device-title {
  flex: 1;
  color: var(--muted-foreground);
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  background: var(--success-subtle);
  color: var(--success);
  font-size: 0.75rem;
}

.rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 1.25rem 0.5rem 0.25rem;
  list-style: none;
  font-size: 0.75rem;
  text-align: center;
  color: var(--muted-foreground);
}

.rail::before,
.rail::after {
  content: '';
  position: absolute;
  top: calc(1.25rem + 0.4375rem);
  left: 12.5%;
  height: 2px;
  background: var(--border);
}

.rail::before {
  right: 12.5%;
}

.rail::after {
  width: 75%;
  background: var(--primary);
  transform-origin: left;
  animation: rail-fill var(--cycle) var(--ease) infinite both;
}

.rail li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.375rem;
}

.rail-dot {
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--card);
}

.rail li:first-child .rail-dot {
  border-color: var(--primary);
  background: var(--primary);
}

.rail li:nth-child(1) .rail-dot {
  animation: node-1 var(--cycle) linear infinite both;
}

.rail li:nth-child(2) .rail-dot {
  animation: node-2 var(--cycle) linear infinite both;
}

.rail li:nth-child(3) .rail-dot {
  animation: node-3 var(--cycle) linear infinite both;
}

.rail li:nth-child(4) .rail-dot {
  animation: node-4 var(--cycle) linear infinite both;
}

.stage-area {
  position: relative;
  height: 15rem;
  overflow: hidden;
}

/* No animation fades text: contrast checkers judge whatever frame they catch, and half-transparent text fails. */
.panel {
  position: absolute;
  inset: 0;
  padding: 1.25rem 1.25rem 1.5rem;
  visibility: hidden;
  animation: panel var(--cycle) var(--ease) infinite;
}

.panel:first-child {
  visibility: visible;
}

.panel-2 {
  animation-delay: calc(var(--cycle) / 4);
}

.panel-3 {
  animation-delay: calc(var(--cycle) / 2);
}

.panel-4 {
  animation-delay: calc(var(--cycle) * 3 / 4);
}

.panel-kicker {
  font-size: 0.6875rem;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
}

.panel-title {
  margin-top: 0.25rem;
  font-size: 1.125rem;
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
}

/* Stage 1: pension gap */
.gap-bar {
  display: flex;
  height: 2rem;
  margin-top: 1.25rem;
  border-radius: var(--radius-md);
  background: var(--muted);
  overflow: hidden;
}

.seg {
  flex: none;
  height: 100%;
  width: var(--w);
  transform-origin: left;
  animation: grow var(--cycle) var(--ease) infinite both;
}

.seg-1 {
  --w: 46%;
  background: var(--primary);
  animation-delay: 0.3s;
}

.seg-2 {
  --w: 20%;
  background: var(--secondary);
  animation-delay: 0.9s;
}

.seg-3 {
  --w: 12%;
  background: color-mix(in oklab, var(--secondary) 45%, white);
  animation-delay: 1.4s;
}

.seg-gap {
  --w: 22%;
  background: repeating-linear-gradient(
    -45deg,
    color-mix(in oklab, var(--accent) 45%, transparent) 0 6px,
    color-mix(in oklab, var(--accent) 18%, transparent) 6px 12px
  );
  animation-delay: 2s;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.sw {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 2px;
}

.sw-1 {
  background: var(--primary);
}

.sw-2 {
  background: var(--secondary);
}

.sw-3 {
  background: color-mix(in oklab, var(--secondary) 45%, white);
}

.sw-gap {
  background: color-mix(in oklab, var(--accent) 45%, transparent);
}

.gap-callout {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 1rem;
  padding: 0.625rem 0.875rem;
  border: 1px dashed color-mix(in oklab, var(--accent) 70%, transparent);
  border-radius: var(--radius-md);
  background: color-mix(in oklab, var(--accent) 6%, transparent);
  font-size: 0.8125rem;
  animation: fade-up var(--cycle) var(--ease) 2.6s infinite both;
}

.gap-callout strong {
  font-size: 1rem;
  font-weight: var(--weight-semibold);
  font-variant-numeric: tabular-nums;
}

/* Stage 2: offers */
.offers,
.checks {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.offer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  animation: slide-in var(--cycle) var(--ease) infinite both;
}

.offer:nth-child(1) {
  animation-delay: calc(var(--cycle) / 4 + 0.3s);
}

.offer:nth-child(2) {
  animation:
    slide-in var(--cycle) var(--ease) calc(var(--cycle) / 4 + 0.6s) infinite both,
    pick var(--cycle) var(--ease) calc(var(--cycle) / 4) infinite both;
}

.offer:nth-child(3) {
  animation-delay: calc(var(--cycle) / 4 + 0.9s);
}

.offer-name {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
  min-width: 0;
}

.badge {
  padding: 0.0625rem 0.5rem;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.6875rem;
  font-weight: var(--weight-semibold);
  animation: pop var(--cycle) var(--ease) calc(var(--cycle) / 4 + 1.8s) infinite both;
}

/* Stage 3: checks */
.check {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
}

.tick {
  display: grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-foreground);
  animation: tick var(--cycle) var(--ease) infinite both;
}

.tick .icon {
  width: 0.75rem;
  height: 0.75rem;
  stroke-width: 3;
}

.check:nth-child(1) .tick {
  animation-delay: calc(var(--cycle) / 2 + 0.5s);
}

.check:nth-child(2) .tick {
  animation-delay: calc(var(--cycle) / 2 + 1.1s);
}

.check:nth-child(3) .tick {
  animation-delay: calc(var(--cycle) / 2 + 1.7s);
}

.check:nth-child(4) .tick {
  animation-delay: calc(var(--cycle) / 2 + 2.3s);
}

/* Stage 4: documented contract */
.seal {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  height: 100%;
  align-content: center;
  text-align: center;
}

.seal-mark {
  position: relative;
  width: 6rem;
  height: 6rem;
  animation: pop var(--cycle) var(--ease) calc(var(--cycle) * 3 / 4 + 0.2s) infinite both;
}

.seal-mark::before {
  content: '';
  position: absolute;
  inset: 0.75rem;
  border-radius: 50%;
  border: 2px solid var(--primary);
  animation: ring var(--cycle) var(--ease) calc(var(--cycle) * 3 / 4 + 0.9s) infinite both;
}

.seal-mark svg {
  position: relative;
  width: 100%;
  height: 100%;
}

.seal-mark .logo-check {
  stroke-dasharray: 24;
  animation: draw var(--cycle) var(--ease) calc(var(--cycle) * 3 / 4 + 0.6s) infinite both;
}

.hash {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* Trust chips: one group per stage, shown and hidden with its panel */
.chip-groups {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.chip-group {
  position: absolute;
  inset: 0;
  visibility: hidden;
  animation: chips var(--cycle) var(--ease) infinite;
}

.chip-group-1 {
  visibility: visible;
}

.chip-group-2 {
  animation-delay: calc(var(--cycle) / 4);
}

.chip-group-3 {
  animation-delay: calc(var(--cycle) / 2);
}

.chip-group-4 {
  animation-delay: calc(var(--cycle) * 3 / 4);
}

.chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 9999px;
  background: var(--card);
  box-shadow: var(--shadow-md);
  font-size: 0.75rem;
  font-weight: var(--weight-medium);
  white-space: nowrap;
  animation: float 6s ease-in-out infinite alternate;
}

.chip .icon {
  width: 0.875rem;
  height: 0.875rem;
  color: var(--primary);
}

.slot-1 {
  top: 0;
  left: 1rem;
}

.slot-2 {
  top: 0.5rem;
  right: 1rem;
  animation-delay: -2s;
}

.slot-3 {
  bottom: 0.5rem;
  left: 1.5rem;
  animation-delay: -4s;
}

.slot-4 {
  bottom: 0;
  right: 0.75rem;
  animation-delay: -1s;
}

/* Sections */
.section {
  padding-block: 4.5rem;
}

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

.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section-head h2,
.contact-intro h2 {
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.25rem);
  line-height: 1.15;
}

.section-head p,
.contact-intro > p {
  margin-top: 0.75rem;
  font-size: 1.0625rem;
  color: var(--muted-foreground);
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.products {
  display: grid;
  gap: 1.25rem;
}

.product {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  transition:
    transform 200ms var(--ease),
    box-shadow 200ms var(--ease),
    border-color 200ms var(--ease);
}

.product:hover {
  transform: translateY(-3px);
  border-color: color-mix(in oklab, var(--primary) 35%, var(--border));
  box-shadow: var(--shadow-lg);
}

.product-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-md);
  background: color-mix(in oklab, var(--primary) 9%, transparent);
  color: var(--primary);
}

.product h3 {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
}

.product-for {
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.product-text {
  margin-top: 0.875rem;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin: auto 0 0;
  padding: 1.25rem 0 0;
  list-style: none;
}

.tags li {
  padding: 0.125rem 0.625rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--muted);
  font-size: 0.75rem;
  font-weight: var(--weight-medium);
}

/* AI consulting: a dark band in the brand blue, in which orange marks the human and nothing else. */
.section-ai {
  --ai-ink: hsl(214 70% 13%);
  --ai-text: hsl(210 40% 98%);
  --ai-muted: hsl(213 30% 78%);
  --ai-line: hsl(0 0% 100% / 0.12);
  --ai-glass: hsl(0 0% 100% / 0.045);
  --ai-warm: hsl(30 100% 70%);
  --ai-glow: hsl(205 90% 72%);
  --ai-cycle: 4s;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: 5rem;
  color: var(--ai-text);
  background:
    radial-gradient(60rem 30rem at 85% 0%, hsl(213 90% 38% / 0.55), transparent 60%),
    radial-gradient(40rem 24rem at 0% 100%, hsl(24 100% 56% / 0.1), transparent 60%),
    linear-gradient(160deg, var(--ai-ink), hsl(213 80% 22%));
}

.ai-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(hsl(0 0% 100% / 0.09) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 20%, transparent 75%);
}

.ai-backdrop::before {
  content: '';
  position: absolute;
  width: 28rem;
  height: 28rem;
  right: 8%;
  top: 18%;
  border-radius: 50%;
  background: hsl(213 90% 55% / 0.2);
  filter: blur(80px);
  will-change: transform;
  animation: drift 20s ease-in-out infinite alternate;
}

.section-ai :focus-visible {
  outline-color: var(--ai-glow);
}

.ai-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.ai-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3125rem 0.875rem;
  border: 1px solid hsl(0 0% 100% / 0.15);
  border-radius: 9999px;
  background: hsl(0 0% 100% / 0.06);
  font-size: 0.8125rem;
  font-weight: var(--weight-medium);
  color: var(--ai-muted);
}

.ai-kicker .icon {
  width: 1rem;
  height: 1rem;
  color: var(--ai-glow);
}

.section-ai h2 {
  margin-top: 1.25rem;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  line-height: 1.1;
  font-weight: var(--weight-bold);
  letter-spacing: -0.03em;
}

.section-ai h2 em {
  display: block;
  font-style: normal;
  background: linear-gradient(90deg, hsl(24 100% 62%), hsl(40 100% 68%));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ai-lead {
  margin-top: 1.25rem;
  max-width: 36rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ai-muted);
}

.btn-inverse {
  background: var(--card);
  color: var(--primary);
  box-shadow: 0 8px 24px -10px hsl(213 90% 4% / 0.7);
}

.btn-inverse:hover {
  background: hsl(213 60% 94%);
}

.btn-inverse:focus-visible {
  box-shadow:
    0 0 0 2px var(--ai-ink),
    0 0 0 4px var(--ai-glow);
}

.ai-proof {
  display: flex;
  gap: 0.5rem;
  max-width: 34rem;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ai-muted);
}

.ai-proof .icon {
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.125rem;
  color: var(--ai-glow);
}

.ai-loop {
  padding: 1.75rem;
  border: 1px solid var(--ai-line);
  border-radius: var(--radius-2xl);
  background: var(--ai-glass);
  box-shadow: 0 30px 60px -30px hsl(214 80% 5% / 0.8);
}

.ai-loop-title {
  font-size: 0.75rem;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ai-muted);
}

.ai-flow {
  position: relative;
  display: grid;
  gap: 1.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.ai-step:not(:last-child)::before,
.ai-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: calc(1.375rem - 1px);
  top: 2.75rem;
  bottom: -1.5rem;
  width: 2px;
}

.ai-step:not(:last-child)::before {
  background: var(--ai-line);
}

.ai-step:not(:last-child)::after {
  background: linear-gradient(to bottom, transparent, var(--ai-glow), transparent) no-repeat;
  background-size: 100% 60%;
  background-position: 0 -150%;
  animation: ai-pulse var(--ai-cycle) linear infinite;
}

.ai-step:nth-child(2)::after {
  animation-delay: 1.33s;
}

.ai-step:nth-child(3)::after {
  animation-delay: 2.67s;
}

.ai-step {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.ai-node {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid hsl(0 0% 100% / 0.18);
  border-radius: 50%;
  background: hsl(214 65% 17%);
  color: hsl(213 70% 82%);
  animation: ai-node var(--ai-cycle) linear infinite;
}

/* Each node lights up as the pulse reaches it. */
.ai-step:nth-child(1) .ai-node {
  animation-delay: -0.32s;
}

.ai-step:nth-child(2) .ai-node {
  animation-delay: 0.88s;
}

.ai-step:nth-child(3) .ai-node {
  animation-delay: 2.21s;
}

.ai-step:nth-child(4) .ai-node {
  animation-delay: 3.55s;
}

.ai-step-human .ai-node {
  border-color: transparent;
  background: linear-gradient(135deg, hsl(24 100% 58%), hsl(40 100% 64%));
  color: var(--ai-ink);
  box-shadow: 0 0 0 6px hsl(24 100% 56% / 0.15);
  animation-name: ai-node-human;
}

.ai-step-body {
  display: grid;
  gap: 0.25rem;
  padding-top: 0.125rem;
}

.ai-step-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-weight: var(--weight-semibold);
}

.ai-step-text {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ai-muted);
}

.ai-badge {
  padding: 0.0625rem 0.5rem;
  border: 1px solid hsl(24 100% 56% / 0.45);
  border-radius: 9999px;
  background: hsl(24 100% 56% / 0.14);
  font-size: 0.6875rem;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ai-warm);
}

.ai-services {
  display: grid;
  gap: 1.25rem;
  margin: 3.5rem 0 0;
  padding: 0;
  list-style: none;
}

.ai-service {
  position: relative;
  padding: 1.5rem;
  border: 1px solid var(--ai-line);
  border-radius: var(--radius-xl);
  background: var(--ai-glass);
  transition:
    transform 200ms var(--ease),
    border-color 200ms var(--ease),
    background-color 200ms var(--ease);
}

.ai-service:hover {
  transform: translateY(-3px);
  border-color: hsl(205 90% 72% / 0.45);
  background: hsl(0 0% 100% / 0.07);
}

.ai-service-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: var(--ai-text);
  box-shadow: 0 8px 20px -8px hsl(213 90% 50% / 0.7);
}

.ai-service-index {
  position: absolute;
  top: 1.125rem;
  right: 1.25rem;
  font-size: 2.25rem;
  font-weight: var(--weight-bold);
  line-height: 1;
  letter-spacing: -0.04em;
  color: hsl(0 0% 100% / 0.08);
}

.ai-service h3 {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
}

.ai-service p {
  margin-top: 0.625rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ai-muted);
}

@keyframes ai-pulse {
  0% {
    background-position: 0 -150%;
  }
  30%,
  100% {
    background-position: 0 250%;
  }
}

@keyframes ai-node {
  0%,
  20%,
  100% {
    box-shadow: 0 0 0 0 hsl(213 90% 60% / 0);
  }
  8% {
    box-shadow: 0 0 0 6px hsl(213 90% 60% / 0.25);
  }
}

@keyframes ai-node-human {
  0%,
  20%,
  100% {
    box-shadow: 0 0 0 6px hsl(24 100% 56% / 0.15);
  }
  8% {
    box-shadow: 0 0 0 10px hsl(24 100% 56% / 0.3);
  }
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.person {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.person-photo {
  display: block;
  width: 8.5rem;
  height: 8.5rem;
  flex-shrink: 0;
  border: 4px solid var(--card);
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 18%;
  box-shadow: var(--shadow-lg);
}

.person-role {
  font-size: 0.75rem;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
}

.person-name {
  margin-top: 0.25rem;
  font-size: 1.25rem;
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
}

.contact-lines {
  display: grid;
  gap: 0.5rem;
  margin: 0.875rem 0 0;
  padding: 0;
  list-style: none;
}

.contact-lines li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.contact-lines .icon {
  color: var(--primary);
}

.contact-lines a {
  color: inherit;
  text-underline-offset: 3px;
}

.contact-card {
  padding: 1.5rem;
}

.nojs-notice {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background: var(--muted);
  font-size: 0.875rem;
}

.form-grid {
  display: grid;
  gap: 1.25rem;
}

.form-field {
  display: grid;
  gap: 0.5rem;
  align-content: start;
}

.form-field label {
  font-size: 0.875rem;
  line-height: 1;
  font-weight: var(--weight-medium);
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--input);
  border-radius: var(--radius-md);
  background: var(--background);
  padding: 0.5rem 0.75rem;
  font: inherit;
  font-size: 1rem;
  line-height: 1.25rem;
  color: var(--foreground);
  box-shadow: var(--shadow-xs);
}

.form-field input {
  height: var(--control-height-lg);
}

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

.form-field ::placeholder {
  color: var(--muted-foreground);
}

.form-field input:focus-visible,
.form-field textarea:focus-visible {
  outline: none;
  box-shadow: 0 0 0 1px var(--ring);
}

.form-field [aria-invalid='true'] {
  outline: 2px solid var(--danger);
  outline-offset: 2px;
}

.field-error {
  font-size: 0.8125rem;
  color: var(--danger);
}

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

.form-submit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

/* The widget appears only when Cloudflare asks the visitor to interact; until then it takes no room. */
.turnstile:empty {
  display: none;
}

#form-status {
  font-size: 0.875rem;
}

#form-status.success {
  color: var(--success);
}

#form-status.error {
  color: var(--danger);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--card);
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--muted-foreground);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
}

.footer-row nav {
  display: flex;
  gap: 1.5rem;
}

.footer-row a {
  color: inherit;
  text-decoration: none;
}

.footer-row a:hover {
  color: var(--foreground);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Legal pages and 404 */
.legal {
  padding-block: 3rem 4.5rem;
}

.prose {
  max-width: 48rem;
}

.prose h1 {
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.25rem);
  line-height: 1.15;
}

.prose h2 {
  margin-top: 2.25rem;
  font-size: 1.25rem;
  line-height: 1.4;
}

.prose h3 {
  font-size: 1rem;
  font-weight: var(--weight-semibold);
}

.prose p,
.prose ul,
.prose address {
  margin-top: 0.75rem;
  line-height: 1.7;
}

.prose ul {
  padding-left: 1.25rem;
}

.prose address {
  font-style: normal;
}

.prose .muted {
  margin-top: 0.5rem;
  color: var(--muted-foreground);
}

.addresses {
  display: grid;
  gap: 1.5rem;
  margin-top: 1rem;
}

.not-found {
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 6rem;
}

.not-found .code {
  font-size: 4rem;
  font-weight: var(--weight-bold);
  letter-spacing: -0.04em;
  color: var(--primary);
}

.not-found p {
  margin-top: 0.5rem;
  color: var(--muted-foreground);
}

.not-found .cta-row {
  justify-content: center;
}

@media (min-width: 640px) {
  .container {
    padding-inline: 1.5rem;
  }

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

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

  .ai-services {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-field-wide {
    grid-column: 1 / -1;
  }

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

  .contact-card {
    padding: 2rem;
  }
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 4rem;
    padding-block: 5rem 3rem;
  }

  .contact-grid {
    grid-template-columns: 2fr 3fr;
    gap: 4rem;
  }

  .section-ai {
    padding-block: 6rem;
  }

  .ai-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
  }

  .ai-services {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .products {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 520px) {
  .brand-tagline {
    display: none;
  }

  .scene {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-block: 0;
  }

  .chip-groups {
    position: relative;
    order: 1;
    display: grid;
  }

  .chip-group {
    position: static;
    grid-area: 1 / 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: flex-start;
    gap: 0.5rem;
  }

  .chip {
    position: static;
    animation: none;
  }

  .person {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .person-photo {
    width: 7rem;
    height: 7rem;
  }
}

@media (max-width: 380px) {
  .container {
    padding-inline: 0.75rem;
  }

  .brand-name {
    font-size: 1rem;
  }

  .header-actions .btn-primary {
    padding-inline: 0.75rem;
  }

  .panel {
    padding-inline: 1rem;
  }
}

/* Keyframes run on one shared cycle; each stage owns a quarter of it and resets while hidden. */
/* A stage leaves while the next one enters, so the screen is never empty. */
@keyframes panel {
  0% {
    visibility: visible;
    transform: translateX(100%);
  }
  3%,
  25% {
    visibility: visible;
    transform: none;
  }
  28% {
    visibility: visible;
    transform: translateX(-100%);
  }
  28.1%,
  100% {
    visibility: hidden;
    transform: translateX(-100%);
  }
}

@keyframes chips {
  0% {
    visibility: visible;
    filter: blur(6px);
    transform: translateY(8px);
  }
  3%,
  22% {
    visibility: visible;
    filter: none;
    transform: none;
  }
  25% {
    visibility: visible;
    filter: blur(6px);
    transform: translateY(-8px);
  }
  25.1%,
  100% {
    visibility: hidden;
  }
}

@keyframes grow {
  0% {
    transform: scaleX(0);
  }
  6%,
  88% {
    transform: none;
  }
  89%,
  100% {
    transform: scaleX(0);
  }
}

@keyframes fade-up {
  0% {
    visibility: hidden;
    filter: blur(6px);
    transform: translateY(6px);
  }
  4%,
  88% {
    visibility: visible;
    filter: none;
    transform: none;
  }
  89%,
  100% {
    visibility: hidden;
  }
}

@keyframes slide-in {
  0% {
    visibility: hidden;
    filter: blur(6px);
    transform: translateX(16px);
  }
  4%,
  88% {
    visibility: visible;
    filter: none;
    transform: none;
  }
  89%,
  100% {
    visibility: hidden;
  }
}

@keyframes pick {
  0%,
  12% {
    border-color: var(--border);
    background: transparent;
    box-shadow: none;
  }
  15%,
  88% {
    border-color: var(--primary);
    background: color-mix(in oklab, var(--primary) 6%, transparent);
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary) 12%, transparent);
  }
  89%,
  100% {
    border-color: var(--border);
    background: transparent;
    box-shadow: none;
  }
}

@keyframes pop {
  0% {
    visibility: hidden;
    transform: scale(0.6);
  }
  3% {
    visibility: visible;
    transform: scale(1.08);
  }
  5%,
  88% {
    visibility: visible;
    transform: scale(1);
  }
  89%,
  100% {
    visibility: hidden;
  }
}

@keyframes tick {
  0% {
    background: var(--muted);
    color: transparent;
    transform: scale(0.7);
  }
  3%,
  88% {
    background: var(--primary);
    color: var(--primary-foreground);
    transform: scale(1);
  }
  89%,
  100% {
    background: var(--muted);
    color: transparent;
  }
}

@keyframes draw {
  0% {
    stroke-dashoffset: 24;
  }
  5%,
  88% {
    stroke-dashoffset: 0;
  }
  89%,
  100% {
    stroke-dashoffset: 24;
  }
}

@keyframes ring {
  0% {
    opacity: 0.8;
    transform: scale(0.8);
  }
  8%,
  100% {
    opacity: 0;
    transform: scale(1.6);
  }
}

@keyframes rail-fill {
  0% {
    transform: scaleX(0);
  }
  25% {
    transform: scaleX(0.3333);
  }
  50% {
    transform: scaleX(0.6667);
  }
  75%,
  98% {
    transform: scaleX(1);
  }
  100% {
    transform: scaleX(0);
  }
}

@keyframes node-1 {
  0%,
  98% {
    border-color: var(--primary);
    background: var(--primary);
  }
}

@keyframes node-2 {
  0%,
  24% {
    border-color: var(--border);
    background: var(--card);
  }
  26%,
  98% {
    border-color: var(--primary);
    background: var(--primary);
  }
}

@keyframes node-3 {
  0%,
  49% {
    border-color: var(--border);
    background: var(--card);
  }
  51%,
  98% {
    border-color: var(--primary);
    background: var(--primary);
  }
}

@keyframes node-4 {
  0%,
  74% {
    border-color: var(--border);
    background: var(--card);
  }
  76%,
  98% {
    border-color: var(--primary);
    background: var(--primary);
  }
}

@keyframes float {
  to {
    transform: translateY(-8px);
  }
}

@keyframes drift {
  to {
    transform: translate(-3rem, 2rem) scale(1.1);
  }
}

@keyframes ping {
  75%,
  100% {
    opacity: 0;
    transform: scale(2.4);
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .rail::after {
    transform: scaleX(0);
  }
}
