/* Devset AI public site: shared foundation.
   Palette and type come from the internal app's seller form (calculators/app/static/sell.css): cobalt on a faintly
   indigo-grey ground, white surfaces, hairline borders, Geist. Always light. Colour is used for meaning only.
   One addition: Geist Mono (same family, same licence) for anything that is a record, a field or a time. */
@font-face { font-family: "Geist"; src: url("fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900;
  font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900;
  font-style: normal; font-display: swap; }

:root {
  /* colour */
  --page: #f7f7fb;
  --card: #ffffff;
  --line: #e5e5ee;
  --line-2: #d2d3e0;
  --hover: #a6a8b9;
  --ink: #12142b;
  --ink-2: #51536c;
  --muted: #676a82;          /* text-safe grey: 4.9:1 on the page ground */
  --faint: #86889c;          /* decoration only, never body text */
  --accent: #293dd6;
  --accent-ink: #2436bc;
  --accent-deep: #1f2ea3;
  --accent-soft: #eceefe;
  --accent-line: #c9cffa;
  --picked: #f7f8ff;
  --warn: #7a4a00;
  --warn-bg: #fcf3e3;
  --warn-line: #efd9ae;
  --gap: #b3470a;            /* a missing part of a record */
  --gap-bg: #fdf0e8;
  --gap-line: #f4cdb5;

  /* type */
  --font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  --t-display: clamp(2.25rem, 1.35rem + 3.6vw, 3.75rem);
  --t-h2: clamp(1.75rem, 1.3rem + 1.8vw, 2.625rem);
  --t-h3: 1.1875rem;
  --t-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --t-body: 1rem;
  --t-small: 0.875rem;
  --t-mono: 0.8125rem;

  /* space: a 4px base, used in these steps only */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  --gutter: clamp(16px, 4vw, 40px);
  --measure: 62ch;
  --radius: 10px;
  --radius-lg: 14px;

  color-scheme: light;
  accent-color: var(--accent);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
html, body { margin: 0; }
body { background: var(--page); color: var(--ink); font: var(--t-body)/1.55 var(--font); -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11"; letter-spacing: -0.006em; min-height: 100vh; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3 { text-wrap: balance; font-weight: 620; }
p, li, dd { text-wrap: pretty; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
a, button, label, summary, input, select { -webkit-tap-highlight-color: transparent; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: #d5d9fc; color: var(--accent-deep); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
  text-decoration-color: rgba(41, 61, 214, .4); }
a:hover { text-decoration-color: currentColor; }

.mono { font-family: var(--mono); font-size: var(--t-mono); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--s4); top: -64px; z-index: 50; background: var(--card); color: var(--accent-deep);
  padding: var(--s3) var(--s4); border: 1px solid var(--accent); border-radius: var(--radius); font-weight: 600; }
.skip:focus { top: var(--s3); }

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

/* ---------------------------------------------------------------- header */
.site-head { position: sticky; top: 0; z-index: 20; background: var(--card); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: var(--s5); min-height: 64px; }
.wordmark { font-weight: 650; font-size: 1.0625rem; letter-spacing: -0.025em; color: var(--ink); text-decoration: none;
  white-space: nowrap; }
.wordmark span { font-weight: 450; color: var(--ink-2); }
.site-nav { display: flex; gap: var(--s5); margin-left: var(--s4); }
.site-nav a { color: var(--ink-2); text-decoration: none; font-size: 0.9375rem; padding: var(--s2) 0; }
.site-nav a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); }
.head-actions { margin-left: auto; display: flex; align-items: center; gap: var(--s3); }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 48px; padding: 0 var(--s5);
  border-radius: var(--radius); border: 1px solid transparent; font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--accent-deep); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); }
.btn-quiet { background: var(--card); color: var(--ink); border-color: var(--line-2); }
.btn-quiet:hover { border-color: var(--hover); }
.btn-small { min-height: 40px; padding: 0 var(--s4); font-size: 0.9375rem; }
.btn:disabled, .btn[aria-disabled="true"] { background: #cfd0da; color: #fff; cursor: default; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:focus-visible { outline-offset: 3px; border-radius: var(--radius); }
.linkish { all: unset; -webkit-tap-highlight-color: transparent; cursor: pointer; color: var(--accent-ink); font-weight: 500; text-decoration: underline;
  text-underline-offset: 3px; text-decoration-color: rgba(41, 61, 214, .4); }
.linkish:hover { text-decoration-color: currentColor; }
.linkish:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------------------------------------------------------------- footer */
.site-foot { border-top: 1px solid var(--line); background: var(--card); margin-top: var(--s9); }
.site-foot .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s5) var(--s7); padding-block: var(--s7); }
.foot-note { color: var(--muted); font-size: var(--t-small); max-width: 56ch; margin-top: var(--s3); }
.foot-links { display: grid; gap: var(--s2); align-content: start; font-size: 0.9375rem; }
.foot-links a { color: var(--ink-2); text-decoration: none; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }

@media (max-width: 860px) {
  .site-nav { display: none; }
  .site-head .wrap { min-height: 56px; gap: var(--s3); }
  .head-actions .btn-quiet { display: none; }
  .site-foot .wrap { grid-template-columns: minmax(0, 1fr); padding-block: var(--s6); }
  .site-foot { margin-top: var(--s8); }
}
@media (max-width: 380px) {
  .head-actions .btn { padding: 0 var(--s3); font-size: 0.875rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important;
    scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------------- the mark: three chevrons, each stronger than the last
   (raw records, cleaned, ready), drawn in whatever colour the wordmark sits in so it belongs to every background */
.logo { width: 30px; height: 21px; flex: none; fill: currentColor; color: var(--accent); }
.logo .l1 { opacity: .34; } .logo .l2 { opacity: .64; }
.wordmark, a.mark { display: inline-flex; align-items: center; gap: 9px; }
.wordmark span, a.mark span { font-weight: 650; font-size: 1.1875rem; letter-spacing: -0.035em; color: inherit; }

/* The header mark is set large, so the company's name reads at a glance (asked for on 23 Nov 2026). The footer keeps
   the smaller size. On phones it shares the row with the two page links, so it grows as far as the row allows. */
.site-head .logo { width: 46px; height: 32px; }
.site-head .wordmark { gap: 12px; }
.site-head .wordmark span { font-size: 1.8125rem; letter-spacing: -0.04em; }
.site-head .wrap { min-height: 72px; }
@media (max-width: 900px) {
  .site-head .logo { width: 36px; height: 25px; }
  .site-head .wordmark { gap: 9px; }
  .site-head .wordmark span { font-size: 1.4375rem; }
  .site-head .wrap { min-height: 60px; }
}
@media (max-width: 380px) {
  .site-head .logo { width: 31px; height: 22px; }
  .site-head .wordmark { gap: 8px; }
  .site-head .wordmark span { font-size: 1.25rem; }
  .site-head .site-nav { gap: 12px; }
}
