/* RightWeek cinematic pitch */
:root {
  --rw-ink: #14181f;
  --rw-sand: #f3eee6;
  --rw-sea: #1f6f7a;
  --rw-sky: #7eb8c4;
  --rw-coral: #e85d75;
  --rw-terracotta: #c45c3a;
  --rw-panel: #0f141a;
  --rw-bubble: rgba(255, 255, 255, 0.94);
  --rw-bubble-dark: rgba(20, 24, 31, 0.92);
  --header-h: 4.5rem;
}

.rw-page {
  margin: 0;
  background: var(--rw-ink);
  color: var(--rw-sand);
  font-family: "Sora", system-ui, sans-serif;
}

/* Lock the page to the story reel until Aristotle */
html:has(body.rw-story-locked),
body.rw-story-locked {
  overflow: hidden !important;
  height: 100%;
  overscroll-behavior: none;
}

body.rw-story-locked .rw-cta,
body.rw-story-locked .rw-features,
body.rw-story-locked .site-footer {
  visibility: hidden;
}

body.rw-story-done .rw-reel::after {
  content: "Scroll for download & features";
  position: absolute;
  left: 50%;
  bottom: 2.4rem;
  transform: translateX(-50%);
  z-index: 6;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(243, 238, 230, 0.7);
  pointer-events: none;
  animation: rw-hint 1.6s ease infinite;
}

@keyframes rw-hint {
  0%,
  100% {
    opacity: 0.45;
    transform: translate(-50%, 0);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, 4px);
  }
}

.rw-page .site-header.is-light {
  color: var(--rw-ink);
}

.rw-story {
  position: relative;
}

.rw-reel {
  position: relative;
}

.rw-reel-stage {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--rw-ink);
}

.rw-reel-stage > .rw-scene,
.rw-reel-stage > .rw-close {
  position: absolute;
  inset: 0;
  min-height: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: none;
  transition: opacity 0.85s ease, visibility 0.85s ease;
  z-index: 1;
}

.rw-reel-stage > .rw-scene.is-active,
.rw-reel-stage > .rw-close.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

.rw-reel-stage > .rw-scene.is-active .rw-scout,
.rw-reel-stage > .rw-close.is-active {
  opacity: 1;
  transform: none;
}

.rw-reel-stage .rw-panel {
  min-height: 100%;
  height: 100%;
}

.rw-reel-stage .rw-scene--split .rw-panel {
  min-height: 50%;
}

@media (min-width: 900px) {
  .rw-reel-stage .rw-scene--split .rw-panel {
    min-height: 100%;
  }
}

.rw-reel-stage .rw-close {
  min-height: 0;
  height: 100%;
}

.rw-reel-next {
  position: absolute;
  left: 50%;
  bottom: 2.55rem;
  transform: translateX(-50%);
  z-index: 6;
  appearance: none;
  border: 1px solid rgba(243, 238, 230, 0.45);
  background: rgba(15, 20, 26, 0.72);
  color: var(--rw-sand);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.rw-reel-next[hidden] {
  display: none !important;
}

.rw-reel-next.is-flashing {
  animation: rw-next-flash 1.15s ease-in-out infinite;
}

@keyframes rw-next-flash {
  0%,
  100% {
    opacity: 1;
    border-color: rgba(243, 238, 230, 0.45);
    box-shadow: 0 0 0 0 rgba(232, 93, 117, 0);
  }
  50% {
    opacity: 0.55;
    border-color: rgba(232, 93, 117, 0.85);
    box-shadow: 0 0 0 6px rgba(232, 93, 117, 0.12);
  }
}

.rw-reel-dots {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 0.4rem;
}

.rw-reel-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(243, 238, 230, 0.35);
  cursor: pointer;
}

.rw-reel-dot.is-active {
  background: var(--rw-coral);
}

.rw-scene {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: stretch;
  overflow: hidden;
}

.rw-scene--full {
  grid-template-columns: 1fr;
}

.rw-scene--split {
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .rw-scene--split {
    grid-template-columns: 1fr 1fr;
  }
  .rw-scene--split.rw-scene--swap .rw-panel-main {
    order: 2;
  }
  .rw-scene--split.rw-scene--swap .rw-panel-side {
    order: 1;
  }
}

.rw-panel {
  position: relative;
  min-height: 52vh;
  background: #1a222c center / cover no-repeat;
}

.rw-scene--full .rw-panel {
  min-height: 100vh;
  min-height: 100dvh;
}

.rw-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 14, 18, 0.18) 0%,
    rgba(10, 14, 18, 0.05) 40%,
    rgba(10, 14, 18, 0.45) 100%
  );
  pointer-events: none;
}

.rw-scout {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: flex-end;
  gap: 0.65rem;
  max-width: min(34rem, calc(100% - 2rem));
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s ease 0.2s, transform 0.55s ease 0.2s;
}

.rw-scene.is-inview .rw-scout {
  opacity: 1;
  transform: none;
}

.rw-scout--tl {
  top: calc(var(--header-h) + 1rem);
  left: 1rem;
}

.rw-scout--sky {
  top: calc(var(--header-h) + 0.75rem);
  right: 1rem;
  left: auto;
  flex-direction: row-reverse;
  align-items: flex-start;
  max-width: min(28rem, calc(100% - 2rem));
}

/* Top-right below nav, sized so a long bubble stays fully in view */
.rw-scout--sky-fit {
  top: calc(var(--header-h) + 0.65rem);
  right: 0.75rem;
  left: 0.75rem;
  max-width: none;
  width: auto;
  justify-content: flex-end;
}

.rw-scout--sky-fit .rw-bubble {
  max-width: min(32rem, calc(100% - 5rem));
  font-size: clamp(0.85rem, 1.35vw, 1.05rem);
  line-height: 1.4;
  padding: 0.75rem 0.9rem;
}

.rw-scout--sky-fit img {
  width: 3.5rem;
  height: 3.5rem;
}

.rw-scout--bl {
  left: 1rem;
  bottom: 4.75rem;
  align-items: flex-end;
}

.rw-scout--br {
  right: 1rem;
  bottom: 1.25rem;
  flex-direction: row-reverse;
}

.rw-scout--center {
  left: 50%;
  bottom: 12%;
  transform: translate(-50%, 12px);
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.rw-scene.is-inview .rw-scout--center {
  transform: translate(-50%, 0);
}

.rw-scout img {
  width: 4.25rem;
  height: 4.25rem;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
  flex-shrink: 0;
}

.rw-bubble {
  position: relative;
  background: var(--rw-bubble);
  color: var(--rw-ink);
  border-radius: 1.1rem;
  padding: 0.9rem 1.05rem;
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  line-height: 1.45;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.rw-bubble--dark {
  background: var(--rw-bubble-dark);
  color: var(--rw-sand);
}

.rw-bubble::after {
  content: "";
  position: absolute;
  bottom: 0.9rem;
  width: 0.7rem;
  height: 0.7rem;
  background: inherit;
  transform: rotate(45deg);
}

.rw-scout--tl .rw-bubble::after,
.rw-scout--bl .rw-bubble::after {
  left: -0.28rem;
}

.rw-scout--sky .rw-bubble::after,
.rw-scout--br .rw-bubble::after {
  right: -0.28rem;
  left: auto;
}

.rw-scout--center .rw-bubble::after {
  left: 50%;
  bottom: -0.28rem;
  margin-left: -0.35rem;
}

.rw-close {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: calc(var(--header-h) + 2rem) 1.25rem 3rem;
  opacity: 1;
  transform: none;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(126, 184, 196, 0.22), transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(232, 93, 117, 0.14), transparent 50%),
    linear-gradient(160deg, #10151c 0%, #1a2430 55%, #0d1218 100%);
  text-align: center;
}

.rw-close-quote {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.35rem, 3.2vw, 2.15rem);
  line-height: 1.35;
  max-width: 38rem;
  margin: 0 auto 1.25rem;
  color: var(--rw-sand);
}

.rw-close-quote cite {
  display: block;
  margin-top: 0.85rem;
  font-style: normal;
  font-family: "Sora", system-ui, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}

.rw-close-line {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.15rem, 2.4vw, 1.65rem);
  color: var(--rw-coral);
  margin: 0 0 1.75rem;
}

.rw-close .rw-scout img {
  width: 5.5rem;
  height: 5.5rem;
  margin-bottom: 1rem;
}

.rw-cta {
  display: grid;
  gap: 2rem;
  padding: 3.5rem clamp(1.25rem, 4vw, 3rem) 4rem;
  background: linear-gradient(180deg, #171d26 0%, #0f141a 100%);
  align-items: center;
}

@media (min-width: 900px) {
  .rw-cta {
    grid-template-columns: minmax(0, 22rem) 1fr;
    gap: 3rem;
  }
}

.rw-cta-phone {
  margin: 0 auto;
  width: min(100%, 20rem);
  border-radius: 1.6rem;
  overflow: hidden;
  border: 1px solid rgba(243, 238, 230, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.rw-cta-phone img {
  display: block;
  width: 100%;
  height: auto;
}

.rw-cta-copy h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin: 0 0 0.75rem;
}

.rw-cta-copy p {
  margin: 0 0 1.5rem;
  opacity: 0.82;
  max-width: 32rem;
  line-height: 1.55;
}

.rw-app-store {
  display: inline-block;
  line-height: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.rw-app-store:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.rw-app-store img {
  height: 3.5rem;
  width: auto;
}

.rw-features {
  padding: 3rem clamp(1.25rem, 4vw, 3rem) 5rem;
  background: #0c1015;
}

.rw-features h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  margin: 0 0 0.5rem;
}

.rw-features-lead {
  margin: 0 0 1.5rem;
  opacity: 0.75;
  max-width: 36rem;
}

.rw-feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.rw-feature-chip {
  appearance: none;
  border: 1px solid rgba(243, 238, 230, 0.18);
  background: transparent;
  color: var(--rw-sand);
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font: 500 0.78rem/1 "Sora", system-ui, sans-serif;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.rw-feature-chip:hover {
  border-color: rgba(232, 93, 117, 0.55);
}

.rw-feature-chip.is-active {
  background: var(--rw-coral);
  border-color: var(--rw-coral);
  color: #fff;
}

.rw-feature-stage {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .rw-feature-stage {
    grid-template-columns: minmax(0, 22rem) 1fr;
    gap: 2.5rem;
  }
}

.rw-feature-media {
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(243, 238, 230, 0.1);
  background: #1a222c;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

.rw-feature-media img {
  display: block;
  width: 100%;
  height: auto;
}

.rw-feature-copy {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.rw-feature-copy img {
  width: 3.5rem;
  height: 3.5rem;
  object-fit: contain;
  flex-shrink: 0;
}

.rw-feature-copy h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: 1.45rem;
  margin: 0 0 0.45rem;
}

.rw-feature-copy p {
  margin: 0;
  line-height: 1.55;
  opacity: 0.82;
  max-width: 34rem;
}

.rw-feature-panel[hidden] {
  display: none !important;
}

/* Privacy */
.rw-privacy-page {
  background: #f3eee6;
  color: #14181f;
}

.rw-privacy {
  max-width: 42rem;
  margin: 0 auto;
  padding: calc(var(--header-h) + 2.5rem) 1.5rem 5rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

.rw-privacy h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 0.4rem;
}

.rw-privacy h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: 1.2rem;
  margin: 2rem 0 0.6rem;
}

.rw-privacy-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rw-sea);
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.rw-privacy-meta {
  color: #5c594f;
  font-size: 0.95rem;
  margin: 0 0 1.75rem;
}

.rw-privacy a {
  color: var(--rw-sea);
}

.rw-privacy hr {
  border: 0;
  border-top: 1px solid #d8d2c4;
  margin: 2.5rem 0;
}

.rw-privacy-page .site-footer {
  background: #ebe4d8;
  color: #14181f;
}

.rw-theme {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  position: absolute;
  z-index: 3;
  left: 1.25rem;
  bottom: 1.25rem;
  color: rgba(243, 238, 230, 0.72);
}

@media (max-width: 899px) {
  .rw-scout--tl,
  .rw-scout--bl,
  .rw-scout--br {
    left: 0.75rem;
    right: 0.75rem;
    max-width: calc(100% - 1.5rem);
  }
  .rw-scout--bl {
    bottom: 5.25rem;
    right: auto;
  }
  .rw-scout--sky {
    top: calc(var(--header-h) + 0.55rem);
    right: 0.75rem;
    left: 0.75rem;
    max-width: calc(100% - 1.5rem);
  }
  .rw-scout--sky-fit {
    top: calc(var(--header-h) + 0.5rem);
  }
  .rw-scout--sky-fit .rw-bubble {
    max-width: calc(100% - 4.25rem);
    font-size: 0.88rem;
  }
  .rw-scout--br {
    flex-direction: row;
  }
  .rw-scout img {
    width: 3.5rem;
    height: 3.5rem;
  }
}
