/* ————— Rouse landing — rouse.day ————— */

:root {
  --brand: #6C4DFF;
  --brand-deep: #4A2FE0;
  --accent: #FF8A00;
  --ink: #17123A;
  --muted: #6B6785;
  --wash: #F4F2FF;
  --line: #E7E4F5;
  --card: #FFFFFF;
  --radius: 20px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

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

/* ————— Landing layout: header / hero / footer fill one viewport ————— */

.landing {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1000px 600px at 85% -10%, var(--wash) 0%, rgba(244,242,255,0) 60%),
    #fff;
}

/* ————— Top bar ————— */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 56px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand img { border-radius: 10px; }

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-left: 1px solid var(--line);
  padding-left: 12px;
}

.topbar-link {
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.topbar-link:hover { border-color: var(--brand); color: var(--brand); }

/* ————— Hero ————— */

.hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: 8px clamp(20px, 5vw, 56px) 0;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.hero-copy h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 18px;
  text-wrap: balance;
}

.hero-copy h1 em {
  font-style: normal;
  color: var(--brand);
}

.sub {
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  color: var(--muted);
  max-width: 34em;
  margin: 0 0 22px;
}

.feature-pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0 0 30px;
}

.feature-pills li {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--wash);
  border: 1px solid var(--line);
  white-space: nowrap;
}

/* ————— Store badges ————— */

.stores {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}

.store-badge img {
  width: 180px;
  height: auto;
  transition: transform 0.15s ease;
}

.store-badge:hover img { transform: translateY(-2px); }

.store-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.store-soon img {
  width: 180px;
  height: auto;
  opacity: 0.55;
  filter: grayscale(35%);
}

.soon-pill {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-deep);
  background: var(--wash);
  border: 1px solid var(--line);
  padding: 3px 10px;
  border-radius: 999px;
}

/* ————— Phone previews ————— */

.hero-preview {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 0;
  padding: 12px 0;
}

.glow {
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(108, 77, 255, 0.18) 0%,
    rgba(255, 138, 0, 0.07) 55%,
    rgba(255, 255, 255, 0) 72%);
  z-index: 0;
}

.phone {
  margin: 0;
  position: relative;
  z-index: 1;
  width: clamp(180px, 17vw, 250px);
  padding: 10px;
  background: #17123A;
  border-radius: 42px;
  box-shadow: 0 24px 60px rgba(23, 18, 58, 0.28);
}

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

.phone-back {
  transform: rotate(-7deg) translateX(26px) scale(0.94);
  opacity: 0.96;
}

.phone-front {
  transform: rotate(4deg) translateX(-26px);
}

/* ————— Footer ————— */

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px clamp(20px, 5vw, 56px) 20px;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
}

.footer a:hover { color: var(--brand); text-decoration: underline; }

.footer p { margin: 0; }

/* ————— Inner pages (terms / privacy / support) ————— */

.page {
  background: #fff;
}

.page-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 20px 64px;
}

.page-main h1 {
  font-size: 2rem;
  letter-spacing: -0.02em;
  margin: 24px 0 4px;
}

.page-updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 28px;
}

.page-main h2 {
  font-size: 1.15rem;
  margin: 28px 0 8px;
}

.page-main p, .page-main li {
  color: #3C3760;
  font-size: 1rem;
}

.page-main ul { padding-left: 22px; }

.email-cta {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 22px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
}

.email-cta:hover { background: var(--brand-deep); }

.page .footer {
  border-top: 1px solid var(--line);
  margin-top: 24px;
}

/* ————— Responsive ————— */

@media (max-width: 900px) {
  .landing { min-height: 0; }

  .brand-label { display: none; }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 16px;
    gap: 8px;
  }

  .hero-copy h1 { font-size: clamp(2.4rem, 9vw, 3rem); }

  .sub { margin-left: auto; margin-right: auto; }

  .feature-pills { justify-content: center; }

  .stores { justify-content: center; }

  .hero-preview { padding: 28px 0 8px; }

  .phone { width: clamp(190px, 38vw, 240px); }
}

@media (max-width: 480px) {
  .phone-back { display: none; }
  .phone-front { transform: none; }
  .store-badge img, .store-soon img { width: 160px; }
}

@media (prefers-reduced-motion: reduce) {
  .store-badge img { transition: none; }
}
