/* Newsletter page base styles. Light theme overrides load after this file. */
:root {
  --bg: #050806;
  --surface: #0d130f;
  --border: #26342b;
  --border-soft: rgba(34, 255, 136, 0.18);
  --text: #f2f7f3;
  --muted: #a7b2aa;
  --faint: #617066;
  --green: #22ff88;
  --red: #ff4d5f;
  --shadow: rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background:
    radial-gradient(circle at 18% 8%, rgba(34, 255, 136, 0.11), transparent 30%),
    radial-gradient(circle at 82% 72%, rgba(34, 255, 136, 0.08), transparent 34%),
    linear-gradient(180deg, #050806 0%, #060806 48%, #020302 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.72), transparent 72%);
}

a { color: inherit; }

.container {
  width: min(100% - 38px, 1180px);
  margin: 0 auto;
}

.topbar {
  border-bottom: 1px solid var(--border);
  background: rgba(5, 8, 6, 0.86);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  text-decoration: none;
  color: white;
  font-size: 1.06rem;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.newsletter-mobile-actions {
  display: none;
}

.nav-link {
  text-decoration: none;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.025);
  color: #d7ded9;
  font-size: 0.72rem;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 900;
  transition: 0.18s ease;
}

.nav-link:hover {
  border-color: var(--border-soft);
  background: rgba(34, 255, 136, 0.06);
  color: var(--green);
  transform: translateY(-1px);
}

.edge-ticker {
  border-bottom: 1px solid rgba(34,255,136,0.16);
  overflow: hidden;
  background: linear-gradient(180deg, #07100a, #030604);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.025);
  white-space: nowrap;
  position: relative;
  z-index: 5;
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  animation: ticker 40s linear infinite;
  will-change: transform;
}

.edge-ticker:hover .ticker-track,
.edge-ticker:focus-within .ticker-track {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-right: 1px solid rgba(255,255,255,0.075);
  color: #c5cec8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.ticker-market {
  color: #657269;
  font-size: 0.56rem;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.ticker-item strong {
  color: #f6fff8;
  font-weight: 950;
}

.ticker-item em {
  min-width: 42px;
  text-align: center;
  color: var(--green);
  font-style: normal;
  font-weight: 950;
  padding: 2px 6px;
  border: 1px solid var(--border-soft);
  background: rgba(34,255,136,0.065);
  box-shadow: inset 0 0 14px rgba(34,255,136,0.03), 0 0 12px rgba(34,255,136,0.08);
}

.ticker-item em.odds-low {
  color: var(--red);
  border-color: rgba(255,77,95,0.42);
  background: rgba(255,77,95,0.08);
  box-shadow: inset 0 0 14px rgba(255,77,95,0.06), 0 0 12px rgba(255,77,95,0.12);
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.page {
  min-height: calc(100dvh - 106px);
  display: grid;
  align-items: center;
  padding: clamp(56px, 6vw, 92px) 0;
  position: relative;
  z-index: 1;
}

.newsletter-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.intro-panel {
  max-width: 660px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 16px var(--green);
}

h1 {
  margin: 0;
  color: white;
  font-size: clamp(4.2rem, 7.2vw, 7.4rem);
  line-height: 0.86;
  letter-spacing: -0.085em;
  text-transform: uppercase;
  text-wrap: balance;
}

.copy {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.35vw, 1.24rem);
  line-height: 1.62;
  max-width: 620px;
}

.copy strong {
  color: #f3fff7;
}

.newsletter-points {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 18px;
}

.point {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.026);
  padding: 12px 14px;
  min-height: 0;
}

.point strong {
  display: block;
  color: white;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.point span {
  display: block;
  color: #87928b;
  font-size: 0.84rem;
  line-height: 1.35;
  font-weight: 700;
}

.signup-card {
  width: 100%;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 88% 12%, rgba(255,77,95,0.10), transparent 24%),
    radial-gradient(circle at 12% 88%, rgba(34,255,136,0.12), transparent 32%),
    linear-gradient(180deg, rgba(17,26,20,0.96), rgba(8,12,9,0.96));
  box-shadow: 0 24px 72px var(--shadow);
  padding: clamp(28px, 3.8vw, 44px);
}

.card-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  color: #89958d;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffd9de;
}

.live-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 0 12px rgba(255,77,95,0.9);
  animation: blinkDot 1s infinite ease-in-out;
}

@keyframes blinkDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.32; transform: scale(0.78); }
}

.signup-card h2 {
  margin: 0;
  color: white;
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  line-height: 0.92;
  letter-spacing: -0.065em;
  text-transform: uppercase;
}

.card-copy {
  margin: 16px 0 0;
  color: #9aa59e;
  font-size: 0.96rem;
  line-height: 1.55;
}

.form {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

label {
  display: block;
  color: var(--faint);
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

input[type="email"] {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 0;
  background: rgba(255,255,255,0.035);
  color: white;
  padding: 0 15px;
  font: inherit;
  font-size: 1rem;
  outline: none;
}

input[type="email"]:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(34,255,136,0.12);
}

input::placeholder { color: #738078; }

.btn {
  min-height: 54px;
  border: 1px solid var(--green);
  background: var(--green);
  color: #021105;
  padding: 0 22px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 0 28px rgba(34,255,136,0.25);
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn:disabled { opacity: 0.58; cursor: wait; transform: none; }

.fine-print {
  margin: 4px 0 0;
  color: #7f8b84;
  font-size: 0.82rem;
  line-height: 1.45;
}

.message {
  min-height: 22px;
  margin: 2px 0 0;
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 800;
}

.message.error { color: #ffd9de; }

.premium-reminder {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
}

.premium-reminder span {
  color: #7f8b84;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.premium-reminder a {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 950;
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.premium-reminder a:hover {
  text-decoration: underline;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.responsible-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 28px 0 38px;
  background: rgba(2, 3, 2, 0.32);
}

.disclaimer-card {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: start;
}

.disclaimer-card strong {
  color: #f6fff8;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.disclaimer-card p {
  margin: 0;
  color: #87928b;
  font-size: 0.82rem;
  line-height: 1.55;
  font-weight: 700;
}

@media (max-width: 980px) {
  .newsletter-layout {
    grid-template-columns: 1fr;
  }

  .intro-panel {
    max-width: none;
  }

  h1 {
    max-width: 760px;
  }

  .signup-card {
    max-width: 720px;
  }

  .disclaimer-card {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 20px, 1180px);
  }

  .nav {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    gap: 6px;
    padding: 4px 0;
  }

  .brand {
    min-width: max-content;
    font-size: 0.82rem;
    line-height: 1;
    white-space: nowrap;
  }

  .newsletter-desktop-actions {
    display: none;
  }

  .newsletter-mobile-actions {
    width: auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    margin-left: auto;
  }

  .nav-link {
    height: 24px;
    min-height: 24px;
    min-width: 0;
    padding: 0 8px;
    border-radius: 5px;
    font-size: clamp(0.48rem, 2.15vw, 0.56rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1;
    white-space: nowrap;
  }

  .ticker-track {
    animation-duration: 28s;
  }

  .ticker-item {
    gap: 5px;
    padding: 5px 10px;
    font-size: 0.54rem;
    letter-spacing: 0.035em;
  }

  .ticker-market {
    font-size: 0.45rem;
  }

  .ticker-item em {
    min-width: 34px;
    padding: 1px 4px;
    font-size: 0.52rem;
  }

  .page {
    min-height: auto;
    padding: 28px 0 30px;
    align-items: start;
  }

  .newsletter-layout {
    gap: 18px;
  }

  .kicker {
    margin-bottom: 12px;
    font-size: 0.6rem;
  }

  h1 {
    font-size: clamp(2.3rem, 13vw, 3.35rem);
    line-height: 0.92;
  }

  .copy {
    margin-top: 14px;
    font-size: 0.88rem;
    line-height: 1.48;
  }

  .newsletter-points {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 14px;
  }

  .point {
    min-height: 0;
    padding: 11px;
  }

  .point strong {
    font-size: 0.62rem;
    margin-bottom: 4px;
  }

  .point span {
    font-size: 0.76rem;
  }

  .signup-card {
    padding: 18px;
  }

  .card-label {
    margin-bottom: 12px;
    font-size: 0.56rem;
  }

  .signup-card h2 {
    font-size: clamp(1.7rem, 10vw, 2.5rem);
  }

  .card-copy {
    margin-top: 12px;
    font-size: 0.84rem;
  }

  .form {
    margin-top: 20px;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
    min-height: 44px;
  }

  input[type="email"] {
    min-height: 44px;
  }

  .premium-reminder {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .responsible-footer {
    padding: 22px 0 30px;
  }

  .disclaimer-card {
    padding: 14px;
  }

  .disclaimer-card p {
    font-size: 0.72rem;
    line-height: 1.45;
  }
}

/* Newsletter layout repair: prevents desktop/mobile clipping and gives the
   light-theme intro card enough internal space for the large headline. */
.newsletter-page {
  -webkit-text-size-adjust: 100%;
}

.newsletter-page .container {
  width: min(100% - 38px, 1280px);
}

.newsletter-page .page {
  min-height: auto;
  display: block;
  padding: clamp(38px, 5vw, 76px) 0;
}

.newsletter-page .newsletter-layout {
  grid-template-columns: minmax(0, 1.03fr) minmax(420px, 0.97fr);
  align-items: start;
  gap: clamp(26px, 3.6vw, 50px);
}

.newsletter-page .newsletter-layout > * {
  min-width: 0;
}

.newsletter-page .intro-panel {
  width: 100%;
  max-width: none;
  padding: clamp(24px, 3vw, 40px);
  overflow: visible;
}

.newsletter-page h1,
.newsletter-page .signup-card h2 {
  max-width: 100%;
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: auto;
  padding-inline: 0.025em;
  margin-inline: -0.025em;
}

.newsletter-page h1 {
  font-size: clamp(3.25rem, 5.75vw, 5.55rem);
  line-height: 0.9;
  letter-spacing: -0.078em;
}

.newsletter-page .signup-card {
  padding: clamp(26px, 3.4vw, 42px);
}

.newsletter-page .signup-card h2 {
  font-size: clamp(2rem, 3.45vw, 3.15rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.newsletter-page .field-row {
  grid-template-columns: minmax(0, 1fr) max-content;
}

.newsletter-page input[type="email"] {
  min-width: 0;
}

.newsletter-page .premium-reminder a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1080px) {
  .newsletter-page .newsletter-layout {
    grid-template-columns: 1fr;
  }

  .newsletter-page .signup-card {
    max-width: none;
  }
}

@media (max-width: 680px) {
  .newsletter-page .container {
    width: min(100% - 24px, 1180px);
  }

  .newsletter-page .page {
    padding: 24px 0 30px;
  }

  .newsletter-page .newsletter-layout {
    gap: 16px;
  }

  .newsletter-page .intro-panel,
  .newsletter-page .signup-card {
    padding: 16px;
  }

  .newsletter-page h1 {
    font-size: clamp(2.15rem, 11.4vw, 3rem);
    line-height: 0.94;
    letter-spacing: -0.072em;
  }

  .newsletter-page .signup-card h2 {
    font-size: clamp(1.55rem, 8.25vw, 2.15rem);
    line-height: 0.96;
    letter-spacing: -0.055em;
  }

  .newsletter-page .field-row {
    grid-template-columns: 1fr;
  }

  .newsletter-page .premium-reminder {
    grid-template-columns: 1fr;
  }

  .newsletter-page .premium-reminder a {
    width: 100%;
    justify-content: flex-start;
  }
}
