/* Pre-IPO Advisors — deep teal + amber on cool light gray, sharp/techy sans.
   Distinct from the portfolio's navy/gold template and fa-christians' parchment. */
:root {
  --primary: #134e4a;
  --primary-deep: #0b3330;
  --primary-light: #2a7a72;
  --accent: #d97706;
  --accent-deep: #a85a05;
  --bg: #f4f7f7;
  --bg-2: #e6eeee;
  --surface: #ffffff;
  --ink: #1b2422;
  --ink-soft: #3d4a47;
  --muted: #64736f;
  --border: #d3dedc;
  --max-w: 840px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16.5px;
  line-height: 1.66;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { color: var(--primary); line-height: 1.2; font-weight: 760; letter-spacing: -0.01em; }
h1 { font-size: 2.5rem; margin: 0 0 1rem; }
h2 { font-size: 1.55rem; margin: 2.3rem 0 0.7rem; }
h3 { font-size: 1.14rem; margin: 1.3rem 0 0.4rem; color: var(--primary-light); }
p { margin: 0.7rem 0; }
a { color: var(--primary-light); text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }
ul, ol { padding-left: 1.4rem; }
li { margin: 0.35rem 0; }

.re-container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.re-site { background: var(--primary-deep); border-bottom: 3px solid var(--accent); }
.re-site .re-container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; padding-top: 0.85rem; padding-bottom: 0.85rem; }
.re-brand { font-size: 1.12rem; font-weight: 800; letter-spacing: -0.01em; color: #e8f4f2; text-decoration: none; }
.re-brand:hover { color: #fff; }
.re-nav { display: flex; gap: 1.05rem; flex-wrap: wrap; }
.re-nav a { color: #b8d4cf; text-decoration: none; font-size: 0.92rem; }
.re-nav a:hover { color: var(--accent); }

/* Hero */
.re-hero { padding: 3rem 1.25rem 2rem; }
.re-hero h1 { max-width: 18em; }
.re-tag { font-size: 1.1rem; color: var(--ink-soft); max-width: 42em; }
.re-cta-button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: 0.78rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 0.5rem;
}
.re-cta-button:hover { background: var(--accent-deep); color: #fff; }

.re-main { padding-bottom: 3rem; }

/* Cards — top accent bar treatment */
.re-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 1rem; margin: 1.2rem 0; }
.re-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--primary-light);
  border-radius: 10px;
  padding: 1.05rem 1.15rem;
}
.re-card h3 { margin-top: 0; }
.re-card h3 a { text-decoration: none; color: var(--primary); }
.re-card h3 a:hover { color: var(--accent-deep); }
.re-card p { font-size: 0.94rem; color: var(--ink-soft); margin-bottom: 0; }

/* Callouts */
.re-callout {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin: 1.2rem 0;
}
.re-facts { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 10px; padding: 1rem 1.25rem; margin: 1.2rem 0; }
.re-facts li { margin: 0.45rem 0; }
.re-steps li { margin: 0.7rem 0; }
.re-note { font-size: 0.92rem; color: var(--muted); }

/* Calculator */
.re-calc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.4rem 1.5rem;
  margin: 1.5rem 0;
}
.re-calc .re-field { margin-bottom: 0.9rem; }
.re-calc label { display: block; font-weight: 650; font-size: 0.94rem; margin-bottom: 0.3rem; color: var(--primary); }
.re-calc input, .re-calc select {
  width: 100%;
  max-width: 340px;
  padding: 0.6rem 0.7rem;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
.re-calc input:focus, .re-calc select:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.re-calc-run {
  background: var(--primary);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  border: 0;
  border-radius: 8px;
  padding: 0.7rem 1.5rem;
  cursor: pointer;
  margin-top: 0.3rem;
}
.re-calc-run:hover { background: var(--primary-deep); }
.re-calc-out { display: none; margin-top: 1.4rem; border-top: 2px solid var(--bg-2); padding-top: 1rem; }
.re-calc-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0; border-bottom: 1px dashed var(--border); }
.re-calc-row strong { color: var(--primary); }
.re-calc-big { font-size: 1.25rem; color: var(--accent-deep); font-weight: 800; }

/* Tables */
table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--border); }
th { color: var(--primary); background: var(--bg-2); }

/* Lead form (rendered by shared/form-handler.js) */
#connect { scroll-margin-top: 1rem; }
.re-lead-form { background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--accent); border-radius: 12px; padding: 1.4rem 1.5rem; margin: 1rem 0 1.5rem; }
.re-fields { display: grid; gap: 0.9rem; }
.re-field label { display: block; font-weight: 650; font-size: 0.94rem; margin-bottom: 0.3rem; color: var(--primary); }
.re-field input, .re-field select, .re-field textarea {
  width: 100%;
  padding: 0.62rem 0.7rem;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
}
.re-field input:focus, .re-field select:focus, .re-field textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.re-required { color: var(--accent-deep); }
.re-submit {
  background: var(--accent);
  color: #fff;
  font-size: 1.02rem;
  font-weight: 700;
  border: 0;
  border-radius: 8px;
  padding: 0.78rem 1.6rem;
  cursor: pointer;
  margin-top: 1rem;
}
.re-submit:hover { background: var(--accent-deep); }
.re-status { margin-top: 0.8rem; }
.re-status-ok { color: var(--primary); font-size: 1.02rem; }

/* Footer */
.re-footer { background: var(--primary-deep); color: #a9c4bf; margin-top: 3rem; padding: 1.6rem 0 2rem; font-size: 0.88rem; }
.re-footer a { color: #c3d8d4; }
.re-footer #disclaimers p { margin: 0.5rem 0; line-height: 1.55; }

@media (max-width: 640px) {
  h1 { font-size: 1.85rem; }
  .re-hero { padding-top: 2.1rem; }
}
