:root {
  --primary: #5144d7; --primary-dark: #3c30ae; --primary-light: #877ef0;
  --accent: #168477; --accent-dark: #11675d; --dark: #172338;
  --gray-600: #58677b; --gray-500: #64748b; --bg-subtle: #f3f6fa;
  --radius: 14px; --fh-line: #dce3ed; --fh-muted: #59697d;
}
*,*::before,*::after { box-sizing: border-box; }
html { scroll-padding-top: 6rem; }
body { margin: 0; }
.skip { position: absolute; top: -80px; left: 16px; background: #172338; color: #fff; padding: 12px 16px; z-index: 2000; }
.skip:focus { top: 8px; }
body { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important; color: #172338; background: #f5f7fb; font-size: 16px; }
h1,h2,h3,h4,h5,h6,button,input,select,textarea { font-family: inherit !important; }
h1,h2,h3 { letter-spacing: -.035em; }
a,button,input,select,textarea { -webkit-tap-highlight-color: transparent; }
:is(a,button,input,select,textarea,[tabindex]):focus-visible { outline: 3px solid #6557e8 !important; outline-offset: 4px; }
button,.btn { min-height: 44px; }
.fh-wrap { max-width: 1220px; padding-inline: clamp(20px,4vw,48px); margin-inline: auto; }
.fh-header { height: 88px; display: flex; align-items: center; background: #fff; border-bottom: 1px solid var(--fh-line); position: relative; z-index: 1050; }
.fh-header-inner { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.fh-brand { display: inline-flex; align-items: center; gap: 10px; color: #19253a !important; text-decoration: none; font-size: 20px; font-weight: 750; letter-spacing: -.04em; flex-shrink: 0; }
.fh-brand img { width: 38px; height: 38px; object-fit: contain; }
.fh-brand span small { display: block; text-transform: uppercase; letter-spacing: .2em; color: #7068c1; font-size: 10px; margin-top: 1px; }
.fh-nav { display: flex; align-items: center; gap: 28px; }
.fh-nav a { color: #4e5b6e; font-size: 14px; font-weight: 600; text-decoration: none; }
.fh-nav a[aria-current] { color: #5144d7; }
.fh-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 22px; background: #5144d7; border: 1px solid #5144d7; border-radius: 9px; color: white !important; font: 600 15px/1.3 inherit; text-decoration: none; cursor: pointer; min-height: 48px; }
.fh-button:hover { background: #3f34b5; color: #fff; }
.fh-button.secondary { background: transparent; color: #29374a !important; border-color: #cbd4e3; }
.fh-header .fh-button { padding: 11px 17px; min-height: 44px; }
.fh-menu { display: none; background: #fff; border: 1px solid #cbd4e3; color: #29374a; padding: 10px 14px; border-radius: 8px; font-size: 14px; }
.fh-footer { background: #172338; color: #bac8d8; padding: 44px 0; margin: 0; }
.fh-footer .fh-brand { color: white !important; }
.fh-footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: start; }
.fh-footer p { color: #bac8d8; margin: 14px 0 0; font-size: 14px; max-width: 38ch; }
.fh-footer nav { display: flex; flex-wrap: wrap; gap: 16px 24px; max-width: 560px; padding-top: 12px; }
.fh-footer a { color: #dce5ef; text-decoration: none; font-size: 14px; }
.fh-home { background: #fff; }
.fh-home section { padding: 88px 0; }
.fh-hero { background: #f2f3fb; overflow: hidden; }
.fh-hero-grid { display: grid; grid-template-columns: 1.04fr 1fr; gap: 64px; align-items: center; }
.fh-eyebrow { text-transform: uppercase; letter-spacing: .16em; color: #5144d7; font-size: 12px; font-weight: 750; margin-bottom: 20px; }
.fh-hero h1 { font-size: clamp(42px,5.4vw,72px); font-weight: 750; line-height: 1.06; color: #19253a; margin: 0 0 24px; }
.fh-hero h1 span { color: #5144d7; }
.fh-lead { font-size: 19px; line-height: 1.7; color: #536278; max-width: 48ch; }
.fh-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 16px; }
.fh-fine { color: #607087; font-size: 14px; line-height: 1.7; }
.fh-hero-visual { position: relative; padding: 0 0 32px 24px; }
.fh-hero-photo { display: block; height: 520px; width: 100%; object-fit: cover; border-radius: 24px; }
.fh-hero-caption { position: absolute; bottom: 0; left: 0; background: #fff; border: 1px solid #dce3ed; border-radius: 14px; box-shadow: 0 10px 35px #24305212; padding: 22px 24px; max-width: 310px; }
.fh-hero-caption strong { font-size: 20px; color: #172338; display: block; margin-bottom: 5px; }
.fh-hero-caption p { font-size: 14px; line-height: 1.6; color: #59697d; margin: 0; }
.fh-section-head { max-width: 700px; margin-bottom: 34px; }
.fh-section-head h2 { font-size: clamp(30px,3.5vw,46px); font-weight: 700; color: #19253a; margin: 0 0 16px; line-height: 1.15; }
.fh-section-head p { color: #59697d; font-size: 18px; line-height: 1.7; }
.fh-features { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.fh-feature { padding: 28px; background: #fff; border: 1px solid #dce3ed; border-radius: 14px; }
.fh-feature .bi { color: #5144d7; background: #efedfc; display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 10px; font-size: 22px; margin-bottom: 24px; }
.fh-feature h3 { font-size: 22px; font-weight: 650; margin: 0 0 12px; color: #19253a; }
.fh-feature p { color: #59697d; font-size: 16px; line-height: 1.7; margin: 0; }
.fh-feature a { display: inline-block; margin-top: 22px; color: #5144d7; font-size: 14px; font-weight: 650; }
.fh-quiet { background: #f5f7fb; }
.fh-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.fh-panel { background: #172338; border-radius: 20px; padding: 36px; color: #fff; }
.fh-panel h3 { color: #fff; font-size: 26px; margin-bottom: 20px; }
.fh-panel ul { list-style: none; margin: 0; padding: 0; }
.fh-panel li { display: flex; justify-content: space-between; gap: 20px; padding: 17px 0; border-top: 1px solid #ffffff24; font-size: 16px; }
.fh-panel li span { color: #b5c8dc; font-size: 14px; text-align: right; }
.fh-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px; }
.fh-step { padding-top: 24px; border-top: 2px solid #dce3ed; }
.fh-step h3 { font-size: 23px; margin-bottom: 12px; color: #19253a; }
.fh-step p { color: #59697d; line-height: 1.7; }
.fh-home details { border-top: 1px solid #dce3ed; padding: 20px 0; }
.fh-home summary { font-size: 19px; color: #19253a; font-weight: 600; cursor: pointer; }
.fh-home details p { margin: 16px 0 0; max-width: 75ch; color: #59697d; line-height: 1.7; }
.fh-final { text-align: center; background: #efedfc; }
.fh-final .fh-section-head { margin-inline: auto; }
.fh-final .fh-actions { justify-content: center; }
/* Shared public pages: preserve content and forms, replace the old presentation. */
body.fh-public { padding-top: 0 !important; }
.fh-public .page-hero,.fh-public .page-hero-bold,.fh-public .auth-enterprise-hero { background: #f2f3fb !important; color: #19253a !important; padding-top: 64px !important; }
.fh-public .page-hero :is(h1,h2),.fh-public .page-hero-bold :is(h1,h2) { color: #19253a !important; }
.fh-public [class*="enterprise"],.fh-public [class*="auth-panel"] { box-shadow: none !important; }
.fh-public .auth-enterprise-aside { background: #172338 !important; border-radius: 18px !important; color: #fff; }
.fh-public .auth-enterprise-aside :is(h1,h2,h3,strong) { color: #fff !important; }
.fh-public .auth-enterprise-aside p { color: #c2cede !important; }
.fh-public input,.fh-public textarea,.fh-public select { border-color: #c9d3df !important; border-radius: 8px !important; min-height: 46px; font-size: 16px !important; }
.fh-public .btn-primary { background: #5144d7 !important; border-color: #5144d7 !important; border-radius: 8px !important; box-shadow: none !important; }
/* One application shell across all existing features. */
.dashboard-body { background: #f4f6fa !important; }
.dashboard-body .dash-sidebar { width: 240px !important; background: #fff !important; border-right: 1px solid #dce3ed !important; box-shadow: none !important; display: flex; flex-direction: column; }
.dashboard-body .dash-sidebar-header { padding: 28px 22px !important; border-bottom: 1px solid #e7ebf2; }
.dashboard-body .dash-logo-link { color: #1e293b !important; font-size: 21px !important; font-style: normal !important; letter-spacing: -.04em; }
.dashboard-body .dash-nav { flex: 1; overflow-y: auto; padding: 18px 12px !important; }
.dashboard-body .dash-nav-label { color: #68788c !important; font-size: 11px !important; font-weight: 700; letter-spacing: .12em; margin: 18px 12px 10px !important; }
.dashboard-body .dash-nav a { padding: 12px 14px !important; font-size: 14px !important; color: #536278 !important; border-radius: 8px; margin: 3px 0; }
.dashboard-body .dash-nav li.active a,.dashboard-body .dash-nav a[aria-current] { background: #efedfc !important; color: #5144d7 !important; border: 0 !important; }
.dashboard-body .dash-nav a:hover { background: #f4f6fa; color: #172338 !important; }
.dashboard-body .dash-sidebar-footer { padding: 18px !important; background: #fff !important; border-top: 1px solid #e7ebf2; }
.dashboard-body .dash-main { margin-left: 240px !important; min-width: 0; }
.dashboard-body .dash-topbar { background: #fff !important; border-bottom: 1px solid #dce3ed; padding: 22px 32px !important; box-shadow: none !important; min-height: 88px; }
.dashboard-body .dash-topbar h1 { font-size: clamp(22px,2vw,28px) !important; font-weight: 700 !important; line-height: 1.25; }
.dashboard-body .dash-topbar p { font-size: 14px !important; color: #637187 !important; margin-bottom: 0; }
.dashboard-body .dash-content { padding: 32px !important; max-width: 1560px; margin-inline: auto; }
.dashboard-body [data-aos],.fh-public [data-aos] { opacity: 1 !important; transform: none !important; transition: none !important; }
.dashboard-body section.section { padding: 24px 0 !important; }
.dashboard-body .h-100,.dashboard-body .dash-card { height: auto !important; }
.dashboard-body .nutrition-card,.dashboard-body .feature-card-enterprise { padding: 24px !important; }
.fh-workspace-section { margin: 20px 0; background: #fff; border: 1px solid #dce3ed; border-radius: 12px; }
.fh-workspace-section > summary { padding: 20px 24px; font-size: 17px; font-weight: 650; cursor: pointer; color: #29374a; }
.fh-workspace-section > .row { padding: 12px 24px 24px; margin: 0; }
.fh-setup-details > summary { cursor: pointer; padding: 18px 0; color: #5144d7; font-size: 14px; font-weight: 650; }
.dashboard-body :is(.card,.dash-stat-card,.dash-chart-card,.dash-card,.workout-card,.nutrition-card,[class*="enterprise-card"]) { box-shadow: none !important; border: 1px solid #dce3ed !important; border-radius: 13px !important; background: #fff; }
.dashboard-body :is(.card,.dash-stat-card,.dash-chart-card,.dash-card):hover { transform: none !important; box-shadow: none !important; }
.dashboard-body [class*="gradient-"] { background: #efedfc !important; color: #5144d7 !important; }
.dashboard-body :is(.dash-stat-icon,.dash-avatar) { border-radius: 10px !important; }
.dashboard-body :is(.btn-primary,.btn-gradient,[class*="btn-primary"]) { background: #5144d7 !important; color: white !important; box-shadow: none !important; border-color: #5144d7 !important; border-radius: 8px !important; }
.dashboard-body :is(input,select,textarea) { border-radius: 8px !important; border-color: #c9d3df !important; font-size: 16px !important; min-height: 44px; }
.dashboard-body .dash-stat-card h3 { font-size: 28px !important; color: #172338 !important; font-weight: 650 !important; }
.dashboard-body [class*="eyebrow"],.dashboard-body [class*="kicker"] { color: #665ac9 !important; font-size: 11px !important; letter-spacing: .1em; }
.dashboard-body .dash-stat-card small { color: #5f6f84 !important; font-size: 12px !important; }
.dashboard-body .dash-quote { background: #eaf3f1 !important; border: 0 !important; color: #28665d !important; border-radius: 10px; }
.dashboard-body [class*="orb"],.dashboard-body [class*="shimmer"] { display: none !important; }
.fh-backdrop { display: none; }
body.dark-mode { --fh-line: #334155; background: #101b2b; color: #e2e8f0; }
body.dark-mode .dash-sidebar,body.dark-mode .dash-topbar,body.dark-mode .dash-sidebar-footer,body.dark-mode :is(.card,.dash-stat-card,.dash-chart-card,.dash-card,.workout-card,.nutrition-card) { background: #192638 !important; border-color: #334155 !important; }
body.dark-mode .dash-main { background: #101b2b !important; }
body.dark-mode .dash-topbar h1,body.dark-mode .dash-stat-card h3 { color: #e8edf4 !important; }
@media(max-width:1050px) { .fh-nav { gap: 18px; } .fh-hero-grid { gap: 32px; } .fh-hero-photo { height: 460px; } }
@media(max-width:900px) {
 .fh-menu { display: inline-flex; } .fh-header { height: 76px; }
 .fh-nav { display: none; position: absolute; top: 76px; left: 0; right: 0; padding: 24px; background: #fff; border-bottom: 1px solid #dce3ed; box-shadow: 0 15px 25px #17233812; }
 .fh-nav.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 18px; }
 .fh-nav a { padding: 8px 0; } .fh-nav .fh-button { padding: 12px; }
 .fh-hero-grid,.fh-split { grid-template-columns: 1fr; } .fh-hero-visual { max-width: 640px; width: 100%; }
 .fh-features { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .dashboard-body .dash-main { margin-left: 0 !important; }
 .dashboard-body .dash-sidebar { transform: translateX(-100%) !important; z-index: 1080 !important; transition: transform .18s; }
 .dashboard-body.fh-nav-open .dash-sidebar { transform: translateX(0) !important; }
 .dashboard-body .dash-topbar { padding: 18px 20px !important; }
 .dashboard-body .dash-content { padding: 22px 18px !important; }
 .dashboard-body .dash-toggle-sidebar { display: inline-flex !important; }
 .fh-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; background: #101c35aa; border: 0; z-index: 1070; }
}
@media(max-width:600px) {
 .fh-home section { padding: 58px 0; } .fh-hero-grid { gap: 34px; }
 .fh-features,.fh-steps { grid-template-columns: 1fr; } .fh-hero-photo { height: 390px; }
 .fh-hero-visual { padding-left: 14px; } .fh-hero-caption { padding: 18px; max-width: 260px; }
 .fh-lead { font-size: 17px; } .fh-panel { padding: 24px; }
 .fh-footer-inner { flex-direction: column; } .fh-footer nav { gap: 16px; }
 .dashboard-body .dash-topbar-right { gap: 8px; } .dashboard-body .dash-topbar-right .dash-avatar { display: none; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Beta readability and first recorded action. */
[hidden] { display: none !important; }
.fh-first-checkin { padding: 24px; margin-bottom: 24px; border: 1px solid #c8c0f4; border-radius: 14px; background: #f0edff; }
.fh-first-checkin h2 { font-size: clamp(22px, 3vw, 30px); margin: 6px 0 12px; }
.fh-first-checkin p { max-width: 60ch; color: #3f4b61; }
.dashboard-body .dash-stat-card small, .dashboard-body .dash-overview-metric > span, .dashboard-body .dash-status-label { font-size: 14px !important; color: #526175 !important; }
.dashboard-body .dash-content { min-height: 0 !important; }
body.dark-mode .fh-first-checkin { background: #242445; border-color: #7366ba; }
body.dark-mode .fh-first-checkin p { color: #e2e8f0; }

/* The sidebar is fixed. Body siblings must not shrink the main workspace. */
.dashboard-body { display: block !important; }
.dashboard-body .dash-topbar { gap: 12px; }
.dashboard-body .dash-greeting { min-width: 0; }
.capture-mobile-dock { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1030; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; background: #fff; border-top: 1px solid #dce3ed; box-shadow: 0 -4px 20px #17233812; }
.capture-mobile-dock-copy { min-width: 0; font-size: 14px; }
.capture-mobile-dock-copy span,.capture-mobile-dock-copy strong { display: block; }
@media(max-width:767px) { body:has(.capture-mobile-dock) .dash-content { padding-bottom: 110px !important; } .dashboard-body .dash-topbar .dash-greeting p { display: none; } }
