:root {
  /* Ok2Ask4Help (Shopify Dawn) palette */
  --ink: #252525;
  --ink-2: rgba(37, 37, 37, .75);
  --ink-3: rgba(37, 37, 37, .55);
  --accent: #041b66;           /* navy from the site gradient */
  --accent-strong: #041b66;
  --accent-soft: #e4f6f9;      /* light tint of the site cyan */
  --cyan: #52daec;
  --gradient: linear-gradient(245deg, #041b66 33%, #52daec 100%);
  --bg: #efecec;
  --card: #f7f5f5;
  --line: rgba(37, 37, 37, .14);
  --good: #1f6b4b;
  --good-soft: #e3f1ea;
  --warn: #8a5a00;
  --warn-soft: #f8edd6;
  --bad: #9e2f2c;
  --bad-soft: #f6e3e2;
  --blue: #1d4f9a;
  --blue-soft: #e4edf8;
  --radius: 6px;
  --serif: 'Trirong', Georgia, serif;
  --sans: 'Quattrocento Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.7; letter-spacing: .04em; color: var(--ink-2); background: var(--bg); }
strong, b, label, th { color: var(--ink); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.25; margin: 0 0 .5em; color: var(--ink); letter-spacing: .02em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--ink); text-underline-offset: 3px; }
small, .muted { color: var(--ink-2); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--card); padding: 8px 12px; z-index: 10; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* site header — mirrors ok2ask4help.org */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header .inner { max-width: 1200px; margin: 0 auto; padding: 18px 24px 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.site-header .logo { grid-column: 2; display: block; line-height: 0; }
.site-header .logo img { width: 116px; height: auto; }
.site-header .right { grid-column: 3; justify-self: end; display: flex; gap: 10px; align-items: center; }
.site-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 22px; padding: 14px 16px 12px; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-size: 1.1rem; letter-spacing: .04em; }
.site-nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.site-nav a.current { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.tool-bar { border-top: 1px solid var(--line); }
.tool-bar .inner { max-width: 1360px; margin: 0 auto; padding: 8px 24px; display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; justify-content: center; }
.tool-bar .label { font-family: var(--serif); color: var(--ink); font-size: 1.05rem; margin-right: 6px; text-decoration: none; white-space: nowrap; }
@media (max-width: 1260px) and (min-width: 1041px) { .tool-bar .label { display: none; } }
@media (max-width: 1120px) and (min-width: 1041px) { nav#nav a { padding: 5px 5px; font-size: .86rem; } .walk-btn { padding: 7px 10px; font-size: .88rem; } }
nav#nav { display: flex; gap: 0; flex-wrap: nowrap; justify-content: center; }
nav#nav a { white-space: nowrap; }
nav#nav a { text-decoration: none; color: var(--ink-2); padding: 5px 8px; border-radius: var(--radius); font-size: .92rem; letter-spacing: .03em; }
nav#nav a:hover { color: var(--ink); background: rgba(37,37,37,.06); }
nav#nav a[aria-current="page"] { color: var(--ink); background: rgba(37,37,37,.08); text-decoration: underline; text-underline-offset: 4px; }
.walk-btn { font: inherit; letter-spacing: .04em; font-size: .95rem; color: #fff; background: var(--gradient); border: none; border-radius: var(--radius); padding: 7px 14px; cursor: pointer; white-space: nowrap; }
.walk-btn:hover { filter: brightness(1.12); }
.menu-btn { display: none; font: inherit; letter-spacing: .04em; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 12px; cursor: pointer; }
@media (max-width: 1040px) {
  .site-header .inner { padding: 12px 16px 0; }
  .site-header .logo img { width: 84px; }
  .site-nav { gap: 2px 14px; padding: 10px 12px; }
  .site-nav a { font-size: .95rem; }
  .menu-btn { display: inline-block; }
  .tool-bar .inner { padding: 8px 16px; justify-content: space-between; flex-wrap: wrap; }
  nav#nav { flex-wrap: wrap; }
  .tool-bar .label { margin-right: auto; }
  nav#nav { display: none; width: 100%; flex-direction: column; padding-bottom: 6px; }
  nav#nav.open { display: flex; }
  nav#nav a { padding: 10px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
}

main { max-width: 980px; margin: 0 auto; padding: 32px 24px 48px; outline: none; }
@media (max-width: 600px) { main { padding: 24px 16px 40px; } }

.footer { background: var(--gradient); color: rgba(239,236,236,.85); text-align: center; padding: 48px 16px 28px; margin-top: 24px; }
.footer h2 { color: #efecec; font-size: 2rem; margin-bottom: 8px; }
.footer p { margin: 0 auto 12px; max-width: 640px; }
.footer a { color: #efecec; }
.footer .btn-light { display: inline-block; margin: 6px 0 22px; color: #efecec; border: 1px solid rgba(239,236,236,.6); border-radius: var(--radius); padding: 9px 20px; text-decoration: none; }
.footer .btn-light:hover { background: rgba(239,236,236,.12); }
.footer .fine { font-size: .78rem; color: rgba(239,236,236,.7); }
.footer .links { font-size: .78rem; display: flex; gap: 8px 16px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }

/* building blocks */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
@media (max-width: 600px) { .card { padding: 18px; } }
.lead { font-size: 1.08rem; color: var(--ink-2); max-width: 720px; }
.eyebrow { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--accent); margin-bottom: 6px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
@media (max-width: 600px) { .grid-2 { grid-template-columns: 1fr; } }

.module-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; transition: border-color .15s, transform .15s; }
.module-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.module-card .num { font-size: .75rem; font-weight: 700; color: var(--accent); letter-spacing: .12em; }
.module-card h3 { margin: 4px 0 6px; }
.module-card p { color: var(--ink-2); font-size: .95rem; margin: 0; flex: 1; }
.module-card .tag { margin-top: 12px; font-size: .78rem; color: var(--ink-3); }

label { display: block; font-weight: 700; font-size: .9rem; margin: 14px 0 6px; }
label .hint { font-weight: 400; color: var(--ink-2); }
input[type=text], input[type=url], input[type=password], input[type=date], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid rgba(37,37,37,.35); border-radius: var(--radius); padding: 10px 12px; letter-spacing: .02em;
}
textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
textarea.tall { min-height: 260px; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.counter { text-align: right; font-size: .8rem; color: var(--ink-3); margin-top: 4px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; letter-spacing: .06em; border-radius: var(--radius); padding: 10px 20px; border: 1px solid var(--ink); background: var(--ink); color: #efecec; cursor: pointer; text-decoration: none; }
.btn:hover:not(:disabled) { box-shadow: 0 0 0 1px var(--ink); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover:not(:disabled) { background: rgba(37,37,37,.05); }
.btn.small { padding: 5px 10px; font-size: .85rem; }
.btn.danger { background: transparent; border-color: var(--bad); color: var(--bad); }
.btn.gradient { background: var(--gradient); border: none; color: #fff; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; align-items: center; }

.callout { border-left: 4px solid var(--accent); background: var(--accent-soft); padding: 14px 18px; border-radius: 0 8px 8px 0; margin: 16px 0; }
.callout.blue { border-color: var(--blue); background: var(--blue-soft); }
.callout.warn { border-color: var(--warn); background: var(--warn-soft); }
.callout p:last-child { margin: 0; }

.progress { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; margin-bottom: 20px; }
.progress > div { height: 100%; background: var(--accent); transition: width .3s; }
.q-text { font-family: var(--serif); font-size: 1.3rem; margin-bottom: 16px; }

.pill { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1px solid currentColor; }
.pill.good { color: var(--good); background: var(--good-soft); }
.pill.warn { color: var(--warn); background: var(--warn-soft); }
.pill.bad { color: var(--bad); background: var(--bad-soft); }
.pill.neutral { color: var(--ink-2); background: var(--bg); }

.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: 8px 0 8px 22px; position: relative; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: none; }
.list li::before { content: ''; position: absolute; left: 4px; top: 17px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.list.good li::before { background: var(--good); }
.list.bad li::before { background: var(--bad); }
.list.blue li::before { background: var(--blue); }

.criteria { border-left: 4px solid var(--accent); padding: 4px 0 4px 16px; }
.criteria.energizers { border-color: var(--blue); }
.criteria.watchouts { border-color: var(--bad); }
.criteria h3 { margin-bottom: 2px; }

.score { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.score .big { font-family: var(--serif); font-size: 2.6rem; font-weight: 600; line-height: 1; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.kv div { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.kv b { display: block; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }

.result h2 { margin-top: 4px; }
.result section { margin-top: 22px; }
.result section:first-child { margin-top: 0; }
.qa { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin-bottom: 10px; }
.qa p { margin: 4px 0 0; color: var(--ink-2); font-size: .95rem; }

.loading { display: flex; align-items: center; gap: 14px; padding: 18px; color: var(--ink-2); }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } .module-card { transition: none; } }

.error { color: var(--bad); background: var(--bad-soft); border-radius: 8px; padding: 12px 14px; margin-top: 14px; }

/* tracker */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); background: var(--bg); white-space: nowrap; }
tr:last-child td { border-bottom: none; }
td select { padding: 4px 6px; font-size: .88rem; min-width: 120px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 14px; text-align: center; }
.stat b { display: block; font-family: var(--serif); font-size: 1.8rem; font-weight: 600; }
.stat span { font-size: .8rem; color: var(--ink-2); }

/* checklist */
.cat { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 12px; background: var(--card); }
.cat summary { cursor: pointer; padding: 14px 16px; font-weight: 700; display: flex; align-items: center; gap: 10px; list-style: none; }
.cat summary::-webkit-details-marker { display: none; }
.cat summary .count { margin-left: auto; font-size: .82rem; color: var(--ink-2); font-weight: 400; }
.cat .body { padding: 0 16px 14px; }
.cat .desc { color: var(--ink-2); font-size: .93rem; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--line); }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; }
.check .note { display: block; font-size: .84rem; color: var(--ink-3); font-style: italic; }
.check textarea { min-height: 54px; margin-top: 6px; font-size: .9rem; }

/* prompt library */
.prompt-out { white-space: pre-wrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 14px; max-height: 420px; overflow: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { font: inherit; font-size: .88rem; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-strong); font-weight: 700; }

#toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 8px; font-size: .92rem; opacity: 0; pointer-events: none; transition: opacity .2s; max-width: calc(100% - 32px); }
#toast.show { opacity: 1; }

@media print {
  .topbar, .footer, .actions, #toast, .no-print { display: none !important; }
  body { background: #fff; color: #000; }
  .card { border: none; padding: 0; }
}

/* ---------- walkthrough: chooser, tour, journey ---------- */
.hero-walk { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 20px 0 8px; }
.hero-walk p { margin: 0; flex: 1; min-width: 220px; }
.modal-back { position: fixed; inset: 0; background: rgba(4, 27, 102, .35); z-index: 40; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { background: var(--bg); border-radius: 10px; max-width: 640px; width: 100%; padding: 28px; box-shadow: 0 20px 60px rgba(0,0,0,.25); max-height: calc(100vh - 32px); overflow: auto; }
.modal h2 { margin-bottom: 6px; }
.choice-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin: 18px 0 8px; }
.choice { text-align: left; font: inherit; letter-spacing: .03em; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; cursor: pointer; color: var(--ink-2); }
.choice:hover { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.choice strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.2rem; margin-bottom: 4px; }
.choice span { font-size: .9rem; }
.modal .close-x { float: right; font: inherit; background: none; border: none; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--ink-2); }

.tour-spot { position: fixed; z-index: 50; border-radius: 8px; box-shadow: 0 0 0 9999px rgba(4, 27, 102, .55); outline: 2px solid var(--cyan); transition: all .25s ease; pointer-events: none; }
.tour-pop { position: fixed; z-index: 51; width: min(340px, calc(100vw - 32px)); background: var(--bg); border-radius: 10px; padding: 18px 18px 14px; box-shadow: 0 14px 40px rgba(0,0,0,.3); }
.tour-pop h3 { margin-bottom: 4px; }
.tour-pop p { font-size: .95rem; margin-bottom: 10px; }
.tour-pop .row { display: flex; align-items: center; gap: 8px; }
.tour-pop .count { font-size: .8rem; margin-right: auto; }
@media (prefers-reduced-motion: reduce) { .tour-spot { transition: none; } }

.journey { background: var(--gradient); color: #efecec; }
.journey .inner { max-width: 1200px; margin: 0 auto; padding: 12px 24px; display: flex; gap: 12px 20px; align-items: center; flex-wrap: wrap; }
.journey .title { font-family: var(--serif); font-size: 1.1rem; color: #fff; }
.journey .why { font-size: .9rem; color: rgba(239,236,236,.9); flex: 1 1 320px; margin: 0; }
.journey .steps { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.journey .steps button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6); background: transparent; color: #fff; font: inherit; font-size: .8rem; cursor: pointer; padding: 0; letter-spacing: 0; }
.journey .steps button.done { background: rgba(255,255,255,.25); }
.journey .steps button[aria-current="step"] { background: #fff; color: var(--accent); font-weight: 700; }
.journey .ctrl { display: flex; gap: 8px; }
.journey .jbtn { font: inherit; letter-spacing: .04em; font-size: .9rem; border-radius: var(--radius); padding: 6px 12px; cursor: pointer; border: 1px solid rgba(255,255,255,.7); background: transparent; color: #fff; }
.journey .jbtn.primary { background: #fff; color: var(--accent); border-color: #fff; }
@media (max-width: 860px) { .journey .inner { padding: 10px 16px; } .journey .why { flex-basis: 100%; order: 3; } }

.journey-map { list-style: none; padding: 0; margin: 16px 0 0; counter-reset: j; }
.journey-map li { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.journey-map .n { flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--gradient); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; letter-spacing: 0; }
.journey-map .n.done { background: var(--good); }
.journey-map h3 { margin: 2px 0 2px; }
.journey-map p { margin: 0; font-size: .95rem; }
