:root {
  --mist: #f1f5f6;
  --loch: #1f3644;
  --loch-soft: #50656f;
  --heather: #2b7f95;
  --heather-pale: #dcf0f5;
  --ice: #8fd8e8;
  --white: #ffffff;
  --sans: system-ui, -apple-system, "Segoe UI Variable", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: var(--sans);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--mist);
  color: var(--loch);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
}

a { color: var(--loch); text-underline-offset: 0.18em; }
a:hover { color: var(--heather); }

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

.wrap {
  width: min(100% - 3rem, 46rem);
  margin-inline: auto;
}

/* Header */
.site-header { padding-block: 2rem 0; }
.wordmark {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.wordmark svg { width: 1.6rem; height: 1.6rem; }

/* Home: lanes */
.home main { padding-block: 4.5rem 5rem; }

.lanes {
  list-style: none;
  margin: 0 0 3.5rem;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}
.lane {
  display: grid;
  grid-template-columns: 3.75rem 1fr;
  align-items: center;
  gap: 1rem;
}
.lane-name {
  font-size: 0.875rem;
  color: var(--loch-soft);
}
.lane-bar {
  height: 1.1rem;
  border-radius: 999px;
  background: var(--loch);
}
.lane:nth-child(1) .lane-bar { width: 34%; }
.lane:nth-child(2) .lane-bar { width: 92%; }
.lane:nth-child(3) .lane-bar { width: 62%; }

.lane-fourth .lane-name { color: var(--heather); font-weight: 600; }
.lane-fourth .lane-bar {
  width: 100%;
  background: var(--heather);
  transform-origin: left center;
  animation: draw 1.6s cubic-bezier(.2,.7,.2,1) 0.6s both;
}
@keyframes draw {
  from { transform: scaleX(0); opacity: 0.3; }
  to { transform: scaleX(1); opacity: 1; }
}

h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7.5vw, 4.6rem);
  line-height: 1.0;
  letter-spacing: -0.035em;
  margin: 0 0 1.5rem;
  max-width: 16ch;
}

.lede {
  font-size: 1.25rem;
  line-height: 1.5;
  max-width: 34rem;
  margin: 0 0 1.25rem;
}
.detail {
  color: var(--loch-soft);
  max-width: 34rem;
  margin: 0 0 2.25rem;
}

.button {
  display: inline-block;
  background: var(--loch);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
}
.button:hover { background: var(--heather); color: var(--white); }
.button-note {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--loch-soft);
}

/* Footer */
.site-footer {
  border-top: 1px solid #d3dfe3;
  padding-block: 1.5rem 2.5rem;
  font-size: 0.875rem;
  color: var(--loch-soft);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}
.site-footer nav { display: flex; gap: 1.25rem; }
.site-footer a { color: var(--loch-soft); }

/* Privacy page */
.policy main { padding-block: 3rem 4rem; }
.policy h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); max-width: none; margin-bottom: 0.5rem; }
.policy .updated { color: var(--loch-soft); margin: 0 0 2.5rem; }
.policy h2 {
  font-family: var(--display);
  font-weight: 750;
  letter-spacing: -0.015em;
  font-size: 1.5rem;
  line-height: 1.25;
  margin: 2.75rem 0 0.75rem;
}
.policy h3 { font-size: 1.0625rem; margin: 1.75rem 0 0.5rem; }
.policy p, .policy li { max-width: 40rem; }
.policy ul { padding-left: 1.25rem; }
.policy li { margin-bottom: 0.4rem; }
.policy dl { margin: 0; }
.policy dt { font-weight: 600; margin-top: 1rem; }
.policy dd { margin: 0.15rem 0 0; max-width: 40rem; }

.table-scroll { overflow-x: auto; margin: 1rem 0; }
.policy table {
  border-collapse: collapse;
  width: 100%;
  min-width: 34rem;
  font-size: 0.95rem;
  background: var(--white);
}
.policy th, .policy td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid #dde7ea;
}
.policy th { background: var(--heather-pale); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .lane-fourth .lane-bar { animation: none; }
}

@media (max-width: 480px) {
  .home main { padding-block: 3rem 3.5rem; }
  .lane { grid-template-columns: 3.25rem 1fr; gap: 0.75rem; }
  .lede { font-size: 1.125rem; }
}

/* Home page: deep-sea dark theme */
body.home {
  --mist: #1f3644;
  --loch: #e8f0f2;
  --loch-soft: #a9bec6;
  --heather: #8fd8e8;
  background: var(--mist);
}
.home .lane-bar { background: var(--loch); }
.home .lane-fourth .lane-bar { background: var(--ice); }
.home .lane-fourth .lane-name { color: var(--ice); }
.home .button { background: var(--ice); color: #1f3644; }
.home .button:hover { background: var(--loch); color: #1f3644; }
.home .site-footer { border-color: #33505f; }
.home a:hover { color: var(--ice); }
