@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&family=Host+Grotesk:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

/* =============================================
   FIXXE — Global Styles
   ============================================= */

:root {
  --cream: #FAF7F2;
  --warm-white: #FFFDF9;
  --blush: #F2E0D8;
  --rose: #C97B6B;
  --rose-deep: #A35A4A;
  --rose-light: #EDD5CE;
  --charcoal: #2A2420;
  --mid: #6B5B55;
  --soft: #A89590;

  /* Figma design tokens */
  --primary: #821C1C;
  --primary-dark: #451a10;
  --nav-red: #873625;
  --tertiary: #F2B2B2;

  --ff-display: 'Fraunces', Georgia, serif;
  --ff-body: 'Host Grotesk', system-ui, sans-serif;

  --border: 0.5px solid var(--blush);
  --radius: 3px;
  --shadow: 0 4px 40px rgba(42, 36, 32, 0.07);
  --shadow-lg: 0 8px 64px rgba(42, 36, 32, 0.10);
  --t: 0.2s ease;
}

/* =============================================
   AGE GATE
   ============================================= */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(18, 10, 8, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

html.age-verified .age-gate { display: none; }

/* Prevent scrolling behind the gate */
html:not(.age-verified) body { overflow: hidden; }

.age-gate-card {
  background: var(--warm-white);
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  padding: 2.75rem 2.5rem 2.25rem;
  max-width: 460px;
  width: 100%;
  text-align: center;
}

.age-gate-logo {
  display: block;
  height: 28px;
  margin: 0 auto 1.75rem;
}

.age-gate-headline {
  font-family: var(--ff-display);
  font-size: 2.2rem;
  font-weight: 100;
  font-variation-settings: 'SOFT' 0, 'WONK' 1;
  color: var(--charcoal);
  line-height: 1.15;
  margin-bottom: 0.6rem;
}

.age-gate-sub {
  font-size: 0.88rem;
  color: var(--mid);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.age-gate-btns {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.age-gate-btns .btn {
  width: 100%;
}

.age-gate-legal {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--soft);
  line-height: 1.6;
}

.age-gate-legal a {
  color: var(--mid);
  text-decoration: underline;
}

.age-gate-declined {
  font-size: 0.9rem;
  color: var(--rose-deep);
  margin-top: 1.25rem;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .age-gate-card { padding: 2.25rem 1.5rem 2rem; }
  .age-gate-headline { font-size: 1.9rem; }
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { display: block; max-width: 100%; }
button, input { font-family: inherit; }

body {
  font-family: var(--ff-body);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-variation-settings: 'SOFT' 0, 'WONK' 1;
}

/* === LAYOUT === */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-wrap > main { flex: 1; }

/* === NAV === */
nav.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 68px;
  border-bottom: var(--border);
  background: rgba(255, 253, 249, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  font-family: var(--ff-display);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--charcoal);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.nav-logo img {
  width: 110px;
  height: 29px;
  display: block;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--nav-red);
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius);
  transition: color var(--t);
}

.nav-link:hover { color: var(--primary); }

/* App pages (solid cream bg) — softer link color */
.nav-app .nav-link {
  color: var(--mid);
  font-weight: 500;
}
.nav-app .nav-link:hover { color: var(--charcoal); }

.nav-user-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}

.nav-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blush);
  color: var(--primary);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Login icon — used in home mobile CTA */
.nav-login-icon {
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  color: var(--nav-red);
  text-decoration: none;
  transition: color var(--t);
}
.nav-login-icon:hover { color: var(--primary); }

/* Home-page mobile CTA (login icon + compact signup) — hidden on desktop */
.nav-mobile-cta {
  display: none;
  align-items: center;
  gap: 0.4rem;
}

.btn-nav-cta-sm {
  font-size: 0.75rem;
  padding: 0.45rem 0.9rem;
}

/* Hamburger toggle — hidden on desktop */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  color: var(--charcoal);
  border-radius: var(--radius);
  line-height: 0;
  transition: background var(--t);
}
.nav-hamburger:hover { background: var(--blush); }
.nav-hamburger .icon-close { display: none; }
.nav-hamburger.is-open .icon-menu { display: none; }
.nav-hamburger.is-open .icon-close { display: block; }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius);
  font-family: var(--ff-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--t);
  border: none;
  white-space: nowrap;
}

.btn-dark {
  background: var(--charcoal);
  color: var(--warm-white);
  border-radius: 12px;
}
.btn-dark:hover { background: #3d3430; }

/* Nav CTA - very dark brown, pill-shaped */
.btn-nav-cta {
  background: var(--primary-dark);
  color: var(--warm-white);
  border-radius: 12px;
  padding: 0.7rem 1.6rem;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}
.btn-nav-cta:hover { background: #5a2415; }

/* Blush CTA - used on hero + CTA strip */
.btn-blush {
  background: var(--rose-light);
  color: var(--primary);
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.btn-blush:hover { background: #e5c9c0; }

.btn-rose {
  background: var(--rose);
  color: var(--warm-white);
  border-radius: 12px;
}
.btn-rose:hover { background: var(--rose-deep); }

.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border: 0.5px solid rgba(42, 36, 32, 0.4);
  border-radius: 12px;
}
.btn-outline:hover { background: var(--charcoal); color: var(--warm-white); }

.btn-ghost-light {
  background: rgba(255,255,255,0.1);
  color: var(--warm-white);
  border: 0.5px solid rgba(255,255,255,0.3);
  border-radius: 12px;
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.18); }

.btn-lg {
  padding: 0.9rem 2.2rem;
  font-size: 0.88rem;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* === MODAL === */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(42, 36, 32, 0.55);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.modal-backdrop[hidden] { display: none; }

.modal-card {
  background: var(--warm-white);
  border-radius: 12px;
  padding: 2.5rem;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.modal-headline {
  font-family: var(--ff-display);
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--charcoal);
  font-variation-settings: 'SOFT' 0, 'WONK' 1;
  line-height: 1.1;
}

.modal-sub {
  font-size: 0.9rem;
  color: var(--mid);
  margin-bottom: 1.5rem;
  line-height: 1.65;
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--soft);
  padding: 0.2rem;
  line-height: 1;
  transition: color var(--t);
  flex-shrink: 0;
  margin-top: 0.2rem;
}
.modal-close:hover { color: var(--charcoal); }

.modal-skip-btn {
  display: block;
  width: 100%;
  margin-top: 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--ff-body);
  font-size: 0.82rem;
  color: var(--soft);
  text-align: center;
  padding: 0.5rem;
  transition: color var(--t);
}
.modal-skip-btn:hover { color: var(--mid); }

/* === FOOTER === */
footer.site-footer {
  padding: 1.5rem 2.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 1rem;
  row-gap: 0.2rem;
  align-items: center;
  background: var(--primary-dark);
}

.footer-logo {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity var(--t);
  filter: brightness(0) invert(1); /* renders the SVG logo white */
}
.footer-logo:hover { opacity: 1; }
.footer-logo img {
  width: 80px;
  height: auto;
  display: block;
}

.footer-copy {
  grid-column: 1;
  grid-row: 2;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.02em;
}

.footer-links {
  grid-column: 3;
  grid-row: 1 / 3;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-self: end;
}

.footer-legal {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-legal:hover { color: rgba(255, 255, 255, 0.80); }

/* === LEGAL PAGE === */
.legal-hero {
  padding: 6rem 2.5rem 5rem;
  text-align: center;
  border-bottom: var(--border);
}

.legal-hero-title {
  font-family: var(--ff-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 100;
  color: var(--charcoal);
  line-height: 1.15;
  margin-bottom: 1rem;
  font-variation-settings: 'SOFT' 0, 'WONK' 1;
}

.legal-hero-sub {
  font-size: 1rem;
  color: var(--mid);
  max-width: 480px;
  margin: 0 auto;
}

.legal-wrap {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 5rem;
  max-width: 980px;
  margin: 0 auto;
  padding: 5rem 2.5rem 7rem;
  align-items: start;
}

.legal-sidenav {
  position: sticky;
  top: 2rem;
}

.legal-sidenav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.legal-sidenav-link {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--soft);
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  letter-spacing: 0.01em;
}

.legal-sidenav-link:hover {
  color: var(--charcoal);
  background: var(--blush);
}

.legal-sidenav-link.is-active {
  color: var(--primary);
  background: var(--blush);
}

.legal-content {
  max-width: 720px;
}

.legal-section {
  padding-bottom: 4rem;
  margin-bottom: 4rem;
  border-bottom: var(--border);
}

.legal-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.legal-section-heading {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.6rem;
}

.legal-updated {
  font-size: 0.78rem;
  color: var(--soft);
  margin-bottom: 1.75rem;
}

.legal-body p {
  font-size: 0.9375rem;
  color: var(--mid);
  line-height: 1.75;
  margin-bottom: 1.1rem;
}

.legal-body p:last-child { margin-bottom: 0; }

.legal-intro {
  font-size: 0.9375rem;
  color: var(--mid);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.legal-credits-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.legal-credit-line {
  font-size: 0.875rem;
  color: var(--soft);
  line-height: 1.5;
}

.legal-credit-line a {
  color: var(--soft);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s;
}

.legal-credit-line a:hover { color: var(--primary); }

/* Credits page — no side nav, single column */
.legal-wrap-narrow {
  grid-template-columns: 1fr;
  max-width: 720px;
}

/* Legal page — mobile */
@media (max-width: 700px) {
  .legal-wrap {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 3rem 1.25rem 5rem;
  }

  .legal-sidenav {
    position: static;
  }

  .legal-sidenav-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .legal-sidenav-link {
    background: var(--blush);
    color: var(--mid);
  }
}

/* === FORMS === */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.field label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
}

.field input {
  padding: 0.8rem 1rem;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--warm-white);
  font-size: 0.95rem;
  color: var(--charcoal);
  transition: border-color var(--t), box-shadow var(--t);
  outline: none;
  width: 100%;
}

.field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(130, 28, 28, 0.10);
}

.field input::placeholder { color: var(--soft); }

.form-msg {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  display: none;
}

.form-msg.error {
  display: block;
  background: #fdf1ef;
  color: var(--primary);
  border: 0.5px solid var(--rose-light);
}

.form-msg.success {
  display: block;
  background: #f0f5f0;
  color: #3d6b3d;
  border: 0.5px solid #c8dcc8;
}

/* =============================================
   HOMEPAGE
   ============================================= */

/* --- Hero --- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4rem;
}

/* Full-bleed dark photo hero */
.hero-dark {
  padding: 0;
  height: calc(100vh - 68px);
  height: calc(100svh - 68px);
  min-height: 580px;
  display: flex;
  flex-direction: column;
}

.hero-dark .hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
}

.hero-dark .hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.50);
  pointer-events: none;
}

.hero-dark .hero-inner-wrap {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 5rem;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 860px;
  width: 100%;
}

.hero-eyebrow {
  font-family: var(--ff-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 1rem;
}

/* Light (on dark bg) eyebrow */
.hero-dark .hero-eyebrow { color: var(--tertiary); }

.hero-headline {
  font-family: var(--ff-display);
  font-size: clamp(2.6rem, 4.7vw, 4.2rem);
  font-weight: 100;
  color: var(--charcoal);
  margin-bottom: 1.25rem;
  line-height: 1.08;
  font-variation-settings: 'SOFT' 0, 'WONK' 1;
}

.hero-dark .hero-headline { color: var(--warm-white); }

.hero-headline em {
  font-style: italic;
  color: var(--rose);
}

.hero-body {
  font-size: 1.05rem;
  color: var(--mid);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.hero-dark .hero-body { color: var(--warm-white); }

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1rem;
}

.hero-text-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--mid);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color var(--t);
}

.hero-dark .hero-text-link { color: var(--warm-white); }
.hero-text-link:hover { color: var(--charcoal); }
.hero-dark .hero-text-link:hover { color: var(--rose-light); }


/* Pips (kept for use in results page) */
.pips {
  display: flex;
  gap: 4px;
  align-items: center;
}

.pip {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blush);
  flex-shrink: 0;
  transition: background var(--t);
}

.pip.on { background: var(--rose); }

.preview-footer {
  margin-top: 1.4rem;
  padding-top: 1.1rem;
  border-top: var(--border);
}

.preview-progress-label {
  font-size: 0.72rem;
  color: var(--soft);
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}

.preview-bar-track {
  height: 3px;
  background: var(--blush);
  border-radius: 2px;
  overflow: hidden;
}

.preview-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
  width: 65%;
}

/* --- Steps section --- */
.steps {
  padding: 5rem 0;
  border-top: var(--border);
}

.section-eyebrow {
  font-family: var(--ff-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soft);
  text-align: center;
  margin-bottom: 1rem;
}

.section-headline {
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 100;
  text-align: center;
  color: var(--charcoal);
  margin-bottom: 3.5rem;
  font-variation-settings: 'SOFT' 0, 'WONK' 1;
}

/* Figma: cream bg tiles, 30px gap, no hairline dividers */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  border-radius: var(--radius);
}

.step-card {
  background: var(--cream);
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* Figma: Fraunces Thin, rose color */
.step-number {
  font-family: var(--ff-display);
  font-size: 2.2rem;
  font-weight: 100;
  color: var(--rose);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variation-settings: 'SOFT' 0, 'WONK' 1;
}

/* Figma: Fraunces Medium weight */
.step-title {
  font-family: var(--ff-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1.2;
  font-variation-settings: 'SOFT' 0, 'WONK' 1;
}

.step-body {
  font-size: 0.85rem;
  color: var(--mid);
  line-height: 1.65;
}

/* --- Never-done feature explainer --- */
.never-done-explainer {
  padding: 5rem 0;
  border-top: var(--border);
  background: var(--cream);
}

.never-done-demo-wrap {
  max-width: 760px;
  margin: 2.5rem auto 0;
}

.never-done-demo-wrap .reaction-btns {
  flex-wrap: nowrap;
  justify-content: center;
}

@media (max-width: 640px) {
  .never-done-demo-wrap .reaction-btns {
    flex-wrap: wrap;
  }
}

.never-done-demo-wrap .match-card {
  cursor: default;
}

.never-done-demo-wrap .never-done-btn,
.never-done-demo-wrap .loved-it-btn,
.never-done-demo-wrap .add-comment-btn {
  pointer-events: none;
}

/* --- Top 10 explainer --- */
.top10-explainer {
  padding: 5rem 0;
  border-top: var(--border);
}

.top10-emoji-wrapper {
  position: relative;
  display: inline-block;
  margin: 2.5rem auto 0;
}

.top10-emoji-display {
  font-size: 7rem;
  line-height: 1;
  display: block;
  text-align: center;
  user-select: none;
}

.top10-badge {
  position: absolute;
  top: -0.35em;
  right: -0.5em;
  background: var(--primary);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
  min-width: 2em;
  height: 2em;
  padding: 0 0.3em;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  user-select: none;
}

/* --- Rating explainer --- */
.rating-explainer {
  padding: 5rem 0;
  border-top: var(--border);
}

.explainer-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.explainer-headline {
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 100;
  color: var(--charcoal);
  margin-bottom: 1rem;
  font-variation-settings: 'SOFT' 0, 'WONK' 1;
}

.explainer-sub {
  font-size: 1rem;
  color: var(--mid);
  margin-bottom: 2rem;
}

/* Figma: emoji-based scale (replaces numbered pips) */
.scale-track {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.5rem;
  padding-top: 2rem;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.scale-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.scale-emoji {
  font-size: 2.5rem;
  line-height: 1;
}

.scale-label {
  font-size: 0.85rem;
  color: var(--soft);
  letter-spacing: 0.014em;
  line-height: 1.3;
  text-align: center;
}

/* Legacy numbered pips — kept for backward compat */
.scale-pip {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--mid);
  background: var(--warm-white);
}

/* --- Hero ticker --- */
.hero-ticker-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.85rem 0;
}

.hero-ticker-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: hero-ticker-scroll 60s linear infinite;
}

.hero-ticker-item {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-family: var(--ff-display);
  font-weight: 100;
  font-size: 1.35rem;
  color: rgba(255, 255, 255, 0.88);
  padding: 0 2.5rem;
  position: relative;
}

.hero-ticker-item::after {
  content: '·';
  position: absolute;
  right: 0;
  color: rgba(255, 255, 255, 0.4);
  transform: translateX(50%);
}

@keyframes hero-ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --- CTA ticker --- */
.cta-ticker-wrap {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.75rem 0;
  margin: 1.75rem 0;
}

.cta-ticker-track {
  display: flex;
  width: max-content;
  animation: hero-ticker-scroll 50s linear infinite;
}

.cta-ticker-item {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-family: var(--ff-display);
  font-weight: 100;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.88);
  padding: 0 2.5rem;
  position: relative;
}

.cta-ticker-item::after {
  content: '·';
  position: absolute;
  right: 0;
  color: rgba(255, 255, 255, 0.4);
  transform: translateX(50%);
}

/* --- CTA over image --- */
.cta-image-strip {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 700px;
}

.cta-image-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
}

.cta-image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.40);
  pointer-events: none;
}

.cta-image-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 560px;
  padding: 5rem 4rem;
}

@media (max-width: 640px) {
  .cta-image-inner { padding: 4rem 2.5rem; }
}

.cta-image-inner h2 {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 100;
  color: var(--warm-white);
  margin-bottom: 1rem;
  line-height: 1.1;
  font-variation-settings: 'SOFT' 0, 'WONK' 1;
}

.cta-image-inner h2 em {
  font-style: italic;
  color: var(--rose-light);
}

.cta-image-inner p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* =============================================
   AUTH PAGE (signup/login)
   ============================================= */

.auth-page {
  padding: 4rem 0;
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
}

.auth-card {
  background: var(--warm-white);
  border: var(--border);
  border-radius: 12px;
  padding: 3rem;
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
  box-shadow: var(--shadow);
}

.auth-headline {
  font-size: 2.2rem;
  font-weight: 100;
  font-variation-settings: 'SOFT' 0, 'WONK' 1;
  margin-bottom: 0.4rem;
}

.auth-sub {
  font-size: 0.9rem;
  color: var(--mid);
  margin-bottom: 2rem;
}

.auth-form { display: flex; flex-direction: column; gap: 1.25rem; }

.auth-footer-text {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--soft);
}

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

.auth-footer-text a:hover { text-decoration: underline; }

/* =============================================
   LINK PAGE
   ============================================= */

.link-page {
  padding: 4rem 0;
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
}

.link-card {
  background: var(--warm-white);
  border: var(--border);
  border-radius: 12px;
  padding: 3rem;
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
  box-shadow: var(--shadow);
}

.link-headline {
  font-size: 2.2rem;
  font-weight: 100;
  font-variation-settings: 'SOFT' 0, 'WONK' 1;
  margin-bottom: 0.4rem;
}

.link-sub {
  font-size: 0.9rem;
  color: var(--mid);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.code-display {
  background: var(--cream);
  border: var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 2.5rem;
}

.invite-link-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.invite-link-input {
  flex: 1;
  padding: 0.7rem 0.9rem;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--warm-white);
  font-size: 0.8rem;
  color: var(--mid);
  font-family: var(--ff-body);
  outline: none;
  min-width: 0;
}

.code-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 0.6rem;
}

.code-value {
  font-family: var(--ff-display);
  font-size: 2.8rem;
  font-weight: 100;
  letter-spacing: 0.15em;
  color: var(--charcoal);
  line-height: 1;
  font-variation-settings: 'SOFT' 0, 'WONK' 1;
}

.code-hint {
  font-size: 0.78rem;
  color: var(--soft);
  margin-top: 0.5rem;
}

.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--soft);
  font-size: 0.78rem;
  margin: 0.75rem 0;
}

.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 0.5px;
  background: var(--blush);
}

.link-form { display: flex; flex-direction: column; gap: 1.25rem; }

/* =============================================
   QUESTIONS PAGE
   ============================================= */

.questions-page {
  padding: 3rem 0 5rem;
}

.questions-header {
  margin-bottom: 3rem;
}

.q-progress-bar-track {
  height: 3px;
  background: var(--blush);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.q-progress-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.q-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.q-counter {
  font-size: 0.78rem;
  color: var(--soft);
  letter-spacing: 0.04em;
}

.q-counter strong {
  color: var(--charcoal);
  font-weight: 500;
}

.q-nav-btns {
  display: flex;
  gap: 0.5rem;
}

.q-nav-btn {
  background: none;
  border: var(--border);
  border-radius: var(--radius);
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
  color: var(--mid);
  cursor: pointer;
  transition: all var(--t);
}

.q-nav-btn:hover:not(:disabled) { border-color: var(--charcoal); color: var(--charcoal); }
.q-nav-btn:disabled { opacity: 0.3; cursor: default; }

/* Question card */
.question-card {
  background: var(--warm-white);
  border: var(--border);
  border-radius: 12px;
  padding: 3rem;
  max-width: 620px;
  margin: 0 auto;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.q-category {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.036em;
  color: var(--primary);
  background: var(--blush);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  margin-bottom: 1.25rem;
  align-self: center;
}

.q-number {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tertiary);
  margin-bottom: 1rem;
}

.q-text {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 100;
  color: var(--charcoal);
  line-height: 1.2;
  min-height: 8rem; /* reserves space for ~3 lines at max size so emojis don't shift */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2.5rem;
  font-variation-settings: 'SOFT' 0, 'WONK' 1;
}

.rating-selector {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.rating-btns {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.6rem;
  max-width: 620px;
  margin: 0 auto;
  width: 100%;
}

/* Emoji rating buttons */
.emoji-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px 4px;
  width: 100%;
  min-width: 0;
  transition: transform 0.15s ease;
}

.emoji-btn:hover { transform: scale(1.08); }

.emoji-wrap {
  position: relative;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.emoji-icon {
  font-size: 40px;
  line-height: 1;
  display: block;
  user-select: none;
}

.emoji-check {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
}

.emoji-btn.selected .emoji-check { opacity: 1; }

/* Top-10 count badge on 🤯 button */
.emoji-badge {
  position: absolute;
  top: -5px;
  right: -8px;
  min-width: 18px;
  height: 18px;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  pointer-events: none;
  line-height: 1;
  border: 2px solid var(--warm-white);
  transition: background 0.15s ease;
}

.emoji-badge.depleted {
  background: var(--soft);
}

.emoji-label {
  font-size: 10.5px;
  color: var(--soft);
  text-align: center;
  line-height: 1.35;
  letter-spacing: 0.02em;
  max-width: 80px;
  min-height: 28px;
}

/* Submit button — always uses primary dark styling on questions page */
#btn-submit {
  background: var(--primary);
  color: var(--warm-white);
  border-color: var(--primary);
}
#btn-submit:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

/* ==============================================
   PARTNER PAGE
   ============================================= */

.partner-page { padding: 3rem 0 5rem; }

.partner-card {
  background: var(--warm-white);
  border: var(--border);
  border-radius: 12px;
  padding: 3rem;
  max-width: 520px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}

.partner-headline {
  font-family: var(--ff-display);
  font-size: 1.9rem;
  font-weight: 300;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
  font-variation-settings: 'SOFT' 0, 'WONK' 1;
}

.partner-sub {
  font-size: 0.9rem;
  color: var(--soft);
  margin-bottom: 2rem;
}

/* Couple code block */
.couple-code-block {
  background: var(--cream);
  border: var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
}

.couple-code-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 0.5rem;
}

.couple-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.couple-code-value {
  font-family: var(--ff-display);
  font-size: 2rem;
  letter-spacing: 0.18em;
  color: var(--primary);
  font-weight: 400;
}

.btn-copy {
  background: none;
  border: var(--border);
  border-radius: var(--radius);
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  color: var(--mid);
  cursor: pointer;
  transition: all var(--t);
  white-space: nowrap;
}
.btn-copy:hover { border-color: var(--primary); color: var(--primary); }

.couple-code-hint {
  font-size: 0.75rem;
  color: var(--soft);
  margin-top: 0.6rem;
  line-height: 1.4;
}

.partner-divider {
  text-align: center;
  font-size: 0.78rem;
  color: var(--soft);
  margin: 1.5rem 0;
  position: relative;
}
.partner-divider::before,
.partner-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 35%;
  height: 0.5px;
  background: var(--blush);
}
.partner-divider::before { left: 0; }
.partner-divider::after  { right: 0; }

/* Connected state */
.linked-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #2d7a4f;
  background: #e8f5ee;
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  margin-bottom: 2rem;
}

.linked-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2d7a4f;
}

.partner-info-block {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: var(--border);
}

.partner-avatar-lg {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--blush);
  color: var(--primary);
  font-family: var(--ff-display);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.partner-name {
  font-family: var(--ff-display);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--charcoal);
  font-variation-settings: 'SOFT' 0, 'WONK' 1;
}

.partner-progress {
  font-size: 0.82rem;
  color: var(--soft);
  margin-top: 0.2rem;
}

.partner-actions { margin-top: 2rem; }

/* ==============================================
   ANSWERS PAGE
   ============================================= */

.answers-page { padding: 3rem 0 5rem; }

.answers-header {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  border-bottom: var(--border);
  padding-bottom: 1.5rem;
}

.answers-headline {
  font-family: var(--ff-display);
  font-size: 2rem;
  font-weight: 300;
  color: var(--charcoal);
  font-variation-settings: 'SOFT' 0, 'WONK' 1;
}

.answers-sub {
  font-size: 0.85rem;
  color: var(--soft);
  flex: 1;
}

.answer-group { margin-bottom: 2.5rem; }

.answer-group-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.answer-group-tally {
  font-size: 0.72rem;
  color: var(--soft);
}

.answer-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: #fffdf9;
  border: 1px solid #f2e0d8;
  border-radius: 12px;
  box-shadow: 0 8px 64px rgba(42,36,32,0.10);
  padding: 0;
  overflow: hidden;
  margin-bottom: 0.75rem;
  transition: box-shadow var(--t);
}

.answer-card:hover { box-shadow: 0 8px 40px rgba(42,36,32,0.15); }

.answer-card-emoji-col {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1.5rem;
  border-right: 1px solid #f2e0d8;
  flex-shrink: 0;
}

.answer-card-emoji {
  font-size: 2.25rem;
  line-height: 1;
}

.answer-card-content {
  flex: 1;
  padding: 1.1rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.6rem;
  min-width: 0;
}

.answer-card-content .match-text {
  text-align: left;
  font-size: 1.1rem;
}

.answer-card-edit-col {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1.25rem;
  border-left: 1px solid #f2e0d8;
  flex-shrink: 0;
  text-decoration: none;
  color: #a89590;
  font-size: 0.82rem;
  white-space: nowrap;
  transition: color var(--t);
}

.answer-card-edit-col:hover { color: var(--charcoal); }

@media (max-width: 640px) {
  .answer-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.25rem 1rem;
    gap: 0.6rem;
  }

  /* Dissolve the content col so its children become direct flex children
     of the card — this lets us reorder them freely with `order`. */
  .answer-card-content {
    display: contents;
  }

  .answer-card-emoji-col {
    order: 1;
    border-right: none;
    padding: 0;
  }

  .answer-card-content .match-text {
    order: 2;
    text-align: center;
  }

  .answer-card-edit-col {
    order: 3;
    border-left: none;
    padding: 0;
  }

  .answer-card .reaction-btns {
    order: 4;
    flex-direction: column;
    align-items: center;
  }

  .match-card .reaction-btns {
    flex-direction: column;
    align-items: center;
  }
}


.never-done-btn {
  align-self: flex-start;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--mid);
  border-radius: 999px;
  background: transparent;
  color: var(--mid);
  font-size: 0.82rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  line-height: 1.5;
}

.never-done-btn:hover {
  background: var(--mid);
  color: var(--warm-white);
}

.never-done-btn.active {
  background: var(--mid);
  border-color: var(--mid);
  color: var(--warm-white);
  font-weight: 500;
}

.never-done-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.match-never-done {
  margin-top: 0.55rem;
  font-size: 0.78rem;
  color: var(--soft);
  line-height: 1.4;
}

.match-loved-it {
  margin-top: 0.55rem;
  font-size: 0.78rem;
  color: var(--soft);
  line-height: 1.4;
}

.reaction-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.match-card .reaction-btns {
  justify-content: center;
}

.loved-it-btn {
  align-self: flex-start;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--mid);
  border-radius: 999px;
  background: transparent;
  color: var(--mid);
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  line-height: 1.5;
}

.loved-it-btn:hover {
  background: var(--mid);
  color: var(--warm-white);
}

.loved-it-btn.active {
  background: var(--rose);
  border-color: var(--rose);
  color: var(--warm-white);
  font-weight: 500;
}

.loved-it-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

/* Results match count */
.results-match-count {
  font-size: 0.82rem;
  color: var(--soft);
  margin-top: 0.5rem;
}

/* Result category pill (inside result cards) */
.result-category {
  display: inline-block;
  margin-bottom: 0.5rem;
}

/* Emoji in result score rows */
.result-score-emoji {
  font-size: 1.25rem;
  margin-right: 0.4rem;
}

/* Waiting state */
.waiting-card {
  background: var(--warm-white);
  border: var(--border);
  border-radius: 12px;
  padding: 3.5rem;
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  box-shadow: var(--shadow);
}

.waiting-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blush);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.5rem;
}

.waiting-headline {
  font-size: 1.8rem;
  font-weight: 100;
  font-variation-settings: 'SOFT' 0, 'WONK' 1;
  margin-bottom: 0.6rem;
}

.waiting-body {
  font-size: 0.9rem;
  color: var(--mid);
  margin-bottom: 2rem;
  line-height: 1.65;
}

/* =============================================
   RESULTS PAGE
   ============================================= */

/* ── Matches hero ── */
.results-hero {
  position: relative;
  min-height: 640px;
  display: flex;
  flex-direction: column;
}

.results-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
}

.results-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.50);
  pointer-events: none;
}

.results-hero-inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem 6rem;
}

/* Text overrides for dark background */
.results-hero .results-eyebrow     { color: rgba(255, 255, 255, 0.65); }
.results-hero .results-headline    { color: var(--warm-white); }
.results-hero .results-sub         { color: rgba(255, 255, 255, 0.80); }
.results-hero .results-match-count { color: rgba(255, 255, 255, 0.60); margin-top: 0.75rem; }

.results-hero .results-partners {
  background: transparent;
  border-color: transparent;
  margin-top: 2rem;
  margin-bottom: 0;
  padding: 0;
}

.results-hero .r-name  { color: rgba(255, 255, 255, 0.75); }
.results-hero .r-heart { color: var(--rose-light); }

.results-page {
  padding: 5rem 0 5rem;
}

.results-header {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.results-eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.results-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 100;
  color: var(--charcoal);
  margin-bottom: 0.75rem;
  font-variation-settings: 'SOFT' 0, 'WONK' 1;
}

.results-sub {
  font-size: 0.95rem;
  color: var(--mid);
  line-height: 1.7;
}

.results-partners {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0;
  padding: 1.25rem 2rem;
  background: var(--warm-white);
  border: var(--border);
  border-radius: var(--radius);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.result-partner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.r-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--charcoal);
}

.r-avatar-1 { background: var(--rose-light); }
.r-avatar-2 { background: #D4C5DC; }

.r-name {
  font-size: 0.8rem;
  color: var(--mid);
  letter-spacing: 0.02em;
}

.r-heart {
  font-size: 1.2rem;
  color: var(--primary);
}


/* Match groups */
#results-list {
  max-width: 680px;
  margin: 0 auto;
}

.match-group { margin-bottom: 5rem; }
.match-group:last-child { margin-bottom: 0; }

.match-group-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 0 1.5rem;
}

.match-group-sublabel {
  font-size: 0.875rem;
  color: var(--mid);
  margin-top: 0.3rem;
  font-weight: 400;
}

.match-scores {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.match-score-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--mid);
}

.ms-emoji { font-size: 1rem; line-height: 1; }

.match-score-sep { color: var(--soft); font-size: 0.75rem; }

.match-score-combined {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
}

.match-group-label {
  font-family: var(--ff-display);
  font-size: 2rem;
  font-weight: 300;
  color: var(--charcoal);
  line-height: 1.2;
  font-variation-settings: 'SOFT' 0, 'WONK' 1;
}

.match-card {
  background: white;
  border: 0.5px solid #f6dfd7;
  border-radius: 10px;
  box-shadow: 0 4px 4px rgba(0,0,0,0.05);
  padding: 1.5rem 1.75rem;
  margin-bottom: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: box-shadow var(--t);
}

.match-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.10); }

.match-category { margin-bottom: 0.75rem; }

.match-text {
  font-family: var(--ff-display);
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--charcoal);
  line-height: 1.45;
  font-variation-settings: 'SOFT' 0, 'WONK' 1;
}

/* =============================================
   TOPIC FILTER RIBBON
   ============================================= */

#topic-filters {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.filter-ribbons-sep {
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}

.filter-ribbon-track {
  flex: 1;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  font-size: 0;
  display: flex;
  cursor: grab;
}

.filter-ribbon-track::-webkit-scrollbar { display: none; }

.filter-ribbon {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0.5rem;
  white-space: nowrap;
}

.filter-ribbon--centered {
  justify-content: center;
  min-width: 100%;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.40);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  line-height: 1.5;
  user-select: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.filter-pill:hover {
  background: rgba(255, 255, 255, 0.22);
  color: white;
  border-color: rgba(255, 255, 255, 0.60);
}

.filter-pill.active {
  background: white;
  border-color: white;
  color: var(--charcoal);
}

.filter-pill-check {
  width: 13px;
  height: 13px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
}

.filter-pill.active .filter-pill-check::after {
  content: '✓';
}

.filter-ribbon-divider {
  width: 1px;
  align-self: stretch;
  background: rgba(255, 255, 255, 0.25);
  margin: 0.5rem 0.25rem;
  flex-shrink: 0;
}

/* =============================================
   FORM EXTENSIONS (textarea + select)
   ============================================= */
.field textarea,
.field select {
  padding: 0.8rem 1rem;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--warm-white);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--charcoal);
  transition: border-color var(--t), box-shadow var(--t);
  outline: none;
  width: 100%;
}

.field textarea:focus,
.field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(130, 28, 28, 0.10);
}

.field textarea::placeholder { color: var(--soft); }

.field textarea { resize: vertical; line-height: 1.55; }

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B5B55' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  cursor: pointer;
  padding-right: 2.5rem;
}

.char-count {
  text-align: right;
  font-size: 0.75rem;
  color: var(--soft);
  margin-top: 0.2rem;
}

.char-count.near-limit { color: var(--rose); }

/* =============================================
   SUGGEST PAGE
   ============================================= */
.submission-history { margin-top: 2rem; }

.submission-history-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 0.75rem;
}

.submission-item {
  background: var(--cream);
  border: var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
}

.submission-item-text {
  font-size: 0.85rem;
  color: var(--charcoal);
  margin-bottom: 0.25rem;
  line-height: 1.5;
}

.submission-item-meta { font-size: 0.75rem; color: var(--soft); }

.submission-status-pending  { color: var(--mid);       font-weight: 500; }
.submission-status-approved { color: #3d6b3d;          font-weight: 500; }
.submission-status-rejected { color: var(--rose-deep); font-weight: 500; }

/* =============================================
   ADMIN PAGE
   ============================================= */
.admin-page { padding: 3rem 0 5rem; }

.admin-header { margin-bottom: 2rem; }

.admin-headline {
  font-family: var(--ff-display);
  font-size: 2.2rem;
  font-weight: 100;
  font-variation-settings: 'SOFT' 0, 'WONK' 1;
  color: var(--charcoal);
  margin-bottom: 0.4rem;
}

.admin-counts {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.admin-count-chip {
  background: var(--warm-white);
  border: var(--border);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.82rem;
  color: var(--mid);
}

.admin-count-chip strong { color: var(--charcoal); }

.admin-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.admin-tab {
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--blush);
  background: var(--warm-white);
  font-size: 0.82rem;
  color: var(--mid);
  cursor: pointer;
  font-family: inherit;
  transition: background var(--t), color var(--t), border-color var(--t);
}

.admin-tab:hover { border-color: var(--rose); color: var(--charcoal); }

.admin-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.admin-card {
  background: var(--warm-white);
  border: var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}

.admin-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.admin-card-user {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--mid);
}

.admin-card-date {
  font-size: 0.78rem;
  color: var(--soft);
}

.admin-card-status {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.admin-card-status.pending  { background: #fef9ec; color: #8a6b00; }
.admin-card-status.approved { background: #f0f5f0; color: #3d6b3d; }
.admin-card-status.rejected { background: #fdf1ef; color: var(--rose-deep); }

.admin-card-fields {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.admin-card-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.admin-card-confirm {
  font-size: 0.82rem;
  color: #3d6b3d;
  font-weight: 500;
  padding: 0.4rem 0;
  display: none;
}

.admin-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--soft);
  font-size: 0.9rem;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 900px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }

  .rating-btns { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 0.5rem; max-width: 100%; }
  .scale-track { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 1.0rem; row-gap: 1.75rem; max-width: 100%; }
  .scale-item { flex: 0 0 28%; }

  .hero-dark .hero-inner-wrap { padding: 3.5rem 2.5rem; }
}

@media (max-width: 640px) {
  nav.site-nav { padding: 0 1.25rem; }
  .container { padding: 0 1.25rem; }
  footer.site-footer { padding: 1.75rem 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; text-align: center; }
  .footer-links { justify-self: unset; }

  .hero-dark .hero-inner-wrap { padding: 3rem 1.25rem; }

  .steps-grid { grid-template-columns: 1fr; gap: 16px; }

  .auth-card, .link-card { padding: 2rem 1.5rem; }
  .question-card { padding: 2rem 1.25rem; }

  .emoji-btn { padding: 10px 4px; }
  .emoji-label { font-size: 9px; max-width: 60px; min-height: 24px; }

  .result-card { grid-template-columns: 1fr; gap: 0.75rem; }
  .result-total { text-align: left; display: flex; align-items: center; gap: 0.5rem; }
  .results-header { text-align: left; }

  .scale-track { column-gap: 0.8rem; row-gap: 2.0rem; }
  .scale-label { font-size: 0.75rem; }

  /* Home page: swap hamburger for inline login + signup */
  .nav-home .nav-hamburger { display: none; }
  .nav-home .nav-mobile-cta { display: flex; }
  .nav-home .nav-login-icon { display: flex; }

  /* Hamburger replaces desktop nav on all other pages */
  .nav-hamburger { display: flex; align-items: center; justify-content: center; }

  .nav-right {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(255, 253, 249, 0.98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: var(--border);
    padding: 0.25rem 0 0.75rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
  }

  .nav-right.is-open { display: flex; }

  .nav-right .nav-link,
  .nav-right .nav-user-link {
    padding: 0.8rem 1.5rem;
    border-radius: 0;
    font-size: 0.95rem;
  }

  .nav-right .nav-user-link {
    border-bottom: var(--border);
    margin-bottom: 0.25rem;
    padding: 1rem 1.5rem;
  }

  .nav-right .btn-nav-cta {
    margin: 0.5rem 1.5rem 0;
    border-radius: var(--radius);
    justify-content: center;
  }

  .nav-link-text,
  .nav-login-text { display: block; }

  .waiting-card { padding: 2.5rem 1.5rem; }

  #topic-filters .filter-ribbon--centered {
    justify-content: flex-start;
    min-width: unset;
  }
}

/* =============================================
   JUMP-TO DROPDOWN (answers page)
   ============================================= */
.jump-to-wrap {
  display: flex;
  justify-content: center;
  margin: 0 0 2.5rem;
}

.jump-to-select {
  appearance: none;
  -webkit-appearance: none;
  background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B5B55' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
  border: 1px solid #e8dbd7;
  border-radius: 999px;
  padding: 0.35rem 2.25rem 0.35rem 1rem;
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--mid);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.jump-to-select:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(201,123,107,0.15);
}

/* =============================================
   BACK TO TOP BUTTON
   ============================================= */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid rgba(130,28,28,0.2);
  background: white;
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  cursor: pointer;
  font-size: 1rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* =============================================
   MATCH CARD COMMENTS
   ============================================= */
.comment-divider {
  border: none;
  border-top: var(--border);
  margin: 1rem 0 0.75rem;
  width: 100%;
}

.comment-area {
  width: 100%;
  text-align: left;
}

.add-comment-btn {
  background: transparent;
  border: 1px solid var(--mid);
  border-radius: 999px;
  color: var(--mid);
  font-family: var(--ff-body);
  font-size: 0.78rem;
  padding: 0.35rem 0.9rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  line-height: 1.5;
}
.add-comment-btn:hover {
  background: var(--mid);
  color: var(--warm-white);
}

.comment-input-wrap { width: 100%; }

.comment-textarea {
  padding: 0.8rem 1rem;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--warm-white);
  font-family: var(--ff-body);
  font-size: 0.95rem;
  color: var(--charcoal);
  width: 100%;
  resize: vertical;
  line-height: 1.55;
  outline: none;
  transition: border-color var(--t), box-shadow var(--t);
  box-sizing: border-box;
}
.comment-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(130, 28, 28, 0.10);
}
.comment-textarea::placeholder { color: var(--soft); }

.comment-counter {
  font-size: 12px;
  color: var(--soft);
  text-align: right;
  margin: 0.2rem 0 0.5rem;
}
.comment-counter.comment-counter-warning { color: var(--rose); }

.comment-btn-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.comment-post-btn {
  background: var(--primary);
  color: var(--warm-white);
  border: none;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-family: var(--ff-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.15s;
}
.comment-post-btn:hover:not(:disabled) { background: #5a2415; }
.comment-post-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.comment-cancel-btn {
  background: transparent;
  border: none;
  color: var(--soft);
  font-family: var(--ff-body);
  font-size: 0.78rem;
  cursor: pointer;
  padding: 0.35rem 0.5rem;
}
.comment-cancel-btn:hover { color: var(--mid); }

.comment-entry { margin-bottom: 0.65rem; }

.comment-name-label {
  font-size: 11px;
  color: var(--soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.2rem;
}

.comment-text {
  font-size: 14px;
  color: var(--mid);
  font-style: italic;
  line-height: 1.5;
  margin: 0;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.2rem;
}

.comment-delete-btn {
  background: none;
  border: none;
  color: var(--soft);
  font-family: var(--ff-body);
  font-size: 11px;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}
.comment-delete-btn:hover { text-decoration: underline; }

.comment-delete-confirm {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 11px;
  color: var(--rose);
}

.comment-confirm-text { font-style: italic; }

.comment-confirm-btn {
  background: none;
  border: none;
  color: var(--rose);
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.comment-confirm-cancel-btn {
  background: none;
  border: none;
  color: var(--soft);
  font-family: var(--ff-body);
  font-size: 11px;
  cursor: pointer;
  padding: 0;
}
.comment-confirm-cancel-btn:hover { text-decoration: underline; }
