/* The Clarity Battery (/clarity-battery/), scoped to #bop so the rest of the site is untouched.
   2026-11-20, principal: "the borders and framing of all panels should match the site" and "we do not do round/oval
   buttons, we do rectangles with round and or a beveled corner". So this page uses the site's own language:
   the framed indigo page head, the content panel's indigo border with its inner silver line, the 3px 3px 16px 3px
   bevel on sub-panels and buttons, and the site's button type. What stays from the 11-19 rework: no court words or
   pictures, the larger type, the persona's reply as the one indigo block, Back on every question, and short motion.
   The flat, frameless, pill-button look tried on 11-19 was rejected; do not bring it back. */
#bop {
  --indigo: #112A58; --indigo-deep: #0B1C3E; --coral: #F2A08C; --coral-tint: #FDEDE8; --coral-ink: #7A3E2E;
  --paper: #F1F3F8; --white: #FFFFFF; --mist: #C6D4EA; --silver: #AFBDD7; --slate: #40547E; --ink: #0B1C3E;
  --ui: var(--font);
  --t-h2: clamp(2rem, 3.2vw + 1rem, 3.25rem); --t-q: clamp(1.625rem, 2.2vw + 1rem, 2.5rem); --t-h3: clamp(1.375rem, 1vw + 1rem, 1.75rem);
  --t-figure: clamp(2.75rem, 7vw, 4.5rem); --t-lead: clamp(1.1875rem, .5vw + 1.05rem, 1.375rem); --t-body: 1.125rem; --t-small: .9375rem;
  --d-1: 120ms; --d-2: 240ms; --d-3: 400ms; --e-std: cubic-bezier(.4, 0, .6, 1); --e-out: cubic-bezier(0, 0, .2, 1);
  --r-card: 3px 3px 16px 3px; --r-in: 3px 3px 12px 3px; --bevel: 3px 3px 16px 3px;
  /* names the old rules used, pointed at the new tokens */
  --sheet: var(--white); --ink-2: var(--slate); --hair: var(--silver); --primary: var(--indigo); --mono: var(--ui);
  max-width: 760px; margin: 0 auto; padding: 0 20px clamp(48px, 8vw, 96px); color: var(--ink); font-family: var(--ui); font-size: var(--t-body); line-height: 1.6;
}
#bop * { box-sizing: border-box; }
#bop [hidden] { display: none !important; }
#bop p { margin: 0; max-width: 62ch; }
#bop a { color: var(--ink); text-underline-offset: 3px; }
#bop button, #bop textarea, #bop input, #bop select { font: inherit; color: inherit; }
#bop :focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; }
#bop h2, #bop h3 { font-family: var(--display); font-weight: 400; margin: 0; text-wrap: balance; letter-spacing: -.005em; }
#bop .eyebrow, #bop .tag { font-family: var(--ui); font-weight: 600; font-size: var(--t-small); line-height: 1.3; letter-spacing: 0; text-transform: none; color: var(--slate); }
#bop .tag { display: block; }
#bop .muted { color: var(--slate); }
#bop .fine { font-size: var(--t-small); line-height: 1.45; color: var(--slate); }

/* the page head above the tool: short, so the first question is close */
/* The page head is the site's own framed indigo panel. On this page it is centred and holds the logo, the title, one
   line and the two controls. The deck card that normally sits in it is left out here; it still closes the page. */
.page-head.bop-head .wrap, .page-head.bop-head .wrap.has-deck { display: block; text-align: center; max-width: 800px; }
.page-head.bop-head .deck-thumb, .page-head.bop-head .deck-jump { display: none; }
.page-head.bop-head .bop-logo { display: block; margin: 0 auto 10px; }
.page-head.bop-head .bop-logo svg { display: block; width: 132px; height: 132px; margin: 0 auto; }
.page-head.bop-head h1 { margin: 0 0 10px; text-wrap: balance; }
.page-head.bop-head .lead { margin: 0 auto; max-width: 46ch; }
.bop-section, .section.bop-section { padding-top: 24px; }

/* progress: seven numbered steps */
#bop .rail { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 0 0 24px; }
#bop .rail:empty { display: none; }
#bop .seal { border: 0; background: transparent; cursor: pointer; padding: 0; display: grid; justify-items: center; gap: 6px; min-width: 0; min-height: 44px; }
#bop .seal i { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--silver); display: grid; place-items: center; font-style: normal; font-family: var(--ui); font-weight: 600; font-size: 15px; color: var(--slate); background: var(--white); }
#bop .seal span { font-size: 13px; line-height: 1.2; color: var(--slate); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
#bop .seal.now i { border-color: var(--indigo); color: var(--ink); box-shadow: 0 0 0 4px var(--coral-tint); }
#bop .seal.now span { color: var(--ink); font-weight: 600; }
#bop .seal[data-s="clear"] i { background: var(--indigo); border-color: var(--indigo); color: var(--coral); }
#bop .seal[data-s="defended"] i { background: var(--coral); border-color: var(--coral); color: var(--indigo); }
#bop .seal[data-s="assumption"] i { border: 1.5px dashed var(--coral-ink); color: var(--coral-ink); }
#bop .seal[data-s="unexamined"] i { border-style: dotted; }
#bop .seal[data-s="stopped"] i { border-color: var(--slate); background: var(--paper); }
#bop .seal:disabled { cursor: not-allowed; opacity: .5; }

/* the sheet: the site's content panel (indigo border, inner silver line) */
/* one framed panel holds the controls, the progress row and the question: the place where the interaction happens */
#bop .bop-panel { position: relative; background: var(--white); border: 2px solid var(--indigo); border-radius: 14px; padding: clamp(18px, 3vw, 26px) clamp(20px, 5vw, 52px) clamp(28px, 6vw, 52px); }
#bop .bop-panel::after { content: ""; position: absolute; inset: 3px; border: 1px solid var(--silver); border-radius: 11px; pointer-events: none; }
#bop .bop-panel > * { position: relative; z-index: 1; }
#bop .tools { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--mist); }
#bop .tools .btn { min-height: 44px; padding: 8px 16px; }
#bop .sheet { background: none; padding: 0; }
#bop .sheet > .in { display: grid; gap: 24px; }
#bop .bop-h1 { font-size: var(--t-h2); line-height: 1.08; }
#bop .q { font-size: var(--t-q); line-height: 1.12; }
#bop .method { font-size: var(--t-small); color: var(--slate); }
#bop .sheet > .in > p:not(.fine):not(.method):not(.thinking):not(.ruling):not(.bop-err):not(.whysaid) { font-size: var(--t-lead); line-height: 1.45; }

/* fields */
#bop textarea, #bop input.num, #bop input.txt { width: 100%; border: 1.5px solid var(--silver); border-radius: var(--r-in); background: var(--white); padding: 14px 16px; line-height: 1.5; min-height: 48px; }
#bop textarea:focus, #bop input.num:focus, #bop input.txt:focus { border-color: var(--indigo); outline: none; box-shadow: 0 0 0 4px var(--coral-tint); }
#bop textarea { min-height: 150px; resize: vertical; }
#bop textarea.short { min-height: 96px; }
#bop label.eyebrow, #bop .dial > label, #bop .dial > .eyebrow { color: var(--ink); }

/* actions: the site's button (styles.css .btn): a rectangle with one bevelled corner, an inner line, small capitals */
#bop .row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
#bop .row.spread { justify-content: space-between; }
#bop .btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 22px; border: 0; border-radius: var(--bevel); cursor: pointer;
  font: 700 .8rem/1.2 var(--font); letter-spacing: .14em; text-transform: uppercase; text-align: center; text-decoration: none;
  background: var(--indigo); color: #fff; box-shadow: 0 0 0 2px var(--coral), 0 10px 22px -14px rgba(11, 28, 62, .9); }
#bop .btn::after { content: ""; position: absolute; inset: 4px; border: 1px solid var(--coral); border-radius: 1px 1px 12px 1px; pointer-events: none; }
#bop .btn:hover { background: var(--coral); color: var(--indigo-deep); box-shadow: 0 0 0 2px var(--indigo-deep), 0 10px 22px -14px rgba(11, 28, 62, .9); }
#bop .btn:hover::after { border-color: var(--indigo-deep); }
#bop .btn.ghost { background: #fff; color: var(--indigo); box-shadow: inset 0 0 0 2px var(--coral); }
#bop .btn.ghost:hover { background: var(--coral-tint); color: var(--indigo-deep); }
#bop .btn.ghost:hover::after { border-color: var(--coral); }
#bop .btn:disabled { cursor: not-allowed; background: #E6E6E6; color: #3A3A3A; box-shadow: inset 0 0 0 2px #8A8A8A; }
#bop .btn:disabled::after { border-color: #8A8A8A; }
#bop .sample { font-size: 11px; letter-spacing: .08em; background: var(--coral); color: var(--indigo-deep); padding: 2px 8px; border-radius: 2px; }
#bop .linkish { border: 0; background: none; padding: 8px 0; color: var(--slate); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: var(--t-small); }
#bop .linkish.back { margin-right: 14px; text-decoration: none; font-weight: 600; min-height: 44px; }
#bop .linkish.back:hover { color: var(--ink); }
#bop .bop-err { background: var(--coral-tint); color: var(--ink); padding: 12px 16px; border-radius: var(--r-in); }
#bop .bop-note { margin: 0 0 16px; padding: 12px 16px; background: var(--white); border-radius: var(--r-in); }

/* the sureness dial */
#bop .dial { display: grid; gap: 8px; }
#bop .dial input[type=range] { width: 100%; accent-color: var(--indigo); min-height: 36px; }
#bop .dial output { font-weight: 600; font-size: var(--t-small); font-variant-numeric: tabular-nums; color: var(--slate); }

/* the answer, in parts */
#bop .exhibits { display: grid; gap: 8px; }
#bop .exhibit { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start; background: #fff; border: 1px solid var(--silver); border-radius: var(--bevel); padding: 14px 16px; border-left: 4px solid var(--silver); }
#bop .exhibit b { display: block; font-weight: 600; font-size: var(--t-small); color: var(--slate); margin-bottom: 2px; }
#bop .exhibit select { font-size: var(--t-small); border: 1.5px solid var(--silver); background: var(--white); border-radius: 3px 3px 10px 3px; padding: 8px 12px; min-height: 44px; }
#bop .exhibit[data-t="assumption"] { border-left-color: var(--coral); }
#bop .exhibit[data-t="contradiction"] { border-left-color: var(--coral-ink); }
#bop .exhibit[data-t="knowledge gap"] { border-left-style: dotted; border-left-color: var(--slate); }
#bop .exhibit[data-t="pressure point"] { border-left-color: var(--ink); }
#bop .exhibit[data-t="dependency"] { border-left-style: dashed; border-left-color: var(--slate); }

/* the persona's reply: the one indigo stage on the page */
#bop .persona { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; }
#bop .persona .face { width: 44px; height: 44px; border-radius: 50%; background: var(--indigo); color: var(--coral); display: grid; place-items: center; font-family: var(--display); font-size: 20px; }
#bop .persona .say { background: var(--indigo); color: #F1F3F8; border-radius: var(--bevel); box-shadow: 0 0 0 2px var(--coral); padding: 20px 24px; white-space: pre-wrap; min-height: 56px; font-size: var(--t-lead); line-height: 1.45; }
#bop .persona .say .thinking { color: var(--mist); }
#bop .thinking { font-size: var(--t-small); font-weight: 600; color: var(--slate); }
#bop .mind { font-size: 13px; color: var(--slate); }
#bop .round { font-size: var(--t-small); font-weight: 600; color: var(--coral-ink); }
#bop .past { display: grid; gap: 12px; }
#bop .past .persona .say { background: var(--paper); color: var(--ink); font-size: var(--t-body); }
#bop .mine { justify-self: end; max-width: 88%; background: var(--coral-tint); border-radius: var(--bevel); padding: 14px 18px; white-space: pre-wrap; }
#bop .mine b, #bop .past .ruling b { display: block; font-weight: 600; font-size: 13px; color: var(--slate); }
#bop .ruling { background: var(--paper); border-radius: var(--r-in); padding: 14px 16px; }

/* choices: buying or selling, why now, the level, your move */
#bop .choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
#bop .counsel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
#bop .whys { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
#bop .choices button, #bop .counsel button, #bop .whys button { border: 1px solid var(--coral); background: #fff; border-radius: var(--bevel); padding: 18px; min-height: 56px; cursor: pointer; text-align: left; color: var(--ink); }
#bop .choices button b, #bop .counsel button b { display: block; font-family: var(--ui); font-weight: 600; font-size: 1.1875rem; line-height: 1.25; }
#bop .choices button small, #bop .counsel button small { color: var(--slate); font-size: var(--t-small); line-height: 1.4; display: block; margin-top: 4px; }
#bop .choices button:hover, #bop .counsel button:hover, #bop .whys button:hover { background: var(--coral-tint); }
#bop .counsel button[aria-pressed="true"], #bop .whys button[aria-pressed="true"] { background: var(--coral-tint); box-shadow: inset 0 0 0 2px var(--indigo); }
#bop .counsel.big button { padding: clamp(22px, 4vw, 36px) 22px; }
#bop .counsel.big button b { font-family: var(--display); font-weight: 400; font-size: clamp(1.5rem, 4vw, 2rem); line-height: 1.1; }
#bop .whysaid { margin: 0; padding: 16px 20px; background: var(--paper); border-radius: var(--r-in); font-size: var(--t-lead); line-height: 1.4; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; justify-content: space-between; }
#bop .whysaid.small { font-size: var(--t-body); display: block; }

/* the first answer, on the clock */
#bop .clock { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center; background: #fff; border: 1px solid var(--coral); border-radius: var(--bevel); padding: 20px 24px; }
#bop .clock svg { width: 96px; height: 96px; display: block; }
#bop .clock .secs { font-family: var(--display); font-size: 30px; font-variant-numeric: tabular-nums; fill: var(--ink); }
#bop .clock .unit { font-family: var(--ui); font-size: 8px; letter-spacing: .12em; fill: var(--slate); }
#bop .clock.live { box-shadow: inset 0 0 0 2px var(--coral); }
#bop .tx { min-height: 120px; border: 1.5px dashed var(--silver); border-radius: var(--r-in); padding: 14px 16px; background: var(--white); white-space: pre-wrap; }
#bop .tx i { color: var(--slate); }
#bop .rec { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--coral); margin-right: 8px; vertical-align: middle; }

/* clarity card: one figure, one thought */
#bop .card { border: 1px solid var(--coral); border-radius: var(--bevel); padding: clamp(20px, 4vw, 32px); display: grid; gap: 10px; background: #fff; }
#bop .card h3 { font-size: var(--t-h3); line-height: 1.2; }
#bop .card .num { font-family: var(--display); font-size: var(--t-figure); line-height: 1; font-variant-numeric: tabular-nums; }
#bop .result { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: var(--t-small); background: var(--paper); border: 1px solid var(--coral); border-radius: 3px 3px 10px 3px; padding: 8px 14px; }

/* runway */
#bop .runway { display: grid; gap: 12px; }
#bop .runway .ins { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
#bop .runway label { display: grid; gap: 6px; font-size: var(--t-small); }
#bop .runway svg { width: 100%; height: auto; display: block; font-family: var(--ui); }
#bop .runway .read { font-family: var(--display); font-size: var(--t-h3); line-height: 1.1; }

/* the map of the story */
#bop .map { display: grid; gap: 12px; }
#bop .map .flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
#bop .map .box { border-radius: var(--r-in); padding: 14px 16px; background: var(--white); font-size: var(--t-small); line-height: 1.45; position: relative; }
#bop .map .box b { display: block; font-weight: 600; font-size: 13px; color: var(--slate); margin-bottom: 4px; }
#bop .map .box.hidden { box-shadow: inset 0 0 0 1.5px var(--silver); }
#bop .map .box + .box:before { content: "→"; position: absolute; left: -19px; top: 50%; transform: translateY(-50%); color: var(--slate); }
#bop .map .big { background: var(--coral-tint); border-radius: var(--r-in); padding: 16px 18px; display: grid; gap: 6px; }
#bop .map .big .tag { color: var(--coral-ink); }
#bop .map .big em { font-family: var(--display); font-style: normal; font-size: 1.3rem; margin-right: 6px; }

/* iulia's clips: a still and a play button; nothing plays unasked */
#bop .vclip { margin: 0; display: grid; gap: 8px; }
#bop .vclip video { display: block; width: 100%; aspect-ratio: 16 / 9; background: var(--indigo); border-radius: var(--bevel); box-shadow: 0 0 0 2px var(--coral), 0 0 0 5px #fff, 0 0 0 6px var(--indigo); margin: 6px; width: calc(100% - 12px); }
#bop .vclip details p { margin: 6px 0 0; color: var(--slate); font-size: var(--t-body); }
#bop .vclip summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }

/* stop */
#bop .stop .big { font-family: var(--display); font-size: var(--t-h3); line-height: 1.15; }

/* the sealed record: the one place the engraved rule stays */
#bop .record table { width: 100%; border-collapse: collapse; font-size: var(--t-small); }
#bop .record td, #bop .record th { border-bottom: 1px solid var(--mist); padding: 10px 6px; text-align: left; vertical-align: top; }
#bop .record th { font-size: 13px; color: var(--slate); font-weight: 600; }
#bop .sealmark { display: flex; align-items: center; gap: 16px; padding-bottom: 16px; border-bottom: 2px solid var(--indigo); box-shadow: 0 3px 0 var(--coral); }
#bop .sealmark svg { flex: none; }
#bop .rec-h { font-size: var(--t-h3); margin: 2px 0; }
#bop .sealno { font-size: var(--t-small); font-weight: 600; letter-spacing: .06em; }
#bop .bop-foot { margin: 32px auto 0; text-align: center; max-width: 64ch; }

@media (max-width: 600px) {
  #bop { padding-inline: 16px; }
  #bop .choices, #bop .counsel, #bop .whys { grid-template-columns: 1fr; }
  #bop .exhibit { grid-template-columns: 1fr; }
  #bop .clock { grid-template-columns: 1fr; justify-items: start; }
  #bop .rail { gap: 2px; } #bop .seal i { width: 32px; height: 32px; } #bop .seal span { display: none; }
  #bop .runway .ins { grid-template-columns: 1fr; }
  #bop .map .flow { grid-template-columns: 1fr; gap: 22px; }
  #bop .map .box + .box:before { content: "↓"; left: 50%; top: -20px; transform: translateX(-50%); }
}

/* Motion. The site's main stylesheet still switches every animation and transition off with !important, so each rule
   here has to say !important to exist at all. It exists only for visitors who have not asked for reduced motion: without
   this block the page is the same page, just still. Opacity and transform only; arrive on --e-out; nothing over 400ms. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes bop-rise { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
  @keyframes bop-press { 0% { transform: scale(1.35); opacity: .3; } 100% { transform: scale(1); opacity: 1; } }
  @keyframes bop-fill { from { transform: scaleX(0); } to { transform: none; } }
  @keyframes bop-blink { 50% { opacity: .2; } }
  @keyframes bop-dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
  #bop .sheet { animation: bop-rise var(--d-3) var(--e-out) both !important; }
  #bop .exhibit, #bop .card, #bop .persona:not(.past .persona) .say { animation: bop-rise var(--d-2) var(--e-out) both !important; }
  #bop .seal.press i { animation: bop-press var(--d-3) var(--e-out) !important; }
  #bop .runway .mo { transform-box: fill-box; transform-origin: left; animation: bop-fill var(--d-2) var(--e-out) backwards !important; }
  #bop .clock.live .rec { animation: bop-blink 1s steps(2) infinite !important; }
  #bop .thinking:after { content: ""; display: inline-block; width: 1.2em; text-align: left; animation: bop-dots 1.2s steps(4) infinite !important; }
  #bop .btn, #bop .choices button, #bop .counsel button, #bop .whys button, #bop .seal i, #bop textarea, #bop input {
    transition: background-color var(--d-1) var(--e-std), color var(--d-1) var(--e-std), box-shadow var(--d-1) var(--e-std), border-color var(--d-1) var(--e-std), transform var(--d-1) var(--e-std) !important; }
}

#bop #doc { display: grid; gap: 18px; }
#bop #doc .tag { margin-bottom: 4px; }

/* what the site's own figures say about a market claim (2026-11-20) */
#bop .sitefact { display: block; margin-top: 10px; padding: 12px 14px; background: var(--paper); border: 1px solid var(--silver); border-radius: var(--bevel); font-size: var(--t-small); line-height: 1.5; }
#bop .sitefact.ok { background: var(--coral-tint); border-color: var(--coral); }
#bop .sitefact b { display: block; font-weight: 700; font-size: var(--t-small); color: var(--ink); margin-bottom: 2px; }
#bop .sitefact small { display: block; margin-top: 6px; color: var(--slate); font-size: 13px; }
#bop .factlist { display: grid; gap: 8px; max-width: none; }
#bop .factlist .sitefact { margin-top: 0; }

/* the opening screen's reading matter sits below Begin and the clip (2026-11-20) */
#bop .about { display: grid; gap: 16px; padding-top: 20px; border-top: 1px solid var(--mist); }
#bop .about > p:not(.fine) { font-size: var(--t-body); }
#bop .vnotes summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
#bop .vnotes p { margin: 6px 0 0; color: var(--slate); }

