/* base.css — dev B: Design-System/Tokens, Landing, Intro, Quiz. Stage-Starter-CI. */

:root {
  --bg: #0a0a0f;
  --ink: #07070c;
  --gold: #f9c500;
  --gold-bright: #ffd83d;
  --gold-deep: #d9ab00;
  --line-gold: rgba(211, 181, 69, .28);

  --surface: #101018;
  --surface-2: #15151f;
  --border: rgba(255, 255, 255, .08);
  --text: #f4f4f6;
  --text-muted: #a8a8b3;
  --text-faint: #77778a;

  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --serif: "Fraunces", Georgia, serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
[data-view][hidden] { display: none; }
button { font-family: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.pe-container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.pe-accent { color: var(--gold); }

/* ---------- Buttons ---------- */
.pe-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
  color: var(--ink);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), opacity .2s var(--ease);
  padding: 14px 26px;
  font-size: 1rem;
}
.pe-btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -8px rgba(249, 197, 0, .45);
}
.pe-btn-primary:active:not(:disabled) { transform: translateY(0); }
.pe-btn-primary:disabled {
  background: var(--surface-2);
  color: var(--text-faint);
  border: 1px solid var(--border);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.pe-btn-lg { padding: 16px 34px; font-size: 1.05rem; }

.pe-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 22px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease), opacity .2s var(--ease);
}
.pe-btn-ghost:hover:not(:disabled) {
  border-color: var(--line-gold);
  color: var(--text);
}
.pe-btn-ghost:disabled { opacity: .3; cursor: not-allowed; }

/* ---------- Landing ---------- */
.pe-landing {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 64px 0;
}
.pe-landing-glow {
  position: absolute;
  inset: -20% -20% auto -20%;
  height: 70%;
  background: radial-gradient(60% 60% at 50% 0%, rgba(249, 197, 0, .16), transparent 70%);
  pointer-events: none;
}
.pe-landing-inner {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pe-kicker {
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.pe-landing-title {
  font-size: clamp(2.1rem, 5.2vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -.01em;
  margin-bottom: 22px;
}
.pe-landing-lead {
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 36px;
}
.pe-trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin-top: 40px;
  color: var(--text-muted);
  font-size: .9rem;
}
.pe-trust-row li { display: flex; align-items: baseline; gap: 6px; }
.pe-trust-num {
  font-family: var(--serif);
  color: var(--gold);
  font-weight: 600;
  font-size: 1.05rem;
}
.pe-landing-fineprint {
  margin-top: 28px;
  max-width: 480px;
  font-size: .82rem;
  line-height: 1.6;
  color: var(--text-faint);
}

/* ---------- Quiz ---------- */
.pe-quiz-section {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 56px 0;
}
.pe-quiz { width: 100%; }

.pe-quiz-progress { margin-bottom: 36px; }
.pe-quiz-progress-track {
  height: 6px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  overflow: hidden;
}
.pe-quiz-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
  transition: width .4s var(--ease);
}
.pe-quiz-progress-text {
  margin-top: 10px;
  font-size: .82rem;
  color: var(--text-faint);
  letter-spacing: .02em;
}

.pe-quiz-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  animation: pe-fade-in .35s var(--ease);
}
@keyframes pe-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.pe-quiz-statement {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  line-height: 1.42;
  margin-bottom: 40px;
  min-height: 3em;
}

.pe-likert-scale {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.pe-likert-btn {
  flex: 1 1 0;
  aspect-ratio: 1 / 1;
  max-width: 58px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: border-color .18s var(--ease), background .18s var(--ease),
    color .18s var(--ease), transform .18s var(--ease);
}
.pe-likert-btn:hover { border-color: var(--line-gold); color: var(--text); }
.pe-likert-btn:active { transform: scale(.94); }
.pe-likert-btn.is-selected {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
  border-color: var(--gold);
  color: var(--ink);
  transform: scale(1.06);
}

.pe-likert-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  font-size: .78rem;
  color: var(--text-faint);
  gap: 12px;
}
.pe-likert-labels span:first-child { text-align: left; }
.pe-likert-labels span:last-child { text-align: right; }

.pe-quiz-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
}
.pe-quiz-nav .pe-btn-primary { flex: 1 1 auto; }
.pe-quiz-nav .pe-btn-ghost { flex: 0 0 auto; }

/* ---------- Footer ---------- */
.pe-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}
.pe-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
.pe-footer-links {
  display: flex;
  gap: 20px;
}
.pe-footer-links a {
  color: var(--text-muted);
  font-size: .84rem;
  text-decoration: none;
  transition: color .18s var(--ease);
}
.pe-footer-links a:hover { color: var(--gold); }
.pe-footer-copy {
  color: var(--text-faint);
  font-size: .78rem;
}
.pe-footer-products {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}
.pe-footer-products-label {
  color: var(--text-faint);
  font-size: .78rem;
}
.pe-footer-products-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.pe-footer-products-links a {
  color: var(--text-muted);
  font-size: .82rem;
  text-decoration: none;
  transition: color .18s var(--ease);
}
.pe-footer-products-links a:hover { color: var(--gold); }

/* ---------- Toolsuite (Landing) ---------- */
.pe-toolsuite {
  margin-top: 44px;
  width: 100%;
  max-width: 620px;
}
.pe-toolsuite-label {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 14px;
}
.pe-toolsuite-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.pe-toolsuite-links a {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .02);
  text-decoration: none;
  transition: border-color .18s var(--ease), background .18s var(--ease), transform .18s var(--ease);
}
.pe-toolsuite-links a:hover {
  border-color: var(--line-gold);
  background: rgba(249, 197, 0, .05);
  transform: translateY(-2px);
}
.pe-toolsuite-name {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--gold);
  font-size: 1.02rem;
}
.pe-toolsuite-desc {
  color: var(--text-muted);
  font-size: .82rem;
  line-height: 1.4;
}
@media (max-width: 480px) {
  .pe-toolsuite-links { grid-template-columns: 1fr; }
  .pe-footer-products { flex-direction: column; align-items: flex-start; }
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
  .pe-container { padding: 0 18px; }
  .pe-quiz-card { padding: 30px 22px; }
  .pe-likert-btn { max-width: none; font-size: .92rem; }
  .pe-trust-row { gap: 8px 18px; font-size: .84rem; }
  .pe-quiz-nav { flex-direction: row; }
  .pe-quiz-nav .pe-btn-ghost { padding: 14px 16px; }
  .pe-footer-inner { flex-direction: column; align-items: flex-start; }
}
