/* TDXCollab landing page: comic split-screen look.
   Palette: ink, navy, slate, cream, sand, one accent blue.
   Type: Bangers for headlines, Barlow Condensed for captions and buttons,
   Inter for body, JetBrains Mono for operator names. */

:root {
  --ink: #101218;
  --navy: #0d1a33;
  --navy-2: #1b2740;
  --slate: #2a2e3a;
  --cream: #e9e4d8;
  --sand: #d8c9a3;
  --accent: #2f5fb3;
  --muted: #a9b0c2;
  --body: #d9dde8;
  --link-dark: #8fb4ff;
  --link-cream: #1d4ed8;
  --text: var(--cream);
  --text-dim: var(--body);
  --text-faint: var(--muted);
  --border: var(--cream);
  --comic: Bangers, "Barlow Condensed", Impact, sans-serif;
  --cond: "Barlow Condensed", Impact, "Arial Narrow", sans-serif;
  --mono: "JetBrains Mono", Consolas, ui-monospace, monospace;
  --max-w: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--ink);
  color: var(--cream);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
:target { scroll-margin-top: 24px; }
a { color: var(--link-dark); text-decoration: none; }
a:hover { color: #c3d6ff; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--sand); outline-offset: 3px; }
code, .mono { font-family: var(--mono); font-size: 0.92em; font-weight: 500; }
p { margin: 0; }
h1, h2, h3 { margin: 0; }

.comic {
  font-family: var(--comic);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }
.wm-tdx { color: var(--sand); }
.wm-collab { color: var(--cream); }
.on-cream .wm-tdx { color: var(--accent); }
.on-cream .wm-collab { color: var(--ink); }

/* Textures */
.dots { background-image: radial-gradient(circle, rgba(233, 228, 216, 0.18) 1.6px, transparent 1.9px); background-size: 11px 11px; }
.burst { background-image: repeating-conic-gradient(from 0deg at 50% 50%, rgba(233, 228, 216, 0.10) 0deg 3deg, transparent 3deg 9deg); }

/* Comic pieces */
.panel, .panel-cream, .panel-accent {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 36px 24px 24px;
  box-shadow: 8px 8px 0 #000;
}
.panel { background: var(--navy-2); border: 4px solid var(--cream); color: var(--cream); }
.panel-cream { background: var(--cream); border: 4px solid var(--ink); color: var(--ink); }
.panel-accent { background: var(--accent); border: 4px solid var(--cream); color: var(--cream); }
.panel p, .panel-accent p { color: var(--body); font-size: 15px; line-height: 1.5; }
.panel-accent p { color: var(--cream); }
.panel-cream p { color: var(--slate); font-size: 15px; line-height: 1.5; }
.panel-cream a { color: var(--link-cream); }
.panel-cream a:hover { color: var(--accent); }
.panel-cream .btn-primary, .panel-cream .btn-primary:hover { color: var(--cream); }
.panel-cream .btn-cream, .panel-cream .btn-cream:hover { color: var(--ink); }
.panel h3, .panel-cream h3, .panel-accent h3 { font-size: 38px; }
.panel-cream h3 { color: var(--ink); }

.caption {
  display: inline-block;
  background: var(--sand);
  color: var(--ink);
  border: 3px solid var(--ink);
  padding: 6px 10px;
  font-family: var(--cond);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 14px;
  line-height: 1;
  box-shadow: 3px 3px 0 #000;
  white-space: nowrap;
}
.caption-in { position: absolute; top: -4px; left: -4px; z-index: 2; }
.caption-dark { background: var(--navy-2); color: var(--cream); border-color: var(--cream); }
.caption-slate { background: var(--slate); color: var(--cream); border-color: var(--cream); }
.tag {
  display: inline-block;
  font-family: var(--cond);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 14px;
  padding: 5px 10px;
  border: 3px solid var(--cream);
  color: var(--cream);
  line-height: 1;
}
.tag-ink { border-color: var(--ink); color: var(--ink); }
.tag-accent { border-color: var(--ink); background: var(--accent); color: var(--cream); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 4px solid var(--ink);
  font-family: var(--cond);
  font-weight: 800;
  font-size: 21px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  box-shadow: 5px 5px 0 #000;
  transform: skewX(-6deg);
  transition: transform 0.08s, box-shadow 0.08s;
  white-space: nowrap;
  cursor: pointer;
}
.btn > span { display: inline-block; transform: skewX(6deg); }
.btn:hover { transform: skewX(-6deg) translate(2px, 2px); box-shadow: 3px 3px 0 #000; }
.btn-primary { background: var(--accent); color: var(--cream); }
.btn-primary:hover { color: var(--cream); }
.btn-cream { background: var(--cream); color: var(--ink); }
.btn-cream:hover { color: var(--ink); }
.btn-sm { min-height: 44px; font-size: 18px; padding: 0 16px; }

.star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--accent);
  color: var(--cream);
  clip-path: polygon(50% 0%, 61% 12%, 78% 5%, 80% 22%, 97% 25%, 89% 40%, 100% 50%, 89% 60%, 97% 75%, 80% 78%, 78% 95%, 61% 88%, 50% 100%, 39% 88%, 22% 95%, 20% 78%, 3% 75%, 11% 60%, 0% 50%, 11% 40%, 3% 25%, 20% 22%, 22% 5%, 39% 12%);
}
.tilt-l { transform: rotate(-1.2deg); }
.tilt-r { transform: rotate(0.9deg); }

.bolt { display: block; flex-shrink: 0; }

/* Section scaffolding */
.band { border-bottom: 4px solid var(--cream); }
.band-ink { background: var(--ink); }
.band-inner { padding-top: 88px; padding-bottom: 96px; }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 44px;
}
.section-head h2 {
  font-size: 72px;
  color: var(--cream);
  text-shadow: 4px 4px 0 #000, 6px 6px 0 var(--accent);
}
.section-head h2.plain { text-shadow: 4px 4px 0 #000; font-size: 56px; }
.section-head p { max-width: 480px; font-size: 16px; line-height: 1.5; color: var(--muted); }
.band-inner > .section-head:not(:first-child) { margin-top: 72px; margin-bottom: 36px; }

.cgrid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px; }
.span2 { grid-column: span 2; }
.span3 { grid-column: span 3; }
.span4 { grid-column: span 4; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }

.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.half { padding: 96px 32px; display: flex; align-items: center; }
.half-l { border-right: 4px solid var(--cream); padding-right: 56px; }
.half-r { padding-left: 56px; }
.half-l > div { max-width: 560px; margin-left: auto; width: 100%; display: flex; flex-direction: column; gap: 20px; }
.half-r > div { max-width: 560px; width: 100%; display: flex; flex-direction: column; gap: 16px; }
.bg-navy { background-color: var(--navy); }
.bg-slate { background-color: var(--slate); }
.bg-accent { background-color: var(--accent); }
.half h2 { font-size: 64px; color: var(--cream); text-shadow: 4px 4px 0 #000; }
.half p { font-size: 17px; line-height: 1.55; color: var(--body); }
.half .caption { align-self: flex-start; }

/* ───── Nav ───── */
header.site {
  position: relative;
  z-index: 5;
  border-bottom: 4px solid var(--cream);
  background: var(--ink);
}
.site-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.wordmark { display: inline-flex; align-items: center; font-size: 32px; line-height: 1; }
.wordmark .bolt { margin: 0 1px 0 2px; overflow: visible; }
.brand-credit { font-size: 12px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.brand-credit a { color: var(--body); font-weight: 600; }
.brand-credit a:hover { color: var(--cream); }
nav.site-nav { display: flex; align-items: center; gap: 20px; }
nav.site-nav a:not(.btn) { color: var(--cream); font-weight: 600; font-size: 15px; white-space: nowrap; }
nav.site-nav a:not(.btn):hover { color: #fff; }
nav.site-nav .btn { border-color: var(--cream); }

/* ───── Hero band ───── */
.hero {
  position: relative;
  overflow: hidden;
  background-color: var(--navy);
  height: 500px;
}
.hero-wrap { position: relative; height: 100%; }
.seam {
  position: absolute;
  top: 0;
  left: calc(46% - 140px);
  width: 2100px;
  height: 500px;
  display: block;
  overflow: visible;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 46fr 54fr;
  align-items: center;
  height: 100%;
  padding-top: 56px;
}
.hero-left { display: flex; flex-direction: column; gap: 18px; padding: 0 40px 56px 0; }
.hero-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hero h1 {
  font-size: 74px;
  color: var(--cream);
  text-shadow: 5px 5px 0 #000, 7px 7px 0 var(--accent);
}
.hero h1 .hero-td { color: var(--sand); font-size: 0.78em; }
.hero-right { display: flex; flex-direction: column; gap: 20px; padding: 0 0 56px 300px; }
.hero-right p { font-size: 20px; line-height: 1.5; max-width: 460px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-meta { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--body); font-weight: 500; }
.sync-badge {
  position: absolute;
  z-index: 3;
  left: calc(46% + 65px);
  top: 50%;
  width: 150px;
  height: 150px;
  font-size: 36px;
  transform: translate(-50%, -50%) rotate(-8deg);
  filter: drop-shadow(6px 6px 0 #000);
}
.sync-rim { display: block; position: relative; width: 100%; height: 100%; background: var(--cream); }
.sync-core { position: absolute; inset: 8px; }
.sync-badge span { display: inline-block; transform: rotate(8deg); }

/* ───── Video ───── */
.video-inner { padding-top: 48px; padding-bottom: 40px; }
.video-frame { position: relative; background: #000; border: 4px solid var(--ink); box-shadow: 10px 10px 0 #000; }
.video-frame .caption-in { font-size: 16px; z-index: 3; white-space: normal; }
.video-frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
.corner { position: absolute; z-index: 3; bottom: 24px; font-size: 18px; padding: 8px 14px; }
.corner-l { left: 24px; }
.corner-r { right: 24px; }
.video-note { margin: 26px 0 0; font-size: 15px; color: var(--body); text-align: center; }
.yt-figure { margin: 48px 0 0; }
.video-frame iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; background: #000; }

/* ───── Syncs strip ───── */
.strip { background: var(--cream); color: var(--ink); border-bottom: 4px solid var(--ink); }
.strip-inner { padding: 14px 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-size: 15px; font-weight: 600; }
.strip-title { font-size: 24px; letter-spacing: 0.06em; margin-right: 6px; }
.strip-items { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.strip a { margin-left: auto; color: var(--link-cream); font-weight: 600; }
.strip a:hover { color: var(--accent); }

/* ───── How it works ───── */
.how-grid { grid-auto-rows: minmax(230px, auto); }
.how-tags { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; }
.invite {
  margin-top: auto;
  background: var(--ink);
  color: var(--cream);
  padding: 10px 12px;
  font-size: 12px;
  border: 3px solid var(--ink);
  overflow-wrap: anywhere;
}

/* ───── Zone ───── */
.zone-map { padding: 36px 20px 20px; gap: 10px; }
.zone-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.zone-shared { border: 4px solid var(--accent); background: #fff; padding: 14px; display: flex; flex-direction: column; gap: 8px; box-shadow: 5px 5px 0 var(--accent); }
.zone-shared-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.zone-shared-head .comic { font-size: 16px; color: var(--accent); }
.zone-local { border: 3px dashed #4b4f5c; padding: 14px; display: flex; flex-direction: column; gap: 8px; color: #4b4f5c; }
.zone-local-head { font-size: 13px; font-weight: 600; }
.zone-list { display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.zone-note { font-size: 14px; color: var(--muted); }

/* ───── Connect ───── */
.mode { padding: 40px 26px 26px; gap: 14px; }
.mode h3 { font-size: 44px; }
.mode dl { margin: 8px 0 0; display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 8px 12px; font-size: 14px; line-height: 1.45; }
.mode dt { font-weight: 700; }
.mode dd { margin: 0; color: var(--slate); }
.panel-accent.mode dd, .panel-accent.mode dt { color: var(--cream); }
.new-star { position: absolute; top: -34px; right: -26px; width: 110px; height: 110px; font-size: 22px; background: var(--cream); color: var(--ink); transform: rotate(10deg); }

.relay { margin-top: 72px; }
.relay .section-head h2 { font-size: 56px; text-shadow: 4px 4px 0 #000; }
.relay-intro { max-width: 760px; font-size: 16px; line-height: 1.55; color: var(--body); margin-bottom: 36px; }
.terms { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; margin: 0; padding: 0; list-style: none; }
.terms li { position: relative; padding: 34px 20px 20px; gap: 8px; }
.terms p { font-size: 14px; }

/* ───── Integrity ───── */
.instep-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; font-size: 15px; line-height: 1.5; color: var(--body); }
.instep-list li { border-top: 4px solid var(--cream); padding-top: 8px; }
.instep-list strong { font-size: 20px; display: block; margin-bottom: 2px; }
.bubble {
  position: relative;
  background: var(--cream);
  color: var(--ink);
  border: 4px solid var(--ink);
  border-radius: 22px;
  padding: 22px 24px;
  box-shadow: 6px 6px 0 #000;
  font-size: 15px;
  line-height: 1.5;
}
.bubble::after { content: ""; position: absolute; left: 30px; bottom: -20px; border-left: 14px solid transparent; border-right: 14px solid transparent; border-top: 20px solid var(--ink); }
.bubble::before { content: ""; position: absolute; left: 34px; bottom: -13px; border-left: 10px solid transparent; border-right: 10px solid transparent; border-top: 14px solid var(--cream); z-index: 1; }
.bubble .comic { font-size: 28px; margin-bottom: 8px; }
.bubble p { color: var(--ink); font-size: 15px; margin-bottom: 10px; }
.bubble-actions { display: flex; gap: 12px; margin-top: 6px; }
.bubble-actions .btn { min-height: 42px; font-size: 17px; padding: 0 16px; box-shadow: 3px 3px 0 #000; }
.bubble-menu { margin-top: 14px; border-top: 3px solid var(--ink); padding-top: 10px; font-size: 14px; }
.bubble-menu div { padding: 4px 8px; }
.bubble-menu .is-hover { background: var(--accent); color: var(--cream); }
.bubble-note { font-size: 13px; color: var(--muted); margin-top: 24px; }

/* ───── Features ───── */
.feat { padding: 36px 20px 20px; gap: 8px; }
.feat p { font-size: 14px; }

/* ───── Limits + access ───── */
.limit-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.limit-list li { border-top: 4px solid var(--cream); padding-top: 10px; font-size: 15px; line-height: 1.55; color: var(--body); }
.limit-list strong { display: block; font-size: 22px; margin-bottom: 4px; color: var(--cream); }
.limit-list a { color: var(--link-dark); font-weight: 600; }
.access h2 { font-size: 72px; text-shadow: 5px 5px 0 #000; }
.access p { color: var(--cream); }
.access .hero-cta { margin-top: 4px; }

/* ───── Made by ───── */
.maker { padding: 40px 26px 26px; gap: 14px; }
.maker h3 { font-size: 40px; }
.maker-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.update-note { margin: 28px 0 0; font-size: 14px; color: var(--muted); text-align: center; }

/* ───── Footer ───── */
footer.site { background: var(--ink); color: var(--muted); font-size: 13px; }
.footer-inner { padding: 24px 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { color: var(--body); }
.footer-links a:hover { color: var(--cream); }

/* ───── Responsive ───── */
@media (max-width: 1240px) {
  .hero h1 { font-size: 60px; }
  .hero-right { padding-left: 260px; }
  .hero-right p { font-size: 17px; }
  .section-head h2 { font-size: 60px; }
}

/* The header keeps every menu item on one line: the credit goes first, then the menu folds. */
@media (max-width: 1240px) {
  .brand-credit { display: none; }
}
@media (max-width: 1040px) {
  nav.site-nav { top: 74px; }
}
@media (max-width: 900px) {
  .wrap { padding: 0 16px; }
  .site-inner { padding: 0 16px; }
  .wordmark { font-size: 28px; }
  .hero { height: auto; }
  .seam, .sync-badge { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); padding: 40px 0 0; gap: 8px; }
  .hero-left, .hero-right { padding: 0 0 40px; }
  .hero h1 { font-size: clamp(44px, 12vw, 60px); }
  .hero-right p { max-width: none; }
  .row { grid-template-columns: minmax(0, 1fr); }
  .half { padding: 56px 16px; }
  .half-l { border-right: 0; border-bottom: 4px solid var(--cream); }
  .half-l > div { margin-left: 0; }
  .half h2 { font-size: 44px; }
  .section-head h2 { font-size: 48px; }
  .section-head h2.plain { font-size: 40px; }
  .relay .section-head h2 { font-size: 40px; }
  .band-inner { padding-top: 56px; padding-bottom: 64px; }
  .cgrid, .grid2, .grid3, .grid4 { grid-template-columns: minmax(0, 1fr); }
  .span2, .span3, .span4 { grid-column: auto; }
  .how-grid { grid-auto-rows: auto; }
  .panel h3, .panel-cream h3, .panel-accent h3, .mode h3, .maker h3 { font-size: 32px; }
  .tilt-l, .tilt-r { transform: none; }
  .panel, .panel-cream, .panel-accent { box-shadow: 6px 6px 0 #000; }
  .mode dl { grid-template-columns: 76px minmax(0, 1fr); }
  .new-star { top: -26px; right: -10px; width: 90px; height: 90px; font-size: 18px; }
  .instep-list { grid-template-columns: minmax(0, 1fr); }
  .zone-cols { grid-template-columns: minmax(0, 1fr); }
  .video-inner { padding-top: 32px; padding-bottom: 28px; }
  .video-frame .caption-in { font-size: 13px; }
  .corner { bottom: 12px; font-size: 13px; padding: 6px 10px; }
  .corner-l { left: 12px; }
  .corner-r { right: 12px; }
  .strip-inner { padding: 14px 16px; }
  .strip a { margin-left: 0; }
  .access h2 { font-size: 52px; }
  .btn { font-size: 18px; min-height: 46px; padding: 0 18px; }
  .footer-inner { padding: 24px 16px; flex-direction: column; }
}

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