/* Public assistant: the server-rendered answers remain available offline. */
.ask-layout { display: grid; gap: 32px; margin-bottom: 32px; }
.ask-panel { border: 1px solid rgb(var(--hairline)); border-radius: 12px; background: rgb(var(--surface)); }
.ask-head { padding: 20px; border-bottom: 1px solid rgb(var(--hairline)); }
.ask-head h2 { margin-bottom: 8px; }
.ask-head p, .ask-note { color: rgb(var(--ink-2)); font-size: 14px; margin-bottom: 0; }
.ask-log { display: flex; flex-direction: column; gap: 16px; padding: 20px; max-height: 480px; overflow-y: auto; overscroll-behavior: contain; }
.ask-starters { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.ask-starter { min-height: 64px; padding: 12px; border: 1px solid rgb(var(--control-border)); border-radius: 8px; background: rgb(var(--surface)); color: rgb(var(--ink)); text-align: left; font-size: 14px; }
.ask-starter:hover { background: rgb(var(--surface-sunken)); }
.ask-form { border-top: 1px solid rgb(var(--hairline)); padding: 20px; }
.ask-form label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 500; }
.ask-row { display: flex; gap: 12px; align-items: end; }
.ask-input { flex: 1; min-width: 0; min-height: 88px; padding: 12px; border: 1px solid rgb(var(--control-border)); border-radius: 8px; resize: vertical; color: rgb(var(--ink)); background: rgb(var(--surface)); }
.ask-send { min-height: 44px; padding: 12px 16px; border: 0; border-radius: 8px; background: rgb(var(--accent)); color: rgb(var(--on-accent)); font-size: 14px; font-weight: 500; }
.ask-send:disabled { opacity: .6; cursor: default; }
.ask-note { margin-top: 12px; }
.ask-user { margin-left: 32px; padding: 12px 16px; border-radius: 12px; background: rgb(var(--surface-sunken)); white-space: pre-wrap; }
.ask-reply { line-height: 26px; }
.ask-reply p { margin-bottom: 12px; }
.ask-error, .ask-degraded { color: rgb(var(--danger)); }
.ask-retry { min-height: 44px; border: 1px solid rgb(var(--control-border)); border-radius: 8px; color: rgb(var(--ink)); background: rgb(var(--surface)); padding: 8px 12px; }
.ask-thinking { color: rgb(var(--ink-3)); }
.ask-sources { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.ask-sources a { display: inline-flex; min-height: 44px; align-items: center; }
@media (max-width: 640px) {
  .ask-head, .ask-log, .ask-form { padding: 16px; }
  .ask-starters { grid-template-columns: minmax(0,1fr); }
}
.ask-msg { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 26px; }
.ask-msg.you { margin-left: 32px; padding: 12px 16px; border-radius: 12px; background: rgb(var(--surface-sunken)); }
.ask-msg.bloom { color: rgb(var(--ink)); }
.ask-msg.bloom .ask-starter { margin-top: 12px; }
.ask-sources { padding-left: 20px; }

/* ===== Life on the public pages (docs/design/LIFE_2026-11.md) =====
   Linked from the public templates after life.css: product shots, the home
   showcases and commitments band, the Features stage showcases. */

/* Public pages follow the system theme (no html.dark class), but life.css
   only defines its dark area tokens under html.dark. Mirror them here until
   life.css carries this media block itself; values are life.css's. */
@media (prefers-color-scheme: dark) {
  html:not(.light) {
    --area-learn: 130 175 225; --area-learn-soft: 49 54 72; --area-learn-ink: 150 188 230;
    --area-apply: 176 160 245; --area-apply-soft: 57 51 76; --area-apply-ink: 189 175 247;
    --area-money: 130 200 160; --area-money-soft: 49 58 61; --area-money-ink: 132 201 162;
    --area-week: 232 182 92; --area-week-soft: 67 55 49; --area-week-ink: 232 182 92;
    --area-family: 225 150 180; --area-family-soft: 66 49 64; --area-family-ink: 230 167 192;
  }
}

/* Product shots: each theme gets its own capture. */
.shot-img { display: block; width: 100%; height: auto; }
.shot-dark, html.dark .shot-light { display: none; }
html.dark .shot-dark { display: block; }
@media (prefers-color-scheme: dark) {
  html:not(.light) .shot-light { display: none; }
  html:not(.light) .shot-dark { display: block; }
}
.shot-frame { position: relative; overflow: hidden; border: 1px solid rgb(var(--hairline)); border-radius: 14px; background: rgb(var(--surface)); box-shadow: var(--shadow-lift); }
.shot-browser { padding-top: 30px; border-radius: 16px; background: rgb(var(--surface-sunken)); }
.shot-browser::before { content: ""; position: absolute; top: 11px; left: 14px; width: 8px; height: 8px; border-radius: 50%; background: rgb(var(--ink-3) / .3); box-shadow: 14px 0 0 rgb(var(--ink-3) / .3), 28px 0 0 rgb(var(--ink-3) / .3); }
.shot-browser .shot-img { border-top: 1px solid rgb(var(--hairline)); }
.shot-phone { padding: 0; border: 7px solid rgb(24 21 31); border-radius: 34px; box-shadow: 0 0 0 1px rgb(var(--hairline)), var(--shadow-lift); }
.shot-cap { margin-top: 14px; font-size: 13px; line-height: 18px; color: rgb(var(--ink-3)); }

/* Home: one plan seen from both sides, then four area showcases. */
.life-tour .tour-intro { max-width: 640px; }
.tour-stage { position: relative; margin-bottom: 40px; }
.tour-stage .shot-browser { width: min(900px, 82%); }
.tour-stage .shot-phone { position: absolute; right: 5%; bottom: -36px; width: 260px; }
.tour-stage .shot-cap { max-width: 60%; }
.showcase { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: center; padding-block: 64px; border-top: 1px solid rgb(var(--hairline)); }
.showcase:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.showcase:nth-child(even) .showcase-copy { order: 2; }
.showcase-area { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font-size: 15px; font-weight: 600; color: rgb(var(--area-ink)); }
.showcase h3 { margin-bottom: 12px; font-size: 28px; line-height: 34px; letter-spacing: -.022em; text-wrap: balance; }
.showcase-copy > p:last-child { max-width: 46ch; margin: 0; font-size: 17px; line-height: 27px; color: rgb(var(--ink-2)); }
/* The area's soft plate rests under each shot, like the week card's paper. */
.showcase { --plate: var(--area) / .12; }
html.dark .showcase { --plate: var(--area-soft); }
@media (prefers-color-scheme: dark) { html:not(.light) .showcase { --plate: var(--area-soft); } }
.showcase-shot .shot-frame { margin: 0 22px 22px 0; box-shadow: 22px 22px 0 0 rgb(var(--plate)), 22px 22px 0 1px rgb(var(--area) / .2), var(--shadow-lift); }
.showcase:nth-child(even) .showcase-shot .shot-frame { margin: 0 0 22px 22px; box-shadow: -22px 22px 0 0 rgb(var(--plate)), -22px 22px 0 1px rgb(var(--area) / .2), var(--shadow-lift); }

/* The one bold band: three commitments on deep ink. */
.promise-band { --ink: 246 243 250; --ink-2: 203 197 214; padding-block: 88px; background: rgb(31 27 39); color: rgb(var(--ink-2)); }
html.dark .promise-band { background: rgb(40 35 50); border-block: 1px solid rgb(var(--hairline)); }
@media (prefers-color-scheme: dark) { html:not(.light) .promise-band { background: rgb(40 35 50); } }
.promise-band h2 { max-width: 24ch; margin-bottom: 48px; font-size: 34px; line-height: 40px; }
.promise-band .trust-row { width: auto; margin: 0; gap: 48px; }
.promise-band .trust-item { padding-top: 0; border: 0; }
.promise-band .trust-item::before { content: none; }
.promise-band .trust-item .life-tile { display: grid; margin: 0 0 20px; color: rgb(var(--tile)); background: rgb(var(--tile) / .14); box-shadow: inset 0 0 0 1px rgb(var(--tile) / .22); }
.promise-band .trust-item:nth-child(1) { --tile: 150 188 230; }
.promise-band .trust-item:nth-child(2) { --tile: 230 167 192; }
.promise-band .trust-item:nth-child(3) { --tile: 189 175 247; }
.promise-band .trust-item strong { color: rgb(var(--ink)); }
.promise-band .trust-item > span:last-child { font-size: 15px; line-height: 24px; color: rgb(var(--ink-2)); }

/* How it works: each step in the hue of the part of Bloom it opens. */
.public-steps li:nth-child(1) { --area: var(--area-family); --area-soft: var(--area-family-soft); --area-ink: var(--area-family-ink); }
.public-steps li:nth-child(2) { --area: var(--area-apply); --area-soft: var(--area-apply-soft); --area-ink: var(--area-apply-ink); }
.public-steps li:nth-child(3) { --area: var(--area-week); --area-soft: var(--area-week-soft); --area-ink: var(--area-week-ink); }
.page-public-index .public-steps li { box-shadow: inset 0 3px 0 rgb(var(--area)), var(--shadow-card); }
.page-public-index .public-steps li::before { width: 44px; height: 44px; border-radius: 12px; color: rgb(var(--area-ink)); background: rgb(var(--area-soft)); box-shadow: inset 0 0 0 1px rgb(var(--area) / .18); font-variant-numeric: tabular-nums; }

/* Plans: the grades a plan covers, as segments; Application is the featured card. */
.plan-years { max-width: 176px; height: 6px; margin: 2px 0 18px; --meter-color: var(--accent); }
:is(.page-public-index, .page-public-pricing) .price-card.featured { background: rgb(var(--accent-subtle)); }

/* Features: each stage is a showcase; its items a compact numbered list. */
.stage-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; margin-bottom: 16px; }
.page-public-document .stage-head .pricing-intro { margin: 0; }
.stage-head .life-tile { margin-bottom: 18px; }
.stage-head .calm-eyebrow { color: rgb(var(--area-ink)); }
.stage-shot { min-width: 0; }
.stage-shot.is-phone { justify-self: center; width: 250px; }
.page-public-document .stage-show { padding-block: 32px; }
.page-public-document .stage-show .stage-items { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; padding-inline: 32px; }
.page-public-document .stage-items > .value-card { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 14px; align-content: start; padding: 22px 0 20px; border: 0; border-top: 1px solid rgb(var(--hairline)); border-radius: 0; background: none; box-shadow: none; }
.page-public-document .stage-items > .value-card > * { grid-column: 2; }
.page-public-document .stage-items > .value-card > .value-number { grid-column: 1; grid-row: 1 / span 3; }
.page-public-document .stage-items > .value-card h2 { margin: 5px 0 6px; font-size: 17px; }
.page-public-document .value-number { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; font-variant-numeric: tabular-nums; letter-spacing: 0; color: rgb(var(--area-ink)); background: rgb(var(--area-soft)); }
/* Doors and the stage track carry the same hues as the stages they open. */
.page-doors .calm-door { display: inline-flex; align-items: center; gap: 8px; }
.page-doors .calm-door::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgb(var(--dot, var(--accent))); }
.page-doors .calm-door:nth-child(1) { --dot: var(--area-learn); }
.page-doors .calm-door:nth-child(2), .page-doors .calm-door:nth-child(7) { --dot: var(--area-family); }
.page-doors .calm-door:nth-child(3) { --dot: var(--area-week); }
.page-doors .calm-door:nth-child(4) { --dot: var(--ink-3); }
.page-doors .calm-door:nth-child(5) { --dot: var(--area-apply); }
.page-doors .calm-door:nth-child(6) { --dot: var(--area-money); }
.page-public-document .stage-step:nth-child(-n+2) { border-top-color: rgb(var(--area-learn)); }
.page-public-document .stage-step:nth-child(3) { border-top-color: rgb(var(--area-family)); }
.page-public-document .stage-step:nth-child(4) { border-top-color: rgb(var(--area-apply)); }
/* The My Week ledger: the 168 hours as one stacked bar, in the app's colours. */
.ledger-bar { display: flex; gap: 2px; height: 10px; margin: 16px 0 4px; }
.ledger-bar span { border-radius: 3px; }
.ledger-bar .is-sleep { flex: 56; } .ledger-bar .is-school { flex: 35; } .ledger-bar .is-activity { flex: 12; }
.ledger-bar .is-family, .ledger-bar .is-study { flex: 5; } .ledger-bar .is-left { flex: 55; background: rgb(var(--surface-sunken)); }
.week-ledger .is-sleep { --swatch: var(--ink-3); } .week-ledger .is-school { --swatch: var(--area-learn); }
.week-ledger .is-activity { --swatch: var(--area-apply); } .week-ledger .is-family { --swatch: var(--area-family); }
.week-ledger .is-study { --swatch: var(--area-week); }
.ledger-bar [class] { background: rgb(var(--swatch, var(--surface-sunken))); }
.week-ledger-row[class*=" is-"] > span:first-child::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: rgb(var(--swatch)); vertical-align: 1px; }
.week-ledger-row[class*=" is-"] small { margin-left: 18px; }

/* FAQ, counselors and sign-up share the tile. */
.faq-aside .life-tile, .price-card > .life-tile { margin-bottom: 14px; }
.faq-aside .life-tile { background: rgb(var(--surface)); box-shadow: inset 0 0 0 1px rgb(var(--area) / .18); }
.counselor-value-grid .value-card { box-shadow: inset 0 3px 0 rgb(var(--area)), var(--shadow-card); }
.auth-tile { margin-bottom: 14px; }

@media (max-width: 960px) {
  .showcase, .showcase:nth-child(even), .stage-head { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .showcase:nth-child(even) .showcase-copy { order: 0; }
  .page-public-document .stage-show .stage-items { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-inline: 0; }
}
@media (max-width: 760px) {
  .tour-stage .shot-browser { width: 100%; }
  .tour-stage .shot-phone { position: relative; right: auto; bottom: auto; width: 48%; margin: -96px 4% 0 auto; }
  .tour-stage .shot-cap { max-width: none; }
  .showcase { padding-block: 44px; }
  .showcase h3 { font-size: 24px; line-height: 30px; }
  .showcase-shot .shot-frame, .showcase:nth-child(even) .showcase-shot .shot-frame { margin: 0 12px 12px 0; box-shadow: 12px 12px 0 0 rgb(var(--plate)), 12px 12px 0 1px rgb(var(--area) / .2), var(--shadow-card); }
  .promise-band { padding-block: 56px; }
  .promise-band h2 { margin-bottom: 32px; font-size: 26px; line-height: 32px; }
  .promise-band .trust-row { gap: 32px; }
  .page-public-document .stage-show .stage-items { grid-template-columns: minmax(0, 1fr); }
  .stage-shot.is-phone { width: 220px; }
}
