/* raporty.ai-invest.pl — shared styles for the gate and the access page.
   Tokens follow the Framer pages /raporty-etf/wariant-wachlarz and /raporty-etf/dostep. */
:root {
  --bg: #000;
  --void: #060607;
  --panel: #0c1116;
  --panel-2: #050709;
  --surface: #111;
  --chip: #333;
  --text: #fff;
  --text-2: #ddd;
  --text-3: rgba(233, 237, 242, 0.58);
  --bone: #e9edf2;
  --line: rgba(233, 237, 242, 0.1);
  --cyan: #61eaff;
  --cyan-strong: #00e5ff;
  --ok: #3ddc84;
  --danger: #ff8d8d;
  --cta: linear-gradient(106deg, #3d248c 0%, #20c7d6 100%);
  --cta-soft: linear-gradient(105deg, #665be1 0%, #18cde1 100%);
  --font: Geist, "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Fira Code", "JetBrains Mono", ui-monospace, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 3px solid rgba(97, 234, 255, 0.45); outline-offset: 3px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.accent { color: var(--cyan); }

/* Buttons */
.btn-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 16px 28px;
  border: 0; border-radius: 8px; cursor: pointer;
  background: var(--cta); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 20px; line-height: 1.2;
  box-shadow: 0 1px 2px rgba(0,0,0,.13), 0 12px 32px rgba(24, 205, 225, 0.14);
  transition: filter .18s ease, box-shadow .18s ease, transform .18s ease;
}
.btn-cta:hover { filter: brightness(1.08); box-shadow: 0 14px 36px rgba(24, 205, 225, 0.24); }
.btn-cta svg { width: 20px; height: 20px; flex: none; }
.btn-cta--sm { min-height: 40px; padding: 10px 18px; font-size: 14px; border-radius: 8px; }

/* Footer */
.site-footer { background: var(--surface); padding: 40px 80px 48px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 40px; }
.site-footer nav a { color: var(--text-2); text-decoration: none; font-size: 16px; line-height: 1.4; }
.site-footer nav a:hover { color: #fff; text-decoration: underline; }
.site-footer p { margin: 0; max-width: 1265px; color: #eee; font-size: 13px; line-height: 1.5; }
.site-footer strong { font-weight: 600; }
@media (max-width: 809px) {
  .site-footer { padding: 32px 36px 40px; }
  .site-footer nav { flex-direction: column; gap: 16px; }
}

/* ---------- Gate page ---------- */
.gate { position: relative; overflow: hidden; padding: 56px 24px 72px; text-align: center; isolation: isolate; }
.gate__ring {
  position: absolute; z-index: -2; left: 50%; top: -116px; width: 1052px; height: 1052px;
  transform: translateX(-50%); border-radius: 50%;
  background: linear-gradient(180deg, #0c1116 0%, #000 38%);
  box-shadow: 0 0 0 1px rgba(97, 234, 255, .22), 0 -20px 80px rgba(97, 234, 255, .08);
}
.gate__ring::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: linear-gradient(#61eaff 0%, rgba(159, 33, 255, .9) 29%, rgba(0,0,0,0) 45%);
  opacity: .12;
}
.gate__grid {
  position: absolute; z-index: -3; inset: -62px -76px auto; height: 1009px;
  background-image: url("grid.svg"); background-size: 263px 263px; background-position: center top;
  opacity: .1;
  -webkit-mask: radial-gradient(70% 60% at 50% 25%, transparent 30%, #000 75%);
          mask: radial-gradient(70% 60% at 50% 25%, transparent 30%, #000 75%);
}
.gate__glow {
  position: absolute; z-index: -1; left: 50%; top: 0; width: 1052px; height: 640px; transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 30%, rgba(12, 17, 22, .9), rgba(0,0,0,0) 100%);
}
.badge {
  display: inline-flex; align-items: center; gap: 14px; padding: 8px 18px 8px 8px;
  border-radius: 50px; background: var(--surface); box-shadow: 5px 5px 15px rgba(0,0,0,.03);
  font-size: 16px; line-height: 1.4; color: #f5f5f5;
}
.badge__chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px;
  border-radius: 50px; background: var(--chip); font-weight: 700; line-height: 1.2;
}
.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 3px rgba(97, 234, 255, .2); }
.badge__label { font-weight: 500; }
.gate h1 {
  max-width: 820px; margin: 24px auto 0;
  font-size: 58px; line-height: 1.3; font-weight: 600; letter-spacing: -0.04em; text-wrap: balance;
}
.gate__lead {
  max-width: 669px; margin: 32px auto 0;
  color: var(--text-2); font-size: 18px; line-height: 1.4; font-weight: 500;
}
.gate__lead strong { color: #fff; font-weight: 600; }
.gate__lead .accent { font-weight: 600; }
.gate__cta { margin-top: 32px; }
.gate__note { margin: 20px 0 0; color: var(--text-2); font-size: 16px; line-height: 1.4; font-weight: 500; }
.gate__note u { color: #fff; text-underline-offset: 3px; }

.locked {
  position: relative; display: block; width: 100%; max-width: 1096px; height: 600px; margin: 54px auto 0;
  padding: 0; border: 1px solid rgba(97, 234, 255, .55); border-radius: 24px; overflow: hidden; cursor: pointer;
  background: linear-gradient(#0c1116 0%, #050709 100%); color: #fff;
  box-shadow: 0 30px 100px rgba(0,0,0,.48), 0 0 0 1px rgba(97, 234, 255, .08), 0 0 40px rgba(97, 234, 255, .08);
  text-align: center;
}
.locked__pill {
  position: absolute; z-index: 4; top: 28px; left: 28px;
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px;
  border-radius: 999px; background: var(--chip); backdrop-filter: blur(12px);
  font-size: 12px; font-weight: 600; line-height: 1.2;
}
.locked__pill svg { width: 14px; height: 14px; }
.locked__stage { position: absolute; left: 50%; top: 20px; width: 960px; height: 475px; transform: translateX(-50%); }
.locked__glow { position: absolute; left: 0; right: 0; top: 55px; height: 420px; background: radial-gradient(50% 50%, rgba(97, 234, 255, .22) 0%, rgba(102, 91, 225, .1) 45%, rgba(0,0,0,0) 100%); }
.fan { position: absolute; inset: 0; filter: blur(2.5px) brightness(.8); }
.fan__card {
  position: absolute; width: 200px; height: 250px; border-radius: 12px; overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,.55); transform-origin: 50% 50%;
}
.fan__card img { width: 100%; height: 100%; object-fit: cover; }
.locked__fade { position: absolute; left: 0; right: 0; top: 251px; bottom: 0; background: linear-gradient(rgba(5,7,9,0) 0%, rgba(5,7,9,.94) 100%); }
.locked__center { position: absolute; z-index: 3; left: 50%; top: 178px; transform: translateX(-50%); display: grid; justify-items: center; gap: 16px; }
.locked__lock {
  display: grid; place-items: center; width: 84px; height: 84px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(102, 91, 225, .96) 0%, rgba(24, 205, 225, .96) 100%);
  box-shadow: 0 14px 50px rgba(24, 205, 225, .26);
  transition: transform .2s ease;
}
.locked__lock svg { width: 30px; height: 30px; }
.locked:hover .locked__lock { transform: scale(1.06); }
.locked__title { font-size: 30px; line-height: 1.2; font-weight: 600; white-space: nowrap; }

.teaser { max-width: 720px; margin: 16px auto 0; color: #eee; font-size: 22px; line-height: 1.4; font-weight: 500; letter-spacing: -0.01em; }
.teaser strong { color: var(--cyan); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 59px auto 0; padding: 0; list-style: none; }
.chips li {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px 10px 16px;
  border-radius: 999px; background: rgba(255, 255, 255, .19);
  color: #f5f5f5; font-size: 15px; line-height: 1.4; font-weight: 500;
}
.chips svg { width: 18px; height: 18px; color: var(--cyan); flex: none; }

@media (max-width: 1199px) {
  .locked { max-width: calc(100% - 32px); }
}
@media (max-width: 809px) {
  .gate { padding: 40px 20px 56px; }
  .badge { font-size: 14px; gap: 8px; padding: 6px 12px 6px 6px; white-space: nowrap; }
  .badge__chip { font-size: 14px; padding: 6px 10px; gap: 6px; }
  .gate h1 { font-size: 36px; line-height: 1.2; margin-top: 28px; }
  .gate__lead { font-size: 18px; margin-top: 24px; }
  .btn-cta { width: 100%; max-width: 420px; }
  .locked { max-width: 100%; height: 408px; margin-top: 64px; }
  .locked__pill { left: 50%; transform: translateX(-50%); top: 22px; }
  .locked__stage { top: 30px; transform: translateX(-50%) scale(.8); transform-origin: 50% 0; }
  .locked__fade { top: 200px; }
  .locked__center { top: 78px; }
  .locked__title { font-size: 34px; }
  .teaser { font-size: 17px; max-width: 303px; margin-top: 24px; }
  .chips { flex-direction: column; align-items: center; gap: 8px; margin-top: 40px; }
  .chips li { font-size: 13px; padding: 8px 16px 8px 12px; }
}

/* Signup dialog */
.signup {
  width: min(480px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0;
  border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px;
  background: #0d0f13; color: #f5f5f5;
  box-shadow: 0 40px 120px rgba(0,0,0,.7);
}
.signup::backdrop { background: rgba(0, 0, 0, .72); backdrop-filter: blur(6px); }
.signup[open] { animation: pop .18s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.signup__body { position: relative; padding: 28px 28px 24px; text-align: left; }
.signup__close {
  position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: rgba(255,255,255,.06); color: #fff; cursor: pointer;
}
.signup__close:hover { background: rgba(255,255,255,.12); }
.signup__close svg { width: 16px; height: 16px; }
.signup__kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--cyan); font-size: 13px; font-weight: 600; }
.signup__kicker svg { width: 16px; height: 16px; }
.signup h2 { margin: 12px 48px 0 0; font-size: 28px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; }
.signup__intro { margin: 16px 0 20px; color: rgba(245,245,245,.75); font-size: 15px; line-height: 1.5; }
.signup__foot { margin: 18px 0 0; text-align: center; color: rgba(245,245,245,.5); font-size: 12px; }

/* MailerLite embed (markup from framer-scripts/46-connect-mailerlite-etf-report-gate.js) */
.ml-form-embedContainer, .ml-form-align-center, .ml-form-embedWrapper, .ml-form-embedBody, .ml-block-form { width: 100%; margin: 0; padding: 0; }
.ml-form-embedContent, .ml-form-successBody { display: none; }
.ml-form-formContent { margin: 0 0 12px; }
.ml-form-fieldRow, .ml-field-group { width: 100%; margin: 0; }
.ml-form-fieldRow input {
  width: 100%; height: 52px; margin: 0; padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.12); border-radius: 10px;
  background: rgba(255,255,255,.06); color: #f5f5f5;
  font: 400 16px/1.2 var(--font);
  outline: none; transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.ml-form-fieldRow input::placeholder { color: rgba(245,245,245,.45); opacity: 1; }
.ml-form-fieldRow input:hover { background: rgba(255,255,255,.075); }
.ml-form-fieldRow input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(97,234,255,.12); }
.ml-form-checkboxRow { margin: 0 0 14px; }
.ml-form-checkboxRow label { position: relative; display: grid; grid-template-columns: 18px minmax(0,1fr); gap: 10px; align-items: start; cursor: pointer; }
.ml-form-checkboxRow input { position: absolute; opacity: 0; pointer-events: none; }
.ml-form-checkboxRow .label-description { display: contents; }
.ml-form-checkboxRow .label-description::before {
  content: ""; grid-column: 1; width: 18px; height: 18px; margin-top: 1px;
  border: 1px solid rgba(255,255,255,.24); border-radius: 5px; background: rgba(255,255,255,.06);
}
.ml-form-checkboxRow .label-description p { grid-column: 2; margin: 0; color: rgba(245,245,245,.58); font: 400 12px/1.45 var(--font); }
.ml-form-checkboxRow input:focus-visible + .label-description::before { outline: 3px solid rgba(97,234,255,.18); border-color: var(--cyan); }
.ml-form-checkboxRow input:checked + .label-description::before { border-color: var(--cyan); background: var(--cyan); box-shadow: inset 0 0 0 4px #0d0f13; }
.ml-form-embedSubmit { width: 100%; margin: 0; }
.ml-form-embedSubmit button {
  width: 100%; min-height: 52px; margin: 0; padding: 14px 18px;
  border: 0; border-radius: 10px; color: #fff; cursor: pointer;
  background: var(--cta-soft); box-shadow: 0 12px 32px rgba(24,205,225,.14);
  font: 600 15px/1.2 var(--font);
  transition: filter .18s ease, box-shadow .18s ease;
}
.ml-form-embedSubmit button:hover { filter: brightness(1.08); box-shadow: 0 14px 36px rgba(24,205,225,.22); }
.ml-form-embedSubmit button.loading { display: none; }
.ml-form-embedSubmitLoad { display: inline-block; width: 18px; height: 18px; border: 3px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.ml-error input { border-color: #ff6b6b !important; }
.ml-error p, .ml-error .label-description p { color: var(--danger) !important; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Access page ---------- */
.access { background: var(--void); color: var(--bone); min-height: 100vh; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 50px; background: var(--void); border-bottom: 1px solid rgba(233,237,242,.14);
}
.brand { display: flex; align-items: center; gap: 16px; min-width: 0; }
.brand__logo { font-family: var(--mono); font-weight: 700; font-size: 20px; color: var(--cyan-strong); text-decoration: none; white-space: nowrap; }
.brand__divider { width: 1px; height: 34px; background: rgba(233,237,242,.18); }
.brand__title { margin: 0; font-size: 15px; font-weight: 600; color: #fff; }
.brand__status { margin: 2px 0 0; font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--ok); }

.survey {
  max-width: 1100px; margin: 24px auto 0; padding: 22px 24px;
  border: 1px solid rgba(97, 234, 255, .3); border-radius: 16px;
  background: linear-gradient(135deg, rgba(0, 229, 255, .07), rgba(102, 91, 225, .06));
}
.survey[hidden] { display: none; }
.survey__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.survey__kicker { margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan-strong); }
.survey h2 { margin: 6px 0 0; font-size: 20px; line-height: 1.3; font-weight: 600; color: #fff; }
.survey__skip { flex: none; padding: 6px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--text-3); font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.survey__skip:hover { color: #fff; }
.survey fieldset { margin: 18px 0 0; padding: 0; border: 0; min-width: 0; }
.survey legend { padding: 0; margin: 0 0 10px; font-size: 15px; font-weight: 600; color: var(--bone); }
.options { display: flex; flex-wrap: wrap; gap: 8px; }
.option { position: relative; }
.option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.option span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 9px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.03);
  font-size: 14px; line-height: 1.3; color: var(--bone); cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.option input:hover + span { border-color: rgba(233,237,242,.3); }
.option input:checked + span { border-color: var(--cyan-strong); background: rgba(0, 229, 255, .12); color: #fff; }
.option input:focus-visible + span { outline: 3px solid rgba(97, 234, 255, .45); outline-offset: 2px; }
.survey__actions { display: flex; align-items: center; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.survey__submit {
  min-height: 42px; padding: 10px 20px; border: 0; border-radius: 8px; cursor: pointer;
  background: var(--cta); color: #fff; font-weight: 600; font-size: 15px;
}
.survey__submit:disabled { opacity: .45; cursor: not-allowed; }
.survey__hint { margin: 0; color: var(--text-3); font-size: 13px; }
.survey__thanks { margin: 0; color: var(--ok); font-size: 15px; font-weight: 500; }
.survey__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.viewer { position: relative; margin-top: 24px; }
.viewer__bar { position: sticky; top: 0; z-index: 5; background: rgba(6, 6, 7, .96); backdrop-filter: blur(12px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-padding-inline: 24px; padding: 12px 24px; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; flex-shrink: 0;
  padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.02);
  color: var(--bone); cursor: pointer; text-align: left;
}
.tab[aria-selected="true"] { border-color: var(--cyan-strong); background: rgba(0, 229, 255, .12); }
.tab__ticker { font-family: var(--mono); font-weight: 700; font-size: 14px; }
.tab[aria-selected="true"] .tab__ticker { color: var(--cyan-strong); }
.tab__label { font-size: 11px; color: var(--text-3); white-space: nowrap; }
.subrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 24px; border-top: 1px solid var(--line); }
.subrow__meta { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--text-3); }
.subrow__meta b { color: var(--bone); font-weight: 600; }
.subrow__nav { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.counter { font-family: var(--mono); font-size: 12px; color: var(--text-3); min-width: 40px; text-align: center; }
.navbtn {
  padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255,255,255,.04);
  color: var(--bone); font-size: 13px; font-weight: 600; cursor: pointer;
}
.navbtn:hover { border-color: rgba(233,237,242,.3); }
.report-frame { display: block; width: 100%; height: 70vh; border: 0; background: var(--void); }
.state { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 60vh; padding: 24px; text-align: center; color: var(--text-3); font-size: 15px; }
.state[hidden] { display: none; }
.bottomnav { display: flex; gap: 10px; max-width: 1080px; margin: 0 auto; padding: 28px 24px 36px; border-top: 1px solid var(--line); }
.bottomnav .navbtn { flex: 1; }
.bottomnav .navbtn--next { border-color: rgba(0, 229, 255, .4); color: #fff; }

.course {
  max-width: 1100px; margin: 24px auto 96px; padding: 44px 40px;
  border: 1px solid rgba(0, 229, 255, .28); border-radius: 18px;
  background: linear-gradient(135deg, #07131a 0%, #0a0c10 55%, #140812 100%);
}
.course__kicker { margin: 0; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan-strong); }
.course h2 { max-width: 560px; margin: 16px 0 0; font-size: 34px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.course p:not(.course__kicker) { max-width: 690px; margin: 16px 0 32px; color: rgba(233,237,242,.75); font-size: 17px; line-height: 1.65; }

.brand__title, .topbar .btn-cta { white-space: nowrap; }
@media (max-width: 1147px) {
  .topbar { padding: 14px 24px; }
  .survey, .course { margin-left: 24px; margin-right: 24px; }
}
@media (max-width: 759px) {
  .topbar { padding: 12px 16px; flex-wrap: wrap; }
  .topbar .btn-cta { white-space: normal; }
  .brand__divider { display: none; }
  .brand { gap: 12px; }
  .brand__logo { font-size: 18px; }
  .topbar .btn-cta { width: 100%; max-width: none; }
  .survey { margin: 16px 14px 0; padding: 18px 16px; }
  .survey h2 { font-size: 18px; }
  .option span { font-size: 14px; }
  .tabs { padding: 10px 14px; }
  .subrow { padding: 8px 14px; }
  .bottomnav { flex-direction: column; padding: 20px 14px 28px; }
  .course { margin: 16px 14px 64px; padding: 28px 20px; }
  .course h2 { font-size: 26px; }
  .course p:not(.course__kicker) { font-size: 16px; }
  .course .btn-cta { width: 100%; }
}
