/* Design tokens — 1:1 from Figma variables (SW_INT_UX-UI_legacy_bridge) */
:root {
  /* colors */
  --text-ink: #082a1c;
  --text-muted: #64707a;
  --text-inverse: #ffffff;
  --text-inverse-muted: #94a3b8;
  --brand-primary: #082a1c;
  --brand-secondary: #94a3b8;
  --brand-accent: #cdff8c;
  --surface-white: #ffffff;
  --surface-page: #ffffff;
  --surface-card: #f4f7f9;
  --surface-section: #f4f7f9;
  --surface-accent: #dde3e7;
  --surface-subtle: #dde3e7;
  --border-divider: #dde3e7;

  /* radius */
  --radius-8: 8px;
  --radius-12: 12px;
  --radius-16: 16px;
  --radius-full: 999px;

  /* font */
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* layout */
  --container-w: 100%;
  --page-pad: max(100px, 5.2vw);
  --section-pad: 120px;
  --stone: #343330;
}

/* Typography classes — exact from Figma text styles (letterSpacing -4% => -0.04em, -5% => -0.05em, -3% => -0.03em) */
.h1 { font: 500 68px/72px var(--font); letter-spacing: -0.05em; }
.h2 { font: 500 54px/58px var(--font); letter-spacing: -0.04em; }
.h3 { font: 500 38px/42px var(--font); letter-spacing: -0.03em; }
.h4 { font: 500 32px/36px var(--font); letter-spacing: -0.03em; }
.h5 { font: 500 24px/28px var(--font); letter-spacing: -0.03em; }
.text-lg { font: 400 28px/32px var(--font); letter-spacing: -0.04em; }
.text-md { font: 400 20px/24px var(--font); letter-spacing: -0.04em; }
.body { font: 400 16px/20px var(--font); letter-spacing: -0.04em; }
.body-sb { font: 600 16px/20px var(--font); letter-spacing: -0.04em; }
.caption { font: 400 14px/18px var(--font); letter-spacing: -0.04em; }
.caption-sb { font: 600 14px/18px var(--font); letter-spacing: -0.04em; }
.sub { font: 400 12px/16px var(--font); letter-spacing: -0.04em; }
.sub-sb { font: 600 12px/16px var(--font); letter-spacing: -0.04em; }
.btn-text { font: 600 16px/24px var(--font); letter-spacing: -0.04em; }

/* Buttons (from Figma "button" component) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 32px; border-radius: var(--radius-12);
  font: 600 16px/24px var(--font); letter-spacing: -0.04em; text-align: center;
  text-decoration: none; cursor: pointer; border: 1px solid transparent; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .25s ease, box-shadow .25s ease;
}
/* label wipe (Lightship): on hover the label slides up and out while its twin slides in from below */
.btn-wipe { overflow: hidden; }
.btn-wipe .btn__label { position: relative; display: inline-block; white-space: nowrap; }
.btn-wipe .btn__label::before {
  content: attr(data-label);
  position: absolute; left: 0; top: 0;
  transform: translateY(100%);
  clip-path: inset(0 0 100%);
  transition: transform .3s cubic-bezier(.23, 1, .32, 1), clip-path .3s cubic-bezier(.23, 1, .32, 1);
}
.btn-wipe .btn__text {
  display: inline-block;
  clip-path: inset(0);
  transition: transform .3s cubic-bezier(.23, 1, .32, 1) .1s, clip-path .3s cubic-bezier(.23, 1, .32, 1) .1s;
}
.btn-wipe:hover .btn__text, .btn-wipe:focus-visible .btn__text { transform: translateY(-100%); clip-path: inset(100% 0 0); transition-delay: 0s; }
.btn-wipe:hover .btn__label::before, .btn-wipe:focus-visible .btn__label::before { transform: none; clip-path: inset(0); transition-delay: .1s; }
@media (prefers-reduced-motion: reduce) {
  .btn-wipe .btn__label::before, .btn-wipe .btn__text { transition: none; }
}
.btn-primary { background: var(--brand-primary); color: var(--text-inverse); }
.btn-primary:hover { background: var(--brand-accent); border-color: var(--brand-accent); color: var(--brand-primary); }
.btn-outline { background: var(--surface-white); color: var(--brand-primary); border-color: var(--brand-primary); padding: 12px 24px; }
.btn-outline:hover { background: var(--brand-accent); border-color: var(--brand-accent); color: var(--brand-primary); }
/* a demo button and its "Contact us" twin: one row on desktop, stacked full-width on phones */
.cta-pair { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
@media (max-width: 767px) {
  .cta-pair { width: 100%; flex-direction: column; align-items: stretch; }
  .cta-pair .btn { width: 100%; box-sizing: border-box; }
}

/* below 1600 the 100px gutters eat too much: 40px keeps the content wide */
@media (max-width: 1599px) { :root { --page-pad: 40px; } }
@media (max-width: 767px) { :root { --page-pad: 16px; } }
