/* Aligns the public website with the completed RestAscent mobile visual language. */
@font-face {
  font-family: "Manrope";
  src: url("store/fonts/Manrope-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/SpaceGrotesk-VariableFont_wght.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --canvas: #0d1117;
  --canvas-deep: #090d13;
  --surface: rgba(20, 25, 35, 0.68);
  --surface-soft: rgba(18, 23, 32, 0.82);
  --surface-warm: rgba(38, 34, 47, 0.72);
  --bone: #ffffff;
  --text: rgba(255, 255, 255, 0.88);
  --muted: rgba(255, 255, 255, 0.56);
  --quiet: rgba(255, 255, 255, 0.32);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --sage: #81b29a;
  --sage-soft: #9bc7b1;
  --lavender: #b6aec8;
  --amber: #d3b675;
  --rose: #e07a5f;
  --teal: #81b29a;
  --ink: #0d1117;
  --radius: 20px;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
}

html {
  background: #0d1117;
}

body {
  position: relative;
  background:
    radial-gradient(circle at 86% 7%, rgba(182, 174, 200, 0.1), transparent 28rem),
    radial-gradient(circle at 8% 28%, rgba(129, 178, 154, 0.08), transparent 32rem),
    linear-gradient(180deg, #0d1117 0%, #182132 58%, #2c283b 100%) !important;
  background-attachment: fixed !important;
  color: var(--text);
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.55;
  background-image:
    radial-gradient(circle at 8% 12%, rgba(255,255,255,.52) 0 1px, transparent 1.5px),
    radial-gradient(circle at 26% 32%, rgba(129,178,154,.5) 0 1px, transparent 1.6px),
    radial-gradient(circle at 48% 8%, rgba(255,255,255,.32) 0 1px, transparent 1.4px),
    radial-gradient(circle at 67% 25%, rgba(255,255,255,.36) 0 1px, transparent 1.5px),
    radial-gradient(circle at 82% 43%, rgba(129,178,154,.44) 0 1px, transparent 1.6px),
    radial-gradient(circle at 94% 16%, rgba(255,255,255,.42) 0 1px, transparent 1.5px);
}

.site-shell,
.shell {
  background: transparent !important;
}

.nav {
  border-bottom-color: rgba(255, 255, 255, 0.07) !important;
  background: rgba(13, 17, 23, 0.76) !important;
  backdrop-filter: blur(22px) saturate(125%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(125%) !important;
}

.brand img {
  width: min(188px, 43vw) !important;
}

.nav-links a,
.nav-link,
.home-link,
.footer-links a {
  color: rgba(255, 255, 255, 0.52) !important;
  font-weight: 600 !important;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-link:hover,
.nav-link:focus-visible,
.home-link:hover,
.home-link:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible {
  color: #fff !important;
}

.button {
  min-height: 48px !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  border-radius: 15px !important;
  background: rgba(20, 25, 35, 0.62) !important;
  color: #fff !important;
  font-size: 0.86rem !important;
  font-weight: 650 !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.button:hover,
.button:focus-visible {
  border-color: rgba(129, 178, 154, 0.42) !important;
  background: rgba(129, 178, 154, 0.12) !important;
}

.button.primary {
  border-color: rgba(129, 178, 154, 0.58) !important;
  background: #81b29a !important;
  color: #0d1117 !important;
  box-shadow: 0 14px 38px rgba(129, 178, 154, 0.16);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: #9bc7b1 !important;
}

.eyebrow {
  color: #81b29a !important;
  font-size: 0.68rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.18em !important;
}

h1,
h2,
h3,
h4 {
  color: #fff !important;
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif !important;
  font-weight: 450 !important;
  letter-spacing: -0.035em !important;
}

p,
li {
  font-weight: 400 !important;
}

.hero {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 74% 34%, rgba(129, 178, 154, 0.13), transparent 24rem),
    radial-gradient(circle at 18% 8%, rgba(182, 174, 200, 0.08), transparent 28rem),
    linear-gradient(180deg, rgba(13, 17, 23, 0.2), rgba(13, 17, 23, 0.02)) !important;
}

.hero::before {
  position: absolute !important;
  inset: auto 0 0 !important;
  z-index: -2 !important;
  width: auto !important;
  height: 44% !important;
  content: "" !important;
  opacity: 0.68 !important;
  background: url("data:image/svg+xml;utf8,<svg viewBox='0 0 100 100' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'><path fill='%231e2638' d='M0 100V66l15-20 14 17 22-39 23 37 26-33v72Z'/><path fill='%23131824' d='M0 100V80l24-30 23 32 27-37 26 30v25Z'/></svg>") no-repeat bottom / 100% 100% !important;
}

.hero::after {
  position: absolute !important;
  inset: auto 0 0 !important;
  z-index: -1 !important;
  height: 180px !important;
  content: "" !important;
  background: linear-gradient(180deg, transparent, rgba(13, 17, 23, 0.78)) !important;
}

body[data-page="home"] .hero-copy > p,
.hero-copy,
.lead,
.intro-copy {
  color: rgba(255, 255, 255, 0.6) !important;
  font-weight: 400 !important;
}

.phone-wrap {
  width: min(100%, 320px) !important;
}

.phone-shell {
  overflow: visible !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 48px !important;
  padding: 10px !important;
  background: linear-gradient(155deg, rgba(255,255,255,.13), rgba(255,255,255,.035)) !important;
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.5), 0 0 80px rgba(129, 178, 154, 0.08) !important;
}

.phone-screen {
  overflow: hidden;
  border-radius: 38px !important;
  background: #0d1117 !important;
}

.phone-screen img {
  width: 100%;
  height: auto;
}

.phone-status,
.phone-home {
  display: none !important;
}

.store-button {
  border-color: rgba(255, 255, 255, 0.1) !important;
  border-radius: 15px !important;
  background: rgba(13, 17, 23, 0.64) !important;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18) !important;
}

.store-copy em,
.chip,
.kicker,
.ai-badge,
.status {
  color: #9bc7b1 !important;
}

.benefit-card,
.signal-panel,
.card,
.fvis-card,
.debt-panel,
.step,
.audio-item,
.coach-panel,
.challenge,
.analytics-card,
.review,
.plan,
.metric,
.feature,
.research-card,
.source-card,
.summary-card,
body[data-page="privacy_policy"] .section,
body[data-page="account_deletion"] .section,
.notice,
.panel,
.info-block {
  border-color: rgba(255, 255, 255, 0.08) !important;
  border-radius: 20px !important;
  background: rgba(20, 25, 35, 0.66) !important;
  box-shadow: 0 22px 66px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.benefit-card,
.card,
.feature,
.research-card,
.summary-card,
.info-block {
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.benefit-card:hover,
.card:hover,
.feature:hover,
.research-card:hover,
.summary-card:hover,
.info-block:hover {
  transform: translateY(-3px);
  border-color: rgba(129, 178, 154, 0.23) !important;
  background: rgba(23, 30, 40, 0.78) !important;
}

.section.alt,
.frow:nth-child(even),
.hr-section {
  background: rgba(9, 13, 19, 0.22) !important;
}

.image-panel,
.coach-panel,
.league-panel,
.final-cta,
.cta-band,
.hr-section {
  background:
    radial-gradient(circle at 70% 25%, rgba(129,178,154,.16), transparent 16rem),
    linear-gradient(145deg, rgba(20,25,35,.88), rgba(44,40,59,.72)) !important;
}

.image-panel,
.coach-panel,
.league-panel {
  position: relative;
  overflow: hidden;
}

.image-panel::after,
.coach-panel::after,
.league-panel::after {
  position: absolute;
  right: -8%;
  bottom: -3px;
  left: -8%;
  z-index: 0;
  height: 52%;
  content: "";
  opacity: 0.7;
  background: url("data:image/svg+xml;utf8,<svg viewBox='0 0 100 100' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'><path fill='%231e2638' d='M0 100V65l18-27 18 29 23-45 19 39 22-28v67Z'/><path fill='%23131824' d='M0 100V82l26-32 23 35 27-39 24 31v23Z'/></svg>") no-repeat bottom / 100% 100%;
}

.coach-panel > *,
.league-panel > * {
  position: relative;
  z-index: 1;
}

.proof-band {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.proof strong,
.signal-value,
.metric strong,
.analytics-card strong,
.price {
  color: #fff !important;
  font-weight: 450 !important;
}

.bar span {
  background: #81b29a !important;
}

.coach-prices {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.coach-price {
  min-height: 62px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(13, 17, 23, 0.28);
}

.coach-price.featured-price {
  border-color: rgba(129, 178, 154, 0.28);
  background: rgba(129, 178, 154, 0.09);
}

.coach-price span,
.coach-price strong,
.coach-price small {
  display: block;
}

.coach-price strong {
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
}

.coach-price small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.68rem;
  line-height: 1.3;
}

.coach-price b {
  flex: none;
  color: #fff;
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.coach-price.featured-price b {
  color: #9bc7b1;
}

.footer,
body[data-page="employers"] footer {
  border-top-color: rgba(255, 255, 255, 0.07) !important;
  background: rgba(9, 13, 19, 0.48) !important;
}

@media (max-width: 700px) {
  .nav {
    position: static !important;
  }

  body[data-page="home"] .hero,
  body[data-page="learn_more"] .hero {
    padding-top: 52px !important;
  }

  .hero::before {
    height: 30% !important;
  }

  .phone-wrap {
    width: min(100%, 300px) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .benefit-card,
  .card,
  .feature,
  .research-card,
  .summary-card,
  .info-block { transition: none; }
}
