:root {
  --ink: #14201b; --mut: #55605a; --faint: #7a857f; --line: #e8eae7; --line2: #f0f2f0;
  --bg: #f1f2ee; --card: #fff;
  --acc: #1d6b53; --acchov: #14523d; --accbg: #eef5f1;
  --ok: #1d6b53; --warn: #8a6a1f; --bad: #b3372b;
  --disp: "Newsreader", Georgia, "Times New Roman", serif;
  --ui: "Instrument Sans", -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; margin: 0; }
body { font: 15px/1.55 var(--ui); color: var(--ink); background: var(--bg); padding: 20px; }
#app { max-width: 1040px; margin: auto; }
a { color: var(--acc); }
button { font: inherit; cursor: pointer; color: inherit; }
button, .chip, .pick, nav.tabs button, input, select, textarea, a, .copybtn {
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .1s ease;
}
*:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 4px; }

.ic { display: inline-flex; width: 15px; height: 15px; vertical-align: -2px; flex-shrink: 0; }
.ic svg { width: 100%; height: 100%; }
.ic.ok { color: var(--ok); } .ic.warn { color: var(--warn); } .ic.bad { color: var(--bad); }

/* header / nav */
.topbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; padding-top: 4px; }
.logo { font-family: var(--disp); font-size: 30px; font-weight: 500; letter-spacing: -.005em; }
.logo em { color: var(--acc); font-style: normal; }
.privacy { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--mut); background: #eef0ec; border-radius: 99px; padding: 4px 11px; cursor: default; }
.deadline { margin-left: auto; font-size: 12.5px; color: var(--faint); display: inline-flex; align-items: center; gap: 6px; }
.deadline b { color: var(--ink); font-variant-numeric: tabular-nums; }
nav.tabs { display: flex; gap: 26px; margin-bottom: 22px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
nav.tabs button { background: transparent; border: none; border-bottom: 2px solid transparent; border-radius: 0; padding: 4px 1px 10px; margin-bottom: -1px; font-weight: 500; color: var(--faint); }
nav.tabs button:hover { background: transparent; color: var(--ink); }
nav.tabs button.on { background: transparent; color: var(--ink); border-bottom-color: var(--acc); }

/* cards */
.screen { background: var(--card); border: 1px solid #eef0ec; border-radius: 12px; padding: 30px 34px; box-shadow: 0 2px 12px rgba(20, 30, 25, .06); margin-bottom: 18px; }
.screen.form { max-width: 800px; }
h1 { font-family: var(--disp); font-size: 30px; font-weight: 500; letter-spacing: -.012em; margin-bottom: 16px; }
h2 { font-family: var(--disp); font-size: 21px; font-weight: 500; letter-spacing: -.008em; margin: 26px 0 12px; }
h2:first-child, h1 + h2 { margin-top: 0; }
.hint { font-size: 12.5px; color: var(--faint); }
.notice { font: 600 12.5px/1 var(--ui); color: var(--warn); margin-left: 8px; vertical-align: 2px; white-space: nowrap; }
.warnbox { display: flex; gap: 8px; align-items: baseline; background: #fbf4e3; border: 1px solid #eedeb5; border-radius: 8px; padding: 9px 12px; font-size: 13px; margin: 12px 0; }
.covline { font-size: 13px; color: var(--mut); margin-bottom: 10px; }

/* progress */
.slots { display: flex; gap: 18px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; }
.slotcopy { flex: 1; min-width: 240px; }
.sketch-h { font-family: var(--disp); font-weight: 400; font-size: 28px; letter-spacing: -.01em; margin: 0; }
.slotcopy .hint { margin-top: 6px; }
.slotcopy .hint b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.pbar { height: 4px; background: #eef1ef; border-radius: 2px; margin: 18px 0 14px; overflow: hidden; }
.pbar-fill { height: 100%; background: var(--acc); border-radius: 2px; transition: width .3s; }
.cats { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13px; color: var(--mut); }
.cats b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* tables */
.tscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
th, td { border: none; border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
th { font: 600 10.5px/1.4 var(--ui); text-transform: uppercase; letter-spacing: .07em; color: var(--faint); padding-bottom: 8px; }
tr.rowlink { cursor: pointer; }
tr.rowlink:hover td { background: #f6f8f6; }
.linklike { background: none; border: none; padding: 0; font: 600 13.5px/1.5 var(--ui); color: var(--ink); text-align: left; }
.linklike:hover { color: var(--acc); text-decoration: underline; }
.entry-sub { font-size: 12px; color: var(--mut); font-weight: 400; margin-top: 1px; }
.subwarn { color: var(--warn); }
.addv { color: var(--warn); font-size: 12.5px; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }

/* category identity: quiet dot, not a filled pill */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #4a5260; white-space: nowrap; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, #999); flex-shrink: 0; }
.cat-emp { --dot: #0e7490; } .cat-vol { --dot: #b45309; } .cat-ec { --dot: #7c3aed; }
.cat-res { --dot: #1d4ed8; } .cat-awd { --dot: #be123c; } .cat-oth { --dot: #64748b; }

.chip { display: inline-block; font-size: 11px; font-weight: 600; background: var(--accbg); color: var(--acc); border-radius: 99px; padding: 2px 9px; margin: 1px; white-space: nowrap; }
.st { font-size: 11px; font-weight: 700; white-space: nowrap; letter-spacing: .03em; }
.st-final, .st-entered { color: var(--ok); } .st-drafted { color: var(--warn); } .st-idea { color: var(--mut); }
.t3b { display: inline-block; background: var(--accbg); color: var(--acc); font-weight: 700; font-size: 11px; border-radius: 5px; padding: 1px 6px; margin-right: 3px; }

/* coverage matrix — single-hue ramp, red reserved for real errors */
.matrix td { text-align: center; font-variant-numeric: tabular-nums; }
.matrix td:first-child, .matrix th:first-child { text-align: left; }
.matrix a { color: var(--ink); text-decoration: none; border-bottom: 1px dotted #c3cbc6; }
.matrix a:hover { color: var(--acc); border-bottom-color: var(--acc); }
.m1 { background: #eef5f1; } .m2 { background: #dcebe3; } .m3 { background: #c9e0d4; }

/* timeline */
.tl { margin-top: 6px; }
.tl-row { display: flex; align-items: center; gap: 8px; margin: 4px 0; font-size: 12px; }
.tl-label { width: 210px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-shrink: 0; }
.tl-track { position: relative; flex: 1; height: 12px; background: #eef0ec; border-radius: 6px; }
.tl-bar { position: absolute; top: 0; height: 100%; border-radius: 6px; opacity: .9; min-width: 6px; }
.tl-axis { display: flex; margin-left: 218px; font-size: 10px; color: var(--mut); margin-top: 4px; }
.tl-axis span { border-left: 1px solid var(--line); padding-left: 4px; }
.b-emp { background: #0e7490; } .b-vol { background: #b45309; } .b-ec { background: #7c3aed; }
.b-res { background: #1d4ed8; } .b-awd { background: #be123c; } .b-oth { background: #64748b; }

/* forms */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }
label { display: block; font: 700 11px/1.4 var(--ui); text-transform: uppercase; letter-spacing: .05em; color: var(--mut); margin: 14px 0 5px; }
input, select, textarea { width: 100%; padding: 8px 11px; border: 1px solid #d6dbd7; border-radius: 8px; font: inherit; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { border-color: var(--acc); box-shadow: 0 0 0 3px var(--accbg); outline: none; }
textarea { resize: vertical; }
textarea.desc { font-size: 17px; line-height: 1.5; }
.count { text-align: right; font-size: 12.5px; font-weight: 700; color: var(--ok); margin-top: 4px; font-variant-numeric: tabular-nums; }
.count.near { color: var(--warn); }
.count.over { color: var(--bad); }
.points { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.pt { font-size: 12px; background: #f2f4f1; border: 1px solid var(--line); border-radius: 99px; padding: 2px 10px; color: #4a5260; }
.notes-field { background: #fafbf9; border-style: dashed; }
.inline { display: flex; gap: 8px; align-items: center; }
.inline input[type="checkbox"] { width: auto; }
.present { display: inline-flex; align-items: center; background: var(--accbg); color: var(--acc); font-weight: 700; border-radius: 8px; padding: 8px 16px; font-size: 13px; }

.roles .chip { cursor: pointer; font-size: 12.5px; padding: 5px 13px; background: transparent; color: var(--mut); border: 1px solid #d6ddd8; user-select: none; }
.roles .chip:hover { border-color: var(--acc); color: var(--acc); }
.roles .chip.on { background: var(--acc); border-color: var(--acc); color: #fff; }
.comp-group { display: flex; align-items: baseline; gap: 8px; margin: 6px 0; }
.comp-role { font-size: 11px; font-weight: 700; color: var(--mut); text-transform: uppercase; letter-spacing: .04em; min-width: 96px; }
.roles .chip.sm { font-size: 11.5px; padding: 3px 10px; white-space: normal; }
.matrix .comprow td { font-size: 12px; color: var(--mut); }
.matrix .comprow td:first-child { padding-left: 22px; }

.btn { background: var(--acc); color: #fff; border: none; border-radius: 9px; padding: 9px 18px; font-weight: 700; }
.btn:hover { background: var(--acchov); }
.btn:active { transform: scale(.985); }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid #d6ddd8; }
.btn.ghost:hover { border-color: var(--acc); color: var(--acc); background: #fff; }
.btn.danger { background: transparent; color: var(--bad); border: 1px solid transparent; }
.btn.danger:hover { border-color: var(--bad); background: #fdf3f1; }
.btn.sm { padding: 4px 11px; font-size: 12px; }
.row { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; align-items: center; }
.row .danger { margin-left: auto; }
.row select { width: auto; }

/* top-3 picker */
.pick { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 9px; padding: 9px 13px; margin: 6px 0; cursor: pointer; }
.pick:hover { border-color: #c4ccc6; }
.pick.sel { border-color: var(--acc); background: var(--accbg); }
.pickt { flex: 1; font-weight: 600; }
.box { width: 17px; height: 17px; border: 1.5px solid #c4ccc6; border-radius: 5px; flex-shrink: 0; display: grid; place-items: center; background: #fff; }
.box svg { width: 12px; height: 12px; }
.box.on { background: var(--acc); border-color: var(--acc); color: #fff; }

/* export sheet */
.sheet-entry { border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin: 10px 0; }
.sheet-entry h3 { font-size: 14.5px; margin-bottom: 8px; display: flex; gap: 10px; align-items: baseline; }
.fieldrow { display: flex; gap: 8px; align-items: baseline; font-size: 13px; margin: 4px 0; }
.fieldrow b { min-width: 150px; font: 700 10.5px/1.6 var(--ui); text-transform: uppercase; letter-spacing: .05em; color: var(--mut); flex-shrink: 0; }
.fieldrow span { flex: 1; }
.copybtn { font-size: 11px; border: 1px solid #d6dbd7; background: #fff; border-radius: 6px; padding: 1px 8px; color: var(--mut); flex-shrink: 0; }
.copybtn:hover { border-color: var(--acc); color: var(--acc); }

.site-footer { max-width: 1040px; margin: 26px auto 8px; font-size: 11px; color: var(--mut); text-align: center; line-height: 1.8; }
.footer-links { display: flex; justify-content: center; gap: 22px; margin-bottom: 10px; font-size: 13px; font-weight: 500; }
.footer-links a { color: var(--mut); cursor: pointer; }
.footer-links a:hover { color: var(--acc); }

.empty-state { text-align: center; padding: 44px 20px; }
.empty-state h2 { margin-bottom: 8px; }
.empty-state p { color: var(--mut); font-size: 14px; margin-bottom: 18px; }

.toast { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%) translateY(8px); background: #23292f; color: #fff;
  padding: 9px 20px; border-radius: 99px; font-size: 13px; font-weight: 600; opacity: 0; z-index: 50;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .2); animation: toast 1.9s ease forwards; }
@keyframes toast { 12%, 78% { opacity: 1; transform: translateX(-50%) translateY(0); } 100% { opacity: 0; } }

/* accounts */
.acct { display: inline-flex; align-items: center; gap: 8px; }
.acct-email { font-size: 12px; color: var(--mut); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.modal-back { position: fixed; inset: 0; background: rgba(26, 30, 38, .42); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 60; }
.modal { background: var(--card); border-radius: 14px; padding: 26px; width: 100%; max-width: 380px; position: relative; box-shadow: 0 12px 40px rgba(20, 16, 8, .22); }
.modal h2 { font-family: var(--disp); margin: 0 0 6px; }
.modal label { display: block; font-size: 12px; font-weight: 600; color: var(--mut); margin: 12px 0 4px; }
.modal input { width: 100%; border: 1px solid #d6ddd8; border-radius: 9px; padding: 9px 11px; font: inherit; background: #fff; }
.modal .btn { width: 100%; margin-top: 14px; justify-content: center; }
.modal-x { position: absolute; top: 12px; right: 12px; background: none; border: none; font-size: 22px; line-height: 1; color: var(--mut); padding: 4px; }
.gbtn { display: flex; align-items: center; justify-content: center; gap: 9px; background: #fff; color: var(--ink); border: 1px solid #d6ddd8; margin-top: 14px; }
.gbtn:hover { background: #fff; border-color: var(--acc); color: var(--ink); }
.gG { flex-shrink: 0; }
.ordiv { display: flex; align-items: center; gap: 10px; margin: 16px 0 2px; color: var(--mut); font-size: 12px; }
.ordiv::before, .ordiv::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-msg { font-size: 12.5px; margin-top: 10px; min-height: 1px; }
.auth-msg.bad { color: var(--bad); } .auth-msg.ok { color: var(--ok); }
.auth-alt { font-size: 12.5px; color: var(--mut); margin-top: 14px; text-align: center; }

/* landing (direction 1a — editorial serif, full-bleed white) */
body.on-landing { background: #fff; padding: 0; }
.on-landing #app { max-width: none; }
.landing { max-width: 1080px; margin: 0 auto; padding: 0 40px 56px; color: var(--ink); }
.lnav { display: flex; align-items: center; justify-content: space-between; padding: 26px 0 8px; }
.lnav .logo { font-size: 27px; }
.lnav-links { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 500; color: var(--mut); }
.lnav-links a { color: var(--mut); text-decoration: none; cursor: pointer; }
.lnav-links a:hover { color: var(--acc); }
.lsignin { border: 1px solid var(--line); border-radius: 99px; padding: 8px 18px; background: #fff; color: var(--ink); font-weight: 500; font-size: 14px; }
.lsignin:hover { border-color: var(--acc); color: var(--acc); }
.lhero { text-align: center; padding: 84px 0 92px; }
.lbadge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--acc); background: var(--accbg); border-radius: 99px; padding: 6px 16px; margin-bottom: 28px; }
.ltitle { font-family: var(--disp); font-weight: 400; font-size: clamp(38px, 5.6vw, 60px); line-height: 1.08; letter-spacing: -.015em; max-width: 760px; margin: 0 auto; }
.lsub { font-size: 18px; line-height: 1.6; color: var(--mut); max-width: 560px; margin: 24px auto 0; }
.lcta { display: flex; gap: 14px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.lbig { border-radius: 99px; padding: 14px 30px; font-size: 15px; }
.lnote { font-size: 13px; color: var(--faint); margin-top: 22px; }
.wait-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.wait-form input { width: 300px; max-width: 100%; border: 1px solid #d6ddd8; border-radius: 99px; padding: 13px 20px; font: inherit; background: #fff; }
.wait-form input:focus { outline: none; border-color: var(--acc); }
.wait-msg { font-size: 14px; margin-top: 16px; min-height: 20px; color: var(--mut); }
.wait-msg.ok { color: var(--acc); font-weight: 500; }
.wait-msg.bad { color: #b42318; }
.lfeatures { border-top: 1px solid var(--line); display: flex; justify-content: center; flex-wrap: wrap; gap: 24px 56px; padding: 28px 0 0; font-size: 13.5px; color: var(--mut); }
.lfeatures b { color: var(--ink); font-weight: 600; }
.lnav-links a.on { color: var(--ink); font-weight: 600; }

/* How it works */
.lhow { text-align: center; padding: 84px 0 8px; }
.lhow-title { font-family: var(--disp); font-weight: 400; font-size: clamp(28px, 3.8vw, 40px); line-height: 1.12; letter-spacing: -.015em; margin: 6px 0 44px; }
.hwrows { display: flex; flex-direction: column; gap: 52px; text-align: left; }
.hwrow { display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; align-items: center; }
.hwrow:nth-child(even) .hwtext { order: 2; }
.lstep-n { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; font-family: var(--disp); font-size: 17px; color: var(--acc); background: var(--accbg); border-radius: 99px; margin-bottom: 16px; }
.hwtext h3 { font-family: var(--disp); font-weight: 500; font-size: clamp(22px, 2.6vw, 27px); letter-spacing: -.01em; margin-bottom: 10px; }
.hwtext p { font-size: 16px; line-height: 1.62; color: var(--mut); max-width: 40ch; }
.lhow-cta { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 64px; }

/* mini app-preview windows */
.hwwin { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 34px rgba(20,32,27,.09); overflow: hidden; }
.hwbar { display: flex; gap: 7px; padding: 12px 15px; border-bottom: 1px solid var(--line); background: #fafbf9; }
.hwbar span { width: 10px; height: 10px; border-radius: 99px; background: #d8ddd6; }
.hwbody { padding: 18px 20px 20px; font-size: 13.5px; }
.mk-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.mk-head > span:first-child { font-family: var(--disp); font-size: 16px; }
.mk-count { font-weight: 600; color: var(--acc); }
.mk-count em { color: var(--mut); font-style: normal; font-weight: 400; }
.mk-row { display: flex; align-items: center; gap: 9px; padding: 10px 0; border-top: 1px solid var(--line); }
.mk-row b { font-weight: 600; }
.mk-dot { width: 9px; height: 9px; border-radius: 99px; flex: none; }
.mk-hrs { margin-left: auto; color: var(--mut); font-size: 12.5px; }
.mk-add { color: var(--acc); font-weight: 600; cursor: default; }
.mk-label { font-size: 12px; font-weight: 600; color: var(--mut); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.mk-ta { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; line-height: 1.5; color: var(--ink); }
.mk-ta.bad { border-color: #e4b7b0; margin-top: 14px; }
.mk-meter { height: 4px; border-radius: 99px; background: var(--line); margin: 8px 0 4px; overflow: hidden; }
.mk-fill { height: 100%; background: var(--acc); }
.mk-cnt { font-size: 12px; font-weight: 600; text-align: right; }
.mk-cnt.ok { color: var(--acc); }
.mk-cnt.over { color: #c0392b; margin-top: 6px; }
.mk-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.mk-chip { font-size: 12.5px; padding: 5px 11px; border-radius: 99px; border: 1px solid var(--line); color: var(--mut); }
.mk-chip.on { background: var(--accbg); border-color: transparent; color: var(--acc); font-weight: 600; }
.mk-heat { display: flex; gap: 6px; }
.mk-heat i { width: 100%; height: 26px; border-radius: 5px; }
.mk-heat .m0 { background: #eef0ec; } .mk-heat .m1 { background: #cfe3d8; }
.mk-heat .m2 { background: #8ec4ab; } .mk-heat .m3 { background: var(--acc); }
.mk-gap { margin-top: 10px; font-size: 12.5px; color: var(--mut); }
.mk-rank { width: 22px; height: 22px; flex: none; display: flex; align-items: center; justify-content: center; font-family: var(--disp); font-size: 13px; color: var(--acc); background: var(--accbg); border-radius: 99px; }
.mk-badge { margin-left: auto; font-size: 11.5px; font-weight: 600; color: var(--acc); background: var(--accbg); padding: 3px 9px; border-radius: 99px; }
.mk-badge.alt { color: #9a5b1a; background: #f6ecdd; }
.mk-export { margin-top: 14px; width: 100%; background: var(--acc); color: #fff; border: 0; border-radius: 8px; padding: 10px; font-family: var(--ui); font-size: 13.5px; font-weight: 600; cursor: default; transition: transform .15s ease; }
.mk-export.pressed { transform: scale(.96); }

/* --- how-it-works demo animations (gated on .hw-anim, added by initHowAnims) --- */
@keyframes hwUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes hwPop { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: none; } }
@keyframes hwBlink { 50% { opacity: 0; } }
.hw-anim .mk-row, .hw-anim .mk-chip, .hw-anim .mk-heat i { opacity: 0; }
.hw-anim .hw-in .mk-row { animation: hwUp .5s ease both; }
.hw-anim .hw-in .mk-row:nth-child(2) { animation-delay: .14s; }
.hw-anim .hw-in .mk-row:nth-child(3) { animation-delay: .28s; }
.hw-anim .hw-in .mk-row:nth-child(4) { animation-delay: .42s; }
.hw-anim .hw-in .mk-row:nth-child(5) { animation-delay: .56s; }
.hw-anim .hw-in .mk-chip { animation: hwPop .4s ease both; }
.hw-anim .hw-in .mk-chip:nth-child(2) { animation-delay: .15s; }
.hw-anim .hw-in .mk-chip:nth-child(3) { animation-delay: .3s; }
.hw-anim .hw-in .mk-chip:nth-child(4) { animation-delay: .45s; }
.hw-anim .hw-in .mk-chip:nth-child(5) { animation-delay: .6s; }
.hw-anim .hw-in .mk-heat i { animation: hwPop .35s ease both; }
.hw-anim .hw-in .mk-heat i:nth-child(2) { animation-delay: .08s; }
.hw-anim .hw-in .mk-heat i:nth-child(3) { animation-delay: .16s; }
.hw-anim .hw-in .mk-heat i:nth-child(4) { animation-delay: .24s; }
.hw-anim .hw-in .mk-heat i:nth-child(5) { animation-delay: .32s; }
.hw-anim .hw-in .mk-heat i:nth-child(6) { animation-delay: .4s; }
.hw-anim .hw-in .mk-heat i:nth-child(7) { animation-delay: .48s; }
.mk-caret { display: none; }
.hw-anim .mk-caret { display: inline-block; width: 1.5px; height: 1em; background: var(--ink); vertical-align: -2px; margin-left: 1px; animation: hwBlink 1s steps(1) infinite; }
.hw-anim .mk-ta.bad, .hw-anim .mk-cnt.over { opacity: 0; transition: opacity .45s; }
.hw-anim .mk-ta.bad.shown, .hw-anim .mk-cnt.over.shown { opacity: 1; }
.mk-cursor { display: none; }
.hw-anim .mk-cursor { display: block; position: absolute; left: 0; top: 0; z-index: 3; opacity: 0; pointer-events: none; filter: drop-shadow(0 1px 2px rgba(20,32,27,.35)); }
.hw-anim .hw-in .mk-cursor { opacity: 1; }

/* FAQ page */
.faqwrap { max-width: 760px; margin: 0 auto; padding: 60px 0 24px; }
.faqtitle { font-family: var(--disp); font-weight: 400; font-size: clamp(34px, 4.6vw, 48px); line-height: 1.1; letter-spacing: -.015em; margin: 14px 0 4px; }
.faqlist { margin-top: 28px; }
.faqitem { padding: 26px 0; border-top: 1px solid var(--line); }
.faqitem h2 { font-family: var(--disp); font-weight: 500; font-size: 21px; letter-spacing: -.008em; margin-bottom: 9px; }
.faqitem p { font-size: 16px; line-height: 1.65; color: var(--mut); }
.faqcta { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 34px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.faqcta span { font-family: var(--disp); font-size: 21px; color: var(--ink); }

@media (max-width: 640px) {
  .landing { padding: 0 20px 40px; }
  .lnav { flex-wrap: wrap; row-gap: 8px; }
  .lnav-links { gap: 16px; flex-wrap: wrap; }
  .lhero { padding: 52px 0 60px; }
  .lsub { font-size: 16px; }
  .lhow { padding: 56px 0 4px; }
  .hwrows { gap: 40px; }
  .hwrow { grid-template-columns: 1fr; gap: 18px; }
  .hwrow:nth-child(even) .hwtext { order: 0; }
  .hwtext p { max-width: none; }
  .faqwrap { padding: 40px 0 16px; }
  .faqitem p { font-size: 15px; }

  /* signed-in app: tighter chrome */
  .screen { padding: 20px 18px; border-radius: 10px; }
  .topbar { gap: 8px 12px; }
  .deadline { display: none; }
  .slots { align-items: flex-start; }
  .slots .row { width: 100%; }
  .slots .row select { flex: 1; }
  .cats { gap: 8px 18px; }

  /* interactive tables → stacked cards */
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack thead { display: none; }
  table.stack tr { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; }
  table.stack tr.rowlink:hover td { background: transparent; }
  table.stack td { border: none; padding: 5px 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
  table.stack td::before { content: attr(data-label); flex-shrink: 0; min-width: 96px; font: 600 10.5px/1.8 var(--ui); text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
  table.stack td:first-child { display: block; padding-bottom: 8px; }
  table.stack td:first-child::before { display: none; }
  table.stack td:last-child { padding-top: 10px; }
}

@media print {
  body { background: #fff; padding: 0; }
  nav.tabs, .no-print, .deadline, .privacy, .acct, .modal-back { display: none !important; }
  .screen { border: none; box-shadow: none; padding: 0; }
}
