:root {
  --yellow: #f2c94c;
  --yellow-light: #fff6c9;
  --black: #111111;
  --ink: #222222;
  --paper: #f6f5f0;
  --card: #ffffff;
  --line: #e4e1d8;
  --muted: #6b665d;
  --warm: #d96b3b;
  --cool: #4477a8;
}

* { box-sizing: border-box; }

:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--black);
  background: var(--paper);
  line-height: 1.5;
}

body { margin: 0; min-width: 320px; }

.site-header {
  background: var(--black);
  color: white;
  border-bottom: 3px solid var(--yellow);
}

.site-header {
  padding: 0;
}

.brand,
.header-note-wrap {
  color: white;
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  text-decoration: none;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: .02em;
}

.brand-logo {
  width: 32px;
  height: 32px;
  display: block;
  border-radius: 9px;
  object-fit: cover;
}

.eyebrow,
.kicker {
  font-size: 12px;
  letter-spacing: .12em;
  font-weight: 800;
}

.site-header .eyebrow {
  color: #d0c9b8;
  text-align: right;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 70px;
}

.hero {
  max-width: 820px;
  padding: 0;
  margin-bottom: 38px;
}

.kicker {
  margin: 0 0 10px;
  color: #8a6b00;
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.04;
  letter-spacing: -.045em;
}

.intro {
  margin: 0;
  max-width: 780px;
  color: #55514a;
  font-size: 18px;
}

.tool-card,
.image-panel,
.result-panel,
.info-grid article,
.privacy-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 8px 30px rgba(17, 24, 39, .06);
}

.tool-card {
  padding: 28px;
}

.drop-zone {
  min-height: 220px;
  border: 2px dashed #d0c9b8;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: .15s ease;
  background: #fbfaf6;
}

.drop-zone.dragover {
  border-color: var(--yellow);
  background: var(--yellow-light);
  box-shadow: 0 0 0 3px rgba(242, 201, 76, .16);
}

.drop-zone input { display: none; }

.drop-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--black);
  color: var(--yellow);
  display: grid;
  place-items: center;
  font-size: 25px;
  line-height: 1;
  margin-bottom: 5px;
}

.drop-zone strong { font-size: 17px; }
.drop-zone span:not(.drop-icon),
.drop-zone small { color: var(--muted); }
.drop-zone small { margin-top: 8px; }

.button {
  border: 0;
  border-radius: 10px;
  padding: 12px 17px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.button.primary,
.button:not(.secondary) {
  background: var(--black);
  color: var(--yellow);
  box-shadow: inset 0 0 0 1px rgba(242, 201, 76, .35);
}

.button.secondary {
  background: #e4e1d8;
  color: var(--black);
}

.drop-zone .button {
  margin-top: 8px;
}

.button.primary:hover,
.button:not(.secondary):hover {
  background: var(--yellow);
  color: var(--black);
}

.button.secondary:hover {
  background: var(--black);
  color: var(--yellow);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr);
  gap: 20px;
  margin-top: 24px;
}

.hidden { display: none !important; }

.image-panel,
.result-panel {
  padding: 20px;
}

.panel-heading {
  min-height: 44px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--black);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 0;
}

.image-wrap {
  width: 100%;
  min-height: 360px;
  border-radius: 12px;
  background: #ecebe5;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.image-wrap img {
  display: block;
  max-width: 100%;
  max-height: 620px;
  object-fit: contain;
}

.result-label,
.section-label {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
}

.verdict {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.045em;
  margin-bottom: 14px;
}

.result-copy {
  margin: 0 0 25px;
  color: #55514a;
}

.temperature-labels {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
}

.temperature-labels span:last-child { text-align: right; }
.temperature-labels strong { font-size: 12px; letter-spacing: .04em; }

.temperature-bar {
  height: 18px;
  display: flex;
  background: #ded9cb;
  border: 1px solid var(--black);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  margin: 7px 0 22px;
}

.temperature-bar span,
.bias-bar span {
  height: 100%;
  display: block;
  transition: width .45s ease;
}

.warm-fill,
.bias-warm { background: var(--warm); }
.cool-fill,
.bias-cool { background: var(--cool); }

.center-line,
.bias-bar i {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #fff;
  transform: translateX(-1px);
}

.scene-label { margin-top: 5px; }

.scene-feel {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -.02em;
  margin: 2px 0 3px;
}

.scene-copy {
  margin: 0 0 24px;
  color: #55514a;
  font-size: 13px;
}

.primary-section-label {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.small-explain {
  margin: -2px 0 17px;
  color: var(--muted);
  font-size: 12px;
}

.primary-biases { display: grid; gap: 18px; }

.primary-title {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: baseline;
  font-size: 13px;
}

.primary-title span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.bias-bar {
  display: flex;
  height: 14px;
  background: #ded9cb;
  border: 1px solid var(--black);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  margin: 6px 0 4px;
}

.bias-labels {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: .08em;
  font-weight: 900;
  color: #777;
}

.analysis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
}

.mini-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px;
  min-height: 72px;
  background: #fbfaf6;
}

.mini-card span {
  display: block;
  font-size: 10px;
  letter-spacing: .1em;
  font-weight: 900;
  color: #777;
  margin-bottom: 4px;
}

.mini-card strong { font-size: 16px; }

.note {
  border-top: 1px solid var(--line);
  padding-top: 15px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 0;
}

.how-section {
  margin: 54px 0 30px;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 50px;
  padding-top: 30px;
  border-top: 3px solid var(--black);
}

h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  margin: 0;
  letter-spacing: -.03em;
}

.how-copy p {
  margin-top: 0;
  color: #55514a;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 10px 0 0;
}

.info-grid article {
  padding: 24px;
  box-shadow: none;
}

.info-grid h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.info-grid p {
  margin: 0;
  color: #55514a;
  font-size: 14px;
}

.privacy-box {
  margin-top: 20px;
  padding: 24px;
  border-top: 4px solid var(--yellow);
}

.privacy-box h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.privacy-box p {
  margin: 0;
  color: #55514a;
  font-size: 14px;
}

footer {
  background: var(--black);
  color: #d0c9b8;
  font-size: 13px;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

footer a {
  color: white;
  font-weight: 700;
}

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

  .how-section {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 640px) {
  main { padding-top: 44px; }

  .site-header .eyebrow { display: none; }

  .tool-card { padding: 18px; }
  .drop-zone { min-height: 190px; padding: 20px; }
  .image-wrap { min-height: 260px; }
  .analysis-grid { grid-template-columns: 1fr; }
  .panel-heading { flex-direction: column; }
}

@media (max-width: 520px) {
  main,
  .header-inner,
  .footer-inner {
    width: min(100% - 20px, 1180px);
  }

  .tool-card { padding: 14px; }
  .image-panel,
  .result-panel { padding: 16px; }

  .actions .button { width: 100%; }
  .temperature-labels { gap: 6px; }
}
