
/* ---- hw.css ---- */
/* Hemwrite homepage, concept B premium: page CSS. Only what sits inside a visual or the kit lacks. */
:root {
  --hw-wine: #4a1328; --hw-wine-d: #2a0f1c; --hw-wine-dd: #1b0c15; --hw-heading: #37091b;
  --hw-gold: #dfb664; --hw-gold-l: #efd189; --hw-gold-line: #a0742a; --hw-gold-ink: #7e5a1a;
  --hw-parch: #f4eada; --hw-parch-line: #e0cfb6; --hw-parch-ink: #2a1a14; --hw-parch-meta: #5f4b3d;
  --hw-paper: #fffcf6; --hw-card-line: #e6d9c7;
  --hw-ease: cubic-bezier(.22, 1, .36, 1);
}

/* the switch's two variants: only the chosen desk shows */
html[data-desk="novel"] .v-script, html[data-desk="script"] .v-novel { display: none !important; }

/* skip link, logo */
.skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { width: auto; height: auto; clip-path: none; padding: 8px 12px; background: var(--p-ink); color: var(--p-bg); border-radius: 8px; z-index: 20; top: 16px; left: 16px; }
.nav__logo .quill, .quill { fill: currentColor; }
.nav .nav__logo { color: var(--hw-heading); }
.nav .nav__logo .quill { height: 24px; width: 24px; color: var(--hw-wine); }
footer .nav__logo .quill { color: var(--hw-gold); }
h1, h2 { color: var(--hw-heading); text-wrap: balance; }
.ground-inverse h2, .ground-inverse h1 { color: var(--ink); }
p { text-wrap: pretty; }

/* ---------------------------------------------------------------- the desk switch */
.desk { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--p-surface); box-shadow: inset 0 0 0 1px var(--line); width: max-content; max-width: 100%; }
.desk__opt { appearance: none; border: 0; background: none; cursor: pointer; font: 500 14px/1 var(--font-text); color: var(--muted); padding: 11px 16px; border-radius: 999px; min-height: 38px; white-space: nowrap;
  transition: background-color 240ms var(--hw-ease), color 200ms var(--hw-ease); }
.desk__opt:hover { color: var(--ink); }
.desk__opt[aria-pressed="true"] { background: var(--p-ink); color: var(--p-bg); }
.desk__opt:active { transform: scale(.98); }
.desk__opt:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }

/* ---------------------------------------------------------------- hero: the clickable book */
.hero-visual { display: flex; }
.desk-stage { position: relative; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 18px; padding: 24px 28px 24px;
  border-radius: var(--r-lg); color: #fbf5ea; overflow: hidden;
  background: radial-gradient(120% 85% at 50% 0%, #5c1c36 0%, var(--hw-wine-d) 50%, var(--hw-wine-dd) 100%);
  box-shadow: inset 0 0 0 1px rgba(223, 182, 100, .16), 0 40px 80px -40px rgba(42, 15, 28, .55); }
.desk-stage__bar { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.desk-stage__title { font: 400 19px/1.2 var(--font-display); letter-spacing: -0.01em; }
.desk-stage__hint { font: 500 13px/1.3 var(--font-text); color: #d2bcc1; }

.book { position: relative; flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; container-type: inline-size;
  filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .45)); }
.book::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 44px; transform: translateX(-50%); pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(70, 40, 15, .16) 46%, rgba(70, 40, 15, .22) 50%, rgba(70, 40, 15, .16) 54%, transparent); }
.page { position: relative; min-height: 0; overflow: hidden; color: var(--hw-parch-ink); font: 400 15px/1.62 var(--font-display); padding: 26px 26px 40px 42px; }
.page--l { border-radius: 6px 2px 2px 6px; background: linear-gradient(90deg, #efe3cf 0%, #f6eedf 7%, #f4eada 66%, #e9dac2 93%, #dccaab 100%);
  box-shadow: -3px 3px 0 -1px #e9dcc7, -6px 6px 0 -2px #ddcdb2; }
.page--r { border-radius: 2px 6px 6px 2px; background: linear-gradient(90deg, #dccaab 0%, #e9dac2 7%, #f4eada 34%, #f6eedf 93%, #efe3cf 100%);
  box-shadow: 3px 3px 0 -1px #e9dcc7, 6px 6px 0 -2px #ddcdb2; padding: 26px 42px 40px 26px; }
.page__run { margin: 0 0 6px; font: 500 13px/1.2 var(--font-text); color: var(--hw-parch-meta); }
.page__title { margin: 0 0 12px; font: 400 23px/1.15 var(--font-display); letter-spacing: -0.01em; color: var(--hw-heading); }
.page p { margin: 0; }
.page p + p { text-indent: 1.4em; }
.page__folio { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; font: 400 13px/1 var(--font-display); color: var(--hw-parch-meta); }

.cue { cursor: pointer; border-radius: 3px; padding: 0 1px; -webkit-box-decoration-break: clone; box-decoration-break: clone;
  text-decoration: underline; text-decoration-color: rgba(160, 116, 42, .6); text-decoration-thickness: 1.5px; text-underline-offset: 3px;
  transition: background-color 220ms var(--hw-ease), text-decoration-color 220ms var(--hw-ease); }
.cue:hover { background: rgba(223, 182, 100, .2); }
.cue.is-on { background: rgba(223, 182, 100, .4); text-decoration-color: var(--hw-gold-line); }
.cue:focus-visible { outline: 2px solid var(--hw-wine); outline-offset: 2px; }
.cue__n { position: absolute; left: 12px; margin-top: 1px; width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; text-indent: 0;
  font: 600 13px/1 var(--font-text); color: var(--hw-gold-ink); background: #fbf5ea; box-shadow: inset 0 0 0 1px rgba(160, 116, 42, .55);
  transition: background-color 220ms var(--hw-ease), color 220ms var(--hw-ease); }
.page--r .cue__n { left: auto; right: 12px; }
.cue.is-on .cue__n { background: var(--hw-gold-line); color: #fbf5ea; box-shadow: none; }
.pay { border-radius: 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-color 300ms var(--hw-ease) 500ms; }
.pay.is-on { background: rgba(223, 182, 100, .4); }
.tab { position: absolute; right: 0; bottom: 44px; padding: 7px 10px 7px 12px; border-radius: 6px 0 0 6px; font: 500 13px/1 var(--font-text);
  background: #c9b291; color: var(--hw-parch-ink); transition: background-color 300ms var(--hw-ease) 500ms, color 300ms var(--hw-ease) 500ms; }
.tab.is-on { background: var(--hw-wine); color: #fbf5ea; }
.threads { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.threads .th { fill: none; stroke: var(--hw-gold-line); stroke-width: 2.25; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(239, 209, 137, .9)); }
.threads .th--none { stroke-dasharray: 3 7; }
.threads .dot { fill: var(--hw-gold-line); stroke: #fbf5ea; stroke-width: 2; }
.threads .qmark { fill: var(--hw-wine); }
.threads .qtext { fill: #fbf5ea; font: 600 13px var(--font-text); text-anchor: middle; dominant-baseline: central; }

/* the screenplay spread */
.sp { font: 400 13px/1.5 var(--font-mono); padding: 34px 26px 30px 42px; }
.page--r.sp { padding: 34px 42px 30px 26px; }
.sp p { text-indent: 0 !important; margin: 0 0 11px; }
.sp__num { position: absolute; top: 14px; right: 18px; font: 400 13px/1 var(--font-mono); color: var(--hw-parch-meta); }
.sp__head { text-transform: uppercase; }
.sp__char { margin: 14px 0 0 !important; padding-left: 36%; }
.sp__dia { padding: 0 12% 0 18%; }

/* the finding under the book */
.finding { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px 14px; padding: 14px 18px;
  border-radius: 14px; background: rgba(251, 245, 234, .06); box-shadow: inset 0 0 0 1px rgba(223, 182, 100, .24); }
.finding__title { margin: 0; font: 400 20px/1.2 var(--font-display); letter-spacing: -0.01em; color: #fbf5ea; }
.finding__where { margin: 0; font: 500 13px/1.2 var(--font-text); color: var(--hw-gold); white-space: nowrap; }
.finding__why { grid-column: 1 / -1; margin: 0; font: 400 14px/1.5 var(--font-text); color: #e3d3d7; }
.finding.is-swap > * { animation: hw-swap 420ms var(--hw-ease); }
@keyframes hw-swap { from { opacity: 0; transform: translateY(6px); } }

/* chips: the four labels, in the app's status colours */
.chip { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font: 500 13px/1 var(--font-text); white-space: nowrap; border: 1px solid; }
.chip--ok { color: #2f6b45; background: #edf4ec; border-color: #b9d3be; }
.chip--rev { color: #7a5518; background: #faf0da; border-color: #dfc48e; }
.chip--warn { color: #9b2c2c; background: #fbedea; border-color: #e2b9b3; }
.chip--open { color: #5a4642; background: #f5efe4; border-color: rgba(90, 70, 66, .35); }

@container (max-width: 600px) {
  .page { font-size: 13px; line-height: 1.55; padding: 18px 16px 30px 34px; }
  .page--r { padding: 18px 30px 30px 16px; }
  .page__title { font-size: 19px; margin-bottom: 8px; }
  .page .opt { display: none; }
  .cue__n { left: 8px; width: 20px; height: 20px; }
  .page--r .cue__n { right: 8px; }
  .sp { font-size: 13px; padding: 28px 14px 20px 32px; }
  .page--r.sp { padding: 28px 30px 20px 14px; }
  .sp p { margin-bottom: 8px; }
}
@media (max-width: 1279px) { .finding__why { display: none; } .gl { font-size: 18px; padding-block: 7px; } .gl::before { top: 14px; } .glines { gap: 2px; } .gpage { padding: 32px 36px 44px; } }
@media (max-width: 639px) {
  .desk-stage { padding: 16px; gap: 12px; }
  .desk-stage__hint { display: none; }
  .book { grid-template-columns: 1fr; }
  .book::after, .book .page--r, .threads { display: none; }
  .page--l { border-radius: 6px; }
  .finding { display: none; }
  .desk__opt { padding: 10px 12px; font-size: 13px; }
}

/* ---------------------------------------------------------------- the report window (app-frame recipe) */
.report__lede { margin: 0; font-size: 17px; line-height: 1.6; max-width: 58ch; color: var(--ink); }
.app.ui { --u-bg: var(--hw-paper); --u-border: var(--hw-card-line); --u-r: 18px; --u-line: #efe4d4;
  --u-shadow: 0 40px 90px -40px rgba(55, 9, 27, .28), 0 2px 8px rgba(55, 9, 27, .05);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: var(--s-7); background: var(--u-bg);
  border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); overflow: hidden; color: var(--p-ink); font-family: var(--font-text); }
.app > .app__pane { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.app > .app__pane + .app__pane { border-left: 1px solid var(--u-line); }
.app > .app__pane::after { content: ""; position: absolute; inset: auto 0 0 0; height: 72px; background: linear-gradient(transparent, var(--u-bg)); pointer-events: none; }
@media (min-width: 1024px) and (max-width: 1279px) { .app.ui { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); } }
@media (max-width: 1023px) {
  .app.ui { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .app > .app__pane--list { max-height: 252px; }
  .app > .app__pane--list::after { display: none; }
  .app > .app__pane + .app__pane { border-left: 0; border-top: 1px solid var(--u-line); }
}
@media (max-width: 639px) {
  .app.ui { grid-template-rows: minmax(0, 1fr); }
  .app > .app__pane--list { display: none; }
  .app > .app__pane + .app__pane { border-top: 0; }
}
.rep-bar { display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 20px; border-bottom: 1px solid var(--u-line); }
.quill--sm { width: 18px; height: 18px; color: var(--hw-wine); flex: none; }
.rep-bar__doc { font: 400 18px/1 var(--font-display); color: var(--hw-heading); }
.rep-bar__meta { margin-left: auto; font: 500 13px/1 var(--font-text); color: var(--p-muted); font-variant-numeric: tabular-nums; }
.rep-list { list-style: none; margin: 0; padding: 8px; display: grid; gap: 2px; }
.rep-row { appearance: none; border: 0; background: none; width: 100%; text-align: left; cursor: pointer; color: inherit; font: inherit;
  display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 12px; border-radius: 10px;
  transition: background-color 160ms var(--hw-ease); }
.rep-row:hover { background: #f7efe3; }
.rep-row[aria-current="true"] { background: #efe1d6; }
.rep-row:focus-visible { outline: 2px solid var(--action); outline-offset: -2px; }
.rep-row__n { font: 400 18px/1 var(--font-display); color: var(--hw-gold-ink); font-variant-numeric: tabular-nums; }
.rep-row__t { font: 500 15px/1.35 var(--font-text); min-width: 0; }
.rep-row__s { grid-column: 2 / -1; font: 400 13px/1.35 var(--font-text); color: var(--p-muted); }
.rep-row__s b { font-weight: 500; color: var(--p-ink); }
.rep-open { padding: 22px 32px 32px; display: grid; gap: 18px; align-content: start; }
.ro-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ro-rank { font: 500 13px/1 var(--font-text); color: var(--p-muted); }
.ro-title { margin: -4px 0 0; font: 400 30px/1.12 var(--font-display); letter-spacing: -0.015em; color: var(--hw-heading); }
.ro-lab { margin: 0 0 8px; font: 500 13px/1 var(--font-text); color: var(--hw-parch-meta); }
.ro-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ro-q { margin: 0; padding: 14px 16px; border-radius: 10px; background: var(--hw-parch); font: 400 16px/1.55 var(--font-display); color: var(--hw-parch-ink); }
html[data-desk="script"] .ro-q { font: 400 14px/1.55 var(--font-mono); }
.ro-ok { margin: 8px 0 0; font: 500 13px/1.2 var(--font-text); color: #24563a; display: flex; gap: 6px; align-items: center; }
.ro-ok::before { content: ""; width: 12px; height: 7px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg) translateY(-2px); }
.ro-none { margin: 0; padding: 14px 16px; border-radius: 10px; border: 1px dashed #d4bfae; font: 400 14px/1.5 var(--font-text); color: var(--p-muted); }
.ro-why p:last-child { margin: 0; font: 400 15px/1.55 var(--font-text); }
.ro-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ro-opt { appearance: none; text-align: left; cursor: pointer; font: inherit; color: inherit; background: var(--hw-paper); border: 1px solid var(--hw-card-line); border-radius: 10px; padding: 10px 12px;
  display: grid; gap: 2px; transition: border-color 160ms var(--hw-ease), background-color 160ms var(--hw-ease); }
.ro-opt b { font: 500 14px/1.3 var(--font-text); }
.ro-opt span { font: 400 13px/1.3 var(--font-text); color: var(--p-muted); }
.ro-opt:hover { border-color: #c9b29f; }
.ro-opt:active { transform: scale(.985); }
.ro-opt[aria-pressed="true"] { border-color: var(--hw-wine); background: #f7ece9; box-shadow: inset 0 0 0 1px var(--hw-wine); }
.ro-opt:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.ro-field { min-height: 64px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--hw-card-line); font: 400 14px/1.5 var(--font-text); color: var(--p-ink); background: #fff; }
.ro-field:empty::before { content: "Only you can see this note"; color: var(--p-muted); }
.ro-saved { font: 400 13px/1.2 var(--font-text); color: var(--p-muted); margin: 8px 0 0; }
@media (max-width: 1279px) { .ro-pair { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- the game */
.game__side { display: flex; flex-direction: column; gap: var(--s-5); }
.game__side > h2 { margin: 0; }
.game__lede { margin: 0; font-size: var(--t-lead); line-height: 1.6; max-width: 40ch; }
.game__count { margin: 0; font: 500 15px/1 var(--font-text); color: var(--muted); font-variant-numeric: tabular-nums; }
.game .btn-row { align-items: center; }
.game__reset { appearance: none; background: none; border: 0; padding: 0; cursor: pointer; font: 500 15px/1.4 var(--font-text); color: var(--ink); }
.game__result { padding-top: var(--s-5); border-top: 1px solid var(--line); display: grid; gap: var(--s-4); }
.game__score { margin: 0; font: 400 32px/1.1 var(--font-display); letter-spacing: -0.015em; color: var(--hw-heading); }
.game__key { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.gk { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-right: 10px; vertical-align: -2px; }
.gk--hit { background: var(--hw-gold-line); }
.gk--miss { box-shadow: inset 0 0 0 1.5px #9b2c2c; }
.gk--no { background: #d8cbbe; }
.game__stage { display: flex; min-height: 0; align-self: stretch; }
.gpage { flex: 1; position: relative; background: linear-gradient(180deg, #f6eedf, var(--hw-parch)); border-radius: 8px; padding: 44px 52px 56px; color: var(--hw-parch-ink);
  box-shadow: 0 1px 0 var(--hw-parch-line), 0 40px 70px -40px rgba(55, 9, 27, .4), -4px 4px 0 -2px #ebdfcb, -8px 8px 0 -4px #e2d3bb; }
.gpage__run { margin: 0 0 16px; font: 500 13px/1 var(--font-text); color: var(--hw-parch-meta); }
.gpage::after { content: "1"; position: absolute; left: 0; right: 0; bottom: 20px; text-align: center; font: 400 13px/1 var(--font-display); color: var(--hw-parch-meta); }
.glines { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.gl { appearance: none; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; display: block; width: 100%; position: relative;
  padding: 10px 14px 10px 42px; border-radius: 8px; font: 400 20px/1.5 var(--font-display); transition: background-color 200ms var(--hw-ease); }
.gl::before { content: ""; position: absolute; left: 14px; top: 18px; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(126, 90, 26, .45);
  transition: background-color 200ms var(--hw-ease), box-shadow 200ms var(--hw-ease); }
.gl:hover { background: rgba(223, 182, 100, .16); }
.gl:active { transform: scale(.995); }
.gl[aria-pressed="true"] { background: rgba(223, 182, 100, .3); }
.gl[aria-pressed="true"]::before { background: var(--hw-gold-line); box-shadow: none; }
.gl:focus-visible { outline: 2px solid var(--hw-wine); outline-offset: -2px; }
.gl[aria-disabled="true"] { cursor: default; }
.gl[aria-disabled="true"]:hover { background: none; }
.gpage--script .gl { font: 400 15px/1.5 var(--font-mono); }
.gsp__head { margin: 0 0 8px 40px; font: 400 15px/1.5 var(--font-mono); text-transform: uppercase; }
.gl__note { display: block; margin-top: 4px; font: 500 13px/1.3 var(--font-text); }
.is-revealed .gl[data-k][aria-pressed="true"] { background: rgba(223, 182, 100, .3); }
.is-revealed .gl[data-k][aria-pressed="true"] .gl__note { color: var(--hw-gold-ink); }
.is-revealed .gl[data-k][aria-pressed="false"] { background: none; box-shadow: inset 0 0 0 1.5px rgba(155, 44, 44, .55); }
.is-revealed .gl[data-k][aria-pressed="false"]::before { box-shadow: inset 0 0 0 1.5px #9b2c2c; }
.is-revealed .gl[data-k][aria-pressed="false"] .gl__note { color: #9b2c2c; }
.is-revealed .gl:not([data-k])[aria-pressed="true"] { background: #ece3d6; color: #6e5a50; }
.is-revealed .gl:not([data-k])[aria-pressed="true"]::before { background: #c9b9a8; }
.is-revealed .gl:not([data-k])[aria-pressed="true"] .gl__note { color: #6e5a50; }
.gl__note:empty { display: none; }
@media (max-width: 639px) { .gpage { padding: 24px 16px 28px; } .gl { font-size: 16px; padding-left: 34px; } .gl::before { left: 10px; top: 13px; } }

/* ---------------------------------------------------------------- the scroll story (dark band) */
.story { background: radial-gradient(80% 70% at 82% 45%, #4a1328 0%, var(--hw-wine-d) 52%, var(--hw-wine-dd) 100%); }
.story .mo-pc__step h3 { font-family: var(--font-display); font-weight: 400; font-size: 26px; letter-spacing: -0.01em; }
.story .mo-pc__step p { color: #e3d3d7; font-size: 17px; line-height: 1.6; }
.story.is-live .mo-pc__step.is-on { border-left-color: var(--hw-gold); }
.story .mo-pc__visuals { border-radius: var(--r-lg); background: rgba(251, 245, 234, .04); box-shadow: inset 0 0 0 1px rgba(223, 182, 100, .16); }
.sv { position: relative; display: grid; place-items: center; padding: 40px; aspect-ratio: 4 / 3; overflow: hidden; }
.sv__page { position: relative; width: min(100%, 500px); padding: 36px 40px 44px; border-radius: 6px; background: linear-gradient(180deg, #f6eedf, var(--hw-parch));
  color: var(--hw-parch-ink); font: 400 22px/1.6 var(--font-display); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .65), -4px 4px 0 -2px #e9dcc7, -8px 8px 0 -4px #ddcdb2; }
.sv__run { margin: 0 0 12px; font: 500 13px/1 var(--font-text); color: var(--hw-parch-meta); }
.sv__txt { margin: 0; }
.sv__sp { font: 400 16px/1.6 var(--font-mono); display: block; }
.sv__cue { color: inherit; border-radius: 3px; padding: 0 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; background: rgba(223, 182, 100, .5); }
.sv__pin { position: absolute; left: 40px; bottom: -14px; padding: 7px 14px; border-radius: 999px; background: var(--hw-gold); color: var(--hw-wine-dd); font: 600 13px/1 var(--font-text); }
.sv--run { align-content: center; gap: 28px; }
.sv__strip { position: relative; width: 100%; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; align-items: center; }
.sv__leaf { aspect-ratio: 3 / 4; padding: 12px 10px; border-radius: 4px; background: linear-gradient(180deg, #f6eedf, var(--hw-parch)); display: grid; align-content: start; gap: 7px;
  box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .6); }
.sv__leaf b { font: 500 13px/1 var(--font-text); color: var(--hw-parch-meta); margin-bottom: 4px; }
.sv__leaf i { display: block; height: 5px; border-radius: 3px; background: var(--hw-parch-line); }
.sv__leaf i:nth-of-type(2) { width: 82%; } .sv__leaf i:nth-of-type(3) { width: 64%; }
.sv__thread { position: absolute; left: -2%; top: 50%; width: 104%; height: 120px; transform: translateY(-50%); overflow: visible; pointer-events: none; }
.sv__thread path { fill: none; stroke: var(--hw-gold); stroke-width: 2.5; stroke-linecap: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 6px rgba(239, 209, 137, .85));
  stroke-dasharray: 1; stroke-dashoffset: 0; }
.story.is-live .sv--run .sv__thread path { stroke-dashoffset: 1; transition: stroke-dashoffset 1400ms var(--hw-ease); }
.story.is-live .sv--run.is-on .sv__thread path { stroke-dashoffset: 0; }
.sv__note { margin: 0; font: 500 14px/1 var(--font-text); color: var(--hw-gold); }
.sv__card { position: absolute; right: 28px; bottom: 28px; display: grid; gap: 6px; justify-items: start; padding: 14px 16px; border-radius: 14px; background: var(--hw-paper); color: var(--p-ink);
  font: 400 13px/1.3 var(--font-text); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }
.sv__card b { font: 400 19px/1.2 var(--font-display); color: var(--hw-heading); }
.story:not(.is-live) .sv { aspect-ratio: auto; max-height: 34svh; min-height: 220px; padding: 20px; }
.story:not(.is-live) .sv__page { font-size: 16px; padding: 20px 24px 28px; }
.story:not(.is-live) .sv__sp { font-size: 13px; }
.story:not(.is-live) .sv__card { right: 12px; bottom: 12px; }
@media (max-width: 639px) { .sv__strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } .sv__leaf:nth-child(n+5) { display: none; } }

/* "never" and the questions are shorter than a screen: as tall as their content, not one
   whole screen each (Mondy, 2026-11-26: the leftover height read as empty space) */
main > section#never, main > section#faq { height: auto; min-height: 0; }
main > section#never > .wrap, main > section#faq > .wrap { height: auto; }
main > section#never > .wrap > .fill, main > section#faq > .wrap > .fill { flex: none; }

/* ---------------------------------------------------------------- what it never does */
.never .panel.nv { --p-h: 300px; height: var(--p-h); min-height: 0; flex: none; margin: 0 0 24px; display: grid; place-items: center; padding: 24px; border-radius: 16px;
  background: linear-gradient(180deg, #f3eadc, #efe4d3) !important;
  box-shadow: inset 0 0 0 1px rgba(42, 15, 28, .06), 0 1px 2px rgba(55, 9, 27, .05), 0 18px 36px -22px rgba(55, 9, 27, .22); }
.never .panel.nv::before, .never .panel.nv::after { display: none; }
.never .card > p { margin-top: 8px; }
.never .card > h3 { font: 400 24px/1.2 var(--font-display); letter-spacing: -0.01em; color: var(--hw-heading); }
.nv__file { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--hw-paper); border: 1px solid var(--hw-card-line); box-shadow: 0 20px 40px -24px rgba(55, 9, 27, .3); }
.nv__doc { flex: none; width: 30px; height: 38px; border-radius: 4px; background: var(--hw-wine); position: relative; }
.nv__doc::after { content: ""; position: absolute; left: 7px; right: 7px; top: 10px; height: 14px; background: repeating-linear-gradient(180deg, rgba(251, 245, 234, .6) 0 2px, transparent 2px 5px); }
.nv__file b { display: block; font: 500 14px/1.3 var(--font-text); }
.nv__lock { display: block; font: 500 13px/1.3 var(--font-text); color: #2f6b45; }
.nv__labels { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; justify-items: start; }
.nv__why { margin: 0; display: grid; gap: 10px; justify-items: start; padding: 16px; border-radius: 12px; background: var(--hw-paper); border: 1px solid var(--hw-card-line); font: 400 17px/1.45 var(--font-display); color: var(--hw-parch-ink); box-shadow: 0 20px 40px -24px rgba(55, 9, 27, .3); }
.nv__quote { margin: 0; display: grid; gap: 10px; padding: 16px 18px; border-radius: 10px; background: var(--hw-parch); font: 400 18px/1.45 var(--font-display); color: var(--hw-parch-ink); }
.nv__ok { display: flex; align-items: center; gap: 6px; font: 500 13px/1.2 var(--font-text); color: #24563a; }
.nv__ok::before { content: ""; width: 12px; height: 7px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg) translateY(-2px); }

/* ---------------------------------------------------------------- pricing, questions, close */
.pricing__side { display: grid; gap: var(--s-5); align-content: start; }
.pricing__side > * { margin: 0; }
.plan__price { margin: var(--s-2) 0; font: 400 16px/1 var(--font-text); color: var(--muted); }
.plan__price span { font: 400 64px/1 var(--font-display); letter-spacing: -0.03em; color: var(--hw-heading); margin-right: 6px; }
.faq__lede { margin: var(--s-5) 0 var(--s-4); }
#faq .faq__item p { font-size: 15px; line-height: 1.6; color: var(--muted); }
.pricing .card--plan { align-self: start; }
.formats { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; margin-top: var(--s-6); }
.formats__label { margin: 0; font: 500 15px/1.4 var(--font-text); }
.formats__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.formats__list li { padding: 6px 12px; border-radius: 8px; background: var(--p-surface); box-shadow: inset 0 0 0 1px var(--line); font: 400 14px/1.2 var(--font-mono); }
.formats__note { margin: 0 0 0 auto; font-size: 14px; color: var(--muted); }
.close__word { color: var(--hw-gold); }
.footer--dark .t-lead { color: #e3d3d7; }

/* ---------------------------------------------------------------- glide-in sections (the user's choice) */
.glide { opacity: 0; transform: translateY(28px); transition: opacity 800ms var(--hw-ease), transform 900ms var(--hw-ease); transition-delay: calc(var(--gi, 0) * 90ms); }
.glide.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .glide { opacity: 1 !important; transform: none !important; transition: none !important; }
  .cue, .pay, .tab, .desk__opt { transition: none; }
  .finding.is-swap > * { animation: none; }
}
.pricing .card--plan { height: auto; }

/* round 2: the switch under the buttons, plan titles in the display face, a plain includes list, tablet heights */
.hero-copy > .desk { margin-top: var(--s-6); }
.card.card--plan h3 { font: 400 26px/1.15 var(--font-display); letter-spacing: -0.01em; color: var(--hw-heading); }
.pricing__all { list-style: none; margin: 0; padding: 0; display: grid; }
.pricing__all li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.pricing__all li:first-child { border-top: 1px solid var(--line); }
@media (min-width: 640px) and (max-width: 1023px) { #never, #pricing { --h: 2; } }
/* round 3: the story's drawn pages keep their own ink inside the steps; static rows sized to fill their screens */
.story .mo-pc__step .sv p, .story .sv .sv__txt { color: var(--hw-parch-ink); font-size: inherit; line-height: inherit; max-width: none; }
.story .mo-pc__step .sv .sv__run { color: var(--hw-parch-meta); font-size: 13px; }
.story .mo-pc__step .sv .sv__note { color: var(--hw-gold); font-size: 14px; }
.sv__leaf b { white-space: nowrap; }
@media (min-width: 640px) {
  .story:not(.is-live) .sv { height: 36svh; max-height: none; min-height: 0; }
}
@media (max-width: 1023px) { .sv__leaf { padding: 8px 6px; gap: 5px; } }
@media (max-width: 639px) {
  .never .panel.nv { --p-h: 196px; }
  .story:not(.is-live) .sv { max-height: none; height: 230px; }
}
/* round 4 */
#faq .faq__item p { color: var(--ink); }
.report__lede { font-size: var(--t-lead); max-width: none; }
.plan__price span { font-size: calc(var(--t-h1) * .78); }
#never .card > h3, .pricing .card.card--plan h3, #story .mo-pc__step h3 { font: 400 24px/1.2 var(--font-display); letter-spacing: -0.01em; }
#story .mo-pc__step h3 { color: var(--muted); }
#story .mo-pc__step.is-on h3, #story:not(.is-live) .mo-pc__step h3 { color: var(--ink); }
.pricing__refund { font-size: 15px; line-height: 1.55; }
/* the book: from 1024 to 1279 one passage less and no finding card; under 1024 the left page alone with its finding */
@media (max-width: 1279px) {
  .book .opt, .book .opt-s { display: none; }
  .desk-stage .finding { display: none; }
  .gl { font-size: 17px; padding-block: 6px; }
}
@media (max-width: 1023px) {
  .book { grid-template-columns: minmax(0, 1fr); }
  .book .page--r, .book::after, .book .threads { display: none; }
  .book .page--l { border-radius: 6px; }
  .desk-stage .finding { display: grid; }
  .desk-stage .finding__why { display: none; }
  .gl { font-size: 16px; padding-block: 5px; }
  .gl::before { top: 12px; }
  .gpage { padding: 28px 28px 40px; }
}
@media (max-width: 639px) {
  .desk-stage .finding { display: none; }
  .book .page--l { -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
  #faq .faq > .faq__item { padding-block: 16px; }
}
/* round 5: the formats as stacked lines on the left line; 1024 to 1279 fits each section in its screen */
.formats { display: grid; justify-items: start; gap: 12px; margin-top: var(--s-6); }
.formats__note { margin: 0; }
@media (min-width: 1024px) and (max-width: 1279px) {
  .hero h1 { font-size: 4.8vw; }
  .never .panel.nv { --p-h: 220px; }
  .pricing .card.card--plan { gap: 10px; padding-block: 24px; }
  .pricing .card--plan .checks { gap: 8px; }
  .pricing .formats { margin-top: var(--s-5); }
  .pricing .formats__note { display: none; }
}
/* round 6: no indent on a chapter's title or its first paragraph; the game page loses its folio; the reveal button goes once used */
.page .page__title, .page .page__title + p { text-indent: 0; }
.gpage::after { content: none; }
.game.is-revealed [data-reveal] { display: none; }
.gl__note { margin-top: 2px; }
.story:not(.is-live) .sv { overflow: visible; padding-bottom: 28px; }
/* round 7: a sample report link under each plan button; the cards list what every report holds */
.card--plan > .muted { text-wrap: balance; }
.card--plan .plan__sample { align-self: center; margin-top: calc(-1 * var(--s-2)); font-size: 15px; }
@media (min-width: 1024px) and (max-width: 1439px) {
  .pricing .card.card--plan { gap: 8px; }
  .pricing .card--plan .checks { gap: 6px; }
  .pricing .card--plan .checks li { font-size: 15px; line-height: 1.35; }
}
/* round 8: three plans by word count; every card has the same rows, lined up across the cards */
.pricing--3 { display: flex; flex-direction: column; gap: 20px; }
.pricing__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-5) var(--s-6); align-items: end; }
.pricing__head h2 { margin: 0; }
.pricing__lede { display: grid; gap: 6px; justify-items: end; text-align: right; }
.pricing__lede > p { margin: 0; }
.pricing__once { font: 500 18px/1.4 var(--font-text); color: var(--hw-heading); }
.pricing--3 .pricing__refund { font-size: 15px; color: var(--muted); }
.pricing__key { display: flex; gap: 18px; font-size: 14px; color: var(--muted); }
.key, .tier__rows li { display: flex; align-items: center; gap: 10px; }
.key::before, .tier__rows li::before { content: ""; flex: none; width: 18px; height: 18px; }
.key--yes::before, .tier__rows li.is-yes::before {
  background: var(--action);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cmask id='m'%3E%3Crect width='20' height='20' fill='white'/%3E%3Cpath d='M6 10.2l2.6 2.6L14 7.4' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/mask%3E%3Ccircle cx='10' cy='10' r='10' mask='url(%23m)'/%3E%3C/svg%3E") center / 18px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cmask id='m'%3E%3Crect width='20' height='20' fill='white'/%3E%3Cpath d='M6 10.2l2.6 2.6L14 7.4' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/mask%3E%3Ccircle cx='10' cy='10' r='10' mask='url(%23m)'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.key--no::before, .tier__rows li.is-no::before {
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='9' fill='none' stroke='black' stroke-width='1.4'/%3E%3Cpath d='M7 7l6 6M13 7l-6 6' stroke='black' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 18px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='9' fill='none' stroke='black' stroke-width='1.4'/%3E%3Cpath d='M7 7l6 6M13 7l-6 6' stroke='black' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}
/* the free report: one slim row above the three paid plans (Mondy, 2026-11-26) */
/* The free report stands out a little (Mondy, 2026-11-28): warmer gold, a stronger gold edge, a soft lift, a
   "Start here" tag across the top edge and a gold button; still lighter than the featured Medium card. */
.free-row { position: relative; margin-top: 14px; display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding: 18px 22px 16px; border-radius: 16px;
  background: linear-gradient(100deg, color-mix(in oklab, var(--hw-gold) 20%, transparent), color-mix(in oklab, var(--hw-gold) 9%, transparent));
  box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--hw-gold-line) 55%, transparent), 0 14px 32px -22px rgba(160, 116, 42, .55); }
.free-row > p { margin: 0; }
.free-row > .free-row__tag { position: absolute; top: 0; left: 22px; transform: translateY(-50%); padding: 5px 10px; border-radius: 6px;
  background: var(--hw-gold); color: var(--hw-wine-dd); font: 600 12px/1 var(--font-text); letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 0 2px 8px -2px rgba(160, 116, 42, .55); }
.btn--gold { background: var(--hw-gold); color: var(--hw-wine-dd); }
.btn--gold:hover { background: var(--hw-gold-l); }
.free-row__name { display: flex; align-items: baseline; gap: 10px; font: 400 22px/1.2 var(--font-display); color: var(--hw-heading); }
.free-row__name strong { font-weight: 400; }
.free-row__price { font-size: 30px; }
.free-row__what { flex: 1 1 320px; font-size: 15px; color: var(--muted); }
.free-row__go { margin-left: auto; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; }
.plans .card.card--plan.tier { align-self: stretch; height: auto; display: grid; grid-row: span 14; grid-template-rows: subgrid; row-gap: 8px; padding: 24px 26px 22px; }
.tier > * { margin: 0; min-width: 0; }
.plans .tier .tier__for { margin-top: -4px; font-size: 15px; text-wrap: balance; }
.plans .tier .plan__price { margin: 2px 0 0; }
.plans .tier .plan__price span { font-size: 52px; }
.tier__words { display: flex; align-items: baseline; gap: 8px; padding: 8px 14px; border-radius: 12px; font: 400 15px/1.2 var(--font-text); color: var(--muted);
  background: color-mix(in oklab, var(--hw-gold) 13%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--hw-gold) 45%, transparent); }
.tier__words strong { font: 400 26px/1 var(--font-display); letter-spacing: -0.01em; color: var(--hw-heading); }
.tier__words { white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1279px) {
  .tier__words { gap: 6px; padding: 8px 12px; font-size: 14px; }
  .tier__words strong { font-size: 22px; }
}
.plans .tier .plan__sample { justify-self: center; align-self: center; margin: -4px 0 0; }
.tier__rows { display: grid; grid-row: span 8; grid-template-rows: subgrid; row-gap: 0; list-style: none; padding: 0; margin: 4px 0 0; border-top: 1px solid var(--line); }
.tier__rows li { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.35; }
.tier__rows li.is-no { color: var(--muted); }
.pricing--3 .formats { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; margin: 0; }
.pricing--3 .formats__note { display: block; margin: 0 0 0 auto; }
/* the section grows with its plans rather than overlap the questions below */
@media (min-width: 1280px) { main > section#pricing { height: auto; min-height: calc(var(--h, 1) * 100svh); } }
@media (max-width: 1023px) {
  .pricing__head { grid-template-columns: minmax(0, 1fr); }
  .pricing__lede { justify-items: start; text-align: left; }
  .plans { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .plans .card.card--plan.tier { grid-row: auto; grid-template-rows: none; }
  .tier__rows { grid-row: auto; grid-template-rows: none; }
  .pricing--3 .formats__note { margin: 0; flex-basis: 100%; }
}
@media (max-width: 639px) {
  main > section#pricing { height: auto; min-height: calc(var(--hm, var(--h, 1)) * 100lvh); }
  .plans .card.card--plan.tier { padding: 22px; }
  .pricing__key { flex-wrap: wrap; }
}
/* round 9: the Full draft plan is the recommended one: a badge across its top edge and a soft gold glow */
.plans .tier { position: relative; }
.plans .card--plan.tier.is-featured { overflow: visible; }   /* the kit clips cards; the badge sits across the top edge */
.plans .card--plan.tier.is-featured { box-shadow: inset 0 0 0 1px var(--action), 0 0 0 4px rgba(223, 182, 100, .16), 0 0 34px 4px rgba(223, 182, 100, .34), 0 22px 48px -20px rgba(74, 19, 40, .35); }
.tier > .tier__badge { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); margin: 0; padding: 6px 12px; border-radius: 6px; white-space: nowrap;
  background: var(--hw-wine); color: #f7ecd6; font: 600 12px/1 var(--font-text); letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 2px 10px -2px rgba(74, 19, 40, .45); }

/* round 10 (v19, the audit): headline audience, the upload-first journey, privacy beside pricing, labels explained,
   phones lead with the sample finding */
.hero__for { margin: 0 0 14px; font: 600 13px/1.3 var(--font-text); letter-spacing: .08em; text-transform: uppercase; color: var(--hw-gold-ink); }
.hero__price { margin: 14px 0 0; font: 500 14px/1.45 var(--font-text); color: var(--muted); }
/* the report grows with its window so the whole selected thread shows; the next step sits under it */
#report .app.fill { flex: none; }
#report .app > .app__pane::after { display: none; }
.ro-meaning { margin: -8px 0 0; font: 400 14px/1.45 var(--font-text); color: var(--muted); }
.report__next { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-top: 24px; }
.report__next p { margin: 0; font: 400 16px/1.5 var(--font-text); color: var(--muted); }
@media (min-width: 1280px) { main > section#report { height: auto; min-height: calc(var(--h, 1) * 100svh); } }
/* pricing: how paying works beside who sees the draft */
.pricing__how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pricing__how .how, .pricing__how .extras, .pricing__how .privacy { border-radius: 16px; padding: 22px 26px; background: var(--hw-paper);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--hw-card-line) 70%, #dfb664 30%); }
.how__h { margin: 0 0 12px; font: 400 22px/1.2 var(--font-display); color: var(--hw-heading); }
.how__steps { margin: 0; padding: 0; list-style: none; counter-reset: how; display: grid; gap: 10px; }
.how__steps li { counter-increment: how; position: relative; padding-left: 36px; font: 400 15px/1.5 var(--font-text); color: var(--ink); }
.how__steps li::before { content: counter(how); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  font: 600 12px/1 var(--font-text); color: #f7ecd6; background: var(--hw-wine); }
.how__steps b { font-weight: 600; color: var(--hw-heading); }
.privacy__list { margin: 0 0 12px; padding: 0; list-style: none; display: grid; gap: 8px; }
.privacy__list li { position: relative; padding-left: 18px; font: 400 15px/1.5 var(--font-text); color: var(--ink); }
.privacy__list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--hw-gold); }
.tier__eg { margin-left: 4px; font-size: 13px; white-space: nowrap; }
@media (max-width: 1023px) {
  .pricing__how { grid-template-columns: minmax(0, 1fr); }
  /* phones and tablets: what differs between the plans comes first in each card */
  .tier__rows li:nth-child(n+6) { order: -1; }
}
/* phones: no clipped book; the hero ends with its buttons and the sample finding comes straight after */
@media (max-width: 639px) {
  main > section.hero { height: auto; }
  .hero > .wrap { height: auto; }
  .hero .hero-visual { display: none; }
  main > section#report { height: auto; min-height: 0; padding-top: 56px; }
  .report__next .btn { width: 100%; justify-content: center; }
}
/* round 11 (v20): what the extras include, the third block beside how paying works and privacy */
.extras__list { margin: 0; display: grid; gap: 6px; }
.extras__list dt { font: 600 15px/1.4 var(--font-text); color: var(--hw-heading); }
.extras__list dd { margin: 0 0 8px; font: 400 15px/1.5 var(--font-text); color: var(--ink); }
@media (min-width: 1024px) and (max-width: 1279px) { .pricing__how { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pricing__how .privacy { grid-column: 1 / -1; } }

/* ---- hw2.css ---- */
/* Hemwrite homepage v2: lenses on the book, the planned tools. Loaded after hw.css. */

/* the lens bar on the dark stage */
.lenses { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 22px; width: max-content; max-width: 100%;
  background: rgba(251, 245, 234, .06); box-shadow: inset 0 0 0 1px rgba(223, 182, 100, .22); }
.lens { appearance: none; border: 0; background: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px;
  color: #dccbcf; font: 500 14px/1 var(--font-text); white-space: nowrap; transition: background-color 240ms var(--hw-ease), color 200ms var(--hw-ease); }
.lens svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.lens:hover { color: #fbf5ea; background: rgba(251, 245, 234, .07); }
.lens:active { transform: scale(.98); }
.lens[aria-pressed="true"] { background: #fbf5ea; color: var(--hw-wine-d); }
.lens[aria-pressed="true"] svg { color: var(--hw-gold-line); }
.lens:focus-visible { outline: 2px solid var(--hw-gold); outline-offset: 2px; }
.lens__plan { font: 600 13px/1 var(--font-text); font-style: normal; padding: 3px 7px; border-radius: 999px; color: var(--hw-gold); box-shadow: inset 0 0 0 1px rgba(223, 182, 100, .55); }
.lens[aria-pressed="true"] .lens__plan { color: var(--hw-gold-ink); box-shadow: inset 0 0 0 1px rgba(126, 90, 26, .45); }

/* marks: plain text until their lens is on */
.mk--caret { display: none; }
.mk--caret.cue { display: inline-flex; align-items: center; margin: 0 4px; padding: 0 2px; vertical-align: 1px; text-decoration: none; border-radius: 999px; }
.mk--caret.cue::after { content: "+ hint"; display: inline-block; padding: 3px 8px; border-radius: 999px; font: 600 13px/1 var(--font-text); color: var(--hw-gold-ink);
  background: rgba(223, 182, 100, .16); box-shadow: inset 0 0 0 1.5px rgba(160, 116, 42, .7); }
.mk--caret.cue.is-on { background: none; }
.mk--caret.cue.is-on::after { background: var(--hw-gold-line); color: #fbf5ea; box-shadow: none; }
.tg { border-radius: 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-color 300ms var(--hw-ease) 450ms; }
.tg.is-on { background: rgba(223, 182, 100, .4); }
.tab { display: none; }
.tab.is-lens { display: block; }
.threads .th--hint { stroke-dasharray: 2 6; }
.chip--plan { color: var(--hw-gold-ink); background: #fbf1da; border-color: #dfc48e; }
.finding__draft { display: block; margin-top: 6px; color: var(--hw-gold-l); }
@media (max-width: 1279px) {
  .lens { padding: 8px 11px; gap: 6px; font-size: 13px; }
  .lens svg { width: 16px; height: 16px; }
  .lens__plan { display: none; }
}
@media (max-width: 639px) {
  .lenses { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .lens { justify-content: center; }
}

/* the planned tools: three cards, each with its small working demo */
.next__lede { margin: 0; color: var(--ink); }
.grid.next { margin-top: var(--s-7); align-items: stretch; }
.card.nx { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 20px; background: var(--hw-paper); border: 1px solid var(--hw-card-line);
  box-shadow: 0 30px 60px -44px rgba(55, 9, 27, .4); }
.nx__head { display: flex; align-items: center; gap: 10px; }
.nx__head h3 { margin: 0; font: 400 22px/1.2 var(--font-display); letter-spacing: -0.01em; color: var(--hw-heading); }
.nx__icon { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--hw-gold-line); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.plan { margin-left: auto; padding: 4px 9px; border-radius: 999px; font: 600 13px/1 var(--font-text); color: var(--hw-gold-ink); box-shadow: inset 0 0 0 1px rgba(160, 116, 42, .5); white-space: nowrap; }
.nx__what { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink); }
.card.nx > .nx__plan { margin: -6px 0 0; font-size: 13px; line-height: 1.4; color: var(--muted); }  /* which plans include the tool (beats base .card > p) */
.nx__demo { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 14px; background: var(--p-surface); box-shadow: inset 0 0 0 1px rgba(42, 15, 28, .06); min-height: 300px; }
.pick { appearance: none; border: 0; cursor: pointer; padding: 7px 11px; border-radius: 999px; font: 500 13px/1.2 var(--font-text); color: var(--ink); background: var(--hw-paper);
  box-shadow: inset 0 0 0 1px var(--hw-card-line); transition: background-color 180ms var(--hw-ease), box-shadow 180ms var(--hw-ease); }
.pick:hover { box-shadow: inset 0 0 0 1px #c9b29f; }
.pick:active { transform: scale(.98); }
.pick[aria-pressed="true"] { background: var(--hw-wine); color: #fbf5ea; box-shadow: none; }
.pick:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.st__picks { display: flex; flex-wrap: wrap; gap: 6px; }
.st__meter { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 4px; }
.st__meter i { height: 8px; border-radius: 4px; background: #e4d7c5; transition: background-color 400ms var(--hw-ease); }
.st__meter[data-level="1"] i:nth-child(-n+1), .st__meter[data-level="2"] i:nth-child(-n+2), .st__meter[data-level="3"] i { background: var(--hw-gold-line); }
.st__label { margin: 0; font: 400 22px/1.2 var(--font-display); color: var(--hw-heading); }
.st__q { margin: 0; font: 400 15px/1.45 var(--font-display); color: var(--hw-parch-ink); }
.st__q span { display: block; font: 500 13px/1.3 var(--font-text); color: var(--hw-parch-meta); }
.st__why { margin: auto 0 0; font-size: 14px; line-height: 1.5; color: var(--ink); }
.rv__bar { margin: 0; display: flex; align-items: center; gap: 8px; font: 500 13px/1.2 var(--font-text); color: var(--muted); }
.rv__bar b { margin-left: auto; font-weight: 500; color: var(--ink); }
.rv__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.rv__row { appearance: none; border: 0; background: none; cursor: pointer; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px;
  border-radius: 10px; font: 500 14px/1.3 var(--font-text); color: var(--ink); text-align: left; transition: background-color 160ms var(--hw-ease); }
.rv__row:hover { background: var(--hw-paper); }
.rv__row[aria-pressed="true"] { background: var(--hw-paper); box-shadow: inset 0 0 0 1px var(--hw-card-line); }
.rv__row:focus-visible { outline: 2px solid var(--action); outline-offset: -2px; }
.rv__diff { margin-top: auto; display: grid; gap: 6px; }
.rv__del, .rv__ins { margin: 0; padding: 8px 10px; border-radius: 8px; font: 400 14px/1.45 var(--font-display); }
.rv__del { background: #fbedea; color: #6b2323; text-decoration: line-through; text-decoration-color: rgba(155, 44, 44, .5); }
.rv__ins { background: #edf4ec; color: #1f4a32; }
.ask { display: flex; gap: 6px; }
.ask__q { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--hw-card-line); background: #fff; font: 400 14px/1 var(--font-text); color: var(--ink); }
.ask__q:focus { outline: 2px solid var(--action); outline-offset: 1px; }
.ask__go { appearance: none; border: 0; cursor: pointer; height: 40px; padding: 0 14px; border-radius: 10px; background: var(--hw-wine); color: #fbf5ea; font: 600 14px/1 var(--font-text); }
.ask__go:active { transform: scale(.98); }
.ask__try { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font: 500 13px/1 var(--font-text); color: var(--muted); }
.ask__out { display: grid; gap: 6px; }
.ask__lab { margin: 4px 0 0; font: 500 13px/1.3 var(--font-text); color: var(--hw-parch-meta); }
.ask__quote { margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--hw-parch); font: 400 15px/1.5 var(--font-display); color: var(--hw-parch-ink); }
.ask__quote mark { background: rgba(223, 182, 100, .5); color: inherit; border-radius: 2px; padding: 0 1px; }
.ask__later { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ask__later li { padding: 5px 9px; border-radius: 8px; background: var(--hw-paper); box-shadow: inset 0 0 0 1px var(--hw-card-line); font: 500 13px/1.2 var(--font-text); }
.ask__none { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink); }
@media (min-width: 640px) and (max-width: 1023px) { #next { --h: 2; } }
/* Ripple (2026-11-13): the fourth tool, full width under the other three; the section grows */
@media (min-width: 1280px) { main > section#next { height: auto; min-height: calc(var(--h, 1) * 100svh); } }
.grid.next > .nx--wide { grid-column: 1 / -1; }
.nx__sub { margin: 0 0 0 auto; font: 500 14px/1.3 var(--font-text); color: var(--hw-gold-ink); }
.rp__picks { display: flex; flex-wrap: wrap; gap: 6px; }
.rp__body { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; align-items: start; }
.rp__change { padding: 12px 14px; border-radius: 12px; background: var(--hw-parch); }
.rp__lab { margin: 0 0 6px; font: 500 13px/1.3 var(--font-text); color: var(--hw-parch-meta); }
.rp__out .rp__lab { color: var(--muted); }
.rp__sel { margin: 0; font: 400 15px/1.5 var(--font-display); color: var(--hw-parch-ink); }
.rp__what { margin: 8px 0 0; font: 500 14px/1.45 var(--font-text); color: var(--hw-parch-ink); }
.rp__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rp__res { position: relative; padding: 10px 12px 10px 20px; border-radius: 10px; background: var(--hw-paper); box-shadow: inset 0 0 0 1px var(--hw-card-line); }
.rp__res::before { content: ""; position: absolute; left: 9px; top: 12px; bottom: 12px; width: 2px; border-radius: 2px; background: var(--hw-gold-line); }  /* the thread */
.rp__meta { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 500 13px/1.3 var(--font-text); color: var(--muted); }
.rp__quote { margin: 6px 0 0; font: 400 15px/1.5 var(--font-display); color: var(--ink); }
.rp__why { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink); }
.rp__none { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink); }
@media (max-width: 1023px) { .rp__body { grid-template-columns: minmax(0, 1fr); } .nx__sub { flex-basis: 100%; margin: 0; } .nx__head { flex-wrap: wrap; } }
@media (min-width: 1024px) and (max-width: 1279px) { .card.nx { padding: 18px; } .nx__demo { min-height: 0; } .nx__head h3 { font-size: 20px; } }

/* the finding card keeps one height across lenses, so the book never jumps */
.desk-stage .finding { min-height: 112px; align-content: start; }
@media (max-width: 1279px) { .desk-stage .finding { min-height: 0; } }

/* phone: one planned tool at a time, picked from a small switch */
.nx-tabs { display: none; }
@media (max-width: 639px) {
  .nx-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--s-6); }
  .grid.next { margin-top: var(--s-4); }
  .grid.next > .nx { display: none; }
  .grid.next[data-nx-show="strength"] > [data-nx="strength"], .grid.next[data-nx-show="revision"] > [data-nx="revision"], .grid.next[data-nx-show="ask"] > [data-nx="ask"], .grid.next[data-nx-show="ripple"] > [data-nx="ripple"] { display: flex; }
  .nx__demo { min-height: 0; }
}

/* the footer wordmark: the kit's .86 line height and clip cut off the serif's tops (the H, the dot of the i, the t);
   give the letters their full height and clip only sideways */
.close__word { line-height: 1.04; letter-spacing: -0.02em; overflow-x: clip; overflow-y: visible; padding-top: .04em; }

/* the wordmark's letters rise once, in turn, from an unseen line just under their baseline (hw.js riseWord). The box
   reaches 0.28em below the baseline, where the footer links begin, so the cut sits 0.25em up from its bottom; the
   clip lets the serif tops through and is dropped once the letters have landed */
.close__word .cw-l { display: inline-block; }
.close__word.is-rising { clip-path: inset(-0.5em 0 0.25em 0); }
.close__word.is-rising .cw-l { transform: translateY(120%); transition: transform 900ms var(--hw-ease); transition-delay: calc(var(--li, 0) * 50ms); }
.close__word.is-rising.is-up .cw-l { transform: none; }
@media (prefers-reduced-motion: reduce) { .close__word .cw-l { transform: none !important; transition: none !important; } }

/* ---- hw3.css ---- */
/* Hemwrite homepage v3: the story section's continuous thread. Loaded after hw2.css. */

/* the fix: from 640 to 1279px the kit makes a section's .wrap grow to fill it (flex: 1 0 auto), which stretched the
   pinned stage to two screens, so it never pinned and left an empty band. The live stage is one screen, always. */
#story.is-live > .mo-pc__grid { flex: none; }

/* ---------------------------------------------------------------- the 1-2-3 rail beside the steps (live only) */
#story.is-live .mo-pc__steps { position: relative; padding-left: 52px; gap: 18px; counter-reset: st; }
#story.is-live .mo-pc__steps::before,
#story.is-live .mo-pc__steps::after { content: ""; position: absolute; left: 15px; top: 16px; bottom: 16px; width: 2px; border-radius: 2px; }
#story.is-live .mo-pc__steps::before { background: rgba(223, 182, 100, .18); }
#story.is-live .mo-pc__steps::after { background: var(--hw-gold); transform-origin: top; transform: scaleY(var(--p, 0)); box-shadow: 0 0 12px rgba(239, 209, 137, .55); }
#story.is-live .mo-pc__step { position: relative; padding-left: 0; border-left: 0; counter-increment: st; }
#story.is-live .mo-pc__step::before { content: counter(st); position: absolute; left: -52px; top: -1px; z-index: 1; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font: 600 14px/1 var(--font-text); color: #c4adb2; background: var(--hw-wine-d);
  box-shadow: inset 0 0 0 1.5px rgba(223, 182, 100, .35); transition: background-color 300ms var(--hw-ease), color 300ms var(--hw-ease), box-shadow 300ms var(--hw-ease); }
#story.is-live .mo-pc__step.is-reached::before { background: var(--hw-gold); color: var(--hw-wine-dd); box-shadow: 0 0 0 5px rgba(223, 182, 100, .14); }

/* ---------------------------------------------------------------- the live stage */
.ss { display: none; }
#story.is-live .mo-pc__visuals > .mo-pc__visual { display: none; }
#story:not(.is-live) .mo-pc__visuals { display: none; }  /* the frame is used only while pinned */
#story.is-live .mo-pc__visuals { overflow: hidden; background: radial-gradient(70% 60% at 40% 45%, rgba(223, 182, 100, .07), transparent 70%), rgba(251, 245, 234, .03); }
#story.is-live .ss { display: block; position: absolute; inset: 0; container-type: size; --deck: 0; --fan: 0; --pay: 0; --card: 0; }
.ss__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 2; pointer-events: none; }
.ss__track { fill: none; stroke: rgba(223, 182, 100, .2); stroke-width: 1.5; stroke-dasharray: 2 7; vector-effect: non-scaling-stroke; }
.ss__thread { fill: none; stroke: var(--hw-gold); stroke-width: 2.5; stroke-linecap: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 6px rgba(239, 209, 137, .85)); }
.ss__head { position: absolute; z-index: 3; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff3d6; opacity: 0;
  box-shadow: 0 0 0 4px rgba(223, 182, 100, .35), 0 0 22px 6px rgba(239, 209, 137, .7); pointer-events: none; }

.ss__page { position: absolute; z-index: 1; width: 38%; padding: 3.2cqw 3.4cqw 4.4cqw; border-radius: 6px; color: var(--hw-parch-ink);
  background: linear-gradient(180deg, #f7efe1, var(--hw-parch)); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .65), -4px 4px 0 -2px #e9dcc7, -8px 8px 0 -4px #ddcdb2; }
/* chapter one starts larger, nearer the middle, and settles into its corner as the thread sets off */
.ss__page--setup { left: 4%; top: 6.7%; transform-origin: 0 0;
  transform: translate(calc((1 - var(--deck)) * 13cqw), calc((1 - var(--deck)) * 9cqw)) scale(calc(1.22 - .22 * var(--deck))); }
.ss__page--payoff { left: 58.6%; top: 53.3%; opacity: var(--pay); transform: translateX(calc((1 - var(--pay)) * 6cqw)); }
.ss__run { margin: 0 0 1.2cqw; font: 500 clamp(11px, 1.7cqw, 14px)/1.2 var(--font-text); color: var(--hw-parch-meta); }
.ss__txt { margin: 0; font: 400 clamp(12px, 2.15cqw, 18px)/1.55 var(--font-display); }
.ss__sp { display: block; font: 400 clamp(11px, 1.8cqw, 15px)/1.55 var(--font-mono); }
.ss__txt mark { color: inherit; border-radius: 3px; padding: 0 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; background: rgba(223, 182, 100, .5); }
.ss__page--payoff .ss__txt mark { background: rgb(223 182 100 / calc(.12 + .45 * var(--card))); }
.ss__tag { position: absolute; left: 3.4cqw; bottom: -1.4cqw; padding: .7cqw 1.6cqw; border-radius: 999px; background: var(--hw-gold); color: var(--hw-wine-dd);
  font: 600 clamp(11px, 1.6cqw, 13px)/1 var(--font-text); }

/* the chapters in between: a deck that slides in and fans open as the thread passes through it */
.ss__deck { position: absolute; z-index: 1; left: 29%; top: 80%; width: 0; height: 0; opacity: var(--deck); transform: translateX(calc((1 - var(--deck)) * -4cqw)); }
.ss__leaf { position: absolute; left: 0; bottom: 0; width: 9.6cqw; aspect-ratio: 3 / 4; padding: .9cqw .8cqw; border-radius: 4px; display: grid; align-content: start; gap: .7cqw;
  background: linear-gradient(180deg, #f7efe1, var(--hw-parch)); transform-origin: 50% 100%;
  transform: translateX(-50%) rotate(calc(var(--a) * var(--fan) * 1deg)) translateY(calc(var(--fan) * -.6cqw));
  box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .6), inset 0 0 0 1px rgb(223 182 100 / calc(var(--fan) * .55)); }
.ss__leaf b { font: 600 clamp(10px, 1.4cqw, 13px)/1 var(--font-text); color: var(--hw-parch-meta); white-space: nowrap; }
.ss__leaf i { display: block; height: .55cqw; border-radius: 2px; background: var(--hw-parch-line); }
.ss__leaf i:nth-of-type(2) { width: 80%; } .ss__leaf i:nth-of-type(3) { width: 60%; }

/* the finding, once the thread lands */
.ss__card { position: absolute; z-index: 3; right: 4%; top: 8%; width: 34%; display: grid; gap: .8cqw; justify-items: start; padding: 2cqw 2.2cqw; border-radius: 14px;
  background: var(--hw-paper); color: var(--p-ink); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); font: 400 clamp(11px, 1.6cqw, 14px)/1.3 var(--font-text);
  opacity: var(--card); transform: translateY(calc((1 - var(--card)) * 2cqw)) scale(calc(.96 + .04 * var(--card))); }
.ss__card b { font: 400 clamp(14px, 2.5cqw, 21px)/1.2 var(--font-display); color: var(--hw-heading); }

@media (prefers-reduced-motion: reduce) { #story.is-live .mo-pc__step::before { transition: none; } }

/* ---- hw4.css ---- */
/* Hemwrite homepage v4: bigger lens tabs that invite a click. Loaded after hw3.css. */

/* the bar: bigger tabs, a count badge on each */
.lenses { gap: 8px; padding: 6px; border-radius: 18px; overflow: visible; }
.lens { position: relative; gap: 9px; padding: 12px 14px; font-size: 14.5px; border-radius: 13px; isolation: isolate; }
/* one full-width row of four from 640px up */
@media (min-width: 640px) {
  .lenses { display: flex; flex-wrap: nowrap; width: 100%; }
  .lens { flex: 1 1 auto; justify-content: center; }
}
.lens > svg { width: 20px; height: 20px; }
.lens__n { position: absolute; top: -9px; right: -9px; z-index: 2; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center;
  font: 600 12px/1 var(--font-text); white-space: nowrap; color: var(--hw-wine-dd); background: var(--hw-gold); box-shadow: 0 0 0 2px var(--hw-wine-d); pointer-events: none; }
/* the badge says what it counts: "3 threads" (Mondy, 2026-11-10) */
.lens__n { padding: 0 8px; }
.lens.is-tried:not([aria-pressed="true"]) .lens__n { background: rgba(223, 182, 100, .35); color: #fbf5ea; }
.lens:hover { background: rgba(251, 245, 234, .1); }

/* a tab not tried yet: a band of light runs round its border, the tab breathes a warm glow, its badge pulses */
@property --hw-ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.lens:not([aria-pressed="true"]):not(.is-tried) { color: #fff3e0; background: rgba(223, 182, 100, .07);
  animation: hw-lens-glow 2.4s ease-in-out infinite; animation-delay: calc(var(--i, 0) * .35s); }
.lens:not([aria-pressed="true"]):not(.is-tried) > svg { color: var(--hw-gold-l); }
.lens:not([aria-pressed="true"]):not(.is-tried)::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; padding: 1.5px;
  background: conic-gradient(from var(--hw-ang), rgba(223, 182, 100, .25) 0deg, #fff1cc 36deg, var(--hw-gold) 70deg, rgba(223, 182, 100, .25) 120deg, rgba(223, 182, 100, .25) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: hw-lens-spin 3.2s linear infinite; animation-delay: calc(var(--i, 0) * -.8s); pointer-events: none; }
.lens:not([aria-pressed="true"]):not(.is-tried) .lens__n { animation: hw-badge-glow 2.4s ease-in-out infinite; animation-delay: calc(var(--i, 0) * .35s); }
@keyframes hw-lens-spin { to { --hw-ang: 360deg; } }
@keyframes hw-lens-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(223, 182, 100, 0), 0 0 10px 0 rgba(223, 182, 100, .18); background-color: rgba(223, 182, 100, .06); }
  50% { box-shadow: 0 0 0 1px rgba(255, 236, 190, .35), 0 0 30px 5px rgba(223, 182, 100, .55); background-color: rgba(223, 182, 100, .16); }
}
@keyframes hw-badge-glow {
  0%, 100% { box-shadow: 0 0 0 2px var(--hw-wine-d), 0 0 0 0 rgba(239, 209, 137, 0); transform: scale(1); }
  50% { box-shadow: 0 0 0 2px var(--hw-wine-d), 0 0 18px 5px rgba(239, 209, 137, .85); transform: scale(1.08); }
}

/* the pointer: a crisp cursor that clicks the Reader questions tab, with gold rings at its tip, until the first click */
.lens__tap { position: absolute; left: 60%; top: 66%; z-index: 5; width: 0; height: 0; pointer-events: none; }
.lens__tap svg { position: absolute; left: -5px; top: -3px; width: 28px; height: 28px; overflow: visible; max-width: none;
  fill: #fff; stroke: var(--hw-wine-dd); stroke-width: 1.6; stroke-linejoin: round;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .5)) drop-shadow(0 0 8px rgba(239, 209, 137, .45));
  transform-origin: 5px 3px; animation: hw-cursor 2.2s cubic-bezier(.22, 1, .36, 1) infinite; }
.lens__ring { position: absolute; left: -12px; top: -12px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #ffe7b0; opacity: 0;
  box-shadow: 0 0 10px rgba(239, 209, 137, .7); animation: hw-ring 2.2s ease-out infinite; }
.lens__ring--2 { animation-delay: .18s; }
[data-book].has-explored .lens__tap { display: none; }
@keyframes hw-cursor {
  0%, 40% { transform: translate(6px, 7px); }
  55% { transform: translate(0, 0); }
  62% { transform: translate(0, 0) scale(.82); }
  72% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(6px, 7px); }
}
@keyframes hw-ring { 0%, 58% { opacity: 0; transform: scale(.3); } 64% { opacity: 1; transform: scale(.6); } 100% { opacity: 0; transform: scale(2.2); } }

/* the one line under the bar: a gold prompt until the first click, then what the chosen lens shows */
.lens-hint { margin: -4px 0 0; font: 400 14px/1.45 var(--font-text); color: #e3d3d7; }
.lens-hint.is-cta { color: var(--hw-gold-l); font-weight: 500; }
.lens-hint.is-cta::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 9px 1px 2px; border-radius: 50%; background: var(--hw-gold);
  box-shadow: 0 0 0 0 rgba(223, 182, 100, .6); animation: hw-dot 1.8s ease-out infinite; }
@keyframes hw-dot { 0% { box-shadow: 0 0 0 0 rgba(223, 182, 100, .6); } 100% { box-shadow: 0 0 0 9px rgba(223, 182, 100, 0); } }

/* room for the bigger bar: a little less space between the parts of the stage */
.desk-stage { gap: 14px; }
.desk-stage .finding { min-height: 100px; }
.page { padding-top: 22px; padding-bottom: 36px; }
.page--r { padding-top: 22px; padding-bottom: 36px; }

@media (max-width: 1279px) {
  .lens { padding: 10px 12px; gap: 6px; font-size: 13px; border-radius: 11px; }
  .lens > svg { width: 16px; height: 16px; }
  .lens-hint { font-size: 13px; }
}
/* 1024 to 1279: the book sits in a narrower column, so the tabs drop their icons and the hint line goes */
@media (min-width: 1024px) and (max-width: 1279px) {
  .lenses { gap: 4px; padding: 5px; }
  .lens { padding: 10px 10px; }
  .lens > svg { display: none; }
  .lens-hint { display: none; }
}
@media (max-width: 639px) {
  .lens { justify-content: center; }
  .lens-hint { display: none; }
  .lens__tap svg { width: 24px; height: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .lens, .lens::before, .lens .lens__n, .lens__tap svg, .lens__ring, .lens-hint.is-cta::before { animation: none !important; }
  .lens:not([aria-pressed="true"]):not(.is-tried) { box-shadow: 0 0 0 1px rgba(255, 236, 190, .5), 0 0 16px 2px rgba(223, 182, 100, .35); }
  .lens__tap svg { transform: none; }
}

/* ---- hw5.css ---- */
/* Hemwrite homepage v5: the gold threads behind the page (the first look). Loaded after hw4.css. */

/* the hero is its own layer group (isolation): lift it above the threads, as every section's .wrap already is */
.hero { z-index: 1; }

.tb { position: absolute; top: 0; left: 0; z-index: 0; width: 100%; overflow: hidden; pointer-events: none; }
.tb__svg { position: absolute; top: 0; left: 0; display: block; max-width: none; overflow: visible; }
.tb__main, .tb__halo, .tb__strand { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.tb__halo { stroke: #efd189; stroke-width: 9; opacity: .13; }
.tb__main { stroke: #d4a452; stroke-width: 2; opacity: .8; }
.tb__strand { stroke: #d4a452; }
.tb__strand--a { stroke-width: 1.25; opacity: .55; }
.tb__strand--b { stroke-width: 1; opacity: .45; }
.tb__head { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: #fff4d8; opacity: 0;
  box-shadow: 0 0 0 3px rgba(223, 182, 100, .35), 0 0 20px 7px rgba(239, 209, 137, .65); transition: opacity 200ms; will-change: transform; }
/* the threads land on the final button: it answers with a soft gold ring */
footer .closing__cta .btn--primary { transition: box-shadow 600ms var(--hw-ease); }
footer .closing__cta .btn--primary.is-threaded { box-shadow: 0 0 0 2px rgba(239, 209, 137, .65), 0 0 28px 5px rgba(223, 182, 100, .5); }
@media (max-width: 639px) {
  .tb__halo { stroke-width: 6; }
  .tb__main { stroke-width: 1.6; }
  .tb__head { left: -5px; top: -5px; width: 10px; height: 10px; }
}
/* prices exclude tax (2026-11-11): a quiet note after "a draft" */
.plan__price .plan__tax { display: block; margin-top: 6px; font: 400 13px/1.3 var(--font-text); color: var(--muted); }

/* Hemwrite elsewhere (Mondy, 2026-11-28): small icons in each brand's own colours at the right of the
   footer's bottom row */
.footer__social { display: flex; align-items: center; gap: 6px; }
.footer__social a { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 999px;
  transition: transform 160ms ease-out; }
.footer__social a:is(:hover, :focus-visible) { transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .footer__social a { transition: none; } .footer__social a:is(:hover, :focus-visible) { transform: none; } }
.footer__social a:focus-visible { outline: 2px solid var(--hw-gold); outline-offset: 2px; }
.footer__legal { align-items: center; }
