/* BAI The Way. Reference-manual layout: choice grid on the landing page,
   numbered <details> timeline on flow pages, floating translucent helper. */
.tw {
  --tw-bg: #fbfaf6; --tw-surface: #ffffff; --tw-fg: #0b2342; --tw-muted: #5a6b7d; --tw-line: #dce4e9;
  --tw-accent: #0b5cad; --tw-accent-soft: #e8f0f9; --tw-warn: #8a5300; --tw-warn-soft: #fbf1e0;
  --tw-float: rgba(255, 255, 255, .78);
  margin: 0; background: var(--tw-bg); color: var(--tw-fg);
  font: 15px/1.6 Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
}
.tw *, .tw *::before, .tw *::after { box-sizing: border-box; }
.tw a { color: inherit; }
.tw h1, .tw h2, .tw h3 { line-height: 1.2; margin: 0; text-wrap: balance; }
.tw-wrap { max-width: 1040px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.tw-skip { position: absolute; left: -999px; }
.tw-skip:focus { left: 16px; top: 8px; z-index: 20; background: var(--tw-surface); padding: 8px 12px; }
.tw-header { position: sticky; top: 0; z-index: 8; background: var(--tw-surface); border-bottom: 1px solid var(--tw-line); }
.tw-header .tw-wrap { display: flex; align-items: center; gap: 24px; min-height: 58px; }
.tw-logo img { display: block; height: 24px; width: auto; }
.tw-header nav { display: flex; gap: 20px; overflow-x: auto; font-size: 14px; color: var(--tw-muted); }
.tw-header nav a { text-decoration: none; white-space: nowrap; padding-block: 4px; }
.tw-header nav a.is-on { color: var(--tw-fg); font-weight: 650; box-shadow: inset 0 -2px var(--tw-accent); }
.tw-backbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding-top: 20px; font-size: 14px; }
.tw-backbar a { text-decoration: none; color: var(--tw-accent); font-weight: 650; }
.tw-backbar span { color: var(--tw-muted); }
.tw-main { padding-block: 8px 48px; }
.tw-eyebrow { margin: 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--tw-accent); font-weight: 700; }
.tw-hero, .tw-fhead { display: grid; gap: 12px; max-width: 660px; padding-block: 32px 20px; }
.tw-hero h1 { font-size: clamp(30px, 5vw, 42px); }
.tw-fhead h1, .tw-qpage h1, .tw-tpage h1 { font-size: clamp(26px, 4.4vw, 36px); }
.tw-hero p:not(.tw-eyebrow), .tw-fhead p:not(.tw-eyebrow), .tw-lead { margin: 0; color: var(--tw-muted); font-size: 17px; }
.tw-sec { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--tw-muted); font-weight: 700; margin: 36px 0 14px; }
.tw-paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.tw-path, .tw-tool { background: var(--tw-surface); border: 1px solid var(--tw-line); border-radius: 10px; text-decoration: none; transition: border-color .15s; }
.tw-path { display: grid; gap: 8px; padding: 20px; }
.tw-path:hover, .tw-path:focus-visible, .tw-tool:hover, .tw-tool:focus-visible { border-color: var(--tw-accent); outline: none; }
.tw-path h3 { font-size: 19px; }
.tw-path p { margin: 0; color: var(--tw-muted); font-size: 14px; }
.tw-meta { display: flex; gap: 12px; font-size: 12px; color: var(--tw-muted); font-variant-numeric: tabular-nums; }
.tw-meta b { color: var(--tw-fg); }
.tw-cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px; }
@media (max-width: 760px) { .tw-cols { grid-template-columns: 1fr; } }
.tw-qlist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--tw-line); }
.tw-qlist li { border-bottom: 1px solid var(--tw-line); }
.tw-qlist a { display: flex; justify-content: space-between; gap: 12px; padding-block: 13px; text-decoration: none; }
.tw-qlist a:hover span:first-child { color: var(--tw-accent); }
.tw-tag { font-size: 12px; color: var(--tw-muted); white-space: nowrap; }
.tw-tools { display: grid; gap: 10px; }
.tw-tool { display: block; padding: 14px 16px; }
.tw-tool b { display: block; }
.tw-tool span { font-size: 13px; color: var(--tw-muted); }
.tw-pulse { border-top: 1px solid var(--tw-line); }
.tw-pulse a { display: grid; grid-template-columns: 88px 1fr; gap: 12px; padding: 12px 8px; margin-inline: -8px; border-bottom: 1px solid var(--tw-line); border-radius: 6px; text-decoration: none; font-size: 14px; }
.tw-pulse a:hover, .tw-pulse a:focus-visible { background: var(--tw-accent-soft); outline: none; }
.tw-pulse time { color: var(--tw-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.tw-pulse em { display: block; font-style: normal; color: var(--tw-accent); font-size: 13px; font-weight: 650; margin-top: 2px; }
.tw-facts { display: flex; flex-wrap: wrap; gap: 28px; margin: 12px 0 8px; padding-block: 18px; border-block: 1px solid var(--tw-line); }
.tw-facts div { display: grid; }
.tw-facts dt { font-size: 12px; color: var(--tw-muted); }
.tw-facts dd { margin: 0; font-size: 19px; font-weight: 650; }
.tw-steps { list-style: none; margin: 16px 0 0; padding: 0; max-width: 680px; }
.tw-step { position: relative; padding-left: 52px; }
.tw-step::before { content: ""; position: absolute; left: 15px; top: 44px; bottom: 0; width: 2px; background: var(--tw-line); }
.tw-step:last-child::before { display: none; }
.tw-step summary { list-style: none; cursor: pointer; padding: 12px 0 14px; }
.tw-step summary::-webkit-details-marker { display: none; }
.tw-step summary:focus-visible { outline: 2px solid var(--tw-accent); outline-offset: 4px; border-radius: 4px; }
.tw-num { position: absolute; left: 0; top: 10px; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--tw-line); background: var(--tw-bg); display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--tw-muted); }
.tw-step details[open] .tw-num { border-color: var(--tw-accent); color: var(--tw-accent); }
.tw-step-head { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; }
.tw-step-head h3 { font-size: 17px; }
.tw-chips { display: flex; gap: 6px; font-size: 12px; white-space: nowrap; }
.tw-chips span { padding: 2px 8px; border-radius: 99px; border: 1px solid var(--tw-line); background: var(--tw-surface); color: var(--tw-muted); }
.tw-line { grid-column: 1 / -1; color: var(--tw-muted); font-size: 14px; }
@media (max-width: 480px) { .tw-step-head { grid-template-columns: 1fr; } .tw-chips { order: 3; } }
.tw-step-body { display: grid; gap: 14px; padding-bottom: 22px; }
.tw-step-body p, .tw-det p { margin: 0; }
.tw-step-body ul, .tw-det ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.tw-take { background: var(--tw-accent-soft); border-radius: 8px; padding: 14px 16px; display: grid; gap: 8px; font-size: 14px; }
.tw-take > strong { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--tw-accent); }
.tw-take p { margin: 0; }
.tw-take-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .tw-take-grid { grid-template-columns: 1fr; } }
.tw-take h4 { margin: 0 0 4px; font-size: 13px; }
.tw-take ul { margin: 0; padding-left: 18px; display: grid; gap: 3px; }
.tw-watch { background: var(--tw-warn-soft); border-radius: 8px; padding: 12px 14px; font-size: 14px; }
.tw-watch b { color: var(--tw-warn); }
.tw-assist { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 14px; border-left: 2px solid var(--tw-accent); padding: 4px 0 4px 14px; font-size: 14px; }
.tw-assist > span { color: var(--tw-muted); }
.tw-assist a { color: var(--tw-accent); font-weight: 650; text-decoration: none; white-space: nowrap; }
@media (max-width: 480px) { .tw-assist { grid-template-columns: 1fr; } }
.tw-inline { margin: 0; font-size: 14px; color: var(--tw-muted); }
.tw-inline a { color: var(--tw-accent); font-weight: 650; text-decoration: none; }
.tw-end { display: grid; gap: 14px; max-width: 680px; margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--tw-line); }
.tw-end h2 { font-size: 22px; }
.tw-end > p { margin: 0; color: var(--tw-muted); }
.tw-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tw-btn { display: inline-block; background: var(--tw-fg); color: #fff; border-radius: 8px; padding: 10px 18px; font-weight: 650; text-decoration: none; font-size: 14px; }
.tw .tw-btn { color: #fff; }
.tw .tw-ghost { background: transparent; color: var(--tw-fg); border: 1px solid var(--tw-line); }
.tw-related { max-width: 680px; }
.tw-qpage, .tw-tpage { display: grid; gap: 18px; padding-block: 24px 16px; max-width: 680px; }
.tw-tpage { max-width: 780px; }
.tw-short { margin: 0; font-size: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--tw-line); }
.tw-det { display: grid; gap: 12px; }
.tw-tgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 640px) { .tw-tgrid { grid-template-columns: 1fr; } }
.tw-fields { display: grid; gap: 12px; }
.tw-fields.tw-row { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.tw-fields label { display: grid; gap: 4px; font-size: 13px; color: var(--tw-muted); }
.tw-fields input, .tw-fields select { font: inherit; font-size: 15px; color: var(--tw-fg); background: var(--tw-surface); border: 1px solid var(--tw-line); border-radius: 8px; padding: 9px 12px; width: 100%; }
.tw-fields input:focus, .tw-fields select:focus { outline: 2px solid var(--tw-accent); outline-offset: 1px; }
.tw-result { background: var(--tw-surface); border: 1px solid var(--tw-line); border-radius: 10px; padding: 18px; display: grid; gap: 10px; font-variant-numeric: tabular-nums; }
.tw-result small { color: var(--tw-muted); font-size: 12px; }
.tw-big { font-size: 30px; font-weight: 700; }
.tw-rows { display: grid; gap: 6px; font-size: 14px; }
.tw-rows div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 6px; border-bottom: 1px dashed var(--tw-line); }
.tw-rows div span:first-child { color: var(--tw-muted); }
.tw-rows .tw-tot { border: 0; font-weight: 650; }
.tw-rows .tw-tot span:first-child { color: var(--tw-fg); }
.tw-checks { list-style: none; margin: 0; padding: 0; }
.tw-checks label { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--tw-line); font-size: 14px; cursor: pointer; }
.tw-checks input { margin-top: 4px; accent-color: var(--tw-accent); }
.tw-checks h4 { margin: 16px 0 4px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--tw-muted); }
.tw-review { margin: 40px 0 0; max-width: 680px; font-size: 12px; color: var(--tw-muted); }
/* Floating helper: present but quiet; a bottom bar on narrow screens. */
.tw-helper { position: fixed; z-index: 7; background: var(--tw-float); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--tw-line); border-radius: 12px; font-size: 13px; transition: opacity .2s; }
.tw-helper-body { display: grid; gap: 10px; padding: 16px; }
.tw-helper h2 { margin: 0; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--tw-muted); }
.tw-helper a { color: var(--tw-accent); font-weight: 650; text-decoration: none; }
.tw-helper-toggle { display: none; width: 100%; padding: 12px 16px; border: 0; background: none; font: inherit; font-weight: 650; color: var(--tw-fg); text-align: left; cursor: pointer; justify-content: space-between; }
@media (min-width: 1100px) {
  .tw-main { padding-right: 300px; }
  .tw-helper { right: max(24px, calc((100vw - 1040px) / 2 + 16px)); top: 132px; width: 256px; opacity: .62; }
  .tw-helper:hover, .tw-helper:focus-within { opacity: 1; }
}
@media (max-width: 1099px) {
  .tw-helper { left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); opacity: .94; }
  .tw-helper-toggle { display: flex; }
  .tw-helper:not(.is-open) .tw-helper-body { display: none; }
  .tw-helper .tw-helper-body { padding-top: 0; }
  .tw .global-footer { padding-bottom: 88px; }
}
@media (prefers-reduced-motion: reduce) { .tw * { transition: none !important; } }
