:root {
  --cream: #fff9f5;
  --paper: #ffffff;
  --ink: #25171a;
  --muted: #735e61;
  --burgundy: #5a1828;
  --cherry: #b51f35;
  --rose: #f2d9d5;
  --line: #e6d5d1;
  --serif: Georgia, "Times New Roman", serif;
  font: 16px/1.5 Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { min-width: 320px; min-height: 100%; background: var(--cream); }
body { margin: 0; color: var(--ink); }
a { color: var(--burgundy); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.shell, footer { width: min(100%, 1160px); margin: auto; padding: 16px; }
.brand { min-height: 40px; display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.brand a { color: var(--burgundy); font: 700 1.45rem/1 var(--serif); letter-spacing: -.04em; text-decoration: none; }
.tagline { margin-left: 12px; color: var(--muted); font-size: .8rem; }
.hero { padding: 18px 0 10px; }
.eyebrow { margin: 0 0 8px; color: var(--burgundy); font-size: .69rem; font-weight: 800; letter-spacing: .12em; }
.mobile-title { display: none; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.05; letter-spacing: -.035em; }
h1 { max-width: 14ch; margin: 0; font-size: clamp(2.25rem, 9.4vw, 3.5rem); font-weight: 700; }
h2 { margin: 0 0 10px; font-size: clamp(1.32rem, 4vw, 2rem); }
h3 { margin: 18px 0 8px; font-size: 1.2rem; }
p { margin: 0 0 12px; }
.lede { max-width: 38ch; margin-top: 12px; color: var(--muted); }
.mobile-lens-note { display: none; }
.editorial-cover { display: block; margin-top: 16px; overflow: hidden; border-radius: 2px; background: var(--rose); }
.editorial-cover img { display: block; width: 100%; height: 170px; object-fit: cover; object-position: 50% 38%; }
.card { border: 1px solid var(--line); border-radius: 2px; background: var(--paper); box-shadow: 0 12px 26px rgba(90, 24, 40, .07); padding: 16px; }
.quiz { width: min(100%, 660px); margin: 28px auto; padding: clamp(18px, 4vw, 34px); }
.quiz h1 { max-width: 17ch; }
.quiz .primary { margin-top: 12px; }
.quiz .secondary { margin-top: 9px; }
.quiz-progress { height: 8px; margin: 12px 0 24px; overflow: hidden; border-radius: 100px; background: var(--rose); }
.quiz-progress span { display: block; width: 0; height: 100%; background: var(--cherry); transition: width .2s ease; }
.quiz-options { display: grid; gap: 9px; margin-top: 20px; }
.quiz-option { display: flex; align-items: center; gap: 12px; min-height: 52px; border: 1px solid var(--line); padding: 10px 12px; background: #fffdfb; color: var(--ink); cursor: pointer; }
.quiz-option:focus-within { outline: 3px solid var(--cherry); outline-offset: 2px; }
.quiz-option input { width: 20px; height: 20px; margin: 0; accent-color: var(--cherry); }
.quiz-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.quiz-actions .secondary { width: auto; margin: 0; }
.text-button { min-height: 44px; padding: 8px; background: transparent; color: var(--burgundy); font-family: inherit; font-size: .88rem; text-decoration: underline; text-underline-offset: 3px; }
.quiz-insights { display: grid; gap: 12px; margin: 22px 0; padding: 0; list-style: none; }
.quiz-insights li { border-left: 2px solid var(--cherry); padding-left: 12px; color: var(--ink); }
.quiz-skip { margin: 24px 0 0; text-align: center; font-size: .86rem; }
.uploader-card { margin-top: 12px; }
.tiny, .limitation, .mini-limit { color: var(--muted); font-size: .86rem; }
.reflection-label { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 7px; color: var(--burgundy); font: 700 1rem/1.2 var(--serif); }
.reflection-label span { color: var(--muted); font: 600 .76rem/1.3 Inter, system-ui, sans-serif; }
textarea { width: 100%; min-height: 112px; resize: vertical; border: 1px solid var(--line); border-radius: 2px; padding: 11px; color: var(--ink); background: #fffdfb; font: inherit; }
textarea:focus-visible { outline: 3px solid var(--cherry); outline-offset: 2px; }
.dropzone { min-height: 140px; display: grid; align-content: center; justify-items: center; border: 1px dashed var(--burgundy); border-radius: 2px; background: #fffdfb; color: var(--burgundy); cursor: pointer; text-align: center; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.dropzone:hover, .dropzone:focus-within { border-color: var(--cherry); box-shadow: 0 0 0 3px rgba(181, 31, 53, .12); transform: translateY(-1px); }
.dropzone span, .dropzone small { display: block; }
.dropzone span { font: 700 1.1rem/1.1 var(--serif); }
.dropzone small { margin-top: 5px; color: var(--muted); }
input[type=file] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.previews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0; margin: 11px 0 0; list-style: none; }
.previews .preview { position: relative; display: grid; min-width: 0; gap: 5px; margin: 0; }
.preview img { width: 100%; aspect-ratio: 1.3; object-fit: cover; border-radius: 2px; background: var(--rose); }
.preview span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: .75rem; }
.remove { position: absolute; top: 1px; right: 1px; display: grid; place-items: center; width: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(37, 23, 26, .82); color: #fff; font-size: 1.35rem; line-height: 1; }
.prepay { display: flex; justify-content: space-between; gap: 10px; margin: 13px 0 10px; padding: 9px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--burgundy); font-size: .88rem; font-weight: 700; }
.payment-trust { color: var(--ink); font-weight: 600; }
.payment-methods { margin: -2px 0 10px; color: var(--muted); font-size: .76rem; line-height: 1.35; }
button, .primary-link { min-height: 48px; border: 0; border-radius: 2px; padding: 12px 16px; font: 700 1rem/1.15 var(--serif); cursor: pointer; transition: transform .18s ease, background .18s ease; }
button:hover, .primary-link:hover { transform: translateY(-1px); }
.primary, .primary-link { color: #fff; background: var(--cherry); box-shadow: 0 8px 16px rgba(181, 31, 53, .16); text-decoration: none; }
.primary { width: 100%; }
.secondary { width: 100%; margin-top: 12px; border: 1px solid var(--burgundy); background: transparent; color: var(--burgundy); }
.example-trigger { width: 100%; margin-top: 9px; border: 1px solid var(--burgundy); background: transparent; color: var(--burgundy); font-size: .95rem; }
button:disabled { cursor: not-allowed; opacity: .48; transform: none; }
button:focus-visible, a:focus-visible, input:focus-visible, .card:focus-visible, summary:focus-visible { outline: 3px solid var(--cherry); outline-offset: 3px; }
.error { margin: 10px 0; border-left: 3px solid var(--cherry); background: var(--rose); padding: 9px 10px; color: var(--burgundy); font-weight: 700; }
.progress { min-height: 24px; margin: 11px 0 0; color: var(--burgundy); font-weight: 700; }
.progress[data-loading="true"] { border-bottom: 2px solid var(--burgundy); padding-bottom: 4px; }
.clickwrap { margin: 8px 0 0; color: var(--muted); font-size: .75rem; line-height: 1.38; }
.info-blocks { display: grid; gap: 14px; margin: 24px 0; }
.info-block { border-top: 1px solid var(--line); padding: 14px 0 0; }
.info-block h2 { margin-bottom: 5px; color: var(--burgundy); font-size: 1.18rem; }
.info-block p { margin: 0; color: var(--muted); font-size: .91rem; }
.result, .report { margin: 20px 0; }
.report { background: var(--cream); border-color: var(--line); box-shadow: none; }
.report h3 { border-top: 1px solid var(--line); padding-top: 13px; color: var(--burgundy); }
#report-observations p { border-left: 2px solid var(--cherry); padding-left: 10px; }
#report-questions-list { margin: 0; padding-left: 1.25rem; }
#report-questions-list li { margin: 0 0 8px; }
html.modal-open, body.modal-open { overflow: hidden; }
dialog { width: min(calc(100% - 32px), 580px); max-height: min(84vh, 680px); overflow: auto; border: 1px solid var(--line); border-radius: 2px; background: var(--paper); color: var(--ink); padding: 18px; box-shadow: 0 22px 60px rgba(37, 23, 26, .28); }
dialog::backdrop { background: rgba(37, 23, 26, .48); }
.example-report-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.dialog-close { display: grid; place-items: center; width: 44px; min-height: 44px; margin: -8px -8px 0 0; padding: 0; border: 1px solid var(--line); background: var(--paper); color: var(--burgundy); font-family: inherit; font-size: 1.5rem; }
.example-report-head .eyebrow { padding-top: 6px; }
dialog h2 { color: var(--burgundy); }
dialog h3 { border-top: 1px solid var(--line); padding-top: 13px; color: var(--burgundy); }
.example-signals, .example-questions { margin: 0; padding-left: 1.25rem; }
.example-signals li, .example-questions li { margin-bottom: 9px; }
.example-signals span { color: var(--muted); }
footer { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 8px; padding-bottom: 24px; color: var(--muted); font-size: .85rem; }
footer a { color: var(--muted); text-decoration: none; }
.organic { max-width: 740px; }
.organic .hero { padding-bottom: 28px; }
.organic .primary-link { display: inline-flex; align-items: center; justify-content: center; margin-top: 15px; }
.organic .mini-limit { margin: 12px 0 0; }
.organic-explore { margin-top: 15px; color: var(--muted); font-size: .86rem; }
.organic-explore span:first-child { font-weight: 700; }
.note { max-width: 760px; }
.note article, .note > section { padding: 20px 0 28px; }
.note h1 { max-width: 18ch; }
.note article > section { margin-top: 28px; }
.note article > section p { max-width: 66ch; }
.notes-home { margin-left: auto; font-size: .86rem; font-weight: 700; }
.note-cta { margin: 30px 0 22px; border: 1px solid var(--line); background: var(--paper); padding: 18px; }
.note-cta h2 { color: var(--burgundy); }
.note-cta .primary-link { display: inline-flex; align-items: center; margin-top: 4px; }
.related-notes { display: flex; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; font-size: .9rem; }
.notes-list ul { display: grid; gap: 10px; padding: 0; margin: 28px 0; list-style: none; }
.notes-list a { display: grid; gap: 6px; border: 1px solid var(--line); background: var(--paper); padding: 16px; text-decoration: none; }
.notes-list strong { color: var(--burgundy); font: 700 1.18rem/1.1 var(--serif); }
.notes-list span { color: var(--muted); font-size: .88rem; }
.admin-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.metric { margin: .25rem 0; color: var(--burgundy); font: 700 2rem/1 var(--serif); }
.notice { border-left: 3px solid var(--burgundy); background: var(--rose); padding: 9px 10px; }
.source-cards, .reply-options { display: grid; gap: 12px; margin: 18px 0; }
.source-card, .reply-option { border: 1px solid var(--line); background: var(--cream); padding: 15px; }
.source-card p:last-child, .reply-option p { margin-bottom: 0; }
.reply-option h4 { margin: 0 0 7px; color: var(--burgundy); font: 700 1.15rem/1.1 var(--serif); }
.paywall { margin-top: 24px; border-top: 2px solid var(--burgundy); padding-top: 20px; }
.payment-line { color: var(--burgundy); font-weight: 800; }
#report-limits-list { padding-left: 20px; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td { padding: 9px 6px; border-bottom: 1px solid var(--line); text-align: left; }

@media (min-width: 800px) {
  .shell, footer { padding: 24px; }
  .hero-upload { display: grid; grid-template-columns: 5fr 7fr; gap: 38px; align-items: center; min-height: 470px; }
  .hero { padding: 22px 0; }
  .editorial-cover img { height: 300px; }
  .uploader-card { margin: 0; padding: 22px; }
  .quiz { margin: 48px auto; }
  .info-blocks { grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 38px; }
  .previews { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 500px) {
  html, body { background: var(--paper); }
  .shell { width: 100%; padding: 0; }
  footer { padding: 18px 16px 24px; }
  .brand { min-height: 48px; padding: 0 16px; border-bottom: 1px solid var(--line); }
  .brand a { font-size: 1.28rem; }
  .hero { padding: 17px 16px 10px; }
  .desktop-title, .editorial-cover { display: none; }
  .mobile-title { display: inline; }
  .mobile-lens-note { display: block; color: var(--muted); margin: 11px 0 0; max-width: 36ch; font-size: .85rem; line-height: 1.36; }
  h1 { max-width: 17ch; font-size: 1.82rem; line-height: 1.02; }
  .lede { max-width: 36ch; margin-top: 6px; font-size: .86rem; line-height: 1.34; }
  .uploader-card { margin: 0; padding: 12px 16px 8px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .quiz { width: 100%; min-height: calc(100svh - 48px); margin: 0; border: 0; border-radius: 0; box-shadow: none; padding: 24px 16px; }
  .quiz h1 { font-size: 2rem; }
  .quiz-option { min-height: 52px; }
  .uploader-card h2 { margin-bottom: 9px; font-size: 1.25rem; }
  .uploader-card #empty-state { display: none; }
  .dropzone { min-height: 148px; border-style: solid; background: var(--cream); }
  .dropzone span { font-size: 1.2rem; }
  .prepay { margin: 12px 0 7px; padding: 9px 0; }
  .payment-methods { margin-bottom: 9px; }
  .clickwrap { margin-top: 5px; font-size: .68rem; line-height: 1.34; }
  .primary { min-height: 48px; font-size: 1.08rem; }
  .example-trigger { min-height: 36px; margin-top: 3px; padding: 7px 0; border: 0; color: var(--muted); font-family: inherit; font-size: .82rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
  dialog { width: min(calc(100% - 24px), 580px); max-height: 82vh; padding: 16px; }
  .organic-explore { line-height: 1.7; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
