/* W26 owner round: add-on group on the rail, chapter card lines, website widget demo, A&D type cell, step 6 link. */

/* ── Rail: six core steps, a divider, two add-ons ── */
.steps > li.steps__div { display: flex; align-items: center; gap: 8px; flex: none; margin: 8px 0 2px; padding: 0 4px; min-height: 20px; font: 600 13px/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--brass-2, #e2c486); white-space: nowrap; list-style: none; }
.steps__div i { flex: 1 1 auto; min-width: 12px; height: 1px; background: linear-gradient(90deg, rgba(209,173,106,.65), rgba(209,173,106,0)); }
.steps__ds { display: none; }
.steps > li.steps__div::before, .steps > li.steps__div::after,
.steps > li:has(+ li.steps__div)::before, .steps > li:has(+ li.steps__div)::after,
.steps > li.steps__add::before, .steps > li.steps__add::after { content: none !important; }
.steps__n--add svg { display: block; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.act .steps .steps__n.steps__n--add { border: 1.5px dashed rgba(209,173,106,.75) !important; background: transparent !important; color: #e2c486 !important; box-shadow: none !important; }
.act .steps button[aria-current="step"] .steps__n.steps__n--add { border: 2px solid #e2c486 !important; background: rgba(209,173,106,.22) !important; color: #f6e3b4 !important; box-shadow: 0 0 0 3px rgba(209,173,106,.18), 0 0 18px -2px rgba(226,196,134,.85) !important; }
.act__bar:not(.is-rail) .steps > li.steps__div { margin: 0 6px; }
.act__bar:not(.is-rail) .steps__div i { display: none; }

/* Phones: the narrow rail gets a short centered label between two hairlines. */
html.pp .act.pp-flow .steps > li.steps__div { flex-direction: column; align-items: center; justify-content: center; align-self: stretch; gap: 5px; width: auto; margin: 6px 0 4px; padding: 0; font: 600 13px/1 var(--f-body); letter-spacing: 0; text-transform: none; text-align: center; }
html.pp .act.pp-flow .steps__div i { display: block; align-self: center; margin: 0 auto; order: -1; flex: none; width: 32px; height: 1px; background: rgba(209,173,106,.7); }
html.pp .act.pp-flow .steps__dl { display: none; }
html.pp .act.pp-flow .steps__ds { display: block; }

/* ── Phone chapter cards: one line on what the tool does ── */
html.pp .act.pp-flow [data-step-panel]:not([data-step-panel="1"]) .pp-band .pp-band__s { display: block; margin: 12px auto 0; max-width: 31ch; font: 400 16px/1.4 var(--f-body); color: var(--ink-2); text-align: center; text-wrap: balance; }
@media (max-width: 359px) { html.pp .act.pp-flow [data-step-panel]:not([data-step-panel="1"]) .pp-band .pp-band__s { font-size: 15px; } }

/* ── Stack: add-on chips read as optional ── */
.stack__chip--add { outline: 1px dashed rgba(209,173,106,.45); outline-offset: 2px; }

/* ── Step 6: the old clinic toggle is now a link to the clinic add-on ── */
.step__end .step__lnk--see { display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; }

/* ── A&D book at 360: keep whole words in the type cell ── */
@container (max-width: 440px) {
  .ta__t td { overflow-wrap: normal; word-break: normal; hyphens: manual; }
  .ta__t tr { grid-template-columns: max-content minmax(0, 1fr); }
  .ta__t td:nth-child(2), .ta__t td:nth-child(3) { letter-spacing: 0; }
}

/* ── Step 2: website widget demo ── */
.wg { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; align-items: start; }
.wg__site { position: relative; height: 360px; container-type: inline-size; border: 1px solid rgba(209,173,106,.35); border-radius: 12px; overflow: hidden; background: #f4efe6; color: #1b1712; box-shadow: 0 18px 40px -24px rgba(0,0,0,.9); }
.wg__bar { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; background: #e7dfd1; border-bottom: 1px solid rgba(0,0,0,.08); }
.wg__bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(0,0,0,.18); }
.wg__bar span { margin-left: 8px; font: 500 13px/1 var(--f-mono); color: #5d5446; }
.wg__page { padding: 18px 16px; }
.wg__k { margin: 0; font: 700 13px/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: #8a5a1c; }
.wg__h { margin: 8px 0 12px; max-width: 16ch; font: 700 20px/1.2 var(--f-body); color: #1b1712; }
.wg__ln { display: block; width: 80%; height: 8px; margin: 6px 0; border-radius: 4px; background: rgba(0,0,0,.1); }
.wg__ln--s { width: 55%; }
.wg__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; max-width: 260px; }
.wg__tiles i { aspect-ratio: 1; border-radius: 8px; background: linear-gradient(135deg, #d9cbb3, #bfa982); }
.wg__bub { position: absolute; right: 14px; bottom: 14px; width: 56px; height: 56px; border-radius: 50%; border: 0; display: grid; place-items: center; background: #160b05; color: #e2c486; box-shadow: 0 0 0 2px #d1ad6a, 0 10px 24px -8px rgba(0,0,0,.6); cursor: pointer; animation: wgPulse 2.4s ease-in-out infinite; }
.wg__bub svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.wg__bub[aria-expanded="true"] { display: none; }
@keyframes wgPulse { 50% { box-shadow: 0 0 0 2px #d1ad6a, 0 0 0 9px rgba(209,173,106,.2), 0 10px 24px -8px rgba(0,0,0,.6); } }
.wg__chat { position: absolute; left: auto; right: 10px; top: auto; bottom: 10px; width: min(100% - 20px, max(80%, 200px), 320px); max-height: 230px; display: flex; flex-direction: column; border: 1px solid rgba(209,173,106,.45); border-radius: 12px; background: #120c08; color: var(--ink, #f3ede2); box-shadow: 0 20px 40px -16px rgba(0,0,0,.8); overflow: hidden; }
.wg__chat[hidden] { display: none; }
.wg__hd { display: flex; align-items: center; gap: 8px; padding: 0 0 0 12px; border-bottom: 1px solid rgba(209,173,106,.25); }
.wg__hd b { font: 600 14px/1.2 var(--f-body); }
.wg__hd span { margin-right: auto; white-space: nowrap;font: 500 13px/1 var(--f-mono); color: var(--ink-2, #c9c2b4); }
.wg__x { flex: none; width: 44px; height: 44px; border: 0; background: none; color: var(--ink-2, #c9c2b4); font: 400 22px/1 var(--f-body); cursor: pointer; }
.wg__log { flex: 1 1 auto; display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 10px 12px; overflow-y: auto; list-style: none; }
.wg__log li { max-width: 88%; padding: 8px 10px; border-radius: 10px; font: 400 14px/1.4 var(--f-body); }
.wg__log .caller { align-self: flex-end; background: rgba(209,173,106,.2); color: #f6e3b4; }
.wg__log .ai { align-self: flex-start; background: rgba(255,255,255,.07); }
.wg__log .sys { align-self: center; max-width: 100%; padding: 2px 4px; background: none; font: 500 13px/1.35 var(--f-mono); color: var(--brass-2, #e2c486); text-align: center; }
.wg__log .src { align-self: flex-start; max-width: 100%; padding: 0 4px; background: none; font: 500 13px/1.35 var(--f-mono); color: var(--ink-2, #c9c2b4); }
.wg__acts { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 10px 10px; border-top: 1px solid rgba(209,173,106,.2); }
.wg__btn { flex: 1 1 auto; min-height: 44px; padding: 0 8px; white-space: nowrap; border: 1px solid rgba(209,173,106,.6); border-radius: 999px; background: transparent; color: #f6e3b4; font: 600 14px/1.2 var(--f-body); cursor: pointer; }
.wg__btn:disabled { opacity: .5; cursor: default; }
.wg__one { margin: 0 0 10px; font: 600 18px/1.3 var(--f-body); color: var(--ink, #f3ede2); }
.wg__code { margin: 0 0 14px; padding: 12px; border: 1px solid rgba(209,173,106,.35); border-radius: 10px; background: rgba(0,0,0,.35); }
.wg__ex { display: inline-block; margin-bottom: 8px; padding: 3px 8px; border: 1px solid rgba(209,173,106,.6); border-radius: 999px; font: 600 13px/1.2 var(--f-mono); color: var(--brass-2, #e2c486); }
.wg__code code { display: block; font: 500 13px/1.5 var(--f-mono); color: #f3ede2; overflow-wrap: anywhere; }
.wg .perks { margin: 0 0 10px; }
.wg__nw { white-space: nowrap; }
@container (max-width: 200px) { .wg__chat { max-height: 300px; } }
/* W26 fix: on desktop the widget tab takes the whole demo area (the phone picture is for calls), so the site and the setup sit side by side. */
@media (min-width: 1101px) {
  .call2:has([data-act-panel="widget"].is-on) { grid-template-columns: minmax(0, 1fr); }
  .call2:has([data-act-panel="widget"].is-on) > .call2__pic { display: none; }
}
@media (prefers-reduced-motion: reduce) { .wg__bub { animation: none; } }
