/* Veridio site shell — reset, type, buttons, forms, header, footer.
   Depends on tokens.css. Section styles live in landing.css (landing) and app.css (platform). */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  letter-spacing: var(--track);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; letter-spacing: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
h1, h2, h3, h4, h5, h6 { font-weight: 600; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--charcoal); outline-offset: 3px; }
.on-dark :focus-visible, .site-header--overlay :focus-visible { outline-color: var(--white); }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--charcoal); color: var(--white); padding: 12px 16px; text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* ------------------------------------------------------------------ type */
.t-d1 { font-size: var(--fs-d1); line-height: 1; letter-spacing: var(--track); font-weight: 600; }
.t-h1 { font-size: var(--fs-h1); line-height: 1.05; letter-spacing: var(--track-tight); font-weight: 600; }
.t-h2 { font-size: var(--fs-h2); line-height: 1; letter-spacing: var(--track); font-weight: 600; }
.t-h3 { font-size: var(--fs-h3); line-height: 1.1; letter-spacing: var(--track-tight); font-weight: 600; }
.t-h5 { font-size: var(--fs-h5); line-height: 1.2; font-weight: 600; }
.t-h6 { font-size: var(--fs-h5); line-height: 1; font-weight: 500; }
.t-h7 { font-size: var(--fs-h7); line-height: 1.2; font-weight: 600; }
.t-lg { font-size: var(--fs-lg); line-height: var(--lh-body); }
.t-md { font-size: var(--fs-md); line-height: var(--lh-body); }
.t-sm { font-size: var(--fs-sm); line-height: var(--lh-body); }
.t-muted { color: var(--ink-70); }
.on-dark .t-muted { color: var(--on-dark-70); }

/* "• THE STANDARD" label above section titles */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: clamp(14px, 1.25vw, 18px); line-height: 1.6; text-transform: uppercase; letter-spacing: var(--track);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
@media (max-width: 767px) { .eyebrow { gap: 10px; } .eyebrow::before { width: 6px; height: 6px; } }

/* --------------------------------------------------------------- layout */
.container { width: 100%; max-width: var(--page-max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.bg-sage { background: var(--sage); }
.bg-cloud { background: var(--cloud); }
.bg-stone { background: var(--stone); }
.bg-dark { background: var(--charcoal); color: var(--white); }

/* -------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 13px 24px 12px;   /* Figma: 56px (14/13 padding + 18/1.6 text) */
  font-size: var(--fs-lg); font-weight: 600; line-height: 1.3; letter-spacing: var(--track);
  text-decoration: none; text-align: center; white-space: nowrap;
  border: 1px solid transparent; border-radius: var(--radius); cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn--light { background: var(--white); color: var(--charcoal); }
.btn--light:hover { background: var(--cloud); }
.btn--ghost-light { background: transparent; color: var(--white); border-color: var(--line-on-dark); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .12); border-color: var(--white); }
.btn--dark { background: var(--charcoal); color: var(--white); }
.btn--dark:hover { background: #2b2a28; }
.btn--outline { background: transparent; color: var(--charcoal); border-color: var(--charcoal); }
.btn--outline:hover { background: var(--charcoal); color: var(--white); }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: var(--fs-md); }
@media (max-width: 767px) { .btn { min-height: 48px; } }
@media (max-width: 479px) { .btn { white-space: normal; } }   /* long labels wrap instead of overflowing 320px screens */
.btn--wide { min-width: 150px; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }

.link-arrow { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- forms */
.field { display: grid; gap: 8px; }
.field__label { font-size: var(--fs-sm); font-weight: 500; }
.input, .textarea, .select {
  width: 100%; min-height: 48px; padding: 12px 16px;
  background: var(--white); border: 1px solid var(--field); border-radius: var(--radius);
  font-size: var(--fs-md); line-height: 1.5;
}
.textarea { min-height: 140px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: rgba(62, 61, 59, .45); }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--charcoal); box-shadow: 0 0 0 1px var(--charcoal); }
.input--line {
  min-height: 48px; padding: 12px 0; background: transparent;
  border: 0; border-bottom: 1px solid var(--line-strong);
}
.input--line:focus { box-shadow: 0 1px 0 0 var(--charcoal); }
.checkbox { display: inline-flex; align-items: center; gap: 12px; font-size: var(--fs-sm); cursor: pointer; }
.checkbox input { appearance: none; width: 20px; height: 20px; margin: 0; border: 1px solid var(--field); background: var(--white); display: grid; place-content: center; }
.checkbox input:checked { background: var(--lime); border-color: var(--lime); }
.checkbox input:checked::after { content: ""; width: 10px; height: 6px; border: 2px solid var(--charcoal); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }

/* --------------------------------------------------------------- header */
.site-header { position: relative; z-index: 50; color: var(--charcoal); background: var(--white); border-bottom: 1px solid var(--line); }
.site-header--overlay { position: absolute; inset: 0 0 auto 0; background: transparent; color: var(--white); border-bottom: .5px solid var(--line-on-dark); }
.site-header__inner {
  max-width: var(--page-max); margin-inline: auto; padding: 24px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo { display: inline-flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; flex: none; }
.logo svg { display: block; }
.logo__mark { width: 32px; height: 32px; }
.logo__word { width: 107px; height: 19px; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a { font-size: var(--fs-lg); line-height: 1.6; text-decoration: none; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.site-header__actions { display: flex; gap: 8px; align-items: center; flex: none; }
.site-header__actions .btn { min-width: 150px; min-height: 64px; }   /* Figma header buttons 150×64 */
/* "Log in" (members-only sections behind Cloudflare Access) — a text link, so the two Figma buttons keep their size */
.site-header__login { font-size: var(--fs-lg); line-height: 1.6; text-decoration: none; white-space: nowrap; padding: 12px 16px; }
.site-header__login:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.nav-lock { display: inline-block; width: .7em; height: .7em; margin-left: .3em; vertical-align: .05em; opacity: .7; }
/* only the bar's own buttons go light on the overlay — the open mobile menu is a white sheet */
.site-header--overlay .site-header__actions .btn--outline { color: var(--white); border-color: var(--line-on-dark); }
.site-header--overlay .site-header__actions .btn--outline:hover { background: rgba(255, 255, 255, .12); border-color: var(--white); }
.menu-toggle { display: none; }
.mobile-menu { display: none; }

@media (max-width: 1180px) {
  .site-nav { gap: 16px; }
  .site-nav a { font-size: var(--fs-md); }
  .site-header__actions .btn { min-width: 0; }
  .site-header__login { font-size: var(--fs-md); padding: 8px; }
}
@media (max-width: 1023px) {
  .site-header__inner { padding-block: 12px; }
  .site-nav, .site-header__actions { display: none; }
  .menu-toggle {
    display: inline-grid; place-items: center; width: 44px; height: 44px; margin-right: -10px;
    background: none; border: 0; color: inherit; cursor: pointer;
  }
  .menu-toggle svg { width: 22px; height: 22px; }
  .menu-toggle .icon-close { display: none; }
  .site-header.is-open .menu-toggle .icon-open { display: none; }
  .site-header.is-open .menu-toggle .icon-close { display: block; }
  .site-header.is-open { position: fixed; inset: 0 0 auto 0; background: var(--white); color: var(--charcoal); border-bottom-color: var(--line); }
  .site-header.is-open :focus-visible { outline-color: var(--charcoal); }   /* overlay headers use white rings */
  .site-header.is-open .mobile-menu {
    display: flex; flex-direction: column; gap: 24px;
    position: fixed; inset: var(--header-h) 0 0 0; overflow-y: auto; overscroll-behavior: contain;
    padding: 24px var(--gutter) calc(32px + env(safe-area-inset-bottom));
    background: var(--white); color: var(--charcoal); border-top: 1px solid var(--line);
  }
  .mobile-menu nav { display: flex; flex-direction: column; }
  .mobile-menu nav a {
    padding: 14px 0; font-size: 24px; line-height: 1.2; font-weight: 500; text-decoration: none;
    border-bottom: 1px solid var(--line);
  }
  .mobile-menu .btn { width: 100%; }
  body.menu-open { overflow: hidden; }
}

/* --------------------------------------------------------------- footer */
.site-footer { background: var(--stone); color: var(--charcoal); }
.site-footer__inner { max-width: var(--page-max); margin-inline: auto; padding: 80px var(--gutter) 32px; display: grid; gap: 80px; }
.site-footer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; }
.subscribe { display: flex; align-items: flex-end; gap: 24px; }
.subscribe .input--line { width: 240px; }
.subscribe .btn { min-width: 150px; }
.footer-cols { display: flex; gap: 88px; }
.footer-col h2 { font-size: var(--fs-md); font-weight: 600; line-height: 1.6; margin-bottom: 16px; }
.footer-col summary { list-style: none; }
.footer-col summary::-webkit-details-marker { display: none; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col a { text-decoration: none; white-space: nowrap; }
.footer-col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer__brand { display: grid; gap: 64px; }
.site-footer__tagline { font-size: var(--fs-h5); line-height: 1.2; font-weight: 600; max-width: 704px; }
.site-footer__logo { display: flex; align-items: center; gap: clamp(20px, 6.36vw, 92px); color: var(--charcoal); }
.site-footer__logo .logo__mark { width: clamp(64px, 18.2vw, 262px); height: auto; aspect-ratio: 1; flex: none; }
.site-footer__logo .logo__word { width: clamp(220px, 60.5vw, 871px); height: auto; aspect-ratio: 106.56 / 19.33; }
.site-footer__legal {
  display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap;
  padding-top: 32px; border-top: 1px solid var(--line); font-size: var(--fs-md);
}
.site-footer__legal > * { color: var(--ink-50); text-decoration: none; }
.site-footer__legal a:hover { color: var(--charcoal); text-decoration: underline; }
.site-footer__operator { margin-bottom: 16px; font-size: var(--fs-sm); color: var(--ink-70); }
.site-footer__operator a { color: inherit; }

@media (max-width: 1023px) {
  .site-footer__inner { padding-top: 56px; gap: 48px; }
  .site-footer__top { flex-direction: column; gap: 40px; }
  .subscribe { flex-direction: column; align-items: stretch; width: 100%; gap: 16px; }
  .subscribe .input--line { width: 100%; }
  .footer-cols { flex-direction: column; gap: 0; width: 100%; }
  .footer-col { border-bottom: 1px solid var(--line); }
  .footer-col h2 { margin: 0; }
  .footer-col summary {
    display: flex; justify-content: space-between; align-items: center; min-height: 48px; cursor: pointer;
  }
  .footer-col summary::after {
    content: ""; width: 9px; height: 9px; margin-right: 4px;
    border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-3px);
    transition: transform .2s var(--ease);
  }
  .footer-col details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
  .footer-col ul { padding-bottom: 16px; }
  .footer-col a { display: block; padding: 6px 0; }
  .site-footer__brand { gap: 32px; }
  .site-footer__tagline { font-size: clamp(18px, 5.35vw, 24px); }   /* Figma mobile: two lines at 375 */
  .site-footer__legal { flex-direction: column; gap: 0; font-size: var(--fs-sm); }
  .site-footer__legal > * { padding-block: 10px; }      /* 44px tap targets on touch screens */
}
@media (min-width: 1024px) {
  /* columns are plain lists on desktop; site.js only folds the <details> on phones/tablets */
  .footer-col details > summary { pointer-events: none; }
}

/* ------------------------------------------- data note above the footer (landing + every data page) */
.data-note { background: var(--cloud); border-top: 1px solid var(--line); }
.data-note__inner { display: grid; gap: 10px; padding-block: 32px; }
.data-note__stats { font-size: var(--fs-md); font-weight: 500; }
.data-note__fine { font-size: var(--fs-sm); color: var(--ink-70); max-width: 1040px; }
.data-note a { color: var(--charcoal); font-weight: 600; text-underline-offset: 3px; }
