/* ---------- the business coach ---------- */
.coach { display: flex; flex-direction: column; min-height: calc(100vh - var(--sh-top, var(--pn-h, 68px)) - 28px); padding: 0 var(--pad); }
.coach-head { max-width: 860px; width: 100%; margin: 0 auto; padding: 8px 0 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.coach-head h1 { margin: 0; font-size: clamp(24px, 3vw, 34px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.coach-head p { margin: 6px 0 0; font-size: 14.5px; color: var(--ink-soft); }
.coach-new { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border: 1px solid var(--sh-line, var(--line)); border-radius: 999px; background: var(--paper); font: inherit; font-size: 13.5px; color: var(--ink-soft); cursor: pointer; white-space: nowrap; transition: border-color 140ms ease, color 140ms ease; }
.coach-new:hover, .coach-new:focus-visible { border-color: var(--accent); color: var(--accent); }
.coach-body { flex: 1 1 auto; max-width: 860px; width: 100%; margin: 0 auto; padding-bottom: 12px; }
.coach-starters { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-top: 10px; }
.coach-starter { display: block; width: 100%; padding: 16px; border: 1px solid var(--sh-line, var(--line)); border-radius: 14px; background: var(--paper); font: inherit; font-size: 14.5px; line-height: 1.45; text-align: left; color: var(--ink); cursor: pointer; transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease; }
.coach-starter:hover, .coach-starter:focus-visible { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(28, 28, 31, 0.1); }
.coach-starter small { display: block; margin-bottom: 6px; font-size: 12px; text-transform: lowercase; color: var(--accent); }
.coach-msg { display: flex; gap: 12px; margin: 18px 0; }
.coach-msg--me { justify-content: flex-end; }
.coach-avatar { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; }
.coach-bubble { max-width: min(680px, 92%); padding: 12px 16px; border-radius: 16px; font-size: 15px; line-height: 1.6; }
.coach-msg--coach .coach-bubble { background: var(--sh-bg, #f6f6f8); border: 1px solid var(--sh-line, var(--line)); border-top-left-radius: 6px; }
.coach-msg--me .coach-bubble { background: var(--accent); color: #fff; border-top-right-radius: 6px; }
.coach-bubble p { margin: 0 0 10px; }
.coach-bubble p:last-child { margin-bottom: 0; }
.coach-bubble ul, .coach-bubble ol { margin: 0 0 10px; padding-left: 20px; }
.coach-bubble li { margin: 0 0 4px; }
.coach-typing span { display: inline-block; width: 7px; height: 7px; margin-right: 4px; border-radius: 50%; background: var(--ink-soft); animation: coach-dot 1.2s ease-in-out infinite; }
.coach-typing span:nth-child(2) { animation-delay: 0.15s; }
.coach-typing span:nth-child(3) { animation-delay: 0.3s; margin-right: 0; }
@keyframes coach-dot { 0%, 80%, 100% { opacity: 0.25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.coach-error { margin: 14px 0; padding: 12px 14px; border: 1px solid var(--sh-line, var(--line)); border-radius: 12px; font-size: 14px; color: var(--ink-soft); }
.coach-compose { position: sticky; bottom: 0; z-index: 20; max-width: 860px; width: 100%; margin: 0 auto; padding: 10px 0 16px; background: linear-gradient(to top, var(--paper) 78%, transparent); }
.coach-form { display: flex; align-items: flex-end; gap: 10px; padding: 8px 8px 8px 16px; border: 1px solid var(--sh-line, var(--line)); border-radius: 18px; background: var(--paper); transition: border-color 160ms ease, box-shadow 160ms ease; }
.coach-form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--sh-tint, rgba(255, 122, 0, 0.09)); }
.coach-form textarea { flex: 1 1 auto; min-height: 24px; max-height: 160px; padding: 8px 0; border: 0; outline: 0; resize: none; background: transparent; font: inherit; font-size: 15.5px; line-height: 1.45; color: var(--ink); }
.coach-send { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #fff; cursor: pointer; transition: transform 160ms ease, opacity 160ms ease; }
.coach-send:hover:not(:disabled) { transform: translateY(-1px); }
.coach-send:disabled { opacity: 0.4; cursor: default; }
.coach-note { margin: 8px 4px 0; font-size: 12px; color: var(--ink-soft); text-align: center; }
@media (max-width: 960px) { .coach { min-height: calc(100vh - var(--sh-top, var(--pn-h, 68px)) - 8px); } }
@media (prefers-reduced-motion: reduce) { .coach-typing span { animation: none; opacity: 0.6; } .coach-starter, .coach-send { transition: none; } }
.coach-new[hidden], .coach-starters[hidden] { display: none; }


.coach-new[hidden], .coach-starters[hidden] { display: none; }
.coach { max-width: none; }

.coach-demo { max-width: 860px; width: 100%; margin: 0 auto 6px; padding: 10px 14px; border: 1px solid var(--sh-line, var(--line)); border-radius: 12px; background: var(--sh-tint, rgba(255, 122, 0, 0.09)); font-size: 13.5px; line-height: 1.5; color: var(--ink); }
.coach-demo[hidden] { display: none; }

/* ---------- the plan bar on the coach page ---------- */
.coach-bar { max-width: 860px; width: 100%; margin: 0 auto 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.coach-bar[hidden] { display: none; }
.coach-plan { padding: 5px 12px; border-radius: 999px; background: var(--sh-tint, rgba(255, 122, 0, 0.09)); font-size: 12.5px; font-weight: 600; color: var(--accent); }
.coach-tools { display: contents; }
.coach-chip { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border: 1px solid var(--sh-line, var(--line)); border-radius: 999px; background: var(--paper); font: inherit; font-size: 13px; color: var(--ink-soft); cursor: pointer; transition: border-color 140ms ease, color 140ms ease; }
.coach-chip:hover, .coach-chip:focus-visible, .coach-chip[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }
.coach-chip--link { margin-left: auto; }
.coach-chip[hidden] { display: none; }
.coach-chip--locked { opacity: 0.55; }
.coach-panel { max-width: 860px; width: 100%; margin: 0 auto 12px; padding: 14px 16px; border: 1px solid var(--sh-line, var(--line)); border-radius: 14px; background: var(--paper); }
.coach-panel[hidden] { display: none; }
.coach-panel label { display: block; margin-bottom: 8px; font-size: 13.5px; color: var(--ink-soft); }
.coach-panel textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--sh-line, var(--line)); border-radius: 10px; background: var(--paper); font: inherit; font-size: 14.5px; line-height: 1.5; color: var(--ink); resize: vertical; }
.coach-panel-row { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.coach-panel-status { font-size: 13px; color: var(--ink-soft); }
.coach-chat-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 10px; font: inherit; font-size: 14px; text-align: left; color: var(--ink); cursor: pointer; }
.coach-chat-row:hover, .coach-chat-row:focus-visible { background: var(--sh-tint, rgba(255, 122, 0, 0.09)); }
.coach-chat-row em { font-style: normal; font-size: 12px; color: var(--ink-soft); white-space: nowrap; }
.coach-chat-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- the plans page ---------- */
.plans { padding: 28px var(--pad, 24px) 72px; }
.plans > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.plans-head h1 { margin: 0; font-size: clamp(28px, 3.4vw, 42px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.08; }
.plans-head p { margin: 10px 0 0; max-width: 620px; font-size: 16px; line-height: 1.55; color: var(--ink-soft); }
.plans-note { margin-top: 18px; padding: 12px 16px; border: 1px solid var(--sh-line, var(--line)); border-radius: 12px; background: var(--sh-tint, rgba(255, 122, 0, 0.09)); font-size: 14.5px; }
.plans-note[hidden] { display: none; }
.plans-loading { color: var(--ink-soft); }
.plans-grid { margin-top: 30px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.plans-foot { margin-top: 26px; font-size: 13.5px; color: var(--ink-soft); }

/* a plan card: a soft white card, the plan name, one line about it, a big light price, and a black pill button */
.plan-card { display: flex; flex-direction: column; border: 1px solid var(--sh-line, var(--line)); border-radius: 24px; background: var(--paper); transition: box-shadow 200ms ease, transform 200ms ease; }
.plan-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(17, 17, 17, 0.1); }
.plan-top { padding: 32px 28px 8px; }
.plan-name { margin: 0; font-size: clamp(22px, 2vw, 28px); font-weight: 500; letter-spacing: -0.04em; color: var(--ink-soft); }
.plan-blurb { margin: 8px 0 0; min-height: 64px; font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
.plan-price { margin: 22px 0 0; display: flex; align-items: baseline; gap: 6px; }
.plan-amount { font-size: 48px; font-weight: 300; letter-spacing: -0.04em; line-height: 1; color: var(--ink); }
.plan-per { font-size: 16px; font-weight: 500; color: var(--ink-soft); }
.plan-feats { margin: 0; padding: 18px 28px 6px; list-style: none; flex: 1 1 auto; }
.plan-feats li { position: relative; padding: 7px 0 7px 26px; font-size: 14px; line-height: 1.45; color: var(--ink); }
.plan-feats li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 14px; height: 14px; border-radius: 50%; background: var(--sh-tint, rgba(255, 122, 0, 0.12)); }
.plan-feats li::after { content: ""; position: absolute; left: 7px; top: 14px; width: 4px; height: 7px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(40deg); }
.plan-feats li.is-off { color: var(--ink-soft); opacity: 0.55; }
.plan-feats li.is-off::before { background: transparent; }
.plan-feats li.is-off::after { display: none; }
.plan-cta { display: flex; padding: 14px 24px 26px; }
.plan-btn { display: flex; align-items: center; justify-content: center; width: 100%; padding: 11px 24px; border: 2px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--paper); font: inherit; font-size: 14px; text-align: center; cursor: pointer; transition: background 200ms ease, color 200ms ease, border-color 200ms ease; }
.plan-btn:hover, .plan-btn:focus-visible { background: transparent; color: var(--ink); }
.plan-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.plan-btn[disabled], .plan-btn.is-current { background: transparent; color: var(--ink-soft); border-color: var(--sh-line, var(--line)); cursor: default; }
.plan-btn.is-busy { opacity: 0.6; pointer-events: none; }

@media (max-width: 1100px) { .plans-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .plans-grid { grid-template-columns: 1fr; } .plan-blurb { min-height: 0; } }
@media (prefers-reduced-motion: reduce) { .plan-card, .plan-btn, .coach-chip { transition: none; } }

/* ---------- plan cards: one shared set of rows, so everything lines up across the cards ---------- */
.plans-grid { grid-template-rows: repeat(var(--n, 11), auto); row-gap: 0; column-gap: 18px; align-items: stretch; }
.plan-card { display: grid; grid-row: span var(--n, 11); grid-template-rows: subgrid; row-gap: 0; padding: 32px 28px 26px; }
.plan-card:hover { transform: none; box-shadow: 0 18px 40px rgba(17, 17, 17, 0.1); }
.plan-top { display: contents; }
.plan-feats { display: contents; padding: 0; margin: 0; }
.plan-name { align-self: end; }
.plan-blurb { margin: 8px 0 0; min-height: 0; align-self: start; }
.plan-price { margin: 22px 0 14px; align-self: center; }
.plan-feats li { padding: 8px 0 8px 26px; align-self: start; }
.plan-feats li::before { top: 12px; }
.plan-feats li::after { top: 15px; }
.plan-cta { padding: 16px 0 0; align-self: end; }
@media (max-width: 1100px) { .plans-grid { grid-template-rows: none; } .plan-card { grid-row: auto; grid-template-rows: none; display: flex; flex-direction: column; } .plan-top { display: block; } .plan-feats { display: block; flex: 1 1 auto; } }

/* ---------- pricing page: billing switch, credits, the library pass ---------- */
.pr-bar { display: flex; justify-content: center; margin: 8px auto 4px; }
.pr-toggle { display: inline-flex; padding: 5px; border: 1px solid var(--sh-line, var(--line)); border-radius: 999px; background: var(--paper); }
.pr-toggle button { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 22px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: 15px; font-weight: 500; color: var(--ink-soft); cursor: pointer; transition: background 160ms ease, color 160ms ease; }
.pr-toggle button:hover { color: var(--ink); }
.pr-toggle button.is-on { background: #111; color: #fff; }
.pr-save { padding: 2px 9px; border-radius: 999px; background: var(--accent); color: #111; font-size: 12px; font-weight: 600; }
.pr-save:empty { display: none; }
.plan-sub { margin: 6px 0 0; font-size: 13.5px; color: var(--ink-soft); }
.plan-feats li.is-credits { font-weight: 600; color: var(--ink); }
.plan-card.is-pick { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.pr-pass { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-top: 28px; padding: clamp(22px, 3vw, 36px); border: 1px solid var(--sh-line, var(--line)); border-radius: 20px; background: #f6f6f6; }
.pr-pass[hidden] { display: none; }
.pr-kicker { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.pr-pass h2 { margin: 0; font-size: clamp(24px, 2.6vw, 34px); font-weight: 500; letter-spacing: -0.03em; }
.pr-pass p { margin: 8px 0 0; max-width: 56ch; font-size: 15.5px; line-height: 1.55; color: var(--ink-soft); }
.pr-pass .pr-pass-line { font-size: 14px; }
.pr-pass-buy { display: grid; gap: 12px; justify-items: end; }
.pr-pass-buy .plan-price { margin: 0; }
.pr-faq { max-width: 1180px; margin: clamp(44px, 6vw, 80px) auto 0; }
.plans > .pr-faq { max-width: 1180px; }
.pr-faq h2 { margin: 0 0 clamp(20px, 3vw, 36px); text-align: center; font-size: clamp(26px, 3vw, 38px); font-weight: 500; letter-spacing: -0.03em; }
.pr-faq details { border-top: 1px solid var(--sh-line, var(--line)); border-radius: 0; }
.pr-faq details:last-of-type { border-bottom: 1px solid var(--sh-line, var(--line)); }
.pr-faq details[open] { border-top-color: transparent; border-radius: 12px; background: #f4f4f5; }
.pr-faq details[open] + details { border-top-color: transparent; }
.pr-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; font-size: 17px; letter-spacing: -0.01em; cursor: pointer; list-style: none; border-radius: 12px; outline: none; transition: color 160ms ease; }
.pr-faq summary::-webkit-details-marker { display: none; }
.pr-faq summary:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.pr-faq summary::after { content: ""; flex: 0 0 auto; width: 9px; height: 9px; border-right: 1.5px solid var(--ink-soft); border-bottom: 1.5px solid var(--ink-soft); transform: rotate(45deg) translateY(-2px); transition: transform 240ms ease, border-color 160ms ease; }
.pr-faq summary:hover { color: var(--accent); }
.pr-faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); border-color: var(--ink); }
.pr-faq details > div { padding: 2px 20px 22px; }
.pr-faq details p { margin: 0; max-width: none; font-size: 14.5px; line-height: 1.65; color: var(--ink-soft); }

/* the plan cards stay short; the full comparison is a table inside the first question */
.plan-blurb { min-height: 0; }
.plan-feats { padding: 14px 28px 4px; }
.plan-top { padding-bottom: 4px; }
.pr-table-wrap { overflow-x: auto; margin: 4px 0 0; }
.pr-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 14px; }
.pr-table thead th { padding: 14px 16px; text-align: left; font-size: 15px; font-weight: 500; border-bottom: 1px solid var(--sh-line, var(--line)); }
.pr-table tbody th, .pr-table tbody td { padding: 11px 16px; text-align: left; font-weight: 400; border-bottom: 1px solid var(--sh-line, var(--line)); }
.pr-table tbody th { color: var(--ink); width: 34%; }
.pr-table tbody td { color: var(--ink); }
.pr-table .pr-sec td { padding: 9px 16px; background: #ebebec; font-size: 13px; font-weight: 600; color: var(--ink); }
.pr-table .is-pro { background: rgba(255, 122, 0, 0.08); }
.pr-table thead .is-pro { border-top-left-radius: 12px; border-top-right-radius: 12px; }
.pr-table .pr-sec td { background: #ebebec; }
.pr-yes { color: var(--ink); vertical-align: middle; }
.pr-no { color: var(--ink-soft); opacity: 0.6; }

/* the library pass: the same card as the plans, laid out across the page */
.pr-pass.plan-card { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; margin-top: 18px; padding: 28px; background: var(--paper); }
.pr-pass.plan-card:hover { transform: none; box-shadow: none; }
.pr-pass .plan-blurb { margin-top: 8px; max-width: 46ch; }
.pr-pass .plan-sub { margin-top: 6px; }
.pr-pass .pr-pass-buy { display: flex; align-items: center; gap: 24px; }
.pr-pass .plan-price { margin: 0; }
.pr-pass .plan-btn { width: auto; min-width: 150px; }
@media (max-width: 700px) { .pr-pass.plan-card { flex-direction: column; align-items: flex-start; } .pr-pass .pr-pass-buy { flex-wrap: wrap; } }

/* every card keeps the same height whether prices are monthly or yearly */
.plan-sub { min-height: 40px; margin: 6px 0 0; }
.plan-amount { white-space: nowrap; }
.plan-price { min-height: 56px; align-items: baseline; }
.plan-blurb { min-height: 88px; }


/* ---------- the rest of the pricing page: what is free, packages, the full comparison ---------- */
.plan-feats li b { font-weight: 600; }
.pr-block { max-width: 1180px; margin: clamp(48px, 6vw, 84px) auto 0; }
.pr-block h2 { margin: 0 0 10px; font-size: clamp(26px, 3vw, 38px); font-weight: 500; letter-spacing: -0.03em; }
.pr-block-lede { margin: 0 0 24px; max-width: 64ch; font-size: 15.5px; line-height: 1.6; color: var(--ink-soft); }
.pr-free { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.pr-free li { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--sh-line, var(--line)); border-radius: 16px; background: var(--paper); }
.pr-free b { font-size: 15px; font-weight: 600; }
.pr-free span { font-size: 13.5px; line-height: 1.45; color: var(--ink-soft); }
.packs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pack-card { display: flex; flex-direction: column; padding: 26px 26px 22px; border: 1px solid var(--sh-line, var(--line)); border-radius: 22px; background: var(--paper); }
.pack-card h3 { margin: 0; font-size: 20px; font-weight: 500; color: var(--ink-soft); letter-spacing: -0.02em; }
.pack-credits { margin: 14px 0 0; font-size: 15px; color: var(--ink-soft); }
.pack-credits b { font-size: 38px; font-weight: 300; letter-spacing: -0.03em; color: var(--ink); }
.pack-price { margin: 6px 0 0; font-size: 22px; font-weight: 500; }
.pack-price small { font-size: 13px; font-weight: 400; color: var(--ink-soft); }
.pack-note { margin: 12px 0 18px; flex: 1 1 auto; font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); }
.pack-card .plan-cta { padding: 0; }
.pr-block .pr-table-wrap { border: 1px solid var(--sh-line, var(--line)); border-radius: 18px; background: var(--paper); }
@media (max-width: 900px) { .pr-free, .packs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .pr-free, .packs-grid { grid-template-columns: 1fr; } }


/* plan tiles: just the plan, one line, the price and the button; a tile lights up under the pointer, none is picked in advance */
.plan-card, .plan-card.is-pick { border-color: var(--sh-line, var(--line)); box-shadow: none; }
.plan-card { transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease; }
.plan-card:hover, .plan-card:focus-within { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 14px 34px rgba(255, 122, 0, 0.12); }
.plan-blurb { min-height: 0; }
.plan-cta { padding-top: 20px; }

/* the comparison: a title per group that opens and closes its rows */
.pr-cmp-bar { display: flex; justify-content: flex-end; margin: 0 0 10px; }
.pr-expand { height: 36px; padding: 0 16px; border: 1.5px solid var(--accent); border-radius: 999px; background: transparent; font: inherit; font-size: 14px; font-weight: 500; color: var(--accent); cursor: pointer; transition: background 140ms ease, color 140ms ease; }
.pr-expand:hover { background: var(--accent); color: #111; }
.pr-table .is-pro, .pr-table thead .is-pro { background: none; }
.pr-table thead th { text-align: left; }
.pr-table .pr-sec td { padding: 0; background: #f4f4f5; }
.pr-sec-btn { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 15px 16px; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); text-align: left; cursor: pointer; }
.pr-sec-btn:hover { color: var(--accent); }
.pr-sec-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.pr-sec-btn i { width: 9px; height: 9px; margin-right: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform 200ms ease; }
.pr-grp.is-open .pr-sec-btn i { transform: rotate(45deg); }
.pr-grp:not(.is-open) .pr-row { display: none; }
@media (prefers-reduced-motion: reduce) { .plan-card, .pr-sec-btn i { transition: none; } }


/* the comparison keeps the look it had before: aligned columns, a grey band for each title, a line under each row */
.pr-table { table-layout: fixed; min-width: 640px; }
.pr-table thead th { padding: 14px 16px; text-align: left; font-size: 15px; font-weight: 500; }
.pr-table thead th:first-child { width: 34%; }
.pr-table .pr-sec td { padding: 0; background: #ebebec; }
.pr-sec-btn { padding: 9px 16px; font-size: 13px; }
.pr-sec-btn i { width: 8px; height: 8px; margin-right: 4px; }
.pr-grp .pr-row th, .pr-grp .pr-row td { padding: 11px 16px; text-align: left; font-weight: 400; border-bottom: 1px solid var(--sh-line, var(--line)); }
.pr-grp .pr-row th { color: var(--ink); }

.pr-sub { margin: 30px 0 4px; font-size: 18px; font-weight: 550; letter-spacing: -0.01em; }
.pr-sub-note { margin: 0 0 14px; max-width: 70ch; font-size: 14px; line-height: 1.55; color: var(--ink-soft); }
.pr-block .pr-sub:first-of-type { margin-top: 6px; }

/* the button at the bottom of every plan tile and package tile is centred */
.plan-cta, .pack-card .plan-cta { display: flex; justify-content: center; align-items: flex-end; }
.pack-card .plan-btn { width: auto; min-width: 200px; }
.pack-card .plan-cta { align-self: stretch; width: 100%; justify-content: center; }

/* the package tiles light up under the pointer, like the plan tiles */
.pack-card { transition: border-color 160ms ease, box-shadow 160ms ease; }
.pack-card:hover, .pack-card:focus-within { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 14px 34px rgba(255, 122, 0, 0.12); }
@media (prefers-reduced-motion: reduce) { .pack-card { transition: none; } }

/* ---- the coach as a chat screen: the conversation scrolls, the message box stays at the bottom ---- */
html[data-ui="app"] main.coach { height: calc(100vh - var(--sh-top, 60px)); height: calc(100dvh - var(--sh-top, 60px)); min-height: 0; overflow: hidden; padding-top: 0; padding-bottom: 0; }
html[data-ui="app"] .coach-head { flex: none; padding: 0; min-height: 0; }
html[data-ui="app"] .coach-head > div { display: none; }
html[data-ui="app"] .coach-head .coach-new { position: absolute; top: 10px; right: var(--pad); z-index: 5; }
html[data-ui="app"] .coach-bar, html[data-ui="app"] .coach-demo, html[data-ui="app"] .coach-panel { flex: none; }
html[data-ui="app"] .coach-body { flex: 1 1 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; padding: 8px 0 12px; scroll-behavior: auto; }
html[data-ui="app"] .coach-body::before { content: ""; margin-top: auto; }
html[data-ui="app"] #coachThread { flex: none; }
html[data-ui="app"] .coach-compose { flex: none; position: static; background: var(--paper); padding: 10px 0 14px; }
html[data-ui="app"] .coach-form { align-items: center; border-radius: 22px; padding: 8px 8px 8px 8px; box-shadow: none; }
html[data-ui="app"] .coach-form textarea { padding: 9px 0; }
html[data-ui="app"] .coach-note { margin-top: 8px; }
.coach-col { display: flex; flex-direction: column; min-width: 0; max-width: min(680px, 92%); }
.coach-msg--me .coach-col { align-items: flex-end; }
.coach-col .coach-bubble { max-width: none; }
.coach-acts { display: flex; align-items: center; gap: 2px; margin-top: 4px; opacity: 0.6; transition: opacity 140ms ease; }
.coach-msg:hover .coach-acts, .coach-acts:focus-within { opacity: 1; }
.coach-act { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 0 !important; border-radius: 8px; background: transparent !important; color: var(--ink-soft) !important; cursor: pointer; min-height: 0 !important; }
.coach-act:hover, .coach-act:focus-visible { background: color-mix(in srgb, var(--ink) 7%, transparent) !important; color: var(--ink) !important; transform: none !important; }
.coach-act.is-done { color: #1d6b2c !important; }
.coach-menu { position: fixed; z-index: 1000; min-width: 220px; padding: 5px; border: 1px solid var(--sh-line, var(--line)); border-radius: 12px; background: #fff; box-shadow: none; }
.coach-menu button { display: block; width: 100%; padding: 8px 10px; border: 0 !important; border-radius: 8px; background: transparent !important; color: #111 !important; font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; min-height: 0 !important; height: auto !important; justify-content: flex-start; }
.coach-menu button:hover { background: rgba(0, 0, 0, 0.06) !important; color: #111 !important; transform: none !important; }
.coach-attached { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.coach-attached span { padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.28); font-size: 12.5px; }
/* the plus button and its menu */
.coach-plus { position: relative; flex: none; }
.coach-plusbtn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--sh-line, var(--line)) !important; border-radius: 50%; background: transparent !important; color: var(--ink-soft) !important; cursor: pointer; min-height: 0 !important; }
.coach-plusbtn:hover, .coach-plusbtn[aria-expanded="true"] { background: var(--accent) !important; border-color: var(--accent) !important; color: #fff !important; }
.coach-plusmenu { position: absolute; left: 0; bottom: 50px; z-index: 30; width: 240px; padding: 5px; border: 1px solid var(--sh-line, var(--line)); border-radius: 12px; background: #fff; box-shadow: none; }
.coach-plusmenu[hidden] { display: none; }
.coach-plusmenu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0 !important; border-radius: 8px; background: transparent !important; color: #111 !important; font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; min-height: 0 !important; height: auto !important; justify-content: flex-start; }
.coach-plusmenu button:hover:not(:disabled) { background: rgba(0, 0, 0, 0.06) !important; color: #111 !important; transform: none !important; }
.coach-plusmenu button:disabled { opacity: 0.45; cursor: default; }
.coach-plusnote { margin: 4px 10px 6px; font-size: 12.5px; line-height: 1.45; color: #666; }
.coach-plusnote a { text-decoration: underline; }
.coach-files { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.coach-files[hidden] { display: none; }
.coach-file { display: inline-flex; align-items: center; gap: 8px; max-width: 240px; padding: 4px 6px 4px 4px; border: 1px solid var(--sh-line, var(--line)); border-radius: 12px; background: var(--paper); font-size: 12.5px; }
.coach-file img { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; }
.coach-file i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: color-mix(in srgb, var(--accent, #ff7a00) 14%, transparent); color: var(--accent, #ff7a00); font-style: normal; font-size: 10px; font-weight: 700; }
.coach-file b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.coach-file button { position: relative; flex: none; width: 20px; height: 20px; border: 0 !important; border-radius: 50%; background: transparent !important; cursor: pointer; min-height: 0 !important; padding: 0 !important; }
.coach-file button::before, .coach-file button::after { content: ""; position: absolute; left: 5px; top: 9px; width: 10px; height: 1.5px; background: #555; transform: rotate(45deg); }
.coach-file button::after { transform: rotate(-45deg); }
html[data-ui="app"] .coach-starters:not([hidden]) { margin: auto 0; }
.coach-avatar { background: #fff !important; border: 1px solid var(--sh-line, var(--line)); overflow: hidden; }
.coach-avatar img { width: 100%; height: 100%; object-fit: contain; display: block; }
.coach-avatar { background: none !important; border: 0 !important; border-radius: 0; overflow: visible; }
/* plus menu, a little more finished */
.coach-plusmenu { width: 290px; padding: 6px; border-radius: 16px; bottom: 52px; }
.coach-plusmenu button { gap: 12px; padding: 8px 10px; border-radius: 12px; }
.coach-pi { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; }
.coach-pi--pdf { background: #fdeee0; color: #e8650a; }
.coach-pi--img { background: #e8f0fd; color: #2f6fd6; }
.coach-pt { display: grid; gap: 1px; min-width: 0; }
.coach-pt b { font-size: 14px; font-weight: 600; color: #111; }
.coach-pt small { font-size: 12px; color: #777; font-weight: 400; }
.coach-plusbtn { width: 38px; height: 38px; transition: transform 180ms ease, background 140ms ease; }
.coach-plusbtn[aria-expanded="true"] { transform: rotate(45deg); }
.coach-pi, .coach-pi--pdf, .coach-pi--img { background: none; color: #444; width: 28px; height: 28px; border-radius: 0; }
/* the question options sit at the top, so the plus menu never covers them */
html[data-ui="app"] .coach-body:has(.coach-starters:not([hidden]))::before { display: none; }
html[data-ui="app"] .coach-starters:not([hidden]) { margin: 12px 0 auto; }

/* the coach menu: top right, under the top bar. The old row of chips is replaced by it. */
html[data-ui="app"] main.coach { position: relative; }
html[data-ui="app"] .coach-bar { display: none !important; }
html[data-ui="app"] .coach-head .coach-new { display: none !important; }
.coach-topmenu-wrap { position: absolute; top: 12px; right: var(--pad); z-index: 40; }
html[data-ui="public"] .coach-topmenu-wrap { display: none; }
.coach-topbtn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--sh-line, var(--line)) !important; border-radius: 11px; background: var(--paper) !important; color: var(--ink) !important; cursor: pointer; min-height: 0 !important; }
.coach-topbtn:hover, .coach-topbtn[aria-expanded="true"] { background: var(--accent) !important; border-color: var(--accent) !important; color: #fff !important; }
.coach-topmenu { position: absolute; top: 46px; right: 0; width: 260px; padding: 6px; border: 1px solid var(--sh-line, var(--line)); border-radius: 14px; background: #fff; box-shadow: none; }
.coach-topmenu[hidden] { display: none; }
.coach-tm-plan { margin: 2px 4px 6px; padding: 7px 10px; border-radius: 10px; background: color-mix(in srgb, var(--accent, #ff7a00) 10%, transparent); color: var(--accent, #ff7a00); font-size: 12.5px; font-weight: 600; line-height: 1.35; }
.coach-tm-sep { height: 1px; margin: 5px 6px; background: var(--sh-line, var(--line)); }
.coach-topmenu button, .coach-topmenu a { display: flex; align-items: center; gap: 11px; width: 100%; box-sizing: border-box; padding: 9px 10px; border: 0 !important; border-radius: 10px; background: transparent !important; color: #111 !important; font: inherit; font-size: 14px; text-align: left; text-decoration: none !important; cursor: pointer; min-height: 0 !important; height: auto !important; justify-content: flex-start; }
.coach-topmenu button:hover, .coach-topmenu a:hover { background: rgba(0, 0, 0, 0.06) !important; color: #111 !important; transform: none !important; }
.coach-topmenu svg { flex: none; color: #555; }
.coach-topmenu span { flex: 1 1 auto; min-width: 0; }
.coach-topmenu em { flex: none; font-style: normal; font-size: 11.5px; color: #777; }
.coach-topmenu .is-locked { opacity: 0.55; }
html[data-ui="app"] main.coach { padding-top: 56px; }

/* the options row under the top bar, with the three dots (no border) at its end */
html[data-ui="app"] main.coach { padding-top: 0; }
.coach-subnav { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 calc(-1 * var(--pad)) 8px; padding: 0 var(--pad); min-height: 48px; border-bottom: 1px solid var(--sh-line, var(--line)); background: var(--paper); }
html[data-ui="public"] .coach-subnav { display: none; }
.coach-sub-items { display: flex; align-items: center; gap: 4px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.coach-sub-items button, .coach-sub-items a { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border: 0 !important; border-radius: 10px; background: transparent !important; color: var(--ink-soft) !important; font: inherit; font-size: 14px; text-decoration: none !important; cursor: pointer; min-height: 0 !important; white-space: nowrap; }
.coach-sub-items button:hover, .coach-sub-items a:hover { background: color-mix(in srgb, var(--ink) 6%, transparent) !important; color: var(--ink) !important; transform: none !important; }
.coach-sub-items svg { flex: none; }
.coach-sub-items em { font-style: normal; font-size: 11.5px; opacity: 0.7; }
.coach-sub-items .is-locked { opacity: 0.55; }
.coach-topmenu-wrap { position: relative; top: auto; right: auto; flex: none; }
.coach-topbtn { width: 36px; height: 36px; border: 0 !important; border-radius: 50%; background: transparent !important; color: var(--ink) !important; }
.coach-topbtn:hover, .coach-topbtn[aria-expanded="true"] { background: color-mix(in srgb, var(--ink) 8%, transparent) !important; border: 0 !important; color: var(--ink) !important; }
.coach-topmenu { top: 42px; z-index: 60; }

/* full screen: the chat uses the whole width, and the message box sits right at the bottom */
html[data-ui="app"] main.coach { padding-bottom: 0 !important; }
html[data-ui="app"] .coach-body, html[data-ui="app"] .coach-compose, html[data-ui="app"] .coach-bar, html[data-ui="app"] .coach-panel { max-width: none; }
html[data-ui="app"] .coach-compose { padding: 8px 0 10px; }
html[data-ui="app"] .coach-note { margin: 6px 4px 0; }
html[data-ui="app"] .coach-col { max-width: min(1000px, 90%); }
html[data-ui="app"] .coach-starters { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
/* demo notice: a small pill in the options row */
html[data-ui="app"] .coach-demo { flex: none; display: inline-flex; align-items: center; height: 26px; max-width: none; width: auto; margin: 0 4px 0 auto; padding: 0 12px; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--accent, #ff7a00) 12%, transparent); color: var(--accent, #ff7a00); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
html[data-ui="app"] .coach-demo[hidden] { display: none; }
.coach-sub-items { flex: 1 1 auto; }
