/* ShopTV marketing site
   Palette lifted from the app's own design tokens (android/app/.../colors.xml):
   purple_500 #6200EE is the app's primary brand color, teal_200/700 is its accent,
   and the card washes below are the exact banner_background / values-night wash
   the in-app campaign banner uses -- so the site and the app agree with each other. */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700;9..144,900&family=Work+Sans:wght@400;500;600;700&display=swap');

:root {
  --purple-900: #1A1025;
  --purple-700: #3700B3;
  --purple-600: #4B14D1;
  --purple-500: #6200EE;
  --purple-300: #BB86FC;
  --purple-100: #E9DBFF;
  --purple-050: #F4ECFF;
  --teal-500: #018786;
  --teal-300: #03DAC5;

  --paper: #FCFAFF;
  --paper-raised: #FFFFFF;
  --card: var(--purple-050);
  --ink: #1A1025;
  --ink-soft: #5B4E70;
  --ink-faint: #8577974d;
  --border: #E4D9F7;

  --shadow-soft: 0 20px 50px -25px rgba(45, 15, 90, 0.35);
  --shadow-tight: 0 8px 20px -10px rgba(45, 15, 90, 0.3);

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #150C22;
    --paper-raised: #1D1330;
    --card: #2B2140;
    --ink: #F3EEFB;
    --ink-soft: #C6B8DE;
    --ink-faint: #cbb6ec4d;
    --border: #3A2C54;
    --shadow-soft: 0 20px 50px -25px rgba(0, 0, 0, 0.6);
    --shadow-tight: 0 8px 20px -10px rgba(0, 0, 0, 0.55);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper: #150C22;
  --paper-raised: #1D1330;
  --card: #2B2140;
  --ink: #F3EEFB;
  --ink-soft: #C6B8DE;
  --ink-faint: #cbb6ec4d;
  --border: #3A2C54;
  --shadow-soft: 0 20px 50px -25px rgba(0, 0, 0, 0.6);
  --shadow-tight: 0 8px 20px -10px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --paper: #FCFAFF;
  --paper-raised: #FFFFFF;
  --card: var(--purple-050);
  --ink: #1A1025;
  --ink-soft: #5B4E70;
  --ink-faint: #8577974d;
  --border: #E4D9F7;
  --shadow-soft: 0 20px 50px -25px rgba(45, 15, 90, 0.35);
  --shadow-tight: 0 8px 20px -10px rgba(45, 15, 90, 0.3);
  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

a { color: inherit; }

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}

.eyebrow {
  font-family: 'Work Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--purple-500);
}
:root[data-theme="dark"] .eyebrow,
@media (prefers-color-scheme: dark) { .eyebrow { color: var(--purple-300); } }

p { margin: 0; }
p + p { margin-top: 1em; }

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: var(--shadow-tight);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
}
.nav-links a:hover { color: var(--purple-500); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--purple-500);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--purple-700); }

@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  padding: 88px 0 60px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 4.6vw, 3.7rem);
  margin: 18px 0 22px;
}

.hero h1 em {
  font-style: normal;
  color: var(--purple-500);
}
@media (prefers-color-scheme: dark) { .hero h1 em { color: var(--purple-300); } }
:root[data-theme="dark"] .hero h1 em { color: var(--purple-300); }

.store-badges {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.store-badges a {
  display: inline-block;
  line-height: 0;
  filter: drop-shadow(var(--shadow-tight));
}

.store-badges .app-store-badge { height: 48px; width: auto; }
.store-badges .play-badge { height: 48px; width: auto; border-radius: 8px; }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-visual .phone-frame {
  width: min(280px, 72vw);
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transform: rotate(-3deg);
  border: 6px solid var(--paper-raised);
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--purple-100) 0%, transparent 70%);
  z-index: -1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
@media (prefers-color-scheme: dark) {
  .hero-visual::before { background: radial-gradient(circle, var(--card) 0%, transparent 70%); }
}
:root[data-theme="dark"] .hero-visual::before { background: radial-gradient(circle, var(--card) 0%, transparent 70%); }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .lede { margin-inline: auto; }
  .store-badges { justify-content: center; }
  .hero-visual { order: -1; margin-bottom: 8px; }
}

/* ---------- Section shell ---------- */

section { padding: 76px 0; }

.section-head {
  max-width: 640px;
  margin-bottom: 44px;
}
.section-head.center { margin-inline: auto; text-align: center; }

.section-head h2 { margin-top: 14px; font-size: clamp(1.8rem, 3vw, 2.3rem); }
.section-head p { margin-top: 14px; color: var(--ink-soft); }

/* ---------- Screens filmstrip ---------- */

.filmstrip-outer {
  max-width: 1120px;
  margin: 0 auto;
}

.filmstrip {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 8px 28px 28px;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--purple-300) transparent;
  scrollbar-width: thin;
}

.filmstrip-item {
  scroll-snap-align: center;
  flex: 0 0 auto;
  width: 220px;
}

.filmstrip-item img {
  width: 100%;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.filmstrip-item figcaption {
  margin-top: 14px;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  color: var(--ink-soft);
}

.filmstrip-item { margin: 0; }

/* ---------- Feature grid ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--purple-500);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 18px;
}
.feature-icon svg { width: 22px; height: 22px; }

.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-card p { color: var(--ink-soft); font-size: 0.96rem; }

/* ---------- Referral ---------- */

.referral {
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.referral .wrap-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.referral-copy { padding: 56px; }
.referral-copy .section-head { margin-bottom: 30px; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.steps li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-num {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--purple-500);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.referral-mock {
  background: var(--purple-500);
  padding: 56px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mock-card {
  background: var(--paper-raised);
  border-radius: 22px;
  padding: 28px 24px;
  width: 100%;
  max-width: 280px;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.mock-chip {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--teal-300);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mock-chip svg { width: 26px; height: 26px; color: var(--purple-900); }

.mock-card h4 {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  margin: 0 0 6px;
}
.mock-card p.mock-sub { color: var(--ink-soft); font-size: 0.88rem; margin-bottom: 20px; }

.mock-pill {
  display: block;
  width: 100%;
  padding: 13px;
  border-radius: 999px;
  background: var(--purple-500);
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 18px;
}

.mock-dots { display: flex; justify-content: center; gap: 7px; margin-bottom: 8px; }
.mock-dots span {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--border);
}
.mock-dots span.filled { background: var(--teal-500); }
.mock-progress-label { font-size: 0.82rem; color: var(--ink-soft); font-weight: 600; }

@media (max-width: 820px) {
  .referral .wrap-inner { grid-template-columns: 1fr; }
  .referral-copy { padding: 40px 28px; }
  .referral-mock { padding: 36px 28px; }
}

/* ---------- Download band ---------- */

.download-band {
  background: var(--purple-900);
  color: #F3EEFB;
  text-align: center;
  border-radius: var(--radius-lg);
  padding: 68px 28px;
}

.download-band .eyebrow { color: var(--purple-300); }
.download-band h2 { color: #fff; margin-top: 14px; }
.download-band p { color: #C6B8DE; margin-top: 14px; }
.download-band .store-badges { justify-content: center; margin-top: 34px; }

/* ---------- Support / FAQ ---------- */

.faq {
  display: grid;
  gap: 16px;
}

.faq-item {
  background: var(--paper-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 22px 26px;
}

.faq-item h3 {
  font-family: 'Work Sans', sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.faq-item p { color: var(--ink-soft); font-size: 0.96rem; }

.support-contact {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}
.btn-primary { background: var(--purple-500); color: #fff; }
.btn-primary:hover { background: var(--purple-700); }
.btn-ghost { border: 1px solid var(--border); color: var(--ink); }
.btn-ghost:hover { border-color: var(--purple-500); }

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

footer a { text-decoration: none; }
footer a:hover { color: var(--purple-500); }

.footer-links {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ---------- Legal page ---------- */

.legal {
  padding: 64px 0 90px;
  max-width: 760px;
  margin: 0 auto;
}
.legal h1 { font-size: 2.1rem; margin-bottom: 8px; }
.legal .updated { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 40px; }
.legal h2 {
  font-family: 'Work Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 38px;
  margin-bottom: 10px;
}
.legal p, .legal li { color: var(--ink-soft); font-size: 0.98rem; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--purple-500); }
.legal .back-link { display: inline-block; margin-bottom: 28px; font-weight: 600; color: var(--purple-500); text-decoration: none; }
