/* Vicarolo — marketing site
   Shares the app's operations-console identity: cool paper ground, mono utility type,
   and the three risk colours used only where risk is actually being described. */

:root {
  --ground: #f2f4f3;
  --panel: #ffffff;
  --ink: #14181a;
  --muted: #5c6a6e;
  --rule: #d3dad9;

  --risk-core: #a83b1e;
  --risk-moderate: #9a6b10;
  --risk-safe: #1f6b4a;

  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --measure: 62ch;
}

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "kern" 1;
}

a {
  color: inherit;
}

.wrap {
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- masthead ---------- */

.masthead {
  border-bottom: 1px solid var(--rule);
}

.masthead .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
}

.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.masthead nav {
  display: flex;
  gap: 1.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.masthead nav a {
  color: var(--muted);
  text-decoration: none;
}

.masthead nav a:hover {
  color: var(--ink);
}

/* ---------- hero ---------- */

.hero {
  padding-block: clamp(3rem, 9vw, 6rem) clamp(2rem, 6vw, 3.5rem);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  max-width: 18ch;
}

.lede {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--muted);
  max-width: 54ch;
  margin: 0 0 2rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--ground);
}

.btn:hover {
  background: transparent;
  color: var(--ink);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}

.btn--ghost:hover {
  background: var(--ink);
  color: var(--ground);
  border-color: var(--ink);
}

/* ---------- signature: the release strip ---------- */

.strip {
  margin-block: clamp(2rem, 6vw, 3rem) 0;
  background: var(--panel);
  border: 1px solid var(--rule);
  padding: clamp(1.25rem, 4vw, 2rem);
}

.strip__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.lane {
  margin-bottom: 1.75rem;
}

.lane:last-child {
  margin-bottom: 0;
}

.lane__label {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.lane__track {
  position: relative;
  height: 46px;
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background:
    repeating-linear-gradient(
      to right,
      var(--rule) 0 1px,
      transparent 1px 12.5%
    );
}

.tick {
  position: absolute;
  bottom: 0;
  width: 3px;
  height: 60%;
  background: var(--risk-safe);
  opacity: 0;
  animation: drop 0.4s ease-out forwards;
}

.tick--core {
  background: var(--risk-core);
  height: 92%;
}

.tick--moderate {
  background: var(--risk-moderate);
  height: 76%;
}

.lane--burst .tick {
  animation: none;
  opacity: 1;
}

@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.axis {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--muted);
  margin-top: 0.375rem;
}

.verdict {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.verdict--bad {
  color: var(--risk-core);
}

.verdict--good {
  color: var(--risk-safe);
}

/* ---------- sections ---------- */

section {
  padding-block: clamp(2.5rem, 7vw, 4.5rem);
  border-top: 1px solid var(--rule);
}

h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 1rem;
  max-width: 24ch;
}

h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
}

p {
  max-width: var(--measure);
}

.cols {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 2rem;
}

.cols p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.card {
  border-left: 2px solid var(--rule);
  padding-left: 1rem;
}

.card--core {
  border-left-color: var(--risk-core);
}

.card--moderate {
  border-left-color: var(--risk-moderate);
}

.card--safe {
  border-left-color: var(--risk-safe);
}

/* ---------- field table ---------- */

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

caption {
  text-align: left;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 0.75rem;
}

th,
td {
  text-align: left;
  padding: 0.625rem 0.75rem 0.625rem 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

th {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}

td:first-child {
  font-family: var(--mono);
  font-size: 0.8125rem;
}

.pill {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.125rem 0.5rem;
  border: 1px solid currentColor;
  white-space: nowrap;
}

.pill--core {
  color: var(--risk-core);
}

.pill--moderate {
  color: var(--risk-moderate);
}

.pill--safe {
  color: var(--risk-safe);
}

/* ---------- legal pages ---------- */

.legal {
  padding-block: clamp(2.5rem, 7vw, 4rem);
  border-top: none;
}

.legal h1 {
  font-size: clamp(1.875rem, 4.5vw, 2.5rem);
  max-width: none;
}

.legal h2 {
  font-size: 1.1875rem;
  margin-top: 2.5rem;
}

.legal ul {
  max-width: var(--measure);
  padding-left: 1.125rem;
}

.legal li {
  margin-bottom: 0.5rem;
}

.legal .updated {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--muted);
}

.placeholder {
  background: #fff3c4;
  padding: 0 0.25rem;
  font-family: var(--mono);
  font-size: 0.875em;
}

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--rule);
  padding-block: 2rem 3rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
}

footer a {
  color: var(--muted);
}

/* ---------- baseline quality ---------- */

a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .tick {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
