/* The Look Book, in the same split slider system as suits.css: a night hero
   with the before and after, white reading sections, and a rose "pin" that
   marks a winner the way an analyst pins the drape that worked. */
.lb-book main { padding-bottom: 8px; }

/* ---------- offer: hero (night, the split on the right) ---------- */
.lb-hero { display: grid; }
.lb-hero-copy { padding: 26px var(--gut) 40px; }
.lb-hero h1 { max-width: 13ch; }
@media (min-width: 960px) { .lb-hero h1 { font-size: clamp(46px, 3.9vw, 66px); max-width: none; } }
.lb-reveal { margin: 0; position: relative; }
.lb-reveal .split { aspect-ratio: 4 / 5; max-height: 62svh; width: 100%; }
.lb-reveal figcaption { position: absolute; left: 14px; top: 14px; z-index: 5; margin: 0; padding: 7px 11px; border-radius: 999px; background: rgba(15, 15, 16, .6); color: #fff; font: 600 12px/1.3 var(--text); max-width: calc(100% - 28px); }
@media (min-width: 960px) {
  .lb-hero { --off: max(var(--gut), calc((100vw - var(--wrap)) / 2 + var(--gut))); grid-template-columns: calc(var(--off) + clamp(380px, 33vw, 580px) + 48px) minmax(0, 1fr); align-items: start; }
  .lb-hero-copy { padding: clamp(40px, 8vh, 88px) 48px 64px var(--off); }
  .lb-reveal { position: sticky; top: 73px; height: calc(100svh - 73px); min-height: 600px; }
  .lb-reveal .split { height: 100%; max-height: none; aspect-ratio: auto; }
  .lb-reveal::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 120px; z-index: 1; background: linear-gradient(90deg, var(--night), rgba(15, 15, 16, 0)); pointer-events: none; }
}
.lb-buy { display: grid; gap: 14px; margin-top: 28px; max-width: 460px; }
.lb-price { margin: 4px 0 0; font-size: 16px; color: var(--muted); }
.lb-price strong { font: 800 44px/1 var(--display); color: var(--ink); margin-right: 6px; }
.lb-promises { list-style: none; margin: 6px 0 0; padding: 14px 0 0; border-top: 1px solid var(--hair); font-size: 14px; color: var(--muted); display: grid; gap: 6px; }
.lb-promises li { padding-left: 22px; position: relative; }
.lb-promises li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 9px; height: 5px; border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(-45deg); }

.lb-seg { display: flex; gap: 0; border: 1px solid var(--ink); border-radius: 999px; padding: 3px; margin: 0; flex-wrap: wrap; }
.lb-seg label { flex: 1 1 0; min-width: 0; }
.lb-seg input { position: absolute; opacity: 0; pointer-events: none; }
.lb-seg span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 44px; padding: 8px 12px; border-radius: 999px; font: 500 15px/1.2 var(--text); color: var(--muted); cursor: pointer; transition: background-color 160ms var(--ease), color 160ms var(--ease); }
.lb-seg input:checked + span { background: var(--ink); color: var(--paper); }
.lb-seg input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.lb-seg.four { border-radius: 26px; }
.lb-seg.four label { flex-basis: 50%; }
.lb-seg.four span { border-radius: 22px; }
@media (min-width: 700px) { .lb-seg.four label { flex-basis: 0; } }

.lb-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lb-pair > div, .lb-pair > figure { position: relative; margin: 0; }
.lb-pair img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; display: block; background: var(--mist); }
.tag { position: absolute; left: 10px; top: 10px; margin: 0; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .95); font: 500 11px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.tag.pin { background: var(--ink); color: #fff; }
.tag.pin::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 7px; vertical-align: 0; box-shadow: 0 0 0 1.5px #fff; }

/* ---------- offer: chapters as magazine spreads ---------- */
.lb-chapters { max-width: var(--wrap); margin: 0 auto; padding: 64px var(--gut) 0; }
@media (min-width: 960px) { .lb-chapters { padding-top: 112px; } }
.spread { display: grid; gap: 22px; padding: 32px 0; border-top: 1px solid var(--hair); align-items: center; }
@media (min-width: 800px) {
  .spread { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 72px; padding: 56px 0; }
  .spread.flip .spread-vis { order: 2; }
}
.spread-copy h3 { font-size: clamp(30px, 4vw, 40px); margin: 6px 0 12px; line-height: 1.08; }
.spread-copy p { margin: 0; max-width: 46ch; color: var(--body); }
.lb-num { font: 500 13px/1 var(--text) !important; letter-spacing: .16em; color: var(--accent) !important; margin: 0 !important; }
.lb-swatch-fan { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.lb-swatch-fan i { aspect-ratio: 1; display: block; }
.lb-swatch-fan i:last-child { box-shadow: inset 0 0 0 1px var(--hair); }
.lb-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lb-thumbs img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; display: block; }
.lb-thumbs img:first-child { outline: 2px solid var(--accent); outline-offset: 3px; }
.lb-glass { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: center; }
.lb-glass img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; display: block; }
.lb-size { margin: 0; display: grid; grid-template-columns: auto auto auto; justify-content: start; align-items: center; gap: 8px; font: 800 clamp(44px, 8vw, 72px)/1 var(--display); color: var(--ink); }
.lb-size i { width: 1px; height: .8em; background: var(--ink); transform: rotate(18deg); }
.lb-size small { grid-column: 1 / -1; font: 500 11px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.lb-mini-card { display: grid; grid-template-columns: auto 1fr; gap: 12px 20px; margin: 0; padding: 28px; background: var(--mist); border-radius: 16px; font-size: 16px; border-left: 3px solid var(--accent); }
.lb-mini-card dt { font: 500 12px/1.6 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.lb-mini-card dd { margin: 0; color: var(--ink); }
.lb-mirror-vis { display: grid; grid-template-columns: 1fr 40px 1fr; align-items: center; gap: 8px; }
.lb-mirror-in { aspect-ratio: 4 / 5; display: grid; place-items: center; text-align: center; padding: 16px; border: 1px dashed #c7c7cd; border-radius: 12px; font: 500 17px/1.3 var(--text); color: var(--muted); }
.lb-arrow { height: 1px; background: var(--ink); position: relative; }
.lb-arrow::after { content: ""; position: absolute; right: 0; top: -4px; width: 8px; height: 8px; border-top: 1px solid var(--ink); border-right: 1px solid var(--ink); transform: rotate(45deg); }
.lb-mirror-vis img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; display: block; }

.lb-compare, .lb-how { max-width: var(--wrap); margin: 0 auto; padding: 72px var(--gut) 0; }
@media (min-width: 960px) {
  .lb-compare, .lb-how { padding-top: 112px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
}
.lb-compare .compare td:last-child, .lb-compare .compare th:last-child { color: var(--ink); font-weight: 500; background: var(--mist); padding-left: 12px; }
.lb-compare .compare th:last-child { color: var(--accent); }
.lb-steps { list-style: none; margin: 0; padding: 0; }
.lb-steps li { position: relative; padding: 20px 0 20px 64px; border-top: 1px solid var(--hair); }
.lb-steps li:last-child { border-bottom: 1px solid var(--hair); }
.lb-steps span { position: absolute; left: 0; top: 27px; font: 500 13px/1 var(--text); letter-spacing: .16em; color: var(--accent); }
.lb-steps b { display: block; font: 800 21px/1.3 var(--display); color: var(--ink); margin-bottom: 2px; }
.lb-close { text-align: center; margin: 96px 0 0; padding: 88px var(--gut); }
.lb-close h2 { max-width: 14ch; margin-left: auto; margin-right: auto; }
.lb-close + .foot, main:has(.lb-close) + .foot { margin-top: 0; }
.lb-close .lede { margin: 0 auto 26px; }
.lb-close .btn { min-width: 260px; }

/* ---------- the book ---------- */
.lb-head { max-width: var(--wrap); margin: 0 auto; padding: 40px var(--gut) 0; }
.lb-head .kicker { margin-bottom: 10px; }
.lb-head .lede { max-width: 56ch; }
.lb-photo { max-width: 480px; display: grid; gap: 12px; margin-top: 18px; padding: 24px; background: var(--mist); border-radius: 16px; }
.lb-photo h2 { font-size: clamp(28px, 4vw, 36px); margin: 0; }
.lb-photo p { margin: 0; }
.lb-photo img { width: 160px; height: 200px; object-fit: cover; border-radius: 12px; }

.lb-toc { position: sticky; top: 61px; z-index: 4; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--hair); margin-top: 28px; }
.lb-toc-in { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); display: flex; gap: 24px; overflow-x: auto; scrollbar-width: none; }
.lb-toc-in::-webkit-scrollbar { display: none; }
.lb-toc a { flex: none; font: 400 15px/1 var(--text); color: var(--muted); text-decoration: none; padding: 16px 0; }
@media (hover: hover) { .lb-toc a:hover { color: var(--ink); } }

.lb-sec { max-width: var(--wrap); margin: 0 auto; padding: 56px var(--gut) 0; scroll-margin-top: 120px; counter-increment: ch; }
.lb-book #lb { counter-reset: ch; }
.lb-sec > h2 { margin: 0 0 12px; }
.lb-sec > h2::before { content: counter(ch, decimal-leading-zero); display: block; font: 500 13px/1 var(--text); letter-spacing: .16em; color: var(--accent); margin-bottom: 14px; }
.lb-keep > h2::before, .lb-keep { counter-increment: none; }
.lb-keep > h2::before { content: none; }
@media (min-width: 960px) { .lb-sec { padding-top: 96px; } }
.lb-lead { margin: 0 0 22px; max-width: 62ch; color: var(--muted); font-size: 18px; }
.lb-pair.big { max-width: 760px; }

.lb-looks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 700px) { .lb-looks { grid-template-columns: repeat(3, 1fr); gap: 20px; } .lb-looks.four { grid-template-columns: repeat(4, 1fr); } }
.lb-look { margin: 0; }
.lb-look-img { position: relative; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--mist); }
.lb-look-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-wait { position: absolute; inset: auto 8px 8px 8px; padding: 7px 10px; border-radius: 999px; background: rgba(18, 18, 18, .82); color: #fff; font-size: 13px; text-align: center; }
.lb-look[data-status="done"] .lb-wait { display: none; }
.lb-look[data-status="queued"] .lb-look-img, .lb-look[data-status="working"] .lb-look-img { background: linear-gradient(100deg, #efeff2 30%, #f8f8fa 50%, #efeff2 70%) 0 0 / 300% 100%; animation: lb-shine 1.6s linear infinite; }
.lb-look[data-status="failed"] { opacity: .75; }
.lb-look figcaption { padding: 10px 0 0; display: grid; gap: 2px; }
.lb-look figcaption strong { font: 800 19px/1.25 var(--display); color: var(--ink); }
.lb-look figcaption span { color: var(--muted); font-size: 14px; }
@keyframes lb-shine { to { background-position: -300% 0; } }

.lb-palette { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
@media (min-width: 700px) { .lb-palette { grid-template-columns: repeat(10, 1fr); } }
.lb-palette li { display: grid; gap: 6px; align-content: start; }
.lb-palette i { display: block; aspect-ratio: 3 / 4; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.lb-palette span { font-size: 11px; line-height: 1.25; color: var(--muted); padding-right: 4px; }
.lb-facts { display: grid; grid-template-columns: auto 1fr; gap: 0 24px; margin: 0; max-width: 760px; }
.lb-facts dt, .lb-facts dd { padding: 14px 0; border-top: 1px solid var(--hair); margin: 0; }
.lb-facts dt { font: 500 12px/1.9 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.lb-facts dd { color: var(--ink); }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: -1px; margin-right: 6px; }

.lb-glasses { display: grid; gap: 20px; max-width: 820px; }
@media (min-width: 700px) { .lb-glasses { grid-template-columns: 260px 1fr; align-items: start; } }
.lb-glasses .lb-look { max-width: 260px; }
.lb-shopcard { background: var(--mist); border-radius: 16px; padding: 24px; border-left: 3px solid var(--accent); }
.lb-shopcard h3 { margin: 4px 0 14px; font-size: 26px; }
.lb-shopcard dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0; font-size: 15px; }
.lb-shopcard dt { font: 500 11px/1.9 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.lb-shopcard dd { margin: 0; color: var(--ink); }
.lb-shopcard-top { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.lb-shopcard-top img { width: 72px; height: 90px; object-fit: cover; border-radius: 12px; flex: none; }
.lb-shopcard-top h3 { margin: 0; }
.lb-cards { display: grid; gap: 16px; }
@media (min-width: 900px) { .lb-cards { grid-template-columns: repeat(3, 1fr); } }

.lb-mirror { display: grid; gap: 12px; max-width: 560px; margin-bottom: 20px; }
.lb-mirror .small { margin: 0; }
#mirror-looks:empty { display: none; }
.lb-pack { margin-top: 24px; padding: 20px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); max-width: 560px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.lb-pack p { margin: 0; font-size: 15px; }
.lb-keep { padding-bottom: 24px; }
.lb-keep .saves { max-width: 440px; }
.lb-delete { margin-top: 22px; max-width: 520px; }
.lb-delete summary { cursor: pointer; color: var(--muted); font-weight: 500; min-height: 44px; display: flex; align-items: center; }
.lb-delete form { display: grid; gap: 10px; padding: 8px 0; }
.lb-delete input { font: 16px var(--text); padding: 12px 14px; border: 1px solid #c7c7cd; border-radius: 16px; }
.lb-consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--body); cursor: pointer; }
.lb-consent input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .lb-look[data-status="queued"] .lb-look-img, .lb-look[data-status="working"] .lb-look-img { animation: none; }
}

@media print {
  .mast, .foot, .lb-mirror, .lb-pack, .lb-keep, .lb-toc, .lb-wait, .skip { display: none !important; }
  .lb-sec { break-inside: avoid-page; padding-top: 20px; }
}

/* On a phone the before and after opens the page, like the tool pages, so the
   first screen shows what the Look Book makes before it asks for money. */
@media (max-width: 959px) {
  .lb-reveal { order: -1; }
}

@media (min-width: 960px) { .lb-toc { top: 73px; } }
.lb-toc a[aria-current="true"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }

/* ---------- offer: sample link and the phone buy bar ---------- */
.lb-sample-link { justify-self: center; font-weight: 600; color: var(--ink); min-height: 44px; display: inline-flex; align-items: center; }
.lb-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom)); background: rgba(15, 15, 16, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #d4d4d8; border-top: 1px solid rgba(255,255,255,.1); }
.lb-bar p { margin: 0; font-size: 14px; }
.lb-bar b { font: 800 22px/1 var(--display); color: #fff; margin-right: 4px; }
.lb-bar .btn { min-height: 46px; padding: 10px 18px; font-size: 15px; background: #fff; color: #0f0f10; border-color: #fff; }
@media (min-width: 960px) { .lb-bar { display: none !important; } }

/* ---------- the book: best self as the split slider ---------- */
.lb-best .split { aspect-ratio: 4 / 5; border-radius: 16px; max-width: 560px; }
.lb-best .split .sl img { object-position: 50% 30%; }

/* ---------- sample banner ---------- */
.lb-demo { background: var(--night); color: #d4d4d8; }
.lb-demo-in { max-width: var(--wrap); margin: 0 auto; padding: 14px var(--gut); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; }
.lb-demo p { margin: 0; font-size: 15px; }
.lb-demo b { color: #fff; }
.lb-demo .lb-seg { border-color: rgba(255,255,255,.3); }
.lb-demo .lb-seg a { display: flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: 999px; color: #c9c9cf; text-decoration: none; font-size: 14px; }
.lb-demo .lb-seg a[aria-current="page"] { background: #fff; color: #0f0f10; }
.lb-demo-end { margin-top: 56px; }
.lb-demo-end .lb-close { margin-top: 0; }
.lb-mirror-demo { max-width: 560px; display: grid; gap: 12px; }
.lb-mirror-demo .lb-mirror-vis { max-width: 420px; }
.lb-book main:has(.lb-demo-end) { padding-bottom: 0; }

/* What you get, right under the promise on the offer */
.lb-inside { margin: 22px 0 26px; }
.lb-inside li { font-size: 16px; color: #d4d4d8; }
