/* Experiment: "Tactile" style. Only applies when <html> has class "tactile".
   Borrowed from lastbook.org: chunky buttons with a solid shadow that press
   down, firmer card edges with a soft lift, bolder type, physical-feeling
   controls. Left out: hand-drawn wobble, wavy underlines, doodles, all caps. */

html.tactile {
  --t-edge: color-mix(in srgb, var(--forest) 22%, transparent);
  --t-edge-strong: var(--forest);
  --t-lift: 0 1px 0 color-mix(in srgb, var(--forest) 10%, transparent), 0 14px 28px -18px color-mix(in srgb, var(--forest) 45%, transparent);
  --t-r: 18px;
}

/* ---------- Buttons: solid shadow, press down on click ---------- */
html.tactile .btn {
  border-radius: 14px;
  border: 2px solid var(--ink);
  font-weight: 700;
  font-size: 16px;
  min-height: 50px;
  padding: 0 24px;
  box-shadow: 0 4px 0 var(--ink);
  transform: translateY(0);
  transition: transform .08s ease, box-shadow .08s ease, background-color .15s ease;
}
html.tactile .btn:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--ink); }
html.tactile .btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--ink); }
html.tactile .btn-primary:hover { background: var(--forest); }
html.tactile .btn-secondary,
html.tactile .dq-confirm-no {
  background: #fff; color: var(--forest);
}

/* "Keep my progress" becomes a real secondary button */
html.tactile .dq-confirm-no {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 22px; border-radius: 14px;
  border: 2px solid var(--ink); box-shadow: 0 4px 0 var(--ink);
  font: 700 16px var(--font-sans); text-decoration: none; cursor: pointer;
  transition: transform .08s ease, box-shadow .08s ease;
}
html.tactile .dq-confirm-no:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--ink); }
html.tactile .dq-confirm-no:active { transform: translateY(4px); box-shadow: 0 0 0 var(--ink); }

/* ---------- Text links: thick, steady underline that fills on hover ---------- */
html.tactile .dq-start-link {
  font-weight: 700;
  text-decoration: none;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 100% 3px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding: 2px 2px 3px;
  border-radius: 3px;
  transition: background-size .18s ease, color .18s ease;
}
html.tactile .dq-start-link:hover { background-size: 100% 100%; color: var(--gold-ink); }

/* ---------- Page panel and cards: firmer edge, soft lift ---------- */
html.tactile .ws {
  border: 2px solid var(--t-edge);
  border-radius: 22px;
  box-shadow: var(--t-lift);
  overflow: clip; /* clip keeps the rounded corners without stopping the sticky Back/Next bar */
}
html.tactile .dq-card,
html.tactile .dq-start {
  border: 2px solid var(--t-edge);
  border-radius: var(--t-r);
  background: #fff;
  box-shadow: var(--t-lift);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
html.tactile .dq-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--forest) 45%, transparent);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--forest) 10%, transparent), 0 20px 32px -18px color-mix(in srgb, var(--forest) 55%, transparent);
}
html.tactile .dq-card.is-gold { background: var(--gold-soft); border-color: color-mix(in srgb, var(--gold-dark) 55%, transparent); }

/* Progress card: the "your course" card is the star */
html.tactile .dq-start {
  border: 2px solid var(--forest);
  box-shadow: 0 6px 0 var(--forest);
  padding: 22px 24px;
}
html.tactile .dq-start-title { font-size: 22px; font-weight: 700; }
html.tactile .dq-start-bar {
  height: 14px; border-radius: 999px;
  border: 2px solid var(--forest);
  background: #fff;
  overflow: hidden;
}
html.tactile .dq-start-fill { border-radius: 999px; background: var(--gold); }
html.tactile .dq-start-text { font-weight: 700; }

/* Confirm box: like lastbook's callout */
html.tactile .dq-start-confirm {
  border: 2px solid var(--gold-dark);
  border-radius: 16px;
  background: var(--gold-bg);
  box-shadow: var(--t-lift);
}

/* ---------- Type: bolder, more confident ---------- */
html.tactile .ws .sh h1#page-heading { font-weight: 700; font-size: clamp(30px, 4.2vw, 40px); letter-spacing: -0.02em; }
html.tactile .sh p { font-size: 17px; }
html.tactile .dq-card .dq-bold { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
html.tactile .dq-label, html.tactile .dq-kicker { font-weight: 800; }
html.tactile .sh .pill { border: 2px solid var(--forest); font-weight: 700; background: #fff; }

/* Icon tiles, numbers and chips get edges too */
html.tactile .dq-card-icon { border: 2px solid currentColor; border-radius: 12px; width: 40px; height: 40px; }
html.tactile .dq-num22 {
  width: 28px; height: 28px; font-size: 14px; font-weight: 800;
  box-shadow: 0 2px 0 var(--gold-dark);
}
html.tactile .dq-pill-green {
  border: 2px solid var(--moss-700);
  font-weight: 700;
  padding: 6px 12px;
  box-shadow: 0 2px 0 var(--moss-700);
}

/* From the field */
html.tactile .dq-fq {
  border: 2px solid var(--t-edge);
  border-left: 6px solid var(--forest);
  border-radius: var(--t-r);
  box-shadow: var(--t-lift);
}

/* ---------- Coach panel ---------- */
html.tactile .coach .tip,
html.tactile .takeaway {
  border-radius: var(--t-r);
  border-width: 2px;
  border-top-width: 2px;
  box-shadow: var(--t-lift);
}
html.tactile .coach .tip { border-color: color-mix(in srgb, var(--gold-dark) 60%, transparent); }
html.tactile .takeaway { border-color: color-mix(in srgb, var(--moss-700) 55%, transparent); }

/* ---------- Sidebar: current step feels like a pressed key ---------- */
html.tactile .side .step-current {
  background: color-mix(in srgb, var(--parchment) 12%, transparent);
  border-radius: 12px;
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--parchment) 35%, transparent);
}
html.tactile .side .course.on { border-radius: 12px; }

/* ---------- Help button ---------- */
html.tactile .fab {
  border: 2px solid var(--ink);
  box-shadow: 0 4px 0 var(--ink);
  transition: transform .08s ease, box-shadow .08s ease;
}
html.tactile .fab:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--ink); }
html.tactile .fab:active { transform: translateY(4px); box-shadow: 0 0 0 var(--ink); }

@media (prefers-reduced-motion: reduce) {
  html.tactile * { transition: none !important; }
  html.tactile .dq-card:hover { transform: none; }
}

/* ---------- Experiment switch (not part of the site) ---------- */
.lb-switch {
  position: fixed; top: 8px; left: 50%; transform: translateX(-50%);
  z-index: 100; display: flex; align-items: center; gap: 2px;
  padding: 4px; border-radius: 999px; background: var(--forest);
  box-shadow: 0 6px 18px -6px rgba(0,0,0,.4);
  font: 600 13px var(--font-sans); white-space: nowrap;
  max-width: calc(100vw - 16px); overflow-x: auto; scrollbar-width: none;
}
.lb-switch span { color: var(--gold-light); padding: 0 6px 0 10px; letter-spacing: .06em; text-transform: uppercase; font-size: 11px; }
.lb-switch i { width: 1px; align-self: stretch; margin: 6px 6px; background: var(--on-forest-border); }
.lb-switch button, .lb-switch a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 0;
  background: transparent; color: var(--parchment); font: inherit; cursor: pointer; text-decoration: none;
}
.lb-switch a:hover { color: #fff; }
.lb-switch button[aria-pressed="true"], .lb-switch a[aria-current="page"] { background: var(--parchment); color: var(--forest); }
.lb-switch .lb-reset { color: var(--on-forest-label); font-weight: 500; margin-left: 4px; }
.lb-switch.in-bar { position: absolute; top: 50%; left: 8px; right: 8px; transform: translateY(-50%); }
html.tactile .dq-start-cta { gap: 12px; }
@media (max-width: 640px) {
  html.tactile .dq-start { padding: 18px; }
  html.tactile .ws { border-radius: 18px; }
}

/* ================= REFINED v2 (Tactile + what Rahee kept from v1 Refined) ================= */
/* Kept from Tactile (Rahee's call): card hover lift, chip and number undershadows, gold progress, heavy card titles. */
/* Breathing room between the button and Start over */
html.tactile.refined .dq-start-cta { gap: 14px; }
/* One progress colour: gold in the card, light gold in the sidebar */
html.tactile.refined .prog .fill { background: var(--gold-light); }
/* Sidebar current step: fill only, no focus-looking ring */
html.tactile.refined .side .step-current {
  box-shadow: none;
  background: color-mix(in srgb, var(--parchment) 14%, transparent);
}
/* Phones: no box inside a box */
@media (max-width: 640px) {
  html.tactile.refined .ws { border: 0; box-shadow: none; background: transparent; border-radius: 0; }
  html.tactile.refined .sh { padding: 8px 4px 16px; }
  html.tactile.refined .sb { padding: 16px 0 8px; }
}
/* Coach tip and takeaway keep their colour bar */
html.tactile.refined .coach .tip { border-top: 5px solid var(--gold); }
html.tactile.refined .takeaway { border-top: 5px solid var(--moss-700); }
/* Link a touch lighter so the button stays the main action */
html.tactile.refined .dq-start-link { font-weight: 600; }

/* ================= REFINED: sidebar ================= */
html.tactile.refined .side { gap: 18px; }
/* Home and course links: soft tiles that lift */
html.tactile.refined .homebtn,
html.tactile.refined .side .course {
  border-radius: 12px; border: 1.5px solid transparent;
  transition: transform .12s ease, background-color .15s ease, box-shadow .12s ease;
}
html.tactile.refined .homebtn:hover,
html.tactile.refined .side a.course:not(.on):hover {
  background: var(--on-forest-card); transform: translateY(-1px);
  box-shadow: 0 3px 0 var(--ink);
}
/* The course you're in: a raised key */
html.tactile.refined .side .course.on {
  background: var(--on-forest-hover);
  border-color: var(--on-forest-border);
  box-shadow: 0 3px 0 var(--ink);
}
html.tactile.refined .side .course.on .ico { color: var(--gold-light); }
html.tactile.refined .free-badge {
  background: var(--gold-light); color: var(--forest);
  box-shadow: 0 2px 0 var(--gold-dark); padding: 1px 7px;
}
html.tactile.refined .soon-badge { border-style: dashed; }

/* Progress card: a little panel with depth */
html.tactile.refined .prog {
  border: 1.5px solid var(--on-forest-border);
  border-radius: 14px;
  box-shadow: 0 3px 0 var(--ink);
}
html.tactile.refined .prog .bar {
  height: 10px; background: var(--forest);
  border: 1.5px solid var(--on-forest-border); box-sizing: content-box;
}
html.tactile.refined .prog .fill { height: 10px; }
html.tactile.refined .prog-text { color: var(--on-forest-soft); font-weight: 700; }

/* Steps */
html.tactile.refined .side .step {
  border-radius: 12px;
  transition: background-color .15s ease, transform .12s ease;
}
html.tactile.refined .side .step[href]:hover { transform: translateX(2px); }
html.tactile.refined .side .step-done .dot {
  background: var(--gold-light); color: var(--forest);
  box-shadow: 0 2px 0 var(--gold-dark);
}
html.tactile.refined .side .step-current .dot {
  background: var(--parchment); color: var(--forest);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold-light) 45%, transparent), 0 2px 0 var(--gold-dark);
}
html.tactile.refined .side .step-open .dot { border-style: solid; border-color: var(--on-forest-soft); color: #fff; }
html.tactile.refined .side .step-locked { opacity: .8; }

/* Desktop: a track joins the course steps and fills gold as you go */
@media (min-width: 761px) {
  html.tactile.refined .side .prog + .step-groups > .steps:first-child .step { position: relative; }
  html.tactile.refined .side .prog + .step-groups > .steps:first-child .step .dot { position: relative; z-index: 1; }
  html.tactile.refined .side .prog + .step-groups > .steps:first-child .step + .step::before {
    content: ""; position: absolute; left: 19px; top: -10px; width: 2px; height: 18px;
    background: var(--on-forest-divider); border-radius: 2px;
  }
  html.tactile.refined .side .prog + .step-groups > .steps:first-child .step-done::before,
  html.tactile.refined .side .prog + .step-groups > .steps:first-child .step-current::before { background: var(--gold-light) !important; }
}

/* Phones: the sidebar is a scrolling strip, so chips instead of a track */
@media (max-width: 760px) {
  html.tactile.refined .side .step {
    border: 1.5px solid var(--on-forest-border); border-radius: 999px; padding: 5px 12px 5px 6px;
  }
  html.tactile.refined .side .step-current {
    background: var(--on-forest-hover); border-color: var(--gold-light);
    box-shadow: 0 2px 0 var(--ink);
  }
  html.tactile.refined .prog { box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  html.tactile.refined .side * { transition: none !important; transform: none !important; }
}

/* ================= REFINED: interactive pages (Map, Plan board) ================= */
/* --- Shared: inputs --- */
html.tactile.refined .ws .input {
  border: 2px solid var(--t-edge); border-radius: 12px; min-height: 48px; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
html.tactile.refined .ws .input:hover { border-color: color-mix(in srgb, var(--forest) 40%, transparent); }
html.tactile.refined .ws .input:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 35%, transparent);
}
html.tactile.refined .ws .input.is-missing { border-color: var(--gold-dark); border-style: dashed; }

/* --- Shared: footer Back / Next become real buttons --- */
html.tactile.refined .sf { border-top: 2px solid var(--t-edge); }
html.tactile.refined .sf .back,
html.tactile.refined .sf .next {
  border: 2px solid var(--ink); border-radius: 14px; min-height: 50px; font-weight: 700;
  box-shadow: 0 4px 0 var(--ink); transition: transform .08s ease, box-shadow .08s ease;
}
html.tactile.refined .sf .back { background: #fff; color: var(--forest); }
html.tactile.refined .sf .back:hover,
html.tactile.refined .sf .next:not([aria-disabled="true"]):hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--ink); }
html.tactile.refined .sf .back:active,
html.tactile.refined .sf .next:not([aria-disabled="true"]):active { transform: translateY(4px); box-shadow: 0 0 0 var(--ink); }
html.tactile.refined .sf .next[aria-disabled="true"] { border-color: var(--disabled); box-shadow: none; }
html.tactile.refined .sf .hint-box { border: 2px solid var(--gold-dark); border-radius: 12px; }

/* --- Shared: accordions are cards; status pills are static chips --- */
html.tactile.refined .dq-collapse,
html.tactile.refined .sp-sec {
  border: 2px solid var(--t-edge); border-radius: 18px; background: #fff;
  box-shadow: var(--t-lift); overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
html.tactile.refined .dq-collapse:hover,
html.tactile.refined .sp-sec:hover { border-color: color-mix(in srgb, var(--forest) 45%, transparent); }
html.tactile.refined .dq-collapse-head:hover,
html.tactile.refined .sp-sec-head:hover { background: color-mix(in srgb, var(--stone) 45%, transparent); }
html.tactile.refined .dq-status,
html.tactile.refined .sp-sec .dq-status {
  border: 1.5px solid color-mix(in srgb, var(--gold-dark) 60%, transparent);
  box-shadow: 0 2px 0 color-mix(in srgb, var(--gold-dark) 60%, transparent); font-weight: 700;
}
html.tactile.refined .sp-sec-dot,
html.tactile.refined .dq-collapse-dot { box-shadow: 0 2px 0 var(--gold-dark); font-weight: 800; }
html.tactile.refined .dq-mini-pill { border: 1.5px solid var(--t-edge); box-shadow: 0 2px 0 var(--t-edge); font-weight: 700; }
html.tactile.refined .dq-note-gold {
  border: 2px solid var(--gold-dark); border-radius: 16px; background: var(--gold-bg); box-shadow: var(--t-lift);
}
html.tactile.refined .dq-outline-btn {
  border: 2px solid var(--ink); border-radius: 14px; min-height: 46px; background: #fff; font-weight: 700;
  box-shadow: 0 4px 0 var(--ink); transition: transform .08s ease, box-shadow .08s ease;
}
html.tactile.refined .dq-outline-btn:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--ink); }
html.tactile.refined .dq-outline-btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--ink); }

/* --- Map: framework card --- */
html.tactile.refined .fw-card { border: 2px solid var(--t-edge); border-radius: 18px; box-shadow: var(--t-lift); }
html.tactile.refined .fw-card-name { font-weight: 800; font-size: 18px; }
html.tactile.refined .fw-card-change {
  border: 2px solid var(--ink); border-radius: 12px; box-shadow: 0 3px 0 var(--ink); font-weight: 700;
  transition: transform .08s ease, box-shadow .08s ease;
}
html.tactile.refined .fw-card-change:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--ink); }
html.tactile.refined .fw-card-change:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }

/* --- Map: the five-step loop and process --- */
html.tactile.refined .dq-loop { border: 2px solid var(--t-edge); border-radius: 16px; background: #fff; box-shadow: var(--t-lift); }
html.tactile.refined .dq-loop-t { font-weight: 800; }
html.tactile.refined .dq-proc-step.is-missing .dq-bold { color: var(--gold-text); }

/* --- Map: letter tiles are keys --- */
html.tactile.refined .dq-tile {
  border: 2px solid var(--ink); border-radius: 14px; background: #fff;
  box-shadow: 0 4px 0 var(--ink);
  transition: transform .08s ease, box-shadow .08s ease, background-color .15s ease;
}
html.tactile.refined .dq-tile:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
html.tactile.refined .dq-tile:active { transform: translateY(4px); box-shadow: 0 0 0 var(--ink); }
html.tactile.refined .dq-tile .dq-tile-k { font-size: 22px; font-weight: 800; }
html.tactile.refined .dq-tile.is-seen {
  background: var(--stone); border-color: var(--moss-700); box-shadow: 0 2px 0 var(--moss-700); transform: translateY(2px);
}
html.tactile.refined .dq-tile.is-viewing {
  background: var(--gold-soft); border-color: var(--gold-dark); box-shadow: 0 1px 0 var(--gold-dark); transform: translateY(3px);
}
html.tactile.refined .dq-lview {
  border: 2px solid var(--t-edge); border-top: 5px solid var(--gold); border-radius: 16px;
  background: #fff; box-shadow: var(--t-lift);
}
html.tactile.refined .dq-lview-t { font-size: 18px; font-weight: 800; }

/* --- Plan board: prep window --- */
html.tactile.refined .sp-window { gap: 12px 10px; padding-top: 6px; }
html.tactile.refined .sp-window .dq-chip { min-height: 44px; padding: 0 18px; }
/* Selectable chips (prep weeks): small buttons */
html.tactile.refined .dq-chip {
  border: 2px solid var(--ink); border-radius: 999px; background: #fff; font-weight: 700;
  box-shadow: 0 3px 0 var(--ink); transition: transform .08s ease, box-shadow .08s ease;
}
html.tactile.refined .dq-chip:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--ink); }
html.tactile.refined .dq-chip:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }
html.tactile.refined .dq-chip[aria-pressed="true"] {
  background: var(--forest); color: var(--parchment); transform: translateY(2px); box-shadow: 0 1px 0 var(--ink);
}

/* Framework picker (Set up): selectable chips, same as the prep weeks. The pick fills Forest and stays pressed. */
html.tactile.refined .dq-fw-opts { gap: 10px; padding-bottom: 3px; }
html.tactile.refined .dq-fwopt {
  border: 2px solid var(--ink); border-radius: 999px; background: #fff; color: var(--forest);
  font-weight: 700; min-height: 44px; padding: 0 18px; gap: 10px;
  box-shadow: 0 3px 0 var(--ink); transition: transform .08s ease, box-shadow .08s ease;
}
html.tactile.refined .dq-fwopt:hover { border-color: var(--ink); transform: translateY(-1px); box-shadow: 0 4px 0 var(--ink); }
html.tactile.refined .dq-fwopt:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }
html.tactile.refined .dq-fwopt[aria-checked="true"] {
  background: var(--forest); color: var(--parchment); border-color: var(--ink); transform: translateY(2px); box-shadow: 0 1px 0 var(--ink);
}
html.tactile.refined .dq-fwopt .dq-rdot { border: 2px solid var(--ink); }
html.tactile.refined .dq-fwopt[aria-checked="true"] .dq-rdot { border: 4px solid var(--gold-light); background: var(--forest); }

/* --- Plan board: the board --- */
html.tactile.refined .sp-boardbar { border: 2px solid color-mix(in srgb, var(--gold-dark) 45%, transparent); border-radius: 16px; }
html.tactile.refined .sp-av { border: 2px solid #fff; box-shadow: 0 2px 0 color-mix(in srgb, var(--forest) 30%, transparent); font-weight: 800; }
html.tactile.refined .sp-col { border-radius: 18px; }
html.tactile.refined .sp-card {
  border: 2px solid var(--t-edge); border-radius: 14px; background: #fff; box-shadow: var(--t-lift);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
html.tactile.refined .sp-card:hover {
  transform: translateY(-2px); border-color: color-mix(in srgb, var(--forest) 45%, transparent);
}
html.tactile.refined .sp-card.is-must { border-color: var(--forest); box-shadow: 0 3px 0 var(--forest); }
html.tactile.refined .sp-card.is-missing {
  border: 2px dashed var(--gold-dark); background: var(--gold-soft); box-shadow: none;
}
html.tactile.refined .sp-tag {
  border: 1.5px solid color-mix(in srgb, currentColor 40%, transparent);
  box-shadow: 0 2px 0 color-mix(in srgb, currentColor 40%, transparent); font-weight: 700;
}
html.tactile.refined .sp-badge.is-must { box-shadow: 0 2px 0 var(--ink); }
html.tactile.refined .sp-needs-owner { box-shadow: 0 2px 0 var(--gold-dark); }
html.tactile.refined .sp-suggest { border-radius: 14px; box-shadow: 0 3px 0 var(--ink); }
html.tactile.refined .sp-suggest-btn {
  border: 2px solid var(--ink); border-radius: 12px; font-weight: 800; box-shadow: 0 3px 0 var(--ink);
  transition: transform .08s ease, box-shadow .08s ease;
}
html.tactile.refined .sp-suggest-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--ink); }
html.tactile.refined .sp-suggest-btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }

/* --- Plan board: decision moment is the hero --- */
html.tactile.refined .sp-dm {
  border-radius: 18px; border: 2px solid var(--ink); border-left: 6px solid var(--gold);
  box-shadow: 0 6px 0 var(--ink);
}
html.tactile.refined .sp-dm-status { box-shadow: 0 2px 0 var(--gold-dark); }
html.tactile.refined .sp-dm-opt {
  border: 2px solid var(--parchment); border-radius: 14px; background: #fff;
  box-shadow: 0 5px 0 var(--gold-dark);
  transition: transform .08s ease, box-shadow .08s ease;
}
html.tactile.refined .sp-dm-opt:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--gold-dark); }
html.tactile.refined .sp-dm-opt:active { transform: translateY(5px); box-shadow: 0 0 0 var(--gold-dark); }
html.tactile.refined .sp-dm-opt.is-view {
  background: var(--gold-soft); border-color: var(--gold); transform: translateY(3px); box-shadow: 0 2px 0 var(--gold-dark);
}
html.tactile.refined .sp-dm-key { border-radius: 10px; font-weight: 800; box-shadow: 0 2px 0 var(--gold-dark); }

@media (prefers-reduced-motion: reduce) {
  html.tactile.refined .dq-tile, html.tactile.refined .sp-card, html.tactile.refined .sp-dm-opt,
  html.tactile.refined .dq-chip, html.tactile.refined .dq-fwopt { transition: none; }
}
html.tactile.refined .sp-goal-result {
  border: 2px solid var(--moss-700); border-radius: 12px; box-shadow: 0 2px 0 var(--moss-700); font-weight: 700;
}

/* ================= REFINED: Rahee's review of Map + Plan board (Nov 17) ================= */
/* Done/explored pills: same chip as "What you'll walk away with" */
html.tactile.refined .dq-status.is-done,
html.tactile.refined .sp-dm-status.is-done {
  background: var(--success-bg); color: var(--success); border: 2px solid var(--moss-700);
  box-shadow: 0 2px 0 var(--moss-700); font-weight: 700;
}
/* Map tiles: viewing = green, pressed; explored = settled stone */
html.tactile.refined .dq-tile.is-seen {
  background: var(--stone); border-color: var(--moss-700); box-shadow: 0 2px 0 var(--moss-700); transform: translateY(2px);
}
html.tactile.refined .dq-tile.is-viewing {
  background: var(--moss-700); border-color: var(--moss-700); color: #fff;
  box-shadow: 0 1px 0 var(--ink); transform: translateY(3px);
}
html.tactile.refined .dq-tile.is-viewing .dq-tile-k,
html.tactile.refined .dq-tile.is-viewing .dq-tile-n { color: #fff; }
html.tactile.refined .dq-tile.is-viewing .dq-tile-mark { color: var(--moss-200); }
html.tactile.refined .dq-lview { border-top-color: var(--moss-700); }

/* Decision options v3: clean white cards; state shown by how pressed they are + chips */
html.tactile.refined .sp-dm-opt .dq-semi { color: var(--forest); }
html.tactile.refined .sp-dm-opt:has(.sp-dm-seen) {
  background: #fff; border-color: var(--parchment);
  box-shadow: 0 3px 0 var(--gold-dark); transform: translateY(2px);
}
html.tactile.refined .sp-dm-seen {
  align-self: flex-start; background: var(--success-bg); color: var(--success);
  border: 2px solid var(--moss-700); box-shadow: 0 2px 0 var(--moss-700);
  border-radius: 999px; padding: 2px 10px; font-weight: 700; font-size: 11px;
}
html.tactile.refined .sp-dm-opt.is-view {
  background: #fff; border-color: var(--gold-light);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold-light) 45%, transparent), 0 1px 0 var(--gold-dark);
  transform: translateY(4px);
}
html.tactile.refined .sp-dm-opt.is-view .sp-dm-key { background: var(--forest); color: var(--parchment); box-shadow: 0 2px 0 var(--ink); }
/* Answer panel: a white card like the rest of the page */
html.tactile.refined .sp-dm-answer {
  background: #fff; color: var(--forest);
  border: 2px solid var(--parchment); border-radius: 16px; box-shadow: var(--t-lift);
}
html.tactile.refined .sp-dm-answer .dq-bold { color: var(--forest); }
html.tactile.refined .sp-dm-optlabel {
  align-self: flex-start; display: inline-flex; background: var(--success-bg); color: var(--success);
  border: 2px solid var(--moss-700); box-shadow: 0 2px 0 var(--moss-700);
  border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 700; letter-spacing: 0;
}
html.tactile.refined .sp-dm-explore { color: var(--moss-700); font-weight: 700; }
html.tactile.refined .sp-dm-take {
  background: var(--takeaway-bg); border: 2px solid var(--takeaway-border); border-top: 5px solid var(--moss-700);
  border-left-width: 2px; border-radius: 14px;
}

/* ================= REFINED v0.8: one design for everything you explore (Map letters + decision options) ================= */
/* Chips: Seen = green, Viewing = gold */
html.tactile.refined .sp-dm-opt.is-view .sp-dm-seen { display: none; }
html.tactile.refined .sp-dm-opt.is-view::after {
  content: "Viewing"; /* experiment only: in production this text goes in src/content */
  align-self: flex-start; margin-top: 2px;
  background: var(--gold-bg); color: var(--gold-ink);
  border: 2px solid var(--gold-dark); box-shadow: 0 2px 0 var(--gold-dark);
  border-radius: 999px; padding: 2px 10px; font: 700 11px var(--font-sans);
  letter-spacing: .06em; text-transform: uppercase;
}
html.tactile.refined .sp-dm-seen { letter-spacing: .06em; text-transform: uppercase; }

/* Map letters: white keys; state = how pressed + glow + chip */
html.tactile.refined .dq-tile.is-seen {
  background: #fff; color: var(--forest); border-color: var(--ink);
  box-shadow: 0 2px 0 var(--ink); transform: translateY(2px);
}
html.tactile.refined .dq-tile.is-viewing {
  background: #fff; color: var(--forest); border-color: var(--gold-dark);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold-light) 55%, transparent), 0 1px 0 var(--gold-dark);
  transform: translateY(4px);
}
html.tactile.refined .dq-tile.is-viewing .dq-tile-k,
html.tactile.refined .dq-tile.is-viewing .dq-tile-n { color: var(--forest); }
html.tactile.refined .dq-tile.is-seen .dq-tile-mark,
html.tactile.refined .dq-tile.is-viewing .dq-tile-mark {
  margin-top: 6px; padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 700;
}
html.tactile.refined .dq-tile.is-seen .dq-tile-mark {
  background: var(--success-bg); color: var(--success);
  border: 2px solid var(--moss-700); box-shadow: 0 2px 0 var(--moss-700);
}
html.tactile.refined .dq-tile.is-viewing .dq-tile-mark {
  background: var(--gold-bg); color: var(--gold-ink);
  border: 2px solid var(--gold-dark); box-shadow: 0 2px 0 var(--gold-dark);
}
html.tactile.refined .dq-lview { border-top-color: var(--gold); }

/* Same hover as the Overview cards, on every card (Rahee, Nov 17) */
html.tactile.refined .dq-loop,
html.tactile.refined .fw-card,
html.tactile.refined .dq-lview {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
html.tactile.refined .dq-loop:hover,
html.tactile.refined .fw-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--forest) 45%, transparent);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--forest) 10%, transparent), 0 20px 32px -18px color-mix(in srgb, var(--forest) 55%, transparent);
}
@media (prefers-reduced-motion: reduce) { html.tactile.refined .dq-loop:hover, html.tactile.refined .fw-card:hover { transform: none; } }

/* ================= REFINED v1.0: Discover, Content brief, Home, Main page ================= */
/* Shared card hover (same as Overview cards) */
html.tactile.refined .dq-listen, html.tactile.refined .dq-sort, html.tactile.refined .dq-panel,
html.tactile.refined .dq-seller, html.tactile.refined .hw, html.tactile.refined .cs,
html.tactile.refined .hero-sec .loop, html.tactile.refined .sec .card, html.tactile.refined .sec .course {
  border: 2px solid var(--t-edge); border-radius: 18px; background: #fff; box-shadow: var(--t-lift);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
html.tactile.refined .dq-listen:hover, html.tactile.refined .dq-sort:hover, html.tactile.refined .dq-panel:hover,
html.tactile.refined .dq-seller:hover, html.tactile.refined .hw:hover, html.tactile.refined .cs:not(.soon):hover,
html.tactile.refined .hero-sec .loop:hover, html.tactile.refined .sec .card:hover, html.tactile.refined .sec .course:not(.soon):hover {
  transform: translateY(-3px); border-color: color-mix(in srgb, var(--forest) 45%, transparent);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--forest) 10%, transparent), 0 20px 32px -18px color-mix(in srgb, var(--forest) 55%, transparent);
}
/* Static "points to" tags, avatars, numbers */
html.tactile.refined .dq-tag { border: 1.5px solid var(--t-edge); box-shadow: 0 2px 0 var(--t-edge); font-weight: 700; }
html.tactile.refined .dq-avatar { box-shadow: 0 2px 0 var(--ink); }
html.tactile.refined .dq-num-serif, html.tactile.refined .hw-n, html.tactile.refined .dq-try-n { box-shadow: 0 2px 0 var(--gold-dark); }
html.tactile.refined .dq-status.is-done { border-radius: 999px; }

/* ---------- Discover ---------- */
/* Sign-up card is the hero: the one thing this page needs from you */
html.tactile.refined .dq-signup {
  background: #fff; border: 2px solid var(--forest); border-radius: 20px;
  box-shadow: 0 6px 0 var(--forest); padding: 26px 28px;
}
html.tactile.refined .dq-signup-t { font-size: 26px; font-weight: 700; }
html.tactile.refined .dq-signup .input { min-height: 52px; font-size: 17px; }
html.tactile.refined .dq-signup-note a, html.tactile.refined .join-note a, html.tactile.refined .offer-card a {
  text-decoration: none; font-weight: 600;
  background: linear-gradient(var(--gold), var(--gold)) 0 100% / 100% 2px no-repeat; padding-bottom: 1px;
}
/* Quote bubble: a soft speech card */
html.tactile.refined .dq-bubble {
  border: 2px solid color-mix(in srgb, var(--gold-dark) 45%, transparent); border-radius: 16px 16px 16px 4px;
  box-shadow: 0 2px 0 color-mix(in srgb, var(--gold-dark) 45%, transparent);
}
/* Feedback line after a pick: a small callout */
html.tactile.refined .dq-sort .dq-note-gold, html.tactile.refined .dq-sort [class*="feedback"] {
  border: 2px solid var(--gold-dark); border-radius: 12px;
}
html.tactile.refined .dq-table-wrap { border: 2px solid var(--t-edge); border-radius: 14px; overflow: hidden; }

/* ---------- Content brief ---------- */
/* Writing pages stay calm: inputs carry the weight, not shadows */
html.tactile.refined .dq-fill {
  border: 2px dashed var(--gold-dark); border-radius: 16px; background: var(--gold-bg);
}
html.tactile.refined .dq-fill-btn {
  background: #fff; color: var(--forest); border: 2px solid var(--ink); border-radius: 12px; font-weight: 700;
  min-height: 44px; box-shadow: 0 3px 0 var(--ink); transition: transform .08s ease, box-shadow .08s ease;
}
html.tactile.refined .dq-fill-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--ink); }
html.tactile.refined .dq-fill-btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }
/* "Use one from Discover" quotes: small selectable keys */
html.tactile.refined .dq-quote-chip {
  background: #fff; border: 2px solid var(--ink); border-radius: 12px; box-shadow: 0 3px 0 var(--ink);
  transition: transform .08s ease, box-shadow .08s ease;
}
html.tactile.refined .dq-quote-chip:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--ink); }
html.tactile.refined .dq-quote-chip:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }
html.tactile.refined .dq-quote-chip[aria-pressed="true"] {
  border-color: var(--gold-dark); transform: translateY(3px);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold-light) 50%, transparent), 0 1px 0 var(--gold-dark);
}
html.tactile.refined .ws textarea.input { min-height: 80px; line-height: 1.5; }
/* The brief you're building is the hero (it's what you take away) */
html.tactile.refined .dq-doc {
  border: 2px solid var(--forest); border-radius: 18px; overflow: hidden; box-shadow: 0 6px 0 var(--forest);
}
html.tactile.refined .dq-doc-copy {
  background: var(--gold-light); color: var(--forest); border: 2px solid var(--ink); border-radius: 12px; font-weight: 800;
  box-shadow: 0 3px 0 var(--ink); transition: transform .08s ease, box-shadow .08s ease;
}
html.tactile.refined .dq-doc-copy:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--ink); }
html.tactile.refined .dq-doc-copy:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }
html.tactile.refined .dq-seller { border-style: dashed; }

/* ---------- In-app Home ---------- */
/* (keep the original course-card padding so titles fit) */
html.tactile.refined .cs.here { border-color: var(--forest); box-shadow: 0 6px 0 var(--forest); }
html.tactile.refined .cs.here:hover { box-shadow: 0 8px 0 var(--forest); }
html.tactile.refined .cs.soon { background: transparent; border-style: dashed; box-shadow: none; }
html.tactile.refined .cs-t { font-size: 19px; font-weight: 800; }
html.tactile.refined .cs-status {
  border-radius: 999px; border: 2px solid currentColor; box-shadow: 0 2px 0 currentColor; font-weight: 700;
}
html.tactile.refined .cs-bar { height: 12px; border: 2px solid var(--forest); border-radius: 999px; background: #fff; overflow: hidden; }
html.tactile.refined .cs-fill { background: var(--gold); border-radius: 999px; }
html.tactile.refined .cs-btn {
  border: 2px solid var(--ink); border-radius: 14px; min-height: 48px; font-weight: 700;
  box-shadow: 0 4px 0 var(--ink); transition: transform .08s ease, box-shadow .08s ease;
}
html.tactile.refined .cs-btn:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--ink); }
html.tactile.refined .cs-btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--ink); }
html.tactile.refined .ai {
  border: 2px solid var(--t-edge); border-left: 6px solid var(--gold); border-radius: 18px; box-shadow: var(--t-lift);
}
html.tactile.refined .out {
  background: var(--success-bg); color: var(--success); border: 2px solid var(--moss-700);
  box-shadow: 0 2px 0 var(--moss-700); font-weight: 700;
}

/* ---------- Main page: same system, calmer dose ---------- */
/* Buttons press (from the base rules). Cards get edges + hover. Only the join form gets a hero edge. */
html.tactile.refined .site-header .cta { min-height: 44px; }
html.tactile.refined .hero-copy h1 { font-weight: 700; letter-spacing: -0.02em; }
html.tactile.refined .hero-sec .loop { padding: 22px; }
html.tactile.refined .loop-item .num { box-shadow: 0 2px 0 var(--gold-dark); }
html.tactile.refined .sec .card.dark { background: var(--forest); border-color: var(--forest); box-shadow: 0 6px 0 var(--ink); }
html.tactile.refined .sec .course.soon { background: transparent; border-style: dashed; box-shadow: none; }
html.tactile.refined .sec .course-t { font-weight: 700; }
html.tactile.refined .status {
  border-radius: 999px; border: 2px solid currentColor; box-shadow: 0 2px 0 currentColor; font-weight: 700;
}
html.tactile.refined .course-cta { font-weight: 800; }
html.tactile.refined .sec .course-link:hover .course-cta { text-decoration: underline 3px var(--gold); text-underline-offset: 5px; }
html.tactile.refined .steps .step { border-radius: 0; }
html.tactile.refined .sec ol.steps { border: 2px solid var(--t-edge); border-radius: 18px; overflow: hidden; background: #fff; box-shadow: var(--t-lift); }
html.tactile.refined .step-n { color: var(--gold-text); }
html.tactile.refined .offer-card:last-child { border-color: var(--forest); box-shadow: 0 6px 0 var(--forest); }
html.tactile.refined .join .input { border: 2px solid var(--t-edge); border-radius: 12px; min-height: 50px; }
html.tactile.refined .join .input:focus { border-color: var(--forest); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 35%, transparent); }
html.tactile.refined .closing .btn-light { border-color: var(--ink); box-shadow: 0 4px 0 var(--ink); }

/* Experiment switch: bottom centre so it never covers a header */
.lb-switch:not(.in-bar) { top: auto; bottom: 14px; }
@media (max-width: 1024px) { .lb-switch:not(.in-bar) { bottom: 84px; } }

/* ================= REFINED v1.0 fixes (Rahee, Nov 17) ================= */
/* Dropdown arrows: a small round key that matches the chunky chips beside it */
html.tactile.refined .dq-caret,
html.tactile.refined .sp-caret {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 30px; height: 30px; border-radius: 999px; font-size: 12px; line-height: 1;
  background: #fff; color: var(--forest);
  border: 2px solid var(--t-edge); box-shadow: 0 2px 0 var(--t-edge);
  transition: transform .15s ease, border-color .15s ease;
}
html.tactile.refined .dq-collapse-head:hover .dq-caret,
html.tactile.refined .sp-sec-head:hover .sp-caret { border-color: var(--forest); }
html.tactile.refined .sp-caret-light {
  background: transparent; color: var(--parchment);
  border-color: var(--on-forest-border); box-shadow: 0 2px 0 var(--ink);
}
/* "Try it this week" numbers are plain serif numerals: no undershadow */
html.tactile.refined .dq-try-n { box-shadow: none; }
/* Chosen quote in the brief: keep the text visible (white card, gold glow) */
html.tactile.refined .dq-quote-chip[aria-pressed="true"] { background: #fff; color: var(--forest); }
html.tactile.refined svg.sp-caret { box-sizing: border-box; padding: 5px; overflow: visible; }
html.tactile.refined .dq-caret { font-size: 0; }
html.tactile.refined .dq-caret::before {
  content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

/* ================= REFINED v1.1: consistent text size (Rahee, Nov 17) ================= */
/* Desktop: inputs match the 14px labels and body text. Phones/tablets keep 16px (no zoom on focus). */
@media (min-width: 1025px) {
  html.tactile.refined .ws .input,
  html.tactile.refined .join .input { font-size: 14px; min-height: 44px; padding: 10px 12px; }
  html.tactile.refined .ws textarea.input { min-height: 72px; }
  html.tactile.refined .dq-signup .input { font-size: 15px; min-height: 48px; }
}
html.tactile.refined .ws .input::placeholder { color: var(--text-placeholder); }
/* "Or use one from Discover": bigger, easier to read and tap */
html.tactile.refined .dq-quotes { gap: 10px; }
html.tactile.refined .dq-quote-chip { font-size: 14px; padding: 10px 14px; min-height: 44px; line-height: 1.35; }

/* Staging pass: feedback score keys (1–10) and share card */
html.tactile.refined .dq-score {
  border: 2px solid var(--ink); border-radius: 12px; background: #fff; color: var(--forest); font-weight: 800;
  box-shadow: 0 3px 0 var(--ink); transition: transform .08s ease, box-shadow .08s ease;
}
html.tactile.refined .dq-score:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--ink); }
html.tactile.refined .dq-score:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }
html.tactile.refined .dq-score[aria-pressed="true"] { background: var(--forest); color: var(--parchment); transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
html.tactile.refined .dq-sharecard, html.tactile.refined .dq-fb {
  border: 2px solid var(--t-edge); border-radius: 18px; background: #fff; box-shadow: var(--t-lift);
}

/* Sidebar rows and phone chips: pills, never boxes (Rahee, Nov 17) */
html.tactile.refined .side .steps .step,
html.tactile.refined .side .homebtn,
html.tactile.refined .side .courses .course,
html.tactile.refined .side .prog { border-radius: 999px !important; }
@media (min-width: 761px) {
  html.tactile.refined .side .prog { border-radius: 14px !important; }
  html.tactile.refined .side .steps .step { padding-left: 6px; }
}

/* Examples tabs + When-to-use moments: the same "explore" design as Map letters */
html.tactile.refined .dq-tab, html.tactile.refined .dq-moment {
  background: #fff; color: var(--forest); border: 2px solid var(--ink); border-radius: 14px;
  box-shadow: 0 4px 0 var(--ink); transition: transform .08s ease, box-shadow .08s ease;
}
html.tactile.refined .dq-tab:hover, html.tactile.refined .dq-moment:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
html.tactile.refined .dq-tab:active, html.tactile.refined .dq-moment:active { transform: translateY(4px); box-shadow: 0 0 0 var(--ink); }
html.tactile.refined .dq-tab.is-seen, html.tactile.refined .dq-moment.is-seen {
  background: #fff; border-color: var(--ink); box-shadow: 0 2px 0 var(--ink); transform: translateY(2px);
}
html.tactile.refined .dq-tab.is-on, html.tactile.refined .dq-moment.is-on {
  background: #fff; border-color: var(--gold-dark); transform: translateY(4px);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold-light) 55%, transparent), 0 1px 0 var(--gold-dark);
}
html.tactile.refined .dq-tab-mark {
  align-self: flex-start; padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  background: var(--gold-bg); color: var(--gold-ink); border: 2px solid var(--gold-dark); box-shadow: 0 2px 0 var(--gold-dark);
}
html.tactile.refined .is-seen .dq-tab-mark { background: var(--success-bg); color: var(--success); border-color: var(--moss-700); box-shadow: 0 2px 0 var(--moss-700); }
html.tactile.refined .dq-tab:not(.is-seen):not(.is-on) .dq-tab-mark { background: #fff; color: var(--text-muted); border-color: var(--t-edge); box-shadow: 0 2px 0 var(--t-edge); }
/* The example card ("What sales said") and its inner boxes */
html.tactile.refined .dq-excard {
  border: 2px solid var(--t-edge); border-radius: 18px; background: #fff; box-shadow: var(--t-lift);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
html.tactile.refined .dq-excard:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--forest) 45%, transparent); }
html.tactile.refined .dq-said { font-family: var(--font-serif); font-size: 19px; }
html.tactile.refined .dq-exbox { border-radius: 14px; border: 2px solid var(--t-edge); }
html.tactile.refined .dq-exbox.is-green { border-color: color-mix(in srgb, var(--moss-700) 45%, transparent); }
html.tactile.refined .dq-nudge { border: 2px dashed var(--gold-dark); border-radius: 16px; }
html.tactile.refined .dq-deep, html.tactile.refined .dq-bcase, html.tactile.refined .dq-case { border-radius: 16px; }

/* ===== Staging pass 2 (Rahee, Nov 17): Sales play Set up, Working with sales, Measure, Map process ===== */
/* Sales play Set up: framework letters as small static tiles */
html.tactile.refined .sp-letters { gap: 10px; }
html.tactile.refined .sp-letter {
  border: 2px solid var(--t-edge); border-radius: 12px; background: #fff; padding: 10px 12px;
  box-shadow: 0 2px 0 var(--t-edge);
}
html.tactile.refined .sp-letter .dq-bold { font-size: 18px; font-weight: 800; color: var(--forest); }
/* Scenarios: the open one is the hero; "Soon" ones are flat and dashed */
html.tactile.refined .sp-scenario {
  border: 2px dashed var(--t-edge); border-radius: 18px; background: transparent; box-shadow: none;
}
html.tactile.refined .sp-scenario.is-on {
  border: 2px solid var(--forest); background: #fff; color: var(--forest); box-shadow: 0 6px 0 var(--forest);
}
html.tactile.refined .sp-scenario-badge {
  border-radius: 999px; border: 2px dashed var(--t-edge); background: transparent; color: var(--text-muted); font-weight: 700;
}
html.tactile.refined .sp-scenario.is-on .sp-scenario-badge {
  background: var(--success-bg); color: var(--success); border: 2px solid var(--moss-700); box-shadow: 0 2px 0 var(--moss-700);
}
/* Info boxes (sand) become cards with a gold edge */
html.tactile.refined .dq-callout, html.tactile.refined .dq-keyrel {
  background: #fff; border: 2px solid var(--t-edge); border-left: 6px solid var(--gold); border-radius: 18px; box-shadow: var(--t-lift);
}
html.tactile.refined .dq-credit { border: 2px solid var(--gold-dark); border-radius: 16px; box-shadow: var(--t-lift); }
/* Working with sales: who owns what */
html.tactile.refined .dq-roles { border: 2px solid var(--t-edge); border-radius: 18px; box-shadow: var(--t-lift); }
html.tactile.refined .dq-roles-row { border-top-color: var(--border-soft); }
html.tactile.refined .dq-roles-row.is-you { background: var(--gold-soft); box-shadow: inset 5px 0 0 var(--gold); }
/* Measure: soft green bar instead of the near-black one; cards lift */
html.tactile.refined .dq-mq {
  border: 2px solid var(--t-edge); border-top: 5px solid var(--moss-500); border-radius: 18px; box-shadow: var(--t-lift);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
html.tactile.refined .dq-mq:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--forest) 45%, transparent); border-top-color: var(--moss-500); }
/* Map: "how most PMM work runs" steps become small cards */
html.tactile.refined .dq-proc-step {
  border: 2px solid var(--t-edge); border-top: 4px solid var(--moss-500); border-radius: 14px; background: #fff;
  padding: 12px 14px; box-shadow: var(--t-lift);
}
html.tactile.refined .dq-proc-step.is-missing {
  border: 2px dashed var(--gold-dark); border-top-width: 2px; background: var(--gold-soft); box-shadow: none;
}
@media (max-width: 760px) { html.tactile.refined .dq-proc { gap: 10px; } }
/* Arrows sit in the middle of the gap, level with the cards' centre (they used to sit on the old top line) */
html.tactile.refined .dq-proc .dq-arrow-top { top: 50%; right: auto; left: calc(100% + 2px); width: 22px; text-align: center; transform: translateY(-50%); line-height: 1; } /* spans the 22px gap (+2px: measured from outside the card's border) */
html.tactile.refined .dq-g5 .dq-arrow-mid { left: calc(100% + 2px); }
/* Same hover lift as the five loop cards below. The dashed "Unknown impact" card stays flat, like other dashed cards. */
html.tactile.refined .dq-proc-step { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
html.tactile.refined .dq-proc-step:not(.is-missing):hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--forest) 45%, transparent); border-top-color: var(--moss-500);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--forest) 10%, transparent), 0 20px 32px -18px color-mix(in srgb, var(--forest) 55%, transparent);
}
@media (hover: none), (prefers-reduced-motion: reduce) { html.tactile.refined .dq-proc-step:hover { transform: none; } }

/* Staging-only skip bar (public/staging.js) */
.stg-bar {
  position: fixed; left: 12px; bottom: 12px; z-index: 90; display: flex; align-items: center; gap: 4px;
  padding: 4px; border-radius: 999px; background: var(--forest); border: 2px dashed var(--gold-light);
  font: 600 13px var(--font-sans); box-shadow: 0 6px 18px -6px rgba(0,0,0,.4);
}
.stg-bar span { color: var(--gold-light); padding: 0 8px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.stg-bar button { min-height: 36px; padding: 0 12px; border-radius: 999px; border: 0; background: var(--parchment); color: var(--forest); font: inherit; cursor: pointer; }
.stg-bar button + button { background: transparent; color: var(--on-forest-label); }
@media (max-width: 760px) { .stg-bar { bottom: 84px; } }

/* Discover "More examples" table: tags stay whole; phones stack each row (Rahee, Nov 17) */
html.tactile.refined .dq-tag { display: inline-block; white-space: normal; line-height: 1.3; }
html.tactile.refined .dq-collapse .dq-table-wrap { border: 0; border-radius: 0; box-shadow: none; }
html.tactile.refined .dq-table td { vertical-align: top; }
@media (max-width: 640px) {
  html.tactile.refined .dq-table { min-width: 0; }
  html.tactile.refined .dq-table thead { display: none; }
  html.tactile.refined .dq-table tr { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-top: 1px solid var(--border-soft); }
  html.tactile.refined .dq-table tr:first-child { border-top: 0; }
  html.tactile.refined .dq-table td { display: block; padding: 0; border: 0; }
  html.tactile.refined .dq-table td.dq-say { font-size: 15px; }
  html.tactile.refined .dq-table td:last-child { font-size: 13px; color: var(--text-muted); }
}

/* Text boxes grow with what you type (Rahee, Nov 17): no text hidden under the edge */
html.tactile.refined textarea.input { field-sizing: content; min-height: 96px; overflow: hidden; resize: none; line-height: 1.5; padding: 12px 14px; }
@media (min-width: 1025px) { html.tactile.refined textarea.input { min-height: 80px; } }

/* "Go deeper" toggle: a secondary button, text aligned left (Rahee, Nov 17) */
html.tactile.refined .btn.dq-deep-btn {
  background: #fff; color: var(--forest); justify-content: flex-start; text-align: left;
  padding: 12px 18px; font-size: 15px; line-height: 1.4; min-height: 50px;
}
html.tactile.refined .btn.dq-deep-btn:hover { background: #fff; color: var(--forest); }
html.tactile.refined .btn.dq-deep-btn[aria-expanded="true"] {
  background: var(--stone); transform: translateY(2px); box-shadow: 0 2px 0 var(--ink);
}

/* Phones: coach tip + framework above the content (public/coach-top.js) */
.tip-chev { display: none; }
@media (max-width: 760px) {
  .coach-top { flex: 1 1 100%; order: -1; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
  html.tactile.refined .coach-top .fw-card {
    flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px 10px 16px;
  }
  html.tactile.refined .coach-top .fw-card-label { margin: 0; font-size: 11px; }
  html.tactile.refined .coach-top .fw-card-row { flex: 1; justify-content: space-between; gap: 10px; }
  html.tactile.refined .coach-top .fw-card-name { font-size: 16px; }
  html.tactile.refined .coach-top .fw-card-change { min-height: 40px; }
  html.tactile.refined .coach-top .tip { cursor: pointer; padding: 12px 14px 12px 16px; gap: 6px; }
  html.tactile.refined .coach-top .tip .kicker { width: 100%; }
  html.tactile.refined .coach-top .tip-chev {
    display: inline-flex; align-items: center; justify-content: center; margin-left: auto; flex: none;
    width: 34px; height: 34px; border-radius: 999px; background: #fff; color: var(--forest); cursor: pointer;
    border: 2px solid color-mix(in srgb, var(--gold-dark) 55%, transparent); box-shadow: 0 2px 0 color-mix(in srgb, var(--gold-dark) 55%, transparent);
  }
  html.tactile.refined .coach-top .tip-chev::before {
    content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg); transition: transform .15s ease;
  }
  html.tactile.refined .coach-top .tip.is-open .tip-chev::before { transform: translateY(2px) rotate(225deg); }
  html.tactile.refined .coach-top .tip .body { display: none; }
  html.tactile.refined .coach-top .tip.is-open .body { display: block; }
}
@media (max-width: 760px) {
  html.tactile.refined .coach-top .tip {
    border: 2px solid color-mix(in srgb, var(--gold-dark) 60%, transparent); border-top: 5px solid var(--gold);
    border-radius: 18px; box-shadow: var(--t-lift);
  }
  html.tactile.refined .coach-top .fw-card-label { white-space: nowrap; font-size: 10px; letter-spacing: .1em; }
}

/* 30-day checklist (Resources): week cards, physical checkboxes, gold progress */
html.tactile.refined .dq-pilot-top { align-items: center; gap: 12px; }
html.tactile.refined .dq-pilot-top > .dq-semi { font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
html.tactile.refined .dq-pilot-actions { flex-wrap: wrap; gap: 12px; }
html.tactile.refined .dq-pilot-bar {
  width: 140px; height: 14px; background: #fff; border: 2px solid var(--forest); box-sizing: border-box;
}
html.tactile.refined .dq-pilot-fill { background: var(--gold); }
html.tactile.refined .dq-pilot-count { font-weight: 700; color: var(--forest); }
html.tactile.refined .dq-pilot-copy {
  min-height: 40px; padding: 0 16px; background: var(--gold-light); color: var(--forest); border: 2px solid var(--ink);
  border-radius: 12px; font-weight: 800; box-shadow: 0 3px 0 var(--ink); transition: transform .08s ease, box-shadow .08s ease;
}
html.tactile.refined .dq-pilot-copy:hover { border-color: var(--ink); transform: translateY(-1px); box-shadow: 0 4px 0 var(--ink); }
html.tactile.refined .dq-pilot-copy:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }

html.tactile.refined .dq-phase {
  gap: 18px; padding: 20px 22px; background: #fff; border: 2px solid var(--t-edge); border-radius: 18px; box-shadow: var(--t-lift);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
html.tactile.refined .dq-phase:hover {
  transform: translateY(-3px); border-color: color-mix(in srgb, var(--forest) 45%, transparent);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--forest) 10%, transparent), 0 20px 32px -18px color-mix(in srgb, var(--forest) 55%, transparent);
}
html.tactile.refined .dq-phase-when {
  min-width: 78px; padding: 6px 12px; border-radius: 999px; background: var(--forest); color: var(--parchment);
  font-size: 13px; font-weight: 800; box-shadow: 0 2px 0 var(--gold-dark);
}
html.tactile.refined .dq-phase.is-done .dq-phase-when { background: var(--gold-light); color: var(--forest); }
html.tactile.refined .dq-phase-body { gap: 8px; }
html.tactile.refined .dq-phase-t { font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
html.tactile.refined .dq-phase-done {
  border: 2px solid var(--moss-700); box-shadow: 0 2px 0 var(--moss-700); padding: 2px 10px;
}

html.tactile.refined .dq-check { gap: 12px; align-items: center; min-height: 44px; padding: 4px 0; font-size: var(--fs-body); line-height: 1.5; color: var(--ink); }
html.tactile.refined .dq-check input {
  appearance: none; -webkit-appearance: none; width: 24px; height: 24px; margin: 0; flex: none; cursor: pointer;
  border: 2px solid var(--ink); border-radius: 7px; background: #fff; box-shadow: 0 3px 0 var(--ink);
  display: grid; place-content: center; transition: transform .08s ease, box-shadow .08s ease, background-color .12s ease;
}
html.tactile.refined .dq-check input::after {
  content: ""; width: 10px; height: 6px; border-left: 2.5px solid var(--parchment); border-bottom: 2.5px solid var(--parchment);
  transform: rotate(-45deg) translate(1px, -1px); opacity: 0;
}
html.tactile.refined .dq-check:hover input { transform: translateY(-1px); box-shadow: 0 4px 0 var(--ink); }
html.tactile.refined .dq-check input:checked { background: var(--forest); transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
html.tactile.refined .dq-check input:checked::after { opacity: 1; }
html.tactile.refined .dq-check input:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }
html.tactile.refined .dq-check.is-on span { color: var(--text-muted); }

@media (max-width: 640px) {
  html.tactile.refined .dq-phase { padding: 18px; gap: 12px; }
  html.tactile.refined .dq-phase-when { align-self: flex-start; }
}
@media (hover: none) {
  html.tactile.refined .dq-phase:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html.tactile.refined .dq-phase, html.tactile.refined .dq-check input, html.tactile.refined .dq-pilot-copy, html.tactile.refined .dq-pilot-fill { transition: none; }
  html.tactile.refined .dq-phase:hover, html.tactile.refined .dq-check:hover input, html.tactile.refined .dq-pilot-copy:hover { transform: none; }
}

/* ---------- Help panel (Tactile): same pieces as the rest of the course, text sizes unchanged ---------- */
/* The panel is the thing you're working in while it's open: firm Ink edge + hero shadow, plus a soft drop to float it. */
html.tactile.refined .help .panel {
  border: 2px solid var(--ink); border-radius: 18px; overflow: hidden auto;
  box-shadow: 0 6px 0 var(--ink), 0 28px 48px -22px color-mix(in srgb, var(--forest) 60%, transparent);
}
html.tactile.refined .help .head { padding: 14px 16px 14px 18px; border-bottom: 2px solid var(--ink); }
html.tactile.refined .help .title { font-weight: 700; letter-spacing: -0.01em; }
/* Close: a round key on dark, like the decision moment's dropdown arrow */
html.tactile.refined .help .close {
  width: 36px; height: 36px; border-radius: 999px; background: transparent; color: var(--parchment);
  border: 2px solid var(--on-forest-border); box-shadow: 0 3px 0 var(--ink);
  transition: transform .08s ease, box-shadow .08s ease, border-color .12s ease;
}
html.tactile.refined .help .close:hover { border-color: var(--gold-light); transform: translateY(-1px); box-shadow: 0 4px 0 var(--ink); }
html.tactile.refined .help .close:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }
html.tactile.refined .help .block { border-bottom: 2px solid var(--border-soft); }

/* What's left to do: the gold callout (care, not decoration) */
html.tactile.refined .help .left {
  gap: 6px; background: var(--gold-bg); border: 2px solid var(--gold-dark); border-radius: 14px; padding: 10px 12px;
}
html.tactile.refined .help .left-intro { color: var(--gold-ink); }
html.tactile.refined .help .left ul { color: var(--gold-ink); }
/* Nothing left: the green "done" chip */
html.tactile.refined .help .none-left {
  align-self: flex-start; background: var(--success-bg); border: 2px solid var(--moss-700); box-shadow: 0 2px 0 var(--moss-700);
  border-radius: 999px; padding: 4px 12px;
}

/* Questions: white cards; the open one gets the gold "viewing" edge and glow */
html.tactile.refined .help .tips { gap: 8px; }
html.tactile.refined .help .tip {
  border: 2px solid var(--t-edge); border-radius: 12px; padding: 10px 12px; background: #fff;
  box-shadow: 0 2px 0 var(--t-edge); transition: border-color .12s ease, box-shadow .12s ease, transform .08s ease;
}
html.tactile.refined .help .tip:hover { border-color: color-mix(in srgb, var(--forest) 45%, transparent); }
html.tactile.refined .help .tip[aria-expanded='true'] {
  background: #fff; border-color: var(--gold-dark);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold-light) 50%, transparent), 0 1px 0 var(--gold-dark);
}

/* Topics: selectable chips; the pick fills Forest and stays pressed */
html.tactile.refined .help .chips { gap: 8px; padding-bottom: 3px; }
html.tactile.refined .help .chip {
  border: 2px solid var(--ink); border-radius: 999px; background: #fff; font-weight: 700; padding: 6px 12px;
  box-shadow: 0 3px 0 var(--ink); transition: transform .08s ease, box-shadow .08s ease;
}
html.tactile.refined .help .chip:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--ink); }
html.tactile.refined .help .chip:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }
html.tactile.refined .help .chip[aria-pressed='true'] {
  background: var(--forest); color: var(--parchment); border-color: var(--ink); transform: translateY(2px); box-shadow: 0 1px 0 var(--ink);
}

/* Inputs: the course input style */
html.tactile.refined .help .input { border: 2px solid var(--t-edge); border-radius: 12px; background: #fff; }
html.tactile.refined .help .input:hover { border-color: color-mix(in srgb, var(--forest) 40%, transparent); }
html.tactile.refined .help .input:focus {
  outline: none; border-color: var(--forest); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 35%, transparent);
}

/* Send: a primary button; Send another: a secondary one */
html.tactile.refined .help .send, html.tactile.refined .help .again {
  border: 2px solid var(--ink); border-radius: 14px; font-weight: 700; padding: 0 20px; min-height: 44px;
  box-shadow: 0 4px 0 var(--ink); transition: transform .08s ease, box-shadow .08s ease;
}
html.tactile.refined .help .send { background: var(--forest); color: var(--parchment); }
html.tactile.refined .help .again { background: #fff; color: var(--forest); }
html.tactile.refined .help .send:not([aria-disabled='true']):hover, html.tactile.refined .help .again:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--ink); }
html.tactile.refined .help .send:not([aria-disabled='true']):active, html.tactile.refined .help .again:active { transform: translateY(4px); box-shadow: 0 0 0 var(--ink); }
html.tactile.refined .help .send[aria-disabled='true'] {
  background: var(--disabled); border-color: var(--disabled); color: #fff; box-shadow: none;
}

/* Sent: the takeaway style */
html.tactile.refined .help .sent {
  border: 2px solid var(--takeaway-border); border-top: 5px solid var(--moss-700); border-radius: 14px; padding: 12px 14px;
}

/* Same-email checkbox: the checklist's pressable box */
html.tactile.refined .help .same { align-items: center; }
html.tactile.refined .help .same input {
  appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 0; flex: none; cursor: pointer;
  border: 2px solid var(--ink); border-radius: 7px; background: #fff; box-shadow: 0 3px 0 var(--ink);
  display: grid; place-content: center; transition: transform .08s ease, box-shadow .08s ease;
}
html.tactile.refined .help .same input::after {
  content: ""; width: 9px; height: 5px; border-left: 2.5px solid var(--parchment); border-bottom: 2.5px solid var(--parchment);
  transform: rotate(-45deg) translate(1px, -1px); opacity: 0;
}
html.tactile.refined .help .same input:checked { background: var(--forest); transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
html.tactile.refined .help .same input:checked::after { opacity: 1; }
html.tactile.refined .help .same input:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }

html.tactile.refined .help .foot { border-top: 2px solid var(--border-soft); }

@media (max-width: 1024px) { html.tactile.refined .help .chip { min-height: 44px; } }
@media (prefers-reduced-motion: reduce) {
  html.tactile.refined .help .close, html.tactile.refined .help .chip, html.tactile.refined .help .send,
  html.tactile.refined .help .again, html.tactile.refined .help .tip, html.tactile.refined .help .same input { transition: none; }
  html.tactile.refined .help .close:hover, html.tactile.refined .help .chip:hover,
  html.tactile.refined .help .send:hover, html.tactile.refined .help .again:hover { transform: none; }
}

/* ---------- Preview complete: the waitlist is the page's one ask, so it's the hero card ---------- */
html.tactile.refined .sp-wl {
  gap: 12px; border: 2px solid var(--forest); border-radius: 20px; padding: 22px 24px; background: #fff;
  box-shadow: 0 6px 0 var(--forest);
}
html.tactile.refined .sp-wl .dq-h { font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
/* "Will be a paid course": the gold callout */
html.tactile.refined .sp-wl-paid {
  border: 2px solid var(--gold-dark); background: var(--gold-bg); border-radius: 16px; padding: 12px 14px;
  box-shadow: var(--t-lift);
}
html.tactile.refined .sp-wl-paid .dq-bold { color: var(--gold-ink); }
html.tactile.refined .sp-wl-form { gap: 12px; align-items: flex-end; margin-top: 4px; }
html.tactile.refined .sp-wl-row { gap: 14px; margin-top: 4px; }
html.tactile.refined .sp-wl-btn { font-size: 16px; }
html.tactile.refined .sp-wl-full a {
  text-decoration: none; font-weight: 600;
  background: linear-gradient(var(--gold), var(--gold)) 0 100% / 100% 2px no-repeat; padding-bottom: 1px;
  transition: background-size .18s ease, color .18s ease;
}
html.tactile.refined .sp-wl-full a:hover { background-size: 100% 100%; color: var(--gold-ink); }
/* Joined: a settled answer, like the calculated results (green edge + undershadow, with a check) */
html.tactile.refined .sp-wl-done {
  display: flex; align-items: center; gap: 10px; margin-top: 4px;
  background: var(--success-bg); border: 2px solid var(--moss-700); box-shadow: 0 2px 0 var(--moss-700);
  border-radius: 12px; padding: 12px 14px; font-weight: 700;
}
html.tactile.refined .sp-wl-done::before {
  content: "✓"; flex: none; width: 26px; height: 26px; border-radius: 999px; display: grid; place-content: center;
  background: var(--moss-700); color: #fff; font-size: 14px; font-weight: 800;
}
@media (max-width: 640px) { html.tactile.refined .sp-wl { padding: 18px; border-radius: 18px; } }
/* Price question after joining: selectable chips (one tap answers it), Skip is a quiet text link */
html.tactile.refined .sp-wl-price-opts { gap: 10px; padding-bottom: 3px; }
html.tactile.refined .sp-wl-price-opt {
  border: 2px solid var(--ink); border-radius: 999px; background: #fff; font-weight: 700; padding: 0 18px;
  box-shadow: 0 3px 0 var(--ink); transition: transform .08s ease, box-shadow .08s ease;
}
html.tactile.refined .sp-wl-price-opt:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--ink); }
html.tactile.refined .sp-wl-price-opt:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }
html.tactile.refined .sp-wl-price-skip { text-decoration: none; background: linear-gradient(var(--gold), var(--gold)) 0 100% / 100% 2px no-repeat; }
@media (prefers-reduced-motion: reduce) { html.tactile.refined .sp-wl-price-opt { transition: none; } html.tactile.refined .sp-wl-price-opt:hover { transform: none; } }
