:root {
  /* Light theme only. Colors checked for WCAG AA (4.5:1) on --bg and --card. */
  color-scheme: light;
  --bg: #ffffff; --fg: #1b1f24; --muted: #535c68; --line: #d9dee5; --card: #f5f7fa; --tint: #f2f6fc;
  --brand: #1d4e89; --brand-fg: #ffffff; --lt: #b3261e; --sev: #a84700; --mod: #7a6100; --low: #4a6b3a; --ok: #2e7d32;
  --radius: 10px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
main { max-width: 760px; margin: 0 auto; padding: 16px; }
h1 { font-size: 1.75rem; line-height: 1.2; margin: .6em 0 .4em; }
h2 { font-size: 1.3rem; margin: 1.6em 0 .5em; }
h3 { font-size: 1.08rem; margin: 1.2em 0 .3em; }
a { color: var(--brand); }
.top { border-bottom: 1px solid var(--line); }
.top .in { max-width: 760px; margin: 0 auto; padding: 10px 16px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.top .brand { display: flex; align-items: center; gap: 8px; min-width: 0; text-decoration: none; color: var(--fg); }
.top .brand .mark { flex: 0 0 auto; }
.top .brand-text { display: flex; flex-direction: column; min-width: 0; }
.top .logo { font-weight: 800; font-size: 1.05rem; line-height: 1.2; }
.top .subtitle { font-size: .8rem; color: var(--muted); line-height: 1.25; }
.btn { display: inline-block; padding: 12px 18px; border-radius: var(--radius); border: 1px solid var(--brand); background: var(--brand); color: var(--brand-fg);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; text-align: center; min-height: 48px; }
.btn.secondary { background: transparent; color: var(--brand); }
.btn.small { padding: 6px 12px; min-height: 36px; font-size: .92rem; }
.btn:disabled { opacity: .5; cursor: default; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 12px 0; }
.hero { padding: 8px 0 4px; }
.deadline { font-weight: 700; color: var(--lt); }
.muted, .small { color: var(--muted); }
.small { font-size: .88rem; }
.notice { font-size: .92rem; }
.site-footer { max-width: 760px; margin: 32px auto 0; padding: 16px; border-top: 1px solid var(--line); color: var(--muted); }
.site-footer nav { margin: 8px 0; }
ul.clean { padding-left: 1.2em; }
.price { font-size: 2rem; font-weight: 800; }
details { margin: 6px 0; }
summary { cursor: pointer; color: var(--brand); }
label.field { display: block; margin: 12px 0; font-weight: 600; }
label.field input, label.field select { display: block; width: 100%; margin-top: 4px; padding: 10px; font: inherit; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--fg); }
.choice { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.choice button { flex: 1 1 90px; padding: 10px; min-height: 44px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font: inherit; cursor: pointer; }
.choice button[aria-pressed="true"] { border-color: var(--brand); background: var(--brand); color: var(--brand-fg); font-weight: 700; }
.choice button.fix[aria-pressed="true"] { background: var(--lt); border-color: var(--lt); color: #fff; }
.badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; border: 1px solid currentColor; white-space: nowrap; }
.item { border-top: 1px solid var(--line); padding: 12px 0; }
.item p { margin: 4px 0; }
.cite { font-size: .82rem; color: var(--muted); }
.progress { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress > div { height: 100%; background: var(--brand); }
.section-list a { display: flex; justify-content: space-between; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; margin: 8px 0; text-decoration: none; color: var(--fg); }
.thumb { max-width: 140px; max-height: 140px; border-radius: 6px; display: block; margin-top: 6px; }
table.fix { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.fix th, table.fix td { text-align: left; border-bottom: 1px solid var(--line); padding: 8px 6px; vertical-align: top; }
.hidden { display: none !important; }
.fb { background: #fff; }
.fb-q { margin: 0 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: .95rem; padding: 8px 14px; min-height: 40px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: inherit; cursor: pointer; }
.chip:hover, .chip:focus-visible { border-color: var(--brand); }
.chip[aria-pressed="true"] { border-color: var(--brand); background: var(--card); }
.fb-more { margin-top: 10px; }
.fb-more textarea { width: 100%; box-sizing: border-box; font: inherit; padding: 8px; border: 1px solid var(--line); border-radius: 8px; margin-top: 4px; }
.fb-meta { margin: 10px 0 0; }
.linkish { font: inherit; background: none; border: 0; padding: 0; color: var(--brand); text-decoration: underline; cursor: pointer; }
.guide .lead { font-size: 1.1rem; }
.guide ul.items { padding-left: 1.1rem; }
.guide ul.items li { margin: 10px 0; }
@media print {
  .top, .no-print, .site-footer nav { display: none !important; }
  body { font-size: 11pt; background: #fff; color: #000; }
  main { max-width: none; padding: 0; }
  .card { border: 1px solid #999; background: #fff; break-inside: avoid; }
  tr, .item { break-inside: avoid; }
  a { color: #000; }
}
.hero .tagline { font-weight: 700; color: var(--brand); margin: 0 0 .25rem; }
.top .btn { white-space: nowrap; flex-shrink: 0; }

/* Landing page: wider hero with the sample report beside the text on desktop. */
.landing .top .in, .landing main { max-width: 1040px; }
.landing .content { max-width: 760px; }
.hero { display: grid; gap: 24px; align-items: center; }
.hero-text h1 { font-size: 1.9rem; }
.trust { list-style: none; padding: 0; margin: 14px 0 4px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .95rem; font-weight: 600; }
.trust li { display: flex; align-items: flex-start; gap: 6px; }
.trust li::before { content: ""; flex: 0 0 18px; height: 18px; margin-top: 2px; border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='m5 9.3 2.7 2.7L13 6.3' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.hero-sample { margin: 0; text-align: center; }
.sample-frame { display: block; max-width: 380px; margin: 0 auto; background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.sample-frame img { display: block; width: 100%; height: auto; border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(16, 34, 66, .12); background: #fff; }
.hero-sample figcaption { margin-top: 8px; font-weight: 600; }
@media (min-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; padding-top: 16px; }
  .hero-text h1 { font-size: 2.3rem; }
}

/* WeekSigned app */
.appview .top .in, main.wide { max-width: 1100px; }
.top #plan { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.badge.ok { color: var(--ok); }
.grid2, .grid3, .grid4 { display: grid; gap: 0 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } .grid3 { grid-template-columns: repeat(3, 1fr); } .grid4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid4 { grid-template-columns: repeat(4, 1fr); } }
label.field textarea, label.field select { display: block; width: 100%; margin-top: 4px; padding: 10px; font: inherit; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
label.field { font-size: .92rem; }
label.inline { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; }
label.inline select, #add-from-crew { padding: 8px; font: inherit; border: 1px solid var(--line); border-radius: 8px; max-width: 70vw; }
label.check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; }
label.check input { width: 22px; height: 22px; flex: 0 0 22px; margin-top: 2px; }
label.check.stmt span { font-size: .93rem; }
.card.sub { background: #fff; }
.card.entry { background: #fff; }
.card.err { border-color: var(--lt); background: #fdf0ef; }
.card.warn { border-color: #c98a00; background: #fffaf0; }
.card.offer { border: 2px solid var(--brand); background: var(--tint); }
.ok { color: var(--ok); }
.between { justify-content: space-between; }
.crow { border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 4px; }
input.num { width: 100%; padding: 10px; font: inherit; border: 1px solid var(--line); border-radius: 8px; text-align: right; margin-top: 4px; }
.hours { overflow-x: auto; }
.hours table { border-collapse: collapse; min-width: 420px; }
.hours th { font-size: .85rem; padding: 2px 4px; font-weight: 600; text-align: center; }
.hours td { padding: 2px; }
.hours input.h { width: 52px; padding: 8px 4px; text-align: center; margin: 0; }
.sum { margin: 10px 0 0; }
.privacy-line { margin-top: 10px; }
#formwrap { max-width: 1100px; margin: 0 auto 16px; padding: 0 16px; overflow-x: auto; }
#toast { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); background: #1b1f24; color: #fff; padding: 10px 16px; border-radius: 8px; max-width: 92vw; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 10; }
#toast.show { opacity: 1; }
@media print {
  .appview main, .appview .site-footer, #toast { display: none !important; }
  #formwrap { max-width: none; padding: 0; margin: 0; overflow: visible; }
}
/* .small sets muted text; keep button text readable (white on filled, brand on outline). */
.btn.small { color: var(--brand-fg); }
.btn.secondary.small { color: var(--brand); }
