/* Rodan Insights Framework — shared site styles */

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--fg-2);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { margin: 0; color: var(--fg-1); letter-spacing: -0.01em; }
p { margin: 0; }
.tabular { font-variant-numeric: tabular-nums; }
.eyebrow {
  font-size: var(--fs-label); font-weight: var(--fw-medium);
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--fg-3);
}

.wrap { max-width: 920px; margin: 0 auto; padding: 0 24px; }

/* ---- Nav ---- */
.nav { position: sticky; top: 16px; z-index: 50; padding: 0 24px; }
.nav-inner {
  max-width: 1160px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-3); padding: 14px 20px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; letter-spacing: -0.01em; color: #fff; text-decoration: none; }
.logo img { height: 24px; width: auto; display: block; }
.nav .tag { font-size: 12px; color: rgba(255,255,255,0.5); letter-spacing: 0.04em; }

/* ---- Buttons ---- */
.btn {
  font-family: var(--font-sans); font-weight: 500; font-size: 15px;
  padding: 13px 22px; border-radius: var(--radius-1); cursor: pointer;
  border: 1px solid rgba(255,255,255,0.18); background: transparent; color: #fff;
  transition: opacity var(--dur-fast) var(--ease-standard), border-color var(--dur-fast);
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn:hover { opacity: 0.72; }
.btn:disabled { opacity: 0.3; cursor: not-allowed; }
.btn.primary { background: #fff; color: var(--rodan-navy); border-color: #fff; }
.btn.black { background: #000; color: #fff; border-color: #000; }
.btn.ghost { border-color: rgba(255,255,255,0.18); }
.btn.sm { padding: 9px 14px; font-size: 13px; }
.btn svg { width: 16px; height: 16px; }

.link-quiet { color: var(--fg-3); font-size: 14px; cursor: pointer; background: none; border: 0; font-family: var(--font-sans); text-decoration: underline; text-underline-offset: 3px; }
.link-quiet:hover { color: #fff; }

/* ---- App shell (scope wizard) ---- */
.app { min-height: calc(100vh - 220px); padding: 64px 0 40px; }
.screen { animation: fade-in var(--dur-slow) var(--ease-emphasized); }
@keyframes fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.intro h1 { font-size: 56px; line-height: 60px; font-weight: 500; letter-spacing: -0.02em; color: #fff; margin: 20px 0 20px; max-width: 18ch; }
.intro .sub { font-size: 19px; line-height: 28px; color: rgba(255,255,255,0.72); max-width: 60ch; margin-bottom: 32px; }
.intro .cta-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.intro .note { margin-top: 28px; font-size: 13px; line-height: 20px; color: rgba(255,255,255,0.5); max-width: 58ch; display: flex; gap: 10px; }
.intro .note svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--data-pos); }
.intro .meta-row { display: flex; gap: 40px; margin-top: 48px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.12); }
.intro .meta .v { font-size: 30px; font-weight: 500; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.intro .meta .l { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 6px; letter-spacing: 0.04em; }

.progress { display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; gap: 24px; }
.progress .steps { display: flex; gap: 6px; flex: 1; max-width: 360px; }
.progress .steps .s { height: 4px; flex: 1; border-radius: 999px; background: rgba(255,255,255,0.14); transition: background var(--dur-base); }
.progress .steps .s.on { background: var(--rodan-lavender); }
.progress .count { font-size: 13px; color: rgba(255,255,255,0.5); font-variant-numeric: tabular-nums; }

.q .cat-label { color: var(--rodan-lavender); margin-bottom: 14px; }
.q h2 { font-size: 32px; line-height: 40px; font-weight: 500; letter-spacing: -0.015em; color: #fff; margin-bottom: 8px; max-width: 24ch; }
.q .cat-desc { font-size: 15px; color: rgba(255,255,255,0.55); margin-bottom: 32px; }
.options { display: flex; flex-direction: column; gap: 10px; }
.opt {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 18px 20px; border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-2); background: var(--rodan-navy-elev);
  cursor: pointer; text-align: left; width: 100%; color: #fff;
  font-family: var(--font-sans); font-size: 16px; line-height: 23px;
  transition: border-color var(--dur-base) var(--ease-standard), background var(--dur-base);
}
.opt:hover { border-color: rgba(255,255,255,0.4); }
.opt.selected { border-color: var(--rodan-lavender); background: rgba(220,220,242,0.06); }
.opt .tick { width: 20px; height: 20px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.3); flex: none; margin-top: 2px; display: flex; align-items: center; justify-content: center; }
.opt.selected .tick { border-color: var(--rodan-lavender); background: var(--rodan-lavender); }
.opt.selected .tick svg { width: 12px; height: 12px; color: var(--rodan-navy); }
.opt .tick svg { display: none; }
.opt.selected .tick svg { display: block; }
.q .nav-row { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; }

/* ---- Scope results ---- */
.results h1 { font-size: 40px; line-height: 46px; font-weight: 500; letter-spacing: -0.015em; color: #fff; margin-bottom: 8px; }
.results .r-lede { font-size: 16px; color: rgba(255,255,255,0.6); margin-bottom: 36px; }
.result-grid { display: grid; grid-template-columns: 340px 1fr; gap: 40px; align-items: start; }

.rec-card { background: var(--rodan-lavender-50); color: var(--rodan-navy); border-radius: var(--radius-3); padding: 28px; }
.rec-card .rc-eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: #4A4B66; margin-bottom: 16px; }
.rec-card .rc-name { font-size: 28px; line-height: 34px; font-weight: 600; letter-spacing: -0.015em; color: var(--rodan-navy); margin-bottom: 8px; }
.rec-card .rc-price { font-size: 15px; color: var(--rodan-ink); margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.rec-card .rc-dur { font-size: 13px; color: #4A4B66; margin-bottom: 20px; }
.rec-card .rc-scope { font-size: 14px; line-height: 21px; color: var(--rodan-ink); border-top: 1px solid var(--rodan-lavender-200); padding-top: 18px; }

.stages-mini { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.stages-mini .sm { font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; padding: 5px 8px; border-radius: var(--radius-1); background: var(--rodan-lavender-200); color: var(--rodan-navy); }
.stages-mini .sm.off { opacity: 0.35; }

.read { margin-top: 0; }
.read .band { font-size: 20px; line-height: 28px; color: #fff; font-weight: 500; margin-bottom: 10px; }
.read .above { font-size: 15px; line-height: 22px; color: rgba(255,255,255,0.6); padding: 16px 18px; border-left: 2px solid var(--rodan-lavender); background: rgba(220,220,242,0.04); border-radius: 0 var(--radius-1) var(--radius-1) 0; }
.read .above b { color: rgba(255,255,255,0.85); font-weight: 500; }

.lens-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.lens-tags .lt { font-size: 12px; padding: 6px 10px; border-radius: var(--radius-1); border: 1px solid rgba(255,255,255,0.18); color: rgba(255,255,255,0.78); }

.takeaway { margin-top: 24px; font-size: 15px; line-height: 22px; color: rgba(255,255,255,0.7); }
.takeaway b { color: #fff; font-weight: 500; }

.next-step { margin-top: 36px; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 28px; }
.next-step .ns-h { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.5); margin-bottom: 12px; }
.next-step p { font-size: 17px; line-height: 25px; color: #fff; max-width: 60ch; }

.actions { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.act-card { border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius-2); padding: 24px; background: var(--rodan-navy-elev); display: flex; flex-direction: column; gap: 12px; }
.act-card h4 { font-size: 18px; font-weight: 500; color: #fff; }
.act-card p { font-size: 14px; line-height: 20px; color: rgba(255,255,255,0.6); }
.act-card .btn { margin-top: auto; }

.results .restart { margin-top: 36px; text-align: center; }

/* ---- Footer ---- */
.footer { border-top: 1px solid rgba(255,255,255,0.12); padding: 32px 0 48px; margin-top: 40px; }
.footer-inner { max-width: 1160px; margin: 0 auto; padding: 0 32px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer .c { font-size: 12px; color: rgba(255,255,255,0.4); }
.footer .lk { display: flex; gap: 20px; }
.footer .lk a { font-size: 13px; color: rgba(255,255,255,0.6); text-decoration: none; }
.footer .lk a:hover { color: #fff; }

@media (max-width: 760px) {
  .intro h1 { font-size: 40px; line-height: 44px; }
  .result-grid { grid-template-columns: 1fr; gap: 28px; }
  .actions { grid-template-columns: 1fr; }
  .q h2 { font-size: 26px; line-height: 32px; }
  .intro .meta-row { gap: 24px; flex-wrap: wrap; }
}
