/* ============================================================
   Atypisch — Components v2
   Based on design system: ontwerp/Atypisch Design System/components.css
   ============================================================ */

:root {
  --ax2-rule:        #1f2937;
  --ax2-rule-soft:   #e5e7eb;
  --ax2-ink:         #0a0f1a;
  --ax2-ink-soft:    #4b5563;
  --ax2-ink-faint:   #9ca3af;
  --ax2-surface:     #ffffff;
  --ax2-paper:       #fafaf7;
  --ax2-tint:        #f1efe9;
  --ax2-accent:      #14b8a6;
  --ax2-accent-warm: #d81b60;

  --ax2-radius-xs: 4px;
  --ax2-radius-sm: 6px;
  --ax2-radius:    10px;
  --ax2-radius-lg: 16px;

  --ax2-shadow-card:  0 1px 0 rgba(15,23,42,0.04), 0 6px 24px -16px rgba(15,23,42,0.18);
  --ax2-shadow-hover: 0 1px 0 rgba(15,23,42,0.06), 0 18px 40px -22px rgba(15,23,42,0.28);
}

/* ── RESET & PAGE ── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--atyp-font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ax2-ink-soft);
  background: var(--ax2-paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── TYPE ── */
.ax2-display {
  font-family: var(--atyp-font-hero);
  font-weight: 700;
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
  letter-spacing: -0.035em;
  line-height: 0.98;
  color: var(--ax2-ink);
  margin: 0;
}
.ax2-h1 {
  font-family: var(--atyp-font-hero);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  letter-spacing: -0.025em;
  line-height: 1.02;
  color: var(--ax2-ink);
  margin: 0;
}
.ax2-h2 {
  font-family: var(--atyp-font-heading);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: -0.018em;
  line-height: 1.1;
  color: var(--ax2-ink);
  margin: 0;
}
.ax2-h2--narrow { max-width: 22ch; }
.ax2-h2--mid    { max-width: none; white-space: nowrap; }
.ax2-h3 {
  font-family: var(--atyp-font-heading);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.012em;
  color: var(--ax2-ink);
  margin: 0;
}
.ax2-lead {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.5;
  color: var(--ax2-ink-soft);
  max-width: 42rem;
  margin: 0;
}
.ax2-body { font-size: 1rem; line-height: 1.6; color: var(--ax2-ink-soft); margin: 0; }
.ax2-body--narrow { max-width: 38rem; }
.ax2-body--mt { margin-top: 14px; }
.ax2-body--zero { margin: 0; }
.ax2-small { font-size: 0.875rem; line-height: 1.5; color: var(--ax2-ink-soft); margin: 0; }

/* ── MARKER ── */
.ax2-marker {
  font-family: var(--atyp-font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ax2-ink-faint);
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.ax2-marker::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}
.ax2-marker--light { color: rgba(255,255,255,0.5); }
.ax2-marker--mb { margin-bottom: 8px; }

.ax2-rule-gradient {
  height: 2px;
  background: var(--atyp-logo-gradient);
  border-radius: 2px;
  width: 56px;
}

/* ── LAYOUT ── */
.ax2-shell { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.ax2-section { padding: 96px 0; border-top: 1px solid var(--ax2-rule-soft); }
.ax2-section:first-of-type { border-top: 0; }
.ax2-section--paper { background: var(--ax2-paper); }
.ax2-section--tint  { background: var(--ax2-tint); }
.ax2-section--ink   { background: var(--ax2-ink); color: rgba(255,255,255,0.78); }
.ax2-section--ink .ax2-h1,
.ax2-section--ink .ax2-h2,
.ax2-section--ink .ax2-h3,
.ax2-section--ink .ax2-display { color: #fff; }
.ax2-section--ink .ax2-lead   { color: rgba(255,255,255,0.7); }
.ax2-section--ink .ax2-marker { color: rgba(255,255,255,0.5); }

/* ── BUTTONS ── */
.ax2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--ax2-radius);
  font-family: var(--atyp-font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ax2-ink);
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.ax2-btn:focus-visible { outline: 2px solid var(--ax2-accent); outline-offset: 3px; }
.ax2-btn--solid { background: var(--ax2-ink); color: #fff; border-color: var(--ax2-ink); }
.ax2-btn--solid:hover { background: #1a2332; color: #fff; }
.ax2-btn--outline { background: transparent; color: var(--ax2-ink); border-color: var(--ax2-rule); }
.ax2-btn--outline:hover { background: var(--ax2-ink); color: #fff; }
.ax2-btn--ghost { background: transparent; color: var(--ax2-ink); border-color: var(--ax2-rule-soft); }
.ax2-btn--ghost:hover { border-color: var(--ax2-rule); }
.ax2-btn--accent { background: var(--ax2-accent); color: #051a18; border-color: var(--ax2-accent); }
.ax2-btn--accent:hover { background: #0d9488; color: #fff; border-color: #0d9488; }
.ax2-btn--solid-white { background: #fff; color: var(--ax2-ink); border-color: #fff; }
.ax2-btn--solid-white:hover { background: rgba(255,255,255,0.92); }
.ax2-btn--outline-white { color: #fff; border-color: rgba(255,255,255,0.3); }
.ax2-btn--outline-white:hover { border-color: #fff; background: rgba(255,255,255,0.04); }

/* ── LINK ── */
.ax2-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--atyp-font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ax2-ink);
  text-decoration: none;
  padding-bottom: 3px;
}
.ax2-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.16);
  transform-origin: left;
  transition: transform 220ms cubic-bezier(0.2, 0.75, 0.2, 1);
}
.ax2-link:hover::after { transform: scaleX(1); }
.ax2-link--white { color: #fff; }
.ax2-link__arrow {
  display: inline-block;
  transition: transform 220ms cubic-bezier(0.2, 0.75, 0.2, 1);
}
.ax2-link:hover .ax2-link__arrow { transform: translateX(4px); }

/* ── TAGS ── */
.ax2-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 5px;
  border: 1px solid var(--ax2-rule-soft);
  border-radius: 999px;
  font-family: var(--atyp-font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ax2-ink-soft);
  background: transparent;
}
.ax2-tag--dot::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--ax2-accent);
}
.ax2-tag--dot.ax2-tag--live::before  { background: var(--ax2-accent); }
.ax2-tag--dot.ax2-tag--beta::before  { background: #f59e0b; }
.ax2-tag--dot.ax2-tag--soon::before  { background: var(--ax2-ink-faint); }

/* ── PRODUCT CARD ── */
.ax2-product {
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 32px;
  background: var(--ax2-surface);
  border: 1px solid var(--ax2-rule-soft);
  border-radius: var(--ax2-radius-lg);
  text-decoration: none;
  color: inherit;
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
  min-height: 320px;
}
.ax2-product:hover {
  border-color: var(--ax2-rule);
  transform: translateY(-2px);
  box-shadow: var(--ax2-shadow-hover);
}
.ax2-product--shot { grid-template-rows: auto auto 1fr auto; }
.ax2-product__shot {
  display: block;
  aspect-ratio: 16 / 10;
  margin: -32px -32px 24px;
  background-color: #0a0f1a;
  background-size: cover;
  background-position: top center;
  border-top-left-radius: var(--ax2-radius-lg);
  border-top-right-radius: var(--ax2-radius-lg);
  border-bottom: 1px solid var(--ax2-rule-soft);
}
.ax2-product__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}
.ax2-product__brand {
  font-family: var(--atyp-font-hero);
  font-weight: 700;
  font-size: 2.2rem;
  letter-spacing: -0.025em;
  color: var(--ax2-ink);
  line-height: 1;
}
.ax2-product__domain {
  font-family: var(--atyp-font-mono);
  font-size: 0.75rem;
  color: var(--ax2-ink-faint);
}
.ax2-product__pitch {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ax2-ink-soft);
  margin: 0 0 28px;
}
.ax2-product__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--ax2-rule-soft);
  font-family: var(--atyp-font-mono);
  font-size: 0.75rem;
  color: var(--ax2-ink-faint);
}

/* ── LIST ROW ── */
.ax2-row {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 22px 0;
  border-top: 1px solid var(--ax2-rule-soft);
  text-decoration: none;
  color: inherit;
}
.ax2-row:last-child { border-bottom: 1px solid var(--ax2-rule-soft); }
.ax2-row:hover .ax2-row__title { color: #0d9488; }
.ax2-row__date {
  font-family: var(--atyp-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--ax2-ink-faint);
}
.ax2-row__title {
  font-family: var(--atyp-font-heading);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--ax2-ink);
  margin: 0 0 2px;
  letter-spacing: -0.01em;
  text-transform: none;
  transition: color 160ms ease;
}
.ax2-row__excerpt { font-size: 0.92rem; color: var(--ax2-ink-soft); margin: 0; }
.ax2-row__tag {
  font-family: var(--atyp-font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  color: var(--ax2-ink-faint);
}

/* ── SERVICE ── */
.ax2-service {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 14px;
  padding: 32px 0;
  border-top: 1px solid var(--ax2-rule);
}
.ax2-service__num {
  font-family: var(--atyp-font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ax2-ink-faint);
  letter-spacing: 0.06em;
}
.ax2-service__title {
  font-family: var(--atyp-font-heading);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.018em;
  color: var(--ax2-ink);
  margin: 0;
}
.ax2-service__body {
  font-size: 1rem;
  color: var(--ax2-ink-soft);
  line-height: 1.55;
  margin: 0;
  max-width: 30rem;
}

/* ── FACT ── */
.ax2-fact {
  padding: 20px 0;
  border-top: 1px solid var(--ax2-rule-soft);
}
.ax2-fact:first-child { border-top: 1px solid var(--ax2-rule); }
.ax2-fact:last-child  { border-bottom: 1px solid var(--ax2-rule); }
.ax2-fact__k {
  font-family: var(--atyp-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ax2-ink-faint);
  margin-bottom: 4px;
}
.ax2-fact__v {
  font-family: var(--atyp-font-heading);
  font-weight: 500;
  font-size: 1rem;
  color: var(--ax2-ink);
}

/* ── GRIDS ── */
.ax2-grid-2 { display: grid; grid-template-columns: 1fr; gap: 24px; }
.ax2-grid-3 { display: grid; grid-template-columns: 1fr; gap: 24px; }
.ax2-grid-4 { display: grid; grid-template-columns: 1fr; gap: 24px; }

/* ── FLEX HELPERS ── */
.ax2-cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.ax2-mt-link { margin-top: 28px; }
.ax2-mt-link-lg { margin-top: 36px; }
.ax2-mt-link-md { margin-top: 32px; }
.ax2-mb-40 { margin-bottom: 40px; }

/* ── Dark section utilities (for CTA/dark sections across pages) ── */
.ax2-dark-wrap { max-width: 40rem; }
.ax2-dark-heading { color: #fff; }
.ax2-dark-body { color: rgba(241,245,249,0.78); font-size: 1.05rem; line-height: 1.55; margin: 0 0 32px; }

/* ── Media utilities ── */
.ax2-img-full { width: 100%; height: auto; border-radius: 12px; }
.ax2-img-thumb { width: 100%; height: auto; border-radius: 8px; display: block; }
.ax2-video-wrap { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 12px; }
.ax2-video-iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.ax2-video-full { width: 100%; border-radius: 12px; }
.ax2-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }

/* ── Spacing utilities ── */
.ax2-mt-32 { margin-top: 32px; }

/* ── FAQ heading style ── */
.ax2-faq-heading { font-family: var(--atyp-font-heading); font-weight: 600; font-size: 1.1rem; margin: 0 0 8px; color: var(--ax2-ink); }
.ax2-faq-heading--spaced { margin-top: 24px; }

/* ── About page heading style ── */
.ax2-principle-heading { font-family: var(--atyp-font-heading); font-weight: 600; font-size: 1.2rem; margin: 0 0 10px; color: var(--ax2-ink); }
.ax2-principle-heading--spaced { margin-top: 24px; }

/* ── Text color utility ── */
.ax2-text-ink { color: var(--ax2-ink); }
