/* Home page styles. Shared by / and /es/ — edit once, both follow. */
/* ==========================================================================
   Torrent Live — product site
   --------------------------------------------------------------------------
   The page borrows the app's own rules, so the site reads as the same piece
   of software: absolutely flat, no radii, no shadows, panels divided by 1px
   near-black seams rather than whitespace, monochrome charcoal chrome, and
   saturated colour reserved for data and for the yellow selection state.

   Deliberately single-theme: this is the app's world, and the app is dark.
   Every colour is painted explicitly so the page never borrows a host ground.
   ========================================================================== */

:root {
  /* Surfaces, darkest to lightest — the app's ramp */
  --ink:        #0c0c0c;   /* seams between panels */
  --bg-deep:    #121212;
  --bg-app:     #1a1a1a;
  --bg-panel:   #1f1f1f;
  --bg-surface: #2a2a2a;
  --bg-raised:  #3a3a3a;
  --bg-hover:   #454545;

  --line:       #101010;
  --line-soft:  #333333;
  --line-edge:  #4a4a4a;

  --text:        #c8c8c8;
  --text-bright: #efefef;
  --text-dim:    #8a8a8a;
  --text-faint:  #5e5e5e;

  --accent:      #ffe900;
  --accent-hot:  #fff03d;
  --blue:        #35a3e8;
  --rec:         #ff4438;
  --meter-lo:    #79d13b;

  --clip-1: #ff9b71;
  --clip-2: #ffd966;
  --clip-3: #a8d982;
  --clip-4: #7fd1d6;
  --clip-5: #a99be0;
  --clip-6: #f58fbb;

  --display: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body:    -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono:    "SF Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;

  --shell: 1200px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--text-bright); text-decoration: none; border-bottom: 1px solid var(--line-edge); }
a:hover { color: var(--accent); border-bottom-color: var(--accent); }

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

/* --------------------------------------------------------------------------
   Shared primitives, lifted from the app
   -------------------------------------------------------------------------- */

.lbl {
  font-size: 9px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 500;
  font-family: var(--body);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 14px;
  background: var(--bg-raised);
  color: var(--text-bright);
  border: 1px solid var(--line-edge);
  border-radius: 0;
  font-family: var(--body);
  font-size: 12px;
  letter-spacing: 0.04em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 90ms linear, color 90ms linear;
}
.btn:hover { background: var(--bg-hover); }
.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #141414;
  font-weight: 700;
}
.btn--primary:hover { background: var(--accent-hot); color: #141414; }
.btn--lg { height: 44px; padding: 0 22px; font-size: 14px; letter-spacing: 0.05em; }

/* Panels: full-bleed bands, seamed with 1px of near-black. */
.panel {
  background: var(--bg-panel);
  border-bottom: 1px solid var(--ink);
  padding: 0 24px;
}
.panel--deep { background: var(--bg-app); }
.panel__in {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 56px 0;
}

.panel__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 26px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line-soft);
}
.panel__num {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.08em;
}
h2 {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-bright);
  margin: 0;
  text-wrap: balance;
}
.panel__note {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-faint);
  font-family: var(--mono);
}

.prose { max-width: 64ch; }
.prose p { margin: 0 0 16px; }
.prose p:last-child { margin-bottom: 0; }
.prose code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--bg-deep);
  border: 1px solid var(--line-soft);
  padding: 1px 5px;
  color: var(--text-bright);
}

/* --------------------------------------------------------------------------
   Site control bar — the app's control bar, doing nav duty
   -------------------------------------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--ink);
}
.topbar__in {
  max-width: var(--shell);
  margin: 0 auto;
  height: 44px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand { display: flex; align-items: baseline; gap: 7px; }
.brand b {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-bright);
}
.brand span {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.nav { display: flex; gap: 20px; margin-left: 8px; }
.nav a {
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 0;
}
.nav a:hover { color: var(--text-bright); }

.topbar__right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.archbadge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  background: var(--bg-panel);
  border: 1px solid var(--line-soft);
}
.archbadge i { width: 6px; height: 6px; background: var(--meter-lo); flex: none; }
.archbadge span { font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
.archbadge b { font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--meter-lo); font-weight: 600; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero { background: var(--bg-app); border-bottom: 1px solid var(--ink); padding: 0 24px; }
.hero__in { max-width: var(--shell); margin: 0 auto; padding: 74px 0 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 26px;
}
.eyebrow i { width: 22px; height: 2px; background: var(--accent); }

h1 {
  font-family: var(--display);
  font-size: clamp(40px, 6.6vw, 82px);
  font-weight: 700;
  letter-spacing: -0.042em;
  line-height: 0.96;
  color: var(--text-bright);
  margin: 0 0 26px;
  max-width: 15ch;
  text-wrap: balance;
}
h1 em { font-style: normal; color: var(--accent); }

.hero__sub {
  max-width: 58ch;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  margin: 0 0 32px;
}


/* Guide call-to-action, closing the "any screen" section. */
.guide-cta {
  margin-top: 1px;
  background: var(--bg-app);
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--accent);
  padding: 26px 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  align-items: center;
  justify-content: space-between;
}
.guide-cta h3 {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-bright);
  margin: 0 0 8px;
}
.guide-cta p { margin: 0; max-width: 56ch; color: var(--text-dim); font-size: 14.5px; }
.guide-cta__links { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 700px) {
  .guide-cta { padding: 22px 20px; }
  .guide-cta__links { width: 100%; }
}

/* How-it-works diagram, ahead of section 01. */
.flow { background: var(--ink); border: 1px solid var(--line-soft); overflow-x: auto; }
.flow svg { display: block; width: 1120px; max-width: none; height: auto; }
@media (min-width: 1180px) { .flow svg { width: 100%; } }
.flow__cap {
  font-size: 12.5px;
  color: var(--text-faint);
  margin: 14px 0 0;
  max-width: 74ch;
}
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 14px; }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faint);
  margin-bottom: 60px;
}
.hero__meta span::after { content: " ·"; color: var(--line-edge); }
.hero__meta span:last-child::after { content: ""; }

/* --------------------------------------------------------------------------
   The app replica — a working session view, ticking on the app's own 500ms
   snapshot interval
   -------------------------------------------------------------------------- */

.win {
  background: var(--ink);
  border: 1px solid var(--line);
  display: grid;
  grid-template-rows: 40px 1fr auto;
  gap: 1px;
  margin-bottom: -1px;
  font-size: 11px;
  line-height: 1.35;
  user-select: none;
}

.win__bar {
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
}
.lights { display: flex; gap: 8px; padding-right: 12px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }

.win__input {
  flex: 1;
  max-width: 420px;
  height: 20px;
  display: flex;
  align-items: center;
  padding: 0 7px;
  background: #171717;
  border: 1px solid var(--line-edge);
  color: var(--text-faint);
  font-size: 11px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.win__add {
  height: 20px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: #141414;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.readouts { margin-left: auto; display: flex; gap: 1px; }
.readout {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  padding: 2px 8px;
  min-width: 76px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.readout .lbl { font-size: 8px; }
.readout .v { font-family: var(--mono); font-size: 11px; color: var(--text-bright); font-variant-numeric: tabular-nums; }
.readout .v.dl { color: var(--meter-lo); }
.readout .v.ul { color: var(--blue); }

.win__main { display: grid; grid-template-columns: 178px 1fr; gap: 1px; background: var(--ink); }

.side { background: var(--bg-panel); display: flex; flex-direction: column; padding: 9px 0 0; }
.side > .lbl { padding: 0 10px 6px; }
.side__item {
  height: 22px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
}
.side__item i { width: 7px; height: 7px; flex: none; }
.side__item .c { margin-left: auto; font-family: var(--mono); font-size: 10px; color: var(--text-faint); }
.side__item.is-on { background: var(--accent); color: #141414; font-weight: 600; }
.side__item.is-on .c { color: rgba(0,0,0,0.55); }

.drop {
  margin: 10px 10px 12px;
  padding: 16px 8px;
  border: 1px dashed var(--line-edge);
  text-align: center;
  color: var(--text-faint);
  font-size: 10px;
  line-height: 1.5;
}
.side__foot { margin-top: auto; padding: 8px 10px; border-top: 1px solid var(--line); }
.side__foot .p { font-size: 9px; color: var(--text-faint); word-break: break-all; margin-top: 4px; }

.grid-h, .row {
  display: grid;
  grid-template-columns: 3px minmax(150px, 2.4fr) 130px 78px 78px 56px 66px;
  align-items: center;
}
.grid-h {
  height: 21px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--line);
}
.grid-h > * { padding: 0 8px; }
.grid-h .lbl { font-size: 8px; }
.r { text-align: right; }

.rows { background: var(--bg-app); }
.row {
  height: 26px;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.row:nth-child(even) { background: #242424; }
.row.is-sel { background: var(--accent); color: #141414; }
.row.is-sel .cell.r { color: rgba(0,0,0,0.7); }
.row.is-paused { color: var(--text-faint); }
.row .stripe { height: 100%; }
.row .cell { padding: 0 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.row .cell.r { text-align: right; font-family: var(--mono); font-size: 10px; font-variant-numeric: tabular-nums; }

.meter {
  position: relative;
  height: 12px;
  background: #151515;
  border: 1px solid var(--line-edge);
  overflow: hidden;
}
.meter .fill { position: absolute; inset: 0 auto 0 0; background: var(--meter-lo); }
.meter .fill.is-done { background: var(--blue); }
.meter .fill.is-paused { background: #4d4d4d; }
.meter .p {
  position: relative;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 10px;
  text-align: center;
  color: var(--text-bright);
  mix-blend-mode: difference;
}

.win__detail { background: var(--bg-panel); display: grid; grid-template-columns: 1fr 260px; gap: 1px; }
.detail__files { background: var(--bg-panel); padding: 8px 0 9px; }
.detail__files > .lbl { padding: 0 10px 6px; display: block; }
.frow {
  display: grid;
  grid-template-columns: 30px 1fr 82px 60px;
  align-items: center;
  height: 20px;
  padding: 0 10px;
  color: var(--text);
}
.frow:nth-child(even) { background: #232323; }
.frow .k { font-family: var(--mono); font-size: 8px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.frow .n { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.frow .s, .frow .g { font-family: var(--mono); font-size: 10px; text-align: right; color: var(--text-dim); }
.detail__player {
  background: #0f0f0f;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  color: var(--text-faint);
  text-align: center;
}
.detail__player .tri {
  width: 0; height: 0;
  border-left: 15px solid var(--accent);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
}
.detail__player p { margin: 0; font-size: 10px; line-height: 1.5; }

.win__cap {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 12px 0 22px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-faint);
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   Content blocks
   -------------------------------------------------------------------------- */

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }

.audit {
  background: var(--bg-deep);
  border: 1px solid var(--line-soft);
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.85;
  overflow-x: auto;
}
.audit .cmd { color: var(--text-faint); }
.audit .cmd::before { content: "$ "; color: var(--accent); }
.audit .ok { color: var(--meter-lo); }
.audit .pk { color: var(--text-bright); }
.audit .n { color: var(--text-faint); }

.tbl-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
th {
  font-size: 9px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 500;
  border-bottom-color: var(--line-edge);
}
td:first-child { color: var(--text-dim); white-space: nowrap; }
td:last-child { color: var(--text-bright); }
tr:last-child td { border-bottom: 0; }
.tbl-wrap tbody tr:hover td { background: var(--bg-surface); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px; background: var(--ink); border: 1px solid var(--ink); }
.card { background: var(--bg-app); padding: 24px 22px; }
.card h3 {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--text-bright);
  margin: 12px 0 10px;
}
.card p { margin: 0; font-size: 13.5px; line-height: 1.62; color: var(--text); }
.card .tag {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Download — one card per platform, seamed like everything else */
.dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 1px; background: var(--ink); border: 1px solid var(--ink); }
.plat { background: var(--bg-app); padding: 32px 30px; display: flex; flex-direction: column; align-items: flex-start; }
.plat__os {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.plat__os i { width: 16px; height: 2px; background: var(--accent); }
.plat .spec { margin-top: 24px; width: 100%; }
.plat .gatekeeper { margin-top: 24px; }
.dl__file {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-bright);
  margin: 0 0 6px;
  word-break: break-word;
}
.dl__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faint);
  margin-bottom: 24px;
}
.spec { display: grid; grid-template-columns: 92px 1fr; gap: 8px 14px; font-size: 12.5px; }
.spec dt { font-size: 9px; letter-spacing: 0.11em; text-transform: uppercase; color: var(--text-dim); padding-top: 3px; }
.spec dd { margin: 0; font-family: var(--mono); font-size: 11.5px; color: var(--text); word-break: break-all; }

.gatekeeper {
  margin-top: 26px;
  border-left: 2px solid var(--accent);
  padding: 2px 0 2px 16px;
}
.gatekeeper h4 {
  font-size: 9px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 8px;
  font-weight: 600;
}
.gatekeeper p { margin: 0 0 10px; font-size: 13px; color: var(--text); max-width: 52ch; }
.gatekeeper p:last-child { margin-bottom: 0; }

.cmdline {
  display: block;
  background: var(--bg-deep);
  border: 1px solid var(--line-soft);
  padding: 9px 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-bright);
  /* Commands carry long filenames that used to run off the card. Wrap them
     rather than scroll: a command you cannot read in full is no use. */
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.6;
}

/* Status lists */
.status { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.status ul { list-style: none; margin: 12px 0 0; padding: 0; }
.status li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13.5px;
}
.status li::before { content: "✓"; color: var(--meter-lo); font-size: 11px; }
.status--todo li::before { content: "○"; color: var(--text-faint); }
.status--todo li { color: var(--text-dim); }

/* Contribute call-out, sitting under the roadmap it refers to */
.contribute {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}
.contribute p { margin: 0; font-size: 13.5px; line-height: 1.62; color: var(--text); max-width: 62ch; }
.contribute .btn { margin-left: auto; }

@media (max-width: 700px) {
  .contribute .btn { margin-left: 0; }
}

/* Ad bands. Each stays hidden until a slot ID is configured, so an
   unconfigured site shows no empty gap where an ad would have been. */
.adband { padding: 22px 24px; }
.adband[hidden] { display: none; }
.adband ins { max-width: var(--shell); margin: 0 auto; }

/* Consent banner — same chrome as the rest of the page, pinned to the bottom */
.consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: var(--bg-surface);
  border-top: 1px solid var(--ink);
  padding: 15px 24px;
}
.consent[hidden] { display: none; }
.consent__in {
  max-width: var(--shell);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}
.consent p { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--text); max-width: 70ch; }
.consent__btns { margin-left: auto; display: flex; gap: 10px; }

@media (max-width: 700px) {
  .consent__btns { margin-left: 0; width: 100%; }
  .consent__btns .btn { flex: 1; justify-content: center; }
}

footer { background: var(--bg-deep); padding: 30px 24px 40px; }
.foot__in {
  max-width: var(--shell);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  font-size: 11px;
  color: var(--text-faint);
}
.foot__in .sep { margin-left: auto; }
.disclaimer { max-width: var(--shell); margin: 18px auto 0; font-size: 10.5px; color: #4a4a4a; line-height: 1.6; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 980px) {
  .split, .dl { grid-template-columns: 1fr; }
  .dl { gap: 1px; }
  .win__detail { grid-template-columns: 1fr; }
  .nav { display: none; }
}

@media (max-width: 760px) {
  body { font-size: 14px; }
  .panel__in { padding: 40px 0; }
  .hero__in { padding: 48px 0 0; }
  .archbadge { display: none; }
  .win__scroll { overflow-x: auto; }
  .win { min-width: 860px; }
  .win__cap { padding-top: 10px; }
  .panel__note { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
