/* Business Legal Checkup (quiz.richardsonbusinesslaw.com)
   Self-contained so this folder can deploy on its own. Brand tokens match the main site's css/styles.css;
   change them in both places. */

/* Fonts are self-hosted (same files as the main site: Instrument Serif for headings, Source Serif 4 for text) so the page loads nothing from third parties. */
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('../assets/fonts/instrument-serif-italic-latin.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url('../assets/fonts/instrument-serif-normal-latin.woff2') format('woff2'); }
@font-face { font-family: 'Source Serif 4'; font-style: italic; font-weight: 400; font-display: swap; src: url('../assets/fonts/source-serif-4-italic-latin.woff2') format('woff2'); }
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 400; font-display: swap; src: url('../assets/fonts/source-serif-4-normal-latin.woff2') format('woff2'); }

:root {
  color-scheme: light;
  --green: #1F3D33;
  --green-dark: #14281f;
  --green-line: rgba(201,167,75,.32);
  --gold: #C9A74B;
  --gold-pale: #e7d7a6;
  --gold-ink: #715a16;
  --ivory: #f3efe5;
  --ivory-2: #ebe5d6;
  --ink: #1f2420;
  --muted: #555a53;
  --line: #d3cbb8;
  --on-dark: #f3efe5;
  --on-dark-muted: #bcc8c0;
  --display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --pad: clamp(20px, 4.6vw, 64px);
  --ease: cubic-bezier(.22,.61,.24,1);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--ivory); color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.62; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; text-wrap: balance; margin: 0; line-height: 1.04; }
p, ol, ul, dl, dd, blockquote { margin: 0; padding: 0; }
ol, ul { list-style: none; }
p, li, blockquote, dd { text-wrap: pretty; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
:where(button, a, input, summary):focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1:focus, h2:focus { outline: 0; }
.ck-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Buttons and links (same pill as the main site) */
.pill { display: inline-flex; align-items: center; gap: 10px; background: var(--green); color: var(--ivory); font-family: var(--body); font-weight: 400; font-size: 16.5px; line-height: 1.3; padding: 15px 30px; min-height: 48px; border-radius: 999px; text-decoration: none; border: 1px solid var(--green); white-space: nowrap; }
.ck-dk .pill { background: var(--ivory); color: var(--green-dark); border-color: var(--ivory); }
.pill { transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.pill:hover { background-color: var(--green-dark); border-color: var(--green-dark); }
.ck-dk .pill:hover { background-color: var(--gold); border-color: var(--gold); color: var(--green-dark); }
.pill .arrow { flex: none; transition: transform .3s var(--ease); }
.pill:hover .arrow { transform: translateX(3px); }
.pill .arrow.down { transform: rotate(90deg); }
.pill:hover .arrow.down { transform: rotate(90deg) translateX(3px); }
.pill:disabled { background: var(--line); border-color: var(--line); color: var(--muted); cursor: not-allowed; }
.ck-tlink { font-size: 15.5px; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; padding: 10px 0; min-height: 44px; white-space: nowrap; color: var(--muted); }
.ck-tlink:hover, .ck-strong { color: var(--green); }
.ck-dk .ck-tlink { color: var(--on-dark-muted); }
.ck-dk .ck-tlink:hover, .ck-dk .ck-strong { color: var(--on-dark); }
@media (prefers-reduced-motion: reduce) { .pill, .pill .arrow { transition: none; } }

/* Surfaces */
.ck-dk { background: var(--green); color: var(--on-dark); }
.ck-screen { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.ck-cover { min-height: clamp(620px, 56vw, 780px); display: flex; flex-direction: column; }
.ck-rcover { min-height: clamp(560px, 50vw, 720px); display: flex; flex-direction: column; }
.ck-band { padding: clamp(48px, 6vw, 88px) var(--pad); }
.ck-band + .ck-band { padding-top: 0; }

/* Type */
.ck-h-xl, .ck-h-lg, .ck-h-q, .ck-h-r { color: inherit; }
.ck-h-xl { font-size: clamp(44px, 6.4vw, 84px); line-height: 1.02; max-width: 15em; }
.ck-h-lg { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.02; }
.ck-h-q { font-size: clamp(30px, 4vw, 52px); line-height: 1.08; max-width: 21em; color: var(--green); }
.ck-h-r { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.04; max-width: 17em; }
.ck-lede { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; color: var(--muted); max-width: 34em; margin-top: 22px; }
.ck-dk .ck-lede { color: var(--on-dark-muted); }
.ck-fine { font-size: 14px; line-height: 1.55; color: var(--muted); margin-top: 18px; max-width: 40em; }
.ck-dk .ck-fine { color: var(--on-dark-muted); }
.ck-fine + .ck-fine { margin-top: 8px; }
.ck-note { font-size: 15.5px; line-height: 1.55; color: var(--on-dark-muted); margin-top: 20px; max-width: 30em; }

/* Header and footers */
.ck-top { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding: clamp(16px, 2.4vw, 30px) var(--pad); }
.ck-logo { display: block; line-height: 0; flex: none; }
.ck-logo img { height: 40px; width: auto; display: block; }
@media (max-width: 640px) { .ck-logo img { height: 30px; } }
.ck-top-r { display: flex; align-items: center; gap: 22px; text-align: right; }
.ck-label { font-family: var(--body); font-size: 16px; color: var(--muted); }
.ck-dk .ck-label { color: var(--on-dark-muted); }
.ck-mid { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 28px var(--pad) 48px; }
.ck-acts { display: flex; align-items: center; justify-content: center; gap: 14px 28px; flex-wrap: wrap; margin-top: 34px; }
.ck-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px 28px; flex-wrap: wrap; padding: 0 var(--pad) clamp(16px, 2.4vw, 28px); min-height: 44px; }
.ck-hint { font-family: var(--body); font-size: 15px; color: var(--muted); }
.ck-dk .ck-hint { color: var(--on-dark-muted); }
@media (hover: none) { .ck-hint { display: none; } }
.ck-prog { position: sticky; top: 0; height: 3px; background: var(--line); z-index: 5; }
.ck-prog i { display: block; height: 100%; background: var(--gold); }
.ck-site { background: var(--green-dark); color: var(--on-dark-muted); font-size: 13.5px; line-height: 1.6; padding: 32px var(--pad) 36px; }
.ck-site-in { max-width: 760px; margin: 0 auto; display: grid; gap: 8px; text-align: center; }
.ck-site-name { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 14px; font-family: var(--display); font-size: 22px; color: var(--on-dark); }
.ck-site-name i { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); flex: none; }

/* Status marks: hollow = not yet addressed, half = worth revisiting, filled = in place */
.ck-mk { display: inline-block; width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid currentColor; flex: none; }
.ck-mk-g { background: currentColor; }
.ck-mk-y { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }

/* Landing: what it covers */
.ck-about-in { max-width: 980px; margin: 0 auto; }
.ck-about .ck-h-r { color: var(--green); }
.ck-areas { border-top: 1px solid var(--green); margin: 28px 0 clamp(44px, 5vw, 64px); }
.ck-areas > li { display: grid; grid-template-columns: 56px minmax(0, 1.4fr) minmax(0, 1fr); gap: 8px 28px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); }
.ck-areas h3 { font-size: 28px; line-height: 1.25; color: var(--green); }
.ck-areas p { font-size: 15.5px; line-height: 1.55; color: var(--muted); margin-top: 6px; }
.ck-topics { display: grid; gap: 4px; }
.ck-topics li { position: relative; padding-left: 18px; font-size: 15.5px; line-height: 1.5; }
.ck-topics li::before { content: ""; position: absolute; left: 0; top: .75em; width: 8px; height: 1px; background: var(--gold); }
@media (max-width: 760px) { .ck-topics { margin-top: 10px; } }
@media (max-width: 760px) { .ck-areas > li { grid-template-columns: 44px minmax(0, 1fr); } .ck-areas .ck-topics { grid-column: 2; } }
.ck-n { font-family: var(--display); font-size: 32px; line-height: 1; color: var(--gold-ink); }
.ck-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 22px 36px; border-top: 1px solid var(--green); padding-top: 20px; }
.ck-legend li { font-size: 15px; line-height: 1.55; color: var(--muted); }
.ck-legend b { display: flex; align-items: center; gap: 10px; font-weight: 400; font-family: var(--display); font-size: 22px; color: var(--green); margin-bottom: 6px; }
.ck-quote { max-width: 720px; margin: clamp(52px, 6vw, 84px) auto 0; text-align: center; font-family: var(--display); font-size: clamp(28px, 3.2vw, 40px); line-height: 1.45; color: var(--green); text-wrap: balance; }
.ck-quote::before { content: ""; display: block; width: 48px; height: 1px; background: var(--gold); margin: 0 auto 28px; }
.ck-quote cite { display: block; margin-top: 18px; font-family: var(--body); font-style: normal; font-size: 16px; color: var(--muted); }

/* Area intro */
.ck-bign { font-family: var(--display); font-size: clamp(88px, 13vw, 168px); line-height: .9; color: var(--gold); margin-bottom: 26px; font-variant-numeric: lining-nums; }

/* Question */
.ck-ans { width: 100%; max-width: 760px; margin-top: clamp(26px, 3.4vw, 42px); text-align: left; border-top: 1px solid var(--green); }
.ck-ans li { border-bottom: 1px solid var(--line); }
.ck-ans button { display: grid; grid-template-columns: 38px 1fr 18px; gap: 0 6px; align-items: baseline; width: 100%; min-height: 58px; padding: 16px 8px 16px 6px; font-size: 17px; line-height: 1.45; }
.ck-ans button:hover { background: rgba(255,255,255,.55); color: var(--green); }
.ck-l { font-family: var(--display); font-size: 24px; color: var(--gold-ink); }
.ck-dot { width: 10px; height: 10px; border-radius: 50%; justify-self: end; align-self: center; }
.ck-ans .sel { color: var(--green); background: rgba(255,255,255,.55); }
.ck-ans .sel .ck-dot { background: var(--gold); }
.ck-ans .dim { color: var(--muted); }

/* Results cover */
.ck-nums { display: flex; justify-content: center; margin-top: clamp(28px, 3.6vw, 46px); }
.ck-nums div { display: flex; flex-direction: column-reverse; align-items: center; padding: 0 clamp(14px, 4.6vw, 64px); border-left: 1px solid var(--green-line); }
.ck-nums div:first-child { border-left: 0; }
.ck-nums dd { font-family: var(--display); font-size: clamp(56px, 8vw, 104px); line-height: 1; color: var(--gold); font-variant-numeric: lining-nums; }
.ck-nums dt { margin-top: 12px; font-family: var(--body); font-size: 16px; color: var(--on-dark-muted); }
.ck-marks { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 18px; margin-top: clamp(26px, 3.2vw, 40px); color: var(--gold); }
.ck-marks span { display: flex; gap: 6px; }
@media (max-width: 520px) { .ck-nums div { padding: 0 12px; } .ck-nums dt { font-size: 14px; } }

/* Review answers */
.ck-review { max-width: 860px; margin: 0 auto; }
.ck-review summary { list-style: none; cursor: pointer; text-align: center; font-family: var(--display); font-size: 28px; color: var(--green); padding: 8px 0; }
.ck-review summary::-webkit-details-marker { display: none; }
.ck-review summary::after { content: " +"; color: var(--gold-ink); }
.ck-review[open] summary::after { content: " \2212"; }
.ck-grp { margin-top: 34px; }
.ck-grp h2 { display: flex; align-items: baseline; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--green); font-size: 28px; color: var(--green); }
.ck-grp li { display: grid; grid-template-columns: 11px minmax(0, 1fr) auto auto; gap: 6px 18px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ck-grp li > .ck-mk { margin-top: 7px; color: var(--green); }
.ck-t { font-size: 16px; line-height: 1.4; }
.ck-a { font-size: 14.5px; line-height: 1.45; color: var(--muted); margin-top: 3px; }
.ck-grp .ck-st { font-size: 14px; color: var(--muted); white-space: nowrap; align-self: center; }
.ck-grp .ck-tlink { align-self: center; }
@media (max-width: 640px) {
  .ck-grp li { grid-template-columns: 11px minmax(0, 1fr) auto; }
  .ck-grp .ck-st { grid-column: 2; grid-row: 2; }
  .ck-grp li .ck-tlink { grid-column: 3; grid-row: 1; }
}

/* Email gate */
.ck-gate form { max-width: 620px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; }
.ck-gate .ck-h-r { color: var(--green); }
.ck-field { display: flex; gap: 16px; align-items: center; width: 100%; max-width: 560px; margin-top: 30px; padding-bottom: 10px; border-bottom: 1px solid var(--green); }
.ck-field input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 18px; color: var(--ink); padding: 10px 0; min-height: 44px; }
.ck-field input::placeholder { color: var(--muted); }
.ck-field input:focus { outline: 0; }
.ck-field:focus-within { border-bottom-color: var(--gold); box-shadow: 0 1px var(--gold); }
.ck-field.bad { border-bottom: 2px solid var(--ink); }
.ck-fine.err { color: var(--ink); }
@media (max-width: 520px) { .ck-field { flex-direction: column; align-items: stretch; border-bottom: 0; gap: 12px; } .ck-field input { border-bottom: 1px solid var(--green); } .ck-field.bad input { border-bottom: 2px solid var(--ink); } }

/* Priority list */
.ck-pri-in { max-width: 780px; margin: 0 auto; }
.ck-pri .ck-h-r { color: var(--green); }
.ck-sent { display: flex; align-items: baseline; gap: 10px; font-size: 15px; color: var(--muted); padding-bottom: 22px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.ck-sent .ck-mk { color: var(--green); transform: translateY(1px); }
.ck-sent b { color: var(--ink); font-weight: 400; }
.ck-pri-hd { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 24px; flex-wrap: wrap; }
.ck-pri .ck-lede { margin-top: 14px; }
.ck-fix { margin-top: 30px; border-top: 1px solid var(--green); }
.ck-fix > li { display: grid; grid-template-columns: clamp(40px, 6vw, 64px) minmax(0, 1fr); gap: 8px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.ck-num { font-family: var(--display); font-size: clamp(30px, 3.6vw, 42px); line-height: 1; color: var(--gold-ink); font-variant-numeric: lining-nums; }
.ck-fix h3 { font-size: 30px; line-height: 1.25; color: var(--green); }
.ck-fix .ck-st { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--muted); margin-top: 8px; }
.ck-fix .ck-st .ck-mk { color: var(--green); }
.ck-fix p { font-size: 16px; line-height: 1.6; color: var(--muted); margin-top: 12px; }
.ck-fix .ck-step { color: var(--ink); }
.ck-fix .ck-step b { display: block; font-family: var(--body); font-weight: 400; font-size: 16px; color: var(--gold-ink); margin-bottom: 2px; }
.ck-folders { margin-top: 8px; display: grid; gap: 6px; }
.ck-folders li { position: relative; padding-left: 18px; font-size: 15.5px; line-height: 1.5; }
.ck-folders li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 1px; background: var(--gold); }
.ck-clear { text-align: center; display: flex; flex-direction: column; align-items: center; }

/* Next step */
.ck-next { padding: clamp(64px, 8vw, 112px) var(--pad); }
.ck-next-in { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; }
.ck-next-in::before { content: ""; display: block; width: 48px; height: 1px; background: var(--gold); margin-bottom: 28px; }

/* Shown only when JavaScript is off */
.ck-nojs { max-width: 640px; margin: 0 auto; padding: 0 var(--pad) 48px; text-align: center; color: var(--on-dark-muted); }

/* Landing FAQ */
.ck-faq { max-width: 780px; margin: clamp(64px, 7vw, 96px) auto 0; }
.ck-faq .ck-h-r { color: var(--green); }
.ck-faq-list { margin-top: 24px; border-top: 1px solid var(--line); }
.ck-faq details { border-bottom: 1px solid var(--line); }
.ck-faq summary { list-style: none; cursor: pointer; position: relative; padding: 22px 44px 22px 0; font-family: var(--display); font-size: 28px; line-height: 1.2; color: var(--green); text-wrap: balance; }
.ck-faq summary::-webkit-details-marker { display: none; }
.ck-faq summary::after { content: "+"; position: absolute; right: 4px; top: 20px; font-family: var(--display); font-size: 32px; line-height: 1; color: var(--gold-ink); }
.ck-faq details[open] summary::after { content: "\2212"; }
.ck-faq details p { padding: 0 0 22px; color: var(--muted); }
