:root {
  color-scheme: light;
  --cream: #f8f5ee;
  --navy: #192f3d;
  --muted: #52616a;
  --green: #246449;
  --green-light: #e8f1e8;
  --red: #a03d28;
  --red-light: #faeae2;
  --line: #d5d8cf;
  --white: #fffefa;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-size: 20px; }
body { margin: 0; background: var(--cream); color: var(--navy); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; }
button, input, textarea { font: inherit; color: inherit; }
button { min-height: 60px; padding: 13px 24px; border: 2px solid transparent; border-radius: 10px; font-weight: 700; cursor: pointer; line-height: 1.35; transition: background-color .15s; }
button:disabled { cursor: default; }
button:not(:disabled):active { transform: translateY(1px); }
:focus-visible { outline: 4px solid #225eb5; outline-offset: 5px; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 700; line-height: 1.14; letter-spacing: -.035em; }
h1 { font-size: 2rem; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: 1.2rem; line-height: 1.35; }
p + p { margin-top: 12px; }
strong { font-weight: 700; }
ul, ol { padding-left: 1.35rem; }
li + li { margin-top: 12px; }
.green { color: var(--green); }
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 5; padding: 16px; background: white; color: var(--navy); }
.skip-link:focus { top: 16px; }
.site-header, main, .site-footer { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.site-header { padding-top: 38px; }
.brand { display: flex; align-items: center; gap: 20px; }
.brand-mark { display: grid; place-items: center; width: 60px; height: 66px; flex: 0 0 60px; border-radius: 19px 19px 26px 26px; color: var(--cream); background: var(--green); font-family: Georgia, serif; font-size: 2.2rem; font-weight: 700; }
.brand p { margin-top: 9px; color: var(--muted); max-width: 820px; }
.view-nav { display: flex; gap: 8px; border-bottom: 1px solid var(--line); margin-top: 30px; padding-bottom: 18px; }
.view-nav button { background: transparent; color: var(--muted); }
.view-nav button[aria-pressed="true"] { background: var(--navy); color: white; }
.view-nav button:not([aria-pressed="true"]):hover { background: #e8e7df; }
.view-nav span { margin-left: 14px; font-weight: 400; font-size: .9rem; opacity: .85; }
main { padding-block: 36px 50px; }
.quiz-view, .results-view { max-width: 780px; margin-inline: auto; }
.progress-row { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 12px; font-size: .95rem; }
.progress-row p { font-weight: 700; }
.progress-row span { color: var(--muted); }
progress { display: block; width: 100%; height: 8px; overflow: hidden; border: none; border-radius: 10px; background: #dedfd5; color: var(--green); appearance: none; margin-bottom: 30px; }
progress::-webkit-progress-bar { background: #dedfd5; border-radius: 10px; }
progress::-webkit-progress-value { background: var(--green); border-radius: 10px; }
progress::-moz-progress-bar { background: var(--green); border-radius: 10px; }
.intro { margin-top: 12px; color: var(--muted); }
.message-card { margin-top: 28px; border: 1px solid #cdd2cd; border-radius: 16px; background: var(--white); box-shadow: 0 5px 0 #eae7de; overflow: hidden; }
.message-type { display: flex; align-items: center; gap: 12px; padding: 18px 26px; background: #efefe8; border-bottom: 1px solid var(--line); font-size: .9rem; font-weight: 700; }
.type-icon { font-size: 1.25rem; line-height: 1; }
#message-detail { margin-left: auto; color: var(--muted); font-weight: 400; }
.message-header { padding: 22px 28px 0; overflow-wrap: anywhere; }
.message-header p { margin-top: 4px; }
.message-header .header-label { color: var(--muted); font-weight: 400; }
.message-body { padding: 22px 28px 26px; font-size: 1.2rem; line-height: 1.6; overflow-wrap: anywhere; white-space: pre-line; }
.message-caption { padding: 0 28px 22px; color: var(--muted); font-size: .9rem; }
.message-card.sms .message-body { background: #eaf0f3; border-radius: 15px 15px 15px 3px; margin: 22px 28px; padding: 20px 24px; }
.message-card.email .message-header { border-bottom: 1px solid var(--line); padding-bottom: 18px; font-size: .95rem; }
.message-card.call .message-body { border-left: 4px solid #b3c3bb; margin: 24px 28px; padding: 0 0 0 22px; }
mark { padding: 1px 3px; background: #ffe4a4; color: #3c2c12; border-radius: 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.answer-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 27px; }
.answer { display: flex; justify-content: center; align-items: center; gap: 16px; min-height: 78px; font-size: 1.35rem; }
.answer span { font-size: 1.8rem; font-weight: 400; line-height: 1; }
.real { background: var(--green-light); border-color: var(--green); color: #194c36; }
.real:hover:not(:disabled) { background: #d4e7d7; }
.scam { background: var(--red-light); border-color: var(--red); color: #8c321f; }
.scam:hover:not(:disabled) { background: #f4d5c7; }
.answer:disabled { opacity: .55; }
.answer.selected { opacity: 1; box-shadow: 0 0 0 3px var(--cream), 0 0 0 5px currentColor; }
.feedback:empty { display: none; }
.feedback { margin-top: 28px; padding: 24px; border-left: 5px solid var(--green); background: var(--green-light); border-radius: 0 10px 10px 0; }
.feedback.incorrect { border-color: var(--red); background: var(--red-light); }
.feedback h3 { margin-bottom: 12px; }
.feedback h4 { margin: 18px 0 10px; font-size: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li { margin: 0; padding: 5px 12px; border-radius: 6px; background: var(--white); border: 1px solid #a9b8ad; font-size: .9rem; font-weight: 600; }
.primary { background: var(--green); color: white; }
.primary:hover { background: #174a34; }
.secondary { border-color: #8e9c94; background: var(--white); }
.secondary:hover { background: #eeeee6; }
.next-button { width: 100%; margin-top: 22px; display: flex; align-items: center; justify-content: space-between; }
.gentle-note { color: var(--muted); text-align: center; margin-top: 28px; font-size: .95rem; }
.gentle-note span { color: var(--green); margin-right: 8px; }
.site-footer { display: flex; justify-content: space-between; gap: 32px; padding: 25px 0 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.site-footer p + p { margin: 0; flex-shrink: 0; }
.eyebrow { color: var(--green); font-weight: 700; margin-bottom: 12px; }
.score-panel { display: flex; align-items: center; gap: 32px; padding: 30px 0; margin: 18px 0; border-block: 1px solid var(--line); }
.score { font-family: Georgia, serif; font-size: 3.7rem; font-weight: 700; line-height: 1; color: var(--green); white-space: nowrap; }
.score-panel h3 { font-size: 1.5rem; }
.score-panel p:not(.score) { color: var(--muted); margin-top: 8px; }
.missed-list { list-style: none; padding: 0; margin-bottom: 32px; }
.missed-list li { border-bottom: 1px solid var(--line); padding: 15px 0; }
.missed-list p { font-size: .95rem; margin-top: 6px; }
.golden-rules { margin-top: 30px; padding: 28px; border-radius: 14px; background: var(--green-light); }
.golden-rules ol { margin-bottom: 0; }
.result-actions { display: grid; gap: 14px; margin-top: 30px; }
.plan-intro { margin-bottom: 36px; }
.plan-intro > p:not(.eyebrow) { margin-top: 14px; }
.privacy { color: var(--green); font-weight: 600; }
.plan-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 44px; align-items: start; }
fieldset { min-width: 0; margin: 0 0 32px; padding: 0 0 28px; border: 0; border-bottom: 1px solid var(--line); }
legend { width: 100%; padding: 0; margin-bottom: 24px; font-size: 1.2rem; font-weight: 700; }
.step-number { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; margin-right: 9px; background: var(--green-light); color: var(--green); font-size: .95rem; }
label { display: block; margin-top: 22px; margin-bottom: 8px; font-weight: 600; }
fieldset > label:first-of-type { margin-top: 0; }
input:not([type="checkbox"]), textarea { display: block; width: 100%; min-height: 60px; border: 2px solid #8e9c94; border-radius: 8px; background: var(--white); padding: 12px 14px; font-size: 1rem; }
input::placeholder { color: #606b70; opacity: 1; }
.optional { font-weight: 400; }
.word-row { display: flex; gap: 10px; }
.word-row input { min-width: 0; }
.word-row button { flex-shrink: 0; padding-inline: 15px; }
.field-tip { color: var(--muted); font-size: .9rem; margin-top: 10px; }
.contact-fields { display: grid; grid-template-columns: 1fr 1.15fr; gap: 14px; padding: 8px 0 20px; border-bottom: 1px dashed var(--line); }
.contact-fields:last-child { border: 0; padding-bottom: 0; }
.contact-fields label { font-size: .9rem; margin: 14px 0 0; }
.contact-fields input { margin-top: 8px; }
.check-label { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; margin: 0; font-weight: 400; min-height: 60px; cursor: pointer; }
.check-label input { width: 26px; height: 26px; flex: 0 0 26px; accent-color: var(--green); margin: 3px 0 0; }
.preview-label { color: var(--muted); font-size: .8rem; letter-spacing: .09em; font-weight: 700; margin-bottom: 14px; }
.wallet-card { padding: 28px; border: 2px solid var(--green); background: var(--white); border-radius: 16px; box-shadow: 5px 6px 0 #e3e9df; overflow-wrap: anywhere; }
.wallet-top { display: flex; align-items: center; gap: 10px; color: var(--green); padding-bottom: 18px; border-bottom: 1px solid var(--line); font-size: .9rem; font-weight: 700; }
.wallet-card h3 { font-family: Georgia, serif; font-size: 1.7rem; margin: 22px 0; letter-spacing: -.025em; }
.card-label { font-size: .75rem; letter-spacing: .07em; font-weight: 700; color: var(--muted); }
.preview-word { margin-top: 7px; color: var(--green); font-family: Georgia, serif; font-weight: 700; font-size: 1.75rem; line-height: 1.25; }
.wallet-section { margin-top: 24px; }
.wallet-section > p + p { margin-top: 7px; }
.preview-contacts { list-style: none; padding: 0; margin: 8px 0 0; }
.preview-contacts li { margin-top: 9px; }
.preview-contacts strong, .preview-contacts span { display: block; }
.preview-rules { font-size: .9rem; margin-bottom: 0; }
.preview-rules li + li { margin-top: 8px; }
.card-bottom { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 18px; font-weight: 700; color: var(--green); }
.card-bottom span { font-size: .8rem; color: var(--muted); font-weight: 400; }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
.text-button { grid-column: 1 / -1; color: var(--muted); background: transparent; text-decoration: underline; text-underline-offset: 5px; }
.text-button:hover { background: #eeeee6; }
#plan-action-status { margin-top: 12px; color: var(--green); }
.family-guide { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 26px; }
.family-guide ol { color: var(--muted); font-size: .95rem; }
.family-guide strong { color: var(--navy); }
textarea { resize: vertical; }
@media (max-width: 900px) {
  .plan-layout { gap: 28px; }
  .contact-fields { grid-template-columns: 1fr; gap: 0; }
  .word-row { flex-wrap: wrap; }
  .word-row button { width: 100%; }
  .site-footer { flex-direction: column; gap: 10px; }
}
@media (max-width: 699px) {
  .site-header, main, .site-footer { width: calc(100% - 36px); }
  .site-header { padding-top: 24px; }
  .brand { gap: 13px; align-items: flex-start; }
  .brand-mark { width: 45px; height: 52px; flex-basis: 45px; font-size: 1.8rem; border-radius: 14px 14px 21px 21px; }
  h1 { font-size: 1.7rem; }
  .brand p { font-size: .95rem; margin-top: 9px; }
  .view-nav { flex-direction: column; margin-top: 24px; gap: 6px; padding-bottom: 16px; }
  .view-nav button { text-align: left; padding-inline: 18px; }
  .view-nav span { float: right; margin: 2px 0 0 12px; font-size: .8rem; }
  main { padding-top: 25px; }
  .progress-row { font-size: .85rem; gap: 8px; }
  progress { margin-bottom: 25px; }
  .message-type { padding: 15px 18px; gap: 10px; flex-wrap: wrap; }
  .message-header { padding: 20px 20px 0; }
  .message-body { padding: 20px; font-size: 1.1rem; }
  .message-caption { padding: 0 20px 18px; }
  .message-card.sms .message-body { margin: 20px; padding: 18px; }
  .message-card.call .message-body { margin: 22px 20px; padding-left: 17px; }
  .answer-buttons { grid-template-columns: 1fr; gap: 13px; }
  .answer { min-height: 70px; }
  .feedback { padding: 20px; }
  .gentle-note { text-align: left; }
  .plan-layout { grid-template-columns: 1fr; gap: 20px; }
  .contact-fields { grid-template-columns: 1fr; gap: 0; }
  .score-panel { gap: 20px; flex-wrap: wrap; }
  .score { font-size: 3.2rem; }
  .golden-rules { padding: 23px; }
  .wallet-card { padding: 23px; }
  .card-actions { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .progress-row { flex-direction: column; gap: 2px; }
  .view-nav span { float: none; display: block; margin: 4px 0 0; }
  .contact-fields { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
@page { margin: 15mm; size: auto; }
@media print {
  html { font-size: 20px; }
  body { background: white; color: #111; }
  body > * { display: none !important; }
  body > main { display: block !important; width: 100%; margin: 0; padding: 0; }
  main > * { display: none !important; }
  main > #plan-view { display: block !important; }
  #plan-view > * { display: none !important; }
  #plan-view > .plan-layout { display: block !important; }
  .plan-layout > * { display: none !important; }
  .plan-layout > .preview-pane { display: block !important; }
  .preview-pane > * { display: none !important; }
  .preview-pane > #wallet-card { display: block !important; }
  .wallet-card { width: 100%; box-shadow: none; border: 2px solid #111; padding: 22px; border-radius: 10px; break-inside: avoid; }
  .wallet-card, .wallet-card * { color: #111 !important; background: white !important; }
  .wallet-card h3 { margin: 16px 0; }
  .wallet-section { margin-top: 16px; }
  .preview-contacts li { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2px 16px; }
  .card-bottom { margin-top: 16px; }
}
