/* Ice Man Club full-site preview — extends app.css. Dark screens only. Mobile first. */

.club-shell .sidenav,
.club-shell .bottom-nav { display: flex; } /* club nav is always on */
@media (max-width: 899px) {
  .club-shell .sidenav { display: none; }
}
@media (min-width: 900px) {
  .club-shell .bottom-nav { display: none; }
  .club-shell .sidenav {
    display: flex;
    flex-direction: column;
    width: 214px;
    flex: 0 0 214px;
    border-right: 1px solid var(--line);
    background: #050505;
    padding: 16px 10px 24px;
    gap: 2px;
    overflow: auto;
  }
  .club-shell .sidenav .nav-label {
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--lbl);
    padding: 14px 12px 6px;
    font-weight: 700;
  }
  .club-shell .sidenav a,
  .club-shell .sidenav button {
    background: transparent;
    border: 0;
    color: var(--dim);
    text-align: left;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    display: block;
  }
  .club-shell .sidenav a.on,
  .club-shell .sidenav a:hover { background: #152033; color: var(--ice); }
}

.club-shell .bottom-nav {
  position: sticky;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: #050505;
  border-top: 1px solid var(--line);
  padding: 6px 4px calc(8px + env(safe-area-inset-bottom));
}
.club-shell .bottom-nav a {
  background: transparent;
  border: 0;
  color: var(--dim);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 8px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}
.club-shell .bottom-nav a.on { color: var(--ice); }
.club-shell .bottom-nav a .ico {
  width: 22px; height: 3px; border-radius: 2px; background: currentColor;
}

.topbar a.brand-lockup { text-decoration: none; color: inherit; }
.topbar .club-section {
  display: none;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 700;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
  text-decoration: none;
}
@media (min-width: 420px) {
  .topbar .club-section { display: inline-block; }
}

.plan-chip {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  border-radius: 999px;
  padding: 4px 8px;
  border: 1px solid #3a3200;
  color: var(--brand-amber);
  background: #140e00;
  white-space: nowrap;
}
.plan-chip.free { color: var(--dim); border-color: #2a2a2a; background: #111; }
.plan-chip.platinum { color: var(--cyan); border-color: #00555c; background: #041418; }

/* Hero / club home */
.club-hero {
  text-align: center;
  padding: 12px 0 8px;
}
.club-hero .welcome-art {
  margin-left: auto;
  margin-right: auto;
}
.club-hero .wm {
  width: min(280px, 80%);
  margin: 8px auto 16px;
  height: auto;
}
.club-hero h1 {
  font-size: clamp(28px, 8vw, 48px);
  letter-spacing: -0.04em;
  max-width: 16ch;
  margin: 0 auto 10px;
}
.club-hero .deck { margin-left: auto; margin-right: auto; }

.feature-grid {
  display: grid;
  gap: 10px;
  margin: 8px 0 18px;
}
@media (min-width: 720px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  .feature-grid.four { grid-template-columns: 1fr 1fr 1fr 1fr; }
}
.feature {
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 16px 16px 14px;
  background: #0c0c0c;
  text-decoration: none;
  color: inherit;
  display: block;
}
.feature h3 { font-size: 17px; margin: 0 0 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.feature .feat-kicker {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ice);
  font-weight: 700;
  margin: 0 0 8px;
}
a.feature:hover { border-color: #3a5060; }

/* Badges */
.badge-dc {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #051410;
  border: 1px solid var(--green);
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  line-height: 1.2;
  vertical-align: middle;
}
.badge-dc::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 2px;
}
.badge-fg {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111;
  background: var(--cyan);
  padding: 2px 6px;
  border-radius: 3px;
  vertical-align: middle;
}
.badge-new {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111;
  background: var(--ice);
  padding: 2px 6px;
  border-radius: 3px;
}
.badge-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 8px; }

/* Marketplace */
.market-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 14px;
}
.tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 2px 0;
}
.tabs a, .tabs button {
  flex: 0 0 auto;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #2a2a2a;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.tabs a.on, .tabs button.on {
  border-color: var(--ice);
  background: #152033;
  color: var(--ice);
}
.unlock-meter {
  font-size: 13px;
  color: var(--muted);
  background: #0c0c0c;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  line-height: 1.45;
}
.unlock-meter b { color: var(--ink); }

.listing {
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 16px;
  background: #0c0c0c;
  margin: 0 0 10px;
}
.listing h3 { font-size: 17px; margin: 0 0 6px; letter-spacing: -0.02em; }
.listing .meta { color: var(--dim); font-size: 13px; margin: 0 0 6px; line-height: 1.4; }
.listing .price {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.03em;
  margin: 8px 0 2px;
  color: var(--ink);
}
.listing .price-note { font-size: 12px; color: var(--lbl); margin: 0 0 10px; line-height: 1.4; }
.listing .details {
  display: none;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #222;
}
.listing.is-open .details { display: block; }
.listing .details dt {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lbl);
  font-weight: 700;
  margin: 8px 0 2px;
}
.listing .details dd { margin: 0; font-size: 15px; color: var(--ink); }
.listing a.member-link { color: var(--cyan); }
.nofollow-note { font-size: 11px; color: var(--lbl); }

.preview-tools {
  border: 1px dashed #3a3200;
  background: #100e00;
  border-radius: 12px;
  padding: 12px;
  margin: 0 0 16px;
}
.preview-tools p { margin: 0 0 8px; font-size: 12px; color: var(--ex); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; }
.preview-tools .actions { margin-top: 8px; }
.preview-tools .btn { font-size: 13px; height: 40px; padding: 0 12px; }

/* Plans comparison */
.perk-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 8px 0 18px;
}
.perk-table th, .perk-table td {
  border-bottom: 1px solid #222;
  text-align: left;
  padding: 10px 8px;
  vertical-align: top;
}
.perk-table th {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}
.perk-table td.yes { color: var(--green); font-weight: 700; }
.perk-table td.no { color: var(--dim); }

.strike { text-decoration: line-through; color: var(--dim); font-size: 0.55em; font-weight: 500; margin-right: 8px; }

/* Checkout sheet */
.sheet-back {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
@media (min-width: 700px) {
  .sheet-back { align-items: center; }
}
.sheet {
  background: #0b0d0e;
  border: 1px solid #2a2a2a;
  border-radius: 16px 16px 0 0;
  padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
  width: min(480px, 100%);
  max-height: 90dvh;
  overflow: auto;
}
@media (min-width: 700px) {
  .sheet { border-radius: 16px; }
}
.sheet h2 { margin: 0 0 8px; }
.sheet .fine { color: var(--muted); margin: 0 0 14px; }

/* Forms */
.form-card { margin: 0 0 16px; }
.field .help { font-size: 12px; color: var(--lbl); }
.toast {
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #152033;
  color: var(--ice);
  font-size: 14px;
  line-height: 1.4;
}
.toast.warn { background: #100e00; color: var(--ex); }
.toast.ok { background: #051410; color: var(--green); }

/* Badge paste */
.paste-box {
  background: #0a0a0a;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 14px;
  font-size: 16px;
  line-height: 1.5;
  margin: 0 0 10px;
}
.paste-box a { color: var(--cyan); }
.code-box {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  white-space: pre-wrap;
  word-break: break-word;
  background: #0a0a0a;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 12px;
  color: var(--muted);
  margin: 0 0 12px;
}

/* Open bids */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0 0 16px;
}
@media (min-width: 520px) {
  .stat-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.stat {
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 16px;
  background: #0c0c0c;
}
.stat .lbl {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 700;
}
.stat .val {
  font-size: clamp(28px, 7vw, 36px);
  font-weight: 650;
  letter-spacing: -0.04em;
  margin: 6px 0 4px;
}
.stat .note { font-size: 12px; color: var(--lbl); line-height: 1.4; }

.bid {
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 14px 16px;
  background: #0c0c0c;
  margin: 0 0 10px;
}
.bid h3 { font-size: 16px; margin: 0 0 4px; }
.bid .qty { font-size: 15px; color: var(--ink); margin: 0 0 6px; font-weight: 650; }
.bid .where { color: var(--ice); font-size: 13px; font-weight: 700; margin: 0 0 6px; }
.bid .meta { color: var(--dim); font-size: 13px; margin: 0; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 0 0 18px;
}
.data-table th, .data-table td {
  border-bottom: 1px solid #222;
  text-align: left;
  padding: 10px 8px;
  vertical-align: top;
}
.data-table th {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}

.rule-list { margin: 0 0 18px; padding: 0; list-style: none; display: grid; gap: 10px; }
.rule-list li {
  background: #0c0c0c;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 14px 16px;
  line-height: 1.45;
  font-size: 15px;
}
.rule-list li b { color: var(--ink); }

.partner-option { margin: 0 0 12px; }
.partner-option .num {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-amber);
  font-weight: 800;
  margin: 0 0 6px;
}

.muted-link { color: var(--cyan); }

hr.sep { border: 0; border-top: 1px solid #222; margin: 22px 0; }

.foot-note {
  font-size: 12px;
  color: var(--lbl);
  line-height: 1.45;
  margin: 24px 0 8px;
}

/* Estimator topbar club escape */
.topbar a.club-escape {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--ice);
  text-decoration: none;
  border: 1px solid #1a3048;
  background: #0c1724;
  border-radius: 999px;
  padding: 5px 10px;
  white-space: nowrap;
}

.gated { opacity: 0.72; }

/* Per-page Ice Man header art (Perplexity scenes). Full frame, no crop. */
.page-hero {
  margin: 0;
  padding: 0;
  background: #030405;
  line-height: 0;
  width: 100%;
}
.page-hero picture,
.page-hero img {
  display: block;
  width: 100%;
  height: auto;
}
.page-hero img {
  object-fit: contain;
  object-position: center;
  background: #030405;
}
@media print {
  .page-hero { display: none !important; }
}

@media (max-width: 599px) {
  /* Keep Club escape compact so it doesn't crowd ICE MAN CLUB or clip EN/ES. */
  .topbar a.club-escape {
    padding: 4px 7px;
    font-size: 10px;
    letter-spacing: 0.08em;
  }
}

/* Tagline: HTML text only, never drawn on header art. Bold and readable at 390px. */
.salt-tagline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12em;
  margin: 4px 0 14px;
  font-size: clamp(26px, 8.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  max-width: 18em;
}
.club-hero .salt-tagline {
  align-items: center;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.salt-tagline a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}
.salt-tagline a:hover,
.salt-tagline a:focus-visible {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}
.salt-tagline .sell {
  color: var(--brand-amber);
  text-transform: uppercase;
}

/* Teaser/home: app-first headline, tagline secondary */
.teaser-screen h1.app-headline {
  max-width: 28ch;
  font-size: clamp(28px, 7.2vw, 48px);
  letter-spacing: -0.035em;
  margin: 0 0 8px;
  line-height: 1.12;
}
.teaser-screen .app-subhead {
  margin: 0 0 14px;
  font-size: clamp(15px, 3.7vw, 18px);
  font-weight: 600;
  line-height: 1.4;
  color: var(--muted, #9aa8a4);
  max-width: 38em;
}
.teaser-screen .salt-tagline-secondary {
  font-size: clamp(20px, 6vw, 32px);
  margin: 0 0 16px;
}
