:root {
  --ink: #17312c;
  --muted: #65736f;
  --forest: #153f36;
  --forest-2: #20564a;
  --lime: #cce66c;
  --lime-soft: #edf6ca;
  --cream: #f5f3ea;
  --paper: #fffef9;
  --line: #dfe4dc;
  --orange: #ef9368;
  --blue: #74a7c8;
  --shadow: 0 24px 60px rgba(22, 57, 49, .14);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--paper); line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { cursor: pointer; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 1000; padding: 10px 16px; background: white; border-radius: 10px; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.site-header { height: 78px; max-width: 1240px; margin: auto; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; }
.site-header nav { display: flex; align-items: center; gap: 30px; font-size: 14px; }
.site-header nav a { text-decoration: none; color: #52645f; }
.site-header nav a:hover { color: var(--forest); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; letter-spacing: -.3px; }
.brand b { color: var(--forest-2); }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--forest); color: var(--lime); }
.brand-mark svg { width: 27px; fill: none; stroke: var(--lime); stroke-width: 2.2; stroke-linecap: round; }
.button { border: 0; border-radius: 14px; padding: 14px 20px; font-weight: 750; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--forest); box-shadow: 0 10px 24px rgba(21,63,54,.19); }
.button-primary:hover { background: #0f332b; box-shadow: 0 14px 30px rgba(21,63,54,.25); }
.button-ghost { background: transparent; color: var(--forest); border: 1px solid var(--line); box-shadow: none; }
.button-light { background: var(--lime); color: var(--forest); }
.button-small { padding: 10px 15px; border-radius: 11px; }
.hero { min-height: 700px; max-width: 1240px; margin: auto; padding: 72px 28px 88px; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 70px; }
.eyebrow { margin: 0 0 14px; color: #6c827c; font-size: 12px; letter-spacing: .17em; font-weight: 850; text-transform: uppercase; }
.hero h1 { margin: 0; max-width: 680px; font-size: clamp(52px, 6vw, 84px); line-height: .99; letter-spacing: -.055em; font-weight: 790; }
.hero h1 span { color: var(--forest-2); }
.hero-lead { max-width: 580px; margin: 28px 0 0; color: var(--muted); font-size: 19px; line-height: 1.65; }
.hero-actions { display: flex; align-items: center; gap: 25px; margin-top: 34px; }
.text-link { font-weight: 750; text-underline-offset: 5px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 32px; color: #65736f; font-size: 13px; }
.trust-row i { color: var(--forest-2); font-style: normal; margin-right: 5px; }
.hero-visual { min-height: 550px; position: relative; display: grid; place-items: center; border-radius: 60px 20px 60px 20px; background: linear-gradient(145deg, #dfe9bf, #cddfb1); overflow: hidden; }
.glow { position: absolute; border-radius: 50%; filter: blur(3px); opacity: .55; }
.glow-one { width: 250px; height: 250px; background: #f6f2bf; left: -70px; top: -60px; }
.glow-two { width: 210px; height: 210px; background: #9cbda3; right: -55px; bottom: -45px; }
.phone-card { position: relative; width: 310px; min-height: 520px; padding: 16px 20px 19px; border: 7px solid #173d35; border-radius: 36px; background: #fbfbf5; box-shadow: 0 32px 60px rgba(34,60,52,.29); transform: rotate(2deg); }
.phone-top { display: flex; justify-content: space-between; color: #82918c; font-size: 9px; }
.phone-greeting { display: flex; justify-content: space-between; align-items: center; margin: 23px 0 18px; }
.phone-greeting div { display: flex; flex-direction: column; }
.phone-greeting small { color: #7c8c87; }
.phone-greeting strong { font-size: 19px; }
.mini-avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #e5efc1; font-weight: 800; }
.score-card { display: flex; align-items: center; justify-content: space-between; padding: 18px; border-radius: 20px; color: white; background: var(--forest); }
.score-card > div:first-child { display: flex; flex-direction: column; gap: 3px; }
.score-card small, .score-card span { color: #b7ccc5; font-size: 10px; }
.score-card strong { font-size: 13px; }
.score-ring { width: 58px; height: 58px; border: 5px solid var(--lime); border-left-color: #54736a; border-radius: 50%; display: grid; place-content: center; transform: rotate(20deg); }
.score-ring b, .score-ring small { transform: rotate(-20deg); text-align: center; line-height: 1; }
.score-ring small { font-size: 7px; }
.phone-section-title { margin: 19px 0 10px; font-weight: 800; font-size: 12px; }
.habit-row { display: grid; grid-template-columns: 34px 1fr 18px; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid #e6ebe4; }
.habit-row > div { display: flex; flex-direction: column; }
.habit-row b { font-size: 10px; }
.habit-row small { font-size: 8px; color: #87948f; }
.habit-row i { font-style: normal; color: var(--forest); font-weight: 850; }
.habit-row i.pending { color: #aab4b0; }
.habit-icon { width: 31px; height: 31px; border-radius: 10px; display: grid; place-items: center; font-size: 14px; }
.habit-icon.green { background: #e7f0ca; }.habit-icon.orange { background: #f8e3d7; }.habit-icon.blue { background: #dcecf4; }
.mini-nav { position: absolute; left: 18px; right: 18px; bottom: 15px; display: flex; justify-content: space-around; padding-top: 10px; border-top: 1px solid #e0e6df; }
.mini-nav span { display: flex; flex-direction: column; align-items: center; color: #78908a; font-size: 13px; }
.mini-nav small { font-size: 7px; }
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1184px; margin: 0 auto 110px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-band div { padding: 28px; display: flex; flex-direction: column; text-align: center; border-right: 1px solid var(--line); }
.stats-band div:last-child { border: 0; }
.stats-band strong { font-size: 24px; color: var(--forest); }
.stats-band span { font-size: 12px; color: var(--muted); }
.section { max-width: 1184px; margin: 0 auto; padding: 90px 28px; }
.section-heading { max-width: 650px; margin: 0 auto 55px; text-align: center; }
.section h2, .cta-section h2 { margin: 0; font-size: clamp(34px, 4vw, 52px); letter-spacing: -.04em; line-height: 1.08; }
.section-heading > p:last-child { color: var(--muted); font-size: 17px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step-card { position: relative; min-height: 300px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.step-card.featured { background: var(--forest); color: white; transform: translateY(-14px); box-shadow: var(--shadow); }
.step-card > span { position: absolute; right: 25px; top: 22px; color: #a6b1ad; font-size: 12px; font-weight: 800; }
.step-icon { width: 52px; height: 52px; margin-bottom: 55px; display: grid; place-items: center; border-radius: 16px; background: var(--lime-soft); color: var(--forest); font-size: 25px; }
.step-card h3 { margin: 0 0 12px; font-size: 21px; }
.step-card p { margin: 0; color: #73807c; }
.step-card.featured p { color: #bbcbc6; }
.safety-section { margin-top: 80px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: center; border-radius: 36px; background: var(--cream); }
.safety-section > p { color: var(--muted); font-size: 17px; line-height: 1.8; }
.cta-section { margin-top: 100px; padding: 100px 28px; color: white; background: var(--forest); text-align: center; }
.cta-section .eyebrow { color: #b4cac3; }
.cta-section h2 { max-width: 730px; margin: 0 auto 35px; }
footer { max-width: 1184px; margin: auto; padding: 35px 28px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 25px; color: #71807b; font-size: 12px; }
footer > div { display: flex; justify-content: flex-end; gap: 16px; }
.footer-brand { color: var(--ink); }.footer-brand .brand-mark { width: 30px; height: 30px; border-radius: 9px; }
dialog { padding: 0; border: 0; }
dialog::backdrop { background: rgba(10, 31, 27, .7); backdrop-filter: blur(7px); }
.app-dialog, .dashboard-dialog { width: min(1220px, calc(100vw - 30px)); max-width: none; max-height: calc(100vh - 30px); border-radius: 26px; box-shadow: var(--shadow); overflow: hidden; }
.dialog-shell { display: grid; grid-template-columns: 360px 1fr; min-height: 740px; }
.dialog-close { position: absolute; right: 18px; top: 14px; z-index: 10; width: 38px; height: 38px; border: 0; border-radius: 50%; color: #6f7d79; background: #eef1ec; font-size: 24px; }
.onboarding-aside { padding: 38px; color: white; background: var(--forest); display: flex; flex-direction: column; justify-content: space-between; }
.brand-light { color: white; }.brand-light b { color: var(--lime); }.brand-light .brand-mark { background: rgba(255,255,255,.09); }
.onboarding-aside h2 { margin: 0 0 15px; font-size: 34px; line-height: 1.12; letter-spacing: -.04em; }
.onboarding-aside p { color: #b8cbc5; }
.onboarding-aside .eyebrow { color: var(--lime); }
.progress-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.progress-list li { display: grid; grid-template-columns: 36px 1fr; gap: 13px; opacity: .45; }
.progress-list li.active { opacity: 1; }
.progress-list li > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid #719087; font-size: 12px; }
.progress-list li.active > span { color: var(--forest); background: var(--lime); border-color: var(--lime); }
.progress-list div { display: flex; flex-direction: column; }
.progress-list small { color: #9eb6af; }
.onboarding-form { padding: 60px 65px 35px; overflow-y: auto; max-height: calc(100vh - 30px); background: white; }
.form-step { display: none; max-width: 710px; margin: auto; }.form-step.active { display: block; }
.step-counter { color: #8a9994; font-size: 11px; letter-spacing: .14em; font-weight: 800; }
.form-step h2 { margin: 4px 0 5px; font-size: 38px; letter-spacing: -.035em; }
.form-intro { margin: 0 0 35px; color: var(--muted); }
.field-grid { display: grid; gap: 19px; margin-bottom: 25px; }.field-grid.two { grid-template-columns: 1fr 1fr; }
label { display: grid; gap: 8px; font-size: 13px; font-weight: 750; }
input, select, textarea { width: 100%; padding: 13px 14px; color: var(--ink); border: 1px solid #ced8d1; border-radius: 11px; background: white; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--forest-2); box-shadow: 0 0 0 3px rgba(32,86,74,.1); }
textarea { resize: vertical; }
.choice-field { padding: 0; margin: 0 0 25px; border: 0; }
.choice-field legend { margin-bottom: 11px; font-size: 13px; font-weight: 750; }
.choice-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.choice-grid label { position: relative; }
.choice-grid input { position: absolute; opacity: 0; }
.choice-grid label > span { min-height: 100px; padding: 16px; display: grid; grid-template-columns: 30px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 14px; font-size: 20px; }
.choice-grid b { font-size: 14px; }.choice-grid small { grid-column: 2; color: #7a8884; font-weight: 450; }
.choice-grid input:checked + span { border: 2px solid var(--forest-2); background: #f4f8eb; box-shadow: 0 0 0 3px rgba(204,230,108,.26); }
.choice-grid.compact label > span { min-height: 76px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.choice-grid.compact small { grid-column: auto; }
.form-actions { margin-top: 35px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; }
.notice-card { padding: 20px; margin: 20px 0; border-left: 4px solid var(--orange); border-radius: 12px; background: #fff4ed; }
.notice-card p { margin: 7px 0 0; color: #6f625c; font-size: 13px; }
.check-row { grid-template-columns: 22px 1fr; margin: 15px 0; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.check-row input { width: 18px; height: 18px; accent-color: var(--forest); }
.check-row span { display: grid; }.check-row small { color: var(--muted); font-weight: 450; }
.dashboard-dialog { background: #eef0ea; }
.dashboard-shell { display: grid; grid-template-columns: 240px 1fr; height: calc(100vh - 30px); min-height: 700px; }
.dash-sidebar { padding: 28px 20px; display: flex; flex-direction: column; color: white; background: #123b33; }
.dash-sidebar nav { display: grid; gap: 7px; margin-top: 55px; }
.dash-sidebar nav button, .sidebar-bottom button, .sidebar-bottom a { width: 100%; padding: 12px 13px; display: flex; gap: 11px; align-items: center; color: #b8cbc5; background: transparent; border: 0; border-radius: 11px; text-decoration: none; text-align: left; font-size: 13px; }
.dash-sidebar nav button:hover, .dash-sidebar nav button.active, .sidebar-bottom button:hover, .sidebar-bottom a:hover { color: white; background: rgba(255,255,255,.09); }
.dash-sidebar nav i { margin-left: auto; padding: 3px 5px; border-radius: 5px; color: var(--forest); background: var(--lime); font-size: 8px; font-style: normal; }
.sidebar-bottom { margin-top: auto; display: grid; gap: 3px; }
.dash-main { overflow-y: auto; padding: 0 38px 50px; }
.dash-header { position: sticky; top: 0; z-index: 5; padding: 22px 0 18px; display: flex; align-items: center; justify-content: space-between; background: rgba(238,240,234,.93); backdrop-filter: blur(10px); }
.dash-header p { margin: 0; color: #80908b; font-size: 10px; letter-spacing: .15em; }
.dash-header h1 { margin: 2px 0 0; font-size: 27px; }
.dash-profile { display: flex; align-items: center; gap: 10px; }
.dash-profile div { display: flex; flex-direction: column; text-align: right; font-size: 12px; }.dash-profile small { color: var(--muted); }
.dash-profile > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--lime); font-weight: 850; }
.dash-view { display: none; }.dash-view.active { display: block; }
.welcome-banner { padding: 34px 38px; display: flex; align-items: center; justify-content: space-between; border-radius: 24px; color: white; background: linear-gradient(120deg, #17483d, #286252); }
.welcome-banner h2 { margin: 12px 0 5px; font-size: 32px; letter-spacing: -.035em; }.welcome-banner p { margin: 0; color: #bed0ca; }
.live-pill { padding: 5px 8px; border-radius: 7px; color: var(--forest); background: var(--lime); font-size: 9px; font-weight: 850; letter-spacing: .1em; }
.day-score { width: 105px; height: 105px; display: grid; place-content: center; text-align: center; border: 7px solid var(--lime); border-left-color: #577c70; border-radius: 50%; }.day-score strong { font-size: 25px; }.day-score span { color: #b9cbc5; font-size: 9px; }
.dashboard-grid { display: grid; grid-template-columns: 1.45fr .8fr; gap: 18px; margin-top: 18px; }
.dash-card { padding: 24px; border: 1px solid #e0e4dc; border-radius: 20px; background: white; box-shadow: 0 8px 20px rgba(30,58,50,.04); }
.card-title { display: flex; align-items: flex-start; justify-content: space-between; }.card-title h3, .dash-card h3 { margin: 0; font-size: 19px; }.card-title .eyebrow { margin-bottom: 5px; }
.card-title > span { color: var(--forest); font-weight: 850; }
.dashboard-habits { display: grid; margin-top: 15px; }
.dash-habit { display: grid; grid-template-columns: 26px 1fr auto; gap: 11px; align-items: center; padding: 13px 0; border-bottom: 1px solid #edf0eb; }
.dash-habit:last-child { border: 0; }.dash-habit input { width: 19px; height: 19px; accent-color: var(--forest); }.dash-habit div { display: grid; }.dash-habit small { color: var(--muted); }.dash-habit > span { padding: 5px 8px; border-radius: 7px; background: #f0f3ed; color: #6f7f79; font-size: 10px; }
.next-card { background: #f5f7e9; }.round-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: white; }
.focus-block { margin-top: 25px; }.focus-block strong { display: block; font-size: 25px; line-height: 1.2; }.focus-block p { color: var(--muted); }.focus-meta { display: flex; gap: 8px; }.focus-meta span { padding: 6px 9px; border-radius: 8px; background: white; font-size: 10px; }
.metric-card strong { display: block; margin-top: 8px; font-size: 24px; }.metric-card > span { color: var(--muted); }.metric-card small { color: var(--muted); }
.metric-bar { height: 8px; margin: 25px 0 12px; border-radius: 10px; background: #e8ece5; }.metric-bar i { display: block; width: 18%; height: 100%; border-radius: inherit; background: var(--forest-2); }
.coach-teaser { display: flex; gap: 17px; align-items: center; background: #eaf3ef; }.coach-teaser p { margin: 7px 0; color: var(--muted); font-size: 12px; }
.coach-orb { flex: 0 0 auto; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 17px; color: var(--lime); background: var(--forest); font-size: 24px; box-shadow: 0 10px 25px rgba(21,63,54,.22); }.coach-orb.large { width: 70px; height: 70px; margin: auto; border-radius: 23px; font-size: 34px; }
.text-button { padding: 0; color: var(--forest); background: none; border: 0; font-size: 12px; font-weight: 850; }
.view-heading { margin: 10px 0 25px; display: flex; align-items: end; justify-content: space-between; gap: 30px; }.view-heading h2 { margin: 0; font-size: 34px; }.view-heading p:last-child { margin: 7px 0 0; color: var(--muted); }.view-heading .eyebrow { margin: 0 0 5px; }
.plan-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.day-plan { padding: 22px; border-radius: 18px; background: white; border: 1px solid var(--line); }.day-plan h3 { margin: 0 0 15px; }.meal-line { padding: 10px 0; display: grid; grid-template-columns: 80px 1fr; gap: 10px; border-top: 1px solid #edf0eb; }.meal-line span { color: #7c8a86; font-size: 11px; text-transform: uppercase; font-weight: 800; }.meal-line b { font-size: 12px; }
.shopping-card { margin-top: 18px; }.shopping-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-top: 18px; }.shopping-group { padding: 15px; border-radius: 12px; background: #f4f6f1; }.shopping-group b { font-size: 12px; }.shopping-group ul { margin: 9px 0 0; padding-left: 17px; color: var(--muted); font-size: 11px; }
.workout-list { display: grid; gap: 13px; }.workout-card { padding: 22px; display: grid; grid-template-columns: 95px 1fr auto; gap: 20px; align-items: center; border-radius: 18px; background: white; border: 1px solid var(--line); }.workout-day { color: var(--forest); font-weight: 850; }.workout-card h3 { margin: 0 0 5px; }.workout-card p { margin: 0; color: var(--muted); font-size: 12px; }.workout-duration { padding: 8px 10px; border-radius: 10px; background: var(--lime-soft); font-size: 11px; font-weight: 800; }.compact-notice { max-width: 700px; margin-top: 20px; }
.progress-grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: 18px; margin-bottom: 18px; }.chart-card svg { width: 100%; margin-top: 20px; overflow: visible; }.chart-line { fill: none; stroke: var(--forest-2); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }.chart-area { fill: url(#chartGradient); }.chart-dot { fill: white; stroke: var(--forest-2); stroke-width: 4; }.grid-line { stroke: #e6ebe5; stroke-width: 1; }.chart-label { fill: #82908c; font-size: 10px; }
.checkin-summary strong { display: block; margin-top: 18px; font-size: 30px; }.checkin-summary span { color: var(--muted); }.checkin-summary p:last-child { padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.history-list { margin-top: 12px; }.history-row { padding: 13px 0; display: grid; grid-template-columns: 110px 1fr 1fr; gap: 15px; border-top: 1px solid var(--line); font-size: 12px; }.history-row span { color: var(--muted); }
.coach-view { min-height: calc(100vh - 150px); }.chat-shell { max-width: 760px; min-height: calc(100vh - 155px); margin: auto; display: flex; flex-direction: column; }.chat-intro { margin: auto; max-width: 650px; text-align: center; }.chat-intro .eyebrow { margin-top: 20px; }.chat-intro h2 { margin: 0; font-size: 36px; }.chat-intro > p:last-of-type { color: var(--muted); }.prompt-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }.prompt-chips button { padding: 9px 12px; border: 1px solid var(--line); border-radius: 20px; background: white; font-size: 11px; }
.chat-messages:not(:empty) + .chat-form { margin-top: 10px; }.chat-messages:not(:empty) { display: grid; gap: 10px; margin-top: 30px; max-height: 360px; overflow-y: auto; }.chat-message { max-width: 80%; padding: 13px 15px; border-radius: 15px; background: white; font-size: 13px; }.chat-message.user { margin-left: auto; color: white; background: var(--forest); }.chat-message.coach { border: 1px solid var(--line); }.chat-form { margin-top: 30px; padding: 7px; display: grid; grid-template-columns: 1fr 48px; gap: 8px; border-radius: 16px; background: white; box-shadow: 0 15px 35px rgba(25,58,49,.12); }.chat-form input { border: 0; box-shadow: none; }.chat-form .button { padding: 0; }
.small-dialog { width: min(500px, calc(100vw - 30px)); padding: 35px; border-radius: 22px; }.small-dialog form { display: grid; gap: 17px; }.small-dialog h2 { margin: -7px 0 8px; }.small-dialog .button { margin-top: 5px; }
.toast { position: fixed; z-index: 1000; right: 25px; bottom: 25px; padding: 13px 17px; border-radius: 12px; color: white; background: var(--forest); box-shadow: var(--shadow); opacity: 0; transform: translateY(20px); pointer-events: none; transition: .25s; }.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .site-header nav a { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 35px; text-align: center; }.hero-lead { margin-left: auto; margin-right: auto; }.hero-actions, .trust-row { justify-content: center; }.hero-visual { min-height: 500px; }
  .stats-band { grid-template-columns: 1fr 1fr; margin-bottom: 50px; }.stats-band div:nth-child(2) { border-right: 0; }.stats-band div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .steps-grid { grid-template-columns: 1fr; }.step-card.featured { transform: none; }.safety-section { grid-template-columns: 1fr; gap: 20px; }
  footer { grid-template-columns: 1fr; text-align: center; }.footer-brand, footer > div { justify-content: center; }
  .dialog-shell { grid-template-columns: 1fr; }.onboarding-aside { display: none; }.onboarding-form { padding: 50px 25px 25px; }
  .dashboard-shell { grid-template-columns: 76px 1fr; }.dash-sidebar { padding: 25px 10px; }.dash-sidebar .brand span:last-child { display: none; }.dash-sidebar nav button, .sidebar-bottom button, .sidebar-bottom a { justify-content: center; font-size: 0; }.dash-sidebar nav button span, .sidebar-bottom span { font-size: 18px; }.dash-sidebar nav i { display: none; }.dash-main { padding: 0 18px 40px; }
  .dashboard-grid, .progress-grid { grid-template-columns: 1fr; }.plan-grid { grid-template-columns: 1fr; }.shopping-list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .site-header { padding: 0 16px; }.brand { font-size: 14px; }.site-header .button { font-size: 12px; }
  .hero { padding-left: 18px; padding-right: 18px; }.hero h1 { font-size: 48px; }.hero-lead { font-size: 16px; }.hero-actions { flex-direction: column; }.hero-visual { min-height: 470px; border-radius: 35px 12px; }.phone-card { width: 280px; transform: none; }
  .section { padding-left: 18px; padding-right: 18px; }.section h2, .cta-section h2 { font-size: 34px; }
  .field-grid.two, .choice-grid { grid-template-columns: 1fr; }.form-step h2 { font-size: 30px; }.onboarding-form { padding-left: 18px; padding-right: 18px; }.form-actions { gap: 10px; }.form-actions .button { padding: 12px 14px; }
  .dashboard-dialog { width: 100vw; max-height: 100vh; border-radius: 0; }.dashboard-shell { height: 100vh; min-height: 600px; grid-template-columns: 1fr; }.dash-sidebar { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; height: 65px; padding: 7px; flex-direction: row; }.dash-sidebar .brand, .sidebar-bottom { display: none; }.dash-sidebar nav { width: 100%; margin: 0; display: flex; justify-content: space-around; }.dash-sidebar nav button { width: auto; display: flex; flex-direction: column; gap: 0; font-size: 8px; }.dash-sidebar nav button span { font-size: 16px; }.dash-main { padding-bottom: 90px; }.dash-profile div { display: none; }.welcome-banner { padding: 25px; }.welcome-banner h2 { font-size: 25px; }.day-score { width: 82px; height: 82px; }.day-score span { display: none; }.shopping-list { grid-template-columns: 1fr; }.workout-card { grid-template-columns: 1fr auto; }.workout-card > div:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }.history-row { grid-template-columns: 1fr; gap: 3px; }.view-heading { align-items: flex-start; flex-direction: column; }.chat-intro h2 { font-size: 30px; }
}

.hero { min-height: 0; padding-block: clamp(32px,5vw,68px); }
.hero-copy, .hero-visual, .dash-main, .dashboard-grid > *, .view-heading > * { min-width: 0; }
.hero h1 { text-wrap: balance; }
.hero-visual { background: radial-gradient(ellipse at 30% 10%, #eef3cc, transparent 65%), linear-gradient(145deg,#dde8bf,#b8d1b5); }
.phone-card { transform: rotate(2deg) scale(.94); }
.exit-dash { border: 1px solid var(--line); background: white; color: var(--forest); border-radius: 50%; width: 42px; height: 42px; font-size: 22px; }
.mobile-reset { display: none; }
.choice-grid label:focus-within > span, :focus-visible { outline: 3px solid #327360; outline-offset: 3px; }
.app-dialog, .dashboard-dialog { overscroll-behavior: contain; }
.onboarding-form { min-width: 0; }
.dialog-shell { min-height: min(740px, calc(100dvh - 30px)); }
.dashboard-shell { min-height: 0; }
.history-row, .chat-message { overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .hero { gap: 28px; }
  .hero h1 { margin-inline: auto; }
  .hero-visual { min-height: 0; padding: 12px; }
  .step-card { min-height: 0; }
  .step-icon { margin-bottom: 20px; }
  .dialog-shell { display: block; }
}
@media (max-width: 560px) {
  .hero { text-align: left; }
  .hero-actions, .trust-row { justify-content: flex-start; }
  .hero-actions { align-items: flex-start; gap: 16px; }
  .hero h1 { font-size: clamp(39px,10vw,52px); }
  .trust-row { gap: 8px 14px; }
  .phone-card { width: min(275px,100%); min-height: 445px; transform: none; }
  .section, .cta-section { padding-block: 48px; }
  .safety-section, .cta-section { margin-top: 28px; }
  .dashboard-dialog, .dashboard-shell { height: 100dvh; max-height: 100dvh; }
  .dashboard-shell { grid-template-rows: minmax(0,1fr); }
  .dash-main { padding: 0 12px calc(84px + env(safe-area-inset-bottom)); }
  .dash-sidebar { height: calc(64px + env(safe-area-inset-bottom)); padding-bottom: calc(7px + env(safe-area-inset-bottom)); }
  .dash-sidebar nav button { font-size: 11px; padding: 5px; }
  .mobile-reset { display: block; margin: 12px 0 0 auto; padding: 8px 0; }
  .day-score { flex-shrink: 0; width: 65px; height: 65px; border-width: 4px; }
  .welcome-banner { gap: 12px; padding: 20px; }
  .choice-grid label > span { min-height: 65px; }
  .onboarding-form { max-height: calc(100dvh - 30px); }
  footer > div { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
/* The week's preview uses the same meal data as the demo dashboard. */
:root {
  --ink: #172b25; --forest: #153e33; --forest-2: #21694b;
  --paper: #fafaf5; --lime: #d5fa65; --lime-soft: #edf7ce;
  --lilac: #e2dcfa; --peach: #ffe1ce; --line: #d7dfd4;
}
.site-header { border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; }
.button { border-radius: 999px; }
.hero { gap: clamp(22px,4vw,62px); }
.hero h1 { font-size: clamp(46px,5.5vw,80px); letter-spacing: -.055em; }
.hero h1 span { color: var(--forest); background: linear-gradient(transparent 75%, var(--lime) 75%, var(--lime) 96%, transparent 96%); }
.hero .eyebrow { color: #356647; letter-spacing: .11em; }
.hero .button-primary { background: var(--lime); color: var(--ink); box-shadow: none; border: 1px solid #bdde59; }
.hero .button-primary:hover { background: #c8ed51; }
.week-preview {
  position: relative; isolation: isolate; overflow: hidden; text-align: left;
  padding: clamp(20px,3.2vw,44px); border-radius: 32px;
  background: #204e40; color: white;
}
.track-art { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.track-art::before {
  content: ""; position: absolute; width: 110%; height: 54%; top: -16%; right: -37%;
  transform: rotate(-37deg); border-radius: 999px; border: 2px solid #6a9478;
  box-shadow: 0 0 0 10px #204e40, 0 0 0 12px #6a9478, 0 0 0 22px #204e40, 0 0 0 24px #6a9478, 0 0 0 34px #204e40, 0 0 0 36px #6a9478;
}
.preview-heading p { margin: 0; color: var(--lime); font-size: 14px; font-weight: 650; }
.preview-heading h2 { margin: .2em 0 .7em; font-size: clamp(34px,3.7vw,54px); line-height: 1.05; letter-spacing: -.055em; }
.week-picker { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 4px; }
.week-picker button { border: 1px solid #78948a; color: white; background: #224c40; border-radius: 12px; padding: 0; min-height: 44px; font-size: 13px; font-weight: 650; }
.week-picker button[aria-pressed="true"] { color: var(--ink); border-color: var(--lime); background: var(--lime); }
.week-picker button:focus-visible { outline-color: white; outline-offset: 1px; }
.day-ticket { margin-top: 16px; padding: 22px; background: #fbfbf1; color: var(--ink); border-radius: 19px; }
.ticket-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; border-bottom: 1px dashed #a6b7a8; padding-bottom: 12px; }
.ticket-heading h3 { margin: 0; font-size: 23px; letter-spacing: -.035em; }
.ticket-heading span { color: #536558; font-variant-numeric: tabular-nums; font-size: 12px; }
.day-ticket dl { margin: 0; min-height: 130px; }
.day-ticket dl div { padding-top: 14px; }
.day-ticket dt { font-weight: 750; color: #546456; font-size: 12px; }
.day-ticket dd { margin: 2px 0 0; font-weight: 650; line-height: 1.4; }
.step-card { min-height: 225px; background: var(--lime-soft); border: none; }
.step-card.featured { color: var(--ink); background: var(--lilac); transform: none; box-shadow: none; }
.step-card:nth-child(3) { background: var(--peach); }
.step-card p, .step-card.featured p { color: #40504a; }
.step-icon { background: #fff9; margin-bottom: 22px; }
.step-card > span { display: none; }
.dash-sidebar { background: #173d32; }
.dash-sidebar nav button.active { color: #182e24; background: var(--lime); }
.dashboard-dialog, .dash-header { background: #f4f5ed; }
.welcome-banner { background: #d8f58b; color: var(--ink); }
.welcome-banner p, .day-score span { color: #37533c; }
.day-score { isolation: isolate; position: relative; border: none; background: conic-gradient(#235744 var(--done,0%),#b2cc83 0); }
.day-score::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #d8f58b; z-index: -1; }
.next-card { background: var(--peach); } .coach-teaser { background: var(--lilac); }
.dash-habit:has(input:checked) { color: #2a6847; }
.dash-habit:has(input:checked) > span { color: #27593c; background: var(--lime-soft); }
.metric-bar { display: none; }
.metric-card small { display: block; margin-top: 12px; }
@media (max-width: 900px) {
  .week-preview { width: min(100%,600px); justify-self: center; }
}
@media (max-width: 560px) {
  .hero { gap: 24px; }
  .hero h1 { font-size: clamp(41px,11vw,56px); }
  .week-preview { border-radius: 23px; padding: 19px 14px; }
  .week-picker button { font-size: 12px; }
  .day-ticket { padding: 16px; }
  .welcome-banner h2 { margin-top: 0; }
}
@media print {
  body > *:not(dialog[open]) { display: none !important; }
  dialog[open] { position: static; width: 100%; max-height: none; }
  .dash-sidebar, .dash-header, .dialog-close, .view-heading button { display: none !important; }
  .dashboard-shell { display: block; height: auto; }.dash-main { overflow: visible; }.dash-view { display: none !important; }.dash-view.active { display: block !important; }.plan-grid { grid-template-columns: 1fr 1fr; }
}
