/* MyEIN relight (design A2 "Federal Ledger + original seal") - token-based light/dark theme.
   Self-contained: pages on _LayoutRelight.cshtml load ONLY this stylesheet (no Bootstrap/legacy CSS). */

:root {
  --paper: #f7f3ea;
  --ink: #122a4c;
  --ink-soft: #3d5578;
  --line: #d8cfba;
  --gold: #c9a53a;
  --gold-deep: #8a6d1f;
  --card: #fffdf7;
  --navy: #132a52;
  --navy-2: #0e2144;
  --on-navy: #e9e2cf;
  --on-navy-soft: #aeb9d2;
  --shadow: 0 1px 0 var(--line), 0 12px 30px rgba(18, 42, 76, .08);
}
[data-theme="dark"] {
  --paper: #0b1425;
  --ink: #e9e2cf;
  --ink-soft: #a9b4c9;
  --line: #243450;
  --gold: #d4af4f;
  --gold-deep: #c9a53a;
  --card: #122040;
  --navy: #0e1c3a;
  --navy-2: #0a1730;
  --on-navy: #e9e2cf;
  --on-navy-soft: #93a2c2;
  --shadow: 0 1px 0 var(--line), 0 16px 40px rgba(0, 0, 0, .5);
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Libre Franklin', 'Segoe UI', Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.serif { font-family: 'Cormorant Garamond', Georgia, serif; }
a { color: var(--gold-deep); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- header: federal navy band ---------- */
.site-header {
  background: linear-gradient(var(--navy), var(--navy-2));
  border-bottom: 3px double var(--gold);
  padding: 14px 0;
}
.hrow { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; gap: 13px; align-items: center; color: var(--on-navy); text-decoration: none; }
.brand .seal {
  width: 58px; height: 58px; border-radius: 50%; display: block;
  box-shadow: 0 0 0 2px var(--gold), 0 4px 14px rgba(0, 0, 0, .35);
}
.brand b { font-size: 21px; letter-spacing: .02em; font-family: 'Cormorant Garamond', Georgia, serif; }
.brand b span { color: var(--gold); }
.site-nav { display: flex; gap: 24px; font-size: 12.5px; letter-spacing: .13em; text-transform: uppercase; align-items: center; }
.site-nav a { color: var(--on-navy-soft); text-decoration: none; }
.site-nav a:hover { color: var(--gold); }
.theme-toggle {
  border: 1px solid rgba(233, 226, 207, .35); background: transparent; color: var(--on-navy);
  border-radius: 999px; padding: 6px 14px; cursor: pointer; font-size: 12px; font-family: inherit;
}
/* mobile nav (CSS-only) */
.nav-check, .nav-burger { display: none; }
.nav-burger {
  color: var(--on-navy); font-size: 26px; line-height: 1; cursor: pointer;
  border: 1px solid rgba(233, 226, 207, .35); border-radius: 8px; padding: 4px 12px;
}

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.25fr .75fr; gap: 52px; padding: 60px 0 48px; align-items: center; }
.kicker { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 16px; }
.hero h1 {
  font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600;
  font-size: clamp(34px, 5vw, 56px); line-height: 1.06; letter-spacing: -.01em;
}
.hero h1 em { font-style: italic; color: var(--gold-deep); }
.hero .sub { margin: 20px 0 28px; color: var(--ink-soft); font-size: 17px; max-width: 46ch; }
.cta-row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.btn-primary {
  display: inline-block; background: var(--navy); color: #f3ecd8; border: none; padding: 16px 30px;
  font-family: inherit; font-weight: 600; font-size: 15px; letter-spacing: .04em; cursor: pointer;
  box-shadow: 0 2px 0 var(--gold); text-decoration: none;
}
[data-theme="dark"] .btn-primary { background: var(--gold); color: #0b1425; }
.btn-primary:hover { filter: brightness(1.08); }
.link-ghost { background: none; border: none; color: var(--ink-soft); font-size: 14px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

/* ---------- price card with seal medallion ---------- */
.price-card {
  background: var(--card); border: 1px solid var(--line); padding: 38px 28px 28px;
  text-align: center; box-shadow: var(--shadow); position: relative;
}
.price-card::before { content: ""; position: absolute; inset: 7px; border: 1px solid var(--gold); pointer-events: none; opacity: .55; }
.pc-seal {
  width: 54px; height: 54px; border-radius: 50%; position: absolute; top: -27px; left: 50%; transform: translateX(-50%);
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--gold), 0 6px 14px rgba(0, 0, 0, .25);
}
.price-lbl { font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-soft); margin-top: 8px; }
.price { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 700; line-height: .85; margin: 14px 0 8px; display: flex; justify-content: center; align-items: baseline; }
.price .cur { font-size: 34px; margin-right: 2px; }
.price .whole { font-size: 74px; }
.price .cents { font-size: 34px; margin-left: 1px; }
.price-note { font-size: 13px; color: var(--ink-soft); }
.price-note s { opacity: .65; }

/* ---------- trust strip ---------- */
.trust {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 16px 0; font-size: 13px; letter-spacing: .05em; color: var(--ink-soft);
}
.trust b, .trust a { color: var(--gold-deep); }

/* ---------- steps ledger ---------- */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 56px 0;
  border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow);
}
.step { padding: 30px 28px; border-right: 1px solid var(--line); }
.step:last-child { border-right: none; }
.step .no { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 42px; color: var(--gold); font-weight: 700; }
.step h3 { font-size: 16px; margin: 8px 0; letter-spacing: .02em; }
.step p { font-size: 14px; color: var(--ink-soft); }

/* ---------- sections / entity grid ---------- */
h2.sec { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 32px; text-align: center; margin: 56px 0 8px; font-weight: 600; }
.sec-sub { text-align: center; color: var(--ink-soft); font-size: 15px; margin-bottom: 30px; }
.entities { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 64px; }
.ent {
  background: var(--card); border: 1px solid var(--line); padding: 20px 14px; text-align: center;
  text-decoration: none; color: var(--ink); transition: transform .15s, border-color .15s; display: block;
}
.ent:hover { transform: translateY(-3px); border-color: var(--gold); }
.ent .g { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 25px; color: var(--gold-deep); }
.ent .lbl { font-size: 13px; margin-top: 6px; letter-spacing: .04em; }

/* ---------- SEO / learn content ---------- */
.learn { max-width: 76ch; margin: 0 auto 70px; color: var(--ink-soft); font-size: 15.5px; }
.learn h2 { font-family: 'Cormorant Garamond', Georgia, serif; color: var(--ink); font-size: 28px; margin: 26px 0 10px; font-weight: 600; }
.learn p { margin-bottom: 14px; }
.learn ol { margin: 0 0 14px 22px; }

/* ---------- footer: navy band ---------- */
.site-footer {
  background: linear-gradient(var(--navy-2), var(--navy));
  border-top: 3px double var(--gold);
  padding: 32px 0 42px; font-size: 12.5px; color: var(--on-navy-soft);
}
.site-footer .legal { max-width: 92ch; }
.site-footer b { color: var(--on-navy); }
.site-footer a { color: var(--on-navy-soft); }
.site-footer a:hover { color: var(--gold); }
.foot-links { margin-top: 14px; }
.foot-links a { margin-right: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 44px; padding-top: 40px; }
  .price-card { max-width: 420px; margin: 10px auto 0; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: none; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: none; }
  .entities { grid-template-columns: repeat(2, 1fr); }
  .trust { flex-direction: column; gap: 8px; }

  /* collapse nav into CSS-only dropdown */
  .nav-burger { display: block; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 50;
    flex-direction: column; gap: 0; background: var(--navy-2);
    border-bottom: 3px double var(--gold); padding: 6px 0 10px;
  }
  .site-nav a { padding: 12px 24px; }
  .nav-check:checked ~ .site-nav { display: flex; }
  .site-header { position: relative; }
}
@media (max-width: 480px) {
  .entities { grid-template-columns: 1fr 1fr; }
  .brand b { font-size: 18px; }
  .brand .seal { width: 46px; height: 46px; }
}
