/* FedRetire — marketing site. Navy-on-cream, matched 1:1 to the app's design tokens. */

:root {
  --paper: #F7F4EC;
  --paper2: #EFEBDF;
  --card: #FFFFFF;
  --line: #E5E1D4;
  --line-strong: #D5D0BF;

  --ink: #0F1722;
  --ink2: #2A3344;
  --ink3: #6B7387;
  --ink4: #B2B7C2;

  --accent: #102E5C;
  --accent-press: #0A2249;
  --accent-soft: #E8ECF4;
  --accent-tint: #F2F4F9;

  --up: #0E7C57;
  --hero-dark: #0F1722;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;

  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ink3);
}

/* ============================================================= */
/* Landing page — single, non-scrolling viewport                 */
/* ============================================================= */

body.landing {
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 3vh, 34px) clamp(20px, 5vw, 64px);
}

.topbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(15, 23, 34, 0.14);
}
.brand .name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.topbar .pill {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--line);
  padding: 7px 12px;
  border-radius: 999px;
}

/* Hero: two columns, fills remaining height */
.hero {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 72px);
  align-items: center;
}

.copy { max-width: 540px; }

.copy .kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.headline {
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.04;
  letter-spacing: -1.6px;
  font-weight: 600;
  color: var(--ink);
}
.headline em {
  font-style: italic;
  color: var(--accent);
}

.subhead {
  margin-top: 20px;
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--ink2);
  max-width: 460px;
}

.features {
  list-style: none;
  margin-top: 26px;
  display: grid;
  gap: 13px;
}
.features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--ink2);
}
.features .dot {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 7px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
}
.features .dot svg { width: 13px; height: 13px; stroke: var(--accent); }

.cta-row {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  padding: 0 22px;
  height: 52px;
  border-radius: 14px;
  border: none;
  cursor: default;
  box-shadow: 0 6px 18px rgba(16, 46, 92, 0.22);
}
.cta svg { width: 17px; height: 17px; stroke: #fff; }
.cta-note {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.6px;
  color: var(--ink3);
}

/* Phone stage */
.stage {
  position: relative;
  height: 100%;
  display: grid;
  place-items: center;
}
.stage::before {
  content: "";
  position: absolute;
  inset: 6% 2%;
  background: radial-gradient(120% 90% at 70% 20%, #1b3b6e 0%, var(--hero-dark) 70%);
  border-radius: 40px;
  box-shadow: 0 30px 80px rgba(15, 23, 34, 0.28);
}

.phone {
  position: absolute;
  aspect-ratio: 1206 / 2622;
  border-radius: 34px;
  background: #0b0f16;
  padding: 7px;
  box-shadow: 0 22px 50px rgba(15, 23, 34, 0.34);
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
  display: block;
}
.phone.center { height: min(74vh, 660px); z-index: 3; }
.phone.left {
  height: min(60vh, 540px);
  z-index: 2;
  transform: translateX(-58%) rotate(-7deg);
  filter: brightness(0.97);
}
.phone.right {
  height: min(60vh, 540px);
  z-index: 1;
  transform: translateX(58%) rotate(7deg);
  filter: brightness(0.97);
}

/* Footer */
.site-footer {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: clamp(12px, 2vh, 20px);
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink3);
}
.site-footer nav {
  display: flex;
  gap: 26px;
}
.site-footer nav a {
  color: var(--ink2);
  transition: color 0.15s ease;
}
.site-footer nav a:hover { color: var(--accent); }

/* Responsive: collapse to a comfortable scrolling layout on small screens */
@media (max-width: 880px) {
  body.landing { height: auto; min-height: 100dvh; overflow: visible; }
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 32px 0;
    text-align: center;
  }
  .copy { max-width: 100%; margin: 0 auto; }
  .subhead { margin-left: auto; margin-right: auto; }
  .features { max-width: 360px; margin-left: auto; margin-right: auto; text-align: left; }
  .cta-row { justify-content: center; }
  .stage { height: min(72vh, 560px); order: -1; }
  .phone.center { height: min(64vh, 480px); }
  .phone.left { transform: translateX(-50%) rotate(-7deg); }
  .phone.right { transform: translateX(50%) rotate(7deg); }
  .site-footer { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 520px) {
  .phone.left, .phone.right { display: none; }
  .phone.center { height: min(62vh, 460px); }
  .headline { letter-spacing: -1px; }
}

/* ============================================================= */
/* Legal pages (privacy / terms)                                  */
/* ============================================================= */

.legal-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(28px, 6vh, 64px) 22px 80px;
}

.legal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 44px;
}
.legal-nav .brand .name { font-size: 16px; }
.legal-nav .back {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.4px;
  color: var(--ink3);
}
.legal-nav .back:hover { color: var(--accent); }

.legal-wrap > .eyebrow { color: var(--accent); }

.legal-wrap h1 {
  font-size: clamp(30px, 5vw, 44px);
  letter-spacing: -1.2px;
  font-weight: 600;
  margin: 8px 0 10px;
}

.effective {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.3px;
  color: var(--ink3);
  margin-bottom: 26px;
}

.summary {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 15px;
  color: var(--ink2);
  margin-bottom: 34px;
}

.legal-wrap section { margin-bottom: 26px; }
.legal-wrap section h2 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}
.legal-wrap section h2 .num {
  font-family: var(--mono);
  color: var(--accent);
  margin-right: 8px;
  font-size: 15px;
}
.legal-wrap section p { color: var(--ink2); font-size: 15px; }
.legal-wrap section p + p { margin-top: 10px; }
.legal-wrap section ul {
  margin: 10px 0 0 2px;
  padding-left: 18px;
  color: var(--ink2);
  font-size: 15px;
}
.legal-wrap section ul li { margin-bottom: 6px; }
.legal-wrap a[href^="mailto"], .legal-wrap a.link { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.legal-footer {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink3);
  flex-wrap: wrap;
  gap: 12px;
}
.legal-footer nav { display: flex; gap: 22px; }
.legal-footer nav a { color: var(--ink2); }
.legal-footer nav a:hover { color: var(--accent); }
