/* ============================================================================
   Tesboard — static site design system
   Visual language adapted from the odikapps legal pages (hero + numbered
   article + FAQ + contact card), re-skinned as a dark instrument cluster.
   Colours mirror the app's Clearcoat palette. System fonts only: no web-font
   requests, no trackers. No inline styles anywhere (CSP: style-src 'self').
   ============================================================================ */

:root {
  color-scheme: dark light;

  /* Dark (default) — Clearcoat dark tokens */
  --bg:          #000000;
  --bg-tint:     #0E0E10;
  --card:        #1C1C1E;
  --ink:         #FFFFFF;
  --ink-muted:   #B4B4BB;
  --ink-soft:    #98989F;
  --line:        rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.22);

  --accent:      #3A86FF;   /* Clearcoat "signal" (dark) */
  --accent-text: #6FA6FF;   /* accent used as text on dark surfaces */
  --accent-soft: #16243F;
  --on-accent:   #FFFFFF;
  --pill-bg:     #0B6BFF;
  --live:        #30D158;
  --amber:       #E0A93B;
  --amber-soft:  #2E2410;

  --header-bg:   rgba(0, 0, 0, 0.82);

  --font-body:    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
                  Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
                  Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono:    ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas,
                  "Liberation Mono", monospace;

  --max-content: 1120px;
  --rail:        210px;
  --side-pad:    clamp(16px, 4vw, 48px);
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: light) {
  :root {
    /* Clearcoat light tokens */
    --bg:          #F2F2F7;
    --bg-tint:     #E9E9EE;
    --card:        #FFFFFF;
    --ink:         #1C1C1E;
    --ink-muted:   #48484E;
    --ink-soft:    #5E5E64;
    --line:        rgba(28, 28, 30, 0.10);
    --line-strong: rgba(28, 28, 30, 0.22);

    --accent:      #0B6BFF;
    --accent-text: #0A5AD6;
    --accent-soft: #EAF1FF;
    --amber:       #8A6500;
    --amber-soft:  #FBF1D8;
    --live:        #1D9C42;

    --header-bg:   rgba(242, 242, 247, 0.86);
  }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-wrap: break-word;
}

a { color: inherit; }
img, svg { display: block; max-width: 100%; }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--pill-bg);
  color: var(--on-accent);
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 12px var(--side-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 20px;
  min-height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.brand__mark { width: 30px; height: 30px; }

.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 14px;
  font-weight: 600;
  min-width: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 18px;
  list-style: none;
}

.nav__links a {
  color: var(--ink-muted);
  text-decoration: none;
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
  transition: color 200ms var(--ease);
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 1px;
  height: 2px;
  background: var(--accent);
  transition: right 320ms var(--ease);
}

.nav__links a:hover,
.nav__links a[aria-current="page"] { color: var(--ink); }
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { right: 0; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 9999px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.lang-switch:hover { border-color: var(--accent); }

@media (max-width: 560px) {
  .site-header__inner { padding-top: 10px; padding-bottom: 10px; }
  .nav { width: 100%; justify-content: space-between; }
}

/* ---------- Pills / buttons ---------- */
.cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  background: var(--pill-bg);
  color: var(--on-accent);
  border-radius: 9999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.cta-pill:hover {
  transform: scale(1.03);
  
}
.cta-pill:active { transform: scale(0.97); }
.cta-pill svg { width: 18px; height: 18px; flex-shrink: 0; }
.cta-pill--lg { padding: 14px 26px; font-size: 16px; }



/* ---------- Page hero (legal pages) ---------- */
.hero {
  position: relative;
  max-width: var(--max-content);
  margin: 0 auto;
  padding: clamp(40px, 9vw, 104px) var(--side-pad) clamp(32px, 6vw, 64px);
}


.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 8.5vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-top: clamp(20px, 4vw, 32px);
  max-width: 15ch;
}


.hero__meta {
  margin-top: clamp(24px, 5vw, 40px);
  display: flex;
  flex-wrap: wrap;
  gap: 18px clamp(20px, 4vw, 44px);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.hero__meta b {
  display: block;
  margin-top: 6px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  text-transform: none;
  letter-spacing: -0.005em;
}

/* ---------- Article (TOC rail + content) ---------- */
.article {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 var(--side-pad) clamp(64px, 10vw, 120px);
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
}

@media (max-width: 900px) {
  .article { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}

.toc {
  position: sticky;
  top: 84px;
  align-self: start;
  font-size: 13px;
  font-weight: 600;
  border-top: 1px solid var(--line-strong);
  padding-top: 18px;
}

.toc__title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.toc ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.toc a {
  color: var(--ink-muted);
  text-decoration: none;
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 4px 0;
  transition: color 200ms var(--ease);
}
.toc a:hover { color: var(--ink); }

.toc .num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--accent-text);
  font-size: 11px;
}

@media (max-width: 900px) {
  .toc { position: static; padding: 20px 0 4px; }
  .toc ol { flex-direction: row; flex-wrap: wrap; gap: 4px 18px; }
}

.content {
  max-width: 700px;
  min-width: 0;
  font-size: 16px;
  line-height: 1.65;
}

.content section { scroll-margin-top: 90px; }

.content section + section {
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: clamp(40px, 6vw, 60px);
  border-top: 1px solid var(--line);
}

.content section[data-num]::before {
  content: attr(data-num);
  display: block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  font-size: clamp(40px, 5.5vw, 64px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent-text);
  margin-bottom: 18px;
}

.content h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
  max-width: 24ch;
}

.content h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin-top: 30px;
  margin-bottom: 10px;
}

.content p {
  color: var(--ink-muted);
  margin-bottom: 16px;
}
.content p:last-child { margin-bottom: 0; }

.content strong, .content b { color: var(--ink); font-weight: 700; }

.content code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--bg-tint);
  border: 1px solid var(--line);
}

.content a {
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.content a:hover { text-decoration-thickness: 2px; }

.content ul, .content ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--ink-muted);
}

.content ul li {
  position: relative;
  padding-left: 24px;
}

.content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 12px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.content ol { counter-reset: olist; }

.content ol li {
  position: relative;
  padding-left: 40px;
  counter-increment: olist;
  min-height: 24px;
}

.content ol li::before {
  content: counter(olist, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-text);
  background: var(--accent-soft);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 6px;
}

.lead {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
  max-width: 58ch;
}
.content p.lead { color: var(--ink); }
.content p.lead:not(:last-child) { margin-bottom: 32px; }

/* Callouts */
.callout {
  margin-top: 24px;
  padding: 20px 22px;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 14px;
}

.callout strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 6px;
}

.content .callout p { color: var(--ink); }

.callout--warn {
  background: var(--amber-soft);
  border-left-color: var(--amber);
}
.callout--warn strong { color: var(--amber); }

/* Table */
.table-wrap {
  overflow-x: auto;
  margin: 8px 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

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

th, td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-muted);
}

th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--bg-tint);
}

tr:last-child td { border-bottom: 0; }
td:first-child { color: var(--ink); font-weight: 600; }

/* FAQ */
.faq { display: flex; flex-direction: column; }

.faq__item {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.faq__item:last-child { border-bottom: 1px solid var(--line); }

.content .faq__q {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.faq__q::before {
  /* small gauge-needle marker, pure CSS (no data: URIs needed) */
  content: "";
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 4px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  border-bottom-color: transparent;
  transform: rotate(45deg);
}

.faq__a { padding-left: 32px; }
.faq__a > :last-child { margin-bottom: 0; }

@media (max-width: 480px) {
  .faq__a { padding-left: 0; }
}

/* Contact card — always the dark "instrument panel" */
.contact-card {
  margin-top: 24px;
  padding: clamp(22px, 4vw, 30px);
  background: var(--surface);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
}

.contact-card__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6FA6FF;
  margin-bottom: 12px;
}

.content .contact-card .contact-card__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 3.4vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin: 0 0 14px;
  overflow-wrap: anywhere;
}

.content .contact-card p {
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
  margin-bottom: 12px;
}
.content .contact-card p:last-child { margin-bottom: 0; }
.content .contact-card ul { color: rgba(255, 255, 255, 0.84); font-size: 14px; margin: 4px 0 16px; }
.content .contact-card a { color: #6FA6FF; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-tint);
}

.site-footer__inner {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: clamp(36px, 5vw, 60px) var(--side-pad);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px 40px;
  align-items: end;
}

@media (max-width: 720px) {
  .site-footer__inner { grid-template-columns: minmax(0, 1fr); }
}

.footer__mark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(48px, 10vw, 120px);
  line-height: 0.9;
  letter-spacing: -0.045em;
}
.footer__mark .accent { color: var(--accent-text); }

.footer__meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
  text-align: right;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: flex-end;
  list-style: none;
}

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

.footer__copy {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 500;
}

.footer__disclaimer {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.55;
  max-width: 90ch;
}

@media (max-width: 720px) {
  .footer__meta { text-align: left; }
  .footer__legal { justify-content: flex-start; }
}

/* ============================================================================
   Landing page
   ============================================================================ */

.lp-hero {
  position: relative;
  max-width: var(--max-content);
  margin: 0 auto;
  padding: clamp(40px, 8vw, 96px) var(--side-pad) clamp(40px, 7vw, 80px);
}

.lp-hero > div { max-width: 760px; }

.lp-hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 7vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-top: clamp(20px, 4vw, 30px);
  max-width: 14ch;
}

.lp-hero__sub {
  margin-top: clamp(18px, 3vw, 26px);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 46ch;
}

.lp-hero__cta {
  margin-top: clamp(26px, 4vw, 38px);
  display: flex;
  align-items: center;
  gap: 14px 20px;
  flex-wrap: wrap;
}

.lp-hero__platform {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}











/* Section title */
.lp-section {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 88px) var(--side-pad);
}

.lp-section__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 14px 0 clamp(26px, 4vw, 44px);
  max-width: 20ch;
}

.lp-features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: clamp(14px, 2.5vw, 22px);
}

.lp-feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(20px, 2.5vw, 26px);
}


.lp-feature h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}

.lp-feature p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-muted);
}

/* Privacy card */
.lp-privacy__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(26px, 5vw, 56px);
}

.lp-privacy__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 14px 0 16px;
  max-width: 22ch;
}

.lp-privacy__body {
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 64ch;
  margin-bottom: 22px;
}

.lp-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  list-style: none;
}

.lp-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-text);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  padding-bottom: 1px;
  transition: gap 200ms var(--ease);
}
.lp-link:hover { gap: 12px; }

.lp-final {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 112px) var(--side-pad) clamp(64px, 10vw, 128px);
  text-align: center;
}

.lp-final__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 5vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 auto clamp(26px, 4vw, 38px);
  max-width: 18ch;
}

.lp-final__note {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
}

/* 404 */
.notfound {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: clamp(56px, 12vw, 140px) var(--side-pad);
}
.notfound .notfound__code {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: clamp(64px, 16vw, 160px);
  line-height: 1;
  color: var(--accent-text);
  letter-spacing: -0.04em;
}
.notfound p { color: var(--ink-muted); margin: 16px 0 24px; max-width: 52ch; }
.notfound .lp-links { margin-top: 16px; }

::selection { background: var(--accent); color: #FFFFFF; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.lp-soon { font-weight: 600; font-size: 16px; color: var(--ink); }
