/*
  realXP site typography — V4
  Desktop:
    H1 = 34px
    H2 = 30px
    H3 = 22px
    Body = 18–19px
  Mobile:
    H1 = 30px
    H2 = 27px
    H3 = 22px
    Body = 17px
*/

:root {
  --brand-red: #B11226;
  --brand-grey: #404040;
  --cream: #f8f3ea;
  --cream-deep: #eee4d4;
  --ink: #2d261f;
  --muted: #6e655b;
  --gold: #c89621;
  --green: #5ca570;
  --magic: #7557e8;
  --sky: #e9f1ff;
  --line: rgba(64,64,64,.14);
  --shadow: 0 22px 60px rgba(46,35,25,.12);
  --radius-xl: 38px;
  --radius-lg: 26px;
  --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 { max-width: 100%; display: block; }
a { color: inherit; }

.hero {
  background: linear-gradient(180deg, #fff 0%, #fbf7f0 100%);
  overflow: hidden;
}
.hero-copy-only {
  max-width: 880px;
  margin: 0 auto;
  padding: 68px 24px 54px;
  text-align: center;
}
.hero-copy-only .eyebrow {
  justify-content: center;
}
.hero h1 {
  margin: 0;
  color: var(--brand-grey);
  font-size: 34px;
  letter-spacing: -.04em;
  line-height: 1.04;
}
.hero p {
  font-size: 19px;
  color: var(--muted);
  max-width: 690px;
  margin: 22px auto 28px;
}
.hero-copy-only .cta-row {
  justify-content: center;
}
.hero-fullbleed {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}
.hero-fullbleed picture,
.hero-fullbleed img {
  display: block;
  width: 100%;
}
.hero-fullbleed img {
  height: auto;
  object-fit: contain;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(255,255,255,.88);
  border-bottom: 1px solid rgba(64,64,64,.08);
}
.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; gap: 28px; align-items: center; font-weight: 650; font-size: .96rem; }
.main-nav a { text-decoration: none; color: var(--brand-grey); }
.main-nav a:hover { color: var(--brand-red); }
.nav-cta {
  background: var(--brand-red);
  color: #fff !important;
  padding: 10px 17px;
  border-radius: 999px;
}
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  color: var(--brand-red);
  margin-bottom: 16px;
}
.eyebrow img { width: 32px; height: 32px; object-fit: contain; }
.hero h1, .section-copy h2, .simple-hero h1 {
  margin: 0;
  color: var(--brand-grey);
  letter-spacing: -.045em;
  line-height: 1.02;
}
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 780;
  border: 1px solid transparent;
}
.button-primary { background: var(--brand-red); color: white; box-shadow: 0 10px 26px rgba(177,18,38,.22); }
.button-secondary { border-color: rgba(64,64,64,.2); color: var(--brand-grey); background: white; }
.microcopy { display: block; font-size: .82rem; color: #8b8278; margin-top: 13px; }

.phone {
  position: absolute;
  width: min(285px, 47%);
  left: -1%;
  bottom: -34px;
  border-radius: 45px;
  padding: 8px;
  background: #171717;
  box-shadow: 0 32px 70px rgba(0,0,0,.26);
}
.phone img { border-radius: 37px; }

.story-section { padding: 112px 24px; overflow: hidden; }
.story-section.alt { background: var(--cream); }
.story-section.soft-blue { background: #f4f8ff; }
.section-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 86px;
  align-items: center;
}
.section-inner.reverse { grid-template-columns: 1.1fr .9fr; }
.section-inner.reverse .section-copy { order: 2; }

.section-copy h2 {
  font-size: 30px;
  max-width: 680px;
}
.section-copy p {
  font-size: 19px;
  color: var(--muted);
  max-width: 620px;
  margin: 22px 0 0;
}
.section-copy .inline-link {
  display: inline-block;
  margin-top: 26px;
  color: var(--brand-red);
  font-weight: 750;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.icon-badge {
  width: 74px;
  height: 74px;
  object-fit: contain;
  margin-bottom: 24px;
}
.screen-showcase {
  position: relative;
  min-height: 590px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.screen-showcase .phone {
  position: relative;
  left: auto;
  bottom: auto;
  width: min(330px, 70vw);
}
.floating-icon {
  position: absolute;
  width: 100px;
  filter: drop-shadow(0 16px 18px rgba(0,0,0,.12));
}
.floating-icon.one { right: 8%; top: 8%; transform: rotate(8deg); }
.floating-icon.two { left: 5%; bottom: 10%; transform: rotate(-7deg); }

.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 { color: var(--muted); margin: 15px 0 0; font-size: 1.1rem; }

.duo-screens {
  display: flex;
  gap: 28px;
  align-items: flex-end;
  justify-content: center;
}
.duo-screens .phone { position: relative; left: auto; bottom: auto; width: min(255px, 38vw); }
.duo-screens .phone:nth-child(2) { transform: translateY(44px); }

.resource-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 38px;
}
.resource {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  min-height: 190px;
}
.resource img { width: 58px; height: 58px; object-fit: contain; margin-bottom: 14px; }
.resource h3 { margin: 0 0 8px; font-size: 1.18rem; }
.resource p { margin: 0; font-size: .98rem; color: var(--muted); }

.pricing-band {
  background: var(--brand-grey);
  color: white;
  padding: 100px 24px;
}
.pricing-inner {
  max-width: 930px;
  margin: 0 auto;
  text-align: center;
}
.pricing-inner img { width: 78px; margin: 0 auto 24px; }
.pricing-inner h2 { font-size: 30px; margin: 0; letter-spacing: -.04em; line-height: 1.04; }
.pricing-inner p { max-width: 720px; margin: 22px auto 30px; color: rgba(255,255,255,.78); font-size: 1.12rem; }
.pricing-inner .button-secondary { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }

.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 { font-size: 30px; margin: 0; color: var(--brand-grey); letter-spacing: -.045em; }
.final-cta p { color: var(--muted); max-width: 620px; margin: 20px auto 28px; font-size: 1.13rem; }

.site-footer {
  background: #292929;
  color: rgba(255,255,255,.8);
  padding: 50px 24px 28px;
}
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; align-items: flex-start; }
.footer-logo { width: 145px; filter: brightness(0) invert(1); opacity: .95; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: white; }
.footer-small { margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: .86rem; color: rgba(255,255,255,.52); }

.simple-hero { padding: 110px 24px 70px; background: var(--cream); }
.simple-hero .inner, .simple-content { max-width: 900px; margin: 0 auto; }
.simple-hero h1 { font-size: 34px; }
.simple-hero p { font-size: 1.2rem; color: var(--muted); max-width: 720px; }
.simple-content { padding: 70px 24px 110px; }
.simple-content h2 { color: var(--brand-grey); margin-top: 38px; }
.simple-content p, .simple-content li { color: var(--muted); }

@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;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .hero-inner, .section-inner, .section-inner.reverse {
    grid-template-columns: 1fr;
    gap: 52px;
  }
  .section-inner.reverse .section-copy { order: initial; }
  .hero { min-height: auto; }
  .hero-inner { padding-top: 48px; }
      .hero-visual .phone { left: 3%; bottom: -28px; }
  .story-section { padding: 82px 22px; }
  .resource-row { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 17px; }
  .hero-copy-only { padding: 44px 18px 40px; }
  .hero h1,
  .simple-hero h1 { font-size: 30px; }
  .section-copy h2,
  .progress-overlay h2,
  .pricing-inner h2,
  .final-cta h2 { font-size: 27px; }
  .resource h3 { font-size: 22px; }
  .hero-fullbleed picture,
  .hero-fullbleed img { width: 100%; }
  .hero-fullbleed img { height: auto; object-fit: contain; }
  .hero-copy-only {
    padding: 44px 18px 40px;
  }
  .nav-wrap { padding: 13px 18px; }
  .brand img { width: 122px; }
  .hero-inner { padding: 42px 18px 62px; }
          .hero-visual .phone { width: 44%; border-radius: 31px; padding: 6px; }
  .hero-visual .phone img { border-radius: 26px; }
  .story-section { padding: 72px 18px; }
  .screen-showcase { min-height: 515px; }
  .screen-showcase .phone { width: min(280px, 78vw); }
  .floating-icon { width: 78px; }
  .progress-image-wrap, .progress-image-wrap > img { min-height: 610px; height: 610px; }
  .progress-overlay { left: 18px; right: 18px; bottom: 18px; padding: 24px; }
  .duo-screens { gap: 12px; }
  .duo-screens .phone { width: 46%; border-radius: 28px; padding: 5px; }
  .duo-screens .phone img { border-radius: 24px; }
  .pricing-band { padding: 78px 18px; }
  .final-cta { padding: 90px 18px; }
  .footer-top { flex-direction: column; }
}


/* V5 — App Store badge */
.app-store-cta {
  margin-top: 28px;
}
.app-store-cta a {
  display: inline-block;
  line-height: 0;
}
.app-store-cta img {
  display: block;
  width: 180px;
  height: auto;
}
.hero-copy-only .app-store-cta {
  text-align: center;
}
.final-store-cta {
  display: flex;
  justify-content: center;
}

/* V5 — explicit alternating content row.
   In .reverse, text is on the right and the visual remains on the left. */
.section-inner.reverse.visual-left .section-copy {
  order: 2;
}
.section-inner.reverse.visual-left .screen-showcase {
  order: 1;
}

@media (max-width: 900px) {
  .section-inner.reverse.visual-left .section-copy,
  .section-inner.reverse.visual-left .screen-showcase {
    order: initial;
  }
}

@media (max-width: 620px) {
  .app-store-cta img {
    width: 165px;
  }
}


/* V6 — cinematic hero overlay + curved transition */
.hero-fullbleed {
  position: relative;
  background: #111;
}
.hero-title-overlay {
  position: absolute;
  left: clamp(28px, 7vw, 110px);
  top: clamp(34px, 10vw, 125px);
  z-index: 3;
  max-width: 430px;
}
.hero-title-overlay h1 {
  margin: 0;
  font-size: 42px;
  line-height: 1.06;
  letter-spacing: -.035em;
  color: #fff;
  text-shadow:
    0 2px 5px rgba(0,0,0,.48),
    0 10px 30px rgba(0,0,0,.28);
}
.hero-curve {
  position: absolute;
  z-index: 4;
  left: -5%;
  right: -5%;
  bottom: -1px;
  height: 76px;
  background: #fbf7f0;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  transform: translateY(52%);
}
.hero-copy-only {
  padding-top: 54px;
}

/* V6 — centred text-only Quest intro */
.compact-story {
  padding-top: 92px;
  padding-bottom: 92px;
}
.single-copy {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.single-copy .icon-badge {
  margin-left: auto;
  margin-right: auto;
}
.single-copy .eyebrow {
  justify-content: center;
}
.single-copy h2 {
  margin: 0;
  font-size: 30px;
  color: var(--brand-grey);
  letter-spacing: -.035em;
}
.single-copy p {
  margin: 20px auto 0;
  max-width: 660px;
  color: var(--muted);
  font-size: 19px;
}

/* V6 — support concepts occupy their own full-width row */
.support-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.support-heading {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.support-heading .eyebrow {
  justify-content: center;
}
.support-heading h2 {
  margin: 0;
  font-size: 30px;
  color: var(--brand-grey);
  letter-spacing: -.035em;
}
.support-heading > p {
  max-width: 660px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 19px;
}
.support-overview .resource-row {
  margin-top: 46px;
}
.support-overview .resource {
  text-align: center;
}
.support-overview .resource img {
  margin-left: auto;
  margin-right: auto;
}

/* V6 — prevent the overlay title obscuring the hero or bridge */
@media (min-width: 901px) {
  .hero-title-overlay {
    width: 34vw;
    max-width: 430px;
  }
}

@media (max-width: 900px) {
  .hero-title-overlay {
    top: 36px;
    left: 28px;
    max-width: 360px;
  }
  .hero-title-overlay h1 {
    font-size: 36px;
  }
}

@media (max-width: 620px) {
  .hero-title-overlay {
    left: 22px;
    right: 22px;
    top: 28px;
    max-width: 310px;
  }
  .hero-title-overlay h1 {
    font-size: 30px;
  }
  .hero-curve {
    height: 54px;
  }
  .resource-row {
    grid-template-columns: 1fr;
  }
}


/* V7 — full-width wave separator */
.hero-curve {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 82px;
  line-height: 0;
  overflow: hidden;
}
.hero-curve svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* V7 — improve overlay title legibility with semi-transparent grey panel */
.hero-title-overlay {
  background: rgba(64, 64, 64, 0.48);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 24px;
  padding: 18px 22px;
  box-shadow: 0 14px 34px rgba(0,0,0,.16);
}
.hero-title-overlay h1 {
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0,0,0,.28);
}

/* V7 — first text row also carries the headline */
.hero-copy-only {
  max-width: 820px;
  margin: 0 auto;
  padding: 54px 24px 54px;
  text-align: center;
}
.hero-copy-only .eyebrow {
  justify-content: center;
}
.hero-copy-only h2 {
  margin: 0;
  font-size: 30px;
  color: var(--brand-grey);
  letter-spacing: -.035em;
  line-height: 1.12;
}
.hero-copy-only p {
  margin: 20px auto 0;
  max-width: 690px;
}

/* V7 — consistent larger parchment icon in rows 1 and 2 */
.hero-copy-icon,
.compact-story .icon-badge {
  width: 74px;
  height: 74px;
  object-fit: contain;
  margin-left: auto;
  margin-right: auto;
}
.hero-copy-icon {
  margin-bottom: 18px;
}

/* V7 — compass in stuck row sized to match the other icons */
.visual-left .icon-badge {
  width: 74px;
  height: 74px;
  object-fit: contain;
}

@media (max-width: 620px) {
  .hero-title-overlay {
    padding: 14px 16px;
    border-radius: 18px;
  }
  .hero-copy-only h2 {
    font-size: 27px;
  }
  .hero-curve {
    height: 60px;
  }
}


/* V8 — centre selected feature icon + eyebrow pairs */
.visual-left .section-copy > .icon-badge,
.magic-row .section-copy > .icon-badge,
.health-row .section-copy > .icon-badge {
  margin-left: auto;
  margin-right: auto;
}

.visual-left .section-copy > .eyebrow,
.magic-row .section-copy > .eyebrow,
.health-row .section-copy > .eyebrow {
  justify-content: center;
  text-align: center;
}

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

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