/*
  realXP — shared site styles
*/

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Orbitron";
  src: url("../fonts/orbitron-medium-webfont.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Orbitron";
  src: url("../fonts/orbitron-bold-webfont.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
:root {
  --brand-red: #B11226;
  --brand-grey: #404040;
  --cream: #f8f3ea;
  --ink: #2d261f;
  --muted: #6e655b;
  --line: rgba(64,64,64,.14);
  --shadow: 0 22px 60px rgba(46,35,25,.12);
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a { color: inherit; }

h1, h2, h3 { color: var(--brand-grey); }

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--brand-red);
  font-weight: 700;
  text-align: center;
}

.icon-badge {
  width: 74px;
  height: 74px;
  object-fit: contain;
  margin: 0 auto 24px;
}

/* Header / navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.88);
  border-bottom: 1px solid rgba(64,64,64,.08);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 15px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.brand img {
  width: 145px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: .96rem;
  font-weight: 600;
}

.main-nav a {
  color: var(--brand-grey);
  text-decoration: none;
}

.main-nav a:hover { color: var(--brand-red); }

.nav-cta {
  padding: 10px 17px;
  border-radius: 999px;
  background: var(--brand-red);
  color: #fff !important;
}

.menu-toggle {
  display: none;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

/* Hero */

.hero {
  background: linear-gradient(180deg, #fff 0%, #fbf7f0 100%);
  overflow: hidden;
}

.hero-fullbleed {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #111;
  line-height: 0;
}

.hero-fullbleed picture,
.hero-fullbleed img {
  display: block;
  width: 100%;
}

.hero-fullbleed img {
  height: auto;
  object-fit: contain;
}

.hero-title-overlay {
  position: absolute;
  z-index: 3;
  top: clamp(34px, 10vw, 125px);
  left: clamp(28px, 7vw, 110px);
  width: 34vw;
  max-width: 430px;
  padding: 18px 22px;
  border-radius: 24px;
  background: rgba(64,64,64,.48);
  box-shadow: 0 14px 34px rgba(0,0,0,.16);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.hero-title-overlay h1 {
  margin: 0;
  color: #fff;
  font-size: 42px;
  line-height: 1.06;
  letter-spacing: -.035em;
  text-shadow: 0 2px 4px rgba(0,0,0,.28);
}

.hero-curve {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 82px;
  overflow: hidden;
  line-height: 0;
}

.hero-curve svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-copy-only {
  max-width: 820px;
  margin: 0 auto;
  padding: 54px 24px;
  text-align: center;
}

.hero-copy-only h2 {
  margin: 0;
  color: var(--brand-grey);
  font-size: 30px;
  line-height: 1.12;
  letter-spacing: -.035em;
}

.hero-copy-only p {
  max-width: 690px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 19px;
}

.hero-copy-icon { margin-bottom: 18px; }

/* App Store CTA */

.app-store-cta {
  margin-top: 28px;
  text-align: center;
}

.app-store-cta a {
  display: inline-block;
  line-height: 0;
}

.app-store-cta img {
  width: 180px;
  height: auto;
}

.final-store-cta {
  display: flex;
  justify-content: center;
}

/* Shared sections */

.story-section {
  padding: 112px 24px;
  overflow: hidden;
}

.story-section.alt { background: var(--cream); }

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 86px;
  align-items: center;
}

.section-inner.visual-right {
  grid-template-columns: .9fr 1.1fr;
}

.section-inner.visual-left {
  grid-template-columns: 1.1fr .9fr;
}

.section-inner.visual-left .section-copy {
  order: 2;
}

.section-copy .icon-badge {
  margin-left: auto;
  margin-right: auto;
}

.section-copy .eyebrow {
  justify-content: center;
  text-align: center;
}

.section-copy h2 {
  max-width: 680px;
  margin: 0;
  color: var(--brand-grey);
  font-size: 30px;
  line-height: 1.02;
  letter-spacing: -.045em;
}

.section-copy p {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 19px;
}

/* Phone screenshots */

.phone {
  padding: 8px;
  border-radius: 45px;
  background: #171717;
  box-shadow: 0 32px 70px rgba(0,0,0,.26);
}

.phone img { border-radius: 37px; }

.screen-showcase {
  min-height: 590px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screen-showcase .phone {
  width: min(330px, 70vw);
}

/* Health / Magic / Direction */

.support-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.support-heading {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.support-heading h2 {
  margin: 0;
  color: var(--brand-grey);
  font-size: 30px;
  letter-spacing: -.035em;
}

.support-heading > p {
  max-width: 660px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 19px;
}

.resource-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 46px;
}

.resource {
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  text-align: center;
}

.resource img {
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  object-fit: contain;
}

.resource h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.resource p {
  margin: 0;
  color: var(--muted);
  font-size: .98rem;
}

/* Progress artwork */

.progress-scene {
  max-width: var(--max);
  margin: 0 auto;
}

.progress-image-wrap {
  position: relative;
  min-height: 700px;
  border-radius: 44px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.progress-image-wrap > img {
  width: 100%;
  height: 700px;
  object-fit: cover;
}

.progress-overlay {
  position: absolute;
  left: 44px;
  bottom: 44px;
  max-width: 530px;
  padding: 28px 30px;
  border-radius: 28px;
  background: rgba(255,250,243,.91);
  backdrop-filter: blur(12px);
}

.progress-overlay h2 {
  margin: 0;
  color: var(--brand-grey);
  font-size: 30px;
  line-height: 1.04;
  letter-spacing: -.04em;
}

.progress-overlay p {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
}

/* Final CTA */

.final-cta {
  padding: 120px 24px 130px;
  background: linear-gradient(180deg, #fff, var(--cream));
  text-align: center;
}

.final-cta > img {
  width: 110px;
  margin: 0 auto 24px;
}

.final-cta h2 {
  margin: 0;
  color: var(--brand-grey);
  font-size: 30px;
  letter-spacing: -.045em;
}

.final-cta p {
  max-width: 620px;
  margin: 20px auto 28px;
  color: var(--muted);
  font-size: 1.13rem;
}

/* Footer */

.site-footer {
  padding: 50px 24px 28px;
  background: #292929;
  color: rgba(255,255,255,.8);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.footer-logo {
  width: 145px;
  filter: brightness(0) invert(1);
  opacity: .95;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-links a { text-decoration: none; }
.footer-links a:hover { color: #fff; }

.footer-small {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.52);
  font-size: .86rem;
}

/* Secondary pages */

.simple-hero {
  padding: 110px 24px 70px;
  background: var(--cream);
}

.simple-hero .inner,
.simple-content {
  max-width: 900px;
  margin: 0 auto;
}

.simple-hero h1 {
  margin: 0;
  color: var(--brand-grey);
  font-size: 34px;
  line-height: 1.02;
  letter-spacing: -.045em;
}

.simple-hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.2rem;
}

.simple-content {
  padding: 70px 24px 110px;
}

.simple-content h2 {
  margin-top: 38px;
  color: var(--brand-grey);
}

.simple-content p,
.simple-content li {
  color: var(--muted);
}

/* Tablet */

@media (max-width: 900px) {
  .menu-toggle { display: inline-block; }

  .main-nav {
    position: absolute;
    top: 72px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 22px;
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .main-nav.open { display: flex; }

  .section-inner,
  .section-inner.visual-right,
  .section-inner.visual-left {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .section-inner.visual-left .section-copy {
    order: initial;
  }

  .story-section { padding: 82px 22px; }

  .resource-row { grid-template-columns: 1fr; }

  .hero-title-overlay {
    top: 36px;
    left: 28px;
    width: auto;
    max-width: 360px;
  }

  .hero-title-overlay h1 {
    font-size: 36px;
  }
}

/* Phone */

@media (max-width: 620px) {
  body { font-size: 17px; }

  .nav-wrap { padding: 13px 18px; }

  .brand img { width: 122px; }

  .hero-title-overlay {
    top: 28px;
    left: 22px;
    right: 22px;
    max-width: 310px;
    padding: 14px 16px;
    border-radius: 18px;
  }

  .hero-title-overlay h1 { font-size: 30px; }

  .hero-curve { height: 60px; }

  .hero-copy-only {
    padding: 44px 18px 40px;
  }

  .hero-copy-only h2,
  .section-copy h2,
  .support-heading h2,
  .progress-overlay h2,
  .final-cta h2 {
    font-size: 27px;
  }

  .app-store-cta img { width: 165px; }

  .story-section { padding: 72px 18px; }

  .screen-showcase { min-height: 515px; }

  .screen-showcase .phone {
    width: min(280px, 78vw);
  }

  .progress-image-wrap,
  .progress-image-wrap > img {
    min-height: 610px;
    height: 610px;
  }

  .progress-overlay {
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 24px;
  }

  .resource h3 { font-size: 22px; }

  .final-cta { padding: 90px 18px; }

  .footer-top { flex-direction: column; }

  .simple-hero h1 { font-size: 30px; }
}

.beta-banner {
  padding: 12px 20px 28px;
  background: #F7F3EA;
  text-align: center;
}

.beta-banner-image {
  display: block;
  width: 100%;
  max-width: 900px;
  height: auto;
  margin: 0 auto;
}

.beta-banner-action {
  margin-top: 18px;
}

.beta-banner-button {
  display: inline-block;
  padding: 10px 18px;
  border: 3px solid #3E5F85;
  border-radius: 999px;
  background: transparent;
  color: #3E5F85;
  font-weight: 700;
  text-decoration: none;
}
}

.beta-banner-button:hover {
  opacity: .9;
}