/* ── Rafetecurl Diagnostic – CSS ─────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --rfc-cream:    #FAF6EF;
  --rfc-dark:     #1C1612;
  --rfc-gold:     #B8975A;
  --rfc-gold-lt:  #E8D9BC;
  --rfc-brown:    #5C3D2E;
  --rfc-brown-lt: #F2E9DC;
  --rfc-green:    #3B5A44;
  --rfc-green-lt: #E0EBE3;
  --rfc-text:     #2C2218;
  --rfc-muted:    #7A6A5A;
  --rfc-border:   #DDD0BB;
  --rfc-radius:   16px;
  --rfc-radius-sm:8px;
  --rfc-font-display: 'Cormorant Garamond', Georgia, serif;
  --rfc-font-body:    'DM Sans', system-ui, sans-serif;
}

/* ── Wrapper ── */
.rfc-diag-wrap {
  font-family: var(--rfc-font-body);
  color: var(--rfc-text);
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ── Screens ── */
.rfc-screen { display: none; }
.rfc-screen.active { display: block; animation: rfcFadeIn .4s ease; }
@keyframes rfcFadeIn { from { opacity:0; transform: translateY(12px); } to { opacity:1; transform: none; } }

/* ── Intro ── */
.rfc-intro {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--rfc-cream);
  border-radius: var(--rfc-radius);
  border: 1px solid var(--rfc-border);
}
.rfc-logo-badge {
  display: inline-block;
  font-family: var(--rfc-font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--rfc-gold);
  background: var(--rfc-gold-lt);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}
.rfc-title {
  font-family: var(--rfc-font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--rfc-dark);
  margin: 0 0 1rem;
}
.rfc-title em { font-style: italic; color: var(--rfc-gold); }
.rfc-subtitle {
  font-size: 1.05rem;
  color: var(--rfc-muted);
  margin: 0 0 2.5rem;
  font-weight: 300;
}

/* ── Buttons ── */
.rfc-btn-primary {
  display: inline-block;
  background: var(--rfc-dark);
  color: #FAF6EF;
  font-family: var(--rfc-font-body);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .04em;
  padding: 14px 32px;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.rfc-btn-primary:hover { background: var(--rfc-brown); transform: translateY(-1px); }
.rfc-btn-primary:disabled {
  background: var(--rfc-border);
  color: var(--rfc-muted);
  cursor: default;
  transform: none;
}
.rfc-btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--rfc-dark);
  font-family: var(--rfc-font-body);
  font-size: .9rem;
  font-weight: 500;
  padding: 12px 28px;
  border: 1.5px solid var(--rfc-border);
  border-radius: 100px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  margin-top: 2rem;
}
.rfc-btn-secondary:hover { border-color: var(--rfc-dark); background: var(--rfc-brown-lt); }
.rfc-btn-nav {
  background: transparent;
  border: none;
  font-family: var(--rfc-font-body);
  font-size: .88rem;
  color: var(--rfc-muted);
  cursor: pointer;
  padding: 8px 0;
  transition: color .2s;
}
.rfc-btn-nav:hover:not(:disabled) { color: var(--rfc-dark); }
.rfc-btn-nav:disabled { opacity: .35; cursor: default; }

/* ── Progress ── */
.rfc-progress {
  height: 3px;
  background: var(--rfc-border);
  border-radius: 10px;
  margin-bottom: 2rem;
  overflow: hidden;
}
.rfc-prog-bar {
  display: block;
  height: 100%;
  background: var(--rfc-gold);
  border-radius: 10px;
  transition: width .5s cubic-bezier(.4,0,.2,1);
}
.rfc-step-label {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--rfc-gold);
  margin: 0 0 .5rem;
}
.rfc-question {
  font-family: var(--rfc-font-display);
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 400;
  line-height: 1.3;
  color: var(--rfc-dark);
  margin: 0 0 .5rem;
}
.rfc-hint {
  font-size: .85rem;
  color: var(--rfc-muted);
  margin: 0 0 1.5rem;
}

/* ── Choices ── */
.rfc-choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 2rem;
}
.rfc-choice {
  background: #fff;
  border: 1.5px solid var(--rfc-border);
  border-radius: var(--rfc-radius-sm);
  padding: 14px 20px;
  text-align: left;
  font-family: var(--rfc-font-body);
  font-size: .97rem;
  color: var(--rfc-text);
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .15s;
}
.rfc-choice:hover { border-color: var(--rfc-gold); background: var(--rfc-cream); transform: translateX(4px); }
.rfc-choice.selected {
  border-color: var(--rfc-gold);
  background: var(--rfc-gold-lt);
  color: var(--rfc-brown);
  font-weight: 500;
}
.rfc-choice.selected::before { content: '✓  '; }

/* Icon choices (typography) */
.rfc-choices-icons { flex-direction: row; flex-wrap: wrap; }
.rfc-choice-icon {
  flex: 1 1 120px;
  text-align: center;
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.rfc-icon { font-size: 1.6rem; }

/* ── Nav row ── */
.rfc-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: .5rem;
}

/* ── Results ── */
.rfc-results-header {
  text-align: center;
  padding: 2.5rem 1rem 1.5rem;
  background: var(--rfc-cream);
  border-radius: var(--rfc-radius);
  border: 1px solid var(--rfc-border);
  margin-bottom: 2rem;
}
.rfc-results-header h2 {
  font-family: var(--rfc-font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 300;
  color: var(--rfc-dark);
  margin: .75rem 0 .5rem;
}
.rfc-results-header p {
  color: var(--rfc-muted);
  font-size: .97rem;
  max-width: 500px;
  margin: 0 auto;
}

/* Product cards grid */
.rfc-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 2.5rem;
}
.rfc-product-card {
  background: #fff;
  border: 1.5px solid var(--rfc-border);
  border-radius: var(--rfc-radius);
  padding: 1.25rem 1rem 1.5rem;
  text-align: center;
  position: relative;
  transition: border-color .2s, transform .2s;
}
.rfc-product-card:hover { border-color: var(--rfc-gold); transform: translateY(-3px); }
.rfc-product-card.rfc-star {
  border-color: var(--rfc-gold);
  background: linear-gradient(160deg, #FAF6EF 60%, #F5ECD6 100%);
}
.rfc-product-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--rfc-gold);
  color: #fff;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  white-space: nowrap;
}
.rfc-product-emoji { font-size: 2.2rem; margin-bottom: .75rem; display: block; }
.rfc-product-name {
  font-family: var(--rfc-font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--rfc-dark);
  margin: 0 0 .4rem;
}
.rfc-product-desc {
  font-size: .82rem;
  color: var(--rfc-muted);
  line-height: 1.5;
}
.rfc-product-usage {
  display: inline-block;
  margin-top: .75rem;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--rfc-green);
  background: var(--rfc-green-lt);
  padding: 4px 12px;
  border-radius: 100px;
}

/* Gestures section */
.rfc-gestures-section {
  background: var(--rfc-brown-lt);
  border: 1px solid var(--rfc-border);
  border-radius: var(--rfc-radius);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}
.rfc-gestures-section h3 {
  font-family: var(--rfc-font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--rfc-brown);
  margin: 0 0 1rem;
}
.rfc-gestures-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rfc-gestures-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: .93rem;
  line-height: 1.55;
  color: var(--rfc-text);
}
.rfc-gesture-icon {
  font-size: 1rem;
  margin-top: 2px;
  flex-shrink: 0;
  color: var(--rfc-gold);
}

@media (max-width: 480px) {
  .rfc-intro { padding: 2.5rem 1.25rem; }
  .rfc-products-grid { grid-template-columns: 1fr 1fr; }
  .rfc-choice-icon { flex: 1 1 90px; padding: 16px 8px; }
}
