/* type +2px readability pass applied (all sizes below already include the +2px) */
/* Human Blueprint · email sequence viewer (pre-webinar, post-webinar, pre-call).
   Sits on assets/funnel.css: same paper, ink, navy, Archivo wide + Inter.
   Signature motif used once per page: the reference-range bar as the sequence timeline. */

.seq { padding: clamp(60px, 8vw, 104px) 0 clamp(80px, 10vw, 128px); }
.seq > .wrap { max-width: 800px; }

/* ---------- header ---------- */
.seq__head { text-align: center; }
.seq__head .eyebrow { justify-content: center; }
.seq__head h1 { font-size: clamp(34px, 4.4vw, 54px); }
.seq__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 28px auto 0; }
.seq__chips span { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--hair); font-size: 15px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.seq__chips b { color: var(--accent); font-weight: 800; }

/* ---------- timeline (the reference-range motif) ---------- */
.tl { position: relative; max-width: 640px; margin: clamp(40px, 5vw, 54px) auto 0; }
.tl__track { position: relative; height: 6px; border-radius: 99px; background: var(--surface-3); }
.tl__zone { position: absolute; top: -1px; bottom: -1px; border-radius: 99px; background: var(--optimal-soft); box-shadow: inset 0 0 0 1px rgba(46, 115, 86, 0.32); }
.tl__dot { position: absolute; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--bg); transition: transform 0.6s var(--ease), opacity 0.6s var(--ease); transition-delay: var(--d, 0s); }
.js .tl:not(.in) .tl__dot { opacity: 0; transform: scale(0.2); }
.tl__labels { display: flex; align-items: flex-start; margin-top: 16px; }
.tl__seg { flex: none; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.tl__seg b { font-family: var(--display); font-stretch: 125%; font-size: 14px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); line-height: 1.3; }
.tl__seg span { margin-top: 2px; font-size: 14px; color: var(--faint); white-space: nowrap; }
.tl__seg--zone b { color: var(--optimal); }

/* ---------- inbox index ---------- */
.ibx { margin: clamp(44px, 6vw, 64px) auto 0; background: var(--surface); border: 1px solid var(--hair); border-radius: 24px; box-shadow: 0 34px 70px -54px rgba(28, 27, 26, 0.32), 0 1px 2px rgba(28, 27, 26, 0.04); overflow: hidden; scroll-margin-top: 20px; }
.ibx__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px; background: var(--surface-2); border-bottom: 1px solid var(--hair); }
.ibx__title { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.ibx__title svg { width: 20px; height: 20px; flex: none; color: var(--accent); }
.ibx__title b { font-size: 16px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ibx__count { font-size: 15px; color: var(--muted); white-space: nowrap; }
.ibx__count b { color: var(--ink); }
.ibx__list { list-style: none; margin: 0; padding: 0; }
.ibx__grp { display: flex; align-items: baseline; gap: 12px; padding: 18px 24px 10px; border-top: 1px solid var(--hair); background: linear-gradient(180deg, var(--accent-soft), transparent); }
.ibx__list > .ibx__grp:first-child { border-top: 0; }
.ibx__grp span:first-child { font-family: var(--display); font-stretch: 125%; font-size: 14px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.ibx__grp-t { font-size: 15px; color: var(--faint); }
.ibx__item { border-top: 1px solid var(--hair-soft); }
.ibx__grp + .ibx__item { border-top: 0; }
.ibx__row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 16px; min-height: 66px; padding: 12px 24px; transition: background 0.25s var(--ease); }
.ibx__row:hover { background: var(--accent-soft); }
.ibx__row:hover .ibx__s { color: var(--accent); }
.ibx__n { font-family: var(--display); font-stretch: 118%; font-size: 15px; font-weight: 800; color: var(--accent); letter-spacing: 0.02em; }
.ibx__txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ibx__s { font-size: 17px; font-weight: 650; color: var(--ink); line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.25s var(--ease); }
.ibx__p { font-size: 15px; color: var(--faint); line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ibx__meta { display: flex; align-items: center; gap: 10px; justify-self: end; }
.ibx__w { font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ibx__flow { display: inline-flex; align-items: center; min-height: 26px; padding: 2px 10px; border-radius: 99px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.ibx__flow--a { background: var(--optimal-soft); color: #1f5a41; }
.ibx__flow--n { background: var(--surface-3); color: var(--ink-2); }
.ibx__flow--b { background: var(--accent-soft); color: var(--accent); }
.ibx .tok-merge, .ibx .tok-link { padding: 0 5px; font-size: 0.9em; }
.ibx .tok-link svg { display: none; }

/* flow filter (post-webinar) */
.flt { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 24px; border-bottom: 1px solid var(--hair); }
.flt__b { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--hair); background: var(--surface); color: var(--muted); font-family: var(--sans); font-size: 15px; font-weight: 600; cursor: pointer; transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease); }
.flt__b b { font-weight: 600; }
.flt__b span { font-variant-numeric: tabular-nums; color: var(--faint); font-weight: 700; }
.flt__b:hover { border-color: var(--accent); color: var(--accent); }
.flt__b.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.flt__b.is-on span { color: rgba(255, 255, 255, 0.75); }
.is-filtered { display: none !important; }

/* ---------- phase dividers ---------- */
.ph { text-align: center; margin: clamp(72px, 9vw, 112px) auto clamp(30px, 4vw, 42px); max-width: 620px; }
.ph__k { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-stretch: 125%; font-size: 14px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.ph__k::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--optimal); box-shadow: 0 0 0 4px var(--optimal-soft); }
.ph__t { margin-top: 14px; font-size: clamp(28px, 3.2vw, 38px); }
.ph__note { margin: 14px auto 0; max-width: 52ch; font-size: 17px; line-height: 1.55; color: var(--muted); }

/* ---------- the email card ---------- */
.mail { margin: 0 0 28px; background: var(--surface); border: 1px solid var(--hair); border-radius: 24px; box-shadow: 0 40px 80px -60px rgba(28, 27, 26, 0.38), 0 1px 2px rgba(28, 27, 26, 0.04); overflow: hidden; scroll-margin-top: 20px; }
.mail:target { box-shadow: 0 0 0 2px var(--accent-line), 0 40px 80px -60px rgba(28, 27, 26, 0.38); }
.mail__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px clamp(20px, 4vw, 36px); background: var(--surface-2); border-bottom: 1px solid var(--hair); }
.mail__tags { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.tag { display: inline-flex; align-items: center; min-height: 30px; padding: 4px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap; }
.tag--n { background: var(--accent); color: #fff; }
.tag--k { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent-line); }
.tag--fa { background: var(--optimal-soft); color: #1f5a41; }
.tag--fn { background: var(--surface-3); color: var(--ink-2); }
.tag--fb { background: var(--surface); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--hair); }
.mail__when { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--muted); }
.mail__when svg { width: 17px; height: 17px; flex: none; color: var(--accent); }

.mail__inner { padding: clamp(24px, 4.4vw, 44px) clamp(20px, 5vw, 52px) clamp(24px, 4vw, 36px); }
.mail__from { display: flex; align-items: center; gap: 14px; }
.mail__from img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 1px var(--hair); }
.mail__who { display: flex; flex-direction: column; min-width: 0; }
.mail__who > b { font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.mail__who > span { font-size: 15px; color: var(--faint); }
.mail__who .tok-merge { font-size: 14px; }
.mail__count { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--faint); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mail__subject { margin: 26px 0 0; font-size: clamp(26px, 2.8vw, 32px); font-weight: 800; font-stretch: 110%; line-height: 1.16; letter-spacing: -0.02em; text-wrap: pretty; }
.mail__pv { margin: 12px 0 0; font-size: 17px; line-height: 1.5; color: var(--muted); }
.mail__pv span { display: inline-block; margin-right: 10px; font-family: var(--display); font-stretch: 125%; font-size: 14px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.mail__rule { height: 1px; margin: 26px 0 28px; background: var(--hair); }

.mail__body p, .mail__body li { font-size: 19px; line-height: 1.68; color: var(--ink-2); }
.mail__body p { margin: 0 0 18px; }
.mail__body .sub { margin: 30px 0 10px; font-family: var(--display); font-stretch: 112%; font-size: 21px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
.mail__body .faq { margin: 28px 0 8px; font-weight: 700; color: var(--ink); }
.mail__body .arr { list-style: none; margin: 0 0 22px; padding: 0; }
.mail__body .arr li { position: relative; margin: 0 0 10px; padding-left: 32px; }
.mail__body .arr li::before { content: "→"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700; }
.mail__body .q { margin: 6px 0 24px; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent); }
.mail__body .q p { margin: 0; font-size: 19px; line-height: 1.62; color: var(--ink); font-style: italic; }
.mail__body .fig { margin: 10px 0 30px; text-align: center; }
.mail__body .fig img { display: block; width: auto; max-width: min(100%, 480px); max-height: 560px; height: auto; margin: 0 auto; border-radius: 16px; border: 1px solid var(--hair); box-shadow: 0 24px 50px -36px rgba(28, 27, 26, 0.4); background: var(--surface-2); }
.mail__body .fig figcaption { margin-top: 12px; font-size: 15px; color: var(--faint); }

.mail__sign { margin: 8px 0 0; }
.mail__sign b { display: block; font-family: var(--display); font-stretch: 118%; font-size: 26px; font-weight: 800; letter-spacing: -0.015em; color: var(--ink); line-height: 1.2; }
.mail__sign span { display: block; margin-top: 4px; font-family: var(--display); font-stretch: 125%; font-size: 14px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.mail__ps { margin: 26px 0 0; padding-top: 20px; border-top: 1px dashed rgba(28, 27, 26, 0.18); font-size: 18px; line-height: 1.6; color: var(--muted); }
.mail__ps b { color: var(--ink); font-weight: 700; margin-right: 4px; }

.mail__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--hair-soft); }
.btn-copy, .to-top { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px; font-family: var(--sans); font-size: 15px; font-weight: 600; cursor: pointer; transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease); }
.btn-copy { border: 1px solid var(--hair); background: var(--surface); color: var(--ink-2); }
.btn-copy:hover { border-color: var(--accent); color: var(--accent); }
.btn-copy.is-done { background: var(--optimal-soft); border-color: transparent; color: #1f5a41; }
.to-top { color: var(--muted); padding-inline: 10px; }
.to-top:hover { color: var(--accent); }
.btn-copy svg, .to-top svg { width: 17px; height: 17px; flex: none; }

/* ---------- merge tokens ---------- */
.tok { display: inline; padding: 1px 7px; border-radius: 7px; font-size: 0.9em; font-weight: 650; white-space: nowrap; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.tok-merge { background: rgba(46, 115, 86, 0.12); color: #1f5a41; }
.tok-link { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent-line); }
.tok-link svg { display: inline-block; width: 1.05em; height: 1.05em; margin-right: 6px; vertical-align: -0.17em; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .tl:not(.in) .tl__dot { opacity: 1; transform: none; }
  .tl__dot, .ibx__row, .btn-copy, .flt__b { transition: none; }
}

/* ---------- mobile ---------- */
@media (max-width: 700px) {
  .seq__chips span { min-height: 36px; padding: 6px 14px; }
  .tl__seg b { letter-spacing: 0.06em; }
  .ibx__bar { padding: 14px 18px; }
  .ibx__grp { padding: 16px 18px 8px; flex-direction: column; align-items: flex-start; gap: 2px; }
  .ibx__grp span:first-child { white-space: normal; letter-spacing: 0.1em; }
  .ibx__row { grid-template-columns: 34px minmax(0, 1fr); gap: 4px 12px; padding: 14px 18px; align-items: start; }
  .ibx__n { grid-column: 1; grid-row: 1 / span 2; padding-top: 1px; }
  .ibx__meta { grid-column: 2; grid-row: 1; justify-self: start; }
  .ibx__txt { grid-column: 2; grid-row: 2; }
  .ibx__s { white-space: normal; }
  .flt { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 12px 14px; }
  .flt__b { flex-direction: column; justify-content: center; gap: 0; min-height: 56px; padding: 6px 4px; border-radius: 14px; font-size: 14px; line-height: 1.25; text-align: center; }
  .mail { border-radius: 20px; }
  .mail__top { padding: 12px 18px; }
  .mail__count { display: none; }
  .mail__body p, .mail__body li, .mail__body .q p { font-size: 18px; }
}
/* tokens are short (max ~180px), so keep each pill whole on one line, even on phones */
.mail .tok { white-space: nowrap; }

@media (max-width: 420px) {
  .tl__seg b { font-size: 14px; letter-spacing: 0.02em; }
  .tl__seg span { font-size: 14px; }
  .mail__foot { justify-content: center; }
}

/* phase label wraps on phones: drop the dot so the lines stay centred */
@media (max-width: 620px) { .ph__k { display: block; line-height: 1.6; text-align: center; } .ph__k::before { display: none; } }
