/* Prototype-specific styles for Simon+ × Malachyte demo */

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #F4F2EC;
  min-height: 100vh;
}

/* ============================================================
   Simon+ chrome — recreates the real site shell so each step
   feels like a real Simon+ page (black nav, yellow banner, etc)
   ============================================================ */
.sp-utility {
  background: #F5F5F5;
  border-bottom: 1px solid #E5E5E5;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #000;
  padding: 8px 32px;
  display: flex;
  justify-content: space-between;
  text-transform: uppercase;
  font-weight: 500;
}
.sp-utility a { color: #000; text-decoration: none; margin-left: 20px; }
.sp-utility a.active { font-weight: 700; border-bottom: 1.5px solid #000; padding-bottom: 2px; }

.sp-header {
  background: #fff;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #E5E5E5;
}
.sp-logo {
  font-family: 'Times New Roman', serif;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 0.08em;
  color: #000;
}
.sp-logo .plus { color: #000; font-weight: 400; }

.sp-nav-black {
  background: #000;
  color: #fff;
  padding: 0 32px;
  display: flex;
  gap: 32px;
  font-size: 13px;
  font-weight: 500;
}
.sp-nav-black a {
  color: #fff;
  text-decoration: none;
  padding: 16px 4px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}
.sp-nav-black a.active { border-bottom-color: #fff; }

.sp-yellow-banner {
  background: #FCE300;
  color: #000;
  padding: 12px 32px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
}
.sp-yellow-banner strong { font-size: 16px; }

.sp-progress {
  display: flex;
  gap: 4px;
  padding: 0 32px 0;
  margin-top: -1px;
}
.sp-progress-bar {
  flex: 1;
  height: 4px;
  background: #D1D1D1;
}
.sp-progress-bar.done { background: #A51C5C; }
.sp-progress-bar.active {
  background: linear-gradient(90deg, #A51C5C 60%, #D1D1D1 60%);
}

/* ============================================================
   Malachyte watermark — subtle "powered by" ribbon on
   the personalized screens so the pitch lands visually
   ============================================================ */
.mal-ribbon {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: var(--c-charcoal);
  color: var(--fg-inverse);
  padding: 10px 16px;
  border-radius: var(--r-pill);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 50;
  box-shadow: var(--shadow-lg);
  font-family: var(--font-sans);
}
.mal-ribbon .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-lime-hivis);
  box-shadow: 0 0 0 4px rgba(173, 239, 155, 0.25);
  animation: pulse 2s var(--ease-in-out) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.mal-ribbon .mal-logo-mark {
  width: 18px; height: 18px;
  display: inline-block;
}

/* ============================================================
   Step-specific layouts
   ============================================================ */
.step-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 32px 80px;
  font-family: var(--font-sans);
}
.step-title {
  font-family: 'Times New Roman', serif;
  color: #A51C5C;
  font-size: 28px;
  font-weight: 600;
  text-align: center;
  margin: 0 0 8px;
}
.step-sub {
  text-align: center;
  color: #333;
  font-size: 15px;
  max-width: 640px;
  margin: 0 auto 32px;
}

/* Location / mall cards */
.mall-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 560px;
  margin: 0 auto 32px;
}
.mall-card {
  background: #fff;
  border: 1.5px solid #D1D1D1;
  border-radius: 8px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all var(--dur-normal) var(--ease-out);
}
.mall-card:hover { border-color: #888; }
.mall-card.selected {
  border-color: var(--c-malachyte);
  background: var(--bg-accent-soft);
  box-shadow: var(--shadow-glow);
}
.mall-card .radio {
  width: 20px; height: 20px;
  border: 2px solid #999;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  transition: all var(--dur-normal);
}
.mall-card.selected .radio {
  border-color: var(--c-malachyte);
}
.mall-card.selected .radio::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--c-malachyte);
}
.mall-card .name { font-weight: 600; font-size: 15px; color: #000; }
.mall-card .sub { color: var(--fg-muted); font-size: 13px; margin-top: 2px; }

.zip-input-row {
  display: flex;
  gap: 8px;
  max-width: 560px;
  margin: 0 auto 24px;
  align-items: flex-end;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.field label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  font-weight: 500;
}
.field input, .field select {
  border: 1.5px solid #C8C3BA;
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  outline: none;
  color: #000;
  transition: all var(--dur-normal);
}
.field input:focus, .field select:focus {
  border-color: var(--c-malachyte);
  box-shadow: var(--shadow-glow);
}

/* Brand grid */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}
@media (max-width: 900px) { .brand-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px) { .brand-grid { grid-template-columns: repeat(3, 1fr); } }

.brand-tile {
  aspect-ratio: 1;
  background: #F6F4F0;
  border: 1.5px solid transparent;
  border-radius: 6px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--dur-normal) var(--ease-out);
  padding: 18px;
}
.brand-tile:hover { border-color: #BBB; }
.brand-tile img {
  max-width: 85%;
  max-height: 70%;
  object-fit: contain;
  transition: transform var(--dur-normal);
}
.brand-tile.selected {
  border-color: var(--c-malachyte);
  background: var(--bg-accent-soft);
}
.brand-tile.selected img { transform: scale(1.04); }

.heart-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #E5E5E5;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #888;
  transition: all var(--dur-fast);
}
.brand-tile.selected .heart-btn {
  background: var(--c-malachyte);
  color: #fff;
  border-color: var(--c-malachyte);
}

.mal-badge-on-tile {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: var(--c-charcoal);
  color: var(--c-lime-hivis);
  font-size: 9px;
  padding: 3px 6px;
  border-radius: 3px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transition: opacity var(--dur-normal);
}
.brand-tile.similar .mal-badge-on-tile { opacity: 1; }

/* Similar badge ring */
.brand-tile.similar {
  border-color: var(--c-lavender);
  background: #FBFAFF;
}

/* Account form */
.account-form {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.account-form .row { display: flex; gap: 12px; }
.account-form .row .field { flex: 1; }
.pw-check { display: flex; align-items: center; gap: 6px; color: var(--c-malachyte); font-size: 13px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 2px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  border: none;
  transition: all var(--dur-normal) var(--ease-out);
}
.btn-primary { background: #555; color: #fff; }
.btn-primary:hover:not(:disabled) { background: #222; }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-mal { background: var(--c-malachyte); color: #fff; }
.btn-mal:hover { background: var(--c-malachyte-dark); }
.btn-ghost { background: transparent; color: #000; border: 1.5px solid #000; }
.btn-ghost:hover { background: #000; color: #fff; }

.cta-row { display: flex; justify-content: center; gap: 12px; margin-top: 20px; }

.step-hint {
  margin: 0 auto;
  padding: 14px 18px;
  background: var(--bg-accent-soft);
  border-left: 3px solid var(--c-malachyte);
  border-radius: 0 8px 8px 0;
  max-width: 820px;
  font-size: 13px;
  color: var(--c-malachyte-dark);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 28px;
}
.step-hint strong { color: var(--c-malachyte); letter-spacing: 0.06em; text-transform: uppercase; font-size: 11px; }

/* ============================================================
   Homepage (step 5) — dashboard layout
   ============================================================ */
.home-root { background: #fff; min-height: 100vh; }

.home-hero {
  background: #2B2B2B;
  color: #fff;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.home-hero .title {
  font-family: 'Times New Roman', serif;
  color: #FCE300;
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 6px;
}
.home-hero p { color: #D8D8D8; font-size: 13px; margin: 0; max-width: 420px; }

/* For You header with Malachyte personalization indicator */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 32px;
  margin: 32px 0 16px;
}
.section-head h3 {
  font-size: 18px;
  font-weight: 600;
  color: #000;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.personalized-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--c-charcoal);
  color: var(--c-lime-hivis);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-sans);
}
.personalized-chip::before {
  content: '✦';
  font-size: 11px;
}
.view-all {
  font-size: 12px;
  color: #000;
  text-decoration: underline;
  cursor: pointer;
}

.offer-row, .brand-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  padding: 0 32px;
  margin-bottom: 8px;
}
@media (max-width: 900px) { .offer-row, .brand-row { grid-template-columns: repeat(3, 1fr); } }

.offer-card {
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.offer-card .logo-box {
  aspect-ratio: 1;
  background: #F6F4F0;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
}
.offer-card .logo-box img { max-width: 80%; max-height: 70%; object-fit: contain; }
.offer-card .brand-name {
  font-size: 13px;
  font-weight: 700;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.offer-card .offer-copy {
  font-size: 13px;
  color: #A51C5C;
  font-weight: 600;
}
.offer-card .expiry { font-size: 11px; color: #888; }

/* Why-this panel (hover reveals the Malachyte reasoning) */
.why-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(6, 23, 31, 0.9);
  color: var(--c-lime-hivis);
  font-size: 9px;
  padding: 3px 7px;
  border-radius: 3px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity var(--dur-normal);
  pointer-events: none;
  font-family: var(--font-sans);
}
.offer-card:hover .why-tag { opacity: 1; }

.activate-btn {
  border: 1px solid #000;
  background: #fff;
  color: #000;
  padding: 8px 0;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  margin-top: 4px;
}
.activate-btn:hover { background: #000; color: #fff; }

/* Split-view toggle (before/after Malachyte) */
.home-toolbar {
  background: #F6F4F0;
  padding: 10px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #E5E5E5;
  font-size: 12px;
}
.mode-toggle {
  display: inline-flex;
  background: #fff;
  border-radius: var(--r-pill);
  padding: 3px;
  border: 1px solid #D1D1D1;
}
.mode-toggle button {
  background: transparent;
  border: none;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  font-family: inherit;
}
.mode-toggle button.active {
  background: var(--c-charcoal);
  color: var(--c-lime-hivis);
}

.recap {
  color: #555;
  font-size: 12px;
}
.recap b { color: #000; }
.recap .fav-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-malachyte);
  margin: 0 6px 0 10px;
}

/* confetti on success */
.success-wrap {
  text-align: center;
  padding: 80px 32px;
}
.success-wrap h2 {
  font-family: 'Times New Roman', serif;
  color: #A51C5C;
  font-size: 32px;
  margin: 16px 0 12px;
}

/* pitch intro card */
.pitch-card {
  max-width: 640px;
  margin: 60px auto;
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: var(--r-xl);
  padding: 40px;
  text-align: center;
  font-family: var(--font-sans);
}
.pitch-card .eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-malachyte);
  font-weight: 500;
}
.pitch-card h1 {
  font-size: 42px;
  margin: 16px 0;
  color: var(--c-charcoal);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.pitch-card p {
  color: var(--fg-muted);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 480px;
}
.pitch-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 32px;
}
.pitch-logos .sep {
  width: 1px; height: 28px; background: #D1D1D1;
}
.pitch-logos .simon {
  font-family: 'Times New Roman', serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.pitch-logos img { height: 28px; }
.pitch-card .btn { margin-top: 28px; }

/* Intro problem/solution snippet */
.compare-strip {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.compare-strip > div {
  padding: 18px 20px;
  border-radius: 8px;
  font-size: 13px;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: start;
}
.compare-before { background: #F6F4F0; color: #666; border: 1px solid var(--border-default); }
.compare-after { background: var(--bg-accent-soft); color: var(--c-malachyte-dark); border: 1px solid var(--c-malachyte-light); }
.compare-strip h4 {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 2px 0 6px;
  font-weight: 600;
}
.compare-strip .compare-body { min-width: 0; }
.compare-strip .compare-body p { margin: 0; line-height: 1.5; }

.compare-strip .compare-logo {
  width: 36px !important;
  height: 36px !important;
  max-width: 36px;
  max-height: 36px;
  object-fit: contain;
  flex-shrink: 0;
  margin-top: 2px;
  display: block;
}
.compare-strip .compare-logo--simon { filter: grayscale(1) contrast(1.05); opacity: 0.75; }

/* Nav restart */
.restart {
  position: fixed;
  left: 20px;
  bottom: 20px;
  background: #fff;
  color: #000;
  border: 1px solid #D1D1D1;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 12px;
  cursor: pointer;
  z-index: 49;
  font-family: var(--font-sans);
}
.restart:hover { background: #F5F5F5; }
