/* TradingSpaces — pre.tradingspaces.org
   Palette taken from the emblem: black void, signal green, brushed silver, brass horns. */

@font-face { font-family: "Big Shoulders Display"; font-weight: 800; font-style: normal; font-display: swap;
  src: url("fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-weight: 900; font-style: normal; font-display: swap;
  src: url("fonts/big-shoulders-display-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }

:root {
  --void: #030504;
  --pit: #08100a;
  --panel: #0d170f;
  --line: rgba(104, 200, 62, 0.24);
  --line-strong: rgba(104, 200, 62, 0.6);
  --green: #5ccf2a;
  --green-deep: #2e8a14;
  --silver: #e8eae5;
  --silver-dim: #9fa69b;
  --ash: #b4baaf;
  --brass: #c9aa5c;
  --font-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--void);
  color: var(--ash);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--green); color: var(--void); padding: 8px 14px; font-weight: 600; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* ---------- type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: 0.01em;
  margin: 0;
}
.silver {
  color: var(--silver);
  background: linear-gradient(180deg, #f6f7f4 10%, #a7aea3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.green { color: var(--green); text-shadow: 0 0 28px rgba(92, 207, 42, 0.35); }
h2.display { font-size: clamp(2.4rem, 5.4vw, 4rem); }
.lede { max-width: 56ch; font-size: 1.1875rem; color: var(--ash); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font: 600 0.9375rem/1 var(--font-body);
  padding: 0.95em 1.4em;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  color: var(--silver);
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s, border-color .18s, color .18s, box-shadow .18s;
}
.btn:hover { border-color: var(--green); background: rgba(92, 207, 42, 0.1); }
.btn--solid { background: var(--green); border-color: var(--green); color: var(--void); }
.btn--solid:hover { background: #7be048; border-color: #7be048; box-shadow: 0 0 32px rgba(92, 207, 42, 0.4); }
.btn--lg { font-size: 1.0625rem; padding: 1.1em 1.8em; }
.btn--sm { font-size: 0.875rem; padding: 0.75em 1.1em; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(3, 5, 4, 0.86);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 44px; height: 44px; border-radius: 50%; }
.brand span { font-family: var(--font-display); font-weight: 900; font-size: 1.5rem; letter-spacing: 0.03em; text-transform: uppercase; color: var(--silver); }
.nav { display: flex; gap: 22px; }
.nav a { text-decoration: none; font-size: 0.9375rem; color: var(--ash); padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--silver); border-bottom-color: var(--green); }
.header-actions { display: flex; gap: 10px; align-items: center; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 46%; z-index: -1;
  background: url("assets/candles.svg") center bottom / 100% 100% no-repeat;
  opacity: 0.2;
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 95%);
  mask-image: linear-gradient(to top, #000 10%, transparent 95%);
}
.hero::after {
  content: ""; position: absolute; z-index: -2; inset: 0;
  background: radial-gradient(60% 70% at 78% 40%, rgba(92, 207, 42, 0.16), transparent 70%);
}
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center; gap: clamp(16px, 4vw, 56px);
  padding-block: clamp(40px, 8vw, 96px);
}
.hero h1 { font-size: clamp(3.4rem, 9.2vw, 8rem); }
.hero h1 span { display: block; }
.hero .lede { margin: 28px 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin: 18px 0 0; font-size: 0.9rem; color: var(--silver-dim); }
.hero-art { position: relative; }
.hero-art img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 52%, transparent 71%);
  mask-image: radial-gradient(circle at 50% 50%, #000 52%, transparent 71%);
  transform: scale(1.12);
  animation: emerge 1.6s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes emerge { from { opacity: 0; transform: scale(1.0); filter: brightness(.5); } to { opacity: 1; transform: scale(1.12); filter: none; } }

/* ---------- sections ---------- */
.section { padding-block: clamp(56px, 9vw, 120px); }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { margin: 14px 0 0; max-width: 52ch; }
.rule-top { border-top: 1px solid var(--line); }

/* start free */
.free-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: stretch; }
.live-panel { position: relative; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--pit); display: flex; flex-direction: column; }
.live-panel img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.live-panel .body { padding: 22px 24px 26px; display: grid; gap: 14px; justify-items: start; }
.live-panel h3, .tg-panel h3 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; line-height: 1; text-transform: uppercase; color: var(--silver); letter-spacing: .02em; }
.live-panel p, .tg-panel p { margin: 0; }
.panel-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.tg-panel { border-left: 1px solid var(--line); padding: 6px 0 6px clamp(20px, 3vw, 40px); display: flex; flex-direction: column; justify-content: center; gap: 14px; align-items: flex-start; }
.week { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 8px; }
.week > div { padding: 22px 0; }
.week > div + div { border-left: 1px solid var(--line); padding-left: clamp(20px, 3vw, 40px); }
.week strong { display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: var(--silver); line-height: 1.1; }
.week span { color: var(--ash); font-size: .98rem; }

/* pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); }
.pillar { padding: 8px clamp(18px, 3vw, 40px) 8px 0; }
.pillar + .pillar { border-left: 1px solid var(--line); padding-left: clamp(18px, 3vw, 40px); }
.pillar h3 { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.4rem, 4.4vw, 3.6rem); line-height: .95; text-transform: uppercase; margin: 0 0 14px; }
.pillar p { margin: 0; max-width: 34ch; }

/* shelf */
.arsenal { background: linear-gradient(180deg, transparent, rgba(92, 207, 42, 0.05) 40%, transparent); }
.shelf-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.shelf-nav { display: flex; gap: 10px; }
.shelf-nav button {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: transparent; color: var(--silver); cursor: pointer; display: grid; place-items: center;
  transition: background-color .18s, border-color .18s, opacity .18s;
}
.shelf-nav button:hover:not(:disabled) { border-color: var(--green); background: rgba(92, 207, 42, .1); }
.shelf-nav button:disabled { opacity: .3; cursor: default; }
.shelf-nav svg { width: 18px; height: 18px; }
.shelf {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 10px var(--gutter) 34px; margin-inline: calc(-1 * var(--gutter));
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.shelf::-webkit-scrollbar { display: none; }
.shelf-board { height: 2px; margin-top: -26px; background: linear-gradient(90deg, transparent, var(--green) 20%, var(--green) 80%, transparent); box-shadow: 0 0 22px 2px rgba(92, 207, 42, .45); opacity: .7; }
.item {
  flex: 0 0 min(380px, 82vw); scroll-snap-align: start;
  display: flex; flex-direction: column; text-decoration: none;
  background: var(--pit); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.item:hover { border-color: var(--green); transform: translateY(-4px); box-shadow: 0 14px 40px -16px rgba(92, 207, 42, .5); }
.item .media { aspect-ratio: 16 / 10; overflow: hidden; background: #000; border-bottom: 1px solid var(--line); }
.item .media img { width: 100%; height: 100%; object-fit: cover; }
.item .text { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.item h3 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 1.85rem; line-height: 1; text-transform: uppercase; letter-spacing: .02em; color: var(--silver); }
.item p { margin: 0; font-size: .98rem; line-height: 1.55; }
.item .fine { font-size: .84rem; color: var(--silver-dim); }
.tag { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 500; color: var(--brass); }
.tag--free { color: var(--green); }
.tag svg { width: 14px; height: 14px; flex: none; }

/* testimonials */
.quotes { columns: 3; column-gap: clamp(24px, 3.4vw, 48px); }
.quote { margin: 0 0 clamp(28px, 3vw, 40px); padding: 0 0 0 22px; border-left: 2px solid var(--green-deep); display: flex; flex-direction: column; gap: 14px; break-inside: avoid; }
.quote blockquote { margin: 0; }
.quote p { margin: 0; font-size: 1.125rem; line-height: 1.6; color: var(--silver); }
.quote footer { font-size: .92rem; color: var(--silver-dim); }
.quote footer strong { color: var(--ash); font-weight: 500; }

/* community */
.community { text-align: left; }
.names { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px clamp(20px, 3.2vw, 44px); }
.names a { text-decoration: none; color: inherit; background: none; -webkit-text-fill-color: currentColor; border-bottom: 3px solid transparent; transition: border-color .18s; }
.names a:hover { border-bottom-color: currentColor; }
.names li { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.05; text-transform: uppercase; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 44px 56px; font-size: .94rem; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; padding: 0; margin: 0 0 22px; }
.foot-links a { text-decoration: none; color: var(--silver); border-bottom: 1px solid var(--line); }
.foot-links a:hover { border-bottom-color: var(--green); }
.legal { color: var(--silver-dim); font-size: .88rem; max-width: 62ch; }
.legal p { margin: 0 0 10px; }
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-brand img { width: 64px; height: 64px; border-radius: 50%; }
.foot-brand span { font-family: var(--font-display); font-weight: 900; font-size: 1.8rem; text-transform: uppercase; color: var(--silver); line-height: 1; }
.placeholder { background: rgba(201, 170, 92, .16); outline: 1px dashed var(--brass); padding: 0 4px; border-radius: 3px; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .nav { display: none; }
  .header-actions .btn:not(.btn--solid) { display: none; }
}
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 420px; margin-inline: auto; width: 100%; }
  .free-grid { grid-template-columns: 1fr; }
  .tg-panel { border-left: 0; border-top: 1px solid var(--line); padding: 24px 0 0; }
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { border-left: 0; padding: 22px 0; }
  .pillar + .pillar { border-top: 1px solid var(--line); }
  .quotes { columns: 1; }
  .foot-grid { grid-template-columns: 1fr; }
  .shelf-nav { display: none; }
}
@media (max-width: 560px) {
  .week { grid-template-columns: 1fr; }
  .week > div + div { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .brand span { font-size: 1.25rem; }
  .hero-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-art img { animation: none; }
  .item, .item:hover { transition: none; transform: none; }
}

/* Aggr tile: no screenshot yet, so a plain panel in the site style */
.media--plain { display: grid; place-items: center; position: relative; background: #050a06; }
.media--plain::before { content: ""; position: absolute; inset: 0; background: url("assets/candles.svg") center bottom / 100% 70% no-repeat; opacity: .35; }
.media--plain span { position: relative; font-family: var(--font-display); font-weight: 900; font-size: 4.5rem; letter-spacing: .06em; text-transform: uppercase; color: var(--silver); text-shadow: 0 0 30px rgba(92, 207, 42, .45); }

/* ---------- share dialog ---------- */
.share-dialog { width: min(560px, 94vw); max-height: 94vh; overflow: auto; padding: 0; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--panel); color: var(--silver); }
.share-dialog::backdrop { background: rgba(0, 0, 0, 0.75); }
.share-body { padding: 26px 24px 22px; }
.share-body h2 { margin: 0 0 6px; font: 900 1.9rem/1 var(--font-display); text-transform: uppercase; }
.share-x { position: absolute; top: 8px; right: 12px; background: none; border: 0; color: var(--silver-dim); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.share-x:hover { color: var(--green); }
.share-fine { margin: 8px 0 0; font-size: 0.85rem; color: var(--silver-dim); }
.share-formats { display: flex; gap: 8px; margin: 14px 0; }
.share-formats .btn.on { border-color: var(--green); color: var(--green); }
.share-stage { display: flex; justify-content: center; margin: 4px 0 14px; }
.share-img { display: block; max-width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); }
.share-img.square { width: min(300px, 100%); }
.share-img.story { max-height: 40vh; width: auto; }
.share-dialog label { display: block; margin-bottom: 6px; font-size: 0.85rem; color: var(--ash); }
.share-dialog textarea { width: 100%; box-sizing: border-box; background: var(--void); color: var(--silver); border: 1px solid var(--line); border-radius: 8px; padding: 10px; font: inherit; line-height: 1.45; }
.share-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.share-actions [hidden] { display: none; }
.share-offscreen { position: fixed; left: -9999px; opacity: 0; }
