/* CpTecknologys design system — base: reset, type, layout, focus, motion. */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
h1,
h2,
h3,
h4 {
  margin: 0 0 var(--s-3);
  line-height: var(--lh-tight);
  letter-spacing: var(--track-tight);
  font-weight: 650;
  text-wrap: balance;
}
h1 {
  font-size: var(--fs-hero);
  font-weight: 700;
}
h2 {
  font-size: var(--fs-h2);
}
h3 {
  font-size: var(--fs-h3);
  line-height: var(--lh-snug);
  letter-spacing: -0.01em;
}
p {
  margin: 0 0 var(--s-3);
  max-width: var(--measure);
  text-wrap: pretty;
}
ul,
ol {
  margin: 0 0 var(--s-3);
  padding-left: 1.25rem;
}
a {
  color: var(--primary);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
a:hover {
  color: var(--primary-hover);
}
strong {
  font-weight: 650;
}
hr {
  border: 0;
  border-top: var(--hairline);
  margin: var(--s-5) 0;
}
code {
  font-size: 0.92em;
  background: var(--surface-2);
  padding: 0.1em 0.35em;
  border-radius: 6px;
}

/* ---- Focus: always visible for keyboard users ---- */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---- Skip link ---- */
.skip-link {
  position: absolute;
  left: var(--s-3);
  top: -100px;
  z-index: 100;
  padding: var(--s-2) var(--s-3);
  background: var(--text);
  color: var(--bg);
  border-radius: var(--r-1);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: var(--s-2);
  color: var(--bg);
}

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

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--s-4);
}
.section {
  padding-block: var(--section-y);
}
.section--alt {
  background: var(--surface);
  border-block: var(--hairline);
}
.section--tight {
  padding-block: calc(var(--section-y) * 0.6);
}
.section__head {
  max-width: 44rem;
  margin-bottom: var(--s-6);
}
.section__head--center {
  margin-inline: auto;
  text-align: center;
}
.section__head--center p {
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  margin-bottom: var(--s-3);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--primary);
}
.lead {
  font-size: var(--fs-lead);
  color: var(--text-muted);
  line-height: 1.55;
}
.muted {
  color: var(--text-muted);
}
.small {
  font-size: var(--fs-small);
}

/* ---- Motion: fade + small slide, once. Only with JS on and motion allowed. ---- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
  }
  .js .reveal.is-in {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
