/* Freeboard Software — freeboardsoftware.com
   Recreated from the Claude Design handoff (Freeboard Software v2.dc.html).

   Two deliberate deviations from the prototype's inline styles, both required by
   PRD 7 (WCAG 2.1 AA):
   - --muted darkened #5a6b82 -> #556579 so muted text clears 4.5:1 on --sand.
   - --accent-text added: the prototype's #0f8a76 is 4.27:1 on white, below AA.
     --accent keeps the original value for decoration (dots, rules, bullets);
     --accent-text is the AA-safe variant used wherever accent carries text.
   Dark mode needs neither adjustment; there --accent-text == --accent. */

:root {
  --navy: #0e2240;
  --navyDeep: #081729;
  --navySoft: #1b3559;
  --paper: #f2f4f7;
  --card: #ffffff;
  --ink: #0e2240;
  --muted: #556579;
  --rule: #d8dee8;
  --accent: #0f8a76;
  --accent-text: #0c7563;
  --accentSoft: #e2f1ee;
  --sand: #eae5db;
  --onNavy: #e9eef6;
  --onNavyMuted: #93a6c2;

  --wrap: 1140px;
  --gut: 32px;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --display: 'Space Grotesk', var(--sans);
}

@media (prefers-color-scheme: dark) {
  :root {
    --navy: #0b1a2e;
    --navyDeep: #060f1c;
    --navySoft: #16294a;
    --paper: #0b1220;
    --card: #111a2b;
    --ink: #e6ecf5;
    --muted: #8fa1bb;
    --rule: #1f2c42;
    --accent: #3fc7ab;
    --accent-text: #3fc7ab;
    --accentSoft: #0f2c28;
    --sand: #1a1f2b;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-text); text-decoration: none; }
a:hover { color: var(--ink); text-decoration: underline; }

img { max-width: 100%; }

:where(a, button):focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 3px;
}

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 50;
  background: var(--card);
  color: var(--ink);
  padding: 12px 18px;
  border: 1px solid var(--rule);
  border-radius: 0 0 6px 0;
  font-size: 14px;
}
.skip:focus { left: 0; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--card);
  border-bottom: 1px solid var(--rule);
}

.site-header .wrap {
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 36px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}
.brand:hover { color: var(--ink); text-decoration: none; }
.brand img { width: 30px; height: 30px; display: block; }
/* The mark is dark artwork; on the dark header it needs the same inversion the
   footer and watermark marks already get, or it disappears into the background. */
@media (prefers-color-scheme: dark) {
  .brand img { filter: brightness(0) invert(1); }
}
.brand span {
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  align-items: center;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 7px 0;
  font-size: 14.5px;
  font-weight: 400;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--ink); text-decoration: none; }
.site-nav a[aria-current='page'] {
  font-weight: 600;
  color: var(--ink);
  border-bottom-color: var(--accent);
}

/* Scoped to beat ".site-nav a", which is more specific than a bare ".nav-cta"
   and would otherwise strip the button's horizontal padding. */
.site-nav a.nav-cta {
  background: var(--navy);
  color: #fff;
  border-radius: 5px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  border-bottom: 0;
  flex-shrink: 0;
}
.site-nav a.nav-cta:hover { background: var(--navySoft); color: #fff; }

/* ---------- path bar ---------- */

.pathbar {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.pathbar .wrap {
  padding-block: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
}
.pathbar .host { color: var(--muted); }
.pathbar .path { color: var(--ink); }
.pathbar .meta { margin-left: auto; }
.pathbar .badge {
  margin-left: auto;
  padding: 2px 8px;
  border: 1px solid var(--muted);
  border-radius: 3px;
}

main { flex: 1; }

/* ---------- home: hero ---------- */

.hero {
  background: var(--navy);
  color: var(--onNavy);
  position: relative;
  overflow: hidden;
}
.hero .watermark {
  position: absolute;
  right: -90px;
  top: -70px;
  width: 520px;
  height: 520px;
  opacity: 0.07;
  filter: brightness(0) invert(1);
  pointer-events: none;
}
.hero-inner { padding-block: 96px 88px; position: relative; }

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--onNavyMuted);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 100px;
  padding: 6px 14px;
  margin-bottom: 34px;
}
.eyebrow-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 0 0 26px;
  max-width: 920px;
  text-wrap: pretty;
  color: #fff;
}
.hero .lead {
  font-size: 18.5px;
  line-height: 1.62;
  color: var(--onNavyMuted);
  margin: 0 0 38px;
  max-width: 640px;
  text-wrap: pretty;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-block;
  border: 0;
  border-radius: 6px;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { opacity: 0.88; color: var(--navy); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  font-weight: 500;
}
.btn-ghost:hover { border-color: #fff; color: #fff; }

.stats { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.stats .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
}
.stat {
  padding: 26px 24px 26px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}
.stat .n {
  font-family: var(--display);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}
.stat .l {
  font-size: 13px;
  line-height: 1.45;
  color: var(--onNavyMuted);
  margin-top: 5px;
}

/* ---------- home: pillars ---------- */

.pillars { padding-block: 80px 20px; }
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
}
.pillar {
  background: var(--card);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.pillar .n {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent-text);
}
.pillar h3 {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}
.pillar p {
  margin: 0;
  font-size: 15px;
  line-height: 1.62;
  color: var(--muted);
  text-wrap: pretty;
}

/* ---------- home: trust ---------- */

.trust { padding-block: 60px; }
.trust-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: clamp(26px, 4vw, 52px) clamp(20px, 3.5vw, 44px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 52px;
  align-items: center;
}
.trust-card h2 {
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 0 0 18px;
  text-wrap: pretty;
}
.trust-card p {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.66;
  color: var(--muted);
  max-width: 440px;
  text-wrap: pretty;
}
.btn-accent {
  display: inline-block;
  background: var(--accentSoft);
  color: var(--accent-text);
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 11px 18px;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
}
.btn-accent:hover { background: var(--accent); color: #fff; text-decoration: none; }

.trust-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
}
.trust-list div {
  background: var(--paper);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.trust-list .k {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent-text);
  width: 34px;
  flex-shrink: 0;
}
.trust-list .v { font-size: 15.5px; font-weight: 500; }

/* ---------- home: app preview ---------- */

.apps-preview { padding-block: 20px 40px; }
.apps-preview .head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.apps-preview .head h2 {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}
.apps-preview .head a { font-size: 14px; }

.app-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.app-card .body { padding: 38px 36px; }
.app-card .title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.app-card .title h3 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}
.tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--sand);
  border-radius: 3px;
  padding: 4px 8px;
  color: var(--muted);
}
.app-card .body > p {
  margin: 0 0 20px;
  font-size: 15.5px;
  line-height: 1.66;
  color: var(--muted);
  text-wrap: pretty;
}
.dot-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dot-list li {
  font-size: 14.5px;
  line-height: 1.55;
  padding-left: 18px;
  position: relative;
  color: var(--ink);
}
.dot-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--accent);
  border-radius: 50%;
}

.app-card .visual {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.app-card .visual img {
  width: 112px;
  height: 112px;
  border-radius: 22px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}
.app-card .visual .hairline {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
}
.app-card .visual .caption {
  position: absolute;
  bottom: 20px;
  left: 24px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--onNavyMuted);
}

/* ---------- home: company band ---------- */

.company {
  background: var(--sand);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.company .wrap {
  padding-block: 64px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 52px;
  align-items: start;
}
.company .eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}
.company h2 {
  font-family: var(--display);
  font-size: 30px;
  line-height: 1.14;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 12px 0 0;
  text-wrap: pretty;
}
.company .col { display: flex; flex-direction: column; gap: 18px; }
.company p {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.68;
  color: var(--ink);
  text-wrap: pretty;
}
.btn-navy {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  border-radius: 6px;
  padding: 12px 18px;
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
}
.btn-navy:hover { background: var(--navySoft); color: #fff; text-decoration: none; }
.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 12px 18px;
  font-size: 14.5px;
  text-decoration: none;
}
.btn-outline:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }

/* ---------- document pages ---------- */

.doc-header {
  background: var(--navy);
  color: var(--onNavy);
  position: relative;
  overflow: hidden;
}
.doc-header .watermark {
  position: absolute;
  right: -40px;
  bottom: -120px;
  width: 300px;
  height: 300px;
  opacity: 0.07;
  filter: brightness(0) invert(1);
  pointer-events: none;
}
.doc-header .wrap { padding-block: 60px 56px; position: relative; }
.doc-header .eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--onNavyMuted);
  margin-bottom: 16px;
}
.doc-header h1 {
  font-family: var(--display);
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.032em;
  font-weight: 600;
  margin: 0;
  max-width: 820px;
  color: #fff;
  text-wrap: pretty;
}
.doc-header .lead {
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--onNavyMuted);
  margin: 20px 0 0;
  max-width: 640px;
  text-wrap: pretty;
}

.doc-body { padding-block: 56px 88px; }
.prose { max-width: 730px; }

.prose h2 {
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.28;
  letter-spacing: -0.022em;
  font-weight: 600;
  margin: 46px 0 12px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  text-wrap: pretty;
}
.prose > p { font-size: 16px; line-height: 1.7; margin: 0 0 15px; text-wrap: pretty; }
.prose .note {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 16px;
  background: var(--sand);
  border-radius: 6px;
  padding: 14px 16px;
}
.prose ul.rule-list {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.prose ul.rule-list li {
  font-size: 16px;
  line-height: 1.62;
  padding-left: 20px;
  position: relative;
}
.prose ul.rule-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 1px;
  background: var(--accent);
}

.callout {
  background: var(--navy);
  color: var(--onNavy);
  border-radius: 10px;
  padding: 30px 32px;
  margin: 10px 0 32px;
}
.callout .t {
  font-family: var(--display);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  color: #fff;
}
.callout .items { display: flex; flex-direction: column; gap: 7px; }
.callout .items div {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--onNavyMuted);
}
.callout .btn-light {
  margin-top: 22px;
  border-radius: 5px;
  padding: 10px 17px;
  font-size: 14px;
}

.doc-card {
  border: 1px solid var(--rule);
  background: var(--card);
  border-radius: 10px;
  padding: 26px 28px;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.doc-card .title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.doc-card .title h3 {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}
.doc-card p { margin: 0; font-size: 15.5px; line-height: 1.62; color: var(--muted); }

/* Label/value pairs. The prototype used auto-fit here, which resolves to an odd
   number of columns at this width and silently pairs each dd with the next dt's
   label; the pair columns are therefore explicit. */
.kv {
  margin: 0 0 24px;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(0, 1.6fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
}
.kv dt { background: var(--card); padding: 12px 15px; font-size: 13.5px; color: var(--muted); }
.kv dd {
  background: var(--card);
  padding: 12px 15px;
  margin: 0;
  font-size: 14px;
  font-family: var(--mono);
  overflow-wrap: anywhere;
}

.table-wrap {
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow-x: auto;
  margin: 0 0 26px;
  background: var(--card);
}
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table-wrap th {
  text-align: left;
  padding: 12px 15px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  border-bottom: 1px solid var(--rule);
}
.table-wrap td {
  padding: 13px 15px;
  border-top: 1px solid var(--rule);
  vertical-align: top;
  line-height: 1.55;
}

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

.site-footer { background: var(--navyDeep); color: var(--onNavy); }
.site-footer .wrap {
  padding-block: 56px;
  display: flex;
  flex-direction: column;
  gap: 34px;
}
.footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--onNavyMuted);
  max-width: 280px;
}
.footer-brand img {
  width: 34px;
  height: 34px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.footer-brand .name {
  color: #fff;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15.5px;
}
.footer-brand a { color: var(--onNavy); }
.footer-brand a:hover { color: #fff; }

.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--onNavyMuted);
}
.footer-col .links {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: flex-start;
}
.footer-col .links a { font-size: 13.5px; color: var(--onNavyMuted); }
.footer-col .links a:hover { color: #fff; }

.lang-row { display: flex; gap: 8px; flex-wrap: wrap; }
.lang-row a {
  background: transparent;
  color: var(--onNavyMuted);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  padding: 7px 12px;
  font-size: 13px;
  text-decoration: none;
}
.lang-row a:hover { border-color: #fff; color: #fff; text-decoration: none; }
.lang-row a[aria-current='true'] {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.trademark {
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--onNavyMuted);
  max-width: 760px;
}

/* ---------- responsive (PRD 7: 320px to 1920px) ---------- */

@media (max-width: 860px) {
  :root { --gut: 20px; }

  .site-header .wrap {
    flex-wrap: wrap;
    gap: 14px 24px;
    padding-block: 12px;
  }
  .site-nav {
    margin-left: 0;
    width: 100%;
    gap: 18px;
    row-gap: 10px;
  }
  .nav-cta { margin-left: auto; }

  .hero-inner { padding-block: 60px 52px; }
  .hero .lead { font-size: 17px; }
  .stat { padding: 20px 18px 20px 0; }

  .pillars { padding-block: 48px 16px; }
  .pillar { padding: 26px 24px; }
  .trust { padding-block: 40px; }
  .trust-card { gap: 32px; }
  .apps-preview { padding-block: 16px 32px; }
  .app-card .body { padding: 28px 24px; }
  .company .wrap { padding-block: 44px; gap: 28px; }
  .company h2 { font-size: 26px; }

  .doc-header .wrap { padding-block: 44px 40px; }
  .doc-body { padding-block: 40px 64px; }
  .callout { padding: 24px 22px; }
  .callout .t { font-size: 22px; }

  .site-footer .wrap { padding-block: 44px; gap: 28px; }
  .footer-cols { gap: 32px; }
}

@media (max-width: 420px) {
  .kv { grid-template-columns: 1fr; }
  .site-nav { gap: 14px; }
  .site-nav a { font-size: 13.5px; }
  .brand span { font-size: 15.5px; }
  .pathbar .meta, .pathbar .badge { display: none; }
  .app-card .visual { min-height: 200px; }
}

/* ---------- print: the legal pages get sent around as PDFs ---------- */

@media print {
  .site-header, .pathbar, .site-footer, .skip { display: none; }
  body { background: #fff; color: #000; }
  .doc-header { background: #fff; color: #000; }
  .doc-header h1, .doc-header .lead, .doc-header .eyebrow { color: #000; }
  .doc-header .watermark { display: none; }
  .prose { max-width: none; }
  .prose h2 { page-break-after: avoid; }
  .table-wrap, .callout, .kv { page-break-inside: avoid; }
  .callout { background: #fff; color: #000; border: 1px solid #000; }
  .callout .t, .callout .items div { color: #000; }
}
