/* Nonvo legal site. Tokens follow docs/DESIGN.md (graphite + signal lime). */

:root {
  color-scheme: light dark;
  --bg: #EEF1EE;
  --surface: #FFFFFF;
  --surface-2: #E2E7E3;
  --ink: #0E1512;
  --ink-2: #4A5751;
  --line: #CCD4CF;
  --signal: #B6F23A;
  --signal-ink: #3F6B00;
  --ok: #16733D;
  --warn: #9A5000;
  --bad: #B42F28;
  --meter-on: #548F00;
  --on-signal: #0E1512;

  --font-display: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: 16px;
  --measure: 68ch;
  --radius: 12px;
  --notch: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0C110F;
    --surface: #151C19;
    --surface-2: #1E2723;
    --ink: #E8EEEA;
    --ink-2: #9AA8A1;
    --line: #2A3530;
    --signal-ink: #C9F56A;
    --ok: #4CC57E;
    --warn: #F0A53A;
    --bad: #FF6F66;
    --meter-on: #B6F23A;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

a {
  color: var(--signal-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible,
.button:focus-visible {
  outline: 2px solid var(--signal-ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: var(--gutter);
  top: 8px;
  z-index: 10;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 8px;
}

/* Layout */

.wrap {
  width: 100%;
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.wordmark {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
}

.wordmark .dot {
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  margin-left: 0.06em;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: inset 0 0 0 1px rgba(14, 21, 18, 0.25);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.site-nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.9375rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--meter-on);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

main {
  padding: 32px 0 48px;
}

/* Type */

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-stretch: 112.5%;
  line-height: 1.2;
  color: var(--ink);
}

h1 {
  font-weight: 800;
  font-size: 2rem;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

h2 {
  font-weight: 700;
  font-size: 1.3125rem;
  margin: 40px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

h3 {
  font-weight: 600;
  font-size: 1.0625rem;
  margin: 24px 0 8px;
}

p,
ul,
ol,
dl,
table {
  margin: 0 0 16px;
}

ul,
ol {
  padding-left: 1.25em;
}

li + li {
  margin-top: 6px;
}

strong {
  font-weight: 650;
}

code,
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.9em;
}

.lede {
  font-size: 1.125rem;
  color: var(--ink-2);
  margin-bottom: 24px;
}

.meta {
  color: var(--ink-2);
  font-size: 0.875rem;
  margin-bottom: 24px;
}

.muted {
  color: var(--ink-2);
}

.flush {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

/* SIM-notch card: radius 14 with one chamfered top-right corner */

.sim-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin: 0 0 24px;
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);
}

.sim-card > :last-child {
  margin-bottom: 0;
}

.sim-card .label {
  font-family: var(--font-display);
  font-stretch: 112.5%;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--signal-ink);
  margin: 0 0 8px;
}

.promise {
  font-family: var(--font-display);
  font-stretch: 112.5%;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.35;
  margin: 0;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 0 0 16px;
}

.panel > :last-child {
  margin-bottom: 0;
}

.note {
  border-left: 3px solid var(--meter-on);
  background: var(--surface);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  margin: 0 0 16px;
}

.note > :last-child {
  margin-bottom: 0;
}

.note.warn {
  border-left-color: var(--warn);
}

/* Signal bars (decorative) */

.signal {
  display: inline-flex;
  align-items: flex-end;
  gap: 4px;
  height: 28px;
  margin-bottom: 16px;
}

.signal span {
  display: block;
  width: 6px;
  border-radius: 2px;
  background: var(--meter-on);
}

.signal span:nth-child(1) { height: 20%; }
.signal span:nth-child(2) { height: 40%; }
.signal span:nth-child(3) { height: 60%; }
.signal span:nth-child(4) { height: 80%; }
.signal span:nth-child(5) { height: 100%; }

/* Button */

.button {
  display: inline-block;
  background: var(--signal);
  color: var(--on-signal);
  font-family: var(--font-display);
  font-stretch: 112.5%;
  font-weight: 700;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 999px;
  border: 0;
}

.button:hover {
  text-decoration: none;
  filter: brightness(0.96);
}

/* Lists of links / steps */

.link-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 8px;
}

.link-list li + li {
  margin-top: 0;
}

.link-list a {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--ink);
  text-decoration: none;
}

.link-list a:hover {
  border-color: var(--signal-ink);
}

.link-list .title {
  display: block;
  font-family: var(--font-display);
  font-stretch: 112.5%;
  font-weight: 700;
}

.link-list .desc {
  display: block;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 40px;
  min-height: 28px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--signal);
  color: var(--on-signal);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps li + li {
  margin-top: 12px;
}

/* Tables: stacked on phones, a grid from 640px */

.table-wrap {
  margin: 0 0 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
}

thead {
  position: absolute;
  left: -9999px;
}

tr {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 8px;
  padding: 4px 0;
}

td {
  display: block;
  padding: 6px 16px;
}

td::before {
  content: attr(data-label);
  display: block;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-2);
}

@media (min-width: 640px) {
  thead {
    position: static;
  }

  tr {
    display: table-row;
    background: transparent;
    border: 0;
    border-radius: 0;
    margin: 0;
    padding: 0;
  }

  td {
    display: table-cell;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
  }

  th {
    border-bottom: 2px solid var(--ink);
    font-family: var(--font-display);
    font-stretch: 112.5%;
    font-weight: 700;
    font-size: 0.875rem;
  }

  td::before {
    content: none;
  }

  table {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
  }
}

/* FAQ */

details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 0 0 8px;
}

summary {
  cursor: pointer;
  padding: 14px 16px;
  font-family: var(--font-display);
  font-stretch: 112.5%;
  font-weight: 700;
  list-style-position: inside;
}

details[open] summary {
  border-bottom: 1px solid var(--line);
}

details > :not(summary) {
  margin-left: 16px;
  margin-right: 16px;
}

details > :nth-child(2) {
  margin-top: 12px;
}

/* Table of contents */

.toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 0 0 24px;
}

.toc p {
  margin: 0 0 8px;
  font-weight: 650;
}

.toc ol {
  margin: 0;
}

.toc li + li {
  margin-top: 2px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 40px;
  color: var(--ink-2);
  font-size: 0.875rem;
}

.site-footer ul {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.site-footer li + li {
  margin-top: 0;
}

.site-footer a {
  color: var(--ink-2);
}

.site-footer p {
  margin: 0 0 4px;
}

/* Larger screens */

@media (min-width: 640px) {
  :root {
    --gutter: 24px;
  }

  h1 {
    font-size: 2.5rem;
  }

  main {
    padding: 48px 0 64px;
  }

  .promise {
    font-size: 1.5rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .link-list a {
    transition: border-color 0.15s ease;
  }
}

details .table-wrap {
  margin: 12px 16px 16px;
}
