/* Public site. Tokens copied from ui/src/styles/tokens.css (BRIEF §12). Light only. */

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/nunito-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/nunito-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/nunito-latin-700-normal.woff2") format("woff2");
}

:root {
  --color-background: #ffffff;
  --color-foreground: #1a1a1f;
  --color-surface: #fafafa;
  --color-surface-hover: #f4f4f5;
  --color-border: #ececf0;
  --color-border-hover: #dcdce2;
  --color-muted: #6f6f7a;
  --color-accent: #f0453e;
  --color-accent-hover: #d63a33;
  /* coral text on white needs a darker shade for 4.5:1 contrast */
  --color-accent-text: #c4302a;
  --color-accent-soft: #fef1f0;
  --radius-md: 0.875rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-2xl: 1.5rem;
  --shadow-soft: 0 1px 2px rgba(24, 24, 27, 0.04), 0 2px 8px rgba(24, 24, 27, 0.04);
  --shadow-lifted: 0 2px 4px rgba(24, 24, 27, 0.05), 0 8px 24px rgba(24, 24, 27, 0.07);
  --font-sans: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 16px;
  color-scheme: light;
}

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

html {
  overflow-wrap: break-word;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-foreground);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--color-accent-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:hover {
  color: var(--color-accent-hover);
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  background: var(--color-foreground);
  color: #fff;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-md);
  z-index: 10;
}
.skip:focus {
  top: 0.75rem;
  color: #fff;
}

/* Wordmark: "i-" ink, "mail" accent, "send" ink (brand.json). */
.wordmark {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.375rem;
  line-height: 1;
  white-space: nowrap;
}
.wm-ink {
  color: var(--color-foreground);
}
.wm-accent {
  color: var(--color-accent);
}
.brand-link {
  text-decoration: none;
  display: inline-block;
  padding: 0.25rem 0;
}

/* Header / footer */
.site-header {
  padding: 1.25rem 0;
}
.main {
  flex: 1;
}
.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--color-border);
  padding: 2rem 0 2.5rem;
  font-size: 0.9375rem;
}
.footer-inner {
  display: grid;
  gap: 1rem;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.footer-links a {
  color: var(--color-foreground);
  text-decoration: none;
}
.footer-links a:hover,
.footer-links a[aria-current="page"] {
  color: var(--color-accent-text);
  text-decoration: underline;
}
.copyright {
  margin: 0;
  color: var(--color-muted);
}
@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2rem;
  }
  .footer-links {
    justify-content: center;
  }
}

/* Home */
.hero {
  padding: 3rem 0 3.5rem;
}
.pill {
  display: inline-block;
  margin: 0 0 1.25rem;
  padding: 0.3rem 0.875rem;
  border-radius: 999px;
  background: var(--color-accent-soft);
  color: var(--color-accent-text);
  font-weight: 700;
  font-size: 0.875rem;
}
.hero h1 {
  font-size: clamp(2.125rem, 7vw, 3.5rem);
  font-weight: 700;
  max-width: 18ch;
}
.lead {
  margin: 1.25rem 0 0;
  font-size: 1.1875rem;
  max-width: 42rem;
  color: #3a3a42;
}
.facts {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.facts li {
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  font-weight: 600;
  font-size: 0.9375rem;
}

.clean {
  padding: 1rem 0 3rem;
}
.clean h2,
.contact h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
}
.section-lead {
  margin: 0.75rem 0 0;
  color: var(--color-muted);
  max-width: 40rem;
}
.cards {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 960px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}
.card {
  background: var(--color-surface);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem;
}
.card-icon {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: var(--color-accent-soft);
  color: var(--color-accent);
}
.card h3 {
  margin-top: 1rem;
  font-size: 1.125rem;
}
.card p {
  margin: 0.5rem 0 0;
  color: #4a4a54;
  font-size: 0.9688rem;
}

.contact {
  padding: 1rem 0 0;
}
.panel {
  background: var(--color-surface);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-soft);
}
.contact-panel {
  padding: 1.75rem 1.5rem;
  display: grid;
  gap: 1.25rem;
  align-items: center;
}
.contact-panel p {
  margin: 0.5rem 0 0;
  color: #4a4a54;
}
@media (min-width: 768px) {
  .contact-panel {
    grid-template-columns: 1fr auto;
    padding: 2rem 2.25rem;
    gap: 2rem;
  }
}
.button {
  display: inline-block;
  padding: 0.75rem 1.375rem;
  border-radius: var(--radius-xl);
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  word-break: break-all;
}
.button:hover {
  background: var(--color-accent-hover);
  color: #fff;
}
.abuse-note {
  margin: 1rem 0 0;
  font-size: 0.9375rem;
  color: var(--color-muted);
}

/* Legal documents */
.doc {
  max-width: 46rem;
  padding-top: 1.5rem;
}
.doc-head {
  margin-bottom: 2rem;
}
.doc h1 {
  font-size: clamp(2rem, 6vw, 2.75rem);
}
.updated {
  margin: 0.5rem 0 0;
  color: var(--color-muted);
  font-size: 0.9375rem;
}
.doc-intro {
  margin: 1.25rem 0 0;
  font-size: 1.0625rem;
}
.doc section {
  margin-top: 2.25rem;
}
.doc h2 {
  font-size: 1.375rem;
  margin-bottom: 0.75rem;
  scroll-margin-top: 1rem;
}
.doc p,
.doc ul,
.doc ol {
  margin: 0.75rem 0 0;
}
.doc ul,
.doc ol {
  padding-left: 1.25rem;
}
.doc li + li {
  margin-top: 0.375rem;
}
.toc {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.5rem;
}
.toc ol {
  margin: 0;
}
.provider-card {
  font-style: normal;
  margin: 1rem 0 0;
  padding: 1.25rem 1.5rem;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}
.facts-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.375rem 1.25rem;
  margin: 1.25rem 0 0;
}
.facts-list dt {
  font-weight: 700;
}
.facts-list dd {
  margin: 0;
}
.table-wrap {
  margin-top: 1rem;
  overflow-x: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 40rem;
  font-size: 0.9375rem;
  background: var(--color-background);
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
}
thead th {
  background: var(--color-surface);
  font-weight: 700;
}
tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}
.thresholds {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}
.threshold {
  flex: 1 1 10rem;
  background: var(--color-accent-soft);
  border-radius: var(--radius-xl);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
}
.threshold-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent-text);
  line-height: 1.1;
}
.threshold-label {
  font-weight: 600;
}
.not-found {
  padding-top: 3rem;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
