/* Morphtown — Marketing Splash Page
 * Storybook & whimsical: thick black outlines, warm ochre paper, purple accent
 * Type: Fredoka (display) + Inter (body) — matches in-app prototype
 */

:root {
  /* Ink + paper */
  --ink: #1a1527;
  --ink-soft: #3a3550;
  --paper: #fff8ec; /* warm cream, like the signboard background */
  --paper-2: #ffeeca; /* slightly deeper cream for section bands */
  --paper-3: #f7e1b6; /* deepest warm tone */

  /* Brand */
  --purple: #534ab7;
  --purple-dk: #3a2ea0;
  --purple-lt: #ece9ff;

  /* Storybook accents */
  --ochre: #d8932a;
  --ochre-dk: #a86c0e;
  --terracotta: #c8553d;
  --teal: #2d8a8a;
  --sky: #a8d4e8;
  --sky-deep: #5a9bbd;

  /* Effects */
  --shadow-card: 0 8px 0 var(--ink), 0 12px 24px rgba(26, 21, 39, 0.18);
  --shadow-card-hover: 0 10px 0 var(--ink), 0 18px 32px rgba(26, 21, 39, 0.22);
  --shadow-soft: 0 4px 14px rgba(26, 21, 39, 0.12);
  --outline: 3px solid var(--ink);
  --outline-thin: 2px solid var(--ink);
}

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

html,
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.display {
  font-family: 'Fredoka', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.05;
  text-wrap: balance;
}

a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
}

/* ----- Page chrome ----- */
.page {
  min-height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
}

/* ----- Subtle paper noise/dot bg layer ----- */
.paper-bg {
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(216, 147, 42, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 60%, rgba(83, 74, 183, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(200, 85, 61, 0.05) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

.page > * {
  position: relative;
  z-index: 1;
}

/* ============ NAV ============ */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 40px;
  max-width: 1280px;
  margin: 0 auto;
}
.nav .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Fredoka', system-ui, sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.nav .brand .morphy-mark {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
  font-size: 15px;
  font-weight: 500;
}
.nav ul a:hover {
  color: var(--purple);
}
.nav .nav-cta {
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  border: 2px solid var(--ink);
  transition:
    transform 0.15s,
    background 0.15s;
}
.nav .nav-cta:hover {
  background: var(--purple);
  border-color: var(--purple);
  transform: translateY(-1px);
}

@media (max-width: 720px) {
  .nav {
    padding: 16px 20px;
  }
  .nav ul {
    display: none;
  }
}

/* ============ HERO ============ */
.hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 40px 80px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 24px 24px 60px;
    gap: 40px;
  }
}

.hero-copy {
  position: relative;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--paper-2);
  border: var(--outline-thin);
  border-radius: 999px;
  padding: 6px 14px 6px 8px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  box-shadow: 0 3px 0 var(--ink);
}
.hero-eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(200, 85, 61, 0.25);
  animation: dot-pulse 1.6s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(200, 85, 61, 0.2);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(200, 85, 61, 0.05);
  }
}

.hero h1 {
  font-size: clamp(48px, 7vw, 88px);
  margin-bottom: 24px;
}
.hero h1 .swap {
  position: relative;
  display: inline-block;
  color: var(--purple);
  background: var(--purple-lt);
  padding: 0 12px;
  border-radius: 12px;
  border: 3px solid var(--purple);
  transform: rotate(-1deg);
  box-shadow: 0 4px 0 var(--purple-dk);
}
.hero h1 .swap::after {
  content: '';
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -6px;
  height: 4px;
  background: var(--purple);
  opacity: 0;
}

.hero-sub {
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 36px;
}

/* ----- Email form ----- */
.email-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 540px;
}
.email-row {
  display: flex;
  gap: 0;
  background: #fff;
  border: var(--outline);
  border-radius: 14px;
  padding: 6px;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s;
}
.email-row:focus-within {
  transform: translateY(-2px);
}
.email-row input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 14px 16px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  min-width: 0;
}
.email-row input::placeholder {
  color: #9b95a8;
}
.email-row .submit {
  background: var(--purple);
  color: #fff;
  padding: 14px 22px;
  border-radius: 9px;
  font-weight: 700;
  font-size: 15px;
  font-family: 'Fredoka', system-ui, sans-serif;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition:
    background 0.15s,
    transform 0.1s;
  box-shadow: 0 3px 0 var(--purple-dk);
  white-space: nowrap;
}
.email-row .submit:hover {
  background: var(--purple-dk);
}
.email-row .submit:active {
  transform: translateY(2px);
  box-shadow: 0 0 0 var(--purple-dk);
}

.beta-toggle {
  display: flex;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-soft);
  margin-left: 4px;
  flex-wrap: wrap;
}
.beta-toggle label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1.5px solid #d4c9b3;
  background: #fff;
  font-weight: 500;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.beta-toggle label.active {
  border-color: var(--ink);
  background: var(--paper-2);
  color: var(--ink);
  font-weight: 600;
}
.beta-toggle input {
  accent-color: var(--purple);
}

.form-meta {
  font-size: 12px;
  color: #837a92;
  margin-left: 4px;
}

/* Form success state */
.form-success {
  background: #fff;
  border: var(--outline);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 540px;
}
.form-success .check {
  width: 38px;
  height: 38px;
  background: #2d8a5a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  flex-shrink: 0;
  border: 2px solid var(--ink);
}
.form-success p {
  font-weight: 600;
}
.form-success .small {
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 400;
}

/* ----- Hero collage ----- */
.hero-collage {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
}
.hero-collage .tile {
  position: absolute;
  border-radius: 18px;
  border: var(--outline);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.2, 1.2, 0.4, 1);
}
.hero-collage .tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-collage .tile:hover {
  transform: translateY(-6px) rotate(0deg) !important;
  z-index: 5;
}

.hero-collage .tile.t1 {
  width: 58%;
  height: 58%;
  top: 0;
  left: 0;
  transform: rotate(-4deg);
  z-index: 2;
}
.hero-collage .tile.t2 {
  width: 50%;
  height: 50%;
  top: 8%;
  right: 0;
  transform: rotate(3deg);
  z-index: 1;
}
.hero-collage .tile.t3 {
  width: 52%;
  height: 52%;
  bottom: 0;
  left: 8%;
  transform: rotate(2deg);
  z-index: 3;
}
.hero-collage .tile.t4 {
  width: 44%;
  height: 44%;
  bottom: 4%;
  right: 4%;
  transform: rotate(-3deg);
  z-index: 4;
}

.hero-collage .tile .tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  font-family: 'Fredoka', system-ui, sans-serif;
  text-align: center;
  color: var(--ink);
  letter-spacing: 0.02em;
}

/* Floating Morphy in hero */
.hero-morphy {
  position: absolute;
  width: 200px;
  bottom: -40px;
  left: -60px;
  z-index: 10;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.28));
  animation: morphy-float 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes morphy-float {
  0%,
  100% {
    transform: translateY(0) rotate(-4deg);
  }
  50% {
    transform: translateY(-10px) rotate(3deg);
  }
}
@media (max-width: 980px) {
  .hero-morphy {
    display: none;
  }
}

/* Hero variant: signboard */
.hero-signboard {
  background: url('assets/screen-signboard.jpg') center/cover no-repeat;
  border: var(--outline);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  aspect-ratio: 9 / 16;
  max-width: 360px;
  margin: 0 auto;
  position: relative;
}

/* Hero variant: single morph */
.hero-single {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
}
.hero-single .single-img {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  border: var(--outline);
  box-shadow: var(--shadow-card);
  background-size: cover;
  background-position: center;
  transform: rotate(-1.5deg);
}
.hero-single .stamp {
  position: absolute;
  top: -16px;
  right: -16px;
  background: var(--terracotta);
  color: #fff;
  border: var(--outline);
  border-radius: 999px;
  padding: 8px 18px;
  font-family: 'Fredoka', system-ui, sans-serif;
  font-weight: 700;
  font-size: 14px;
  transform: rotate(8deg);
  box-shadow: 0 4px 0 var(--ink);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ============ SECTION SHELL ============ */
.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 40px;
}
@media (max-width: 720px) {
  .section {
    padding: 60px 24px;
  }
}

.section-band {
  background: var(--paper-2);
  border-top: var(--outline);
  border-bottom: var(--outline);
}
.section-band-deep {
  background: var(--ink);
  color: var(--paper);
}

.section-head {
  text-align: center;
  margin-bottom: 56px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.kicker {
  font-family: 'Fredoka', system-ui, sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 14px;
}
.section-band-deep .kicker {
  color: var(--ochre);
}
.section-head h2 {
  font-size: clamp(36px, 5vw, 56px);
  margin-bottom: 16px;
}
.section-head p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 580px;
  margin: 0 auto;
}
.section-band-deep .section-head p {
  color: rgba(255, 248, 236, 0.75);
}

/* ============ HOW IT WORKS ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: start;
}
.steps.two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 820px;
  margin: 0 auto;
  gap: 48px;
}
@media (max-width: 880px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.step {
  text-align: center;
  position: relative;
}
.step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--paper);
  border: var(--outline);
  font-family: 'Fredoka', system-ui, sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
  margin: 0 auto 20px;
  box-shadow: 0 3px 0 var(--ink);
}
.step .phone-frame {
  width: 220px;
  margin: 0 auto 24px;
  background: var(--ink);
  border-radius: 36px;
  padding: 8px;
  border: var(--outline);
  box-shadow: var(--shadow-card);
  transform: rotate(-2deg);
  transition: transform 0.3s;
}
.step:nth-child(2) .phone-frame {
  transform: rotate(1.5deg);
}
.step:nth-child(3) .phone-frame {
  transform: rotate(-1deg);
}
.step:hover .phone-frame {
  transform: rotate(0deg) translateY(-6px);
}
.step .phone-screen {
  display: block;
  width: 100%;
  border-radius: 28px;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: center top;
}
.step h3 {
  font-size: 26px;
  margin-bottom: 10px;
}
.step p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 280px;
  margin: 0 auto;
}
.step-trust {
  font-size: 12px;
  color: var(--teal);
  font-weight: 600;
  margin-top: 8px !important;
}

/* ============ FEATURED SHOPS ============ */
.shops-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 980px) {
  .shops-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .shops-grid {
    grid-template-columns: 1fr;
  }
}

.shop-card {
  background: #fff;
  border: var(--outline);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.shop-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
.shop-card .shop-img {
  aspect-ratio: 1 / 1;
  border-bottom: var(--outline);
  position: relative;
  overflow: hidden;
}
.shop-card .shop-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.shop-card .shop-img .badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 4px 12px;
  font-family: 'Fredoka', system-ui, sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 2px 0 var(--ink);
}
.shop-card .shop-body {
  padding: 22px;
}
.shop-card h3 {
  font-size: 26px;
  margin-bottom: 8px;
}
.shop-card p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.shop-card .shop-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.shop-card .shop-tag-list span {
  background: var(--paper-2);
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 600;
  font-family: 'Fredoka', system-ui, sans-serif;
}

/* All shops strip below the featured */
.shops-strip {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
}
.shops-strip .pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  border: var(--outline-thin);
  border-radius: 999px;
  padding: 8px 16px;
  font-family: 'Fredoka', system-ui, sans-serif;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 2px 0 var(--ink);
}
.shops-strip .pill .ic {
  font-size: 16px;
}
.shops-strip .pill .ic-img {
  width: 28px;
  height: 28px;
  display: block;
  object-fit: contain;
  margin: -4px 0;
}
.shops-strip .pill.coming {
  opacity: 0.6;
  background: transparent;
}
.shops-strip .pill.coming::after {
  content: 'soon';
  background: var(--ochre);
  color: #fff;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  letter-spacing: 0.04em;
  margin-left: 4px;
}

/* ============ MORPH GALLERY ============ */
.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 140px;
  grid-auto-flow: row dense;
  gap: 14px;
}
@media (max-width: 980px) {
  .gallery {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 120px;
  }
}
@media (max-width: 640px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }
}

.gallery-item {
  border-radius: 16px;
  border: var(--outline-thin);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s;
}
.gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-item:hover {
  transform: scale(1.03);
  z-index: 3;
}
.gallery-item .cap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0));
  color: #fff;
  padding: 18px 12px 10px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Fredoka', system-ui, sans-serif;
  opacity: 0;
  transition: opacity 0.2s;
}
.gallery-item:hover .cap {
  opacity: 1;
}

/* Span configurations for variety */
.gallery-item.tall {
  grid-row: span 2;
}
.gallery-item.wide {
  grid-column: span 2;
}
.gallery-item.big {
  grid-column: span 2;
  grid-row: span 2;
}

/* ============ BEFORE/AFTER ============ */
.ba-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 880px) {
  .ba-block {
    grid-template-columns: 1fr;
  }
  .ba-copy {
    order: -1;
  }
}

.ba-pair {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ba-img {
  flex: 1 1 0;
  border-radius: 18px;
  border: var(--outline);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  min-width: 0;
  max-width: 220px;
  aspect-ratio: 1 / 1;
}
.ba-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ba-img .ba-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 3px 12px;
  font-family: 'Fredoka', system-ui, sans-serif;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ba-img.placeholder {
  background: repeating-linear-gradient(45deg, #e8d6b8, #e8d6b8 10px, #ddc7a3 10px, #ddc7a3 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 11px;
  text-align: center;
  padding: 20px;
  font-weight: 500;
  line-height: 1.4;
}
.ba-arrow {
  font-family: 'Fredoka', system-ui, sans-serif;
  font-size: 28px;
  color: var(--purple);
  flex-shrink: 0;
  font-weight: 700;
}

.ba-copy h3 {
  font-size: 36px;
  margin-bottom: 16px;
}
.ba-copy p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.ba-copy .ba-quote {
  font-family: 'Fredoka', system-ui, sans-serif;
  font-style: italic;
  font-size: 16px;
  color: var(--ink);
  border-left: 3px solid var(--purple);
  padding: 4px 0 4px 16px;
  margin-top: 14px;
}

/* ============ MORPHY GUIDE STRIP ============ */
.guide-strip {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--paper);
  border: var(--outline);
  border-radius: 28px;
  padding: 28px 32px;
  box-shadow: var(--shadow-card);
  margin: 60px auto 0;
  max-width: 720px;
}
.guide-strip .morphy {
  width: 120px;
  height: 120px;
  object-fit: contain;
  flex-shrink: 0;
  animation: morphy-bob 3.2s ease-in-out infinite;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.18));
}
@keyframes morphy-bob {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-4px) rotate(2deg);
  }
}
.guide-strip .speech {
  font-family: 'Fredoka', system-ui, sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.4;
}
.guide-strip .speech .small {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 4px;
}
@media (max-width: 640px) {
  .guide-strip {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }
}

/* ============ FINAL BETA CTA ============ */
.beta-cta {
  background: var(--ink);
  color: var(--paper);
  border-radius: 32px;
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: var(--outline);
  box-shadow:
    0 12px 0 #0a0716,
    0 22px 40px rgba(0, 0, 0, 0.3);
}
.beta-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(83, 74, 183, 0.4) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(216, 147, 42, 0.3) 0%, transparent 50%);
  pointer-events: none;
}
.beta-cta > * {
  position: relative;
}
.beta-cta h2 {
  font-size: clamp(36px, 5vw, 56px);
  margin-bottom: 16px;
}
.beta-cta .sub {
  font-size: 18px;
  line-height: 1.5;
  opacity: 0.85;
  max-width: 540px;
  margin: 0 auto 36px;
}
.beta-cta .form-wrap {
  max-width: 540px;
  margin: 0 auto;
}
.beta-cta .form-wrap .email-row {
  background: var(--paper);
}
.beta-cta .form-wrap .beta-toggle {
  color: rgba(255, 248, 236, 0.7);
  justify-content: center;
}
.beta-cta .form-wrap .beta-toggle label {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 248, 236, 0.25);
  color: var(--paper);
}
.beta-cta .form-wrap .beta-toggle label.active {
  background: var(--ochre);
  border-color: var(--ochre);
  color: var(--ink);
}
.beta-cta .form-wrap .form-meta {
  color: rgba(255, 248, 236, 0.55);
}

.beta-cta .platform-badges {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 36px;
  flex-wrap: wrap;
}
.beta-cta .platform-badges .badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 248, 236, 0.3);
  border-radius: 14px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 248, 236, 0.85);
}
.beta-cta .platform-badges .badge .glyph {
  font-size: 22px;
}
.beta-cta .platform-badges .badge .small {
  display: block;
  font-size: 10px;
  opacity: 0.7;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.beta-cta .platform-badges .badge .big {
  font-family: 'Fredoka', system-ui, sans-serif;
  font-weight: 600;
  font-size: 14px;
}

.beta-sign {
  position: absolute;
  left: 5%;
  top: 65%;
  transform: translateY(-50%);
  width: 150px;
  pointer-events: none;
  z-index: 1;
}
@media (max-width: 1000px) {
  .beta-sign {
    display: none;
  }
}

/* ============ FOOTER ============ */
footer {
  background: var(--paper);
  border-top: var(--outline-thin);
  padding: 40px 40px 32px;
  margin-top: 0;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-inner .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fredoka', system-ui, sans-serif;
  font-weight: 700;
  font-size: 18px;
}
.footer-inner .brand .morphy-mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.footer-inner ul {
  display: flex;
  gap: 24px;
  list-style: none;
  font-size: 14px;
  color: var(--ink-soft);
}
.footer-inner ul a:hover {
  color: var(--purple);
}
.footer-inner .copy {
  font-size: 13px;
  color: #837a92;
}
@media (max-width: 720px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ============ MOBILE PASS (≤ 640px) ============ */
@media (max-width: 640px) {
  .hero {
    padding: 16px 20px 48px;
    gap: 32px;
  }
  .hero h1 {
    font-size: clamp(40px, 11vw, 56px);
    margin-bottom: 18px;
  }
  .hero-sub {
    font-size: 16px;
    margin-bottom: 28px;
  }
  .hero-eyebrow {
    font-size: 12px;
    padding: 5px 12px 5px 8px;
  }

  /* Stack input above button */
  .email-row {
    flex-direction: column;
    padding: 8px;
    gap: 8px;
  }
  .email-row input {
    padding: 12px 8px;
  }
  .email-row .submit {
    width: 100%;
    padding: 14px 18px;
    justify-content: center;
  }
  .beta-toggle {
    gap: 8px;
  }
  .beta-toggle label {
    padding: 6px 10px;
    font-size: 12px;
  }

  /* Section spacing */
  .section {
    padding: 48px 20px;
  }
  .section-head {
    margin-bottom: 36px;
  }
  .section-head h2 {
    font-size: clamp(30px, 8vw, 40px);
  }
  .section-head p {
    font-size: 15px;
  }

  /* Steps — shrink phones, drop rotation */
  .step .phone-frame {
    width: 200px;
    transform: none !important;
    padding: 6px;
  }
  .step h3 {
    font-size: 22px;
  }

  /* Shops */
  .shop-card .shop-body {
    padding: 18px;
  }
  .shop-card h3 {
    font-size: 22px;
  }
  .shops-strip {
    gap: 8px;
    margin-top: 32px;
  }
  .shops-strip .pill {
    padding: 6px 12px;
    font-size: 13px;
  }
  .shops-strip .pill .ic-img {
    width: 22px;
    height: 22px;
  }

  /* Before/after — stack the panels vertically when very narrow */
  .ba-pair {
    flex-direction: column;
    gap: 14px;
  }
  .ba-img {
    flex: none;
    max-width: 280px;
    width: 100%;
  }
  .ba-arrow {
    transform: rotate(90deg);
    font-size: 24px;
  }
  .ba-copy h3 {
    font-size: 28px;
  }
  .ba-copy p {
    font-size: 15px;
  }

  /* Guide strip */
  .guide-strip {
    padding: 22px;
    margin-top: 40px;
  }
  .guide-strip .morphy {
    width: 90px;
    height: 90px;
  }
  .guide-strip .speech {
    font-size: 16px;
  }

  /* Beta CTA */
  .beta-cta {
    padding: 40px 24px;
    border-radius: 22px;
  }
  .beta-cta h2 {
    font-size: clamp(28px, 8vw, 38px);
  }
  .beta-cta .sub {
    font-size: 15px;
    margin-bottom: 28px;
  }
  .beta-cta .platform-badges {
    gap: 8px;
    margin-top: 28px;
  }
  .beta-cta .platform-badges .badge {
    padding: 8px 14px;
    font-size: 13px;
  }

  /* Footer */
  footer {
    padding: 32px 20px 24px;
  }
  .footer-inner ul {
    gap: 14px 20px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 13px;
  }

  /* Hero collage — keep visible but smaller */
  .hero-collage {
    max-width: 360px;
  }

  /* Hero single stamp — fits better */
  .hero-single .stamp {
    font-size: 12px;
    padding: 6px 14px;
    top: -10px;
    right: -8px;
  }
}

/* ≤ 420px — tightest phones */
@media (max-width: 420px) {
  .nav {
    padding: 14px 16px;
  }
  .nav .brand {
    font-size: 18px;
  }
  .nav .brand .morphy-mark {
    width: 38px;
    height: 38px;
  }
  .nav .nav-cta {
    padding: 8px 14px;
    font-size: 13px;
  }

  .hero h1 .swap {
    padding: 0 8px;
  }
  .step .phone-frame {
    width: 180px;
  }
  .step .step-num {
    width: 38px;
    height: 38px;
    font-size: 17px;
  }

  /* Gallery: keep 2 cols but smaller rows */
  .gallery {
    grid-auto-rows: 130px;
    gap: 10px;
  }
}

/* ============ VIEWPORT SIMULATOR ============ */
body.sim-mobile {
  background: #2a2444;
  padding: 20px 0;
  min-height: 100vh;
}
body.sim-mobile #app {
  width: 390px;
  max-width: 100%;
  margin: 0 auto;
  background: var(--paper);
  border: 12px solid #1a1527;
  border-radius: 44px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  /* Force any descendant viewport-width media queries to behave as if the
     viewport were the simulated width. We approximate by setting
     container-type, but for media-queries we need actual viewport — so we
     force-apply the mobile styles inside this scope. */
}
/* Force all the mobile rules on inside .sim-mobile, regardless of real viewport */
body.sim-mobile .nav {
  padding: 16px 20px;
}
body.sim-mobile .nav ul {
  display: none;
}
body.sim-mobile .hero {
  grid-template-columns: 1fr;
  padding: 16px 20px 48px;
  gap: 32px;
}
body.sim-mobile .hero h1 {
  font-size: 44px;
  margin-bottom: 18px;
}
body.sim-mobile .hero-sub {
  font-size: 16px;
  margin-bottom: 28px;
}
body.sim-mobile .hero-eyebrow {
  font-size: 12px;
  padding: 5px 12px 5px 8px;
}
body.sim-mobile .hero-morphy {
  display: none;
}
body.sim-mobile .hero-collage {
  max-width: 320px;
}
body.sim-mobile .email-row {
  flex-direction: column;
  padding: 8px;
  gap: 8px;
}
body.sim-mobile .email-row input {
  padding: 12px 8px;
}
body.sim-mobile .email-row .submit {
  width: 100%;
  padding: 14px 18px;
  justify-content: center;
}
body.sim-mobile .beta-toggle {
  gap: 8px;
}
body.sim-mobile .beta-toggle label {
  padding: 6px 10px;
  font-size: 12px;
}
body.sim-mobile .section {
  padding: 48px 20px;
}
body.sim-mobile .section-head {
  margin-bottom: 36px;
}
body.sim-mobile .section-head h2 {
  font-size: 32px;
}
body.sim-mobile .section-head p {
  font-size: 15px;
}
body.sim-mobile .steps {
  grid-template-columns: 1fr;
  gap: 48px;
}
body.sim-mobile .step .phone-frame {
  width: 200px;
  transform: none !important;
  padding: 6px;
}
body.sim-mobile .step h3 {
  font-size: 22px;
}
body.sim-mobile .shops-grid {
  grid-template-columns: 1fr;
}
body.sim-mobile .shop-card .shop-body {
  padding: 18px;
}
body.sim-mobile .shop-card h3 {
  font-size: 22px;
}
body.sim-mobile .shops-strip {
  gap: 8px;
  margin-top: 32px;
}
body.sim-mobile .shops-strip .pill {
  padding: 6px 12px;
  font-size: 13px;
}
body.sim-mobile .shops-strip .pill .ic-img {
  width: 22px;
  height: 22px;
}
body.sim-mobile .gallery {
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 140px;
  gap: 10px;
}
body.sim-mobile .ba-block {
  grid-template-columns: 1fr;
}
body.sim-mobile .ba-copy {
  order: -1;
}
body.sim-mobile .ba-pair {
  flex-direction: column;
  gap: 14px;
}
body.sim-mobile .ba-img {
  flex: none;
  max-width: 280px;
  width: 100%;
}
body.sim-mobile .ba-arrow {
  transform: rotate(90deg);
  font-size: 24px;
}
body.sim-mobile .ba-copy h3 {
  font-size: 28px;
}
body.sim-mobile .ba-copy p {
  font-size: 15px;
}
body.sim-mobile .guide-strip {
  flex-direction: column;
  text-align: center;
  padding: 22px;
  margin-top: 40px;
}
body.sim-mobile .guide-strip .morphy {
  width: 90px;
  height: 90px;
}
body.sim-mobile .guide-strip .speech {
  font-size: 16px;
}
body.sim-mobile .beta-cta {
  padding: 40px 24px;
  border-radius: 22px;
}
body.sim-mobile .beta-cta h2 {
  font-size: 32px;
}
body.sim-mobile .beta-cta .sub {
  font-size: 15px;
  margin-bottom: 28px;
}
body.sim-mobile .beta-cta .platform-badges {
  gap: 8px;
  margin-top: 28px;
}
body.sim-mobile .beta-cta .platform-badges .badge {
  padding: 8px 14px;
  font-size: 13px;
}
body.sim-mobile footer {
  padding: 32px 20px 24px;
}
body.sim-mobile .footer-inner {
  flex-direction: column;
  text-align: center;
}
body.sim-mobile .footer-inner ul {
  gap: 14px 20px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 13px;
}

/* ============ THEME VARIANTS (tweaks) ============ */
.theme-night {
  --paper: #1f1a30;
  --paper-2: #2a2444;
  --paper-3: #3a3258;
  --ink: #fff8ec;
  --ink-soft: #c9c2d6;
  --purple-lt: #3a3170;
}
.theme-night .nav .nav-cta {
  background: var(--ochre);
  border-color: var(--ochre);
  color: var(--ink);
}
.theme-night .form-success .check {
  background: #5fbf85;
}
.theme-night footer {
  background: var(--paper);
}
.theme-night .step .phone-frame {
  background: #fff;
}

.theme-mint {
  --purple: #2d8a8a;
  --purple-dk: #1c5c5c;
  --purple-lt: #d8efef;
  --paper-2: #fff1d4;
}

.theme-coral {
  --purple: #c8553d;
  --purple-dk: #8e3624;
  --purple-lt: #fde0d8;
  --paper-2: #fff0db;
}
