/* landing.css — RetirePlusPlus enhanced landing page styles.
   Public landing page (index.html) does NOT use header-embed.js per DEV_GUIDE.txt.
   All values in rem. No px. Mobile-first. Touch targets ≥ var(--touch-min). */

/* ── OTROTL network overlay accent ── */
:root {
  --otrotl-trigger-accent: #f59e0b;
  --otrotl-trigger-accent-soft: rgba(245,158,11,0.12);
  --otrotl-trigger-accent-ring: rgba(245,158,11,0.35);
  /* Landing-specific amber accent for CTAs */
  --land-amber: #F59E0B;
  --land-amber-dark: #D97706;
  --land-amber-light: #FCD34D;
  --land-amber-bg: rgba(245, 158, 11, 0.08);
}

/* ============================================================
   BODY
   ============================================================ */
.landing-body {
  font-family: var(--font-sans, system-ui, -apple-system, sans-serif);
  overflow-x: hidden;
}

/* ============================================================
   TOP NAV  (landing-specific, sticky)
   ============================================================ */
.landing-top-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(0.75rem);
  -webkit-backdrop-filter: blur(0.75rem);
  border-bottom: 0.0625rem solid var(--retire-border);
  transition: box-shadow var(--transition-normal);
}
[data-theme="dark"] .landing-top-nav {
  background: rgba(15, 23, 42, 0.92);
}
.landing-top-nav.scrolled {
  box-shadow: var(--retire-shadow-md);
}

.landing-nav-inner {
  max-width: 75rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 4.25rem;
  gap: 0.75rem;
}

.landing-nav-brand {
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  justify-self: start;
}

.landing-logo {
  display: flex;
  align-items: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--retire-text);
  font-weight: 800;
  font-size: 1.375rem;
  line-height: 1;
  letter-spacing: -0.01em;
}

.landing-logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, var(--land-amber) 0%, var(--land-amber-dark) 100%);
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 1.125rem;
  box-shadow: 0 0.125rem 0.5rem rgba(245, 158, 11, 0.35);
  flex-shrink: 0;
}

.landing-logo-text {
  display: none;
}
@media (min-width: 26rem) {
  .landing-logo-text { display: inline; }
}

/* Nav links — hidden on mobile */
.landing-nav-links {
  grid-column: 2;
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: center;
  gap: 0.125rem;
}
.landing-nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.6rem;
  color: var(--retire-text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 0.5rem;
  transition: color var(--transition-fast), background var(--transition-fast);
  min-height: var(--touch-min);
  white-space: nowrap;
}
.landing-nav-links a:hover {
  color: var(--land-amber);
  background: var(--land-amber-bg);
}
/* 66rem (not 64rem): the 6 centered links + brand + actions need ~1056px to
   sit comfortably (font-width safe); below this they fold into the hamburger. */
@media (min-width: 66rem) {
  .landing-nav-links { display: flex; }
}

.landing-nav-actions {
  grid-column: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Compact nav buttons + in-nav theme toggle so brand + links + actions
   fit comfortably on one row. Hero CTAs keep their full size (they use
   the extra .hero-cta-* classes, which these selectors don't touch). */
.landing-nav-actions .landing-btn-primary,
.landing-nav-actions .landing-btn-ghost {
  padding: 0.5rem 1.05rem;
  font-size: 0.875rem;
  min-height: var(--touch-min); /* 2.75rem — touch-target floor (DEV_GUIDE #6) */
}
.landing-nav-actions .theme-btn {
  width: var(--touch-min);
  height: var(--touch-min);
  font-size: 1rem;
  flex-shrink: 0;
}
/* Guest CTAs fold into the hamburger panel below the desktop breakpoint. */
@media (max-width: 65.999rem) {
  .landing-nav-actions .nav-cta { display: none; }
}

/* ── Landing Buttons ── */
.landing-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--touch-min);
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--land-amber) 0%, var(--land-amber-dark) 100%);
  color: #FFFFFF;
  text-decoration: none;
  transition: all var(--transition-normal);
  box-shadow: 0 0.125rem 0.5rem rgba(245, 158, 11, 0.3);
  white-space: nowrap;
}
.landing-btn-primary:hover {
  transform: translateY(-0.125rem);
  box-shadow: 0 0.375rem 1rem rgba(245, 158, 11, 0.4);
}
.landing-btn-primary:active { transform: translateY(0); }

.landing-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--touch-min);
  padding: 0.75rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: 0.0625rem solid var(--retire-border);
  cursor: pointer;
  background: transparent;
  color: var(--retire-text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.landing-btn-ghost:hover {
  border-color: var(--land-amber);
  color: var(--land-amber);
  background: var(--land-amber-bg);
}

/* Mobile hamburger */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--touch-min);
  height: var(--touch-min);
  border: none;
  background: transparent;
  color: var(--retire-text);
  font-size: 1.25rem;
  cursor: pointer;
  border-radius: 0.375rem;
}
.mobile-menu-btn:hover { background: var(--retire-surface); }
@media (min-width: 66rem) {
  .mobile-menu-btn { display: none; }
}

/* ============================================================
   MOBILE NAV PANEL
   ============================================================ */
.mobile-nav {
  display: none;
  position: fixed;
  top: 4.25rem;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--retire-bg);
  z-index: 49;
  padding: 1.5rem;
  overflow-y: auto;
  border-top: 0.0625rem solid var(--retire-border);
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: flex;
  align-items: center;
  padding: 0.875rem 1rem;
  color: var(--retire-text);
  text-decoration: none;
  font-size: var(--font-label);
  font-weight: 500;
  border-radius: 0.5rem;
  min-height: var(--touch-min);
  transition: background var(--transition-fast);
}
.mobile-nav a:hover { background: var(--retire-surface); }

/* ============================================================
   THEME TOGGLE
   ============================================================ */
.theme-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--touch-min);
  height: var(--touch-min);
  border: 0.0625rem solid var(--retire-border);
  background: var(--retire-surface);
  color: var(--retire-text);
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 1.125rem;
  transition: all var(--transition-fast);
}
.theme-btn:hover { background: var(--retire-card-hover-bg); }
.landing-body .theme-btn.fixed-toast {
  top: 5rem;
  right: 1rem;
  z-index: 45;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  position: relative;
  overflow: hidden;
  padding: 2.5rem 1.5rem 3.5rem;
  background:
    radial-gradient(ellipse 70% 60% at 15% 25%, rgba(245,158,11,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 70% at 85% 75%, rgba(30,64,175,0.06) 0%, transparent 60%),
    var(--retire-hero-gradient);
}
@media (min-width: 48rem) {
  .hero-section { padding: 3rem 1.5rem 4.5rem; }
}
@media (min-width: 64rem) {
  .hero-section { padding: 3.5rem 1.5rem 5rem; }
}

/* decorative bg orbs */
.hero-bg-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(3.5rem);
  z-index: 0;
}
.hero-orb-1 {
  width: 22rem;
  height: 22rem;
  background: radial-gradient(circle, rgba(245,158,11,0.18), transparent 70%);
  top: -6rem;
  right: -4rem;
}
.hero-orb-2 {
  width: 18rem;
  height: 18rem;
  background: radial-gradient(circle, rgba(30,64,175,0.14), transparent 70%);
  bottom: -4rem;
  left: -3rem;
}

.hero-container {
  position: relative;
  z-index: 1;
  max-width: 75rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 64rem) {
  .hero-container {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

/* ── Hero Text Column ── */
.hero-text-col {
  text-align: center;
}
@media (min-width: 64rem) {
  .hero-text-col { text-align: left; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  background: var(--land-amber-bg);
  border: 0.0625rem solid rgba(245, 158, 11, 0.3);
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--land-amber-dark);
  margin-bottom: 1.5rem;
}
[data-theme="dark"] .hero-badge {
  color: var(--land-amber);
  border-color: rgba(245,158,11,0.25);
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--retire-text);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}
.hero-title-accent {
  background: linear-gradient(135deg, var(--land-amber) 0%, var(--land-amber-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.1875rem);
  color: var(--retire-text-secondary);
  max-width: 32rem;
  margin: 0 auto 2rem;
  line-height: 1.75;
}
@media (min-width: 64rem) {
  .hero-subtitle { margin: 0 0 2rem; }
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.875rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 64rem) {
  .hero-ctas { justify-content: flex-start; }
}

.hero-cta-primary {
  font-size: 1.0625rem;
  padding: 0.9375rem 2rem;
}
.hero-cta-ghost {
  font-size: 1.0625rem;
  padding: 0.9375rem 1.5rem;
}

/* Social proof strip */
.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  justify-content: center;
}
@media (min-width: 64rem) {
  .hero-social-proof { justify-content: flex-start; }
}

.hero-avatars {
  display: flex;
}
.hero-avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 0.125rem solid var(--retire-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.75rem;
  margin-left: -0.625rem;
  flex-shrink: 0;
}
.hero-avatar:first-child { margin-left: 0; }
.avatar-color-1 { background: #3B82F6; }
.avatar-color-2 { background: #059669; }
.avatar-color-3 { background: #F59E0B; }
.avatar-color-4 { background: #8B5CF6; }
.avatar-color-5 { background: #EC4899; }

.hero-social-text {
  display: flex;
  flex-direction: column;
  gap: 0.1875rem;
}
.hero-social-stars {
  color: #F59E0B;
  font-size: 0.8125rem;
  display: flex;
  gap: 0.125rem;
}
.hero-social-text span {
  font-size: 0.875rem;
  color: var(--retire-text-secondary);
  font-weight: 500;
}

/* ── Hero Visual Column (dashboard mockup) ── */
.hero-visual-col {
  display: none;
}
@media (min-width: 64rem) {
  .hero-visual-col {
    display: block;
    position: relative;
  }
}

.hero-dash-frame {
  background: var(--retire-surface-elevated);
  border: 0.0625rem solid var(--retire-border);
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow:
    0 1.5rem 4rem rgba(0, 0, 0, 0.12),
    0 0 0 0.0625rem var(--retire-border);
}
[data-theme="dark"] .hero-dash-frame {
  box-shadow:
    0 1.5rem 4rem rgba(0, 0, 0, 0.4),
    0 0 0 0.0625rem var(--retire-border);
}

/* Browser chrome */
.hero-dash-chrome {
  background: var(--retire-surface);
  border-bottom: 0.0625rem solid var(--retire-border);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hero-dash-chrome-dots {
  display: flex;
  gap: 0.375rem;
}
.chrome-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
}
.dot-red    { background: #EF4444; }
.dot-yellow { background: #F59E0B; }
.dot-green  { background: #22C55E; }

.hero-dash-chrome-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--retire-text);
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.hero-dash-chrome-title i { color: var(--retire-primary); }

/* Dashboard body */
.hero-dash-body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-dash-greeting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9375rem;
  color: var(--retire-text);
}
.hero-dash-greeting strong { color: var(--retire-primary); }
.hero-dash-date {
  font-size: 0.8125rem;
  color: var(--retire-text-muted);
}

/* Metrics row */
.hero-metrics-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.hero-metric {
  background: var(--retire-bg-alt);
  border: 0.0625rem solid var(--retire-border-light);
  border-radius: 0.75rem;
  padding: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.hero-metric-icon-wrap {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  flex-shrink: 0;
}
.hero-metric-icon-wrap.bg-blue { background: rgba(59,130,246,0.15); color: #3B82F6; }
.hero-metric-icon-wrap.bg-emerald { background: rgba(16,185,129,0.15); color: #10B981; }

.hero-metric-info { flex: 1; min-width: 0; }
.hero-metric-val {
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--retire-text);
  line-height: 1.2;
}
.hero-metric-lbl {
  font-size: 0.75rem;
  color: var(--retire-text-muted);
  margin-top: 0.125rem;
}

.hero-metric-trend-up {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--retire-secondary);
  background: var(--retire-pine-wash);
  padding: 0.25rem 0.4375rem;
  border-radius: 0.375rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.hero-metric-chip {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  flex-shrink: 0;
}
.chip-green {
  background: var(--retire-pine-wash);
  color: var(--retire-secondary);
}

/* Dashboard lower: readiness ring + activity */
.hero-dash-lower {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding-top: 0.25rem;
}

/* Readiness ring */
.hero-readiness {
  position: relative;
  width: 5.625rem;
  height: 5.625rem;
  flex-shrink: 0;
}
.readiness-svg {
  width: 5.625rem;
  height: 5.625rem;
  display: block;
  transform: rotate(-0.25turn);
}
.ring-track { stroke: var(--retire-border); }
.ring-fill {
  stroke: var(--land-amber);
  animation: ring-draw 1.5s 0.5s ease-out backwards;
}
@keyframes ring-draw {
  from { stroke-dasharray: 0 314; }
  to   { stroke-dasharray: 273 314; }
}

.hero-readiness-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero-readiness-pct {
  font-size: 1.125rem;
  font-weight: 900;
  color: var(--retire-primary);
  line-height: 1;
}
.hero-readiness-lbl {
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--retire-text-muted);
  margin-top: 0.1875rem;
}

/* Activity feed */
.hero-activity-feed {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.hero-activity-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--retire-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.125rem;
}
.hero-activity-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--retire-text-secondary);
  line-height: 1.35;
}
.activity-dot {
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-amber  { background: var(--land-amber); }
.dot-emerald { background: #10B981; }
.dot-blue   { background: #3B82F6; }

/* Floating badges */
.hero-float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--retire-surface-elevated);
  border: 0.0625rem solid var(--retire-border);
  border-radius: 2rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--retire-text);
  box-shadow: var(--retire-shadow-md);
  white-space: nowrap;
  z-index: 2;
}
.hero-float-badge i { color: var(--retire-primary); }

.float-badge-tl {
  top: -1rem;
  left: -1.5rem;
  animation: float-badge-a 3s ease-in-out infinite;
}
.float-badge-br {
  bottom: 1rem;
  right: -1.5rem;
  animation: float-badge-a 3.5s 0.5s ease-in-out infinite;
}

@keyframes float-badge-a {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-0.5rem); }
}

