/*
 * The public site for I Got It.
 *
 * Palette and type come from BRAND_VISUAL_IDENTITY_GUIDE.md §5, which is the
 * single source for both — the same tokens the app uses. Never sampled from
 * brand art: the concept sheet's swatches fail WCAG AA on white, which is why
 * the guide exists as the only source.
 *
 * Dark mode is handled at token level so a parent reading the privacy notice at
 * 11pm gets the same contrast as one reading it at noon.
 */

:root {
  --ground: #f8f7f3;
  --card: #ffffff;
  --ink: #111827;
  --ink-soft: #4b5563;
  --ink-faint: #6b7280;
  --rule: #d8dce6;
  --indigo: #13204a;
  --violet: #5b4cf0;
  --violet-wash: #eeebfe;
  --good: #157a45;
  --good-wash: #e4f3ea;
  --attention: #a85f00;
  --attention-wash: #fbf0de;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0e1428;
    --card: #161e38;
    --ink: #f8f7f3;
    --ink-soft: #c6ccda;
    --ink-faint: #97a0b6;
    --rule: #2b3654;
    --indigo: #c6ccda;
    --violet: #8b80ff;
    --violet-wash: #1f2547;
    --good: #74d6a0;
    --good-wash: #16301f;
    --attention: #f6b85a;
    --attention-wash: #332615;
  }
}

* {
  box-sizing: border-box;
}

body {
  background: var(--ground);
  color: var(--ink);
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  font-size: 17px;
  line-height: 1.65;
  margin: 0;
  padding: 0 20px 80px;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 680px;
  margin: 0 auto;
}

header.site {
  padding: 40px 0 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

header.site a {
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

/*
 * The real mark, not a CSS approximation.
 *
 * The first version of this header drew a violet square with a check character
 * in it -- close enough to glance past and wrong in every detail: the wrong
 * shape, the wrong check, and none of the three violet strokes above it. A
 * product's own site is the last place to redraw its logo by hand.
 */
.mark {
  width: 36px;
  height: 36px;
  flex: none;
  display: block;
}

h1 {
  font-size: clamp(30px, 6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.022em;
  margin: 44px 0 16px;
  text-wrap: balance;
}

h2 {
  font-size: 21px;
  letter-spacing: -0.012em;
  margin: 40px 0 12px;
  text-wrap: balance;
}

h3 {
  font-size: 17px;
  margin: 26px 0 8px;
}

p,
li {
  color: var(--ink-soft);
  margin: 0 0 15px;
}

ul,
ol {
  padding-left: 22px;
  margin: 0 0 18px;
}

li {
  margin-bottom: 8px;
}

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

a {
  color: var(--violet);
}

.lede {
  font-size: 19.5px;
  color: var(--ink-soft);
}

.note {
  background: var(--attention-wash);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--attention);
  border-radius: 4px;
  padding: 20px 24px;
  margin: 28px 0;
}

.note p:last-child,
.plain p:last-child,
.card p:last-child {
  margin-bottom: 0;
}

.plain {
  background: var(--good-wash);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--good);
  border-radius: 4px;
  padding: 20px 24px;
  margin: 28px 0;
}

.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 20px 24px;
  margin: 18px 0;
}

.meta {
  font-size: 14px;
  color: var(--ink-faint);
  margin-top: 6px;
}

footer {
  margin-top: 64px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  font-size: 14.5px;
  color: var(--ink-faint);
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

footer a {
  color: var(--ink-faint);
}

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
  margin: 0 0 18px;
}

th,
td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  color: var(--ink-soft);
}

th {
  color: var(--ink);
  font-weight: 600;
}

.scroll {
  overflow-x: auto;
}
