/* ==========================================================================
   txscout.io
   Light, blue, two pages. This is an explainer for a personal tool, not a
   product page, so the type does the work and there is almost no chrome.
   ========================================================================== */

:root {
  --bg:      #ffffff;
  --panel:   #f6f9fd;
  --panel-2: #eef3fa;
  --line:    #e3eaf3;
  --line-2:  #cbd7e6;

  --ink:  #0a1020;
  --mut:  #55637a;
  --dim:  #8593a8;

  --ac:      #2563eb;
  --ac-dark: #1d4ed8;
  --ac-soft: #eff5ff;
  --ac-line: #c2d6f8;

  --font: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease:  cubic-bezier(0.23, 1, 0.32, 1);
  --fast:  180ms;
  --press: 140ms;

  --r:    14px;
  --r-lg: 22px;
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.0625rem);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--ac); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--ac); color: #fff; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.03em; font-weight: 600; text-wrap: balance; }
p { text-wrap: pretty; }

main { flex: 1 0 auto; }

.wrap { width: 100%; max-width: 1080px; margin-inline: auto; padding-inline: 20px; }
@media (min-width: 760px) { .wrap { padding-inline: 32px; } }

.narrow { max-width: 700px; }

.skip {
  position: absolute; left: 16px; top: 16px; z-index: 100;
  background: var(--ac); color: #fff; font-weight: 600;
  padding: 8px 16px; border-radius: 999px; font-size: 0.875rem;
  transform: translateY(-200%);
  transition: transform var(--fast) var(--ease);
}
.skip:focus { transform: translateY(0); }


/* ---------------------------------------------------------------- nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }

.mark { display: inline-flex; align-items: center; gap: 10px; }

.mark-badge {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--ac); color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: 0.8125rem; letter-spacing: -0.02em;
}

.mark-name { font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.02em; }
.mark-name span { color: var(--ac); }

.nav-links { display: flex; align-items: center; gap: 4px; }

.nav-link {
  font-size: 0.9375rem; font-weight: 500; color: var(--mut);
  padding: 7px 13px; border-radius: 999px;
  transition: color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}

.nav-link[aria-current="page"] { color: var(--ink); background: var(--panel-2); }

@media (hover: hover) and (pointer: fine) {
  .nav-link:hover { color: var(--ink); background: var(--panel); }
}


/* -------------------------------------------------------------- shared --- */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 18px;
}

.lede {
  color: var(--mut);
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.1875rem);
  max-width: 64ch;
  margin-top: 20px;
}

.body { color: var(--mut); max-width: 66ch; }
.body + .body { margin-top: 18px; }
.body strong { color: var(--ink); font-weight: 600; }

.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.band { background: var(--panel); border-block: 1px solid var(--line); }

.section h2 { font-size: clamp(1.5rem, 1.15rem + 1.8vw, 2.25rem); }
.section h2 em { font-style: normal; color: var(--ac); }
.section .lede { margin-bottom: 8px; }


/* ---------------------------------------------------------------- hero --- */
.hero { padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }

.hero h1 {
  font-size: clamp(2.25rem, 1.4rem + 3.8vw, 4rem);
  letter-spacing: -0.042em;
  line-height: 1.02;
}

.shot-wrap { margin-top: clamp(2.5rem, 5vw, 4rem); }

.shot {
  margin: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #0a0d12;
  box-shadow: 0 1px 2px rgba(10, 16, 32, .06), 0 26px 60px rgba(10, 16, 32, .14);
}

.shot img { width: 100%; }

.shot-cap {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--dim);
  text-align: center;
}


/* ---------------------------------------------------------------- grid --- */
.grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: 38px;
}

@media (min-width: 720px) { .grid { grid-template-columns: 1fr 1fr; } }

.cell {
  background: var(--bg);
  padding: clamp(22px, 3.2vw, 34px);
  transition: background-color var(--fast) var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .cell:hover { background: var(--panel); }
}

.num {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  color: var(--ac);
  display: block;
  margin-bottom: 12px;
}

.cell h3 { font-size: 1.125rem; letter-spacing: -0.02em; }
.cell p { color: var(--mut); font-size: 0.9375rem; margin-top: 10px; }


/* ------------------------------------------------------------- listing --- */
.rows { margin-top: 32px; border-top: 1px solid var(--line); }

.row {
  display: grid;
  gap: 6px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 780px) {
  .row { grid-template-columns: minmax(180px, 240px) 1fr; gap: 32px; align-items: baseline; }
}

.row h3 { font-size: 1.0625rem; letter-spacing: -0.015em; }
.row p { color: var(--mut); font-size: 0.9375rem; max-width: 62ch; }


/* ---------------------------------------------------------------- case --- */
.case {
  margin-top: 34px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: clamp(22px, 3.2vw, 36px);
  max-width: 800px;
}

.case-head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.case-head h3 { font-size: 1.375rem; letter-spacing: -0.025em; }

.case-tag {
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--ac-dark);
  background: var(--ac-soft);
  border: 1px solid var(--ac-line);
  padding: 3px 10px;
  border-radius: 999px;
}

.case > p { color: var(--mut); margin-top: 14px; max-width: 62ch; }

.case-facts {
  display: grid;
  gap: 18px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.case-facts dt {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 5px;
}

.case-facts dd { margin: 0; font-size: 0.9375rem; font-weight: 500; }

.note { margin-top: 22px; color: var(--dim); font-size: 0.875rem; font-family: var(--mono); }


/* ---------------------------------------------------------------- btns --- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 22px;
  border: 1px solid transparent; border-radius: 999px;
  font-size: 0.9375rem; font-weight: 600; font-family: inherit;
  white-space: nowrap; cursor: pointer;
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease),
    border-color var(--fast) var(--ease), transform var(--press) var(--ease);
}

.btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--ac); color: #fff; }
.btn-ghost { border-color: var(--line-2); color: var(--ink); }

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--ac-dark); }
  .btn-ghost:hover { background: var(--panel); border-color: var(--dim); }
}


/* ------------------------------------------------------------- contact --- */
.contact-grid { display: grid; gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-top: 36px; }

@media (min-width: 720px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.contact-cell { background: var(--bg); padding: clamp(22px, 3.2vw, 32px); }

.contact-cell .k {
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--dim); display: block; margin-bottom: 10px;
}

.contact-cell a.v {
  font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em;
  color: var(--ac); border-bottom: 1px solid var(--ac-line);
  transition: border-color var(--fast) var(--ease), color var(--fast) var(--ease);
  word-break: break-word;
}

@media (hover: hover) and (pointer: fine) {
  .contact-cell a.v:hover { color: var(--ac-dark); border-bottom-color: var(--ac); }
}

.contact-cell .v.static {
  font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink);
}

.contact-cell p { color: var(--mut); font-size: 0.9375rem; margin-top: 10px; }

.talk { margin-top: 34px; }

.talk li {
  position: relative;
  padding: 11px 0 11px 26px;
  border-bottom: 1px solid var(--line);
  color: var(--mut);
  font-size: 0.9375rem;
}

.talk li::before {
  content: "";
  position: absolute;
  left: 2px; top: 1.28em;
  width: 9px; height: 1.5px;
  background: var(--ac);
}

.talk li:last-child { border-bottom: 0; }
.talk li strong { color: var(--ink); font-weight: 600; }


/* ---------------------------------------------------------------- foot --- */
.foot { border-top: 1px solid var(--line); padding-block: 26px; flex-shrink: 0; }

.foot-in {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-family: var(--mono); font-size: 0.75rem; color: var(--dim);
}

.foot a { color: var(--mut); border-bottom: 1px solid var(--ac-line); }

@media (hover: hover) and (pointer: fine) {
  .foot a:hover { color: var(--ac); border-bottom-color: var(--ac); }
}


/* -------------------------------------------------------------- motion --- */
.js .reveal { opacity: 0; transform: translateY(14px); }

.js .reveal.in {
  opacity: 1; transform: none;
  transition: opacity 540ms var(--ease), transform 540ms var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  /* Gentler, not off: colour and opacity keep their meaning, movement goes. */
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-property: opacity, color, background-color, border-color !important;
    transition-duration: 200ms !important;
  }

  .js .reveal { opacity: 1; transform: none; }
}
