/* Sudoboat teardown lead-gate — shared across the 4 decks.
   Reuses the deck's :root tokens (--brand, --ink, etc.) which cascade document-wide. */

html:not(.sb-open) body { overflow: hidden; }
html.sb-open #sb-gate { display: none !important; }

#sb-gate {
  position: fixed; inset: 0; z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(26,91,255,.18), transparent 60%),
    #06122e;
  font-family: 'Manrope', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
#sb-gate .sb-card {
  width: 100%; max-width: 440px;
  background: #fff; border-radius: 18px;
  box-shadow: 0 30px 80px rgba(2,10,40,.45);
  padding: 34px 32px 30px;
}
#sb-gate .sb-logo { height: 26px; margin-bottom: 22px; }
#sb-gate h2 {
  font-family: 'Sora', sans-serif; font-weight: 600;
  font-size: 22px; line-height: 1.25; color: var(--ink, #0A1838);
  margin: 0 0 8px;
}
#sb-gate .sb-sub {
  font-size: 14px; line-height: 1.5; color: var(--muted, #5C6B8C);
  margin: 0 0 22px;
}
#sb-gate label {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--ink-soft, #2A3658); margin: 0 0 6px;
}
#sb-gate .sb-field { margin-bottom: 14px; }
#sb-gate input {
  width: 100%; box-sizing: border-box;
  padding: 11px 13px; font-size: 15px; font-family: inherit;
  color: var(--ink, #0A1838);
  border: 1px solid var(--line, #DCE4F4); border-radius: 10px;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
#sb-gate input:focus {
  border-color: var(--brand, #1A5BFF);
  box-shadow: 0 0 0 3px rgba(26,91,255,.15);
}
#sb-gate input.sb-invalid { border-color: #E0414B; box-shadow: 0 0 0 3px rgba(224,65,75,.13); }
#sb-gate .sb-err {
  display: none; font-size: 12.5px; color: #C8323C; margin: 2px 0 0;
}
#sb-gate .sb-err.show { display: block; }
#sb-gate button {
  width: 100%; margin-top: 8px;
  padding: 13px 16px; font-size: 15px; font-weight: 600; font-family: 'Sora', sans-serif;
  color: #fff; background: var(--brand, #1A5BFF); border: 0; border-radius: 10px;
  cursor: pointer; transition: background .15s, transform .05s;
}
#sb-gate button:hover { background: var(--brand-mid, #0A3DCC); }
#sb-gate button:active { transform: translateY(1px); }
#sb-gate button[disabled] { opacity: .6; cursor: default; }
#sb-gate .sb-fine {
  font-size: 11.5px; line-height: 1.45; color: var(--faint, #8A96B2);
  margin: 16px 0 0; text-align: center;
}
@media (max-width: 480px) {
  #sb-gate .sb-card { padding: 28px 22px 24px; border-radius: 14px; }
  #sb-gate h2 { font-size: 20px; }
}

/* ---- Download PDF button (all visitors, once deck is visible) ---- */
#sb-download {
  position: fixed; top: 18px; right: 20px; z-index: 9000;
  display: inline-flex; align-items: center;
  font-family: 'Sora', sans-serif; font-size: 13px; font-weight: 600;
  color: var(--brand, #1A5BFF); background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid var(--line, #DCE4F4); border-radius: 100px;
  padding: 8px 15px; cursor: pointer;
  box-shadow: 0 2px 10px rgba(8,20,60,.10);
}
#sb-download:hover { background: #fff; }
html:not(.sb-open) #sb-download { display: none; } /* hidden behind the gate until revealed */

/* ---- Print / "Download PDF": stack every slide as its own page, landscape ---- */
@page { size: A4 landscape; margin: 0; }
@media print {
  html, body { height: auto !important; background: #fff !important; }
  #sb-gate, #sb-download, #sb-consent, .nav { display: none !important; }
  .deck { position: static !important; height: auto !important; }
  .slide {
    position: relative !important; inset: auto !important;
    opacity: 1 !important; pointer-events: auto !important;
    height: 100vh; transition: none !important;
    break-after: page; page-break-after: always;
  }
  .slide:last-child { break-after: auto; page-break-after: auto; }
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
}
