/* Healthy Athlete — shared tool styles */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700&family=Barlow:wght@400;500;600&display=swap');

* { box-sizing: border-box; }
body { margin: 0; background: #F7F1E3; color: #1B2A41; font-family: 'Barlow', Arial, sans-serif; }

.hap-header { border-bottom: 3px solid #1B2A41; padding: 14px 20px; }
.hap-header-row { display: flex; flex-direction: column; gap: 2px; max-width: 640px; margin: 0 auto; }
.hap-wordmark { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 18px; letter-spacing: .08em; }
.hap-tagline { font-size: 12px; color: #5C6B72; letter-spacing: .02em; }
.hap-main { max-width: 640px; margin: 0 auto; padding: 28px 20px 64px; }

.hap-h1 { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 36px; line-height: 1.05; text-transform: uppercase; margin: 0 0 14px; }
.hap-em { font-style: normal; border-bottom: 5px solid #E8833A; }
.hap-lede { font-size: 17px; line-height: 1.5; color: #3A4A52; margin: 0 0 22px; }
.hap-footnote { font-size: 12.5px; color: #8A958C; margin-top: 20px; line-height: 1.5; }

.hap-progress { display: flex; gap: 6px; margin-bottom: 22px; }
.hap-progress span { flex: 1; height: 8px; border-radius: 4px; background: #E3E1D8; transition: background .25s; }
.hap-progress .done { background: #1B2A41; }
.hap-progress .now { background: #E8833A; }

.hap-card { background: #fff; border: 1px solid #E3E1D8; border-radius: 12px; padding: 22px; }
.hap-qcount { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #8A958C; margin-bottom: 6px; }
.hap-qlabel { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 26px; margin: 0 0 8px; line-height: 1.1; }
.hap-qnote { font-size: 13.5px; color: #8A958C; margin: 0 0 14px; line-height: 1.4; }
.hap-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.hap-chip { font-family: 'Barlow', sans-serif; font-weight: 500; font-size: 15px; padding: 12px 16px; border-radius: 999px; border: 2px solid #1B2A41; background: #F7F1E3; color: #1B2A41; cursor: pointer; text-align: left; }
.hap-back { margin-top: 18px; background: none; border: none; color: #5C6B72; font-size: 14px; cursor: pointer; font-family: 'Barlow', sans-serif; padding: 0; }

.hap-loading { text-align: center; padding-top: 80px; }
.hap-loadbar { display: flex; gap: 6px; max-width: 200px; margin: 0 auto 18px; }
.hap-loadbar span { flex: 1; height: 10px; border-radius: 5px; animation: hapPulse 1.2s ease-in-out infinite; }
.hap-loadbar span:nth-child(2) { animation-delay: .2s; }
.hap-loadbar span:nth-child(3) { animation-delay: .4s; }
.hap-loadbar span:nth-child(4) { animation-delay: .6s; }
.hap-loadbar span:nth-child(5) { animation-delay: .8s; }
@keyframes hapPulse { 0%,100% { opacity: .25 } 50% { opacity: 1 } }
.hap-loadtext { color: #5C6B72; font-size: 15px; }

.hap-badge { display: inline-block; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 16px; letter-spacing: .08em; text-transform: uppercase; color: #F7F1E3; padding: 8px 14px; border-radius: 6px; margin-bottom: 14px; }
.hap-eyebrow { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; color: #C4621F; margin-bottom: 6px; }
.hap-section { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: #5C6B72; margin: 18px 0 10px; }
.hap-roadnote { font-size: 14px; line-height: 1.5; color: #5C6B72; margin: 0 0 12px; }

.hap-dark { background: #1B2A41; color: #F7F1E3; border-radius: 12px; padding: 18px 20px; margin-bottom: 14px; }
.hap-dark-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 15px; margin-bottom: 10px; }
.hap-dark-item { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; padding: 4px 0; line-height: 1.4; }
.hap-dot { width: 8px; height: 8px; border-radius: 4px; flex-shrink: 0; margin-top: 6px; background: #E8833A; }

.hap-bsi { background: #FDF3F3; border: 2px solid #D64545; border-radius: 12px; padding: 16px 18px; margin-bottom: 14px; }
.hap-bsi-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 16px; color: #D64545; margin-bottom: 6px; }
.hap-bsi p { font-size: 14.5px; line-height: 1.5; color: #3A4A52; margin: 0; }

.hap-stat { display: flex; align-items: center; gap: 16px; background: #fff; border: 2px solid #D9692A; border-radius: 12px; padding: 16px 18px; margin-bottom: 6px; }
.hap-stat-num { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 44px; color: #D9692A; line-height: 1; flex-shrink: 0; }
.hap-stat p { font-size: 14.5px; line-height: 1.45; color: #3A4A52; margin: 0; }

.hap-item { display: flex; background: #fff; border: 1px solid #E3E1D8; border-radius: 12px; overflow: hidden; margin-bottom: 10px; }
.hap-item.locked { opacity: .55; }
.hap-band { width: 10px; flex-shrink: 0; }
.hap-item-body { padding: 14px 16px; flex: 1; }
.hap-item-top { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; flex-wrap: wrap; }
.hap-item-label { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 15px; letter-spacing: .06em; color: #8A958C; }
.hap-item-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 20px; line-height: 1.1; }
.hap-item-detail { font-size: 14.5px; line-height: 1.45; color: #3A4A52; margin: 2px 0 8px; }
.hap-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.hap-tag { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: #F0EFE8; color: #3A4A52; }

.hap-legend { display: flex; flex-wrap: wrap; gap: 12px; margin: 4px 0 14px; }
.hap-legend div { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #5C6B72; }
.hap-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

.hap-gate { background: #fff; border: 2px solid #1B2A41; border-radius: 12px; padding: 22px; margin: 18px 0; }
.hap-gate-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 26px; text-transform: uppercase; margin: 0 0 8px; }
.hap-gate p { font-size: 15px; line-height: 1.5; color: #3A4A52; margin: 0 0 14px; }
.hap-email { width: 100%; padding: 13px 14px; font-size: 16px; border: 1.5px solid #C9C7BC; border-radius: 8px; margin-bottom: 10px; font-family: 'Barlow', sans-serif; background: #F7F1E3; }
.hap-btn { display: block; width: 100%; text-align: center; text-decoration: none; padding: 14px 18px; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 19px; letter-spacing: .05em; text-transform: uppercase; background: #D9692A; color: #FFFFFF; border: none; border-radius: 8px; cursor: pointer; }
.hap-btn:hover { background: #C4621F; }
.hap-fine { font-size: 12px; color: #8A958C; margin-top: 10px !important; }
.hap-ok { background: #FBEBDD; border: 1px solid #D9692A; color: #1B2A41; border-radius: 10px; padding: 14px 16px; font-size: 14.5px; line-height: 1.5; margin: 14px 0; }
.hap-err { background: #D64545; color: #F7F1E3; border-radius: 10px; padding: 14px 16px; font-size: 14.5px; line-height: 1.5; margin: 10px 0; }
.hidden { display: none; }

/* ——— Forms, concierge, tiers, and app pages ——— */
.hap-field { margin: 0 0 14px; }
.hap-field > label, .hap-label { display: block; font-weight: 600; font-size: 14.5px; margin: 0 0 6px; color: #1B2A41; }
.hap-input, .hap-select, .hap-textarea { width: 100%; padding: 12px 14px; font-size: 16px; border: 1.5px solid #C9C7BC; border-radius: 8px; font-family: 'Barlow', sans-serif; background: #FFFFFF; color: #1B2A41; }
.hap-textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
.hap-input:focus, .hap-select:focus, .hap-textarea:focus { outline: 2px solid #E8833A; outline-offset: 1px; }
.hap-row { display: flex; gap: 10px; }
.hap-row > * { flex: 1; min-width: 0; }
.hap-check { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid #EEECE4; font-size: 15.5px; line-height: 1.4; cursor: pointer; color: #1B2A41; }
.hap-check:last-child { border-bottom: none; }
.hap-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: #D9692A; flex-shrink: 0; }
.hap-chip.on { background: #1B2A41; color: #FFFFFF; }
.hap-chips.tight { margin-top: 0; }
.hap-chip small { display: block; font-size: 13px; font-weight: 400; opacity: .8; margin-top: 2px; }
.hap-actions { display: flex; gap: 12px; margin-top: 20px; align-items: center; }
.hap-actions .hap-btn { flex: 1; }
.hap-actions .hap-back { margin-top: 0; }
.hap-error-text { color: #B3261E; font-size: 14px; margin: 10px 0 0; min-height: 1px; }
.hap-note { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 16px; }
.hap-avatar { width: 38px; height: 38px; border-radius: 19px; background: #1B2A41; color: #F7F1E3; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 15px; letter-spacing: .04em; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hap-avatar.orange { background: #D9692A; color: #FFFFFF; }
.hap-bubble { background: #FFFFFF; border: 1px solid #E3E1D8; border-radius: 12px; padding: 12px 14px; font-size: 15px; line-height: 1.5; color: #3A4A52; }
.hap-coach { display: flex; gap: 14px; align-items: center; margin: 0 0 16px; }
.hap-coach .hap-avatar { width: 56px; height: 56px; border-radius: 28px; font-size: 20px; }
.hap-coach-name { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 24px; line-height: 1.1; }
.hap-coach-cred { font-size: 14px; color: #5C6B72; }
.hap-tiers { display: grid; gap: 12px; margin: 6px 0 4px; }
.hap-tier { background: #FFFFFF; border: 1px solid #E3E1D8; border-radius: 12px; padding: 18px; position: relative; }
.hap-tier.rec { border: 2px solid #D9692A; }
.hap-tier-flag { position: absolute; top: -11px; left: 16px; background: #D9692A; color: #FFFFFF; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 4px; }
.hap-tier-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.hap-tier-name { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 22px; text-transform: uppercase; }
.hap-tier-price { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 24px; white-space: nowrap; }
.hap-tier-price span { font-size: 14px; font-weight: 600; color: #5C6B72; }
.hap-tier p { font-size: 14.5px; line-height: 1.45; color: #3A4A52; margin: 0 0 14px; }
.hap-tier .hap-btn { font-size: 17px; padding: 12px 14px; }
.hap-tier.rec .hap-btn { background: #D9692A; }
.hap-tier:not(.rec) .hap-btn { background: #1B2A41; }
.hap-rules { background: #FFFFFF; border: 1px solid #E3E1D8; border-radius: 12px; padding: 16px 18px; margin: 14px 0; }
.hap-rules li { font-size: 14.5px; line-height: 1.45; color: #3A4A52; margin: 0 0 6px; }
.hap-rules ul { margin: 0; padding-left: 20px; }
.hap-ask { background: #FFFFFF; border: 1px solid #E3E1D8; border-radius: 12px; margin-top: 18px; overflow: hidden; }
.hap-ask-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; cursor: pointer; font-weight: 600; font-size: 15px; color: #1B2A41; background: none; border: none; width: 100%; text-align: left; font-family: 'Barlow', sans-serif; }
.hap-ask-head .hap-avatar { width: 30px; height: 30px; font-size: 13px; }
.hap-ask-body { padding: 0 16px 16px; }
.hap-log { max-height: 320px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.hap-msg { padding: 10px 13px; border-radius: 12px; font-size: 15px; line-height: 1.45; max-width: 88%; white-space: pre-wrap; }
.hap-msg.user { align-self: flex-end; background: #1B2A41; color: #FFFFFF; border-bottom-right-radius: 4px; }
.hap-msg.ai { align-self: flex-start; background: #F3EFE6; color: #1B2A41; border-bottom-left-radius: 4px; }
.hap-msg.alert { align-self: stretch; max-width: 100%; background: #FDF3F3; border: 1px solid #D64545; color: #1B2A41; }
.hap-send { display: flex; gap: 8px; }
.hap-send .hap-input { flex: 1; }
.hap-send .hap-btn { width: auto; padding: 0 18px; font-size: 16px; }
.hap-demo { background: #FFF4D6; border: 1px solid #E8C547; color: #5A4A10; border-radius: 10px; padding: 10px 14px; font-size: 13.5px; line-height: 1.45; margin: 0 0 16px; }
.hap-table { width: 100%; border-collapse: collapse; font-size: 14px; background: #FFFFFF; }
.hap-table th, .hap-table td { text-align: left; padding: 7px 9px; border-bottom: 1px solid #EEECE4; vertical-align: top; }
.hap-table th { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 13px; color: #5C6B72; background: #F7F4EC; }
.hap-pill { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: #F0EFE8; color: #3A4A52; margin: 0 6px 6px 0; }
.hap-pill.warn { background: #FDF3F3; color: #B3261E; }
.hap-pill.ok { background: #FBEBDD; color: #8A3F10; }
