/*
 * catalystdata.co — apex one-pager styles.
 *
 * Furniture and type scale mirror the console's MarketingShell +
 * DataPolicy page (the brand-standard chrome for non-console pages):
 * 60px header bar with the brand mark, hairline borders, 760px policy
 * column at 15px/1.7 body, h1 clamp(23px, 4.4vw, 30px). Tokens only —
 * no raw colour values (guidelines §5). No shadows in either theme.
 */

@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url('/assets/fonts/schibsted-grotesk-latin-ext-wght-normal.woff2')
    format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url('/assets/fonts/schibsted-grotesk-latin-wght-normal.woff2')
    format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--surface-0);
  color: var(--text-body);
  font-family: var(--font-sans);
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ---- Brand furniture (header / footer, outside #policy-content) ---- */

.site-header {
  border-bottom: 1px solid var(--hairline);
}

.site-header .bar {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(14px, 4vw, 32px);
  height: 60px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.mark {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: none;
}

/*
 * The Catalyst mark — Brand Guide v2.2 §01 Logo System: the open ring
 * (the C) with the luminous node at the gap. Theme-correct per the
 * guide's own variants: ring #0B1E33 on light / #C8C8CA on dark =
 * exactly --text-hi; node #52C5FF in both themes = exactly --electric
 * (not remapped on light). Supersedes the diamond glyph (Jon,
 * 2026-08-10); geometry verbatim from the guide's SVG.
 */
.mark .logo-mark {
  width: 22px;
  height: 22px;
  display: inline-block;
  flex: none;
}

.logo-ring {
  stroke: var(--text-hi);
}

.logo-node {
  fill: var(--electric);
}

.mark .name {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--text-hi);
}

.mark .qualifier {
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--text-body);
  margin-top: 2px;
}

.chrome-link {
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--text-body);
}

.chrome-link[aria-current='page'] {
  color: var(--text-hi);
}

.spacer {
  flex: 1;
}

.site-footer {
  border-top: 1px solid var(--hairline);
}

.site-footer .bar {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px clamp(14px, 4vw, 32px);
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.site-footer .mark .name {
  font-size: 13px;
}

.site-footer .mark .logo-mark {
  width: 18px;
  height: 18px;
}

.copyright {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--text-body);
}

/* ---- Policy document (#policy-content) ---- */

.policy-wrap {
  flex: 1;
}

.policy-column {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px clamp(14px, 4vw, 32px) 100px;
}

.policy-column h1 {
  margin: 0 0 18px;
  font-size: clamp(23px, 4.4vw, 30px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-hi);
  text-wrap: balance;
}

.policy-column p {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-body);
  text-wrap: pretty;
}

.policy-column p.em {
  font-style: italic;
}

.policy-column ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.policy-column li {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-body);
  text-wrap: pretty;
}

.policy-column strong {
  color: var(--text-hi);
  font-weight: 700;
}

/* ---- Cards (stub, contact, notices) ---- */

/*
 * Hairline card over --surface-0 — exists for dark-mode visibility
 * (surface lift #0d0d0f → #111113 + the 0.07 hairline ring) and reads
 * inverse-consistent on light (Paper → White, 0.1 Navy hairline).
 * No shadows in either theme, per guidelines.
 */
.card {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: clamp(28px, 6vw, 52px);
  width: min(100%, 560px);
}

.notice-heading {
  margin: 0;
  font-size: clamp(19px, 4vw, 24px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-hi);
}

/* ---- Apex stub (/) and notice pages ---- */

.stub-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 5vw, 48px) clamp(14px, 4vw, 32px);
}

.stub-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
}

.stub-inner .mark .name {
  font-size: 22px;
}

.stub-inner .mark .qualifier {
  font-size: 11px;
}

.stub-inner .mark .logo-mark {
  width: 32px;
  height: 32px;
}

.stub-line {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-body);
  max-width: 34em;
  text-wrap: balance;
}

.stub-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.stub-links a {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--electric-text);
}

/* ---- Contact form (/contact) ---- */

.form-card {
  margin: 0 auto;
}

.form-heading {
  margin: 0 0 6px;
  font-size: clamp(21px, 4.2vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-hi);
}

/* Honeypot: off-canvas, not display:none — some bots skip hidden inputs. */
.hp-wrap {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}

@media (max-width: 480px) {
  .name-row {
    grid-template-columns: 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 18px;
  text-align: left;
}

.field label {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-body);
}

.field input,
.field textarea {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-hi);
  background: var(--surface-0);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 10px 12px;
  width: 100%;
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 1px;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.submit {
  margin-top: 24px;
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink-on-accent);
  background: var(--electric);
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  cursor: pointer;
}

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