/* V31 — launch-candidate polish shared by the public site and both workspaces. */
:root{color-scheme:light}

/* Calm motion, clear keyboard focus and predictable touch targets. */
:where(a,button,input,select,textarea,summary):focus-visible{outline:3px solid #38bdf8!important;outline-offset:3px!important}
:where(button,.button,[role="button"]){touch-action:manipulation}

/* Public site: cleaner final hierarchy, less preview language and smoother rendering. */
.home-page .site-head{height:82px;background:rgba(8,15,36,.94);box-shadow:0 10px 34px rgba(4,12,30,.12)}
.home-page .head-inner{max-width:1280px}
.home-page .site-head nav{gap:27px}
.home-page .site-head nav>a:not(.button){position:relative;padding-block:8px}
.home-page .site-head nav>a:not(.button):after{content:"";position:absolute;right:0;bottom:2px;left:0;height:2px;border-radius:9px;background:#7fb0ff;transform:scaleX(0);transform-origin:center;transition:transform .2s ease}
.home-page .site-head nav>a:not(.button):hover:after,.home-page .site-head nav>a:not(.button).active:after{transform:scaleX(1)}
.home-page .hero{padding-block:72px 82px}
.home-page .hero-copy{max-width:980px}
.home-page .hero-copy h1{max-width:960px;margin-inline:auto}
.home-page #hero-title{transition:opacity .28s cubic-bezier(.2,.7,.2,1)}
.home-page #hero-title.is-headline-changing{opacity:0}
.home-page .hero-headline-stage{display:block;color:inherit}
@media(prefers-reduced-motion:reduce){.home-page #hero-title{transition:none}}
.home-page .hero-desc{max-width:760px}
.home-page .hero-notes span{display:inline-flex;align-items:center;min-height:27px;padding:3px 10px;border:1px solid rgba(255,255,255,.1);border-radius:99px;background:rgba(255,255,255,.04)}
.home-page .product-shell{margin-top:60px;border-color:rgba(142,174,232,.46);box-shadow:0 38px 110px rgba(0,0,0,.42)}
.home-page .section{padding-block:92px}
.home-page .steps article,.home-page .feature,.home-page .tour-controls,.home-page .v25-plan-card{transition:border-color .22s ease,box-shadow .22s ease,transform .22s ease}
.home-page .final-cta{margin-top:16px;margin-bottom:22px;box-shadow:0 28px 75px rgba(23,52,94,.1)}
.home-page .footer{padding-top:72px}
.home-page .footer-bottom{margin-top:12px}
.home-page .experience-copy .eyebrow,.home-page .v25-plan-top b,.home-page .v30-home-tab small,.home-page .v30-home-name>span,.home-page .v30-home-limits span,.home-page .v30-home-side-label,.home-page .v30-home-side>small{font-size:11px!important}
.home-page main>section:not(:first-child),.home-page main>.section{content-visibility:auto;contain-intrinsic-size:800px}

/* Customer workspace: one visual rhythm across old and new modules. */
.panel-body{background:#f3f6fb}
.panel-body .panel-header{background:rgba(255,255,255,.9);backdrop-filter:blur(18px);border-bottom:1px solid #dce5f1}
.panel-body .panel-header h1{letter-spacing:-.45px}
.panel-body #panel-nav button{min-height:44px;font-size:13px}
.panel-body #panel-nav button.active{box-shadow:inset 3px 0 #5b8ef0}
.panel-body #mode-pill{min-height:30px;display:inline-flex;align-items:center;padding-inline:12px}
.panel-body #view{padding-bottom:64px}
.panel-body .notice-card{display:flex;align-items:center;gap:10px;min-height:48px;padding:12px 16px}
.panel-body .notice-card strong{flex:0 0 auto;color:#173f84;font-size:12px}
.panel-body .notice-card span{color:#53657e;font-size:12px;line-height:1.55}
.panel-body :where(.panel-card,.stat,.welcome-card,.v36-integration-hero,.v38-knowledge-hero,.v39-lab-hero){box-shadow:0 12px 36px rgba(23,52,94,.06)}
.panel-body :where(.help,small,.v39-scenario p,.v39-scenario>small){line-height:1.55}

/* Admin workspace: finished product language and a quieter operations surface. */
.admin-body{background:#f3f6fb}
.admin-body .admin-sidebar{box-shadow:12px 0 42px rgba(8,22,48,.06)}
.admin-body .admin-identity em{border-color:#bcd0f3;background:#eaf2ff;color:#1d4ed8}
.admin-body .admin-header{background:rgba(255,255,255,.91);backdrop-filter:blur(18px);border-bottom-color:#dce5f1}
.admin-body .admin-health{box-shadow:0 13px 38px rgba(23,52,94,.055)}
.admin-body #admin-view{padding-bottom:64px}
.admin-body :where(.admin-card,.assistant-card,.connector-card,.admin-table-wrap,.conversation-list){box-shadow:0 10px 30px rgba(23,52,94,.045)}
.admin-body .admin-sidebar nav button{min-height:43px}
.admin-body .admin-page-head{margin-bottom:22px}
.admin-body .admin-page-head p{max-width:720px;line-height:1.65}

@media (hover:hover) and (pointer:fine){
  .home-page .steps article:hover,.home-page .feature:hover,.home-page .tour-controls:hover,.home-page .v25-plan-card:hover{border-color:#abc4ee;box-shadow:0 18px 46px rgba(23,52,94,.1);transform:translateY(-3px)}
  .panel-body :where(.panel-card,.stat){transition:border-color .18s ease,box-shadow .18s ease}.panel-body :where(.panel-card,.stat):hover{border-color:#c5d6ee;box-shadow:0 16px 40px rgba(23,52,94,.08)}
}

@media (max-width:960px){
  .home-page .site-head{height:74px}
  .home-page .site-head nav{gap:4px}
  .home-page .hero{padding-block:52px 60px}
  .home-page .section{padding-block:72px}
  .home-page main>section:not(:first-child),.home-page main>.section{content-visibility:visible;contain-intrinsic-size:none}
}
@media (max-width:700px){
  .home-page .hero{padding-block:40px 46px}
  .home-page .hero-actions{display:grid;grid-template-columns:1fr;width:100%}
  .home-page .hero-actions .button{width:100%}
  .home-page .hero-notes span{padding:0;border:0;background:transparent}
  .home-page .section{padding-block:60px}
  .home-page .final-cta{margin-inline:16px;width:auto;padding:52px 20px}
  .panel-body .notice-card{align-items:flex-start;flex-direction:column;gap:2px}
  .panel-body #view,.admin-body #admin-view{padding-bottom:42px}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto!important}
  *,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}
