/* Public SHAI only. No account, commerce or provider assets import this layer. */
:root { --max: 1240px; --focus: #945323; }
html { scroll-padding-top: 100px; }
body { background: #f5f5ef; }
.wrap { width: min(var(--max), calc(100% - 64px)); }
.topbar { background: #fbfcf8; }
.topbar-inner { min-height: 76px; }
.brand-copy strong { font: 700 1.65rem/1.2 system-ui, sans-serif; letter-spacing: -.06em; }
.brand-mark { display: none; }
.desktop-nav button { font-weight: 600; }
.button, .ask-button { border-radius: 10px; }
.hero-home { background: #123a31; color: #fcfcf6; }
.home-hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding-block: 64px; }
.hero-product-name { font: 700 .875rem/1.5 system-ui, sans-serif; letter-spacing: .15em; margin: 0 0 8px; }
.hero-product-name span { font-size: .65em; vertical-align: super; }
.hero-product-expansion { font-size: .75rem; color: #b7cec3; }
.hero-home .home-hero-copy h1 { font: 600 clamp(2.6rem, 5vw, 4.6rem)/1.04 system-ui, sans-serif; letter-spacing: -.055em; margin: 24px 0; }
.hero-home .home-hero-copy h1 em { color: #e6bc90; font: inherit; }
.hero-home .lead { color: #e0e9e1; font-size: 1.125rem; max-width: 44ch; }
.hero-scope { color: #c8d9ce; font-size: .875rem; max-width: 44ch; }
.hero-home .hero-actions { margin-top: 24px; }
.hero-home .hero-actions .primary { background: #e8bd91; color: #15382d; border-color: #e8bd91; }
.hero-home .hero-actions .primary:hover { background: #f3d2ad; color: #15382d; }
.hero-home .hero-actions .hero-secondary { border-color: #7f9f90; color: #fcfcf6; background: transparent; }
.hero-home .hero-actions .hero-secondary:hover { background: #285547; }
.home-hero-copy { min-width: 0; }
.home-hero-copy .terrain-art { display: block; position: static; width: min(100%, 410px); height: auto; max-height: 125px; margin-top: 24px; opacity: .9; }
.hero-launchpad { background: #fcfcf6; border: 1px solid #d6ddce; border-radius: 20px; padding: 30px; box-shadow: 0 20px 60px #001b1426; color: #193b32; }
.hero-launchpad label { font-size: 1.4rem; line-height: 1.3; letter-spacing: -.025em; }
.hero-launchpad textarea { background: #f2f4ec; border-radius: 10px; min-height: 108px; }
.hero-launchpad .navigator-submit { border-radius: 10px; }
.launch-links { gap: 8px; }
.hero-launchpad .launch-link { border: 1px solid #d5dfd0; border-radius: 8px; background: #f5f7f0; padding: 12px; min-height: 48px; }
.hero-launchpad .launch-link:hover { background: #e6ecdf; }
.quiet-start { min-height: 44px; }
.trust-ribbon { border-color: #58796b; color: #dce9df; gap: 16px; padding-block: 20px; }
.trust-ribbon strong { font-weight: 500; }
.trust-tick { color: #e8bd91; }
.section { padding-block: 56px; }
.section-head h2, .library-feature h2, .reality-grid h2 { font-family: system-ui, sans-serif; font-weight: 600; letter-spacing: -.04em; line-height: 1.15; }
.pilot-journeys { gap: 20px; }
.pilot-journey { border: 1px solid #d5dfd0; border-radius: 16px; padding: 26px; background: #fcfdf8; display: flex; flex-direction: column; }
.pilot-journey h3 { font: 650 1.4rem/1.2 system-ui, sans-serif; }
.pilot-journey p { flex: 1; }
.pilot-journey .button { margin-top: 14px; }
.frontdoor-reality { padding-block: 36px; background: #eaf0e5; }
.reality-grid h2 { font-size: 2rem; }
.home-pathways { gap: 20px; }
.home-pathways .card { background: transparent; border: 1px solid #d5dfd0; border-radius: 14px; padding: 24px; }
.home-pathways .card h3 { font: 650 1.3rem/1.3 system-ui, sans-serif; }
.library-feature { background: #e6eddf; }
.frontdoor-trust { background: #fcfcf7; }
.sacred-homes-band { padding-block: 36px; }
.sacred-homes-band h2 { font-size: 1.75rem; }
.home-founder-quote blockquote { font-size: 1.4rem; }
.footer { padding-bottom: 32px; }
.floating-shai { display: inline-flex; align-items: center; justify-content: center; }
/* Reserve document space for the existing fixed launcher without obscuring controls. */
body { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
#shaiInputStatus { margin: 0; font-size: .875rem; }
#shaiInputStatus:empty { display: none; }
.watch-learn-dock { position: static; margin: 16px 32px; max-width: fit-content; }
/* A normal document workspace: no overlay, focus trap or nested scroll area. */
.workspace-heading { padding-block: 48px 24px; background: #eaf0e5; border-bottom: 1px solid #d5dfd0; }
.workspace-heading h1 { font: 650 clamp(2rem, 4vw, 3.5rem)/1.1 system-ui, sans-serif; letter-spacing: -.05em; margin: 12px 0; }
.workspace-heading .lead { margin-bottom: 8px; }
.workspace-heading p { max-width: 66ch; }
.workspace-boundary { color: #4d6256; font-size: .875rem; }
.free-workspace .watch-learn-dock { display: none; }
#workspaceHost { padding-block: 28px 64px; }
#shaiDrawer.open { position: static; transform: none; visibility: visible; width: 100%; max-width: none; height: auto; max-height: none; overflow: visible; padding: 0; border: 0; box-shadow: none; background: transparent; display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.6fr); grid-template-rows: auto auto auto auto auto 1fr; gap: 16px 36px; grid-template-areas: 'head head' 'intro log' 'goals log' 'form log' 'privacy log' '. log'; }
.shai-drawer .drawer-head { position: static; grid-area: head; border-bottom: 1px solid #d5dfd0; padding-bottom: 20px; align-items: center; background: transparent; }
.shai-drawer .drawer-head h2 { font: 650 1.35rem/1.3 system-ui, sans-serif; }
#shaiIntro { grid-area: intro; margin: 0; }
.workspace-pathways { grid-area: goals; }
.workspace-pathways .quick-intents { display: flex; flex-wrap: wrap; overflow: visible; gap: 8px; margin: 0; padding: 0; }
.workspace-pathways .quick-intents button { flex: 1 1 135px; max-width: 100%; min-height: 48px; white-space: normal; text-align: start; padding: 12px; font-size: .875rem; background: #fcfdf8; border: 1px solid #c6d2be; border-radius: 9px; }
.workspace-pathways .quick-intents button:hover { background: #e5eddc; }
.shai-drawer .shai-form { grid-area: form; display: grid; grid-template-columns: minmax(0, 1fr); margin: 12px 0 0; align-self: start; gap: 10px; }
.shai-form label { font-weight: 650; font-size: .9375rem; }
.shai-drawer textarea { width: 100%; min-height: 100px; background: #fcfdf8; }
.shai-drawer .privacy-note { grid-area: privacy; margin: 0; color: #4d6256; }
.shai-drawer .shai-log { grid-area: log; display: flex; flex-direction: column; gap: 20px; overflow: visible; max-height: none; min-height: 400px; border: 0; background: transparent; padding: 0; margin: 0; }
.shai-log > * { min-width: 0; width: 100%; }
.shai-drawer .shai-pathway { background: #fcfdf8; border: 1px solid #d2ddc9; border-radius: 16px; padding: clamp(16px, 3vw, 32px); }
.shai-pathway .pathway-body { max-inline-size: none; }
.shai-pathway .pathway-status { border: 0; border-radius: 8px; background: #eaf1e2; }
.shai-pathway .pathway-body > .pathway-title { font-size: 1.6rem; letter-spacing: -.025em; }
.shai-pathway .pathway-question { gap: 10px; }
.shai-pathway .pathway-question .button { padding: 16px; border-radius: 10px; }
.shai-pathway .pathway-question .button:hover { background: #eaf1e2; border-color: #587b61; }
.shai-pathway .pathway-action { background: #f0f5e9; padding: 22px; border-radius: 12px; }
.shai-pathway [data-pathway-heading] { scroll-margin-top: 100px; }
.shai-pathway .pathway-source { background: #fcfdf8; padding: 12px; border: 1px solid #d2ddc9; border-radius: 8px; }
.shai-pathway .source-boundary { color: #4d6256; font-size: .875rem; }
.shai-pathway .action-preparation { border-left: 3px solid #587b61; padding-inline: 14px; margin-block: 18px; }
.msg { border-radius: 12px; margin: 0; }
.shai-log .msg.user { align-self: flex-end; width: auto; max-width: 90%; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.hero-home :focus-visible { outline-color: #e8bd91; }
.hero-launchpad :focus-visible { outline-color: #945323; }
@media (max-width: 1000px) {
  .home-hero-grid { gap: 32px; }
  .hero-home .home-hero-copy h1 { font-size: clamp(2.6rem, 5vw, 4rem); }
  #shaiDrawer.open { gap: 16px 24px; grid-template-columns: minmax(0, .8fr) minmax(0, 1.3fr); }
}
@media (max-width: 740px) {
  .wrap { width: calc(100% - 32px); }
  .topbar-inner { min-height: 64px; gap: 12px; flex-wrap: wrap; }
  .brand { flex: 1 1 auto; }
  .top-actions { margin: 0; flex-wrap: wrap; gap: 6px; }
  .lang-select { max-width: 122px; }
  .home-hero-grid { grid-template-columns: minmax(0, 1fr); padding-block: 36px; gap: 30px; }
  .hero-home .home-hero-copy h1 { font-size: clamp(2.3rem, 10vw, 3.4rem); }
  .hero-home .lead { font-size: 1rem; }
  .home-hero-copy .terrain-art { display: none; }
  .hero-launchpad { padding: 22px; border-radius: 14px; }
  .hero-launchpad label { font-size: 1.25rem; }
  .trust-ribbon { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .trust-ribbon > div { min-width: 0; }
  .section { padding-block: 36px; }
  .pilot-journeys { gap: 16px; }
  .pilot-journey { padding: 22px; }
  .workspace-heading { padding-block: 28px 16px; }
  #workspaceHost { padding-block: 20px 36px; }
  #shaiDrawer.open { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; grid-template-areas: 'head' 'intro' 'goals' 'form' 'privacy' 'log'; gap: 16px; }
  .shai-drawer .drawer-head { align-items: flex-start; gap: 12px; }
  .drawer-head > div { min-width: 0; }
  .workspace-pathways .quick-intents button { flex: 1 1 120px; }
  .shai-drawer .shai-log { min-height: 0; }
  .shai-pathway .pathway-action { padding: 16px; }
  .shai-pathway .pathway-body > .pathway-title { font-size: 1.35rem; }
  .watch-learn-dock { margin-inline: 16px; max-width: calc(100% - 32px); }
}
/* Reflow with enlarged text and long translations, including RTL. */
#shaiDrawer *, .hero-launchpad, .topbar-inner > *, .pilot-journey { min-width: 0; overflow-wrap: anywhere; }
[dir='rtl'] .action-preparation { border-left: 0; border-right: 3px solid #587b61; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
