/* =========================================================
   Hobo Agency Quiz — design system v2
   Palette: #00160C bg / #1CEE8C accent / #00301A dark green
   Type: Proxima Nova (Regular/Bold/ExtraBold) + IBM Plex Mono
   ========================================================= */

@font-face {
  font-family: "Proxima Nova";
  src: url("fonts/proximanova_regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Proxima Nova";
  src: url("fonts/proximanova_bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Proxima Nova";
  src: url("fonts/proximanova_extrabold.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap;
}

:root {
  /* brand palette v2 */
  --bg: #00160C;
  --bg-elev: #001F11;
  --accent: #1CEE8C;
  --accent-dim: #15B86A;
  --dark-green: #00301A;
  --white: #FFFFFF;
  --black: #000000;
  --muted: #4A7A5A;
  --error: #FF5C5C;

  /* state colors for ✅/🤔/❌ */
  --good: #1CEE8C;
  --mid:  #FFC857;
  --bad:  #FF5C5C;

  /* spacing scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 80px;

  /* type scale */
  --t-xs: 12px;
  --t-sm: 14px;
  --t-md: 16px;
  --t-lg: 18px;
  --t-xl: 22px;
  --t-2xl: 28px;
  --t-3xl: 36px;
  --t-4xl: 44px;

  /* radius */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;

  /* effects */
  --shadow-card: 0 8px 32px rgba(0, 0, 0, .35);
  --glow: 0 0 0 1px rgba(28, 238, 140, .15), 0 0 24px rgba(28, 238, 140, .15);

  /* layout */
  --container: 560px;
}

/* ---------- reset / base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--white);
  font-family: "Proxima Nova", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: var(--t-md);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100dvh;
  overflow-x: hidden;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
}

input, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  outline: 0;
}

img { display: block; max-width: 100%; height: auto; }

::selection { background: var(--accent); color: var(--black); }

/* ---------- layout shell ---------- */

.app {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.progress {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 10;
  height: 4px;
  background: var(--dark-green);
  width: 100%;
}
.progress__bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width .4s cubic-bezier(.4,.2,.2,1);
  box-shadow: 0 0 12px rgba(28, 238, 140, .4);
}

.stage {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: var(--s-6) var(--s-4) var(--s-7);
}

.screen {
  width: 100%;
  max-width: var(--container);
  display: none;
  animation: fadeUp .35s cubic-bezier(.4,.2,.2,1);
}
.screen.is-active { display: flex; flex-direction: column; gap: var(--s-5); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- typography ---------- */

.h1 {
  font-family: "Proxima Nova";
  font-weight: 800;
  font-size: clamp(28px, 6.5vw, var(--t-4xl));
  line-height: 1.1;
  letter-spacing: -.01em;
  margin: 0;
}
.h2 {
  font-family: "Proxima Nova";
  font-weight: 700;
  font-size: clamp(22px, 5vw, var(--t-2xl));
  line-height: 1.2;
  letter-spacing: -.005em;
  margin: 0;
}
.lede {
  font-size: var(--t-lg);
  line-height: 1.5;
  color: rgba(255, 255, 255, .8);
  margin: 0;
}
.muted { color: var(--muted); font-size: var(--t-sm); }
.mono { font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }

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

/* ---------- vlad bubble ---------- */

.vlad {
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
  padding: var(--s-3) var(--s-4) var(--s-3) var(--s-3);
  border-radius: var(--r-md);
  background: var(--bg-elev);
  border: 1px solid var(--dark-green);
}
.vlad__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  border: 1px solid var(--dark-green);
}
.vlad__text {
  font-size: var(--t-md);
  line-height: 1.45;
  color: rgba(255, 255, 255, .92);
}
.vlad__text strong { color: var(--white); font-weight: 700; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: var(--s-4) var(--s-5);
  font-weight: 700;
  font-size: var(--t-md);
  border-radius: var(--r-md);
  transition: transform .15s, background .2s, box-shadow .2s;
  min-height: 52px;
  text-align: center;
  text-decoration: none;
  user-select: none;
}
.btn--primary {
  background: var(--accent);
  color: var(--black);
  box-shadow: 0 8px 24px rgba(28, 238, 140, .25);
}
.btn--primary:hover { background: #2EFF99; transform: translateY(-1px); box-shadow: 0 12px 28px rgba(28, 238, 140, .35); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--dark-green);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--t-sm);
  color: var(--muted);
  margin-bottom: var(--s-3);
  transition: color .15s;
}
.btn-back:hover { color: var(--white); }

/* ---------- option cards (Q3-Q6 colored markers, Q7-Q8 plain) ---------- */

.options {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.option {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--dark-green);
  border-radius: var(--r-md);
  background: var(--bg-elev);
  text-align: left;
  font-size: var(--t-md);
  font-weight: 500;
  color: var(--white);
  min-height: 60px;
  transition: border-color .15s, background .15s, transform .12s;
  width: 100%;
}
.option:hover { border-color: var(--accent); background: #002212; }
.option:active { transform: scale(.99); }
.option__marker {
  width: 14px; height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--muted);
}
.option--good .option__marker { background: var(--good); box-shadow: 0 0 12px rgba(28, 238, 140, .35); }
.option--mid  .option__marker { background: var(--mid); }
.option--bad  .option__marker { background: var(--bad); }
.option__icon {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
}
.option__text { flex: 1; }
.option__text strong { font-weight: 700; }

/* ---------- visual tilted cards (Q1, Q2) ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-3);
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--dark-green);
  border-radius: var(--r-lg);
  background: var(--bg-elev);
  overflow: hidden;
  text-align: left;
  transition: transform .2s cubic-bezier(.4,.2,.2,1), border-color .2s, box-shadow .2s;
  cursor: pointer;
  min-height: 200px;
}
.card:nth-child(odd) { transform: rotate(-1deg); }
.card:nth-child(even) { transform: rotate(1deg); }
.card:hover {
  border-color: var(--accent);
  box-shadow: var(--glow);
  transform: rotate(0) translateY(-2px);
}
.card__num {
  position: absolute;
  top: 10px; left: 14px;
  font-family: "Proxima Nova";
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .04em;
  color: var(--accent);
}
.card__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--bg);
}
.card__title {
  padding: var(--s-3) var(--s-4) var(--s-4);
  font-weight: 700;
  font-size: var(--t-md);
  line-height: 1.25;
  color: var(--white);
}

/* ---------- hook screen ---------- */

.hero__title {
  font-family: "Proxima Nova";
  font-weight: 800;
  font-size: clamp(30px, 7.5vw, 48px);
  line-height: 1.05;
  letter-spacing: -.015em;
  margin: 0;
}
.hero__title em {
  font-style: normal;
  color: var(--accent);
}
.hero__sub {
  font-size: var(--t-lg);
  line-height: 1.5;
  color: rgba(255, 255, 255, .82);
  margin: 0;
}
.proof {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  font-size: var(--t-sm);
  color: var(--muted);
}
.proof__row { display: flex; gap: var(--s-2); align-items: center; }

/* ---------- value drop ---------- */

.value-drop {
  border: 1px solid var(--accent);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  background: linear-gradient(135deg, rgba(28, 238, 140, .04), transparent);
  box-shadow: var(--glow);
}

/* ---------- form ---------- */

.field {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.field__label {
  font-size: var(--t-sm);
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.field__input {
  padding: var(--s-4);
  border: 1px solid var(--dark-green);
  border-radius: var(--r-md);
  background: var(--bg-elev);
  font-size: var(--t-md);
  color: var(--white);
  transition: border-color .15s;
  min-height: 52px;
}
.field__input:focus { border-color: var(--accent); }
.field--invalid .field__input { border-color: var(--error); }
.field--valid .field__input { border-color: var(--accent); }
.field__error {
  font-size: var(--t-xs);
  color: var(--error);
  display: none;
}
.field--invalid .field__error { display: block; }

.trust {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  background: var(--bg-elev);
  border: 1px solid var(--dark-green);
  font-size: var(--t-sm);
}
.trust__avatar { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; }

/* ---------- result ---------- */

.result-hero {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-6) var(--s-5);
  border: 1px solid var(--accent);
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(28, 238, 140, .06), transparent);
}
.result-hero__score {
  font-family: "Proxima Nova";
  font-weight: 800;
  font-size: 64px;
  line-height: 1;
  color: var(--accent);
}
.result-hero__title { margin: 0; }

.finding {
  border: 1px solid var(--dark-green);
  border-radius: var(--r-md);
  padding: var(--s-5);
  background: var(--bg-elev);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.finding--bad   { border-left: 4px solid var(--bad); }
.finding--mid   { border-left: 4px solid var(--mid); }
.finding__head {
  display: flex;
  gap: var(--s-2);
  align-items: center;
  font-weight: 700;
  font-size: var(--t-lg);
}
.finding__action {
  font-size: var(--t-sm);
  color: rgba(255, 255, 255, .75);
  padding-top: var(--s-2);
  border-top: 1px dashed var(--dark-green);
}
.finding__action strong { color: var(--accent); }

/* ---------- footer ---------- */

.footer {
  padding: var(--s-5) var(--s-4);
  text-align: center;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--t-xs);
  color: var(--muted);
  border-top: 1px solid var(--dark-green);
}

/* ---------- mobile / desktop tweaks ---------- */

@media (min-width: 720px) {
  .stage { padding: var(--s-8) var(--s-5) var(--s-8); }
  .cards { grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
  .vlad { padding: var(--s-4) var(--s-5) var(--s-4) var(--s-4); }
  .vlad__avatar { width: 48px; height: 48px; }
  .vlad__text { font-size: var(--t-lg); }
}

@media (min-width: 1024px) {
  :root { --container: 640px; }
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .card { transform: none !important; }
}
