:root {
  --rn-cyan: #09d3f4;
  --rn-cyan-deep: #007f95;
  --rn-ink: #071116;
  --rn-panel: #0d1a21;
  --rn-panel-2: #10232c;
  --rn-text: #edf7f9;
  --rn-muted: #a6bac2;
  --rn-border: rgba(9, 211, 244, .22);
}

.rn-page-shell,
.rn-page-shell * { box-sizing: border-box; }

.rn-page-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 30px auto 70px;
  color: var(--rn-text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.rn-page-shell a { color: inherit; }

.rn-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(52px, 7vw, 90px) clamp(24px, 6vw, 76px) 58px;
  border: 1px solid var(--rn-border);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(9, 211, 244, .08), transparent 40%),
    linear-gradient(180deg, #071116 0%, #0a171d 100%);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .24);
}

.rn-hero-glow {
  position: absolute;
  width: 430px;
  height: 430px;
  right: -150px;
  top: -180px;
  border-radius: 50%;
  background: rgba(9, 211, 244, .13);
  filter: blur(5px);
  pointer-events: none;
}

.rn-kicker,
.rn-section-label,
.rn-card-kicker {
  position: relative;
  z-index: 1;
  color: var(--rn-cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.rn-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 18px 0 22px;
  color: #fff;
  font-size: clamp(44px, 7vw, 78px);
  line-height: .99;
  letter-spacing: -.05em;
  font-weight: 800;
}

.rn-hero h1 span { color: var(--rn-cyan); }

.rn-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 810px;
  margin: 0 0 34px;
  color: #b8c9cf;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.7;
}

.rn-hero-form {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.rn-trustline {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 22px;
  color: #81979f;
  font-size: 12px;
  font-weight: 650;
}

.rn-trustline span::before {
  content: "✓";
  margin-right: 7px;
  color: var(--rn-cyan);
  font-weight: 900;
}

.rn-subscribe-form { margin: 0; }
.rn-email-row { display: flex; gap: 10px; }

.rn-email-row input[type="email"] {
  flex: 1 1 auto;
  min-width: 0;
  height: 58px;
  padding: 0 18px !important;
  color: #13252c !important;
  background: #fff !important;
  border: 1px solid #d5e2e6 !important;
  border-radius: 9px !important;
  box-shadow: none !important;
  font: inherit !important;
  font-size: 16px !important;
  outline: none;
}

.rn-email-row input[type="email"]:focus {
  border-color: var(--rn-cyan) !important;
  box-shadow: 0 0 0 3px rgba(9, 211, 244, .16) !important;
}

.rn-email-row button,
.rn-unsubscribe-button {
  min-height: 58px;
  padding: 0 24px !important;
  color: #001014 !important;
  background: var(--rn-cyan) !important;
  border: 1px solid var(--rn-cyan) !important;
  border-radius: 9px !important;
  font: inherit !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
}

.rn-email-row button:hover,
.rn-unsubscribe-button:hover { transform: translateY(-1px); opacity: .92; }
.rn-email-row button span { margin-left: 5px; }

.rn-preferences {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.rn-preferences label {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 14px 15px;
  color: #dbe9ed;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 9px;
  cursor: pointer;
}

.rn-preferences input { margin: 4px 0 0 !important; accent-color: var(--rn-cyan); }
.rn-preferences strong { display: block; color: #fff; font-size: 13px; line-height: 1.3; }
.rn-preferences small { display: block; margin-top: 3px; color: #8fa4ab; font-size: 11px; line-height: 1.45; }

.rn-form-note {
  margin: 12px 0 0 !important;
  color: #81979f !important;
  font-size: 11px !important;
  line-height: 1.55 !important;
}

.rn-form-note a { color: #a8eefa; text-decoration: underline; text-underline-offset: 2px; }
.rn-honeypot { position: absolute !important; left: -99999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.rn-delivery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 18px 0;
}

.rn-delivery-card {
  position: relative;
  min-height: 330px;
  padding: 34px 34px 38px;
  overflow: hidden;
  background: var(--rn-panel);
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 18px;
}

.rn-delivery-card-accent {
  background: linear-gradient(145deg, rgba(9, 211, 244, .10), rgba(9, 211, 244, .02)), var(--rn-panel);
  border-color: var(--rn-border);
}

.rn-card-number {
  position: absolute;
  right: 24px;
  top: 18px;
  color: rgba(255, 255, 255, .045);
  font-size: 76px;
  line-height: 1;
  font-weight: 900;
}

.rn-delivery-card h2,
.rn-editorial-copy h2,
.rn-principles h2,
.rn-final-copy h2,
.rn-unsubscribe-panel h2 {
  margin: 17px 0 15px;
  color: #fff;
  font-size: clamp(28px, 3vw, 39px);
  line-height: 1.1;
  letter-spacing: -.035em;
}

.rn-delivery-card p {
  max-width: 510px;
  margin: 0;
  color: var(--rn-muted);
  font-size: 16px;
  line-height: 1.72;
}

.rn-editorial-band {
  display: grid;
  grid-template-columns: .65fr 1.2fr 1fr;
  gap: 34px;
  align-items: start;
  padding: clamp(34px, 5vw, 58px);
  margin: 18px 0;
  background: #f1fafc;
  border-radius: 18px;
  color: #11272f;
}

.rn-editorial-band .rn-section-label { color: var(--rn-cyan-deep); }
.rn-editorial-copy h2 { margin-top: 0; color: #071116; }
.rn-editorial-copy p { margin: 0; color: #536b74; font-size: 16px; line-height: 1.7; }

.rn-topic-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.rn-topic-cloud span {
  padding: 8px 11px;
  color: #31505b;
  background: #fff;
  border: 1px solid #d4e8ed;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.rn-principles {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 48px;
  padding: clamp(36px, 5vw, 58px);
  margin: 18px 0;
  background: #09171d;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 18px;
}

.rn-principle-list p {
  margin: 0;
  padding: 17px 0;
  color: #aabdc4;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: 15px;
  line-height: 1.6;
}
.rn-principle-list p:last-child { border-bottom: 0; }
.rn-principle-list strong { color: #fff; }

.rn-final-cta {
  display: grid;
  grid-template-columns: .9fr 1.25fr;
  gap: 46px;
  align-items: center;
  padding: clamp(38px, 5vw, 60px);
  margin: 18px 0;
  background: linear-gradient(120deg, rgba(9,211,244,.15), rgba(9,211,244,.025)), #0d1a21;
  border: 1px solid var(--rn-border);
  border-radius: 18px;
}
.rn-final-copy h2 { margin-bottom: 12px; }
.rn-final-copy p { margin: 0; color: var(--rn-muted); line-height: 1.65; }

.rn-social-strip {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 25px 30px;
  color: #a9bbc2;
  background: #071116;
  border: 1px solid rgba(255,255,255,.065);
  border-radius: 14px;
}
.rn-social-strip strong { display: block; color: #fff; font-size: 15px; }
.rn-social-strip span { font-size: 12px; }
.rn-social-strip nav { display: flex; gap: 9px; }
.rn-social-strip a {
  display: inline-block;
  padding: 10px 14px;
  color: #001014;
  background: var(--rn-cyan);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.rn-notice,
.rn-unsubscribe-panel {
  margin: 0 0 18px;
  padding: 20px 24px;
  color: #dff8fc;
  background: #0b2730;
  border: 1px solid rgba(9,211,244,.35);
  border-radius: 12px;
}
.rn-notice-error { color: #ffe9e9; background: #311617; border-color: rgba(255,110,110,.35); }
.rn-unsubscribe-panel { padding: 34px; }
.rn-unsubscribe-panel p { color: #a9bbc2; }
.rn-unsubscribe-panel form { margin: 22px 0 0; }

.rn-article-signup {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 30px;
  align-items: center;
  padding: 30px;
  margin: 46px 0 18px;
  color: #eaf4f7;
  background: linear-gradient(135deg, rgba(9,211,244,.10), transparent 52%), #0d1a21;
  border: 1px solid rgba(9,211,244,.25);
  border-radius: 14px;
}
.rn-article-signup-copy > span { color: var(--rn-cyan); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.rn-article-signup h3 { margin: 8px 0 6px !important; color: #fff !important; font-size: 26px !important; line-height: 1.15 !important; }
.rn-article-signup p { margin: 0 !important; color: #a6bac2 !important; font-size: 14px !important; }
.rn-article-signup .rn-form-note { margin-top: 9px !important; }

.rn-popup[hidden] { display: none !important; }
.rn-popup {
  position: fixed;
  z-index: 999999;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
}
.rn-popup-backdrop { position: absolute; inset: 0; background: rgba(1,8,11,.72); backdrop-filter: blur(3px); }
.rn-popup-dialog {
  position: relative;
  width: min(560px, 100%);
  padding: 38px;
  color: #eaf4f7;
  background: linear-gradient(150deg, rgba(9,211,244,.11), transparent 45%), #0d1a21;
  border: 1px solid rgba(9,211,244,.3);
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0,0,0,.5);
}
.rn-popup-dialog h2 { margin: 12px 0 10px; color: #fff; font-size: 34px; line-height: 1.08; letter-spacing: -.03em; }
.rn-popup-dialog > p { margin: 0 0 22px; color: #a8bbc2; line-height: 1.65; }
.rn-popup-close {
  position: absolute;
  top: 13px;
  right: 15px;
  width: 36px;
  height: 36px;
  padding: 0 !important;
  color: #dcebed !important;
  background: transparent !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 50% !important;
  font-size: 24px !important;
  line-height: 1 !important;
  cursor: pointer;
}

@media (max-width: 850px) {
  .rn-editorial-band { grid-template-columns: 1fr; gap: 22px; }
  .rn-principles,
  .rn-final-cta,
  .rn-article-signup { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 700px) {
  .rn-page-shell { width: min(100% - 20px, 1180px); margin-top: 16px; }
  .rn-hero { padding: 44px 20px 34px; border-radius: 17px; }
  .rn-hero h1 { font-size: clamp(40px, 12vw, 58px); }
  .rn-email-row { flex-direction: column; }
  .rn-email-row button { width: 100%; }
  .rn-preferences { grid-template-columns: 1fr; }
  .rn-delivery-grid { grid-template-columns: 1fr; }
  .rn-delivery-card { min-height: 0; padding: 28px 24px 32px; }
  .rn-editorial-band,
  .rn-principles,
  .rn-final-cta { padding: 32px 23px; }
  .rn-social-strip { flex-direction: column; align-items: flex-start; }
  .rn-social-strip nav { width: 100%; }
  .rn-social-strip a { flex: 1; text-align: center; }
  .rn-popup-dialog { padding: 34px 22px 25px; }
}
.rn-preferences-panel .rn-preferences { max-width: 760px; margin: 20px 0; }
.rn-preferences-panel .rn-save-preferences { min-height: 48px; }

/* v0.2.0 theme-isolation and topic preferences */
.rn-page-shell h1,
.rn-page-shell h2,
.rn-page-shell h3,
.rn-page-shell h4,
.rn-page-shell h5,
.rn-page-shell h6 {
  color: #f7fbfc !important;
}
.rn-page-shell .rn-hero h1 { color: #ffffff !important; }
.rn-page-shell .rn-hero h1 span { color: var(--rn-cyan) !important; }
.rn-page-shell .rn-editorial-copy h2 { color: #071116 !important; }
.rn-page-shell .rn-delivery-card h2,
.rn-page-shell .rn-principles h2,
.rn-page-shell .rn-final-copy h2,
.rn-page-shell .rn-unsubscribe-panel h2,
.rn-page-shell .rn-popup-dialog h2 { color: #ffffff !important; }
.rn-page-shell .rn-delivery-card p,
.rn-page-shell .rn-principle-list p,
.rn-page-shell .rn-final-copy p,
.rn-page-shell .rn-unsubscribe-panel p,
.rn-page-shell .rn-popup-dialog > p { color: #a9bbc2 !important; }
.rn-page-shell .rn-editorial-copy p { color: #536b74 !important; }
.rn-page-shell .rn-section-label,
.rn-page-shell .rn-kicker,
.rn-page-shell .rn-card-kicker { color: var(--rn-cyan) !important; }
.rn-page-shell .rn-editorial-band .rn-section-label { color: var(--rn-cyan-deep) !important; }

.rn-final-info { grid-template-columns: .95fr 1.05fr; }
.rn-final-copy strong { color: #ffffff; }
.rn-final-points { display: grid; gap: 10px; }
.rn-final-points > div {
  padding: 16px 18px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
}
.rn-final-points strong { display: block; color: #ffffff; font-size: 14px; line-height: 1.35; }
.rn-final-points span { display: block; margin-top: 4px; color: #91a7ae; font-size: 12px; line-height: 1.5; }

.rn-preferences-panel { padding: clamp(28px,5vw,48px); }
.rn-preferences-panel .rn-preferences-intro { max-width: 820px; margin: 10px 0 24px !important; }
.rn-preference-blocks { display: grid; gap: 14px; max-width: 900px; }
.rn-preference-block {
  padding: 22px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.085);
  border-radius: 12px;
}
.rn-preference-heading { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 16px; }
.rn-preference-heading > span {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  color: #001014;
  background: var(--rn-cyan);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
}
.rn-preference-heading strong { display:block; color:#ffffff !important; font-size:17px; line-height:1.3; }
.rn-preference-heading small { display:block; margin-top:3px; color:#93a8af; font-size:12px; line-height:1.5; }
.rn-switch-row,
.rn-radio-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #dce9ed !important;
  cursor: pointer;
}
.rn-switch-row { padding: 12px 14px; background: rgba(9,211,244,.06); border:1px solid rgba(9,211,244,.15); border-radius:9px; }
.rn-switch-row input,
.rn-radio-row input,
.rn-category-grid input { margin-top: 3px !important; accent-color: var(--rn-cyan); }
.rn-topic-choice { margin-top: 18px; padding-top: 18px; border-top:1px solid rgba(255,255,255,.08); }
.rn-topic-choice.is-disabled { opacity:.48; pointer-events:none; }
.rn-topic-choice-title { margin-bottom:10px; color:#ffffff; font-size:12px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.rn-radio-row { padding: 10px 0; }
.rn-radio-row strong { display:block; color:#ffffff !important; font-size:13px; }
.rn-radio-row small { display:block; margin-top:2px; color:#8fa4ab; font-size:11px; line-height:1.45; }
.rn-category-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px;
  margin-top: 12px;
  padding: 14px;
  background: #071116;
  border:1px solid rgba(255,255,255,.07);
  border-radius:10px;
}
.rn-category-grid.is-hidden { display:none; }
.rn-category-grid label {
  display:flex;
  gap:8px;
  align-items:flex-start;
  padding:9px 10px;
  color:#c8d9de !important;
  background:rgba(255,255,255,.035);
  border-radius:7px;
  cursor:pointer;
  font-size:12px;
  line-height:1.4;
}
.rn-preference-actions { display:flex; flex-wrap:wrap; gap:16px; align-items:center; margin-top:20px; }
.rn-preference-actions a { color:#9ce8f5 !important; font-size:12px; text-decoration:underline; text-underline-offset:2px; }

@media (max-width:850px){ .rn-final-info{grid-template-columns:1fr;} }
@media (max-width:700px){ .rn-category-grid{grid-template-columns:1fr;} .rn-preferences-panel{padding:26px 20px;} }
.rn-page-shell.rn-page-shell h1,
.rn-page-shell.rn-page-shell h2,
.rn-page-shell.rn-page-shell h3,
.rn-page-shell.rn-page-shell h4,
.rn-page-shell.rn-page-shell h5,
.rn-page-shell.rn-page-shell h6 { color:#f7fbfc !important; }
.rn-page-shell.rn-page-shell .rn-editorial-copy h2 { color:#071116 !important; }
.rn-page-shell.rn-page-shell .rn-hero h1 span { color:var(--rn-cyan) !important; }

/* v0.2.2 popup hardening: modal is moved directly under body by JS. */
html.rn-popup-open,
body.rn-popup-open {
  overflow: hidden !important;
}
body > .rn-popup {
  isolation: isolate;
  z-index: 2147483000 !important;
}
body > .rn-popup .rn-popup-backdrop {
  z-index: 0;
}
body > .rn-popup .rn-popup-dialog {
  z-index: 1;
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
body > .rn-popup .rn-popup-dialog h2 {
  color: #ffffff !important;
}
body > .rn-popup .rn-popup-dialog > p,
body > .rn-popup .rn-form-note {
  color: #a8bbc2 !important;
}
body > .rn-popup .rn-email-row input[type="email"] {
  color: #071116 !important;
  background: #ffffff !important;
}
@media (max-width: 700px) {
  body > .rn-popup {
    align-items: start;
    overflow-y: auto;
    padding-top: max(18px, env(safe-area-inset-top));
    padding-bottom: max(18px, env(safe-area-inset-bottom));
  }
  body > .rn-popup .rn-popup-dialog {
    margin: auto 0;
  }
}
