/* =========================================================================
   Compass — Security & Trust page
   Lead palette: Slate & Sky (balanced). Tokens come from /tokens.css.
   Source design: security.jsx → SecurityCard
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 400; }
p { margin: 0; }

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 10px 16px;
  background: var(--primary);
  color: var(--accent);
  border-radius: var(--radius-button);
  z-index: 1000;
  font-weight: 600;
}

/* -------------------------------------------------------------------------
   Wordmark
   ------------------------------------------------------------------------- */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1;
}
.wordmark .accent { color: var(--accent); }
.wordmark--light { color: #fff; }

/* -------------------------------------------------------------------------
   Page header band — dark forest with topographic line backdrop.
   Mirrors the SecurityCard header (line 13–26).
   ------------------------------------------------------------------------- */
.page-header {
  background: var(--surface-dark);
  color: #fff;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.topo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
}
.topo svg { width: 100%; height: 100%; }

.page-header__inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 36px 56px 56px;
  z-index: 1;
}

.page-header__inner .wordmark { margin-bottom: 28px; }

.page-header__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
  font-size: 11px;
  color: #fff;
  font-weight: 600;
  margin-bottom: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page-header__title {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  color: #fff;
  max-width: 900px;
}

.page-header__title em {
  font-style: italic;
  color: var(--accent);
}

.page-header__lede {
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  max-width: 760px;
}

/* -------------------------------------------------------------------------
   Section primitives
   ------------------------------------------------------------------------- */
.section {
  padding: 56px;
  max-width: var(--max-w);
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.section:first-of-type { border-top: none; }

.kicker {
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 12px;
}

.section__title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  max-width: 820px;
}

.section__title em { font-style: italic; color: var(--primary); }

.section__lede {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 24px;
  max-width: 760px;
}

/* -------------------------------------------------------------------------
   Promises grid
   ------------------------------------------------------------------------- */
.promises {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.promise {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}

.promise__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
}

.promise__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  margin: 0;
  color: var(--ink);
}

.promise--bad .promise__title em { font-style: italic; }

.promise__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.promise--good .promise__dot { background: var(--success); }
.promise--bad  .promise__dot { background: var(--danger); }

.promise__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.promise__list li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.promise__list li:first-child { border-top: none; }

.promise__mark {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.promise--good .promise__mark { color: var(--success); }
.promise--bad  .promise__mark { color: var(--danger); }

/* -------------------------------------------------------------------------
   Audience table
   ------------------------------------------------------------------------- */
.audience {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.audience__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.audience__th {
  background: var(--surface-alt);
  padding: 14px 12px;
  font-size: 12px;
  color: var(--ink);
  font-weight: 600;
  text-align: center;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  line-height: 1.3;
  vertical-align: middle;
}

.audience__th--info {
  text-align: left;
  border-left: none;
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 18px;
}

.audience__row-th {
  text-align: left;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
  border-top: 1px solid var(--line-soft);
}

.audience__table tbody tr:first-child .audience__row-th,
.audience__table tbody tr:first-child td { border-top: none; }

.audience__table td {
  padding: 12px;
  border-left: 1px solid var(--line-soft);
  border-top: 1px solid var(--line-soft);
  text-align: center;
  vertical-align: middle;
}

/* Badge atoms */
.badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.badge--yes     { background: var(--success); color: #fff; }
.badge--partial { background: var(--success); color: #fff; }
.badge--opt     { background: var(--butter); color: var(--ink); }
.badge--self    { background: var(--sky-soft); color: var(--primary); }
.badge--no      { background: var(--line-soft); color: var(--ink-muted); }

/* -------------------------------------------------------------------------
   Sign-in section + callout
   ------------------------------------------------------------------------- */
.signin {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.signin__copy p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 16px;
}

.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 24px;
}

.callout__kicker {
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 14px;
}

.callout__quote {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 16px;
  font-weight: 400;
}

.callout__body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.callout__body em { font-style: italic; color: var(--primary); }

/* -------------------------------------------------------------------------
   Plain cards (Locked / Logged / Yours)
   ------------------------------------------------------------------------- */
.plain-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.plain-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 22px;
}

.plain-card__title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  font-style: italic;
  color: var(--accent);
  margin: 0 0 10px;
}

.plain-card p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* -------------------------------------------------------------------------
   Youth-protection cards
   ------------------------------------------------------------------------- */
.ypt {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.ypt__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
}

.ypt__title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 8px;
  line-height: 1.25;
}

.ypt__card p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* -------------------------------------------------------------------------
   Incident-response timeline
   ------------------------------------------------------------------------- */
.ir {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: start;
}

.ir__intro {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.ir__steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ir__step {
  display: flex;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
}
.ir__step:first-child { border-top: none; }

.ir__when {
  width: 130px;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--accent);
  font-style: italic;
}

.ir__what {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* -------------------------------------------------------------------------
   Independent checks
   ------------------------------------------------------------------------- */
.checks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.check {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
}

.check__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 6px;
}

.check p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.tech-callout {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.tech-callout strong { color: var(--ink); font-weight: 600; }

.tech-callout a { color: var(--primary); font-weight: 600; }
.tech-callout a:hover,
.tech-callout a:focus-visible { color: var(--accent); }

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
.footer {
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
  padding: 28px 56px;
}

.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: var(--ink-muted);
}

.footer__inner a { color: var(--primary); font-weight: 600; }
.footer__inner a:hover,
.footer__inner a:focus-visible { color: var(--accent); }

.footer__disclaimer {
  max-width: var(--max-w);
  margin: 16px auto 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 12px;
  color: var(--primary);
  text-align: right;
}

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .page-header__inner { padding: 32px 32px 48px; }
  .page-header__title { font-size: 48px; }
  .section { padding: 48px 32px; }

  .promises,
  .ypt,
  .signin,
  .ir { grid-template-columns: 1fr; }

  .plain-cards { grid-template-columns: 1fr; }
  .checks { grid-template-columns: repeat(2, 1fr); }

  .audience { overflow-x: auto; }
  .audience__table { min-width: 720px; }

  .footer { padding: 24px 32px; }
}

@media (max-width: 640px) {
  .page-header__inner { padding: 24px 20px 36px; }
  .page-header__title { font-size: 36px; }
  .page-header__lede { font-size: 16px; }

  .section { padding: 36px 20px; }
  .section__title { font-size: 24px; }

  .checks { grid-template-columns: 1fr; }
  .ir__when { width: 100px; font-size: 15px; }

  .footer { padding: 20px 20px; }
  .footer__disclaimer { text-align: left; }
}
