/* trivolve.app. Colours from design/tokens.json (S1); body type Figtree, as in the apps. */

@font-face {
  font-family: "Figtree";
  src: url("/assets/Figtree.ttf") format("truetype");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --background: #eceef3;
  --surface: #ffffff;
  --foreground: #1d2030;
  --muted: #6b7086;
  --line: #d5d8e2;
  --accent: #4b52d6;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --background: #14161f;
    --surface: #1e2130;
    --foreground: #eceef6;
    --muted: #9398ad;
    --line: #2e3244;
    --accent: #8f95ff;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --background: #14161f;
  --surface: #1e2130;
  --foreground: #eceef6;
  --muted: #9398ad;
  --line: #2e3244;
  --accent: #8f95ff;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font: 400 1.0625rem/1.6 "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-underline-offset: 0.15em; }

.wrap {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header: the icon and the wordmark, linking home. */
.top { padding-top: 20px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img.icon { width: 40px; height: 40px; border-radius: 9px; }
.brand .wordmark { height: 20px; width: auto; }
.wordmark.on-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .wordmark.on-light { display: none; }
  :root:not([data-theme="light"]) .wordmark.on-dark { display: inline; }
}
:root[data-theme="dark"] .wordmark.on-light { display: none; }
:root[data-theme="dark"] .wordmark.on-dark { display: inline; }

main { flex: 1; padding-top: 16px; padding-bottom: 48px; }

h1 { font-size: 2rem; line-height: 1.2; font-weight: 800; margin: 24px 0 8px; letter-spacing: -0.01em; }
h2 { font-size: 1.25rem; line-height: 1.3; font-weight: 750; margin: 40px 0 8px; }
h3 { font-size: 1.0625rem; font-weight: 700; margin: 24px 0 4px; }
p, ul { margin: 0 0 14px; }
ul { padding-left: 1.25em; }
li { margin: 0 0 6px; }
.updated { color: var(--muted); margin-bottom: 24px; }

/* The short version at the top of a policy. */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px 6px;
  margin: 16px 0 8px;
}

table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 0.97rem; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); }
th { font-weight: 700; }
.table-scroll { overflow-x: auto; }

address { font-style: normal; }

/* Home: one calm screen. */
.hero { text-align: center; padding: 12vh 16px 24px; }
.hero img.icon { width: 120px; height: 120px; border-radius: 27px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18); }
.hero .wordmark { display: block; height: 40px; width: auto; margin: 28px auto 0; }
.hero .wordmark.on-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero .wordmark.on-light { display: none; }
  :root:not([data-theme="light"]) .hero .wordmark.on-dark { display: block; }
}
:root[data-theme="dark"] .hero .wordmark.on-light { display: none; }
:root[data-theme="dark"] .hero .wordmark.on-dark { display: block; }
.hero .line { font-size: 1.375rem; line-height: 1.35; font-weight: 650; margin: 24px auto 8px; max-width: 30rem; text-wrap: balance; }
.hero .soon { color: var(--muted); margin: 0; }

footer { border-top: 1px solid var(--line); padding: 20px 0 32px; color: var(--muted); font-size: 0.94rem; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 8px; }
footer a { color: var(--muted); }
