/* Rehome marketing site â€” design tokens from APP_BRIEF.md Â§3 */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700;9..40,800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --paper: #FAFAF7;
  --paper-dim: #F2F0E8;
  --ink: #0F0F0F;
  --ink-70: rgba(15, 15, 15, 0.70);
  --ink-55: rgba(15, 15, 15, 0.55);
  --ink-40: rgba(15, 15, 15, 0.40);
  --ink-08: rgba(15, 15, 15, 0.08);
  --ink-04: rgba(15, 15, 15, 0.04);
  --accent: #FFD23F;
  --accent-dark: #E5B92E;
  --accent-soft: #FFF1AE;
  --error: #E5483A;

  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ---- Layout ---- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 96px 0; }
@media (max-width: 720px) { section { padding: 64px 0; } }

/* ---- Typography ---- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-70);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--paper-dim);
  border: 1px solid var(--ink-08);
  border-radius: 999px;
}
.eyebrow::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.eyebrow.plain { background: transparent; border: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--ink);
}
h1 { font-size: clamp(40px, 6vw, 76px); font-weight: 800; }
h2 { font-size: clamp(30px, 4.2vw, 48px); }
h3 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.2; }
h4 { font-size: 16px; letter-spacing: -0.01em; }

p { color: var(--ink-70); line-height: 1.55; }
p.lead { font-size: 18px; color: var(--ink-70); max-width: 56ch; }

.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--ink);
  color: var(--paper);
  padding: 16px 22px 16px 26px;
  border-radius: 16px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 12px 28px -14px rgba(255, 210, 63, 0.55);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-primary:active { transform: scale(0.985); }
.btn-primary .chip {
  width: 28px; height: 28px;
  background: var(--accent);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-size: 14px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  color: var(--ink);
  padding: 14px 20px;
  border: 1px solid var(--ink-08);
  border-radius: 16px;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.18s ease;
}
.btn-secondary:hover { background: var(--paper-dim); }

.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px 10px 14px;
  border-radius: 14px;
  text-decoration: none;
  transition: transform 0.18s ease;
}
.appstore-badge:hover { transform: translateY(-1px); }
.appstore-badge .apple { font-size: 26px; line-height: 1; }
.appstore-badge .label { display: flex; flex-direction: column; line-height: 1.1; }
.appstore-badge .label small {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
}
.appstore-badge .label strong { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }

/* ---- Nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 247, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--ink-08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: 18px;
  line-height: 1;
  text-transform: lowercase;
  color: var(--ink);
}
.brand .icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: inline-block;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-size: 14px;
  color: var(--ink-70);
  transition: color 0.18s ease;
}
.nav-links a:hover { color: var(--ink); }
@media (max-width: 720px) { .nav-links a:not(.cta) { display: none; } }
.nav-links .cta {
  background: var(--ink);
  color: var(--paper);
  padding: 9px 16px;
  border-radius: 12px;
  font-weight: 600;
}
.nav-links .cta:hover { color: var(--paper); }

/* ---- Hero ---- */
.hero {
  padding: 80px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}
.hero h1 { margin: 18px 0 22px; }
.hero p.lead { margin-bottom: 32px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-meta {
  margin-top: 36px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-55);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta span::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); opacity: 0.5;
}

/* ---- Mascot blob ---- */
.mascot-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 560px;
  margin: 0 auto;
}
.blob {
  position: absolute;
  inset: 0;
  background: var(--accent);
  border-radius: 42% 58% 60% 40% / 50% 44% 56% 50%;
  animation: blobMorph 14s ease-in-out infinite alternate;
}
.blob.alt {
  border-radius: 56% 44% 38% 62% / 42% 60% 40% 58%;
  animation-duration: 18s;
}
@keyframes blobMorph {
  0%   { border-radius: 42% 58% 60% 40% / 50% 44% 56% 50%; transform: rotate(0deg); }
  50%  { border-radius: 58% 42% 44% 56% / 56% 50% 50% 44%; transform: rotate(6deg); }
  100% { border-radius: 48% 52% 56% 44% / 42% 58% 42% 58%; transform: rotate(-4deg); }
}
.mascot-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  z-index: 1;
  padding: 8%;
}

/* ---- Steps ---- */
.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 56px;
  max-width: 640px;
}
.section-head h2 { letter-spacing: -0.035em; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }

.step-card {
  background: var(--paper);
  border: 1px solid var(--ink-08);
  border-radius: 22px;
  padding: 28px 26px 30px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.step-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -28px rgba(15, 15, 15, 0.25);
}
.step-mascot {
  position: relative;
  aspect-ratio: 1 / 1;
  margin-bottom: 22px;
  background: var(--paper-dim);
  border-radius: 18px;
  overflow: hidden;
}
.step-mascot .blob {
  inset: 16%;
  background: var(--accent);
  animation: blobMorph 12s ease-in-out infinite alternate;
}
.step-mascot img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  padding: 14%;
  z-index: 1;
}
.step-card .eyebrow { margin-bottom: 14px; }
.step-card h3 { margin-bottom: 10px; }
.step-card p { font-size: 14px; }

/* ---- Styles cards ---- */
.styles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 1024px) { .styles-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .styles-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

.style-card {
  position: relative;
  border-radius: 16px;
  border: 1px solid var(--ink-08);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  background: var(--paper-dim);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.style-card .card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  z-index: 0;
}
.style-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 15, 15, 0.05) 0%,
    rgba(15, 15, 15, 0.20) 45%,
    rgba(15, 15, 15, 0.80) 100%
  );
  pointer-events: none;
  z-index: 1;
}
.style-card > .swatches,
.style-card > h3,
.style-card > .tagline { position: relative; z-index: 2; }
.style-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -22px rgba(15, 15, 15, 0.35);
}
.style-card:hover .card-img { transform: scale(1.06); }

.style-card .swatches {
  display: flex;
  gap: 5px;
  margin-bottom: 10px;
}
.swatch {
  width: 18px; height: 18px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.style-card h3 {
  font-size: 16px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--paper);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
.style-card .tagline {
  font-size: 12px;
  color: rgba(250, 250, 247, 0.82);
  line-height: 1.35;
  margin-top: 2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
@media (max-width: 720px) {
  .style-card { padding: 14px; aspect-ratio: 3 / 4; }
  .style-card h3 { font-size: 14px; }
  .style-card .tagline { font-size: 11px; }
  .swatch { width: 16px; height: 16px; border-radius: 4px; }
}

/* ---- Before/after slider ---- */
.demo {
  background: var(--paper-dim);
  border-radius: 28px;
  padding: 36px;
  border: 1px solid var(--ink-08);
}
@media (max-width: 720px) { .demo { padding: 22px; border-radius: 22px; } }
.slider {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  overflow: hidden;
  user-select: none;
  cursor: ew-resize;
  background: var(--ink);
}
.slider .frame {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}
.slider .frame.after {
  clip-path: inset(0 0 0 50%);
}
.slider .label {
  position: absolute;
  top: 16px;
  padding: 6px 12px;
  background: rgba(250,250,247,0.92);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--ink-08);
}
.slider .label.before { left: 16px; }
.slider .label.after { right: 16px; }
.slider .handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--paper);
  z-index: 4;
}
.slider .handle::after {
  content: 'â‡†';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 6px 20px -6px rgba(0,0,0,0.25);
}
.demo-credit {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-55);
  text-align: center;
}
.demo-credit a {
  color: var(--ink-70);
  border-bottom: 1px solid var(--ink-08);
}
.demo-credit a:hover { color: var(--ink); border-color: var(--accent); }

/* ---- Floating mascot video (sits in the gap between #demo and #styles) ---- */
.floating-mascot {
  position: relative;
  height: 0;          /* no flow space; bleeds into siblings */
  /* no z-index — don't create a stacking context, so the halo and video
     can sit at negative z-index in the root context, truly behind text */
  pointer-events: none;
}
/* Soft white halo behind the video so its near-white background lands on
   white at the center and fades to the cream page colour at the edges.
   Without this, the video's bg shows a faint rectangle against #FAFAF7. */
.floating-mascot::before {
  content: '';
  position: absolute;
  top: 0;
  right: 17%;
  /* Box is larger than the gradient itself so the explicit ellipse below
     is fully contained — beyond the ellipse the gradient extrapolates to
     fully transparent, so the box edges never show. */
  transform: translate(28%, -30%);
  width: 1200px;
  height: 1900px;
  background: radial-gradient(ellipse 480px 820px at center,
    #FFFFFF 0%,
    #FFFFFF 38%,
    rgba(255, 255, 255, 0.65) 62%,
    rgba(255, 255, 255, 0.25) 80%,
    rgba(255, 255, 255, 0) 100%);
  z-index: -2;
  pointer-events: none;
}
.floating-mascot video {
  position: absolute;
  top: 0;
  right: 17%;
  transform: translateY(-30%);
  width: 330px;
  height: 900px;
  object-fit: contain;
  mix-blend-mode: multiply;
  opacity: 0.95;
  z-index: -1;
}
@media (max-width: 1024px) {
  .floating-mascot video { width: 240px; height: 640px; right: 4%; }
  .floating-mascot::before {
    width: 720px;
    height: 1100px;
    background: radial-gradient(ellipse 320px 560px at center,
      #FFFFFF 0%,
      #FFFFFF 36%,
      rgba(255, 255, 255, 0.6) 62%,
      rgba(255, 255, 255, 0) 100%);
  }
}
@media (max-width: 720px) {
  /* On phones, slide the mascot off the right edge so it fills the
     whitespace next to the "Sixteen curated worlds." heading. */
  .floating-mascot video {
    width: 200px;
    height: 260px;
    right: -6%;
    transform: translateY(-37%);
    opacity: 0.95;
  }
  .floating-mascot::before {
    right: -6%;
    transform: translate(36%, -22%);
    width: 620px;
    height: 1000px;
    background: radial-gradient(ellipse 280px 480px at center,
      #FFFFFF 0%,
      #FFFFFF 34%,
      rgba(255, 255, 255, 0.55) 62%,
      rgba(255, 255, 255, 0) 100%);
  }
}

/* ---- Photo credits ---- */
.photo-credits {
  margin-top: 36px;
  border-top: 1px solid var(--ink-08);
  padding-top: 20px;
}
.photo-credits summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-55);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.photo-credits summary::-webkit-details-marker { display: none; }
.photo-credits summary::after {
  content: '+';
  font-size: 14px;
  color: var(--ink-40);
}
.photo-credits[open] summary::after { content: 'âˆ’'; }
.photo-credits ul {
  list-style: none;
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 28px;
  padding: 0;
}
@media (max-width: 720px) { .photo-credits ul { grid-template-columns: 1fr; } }
.photo-credits li {
  font-size: 12px;
  color: var(--ink-55);
  line-height: 1.5;
}
.photo-credits li .style {
  color: var(--ink);
  font-weight: 600;
}
.photo-credits a {
  color: var(--ink-70);
  border-bottom: 1px solid var(--ink-08);
  transition: color 0.18s ease, border-color 0.18s ease;
}
.photo-credits a:hover {
  color: var(--ink);
  border-color: var(--accent);
}

/* ---- Pricing (ink background) ---- */
.pricing {
  background: var(--ink);
  color: var(--paper);
}
.pricing h2 { color: var(--paper); }
.pricing p { color: rgba(250,250,247,0.65); }
.pricing .eyebrow {
  background: rgba(250,250,247,0.06);
  border-color: rgba(250,250,247,0.1);
  color: rgba(250,250,247,0.7);
}
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 880px) { .plans { grid-template-columns: 1fr; } }
.plan {
  background: rgba(250,250,247,0.04);
  border: 1px solid rgba(250,250,247,0.1);
  border-radius: 22px;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.plan.featured {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--accent);
}
.plan.featured h3, .plan.featured .price { color: var(--ink); }
.plan.featured .meta { color: var(--ink-55); }
.plan.featured ul li { color: var(--ink-70); }
.plan .badge {
  position: absolute;
  top: -12px; right: 22px;
  background: var(--accent);
  color: var(--ink);
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  font-weight: 600;
}
.plan h3 { color: var(--paper); }
.plan .price {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--paper);
}
.plan .price small {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  margin-left: 4px;
  opacity: 0.6;
}
.plan .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250,250,247,0.55);
}
.plan ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}
.plan ul li {
  display: flex; gap: 10px;
  color: rgba(250,250,247,0.8);
}
.plan ul li::before { content: 'âœ“'; color: var(--accent); }
.plan .plan-cta {
  margin-top: auto;
  background: var(--paper);
  color: var(--ink);
  border-radius: 14px;
  padding: 13px 16px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
}
.plan.featured .plan-cta { background: var(--ink); color: var(--paper); }

/* ---- FAQ ---- */
.faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq details {
  background: var(--paper);
  border: 1px solid var(--ink-08);
  border-radius: 18px;
  padding: 18px 22px;
  transition: background 0.18s ease;
}
.faq details[open] { background: var(--paper-dim); }
.faq summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: 22px;
  color: var(--ink-55);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { content: 'âˆ’'; }
.faq p {
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink-70);
  max-width: 64ch;
}

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--ink-08);
  padding: 48px 0 56px;
  background: var(--paper);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
.footer .mono { color: var(--ink-55); }
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-70);
  transition: color 0.18s ease;
}
.footer-links a:hover { color: var(--ink); }

/* ---- Legal pages ---- */
.legal {
  padding: 64px 0 96px;
}
.legal h1 {
  font-size: clamp(34px, 4.4vw, 52px);
  margin-bottom: 12px;
}
.legal .updated {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-55);
  margin-bottom: 48px;
}
.legal h2 {
  font-size: 22px;
  margin: 40px 0 14px;
  letter-spacing: -0.02em;
}
.legal h3 {
  font-size: 16px;
  margin: 28px 0 10px;
}
.legal p, .legal li {
  color: var(--ink-70);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 12px;
}
.legal ul { padding-left: 22px; margin-bottom: 16px; }
.legal li { margin-bottom: 6px; }
.legal a {
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  font-weight: 500;
}

/* ---- Reveal on scroll (very light) ---- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
