/* RSU Advisor Match — dark navy + cyan, high-density financial feel. */
:root {
  --navy: #0b1f3a;
  --navy-deep: #060f1f;
  --navy-soft: #132a4a;
  --cyan: #22d3ee;
  --cyan-dim: #0891b2;
  --ink: #f1f5f9;
  --ink-soft: #cbd5e1;
  --ink-muted: #94a3b8;
  --surface: #ffffff;
  --border: #1e3559;
  --border-light: #e2e8f0;
  --success: #10b981;
  --warn: #f59e0b;
  --danger: #ef4444;
  --max-w: 820px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "IBM Plex Sans", "Inter", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: #1e293b;
  background: #f8fafc;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: "IBM Plex Sans", "Inter", system-ui, sans-serif;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 700;
}
h1 { font-size: 2.4rem; margin: 0 0 1rem; }
h2 { font-size: 1.6rem; margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.2rem; margin: 1.75rem 0 0.5rem; color: var(--navy-soft); }
a { color: var(--cyan-dim); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--navy); }
p { margin: 0 0 1rem; }
strong { color: var(--navy); }
ul, ol { padding-left: 1.25rem; }
li { margin: 0.35rem 0; }
code { background: #0f172a; color: var(--cyan); padding: 2px 6px; border-radius: 3px; font-size: 0.9em; font-family: "IBM Plex Mono", "SF Mono", Menlo, monospace; }

.re-container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.re-wide { max-width: 1000px; }

header.re-site {
  background: var(--navy-deep);
  color: var(--ink);
  padding: 1rem 0;
  border-bottom: 3px solid var(--cyan);
}
header.re-site .re-container {
  display: flex; justify-content: space-between; align-items: baseline;
}
.re-brand { font-family: "IBM Plex Sans", sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--cyan); text-decoration: none; letter-spacing: 0.02em; }
.re-brand::before { content: "◆ "; color: var(--cyan); }
nav.re-nav a { margin-left: 1.25rem; font-size: 0.9rem; color: var(--ink-soft); text-decoration: none; font-weight: 500; }
nav.re-nav a:hover { color: var(--cyan); }

main.re-main { padding: 2rem 0 4rem; }

.re-hero { padding: 3rem 0 1.5rem; }
.re-hero h1 { font-size: 2.6rem; }
.re-hero .re-tag { font-size: 1.15rem; color: #475569; margin-top: 0.5rem; max-width: 640px; }

.re-cta-button, .re-submit {
  display: inline-block;
  background: var(--navy);
  color: var(--ink);
  padding: 0.8rem 1.5rem;
  border: 2px solid var(--navy);
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.98rem;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: all 0.15s;
}
.re-cta-button:hover, .re-submit:hover { background: var(--cyan); border-color: var(--cyan); color: var(--navy); }

.re-card, .re-calc {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 1.5rem;
  margin: 1.25rem 0;
  box-shadow: 0 1px 3px rgba(11,31,58,0.06);
}

.re-callout {
  background: #ecfeff;
  border-left: 4px solid var(--cyan-dim);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 4px 4px 0;
}

.re-pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0; }
.re-pros-cons > div { background: var(--surface); border: 1px solid var(--border-light); border-radius: 4px; padding: 1rem 1.25rem; }
.re-pros-cons h3 { margin-top: 0; }
.re-pros-cons .re-pros h3 { color: var(--success); }
.re-pros-cons .re-cons h3 { color: var(--danger); }
@media (max-width: 600px) { .re-pros-cons { grid-template-columns: 1fr; } }

table.re-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.94rem; }
table.re-table th, table.re-table td { border: 1px solid var(--border-light); padding: 0.6rem 0.8rem; text-align: left; }
table.re-table th { background: var(--navy); color: var(--ink); font-weight: 600; font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.04em; }
table.re-table tr:nth-child(even) td { background: #f8fafc; }
table.re-table td.num { text-align: right; font-family: "IBM Plex Mono", monospace; font-variant-numeric: tabular-nums; }

/* Lead form */
#lead-form { margin-top: 2.5rem; }
.re-lead-form { background: var(--surface); border: 1px solid var(--border-light); border-radius: 4px; padding: 1.5rem; }
.re-field { display: flex; flex-direction: column; margin-bottom: 1rem; }
.re-field label { font-weight: 600; color: var(--navy); margin-bottom: 0.35rem; font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.03em; }
.re-field input, .re-field textarea, .re-field select {
  padding: 0.7rem 0.85rem; border: 1px solid var(--border-light); border-radius: 3px;
  font-family: inherit; font-size: 1rem; background: #fff; color: #1e293b;
}
.re-field input:focus, .re-field textarea:focus, .re-field select:focus {
  outline: none; border-color: var(--cyan-dim); box-shadow: 0 0 0 3px rgba(34,211,238,0.15);
}
.re-required { color: var(--danger); }
.re-status { margin-top: 1rem; min-height: 1.5rem; }
.re-status-ok { color: var(--navy); background: #ecfeff; padding: 0.85rem 1.1rem; border-left: 4px solid var(--cyan-dim); }

/* Calculator UI */
.re-calc .re-calc-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .re-calc .re-calc-inputs { grid-template-columns: 1fr; } }
.re-calc-result { margin-top: 1.5rem; padding: 1.5rem; background: var(--navy); color: var(--ink); border-radius: 4px; }
.re-calc-result h3 { color: var(--cyan); margin-top: 0; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.04em; }
.re-calc-big { font-size: 2.25rem; font-weight: 700; color: var(--cyan); font-family: "IBM Plex Mono", monospace; font-variant-numeric: tabular-nums; }
.re-calc-result a { color: var(--cyan); }

footer.re-footer {
  background: var(--navy-deep);
  color: var(--ink-soft);
  padding: 2rem 0;
  margin-top: 4rem;
  font-size: 0.85rem;
}
footer.re-footer a { color: var(--cyan); }
#disclaimers p { margin: 0 0 0.5rem; font-size: 0.82rem; color: var(--ink-muted); }

.re-internal-links { margin: 2rem 0; padding: 1.25rem; background: var(--navy); color: var(--ink); border-radius: 4px; }
.re-internal-links h3 { margin-top: 0; color: var(--cyan); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.04em; }
.re-internal-links a { color: var(--cyan); }
.re-internal-links ul { margin-bottom: 0; padding-left: 1.2rem; }


/* header wrap fix */
.re-brand { white-space: nowrap; flex-shrink: 0; }
nav.re-nav { display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; align-items: baseline; }
nav.re-nav a { margin-left: 0; white-space: nowrap; }
/* Header spans wider than article container so brand+nav fit on one row */
header.re-site .re-container { max-width: 1200px; gap: 1rem; }
/* Below ~900px viewport, the 4-item nav can't fit beside the brand name cleanly.
   Collapse to a column layout (brand top, nav below) while keeping typography full-size. */
@media (max-width: 900px) {
  header.re-site .re-container { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

/* Header spans wider than article container so brand+nav fit on one row */
header.re-site .re-container { max-width: 1200px; gap: 1rem; }

/* mobile breakpoint — phones */
@media (max-width: 640px) {
  header.re-site .re-container { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  nav.re-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: 0; }
  nav.re-nav a { margin-left: 0; white-space: nowrap; }
  .re-hero { padding: 2rem 0 1rem; }
  .re-hero h1 { font-size: 1.85rem; line-height: 1.2; }
  h1 { font-size: 1.75rem; line-height: 1.2; }
  h2 { font-size: 1.3rem; margin: 1.75rem 0 0.5rem; }
  h3 { font-size: 1.1rem; }
  body { font-size: 15.5px; }
  .re-container { padding: 0 1rem; }
  .re-calc, .re-card, .re-callout, .re-internal-links { padding: 1rem 1.1rem; }
  .re-calc-big { font-size: 1.75rem; }
  table.re-table { font-size: 0.88rem; }
  table.re-table th, table.re-table td { padding: 0.5rem 0.6rem; }
  .re-hero .re-tag { font-size: 1rem; }
}

/* Sources / citations block */
.re-sources { font-size: 0.88rem; color: var(--ink-soft); padding-left: 1.25rem; margin: 0.5rem 0 1rem; }
.re-sources li { margin: 0.35rem 0; }
.re-sources a { color: var(--primary); text-decoration: underline; }
.re-sources a:hover { color: var(--accent-deep); }
.re-sources-note { font-size: 0.82rem; color: var(--muted); margin-bottom: 2rem; }
sup a { text-decoration: none; color: var(--accent-deep); font-weight: 600; padding: 0 2px; }
sup a:hover { color: var(--primary); }

/* Matching-service positioning: how-it-works grid, trust bar, bottom callout */
.re-how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1rem 0 2rem; }
.re-how-step { display: flex; gap: 0.85rem; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 1rem 1.1rem; }
.re-how-step .re-how-num { flex: 0 0 auto; width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent); color: var(--primary-deep); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 1rem; }
@media (max-width: 720px) { .re-how-grid { grid-template-columns: 1fr; } }
.re-trust-bar { font-size: 0.85rem; color: var(--muted); margin-top: 0.5rem; font-style: italic; }
.re-matching-note { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.re-matching-note p { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.55; }
.re-matching-note strong { color: var(--ink); }
