/* chirholifts.com: hero layout, the live "try the app" phone, and Try-it links.
   The phone uses the app's Iron & Brass tokens (mobile/src/components/ui/tokens.ts). */
:root {
  --d-bg: #0B0A08; --d-surface: #15130F; --d-line: #2A261F; --d-text: #F4F1EA;
  --d-mute: #9C968A; --d-gold: #EAB308; --d-burn: #F97316;
  --d-num: "Barlow Condensed", "Arial Narrow", sans-serif; --d-body: "Barlow", -apple-system, sans-serif;
}

/* hero */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 56px; align-items: center; }
.try-callout { margin-top: 28px; color: var(--d-gold); font-size: 16px; max-width: 30em; }
@media (max-width: 1023px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; justify-items: center; }
  .try-callout { margin-inline: auto; }
}

/* device */
.demo-wrap { display: flex; flex-direction: column; align-items: center; scroll-margin-top: 80px; width: 100%; }
.demo-device { width: 372px; max-width: 100%; border-radius: 46px; padding: 10px; background: #000; border: 2px solid #26231d; box-shadow: 0 40px 80px -30px rgba(234,179,8,.18), 0 30px 60px -20px rgba(0,0,0,.9); }
.demo-phone { position: relative; height: 740px; max-height: 82vh; border-radius: 36px; overflow: hidden; background: var(--d-bg); color: var(--d-text); font-family: var(--d-body); font-size: 15px; line-height: 1.4; text-align: left; }
.demo-note { margin-top: 14px; font-size: 13px; color: var(--d-mute); }
.demo-note button { background: none; border: 0; color: var(--d-gold); font-weight: 600; cursor: pointer; padding: 0 0 0 6px; text-decoration: underline; }
@media (max-width: 480px) {
  .demo-device { border-radius: 38px; padding: 7px; }
  .demo-phone { height: 640px; border-radius: 31px; }
}

/* inside the phone: the app's UI kit (mobile/src/components/ui) in CSS */
.demo-phone button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; text-align: left; }
.demo-phone [hidden] { display: none !important; }
.a-body { position: absolute; inset: 0 0 66px 0; overflow-y: auto; padding: 22px 20px 40px; scrollbar-width: none; }
.a-body.withrest { bottom: 146px; }
.a-body::-webkit-scrollbar { display: none; }
.gold { color: var(--d-gold) !important; }
.burn { color: var(--d-burn) !important; }
.mute { color: var(--d-mute); }
.strong { font-weight: 600; }
.small { font-size: 13px; }
.a-label { font-family: var(--d-num); font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--d-mute); }
.a-label.block { display: block; margin-top: 2px; font-size: 12px; }
.a-label b { font-weight: 700; }
.a-heading { font-family: var(--d-num); font-weight: 700; font-size: 15px; line-height: 18px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--d-gold); }
.a-heading.quiet { color: var(--d-mute); margin-bottom: 4px; }
.a-num15 { font-family: var(--d-num); font-weight: 700; font-size: 15px; }
.a-num20 { font-family: var(--d-num); font-weight: 700; font-size: 20px; font-variant-numeric: tabular-nums; }
.a-num22 { font-family: var(--d-num); font-weight: 700; font-size: 22px; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.a-num28 { font-family: var(--d-num); font-weight: 700; font-size: 28px; line-height: 1.15; font-variant-numeric: tabular-nums; color: var(--d-text); }
.a-num28 small { font-size: 15px; color: var(--d-mute); }
.a-num30 { font-family: var(--d-num); font-weight: 700; font-size: 30px; line-height: 1.1; }
.a-title, .a-greet { font-family: var(--d-num); font-weight: 700; font-size: 30px; line-height: 1.15; text-transform: uppercase; margin: 4px 0; color: var(--d-text); }
.a-greet { margin-top: 2px; }
.a-mute { color: var(--d-mute); font-size: 14.5px; line-height: 1.35; }
.a-small { font-size: 14.5px; line-height: 1.45; margin: 12px 0 0; }
.a-strong { font-weight: 600; font-size: 15px; }

.a-top { display: flex; justify-content: space-between; align-items: center; }
.a-logo { width: 64px; height: 64px; border-radius: 50%; }
.a-bell { position: relative; width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--d-gold); color: var(--d-gold); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px rgba(122,90,6,.6) inset; }
.a-bell i { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; border-radius: 10px; background: #E5484D; color: #fff; font-style: normal; font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; padding: 0 5px; }

.a-hero { background: var(--d-surface); border: 1px solid var(--d-line); border-radius: 6px; padding: 16px; margin-top: 16px; }
.a-score { display: flex; }
.a-score > div { flex: 1; padding: 10px 0; min-width: 0; }
.a-score > div.wide { flex: 1.3; }
.a-score > div + div { border-left: 1px solid var(--d-line); padding-left: 12px; }
.a-score .a-label { margin-top: 4px; font-size: 12.5px; }
.a-todayrow { border-top: 1px solid var(--d-line); padding-top: 10px; margin-top: 4px; display: flex; align-items: center; gap: 10px; justify-content: space-between; }

.demo-phone .a-btn { font-family: var(--d-num); font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; border-radius: 4px; text-align: center; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
.demo-phone .a-btn.sm { min-height: 36px; padding: 0 14px; font-size: 15px; }
.demo-phone .a-btn.md { padding: 13px 18px; font-size: 17px; }
.demo-phone .a-btn.full { width: 100%; }
.demo-phone .a-btn.primary { background: var(--d-gold); color: var(--d-bg); }
.demo-phone .a-btn.primary:active { background: #CA8A04; }
.demo-phone .a-btn.secondary { border: 1px solid var(--d-line); color: var(--d-text); }

.a-sec { margin-top: 32px; }
.a-sechead { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 36px; border-bottom: 1px solid var(--d-line); padding-bottom: 10px; }
.a-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--d-line); }
.a-row[data-soon] { cursor: pointer; }
.a-rowtext { flex: 1; min-width: 0; font-size: 17px; }
.a-rowsub { color: var(--d-mute); font-size: 14px; line-height: 19px; margin-top: 3px; }
.a-rowright { display: flex; align-items: center; gap: 8px; }
.a-chev { color: var(--d-mute); display: inline-flex; }
.a-coach { margin-top: 12px; font-size: 14.5px; }
.a-hint { color: var(--d-mute); font-size: 12.5px; margin-top: 3px; }

.a-picker { position: relative; display: block; margin-top: 10px; }
.a-picker select { width: 100%; appearance: none; -webkit-appearance: none; background: var(--d-surface); border: 1px solid var(--d-line); border-radius: 6px; color: var(--d-text); font-family: var(--d-body); font-size: 17px; padding: 13px 40px 13px 14px; cursor: pointer; }
.a-picker span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--d-mute); font-size: 12px; pointer-events: none; }
.a-chartlegend { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 14px; }
.a-chartlegend .a-label { font-size: 12px; }
.a-chartpr { display: grid; grid-template-columns: auto auto; column-gap: 8px; align-items: baseline; text-align: right; }
.a-chartpr .a-label { grid-column: 1; text-align: center; font-size: 11px; }
.a-up { font-family: var(--d-num); font-weight: 700; color: var(--d-gold); font-size: 16px; }
.a-chartwrap { position: relative; margin-top: 4px; border-top: 1px solid var(--d-line); border-bottom: 1px solid var(--d-line); }
.a-chart { display: block; width: 100%; height: auto; }
.a-axis { position: absolute; right: 0; font-family: var(--d-num); font-weight: 600; font-size: 12px; color: var(--d-mute); }
.a-axis.top { top: 2px; } .a-axis.bottom { bottom: 2px; }
.a-xaxis { display: flex; justify-content: space-between; margin-top: 6px; }
.a-xaxis .a-label { font-size: 11.5px; }
.a-statboxes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.a-statboxes > div { background: #0B0A08; border-radius: 6px; padding: 14px 8px; text-align: center; }
.a-statboxes .a-label { font-size: 11px; margin-top: 4px; }

/* workout log */
.demo-phone .a-back { color: var(--d-mute); font-size: 14px; margin-bottom: 10px; }
.a-datenav { display: flex; justify-content: space-between; align-items: center; margin: 18px 0 16px; }
.a-datenav .a-heading { font-size: 14.5px; }
.a-ex { padding: 14px 0 12px; border-bottom: 1px solid var(--d-line); }
.a-exhead { display: flex; align-items: flex-start; gap: 12px; }
.a-extext { flex: 1; min-width: 0; }
.a-exname { font-weight: 600; font-size: 17px; }
.a-icn { color: var(--d-mute); padding: 2px 6px; display: inline-flex; }
.demo-phone .a-check { width: 24px; height: 24px; flex: none; border: 1.5px solid #3A342A; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; color: var(--d-bg); }
.demo-phone .a-check:not(.big) { width: 20px; height: 20px; }
.demo-phone .a-check.on { background: var(--d-gold); border-color: var(--d-gold); }
.a-setline { display: flex; align-items: center; gap: 12px; padding: 7px 0 7px 36px; }
.a-setline.dim .a-settext { opacity: .9; }
.demo-phone .a-settext { flex: 1; display: flex; align-items: center; gap: 18px; font-size: 15px; }
.a-setlabel { color: var(--d-mute); font-size: 13.5px; width: 38px; }
.a-exfoot { display: flex; gap: 18px; padding: 6px 0 0 36px; font-size: 13.5px; }
.demo-phone .a-copy { display: block; width: 100%; text-align: center; padding: 16px 0; color: var(--d-gold); font-weight: 600; font-size: 14.5px; }

/* friends + profile */
.a-titlerow { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.a-pills { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.demo-phone .a-pill { border: 1px solid var(--d-line); border-radius: 4px; padding: 7px 10px; font-family: var(--d-num); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--d-mute); }
.demo-phone .a-pill.on { border-color: var(--d-gold); color: var(--d-gold); }
.a-boardrow { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--d-line); margin-top: 0; }
.a-boardrow:first-of-type { margin-top: 10px; }
.a-boardrow.me { background: rgba(234,179,8,.14); }
.a-boardrow .rank { width: 18px; color: var(--d-gold); }
.a-boardname { flex: 1; font-size: 15.5px; }
.a-av { width: 30px; height: 30px; border-radius: 50%; background: #13110e; border: 1px solid var(--d-line); display: inline-flex; align-items: center; justify-content: center; font-family: var(--d-num); font-weight: 700; color: var(--d-mute); flex: none; font-size: 14px; }
.a-av.big { width: 34px; height: 34px; }
.a-av.huge { width: 56px; height: 56px; font-size: 22px; }
.a-feed { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--d-line); }
.a-feedtext { flex: 1; min-width: 0; font-size: 15.5px; line-height: 1.35; }
.a-feedtext b { font-weight: 600; }
.demo-phone .a-respect { border: 1px solid var(--d-gold); border-radius: 4px; padding: 5px 9px; font-family: var(--d-num); font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--d-gold); flex: none; }
.demo-phone .a-respect.on { background: var(--d-gold); color: var(--d-bg); }
.a-me { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.a-switch { width: 46px; height: 28px; border-radius: 14px; background: var(--d-line); position: relative; flex: none; }
.a-switch.on { background: var(--d-gold); }
.a-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #F4F1EA; }
.a-switch.on::after { left: 21px; }

/* tab bar */
.a-tabs { position: absolute; left: 0; right: 0; bottom: 0; height: 66px; border-top: 1px solid var(--d-line); background: var(--d-bg); display: flex; justify-content: space-around; align-items: center; padding-bottom: 6px; }
.demo-phone .a-tabs button { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--d-mute); font-family: var(--d-num); font-weight: 600; font-size: 11.5px; letter-spacing: 1.2px; text-transform: uppercase; padding: 4px 6px; }
.demo-phone .a-tabs button.on { color: var(--d-gold); }

/* rest timer, sheet, toast, PR card */
.a-rest { position: absolute; left: 0; right: 0; bottom: 66px; height: 80px; background: var(--d-surface); border-top: 1px solid var(--d-gold); display: flex; align-items: center; justify-content: space-between; padding: 0 16px; }
.a-restbtns { display: flex; gap: 8px; }
.a-sheetback { position: absolute; inset: 0; background: rgba(0,0,0,.6); z-index: 6; }
.a-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 7; background: rgba(26,23,18,.98); border-top: 1px solid rgba(234,179,8,.35); border-radius: 16px 16px 0 0; padding: 10px 16px 22px; }
.a-handle { width: 38px; height: 5px; border-radius: 3px; background: #4a453c; margin: 0 auto 12px; }
.a-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.a-fields label { display: flex; flex-direction: column; gap: 8px; }
.a-fields input { width: 100%; background: var(--d-surface); border: 1px solid var(--d-line); border-radius: 4px; color: var(--d-text); font-family: var(--d-body); font-size: 17px; padding: 11px 12px; }
.a-fields input:focus { outline: none; border-color: var(--d-gold); }
.a-sheetbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.demo-phone .a-remove { display: block; width: 100%; text-align: center; margin-top: 18px; color: #E5484D; font-size: 15px; }
.a-toast { position: absolute; top: 10px; left: 12px; right: 12px; z-index: 8; background: var(--d-gold); color: var(--d-bg); border-radius: 10px; padding: 12px 14px; display: flex; gap: 12px; align-items: center; font-size: 13px; }
.a-toast b { font-size: 15px; }
.a-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.72); display: flex; align-items: center; justify-content: center; z-index: 9; cursor: pointer; }
.a-confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.a-card { position: relative; background: var(--d-surface); border: 1px solid var(--d-line); border-radius: 18px; padding: 24px 18px 18px; width: 86%; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.a-bigicon { width: 76px; height: 76px; border-radius: 50%; background: rgba(234,179,8,.12); display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.a-kicker { font-family: var(--d-num); font-weight: 700; letter-spacing: .2em; color: var(--d-gold); font-size: 14px; }
.a-cardtitle { font-family: var(--d-num); font-weight: 700; font-size: 28px; text-transform: uppercase; }
.a-compare { display: flex; align-items: center; gap: 8px; margin-top: 12px; width: 100%; }
.a-cbox { flex: 1; border: 1px solid var(--d-line); border-radius: 8px; padding: 8px 4px; }
.a-cbox.gold-b { border-color: var(--d-gold); }
.a-clabel { font-size: 11px; color: var(--d-mute); }
.a-cval { font-family: var(--d-num); font-weight: 700; font-size: 20px; }
.a-taphint { margin-top: 12px; color: var(--d-mute); font-size: 12px; }
.a-soon { position: absolute; left: 14px; right: 14px; bottom: 80px; z-index: 8; background: #1f1c17; border: 1px solid var(--d-line); border-radius: 8px; padding: 10px 12px; font-size: 13px; color: var(--d-text); text-align: center; }

.demo-phone :focus-visible, .try-btn:focus-visible, #demo-reset:focus-visible { outline: 2px solid var(--d-gold); outline-offset: 2px; }

/* feature rows */
.feature-list { display: grid; gap: 64px; max-width: 760px; margin: 0 auto; }
.try-btn { display: inline-block; margin-top: 16px; color: var(--d-gold); font-weight: 600; border-bottom: 2px solid var(--d-gold); padding-bottom: 2px; text-decoration: none; }
.try-btn:hover { color: #FACC15; }
.a-sheet h2 { text-transform: uppercase; margin: 0; }

/* feature sections: text beside a live phone, alternating sides */
.demo-sec { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 64px; align-items: center; padding: 72px 0; border-bottom: 1px solid #2A261F; }
.demo-sec:last-child { border-bottom: 0; }
.demo-sec.flip .demo-sec-text { order: 2; }
.demo-sec-text { max-width: 30em; }
.demo-tip { margin-top: 18px; color: var(--d-gold); font-size: 16px; }
.demo-tip b { font-weight: 600; }
.demo-sec .demo-phone { height: 700px; }
.demo-note button { background: none; border: 0; color: var(--d-gold); font-weight: 600; cursor: pointer; padding: 0 0 0 6px; text-decoration: underline; }
@media (max-width: 900px) {
  .demo-sec { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 56px 0; justify-items: center; text-align: center; }
  .demo-sec.flip .demo-sec-text { order: 0; }
  .demo-sec-text { margin: 0 auto; }
}
@media (max-width: 480px) { .demo-sec .demo-phone { height: 640px; } }

/* goals, nutrition, meet prep */
.bad { color: #E5484D !important; }
.a-num44 { font-family: var(--d-num); font-weight: 700; font-size: 44px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.a-hero.gold-b { border-color: rgba(234,179,8,.45); }
.a-goal { padding: 14px 0; border-bottom: 1px solid var(--d-line); }
.a-goalhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.a-goalhead .a-exname { flex: 1; }
.a-goalnums { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; font-size: 14.5px; }
.a-bar { height: 6px; background: var(--d-line); border-radius: 3px; overflow: hidden; margin-top: 8px; }
.a-bar i { display: block; height: 100%; background: var(--d-gold); border-radius: 3px; }
.a-macro .a-bar:not(.goldbar) i { background: #6b665c; }
.a-kcal { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 4px; }
.a-macro { margin-top: 12px; }
.a-macrohead { display: flex; justify-content: space-between; align-items: baseline; }
.a-search { display: flex; gap: 10px; margin-top: 8px; }
.a-search input { flex: 1; min-width: 0; background: var(--d-surface); border: 1px solid var(--d-line); border-radius: 4px; color: var(--d-text); font-family: var(--d-body); font-size: 16px; padding: 10px 12px; }
.a-search input:focus { outline: none; border-color: var(--d-gold); }
.a-row[data-addfood], .a-row[data-month], .a-row[data-go] { cursor: pointer; }
.a-row .mute { color: var(--d-mute); font-size: 14px; margin-left: 6px; }
.a-week { padding: 10px 0 10px 14px; border-left: 2px solid var(--d-line); margin-left: 4px; }
.a-week.now { border-left-color: var(--d-gold); }
.a-week b { font-weight: 600; }
.a-fields.two { grid-template-columns: repeat(2, 1fr); }
