/* VeloUtils — veloutils.app
   Accent values match the app's AccentColor pair: #E0530A light, #FB923C dark.
   Both clear 3:1 against their own background, which is the bar for a non-text use. */

:root {
  --bg: #ffffff;
  --bg-sunken: #f6f6f7;
  --text: #1c1c1e;
  --text-dim: #5c5c61;
  --rule: #e2e2e5;
  --accent: #e0530a;
  --link: #c44708;
  --accent-soft: #fff4ec;
  --code-bg: #f2f2f4;
  --glow: rgba(224, 83, 10, 0.13);
  --shot-edge: #d7d7dc;
  --max: 46rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17171a;
    --bg-sunken: #1f1f23;
    --text: #ececf0;
    --text-dim: #a0a0a8;
    --rule: #34343a;
    --accent: #fb923c;
    --link: #fb923c;
    --accent-soft: #2a1f16;
    --code-bg: #26262b;
    --glow: rgba(251, 146, 60, 0.16);
    --shot-edge: #3a3a41;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- focus ---- */
/* Chrome's default ring is a static rgb(0,95,204), which measures 2.99:1 against the
   dark page background — just under the 3:1 that WCAG 1.4.11 asks of a focus
   indicator. The accent clears 3:1 in both palettes. */

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

/* ---- header ---- */

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

.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 62px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}

.brand img { width: 26px; height: 26px; border-radius: 6px; display: block; }

.site-head nav { display: flex; gap: 20px; }

.site-head nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 15px;
}

.site-head nav a:hover,
.site-head nav a[aria-current="page"] { color: var(--link); }

/* ---- hero ---- */
/* Two columns from 1000px: copy left, app screenshot right, bleeding off the
   trailing edge. Below that it stacks and the shot sits inside the gutter. */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
  padding: 76px 0 84px;
}

/* A soft accent wash behind the screenshot. Decorative only, so it is a
   pseudo-element rather than an image the CSP would have to allow. */
.hero::before {
  content: "";
  position: absolute;
  top: -12%;
  right: -8%;
  width: 62%;
  height: 92%;
  background: radial-gradient(closest-side, var(--glow) 0%, transparent 100%);
  pointer-events: none;
}

.hero > .wrap {
  position: relative;
  max-width: 78rem;
  display: grid;
  gap: 48px;
  align-items: center;
}

.hero-copy { max-width: 32rem; }

.eyebrow {
  display: inline-block;
  margin: 0 0 20px;
  padding: 6px 13px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--bg-sunken);
  color: var(--text-dim);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.hero h1 {
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
}

.hero p.lede {
  font-size: 19px;
  color: var(--text-dim);
  margin: 0 0 26px;
}

/* Claims list. Each item is checkable against the app, not marketing filler. */
.claims { list-style: none; padding: 0; margin: 0 0 30px; }

.claims li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin-bottom: 11px;
  font-size: 16.5px;
}

.claims .tick {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--link);
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

.status {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--link);
  font-size: 15px;
  font-weight: 600;
}

.meta-line {
  margin: 14px 0 0;
  color: var(--text-dim);
  font-size: 14px;
}

/* ---- the app screenshot ---- */

.shot { margin: 0; min-width: 0; }

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--shot-edge);
  border-radius: 12px;
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.45);
}

.shot figcaption {
  margin-top: 12px;
  color: var(--text-dim);
  font-size: 13.5px;
  /* The figure bleeds past the trailing edge; the caption must not, or its last
     words are clipped off-screen. Measured at 1440px: 244px of it was cut. */
  max-width: 30rem;
}

@media (min-width: 1000px) {
  .hero > .wrap {
    grid-template-columns: minmax(20rem, 27rem) 1fr;
    gap: 56px;
  }
  /* Let the shot run past the container's trailing edge. */
  .shot { margin-right: calc(50% - 50vw); }
  .shot img { border-top-right-radius: 0; border-bottom-right-radius: 0; border-right: 0; }
}

/* ---- content ---- */

main { padding: 56px 0 24px; }

h2 {
  font-size: 26px;
  letter-spacing: -0.01em;
  margin: 48px 0 14px;
  padding-top: 8px;
}

main > .wrap > h2:first-child { margin-top: 0; }

h3 { font-size: 19px; margin: 32px 0 8px; }

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

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

li { margin-bottom: 6px; }

a { color: var(--link); }

code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 0.88em;
  background: var(--code-bg);
  padding: 0.12em 0.38em;
  border-radius: 4px;
}

.page-title { margin: 0 0 6px; font-size: 36px; letter-spacing: -0.02em; }

.page-date { color: var(--text-dim); font-size: 15px; margin-bottom: 40px; }

/* ---- the summary callout, used once per legal page ---- */

.callout {
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  background: var(--bg-sunken);
  border-radius: 8px;
  padding: 18px 20px;
  margin: 0 0 36px;
}

.callout p:last-child { margin-bottom: 0; }

/* ---- tool cards ---- */

.tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 16px;
  margin: 24px 0 8px;
  padding: 0;
  list-style: none;
}

.tools li {
  background: var(--bg-sunken);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 20px;
  margin: 0;
}

.tools h3 { margin: 0 0 6px; font-size: 17px; }

.tools p { margin: 0; font-size: 15px; color: var(--text-dim); }

/* ---- key/value table ---- */

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 0 0 16px;
}

th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

th { font-weight: 600; white-space: nowrap; }

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

.site-foot {
  border-top: 1px solid var(--rule);
  margin-top: 64px;
  padding: 28px 0 48px;
  color: var(--text-dim);
  font-size: 14px;
}

.site-foot .wrap { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }

.site-foot a {
  color: var(--text-dim);
  display: inline-block;
  padding: 5px 0;
}

.site-foot a:hover { color: var(--link); }

.site-foot .spacer { margin-left: auto; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 48px 0 56px; }
  .hero p.lede { font-size: 17.5px; }
  .claims li { font-size: 16px; }
  .page-title { font-size: 29px; }
  .site-foot .spacer { margin-left: 0; width: 100%; }
}
