/* ==========================================================================
   LITrenders — site styles
   Brand: black & white only. Sharp corners, heavy display type, hex motif.
   ========================================================================== */

/* Self-hosted fonts — no third-party requests, no cookies. */
@font-face {
  font-family: "Archivo Black"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/archivo-black-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo Black"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/archivo-black-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #0d0d0d;
  --ink-soft: #1a1a1a;
  --paper: #ffffff;
  --paper-2: #f5f5f4;
  --line: #e3e3e1;
  --line-strong: #c9c9c6;
  --muted: #6d6d6a;
  --muted-inv: #a8a8a4;

  --display: "Archivo Black", "Helvetica Neue", Impact, system-ui, sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --nav-h: 68px;
  --gutter: clamp(20px, 5vw, 64px);
  --maxw: 1240px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 350;
  -webkit-font-smoothing: antialiased;
}

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

::selection { background: var(--ink); color: var(--paper); }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { width: 100%; max-width: 820px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 10vw, 132px); }
.section--dark { background: var(--ink); color: var(--paper); }
.section--tint { background: var(--paper-2); }
.section--tight { padding-block: clamp(48px, 7vw, 88px); }

/* ---------- type ---------- */
.display {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: .84;
  letter-spacing: -.015em;
  margin: 0;
}
.h1 { font-size: clamp(3.1rem, 11.5vw, 9.5rem); }
.h2 { font-size: clamp(2rem, 5.4vw, 4rem); }
.h3 { font-size: clamp(1.35rem, 2.6vw, 2rem); }
.h4 { font-size: clamp(1.05rem, 1.6vw, 1.3rem); }

.kicker {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-weight: 500;
  color: var(--muted);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.kicker::before {
  content: "";
  width: 11px; height: 12px;
  background: currentColor;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  flex: none;
}
.section--dark .kicker { color: var(--muted-inv); }

.lede { font-size: clamp(1.05rem, 1.7vw, 1.3rem); line-height: 1.55; color: var(--muted); max-width: 60ch; }
.section--dark .lede { color: var(--muted-inv); }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.section--dark .rule { background: #2b2b2b; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 34px;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  transition: background .18s ease, color .18s ease, border-color .18s ease;
  border-radius: 0;
  cursor: pointer;
}
.btn:hover { background: var(--paper); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--onDark { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.75); color: var(--paper); backdrop-filter: blur(2px); }
.btn--onDark:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--sm { padding: 13px 22px; font-size: .7rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  z-index: 60;
}
.nav-inner {
  height: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.nav-links { display: flex; gap: clamp(16px, 2.5vw, 34px); align-items: center; }
.nav-links a {
  text-decoration: none;
  font-size: .86rem;
  font-weight: 400;
  letter-spacing: .01em;
  padding-block: 4px;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { border-bottom-color: var(--ink); }
.nav-mark { justify-self: center; display: block; }
.nav-mark img { height: 30px; width: auto; }
.nav-end { justify-self: end; display: flex; align-items: center; gap: 16px; }
.nav-end a { font-size: .82rem; text-decoration: none; color: var(--muted); }
.nav-end a:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line); cursor: pointer; padding: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

@media (max-width: 860px) {
  .nav-inner { grid-template-columns: auto 1fr auto; }
  .nav-mark { justify-self: start; order: -1; }
  .nav-toggle { display: inline-flex; justify-self: end; }
  .nav-end { display: none; }
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
}

main { padding-top: var(--nav-h); }

/* ---------- hero ---------- */
.hero {
  background: var(--ink);
  color: var(--paper);
  min-height: min(86vh, 820px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-block: clamp(72px, 12vw, 140px);
}
.hero::after {
  content: "";
  position: absolute;
  right: -6vw; bottom: -12vw;
  width: 44vw; height: 50vw;
  background: #ffffff;
  opacity: .05;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero .h1 { max-width: 16ch; }
.hero-small {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(1.3rem, 4.2vw, 3.4rem);
  letter-spacing: -.01em;
  margin-right: .18em;
}
.hero .lede { margin: 28px 0 40px; color: #d6d6d3; }

/* ---------- discipline grid ---------- */
.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.cell {
  background: var(--paper);
  padding: clamp(26px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
  transition: background .2s ease, color .2s ease;
}
.cell .num { font-size: .72rem; letter-spacing: .2em; color: var(--muted); }
.cell h3 { margin: 0; font-size: 1.15rem; font-weight: 500; letter-spacing: -.01em; }
.cell p { margin: 0; font-size: .95rem; color: var(--muted); }
.cell--focus { background: var(--ink); color: var(--paper); }
.cell--focus .num, .cell--focus p { color: var(--muted-inv); }
.cell .tag {
  margin-top: auto;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  border: 1px solid currentColor;
  padding: 5px 10px;
  align-self: flex-start;
  opacity: .8;
}

/* ---------- app cards ---------- */
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 30px); }
@media (max-width: 940px) { .apps { grid-template-columns: 1fr; max-width: 560px; } }

.app-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: border-color .2s ease, transform .2s ease;
}
.app-card:hover { border-color: var(--ink); transform: translateY(-3px); }
.app-tile { aspect-ratio: 4 / 3; background: var(--ink); display: block; width: 100%; }
.app-body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.app-body h3 { margin: 0; font-family: var(--display); text-transform: uppercase; font-size: 1.4rem; letter-spacing: -.01em; }
.app-body p { margin: 0; font-size: .95rem; color: var(--muted); }
.app-meta {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
/* A card whose app opens straight into the running thing rather than a page. */
.app-card--live { border-color: var(--line-strong); }
.app-meta .live { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; }
.app-meta .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.badge {
  display: inline-block;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  border: 1px solid currentColor;
  padding: 5px 11px;
  color: var(--muted);
}
.badge--solid { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ---------- split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.hexframe {
  width: min(360px, 80%);
  aspect-ratio: 1;
  background: var(--ink);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  display: grid;
  place-items: center;
  margin-inline: auto;
}
.hexframe img { width: 46%; }

.facts { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 0; }
.facts li { display: flex; gap: 18px; padding: 14px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.facts li span:first-child { flex: none; width: 8.5rem; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; padding-top: 3px; }
.section--dark .facts li { border-top-color: #2b2b2b; }

/* ---------- app detail page ---------- */
.app-hero { background: var(--ink); color: var(--paper); padding-block: clamp(56px, 8vw, 110px); }
.app-hero .display { max-width: 14ch; }
.app-hero .lede { color: #d6d6d3; margin-top: 24px; }
.app-hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
@media (max-width: 900px) { .app-hero-grid { grid-template-columns: 1fr; } }
.tagline { max-width: 20ch; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.feature-list li { padding: 18px 0; border-top: 1px solid var(--line); display: flex; gap: 16px; align-items: flex-start; }
.feature-list li::before {
  content: ""; margin-top: .5em; flex: none; width: 10px; height: 11px; background: var(--ink);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.doc-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 720px) { .doc-links { grid-template-columns: 1fr; } }
.doc-links a {
  background: var(--paper); padding: 26px; text-decoration: none; display: flex; flex-direction: column; gap: 8px;
  transition: background .18s ease, color .18s ease;
}
.doc-links a:hover { background: var(--ink); color: var(--paper); }
.doc-links a:hover small { color: var(--muted-inv); }
.doc-links strong { font-weight: 500; font-size: 1.02rem; }
.doc-links small { color: var(--muted); font-size: .87rem; line-height: 1.45; }

/* ---------- documents (privacy / terms / support) ---------- */
.doc-head { border-bottom: 1px solid var(--line); padding-block: clamp(40px, 6vw, 72px) 32px; }
.crumbs { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.doc-meta { font-size: .85rem; color: var(--muted); margin-top: 16px; }

.doc { padding-block: clamp(40px, 6vw, 72px) clamp(64px, 9vw, 110px); }
.doc h2 {
  font-size: 1.15rem; font-weight: 600; letter-spacing: .01em; margin: 48px 0 12px; padding-top: 22px; border-top: 1px solid var(--line);
}
.doc h2:first-of-type { margin-top: 8px; }
.doc h3 { font-size: 1rem; font-weight: 600; margin: 28px 0 8px; }
.doc p, .doc li { font-size: .99rem; line-height: 1.7; color: #2c2c2a; }
.doc ul, .doc ol { padding-left: 1.15rem; }
.doc li { margin-bottom: 8px; }
.doc a { color: var(--ink); text-underline-offset: 3px; }
.doc table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .92rem; }
.doc th, .doc td { text-align: left; padding: 12px 14px; border: 1px solid var(--line); vertical-align: top; }
.doc th { background: var(--paper-2); font-weight: 600; }
.doc .note {
  border-left: 3px solid var(--ink); background: var(--paper-2); padding: 16px 20px; margin: 24px 0; font-size: .94rem;
}
.doc code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: var(--paper-2); padding: 2px 5px; }
/* Placeholder to fill in before launch — see README.md */
.ph {
  background: #f0f0ee; color: #4a4a48; border-bottom: 1px dashed #9a9a97;
  padding: 1px 5px; font-size: .92em; font-style: normal; letter-spacing: .02em;
}
.toc { list-style: none; padding: 0; margin: 0 0 8px; columns: 2; column-gap: 32px; font-size: .92rem; }
@media (max-width: 620px) { .toc { columns: 1; } }
.toc li { margin-bottom: 6px; }

/* ---------- generic table ---------- */
.table { width: 100%; border-collapse: collapse; font-size: .95rem; background: var(--paper); }
.table th, .table td { text-align: left; padding: 14px 16px; border: 1px solid var(--line); }
.table th { font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; }
.table a { text-underline-offset: 3px; }

/* ---------- contact ---------- */
.contact-big {
  font-family: var(--display); text-transform: uppercase; text-decoration: none;
  font-size: clamp(1.4rem, 5.4vw, 3.6rem); letter-spacing: -.02em; word-break: break-word; display: inline-block;
  border-bottom: 2px solid transparent;
}
.contact-big:hover { border-bottom-color: currentColor; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--paper); padding-block: clamp(48px, 6vw, 76px) 36px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer img.wordmark { width: 190px; margin-bottom: 18px; }
.footer h4 { font-size: .72rem; text-transform: uppercase; letter-spacing: .2em; color: var(--muted-inv); margin: 0 0 16px; font-weight: 500; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { text-decoration: none; font-size: .92rem; color: #e6e6e3; }
.footer a:hover { text-decoration: underline; }
.footer p { color: var(--muted-inv); font-size: .9rem; margin: 0; max-width: 34ch; }
.footer-base {
  margin-top: clamp(36px, 5vw, 60px); padding-top: 22px; border-top: 1px solid #2b2b2b;
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  font-size: .8rem; color: var(--muted-inv);
}

/* ---------- misc ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper); padding: 12px 18px; z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.stack-sm > * + * { margin-top: 14px; }
.mt-lg { margin-top: clamp(34px, 5vw, 64px); }
.center { text-align: center; }
.muted { color: var(--muted); }

.notfound { min-height: 62vh; display: grid; place-items: center; text-align: center; padding-block: 80px; }

@media print {
  .nav, .footer, .doc-links, .btn { display: none !important; }
  main { padding-top: 0; }
  body { font-size: 11pt; }
  a { text-decoration: underline; }
}
