:root {
  --navy: #002B5C;
  --navy-deep: #001932;
  --green: #009B77;
  --green-light: #00BC90;
  --blue: #0067D8;
  --graphite: #2D3748;
  --muted: #66758A;
  --soft: #F5F8FB;
  --soft-green: #EEF9F6;
  --line: #DDE7F0;
  --white: #FFFFFF;
  --warning: #B86B00;
  --warning-soft: #FFF5DF;
  --danger: #B42318;
  --danger-soft: #FFF0EE;
  --shadow: 0 22px 60px rgba(0, 43, 92, .14);
  --shadow-soft: 0 14px 36px rgba(0, 43, 92, .08);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--graphite);
  background: var(--white);
  line-height: 1.55;
}
body.chat-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid rgba(0, 103, 216, .4);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 999;
  transform: translateY(-150%);
  background: var(--navy);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 800;
}
.skip-link:focus { transform: translateY(0); }

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.shell { width: min(1160px, 92%); margin: 0 auto; }

.utility-bar {
  min-height: 40px;
  padding: 8px 4%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  background: var(--navy);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
}
.privacy-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  color: #9AF2DD;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(0, 43, 92, .08);
  backdrop-filter: blur(16px);
}
.header-inner {
  width: min(1220px, 94%);
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { display: block; width: 142px; max-height: 70px; object-fit: contain; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.back-link { color: var(--navy); font-weight: 800; font-size: 14px; }
.back-link:hover { color: var(--green); }
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: #8B98AA;
}
.language-button {
  min-width: 38px;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}
.language-button.active { background: var(--navy); color: var(--white); }

.quick-hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 72px;
  background:
    radial-gradient(circle at 8% 18%, rgba(0, 155, 119, .15), transparent 28%),
    linear-gradient(135deg, #FFFFFF 0%, #F5FAFC 52%, #EAF7F4 100%);
}
.hero-orb { position: absolute; border-radius: 50%; filter: blur(16px); opacity: .7; pointer-events: none; }
.hero-orb-one { width: 250px; height: 250px; right: 6%; top: 10%; background: rgba(0, 103, 216, .12); }
.hero-orb-two { width: 180px; height: 180px; left: 3%; bottom: -40px; background: rgba(0, 155, 119, .18); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.06fr .94fr; gap: 64px; align-items: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  font-weight: 900;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
h1, h2, h3, h4 { margin: 0; font-family: Montserrat, Inter, sans-serif; color: var(--navy); line-height: 1.08; }
h1 { max-width: 760px; margin-top: 18px; font-size: clamp(44px, 6vw, 76px); letter-spacing: -.05em; }
h2 { font-size: clamp(30px, 4vw, 48px); letter-spacing: -.035em; }
h3 { font-size: 24px; letter-spacing: -.02em; }
h4 { font-size: 18px; }
.hero-lead { max-width: 700px; margin: 24px 0 0; color: #46566D; font-size: 20px; }
.trust-row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 30px; color: var(--navy); font-size: 14px; font-weight: 800; }

.selector-card {
  position: relative;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 32px;
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.selector-topline { height: 6px; margin-bottom: 25px; border-radius: 999px; background: linear-gradient(90deg, var(--navy), var(--green)); }
.selector-kicker { color: var(--green); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.selector-card h2 { margin: 8px 0 18px; font-size: clamp(28px, 3vw, 38px); }
.select-wrap { position: relative; }
.select-wrap select {
  width: 100%;
  min-height: 58px;
  padding: 0 50px 0 17px;
  appearance: none;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  color: var(--navy);
  font-weight: 800;
}
.select-wrap > span { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--green); font-size: 24px; pointer-events: none; }
.selector-help { margin: 12px 0 18px; color: var(--muted); font-size: 13px; }
.selected-pain { margin: 17px 0; padding: 17px; border: 1px solid var(--line); border-radius: 18px; background: #F8FBFE; }
.selected-pain-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.selected-pain-head strong { color: var(--navy); font-family: Montserrat, Inter, sans-serif; }
.selected-pain-head span, .status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 155, 119, .12);
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.selected-pain-head span.coming, .status-pill.coming { background: var(--warning-soft); color: var(--warning); }
.selected-pain p { margin: 10px 0 6px; color: var(--graphite); font-weight: 700; }
.selected-pain small { display: block; color: var(--muted); }

.button {
  min-height: 50px;
  padding: 13px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: linear-gradient(135deg, var(--green), var(--green-light)); color: var(--white); box-shadow: 0 12px 24px rgba(0, 155, 119, .24); }
.button-primary:hover { box-shadow: 0 16px 30px rgba(0, 155, 119, .32); }
.button-secondary { border: 1px solid var(--line); background: var(--white); color: var(--navy); }
.button:disabled { cursor: not-allowed; transform: none; opacity: .5; box-shadow: none; }
.full-width { width: 100%; }
.small-button { min-height: 44px; padding: 10px 16px; font-size: 13px; }
.text-button { min-height: 44px; padding: 7px 6px; border: 0; background: transparent; color: var(--blue); font-weight: 900; }
.text-button:hover { color: var(--green); }

.workspace-section { min-height: 420px; padding: 86px 0; background: linear-gradient(180deg, #FFFFFF 0%, #F6FAFD 100%); }
.empty-workspace { max-width: 560px; margin: 70px auto; padding: 38px; text-align: center; border: 1px dashed #B9CADB; border-radius: 26px; background: rgba(255, 255, 255, .7); }
.empty-icon { width: 62px; height: 62px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 20px; background: var(--soft-green); color: var(--green); font-size: 30px; }
.empty-workspace h2 { font-size: 30px; }
.empty-workspace p { margin-bottom: 0; color: var(--muted); }

.route-panel, .coming-panel {
  max-width: 930px;
  margin: 0 auto;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}
.route-panel { display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center; }
.route-icon { width: 66px; height: 66px; display: grid; place-items: center; border-radius: 22px; background: var(--soft-green); color: var(--green); font-size: 30px; font-weight: 900; }
.route-panel h2 { margin: 10px 0 12px; font-size: 34px; }
.route-panel p { margin: 0; color: var(--muted); }
.route-points { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 16px; color: var(--navy); font-size: 13px; font-weight: 800; }
.coming-panel { text-align: center; }
.coming-visual { width: 76px; height: 76px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 24px; background: var(--warning-soft); color: var(--warning); font-size: 36px; }
.coming-panel h2 { margin: 16px 0 10px; }
.coming-panel > p { max-width: 650px; margin: 0 auto 14px; color: var(--muted); }
.coming-note { padding: 14px 18px; border-radius: 16px; background: #F8FBFE; }
.coming-panel .button { margin-top: 10px; }

.section-intro { display: grid; grid-template-columns: 1fr auto; gap: 34px; align-items: end; margin-bottom: 34px; }
.section-intro h2 { max-width: 820px; margin: 12px 0; }
.section-intro p { max-width: 790px; margin: 0; color: var(--muted); font-size: 18px; }
.budget-benefits { display: grid; gap: 9px; min-width: 230px; }
.budget-benefits span { padding: 10px 13px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); color: var(--navy); font-size: 13px; font-weight: 800; box-shadow: 0 8px 20px rgba(0, 43, 92, .05); }
.budget-benefits span::before { content: "✓"; margin-right: 8px; color: var(--green); }

.app-shell { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--white); box-shadow: var(--shadow); }
.progress-summary { display: flex; align-items: center; gap: 18px; padding: 18px 26px 0; }
.progress-summary > div:first-child { min-width: 105px; display: flex; align-items: baseline; gap: 8px; }
.progress-summary span { color: var(--green); font-size: 18px; font-weight: 900; }
.progress-summary small { color: var(--muted); font-size: 11px; font-weight: 700; }
.progress-track { flex: 1; height: 8px; overflow: hidden; border-radius: 999px; background: #E9F0F6; }
.progress-track span { display: block; width: 25%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--green)); transition: width .3s ease; }
.stepper { padding: 24px 26px 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; border-bottom: 1px solid var(--line); }
.stepper-item { min-height: 74px; padding: 12px; display: flex; align-items: center; gap: 11px; border: 1px solid transparent; border-radius: 16px; background: transparent; color: var(--muted); text-align: left; }
.stepper-item > span { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: #EAF0F6; color: var(--navy); font-weight: 900; }
.stepper-item div { min-width: 0; }
.stepper-item b, .stepper-item small { display: block; }
.stepper-item b { overflow: hidden; color: var(--navy); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.stepper-item small { margin-top: 3px; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.stepper-item.active { border-color: rgba(0, 155, 119, .3); background: var(--soft-green); }
.stepper-item.active > span { background: var(--green); color: var(--white); }
.stepper-item.complete > span { background: var(--navy); color: var(--white); }

.app-message { display: none; margin: 22px 26px 0; padding: 13px 16px; border: 1px solid rgba(180, 35, 24, .22); border-radius: 14px; background: var(--danger-soft); color: var(--danger); font-weight: 800; }
.app-message.show { display: block; }
.step-panel { display: none; padding: 34px 34px 38px; }
.step-panel.active { display: block; animation: panelIn .3s ease; }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.panel-heading { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 30px; }
.panel-number { width: 52px; height: 52px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 18px; background: var(--navy); color: var(--white); font-weight: 900; }
.panel-heading h3 { margin-bottom: 7px; font-size: 29px; }
.panel-heading p { margin: 0; color: var(--muted); }

.field-group { margin-bottom: 26px; }
.field-group label, .field-group legend { margin-bottom: 9px; color: var(--navy); font-weight: 800; }
.field-group label { display: block; }
.field-group legend { padding: 0; }
fieldset.field-group { padding: 0; border: 0; }
.field-group input[type="number"], .field-group select {
  width: 100%;
  min-height: 52px;
  border: 1px solid #C9D7E4;
  border-radius: 14px;
  background: var(--white);
  color: var(--graphite);
}
.field-group input[type="number"] { padding: 0 14px 0 48px; }
.field-group select { padding: 0 42px 0 14px; }
.field-group small { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; }
.field-group.invalid input, .field-group.invalid select, fieldset.invalid .choice-card span, fieldset.invalid .select-chip span, fieldset.invalid .category-chip span { border-color: var(--danger); }
.field-error { min-height: 18px; margin: 6px 0 0; color: var(--danger); font-size: 12px; font-weight: 800; }
.legend-help { margin: -3px 0 12px !important; }

.choice-grid { display: grid; gap: 12px; }
.profile-grid { grid-template-columns: repeat(5, 1fr); }
.choice-card { position: relative; cursor: pointer; }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card > span {
  min-height: 132px;
  padding: 18px 13px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  border: 2px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  text-align: center;
  transition: .2s ease;
}
.choice-card input:checked + span { border-color: var(--green); background: var(--soft-green); box-shadow: 0 10px 24px rgba(0, 155, 119, .12); }
.choice-card input:focus-visible + span { outline: 3px solid rgba(0, 103, 216, .4); outline-offset: 3px; }
.choice-icon { font-size: 26px; }
.choice-card b { color: var(--navy); font-size: 13px; }
.choice-card small { margin: 0; font-size: 11px; line-height: 1.3; }

.amount-layout { display: grid; grid-template-columns: 1fr 180px; gap: 18px; align-items: start; }
.amount-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.amount-card { min-height: 190px; margin: 0; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: #FBFDFE; }
.amount-card label { min-height: 48px; }
.amount-input { position: relative; }
.currency-symbol { position: absolute; left: 15px; top: 50%; z-index: 1; transform: translateY(-50%); color: var(--green); font-weight: 900; }
.medium-input { max-width: 420px; }
.currency-group { margin-top: 0; }
.privacy-note { display: flex; gap: 14px; align-items: flex-start; margin: 24px 0; padding: 18px; border: 1px solid rgba(0, 155, 119, .22); border-radius: 18px; background: var(--soft-green); }
.privacy-note > span { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; background: var(--white); }
.privacy-note b { color: var(--navy); }
.privacy-note p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.compact-note { margin-bottom: 5px; }
.mini-calculation { margin-top: 18px; padding: 17px 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; border-radius: 18px; background: var(--navy); color: var(--white); }
.mini-calculation span { font-weight: 800; }
.mini-calculation strong { margin-left: auto; color: #8DF0D8; font-size: 24px; }
.mini-calculation small { width: 100%; color: #C9D8E8; }

.select-chip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.select-chip, .category-chip { position: relative; cursor: pointer; }
.select-chip input, .category-chip input { position: absolute; opacity: 0; pointer-events: none; }
.select-chip span, .category-chip span { min-height: 54px; padding: 12px 14px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 15px; background: var(--white); color: var(--navy); font-size: 13px; font-weight: 800; text-align: center; transition: .2s ease; }
.select-chip input:checked + span, .category-chip input:checked + span { border-color: var(--green); background: var(--soft-green); color: #006F55; box-shadow: inset 0 0 0 1px var(--green); }
.select-chip input:focus-visible + span, .category-chip input:focus-visible + span { outline: 3px solid rgba(0, 103, 216, .4); outline-offset: 3px; }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.category-chip span { min-height: 66px; }
.category-chip.disabled { opacity: .45; cursor: not-allowed; }
.two-column { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

.panel-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.panel-actions-end { justify-content: flex-end; }
.generate-button { min-width: 240px; flex-direction: column; gap: 0; }
.generate-button small { font-size: 10px; font-weight: 700; opacity: .88; }

.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.review-card { min-height: 96px; padding: 16px; border: 1px solid var(--line); border-radius: 17px; background: #F8FBFE; }
.review-card span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.review-card strong { display: block; color: var(--navy); line-height: 1.35; }
.wide-review { grid-column: span 3; }
.what-you-get { margin-top: 24px; padding: 22px; border-radius: 20px; background: var(--navy); }
.what-you-get h4 { margin-bottom: 15px; color: var(--white); }
.deliverable-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.deliverable-grid div { min-height: 78px; padding: 13px; border: 1px solid rgba(255, 255, 255, .15); border-radius: 14px; background: rgba(255, 255, 255, .08); color: var(--white); font-size: 12px; font-weight: 800; }
.deliverable-grid span { display: block; margin-bottom: 7px; color: #7BE9CE; }

.results-section { padding: 86px 0 100px; background: #F3F7FA; }
.result-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 26px; }
.result-header h2 { margin: 10px 0 8px; }
.result-header p { margin: 0; color: var(--muted); }
.result-header-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.disclaimer-banner { margin-bottom: 18px; padding: 17px 20px; display: flex; align-items: flex-start; gap: 14px; border: 1px solid #E5C575; border-radius: 18px; background: #FFF9E8; }
.disclaimer-banner > span { color: var(--warning); font-size: 22px; }
.disclaimer-banner b { color: #6C4A00; }
.disclaimer-banner p { margin: 3px 0 0; color: #785D22; font-size: 13px; }
.diagnosis-card { padding: 30px; display: grid; grid-template-columns: 1.35fr .65fr; gap: 28px; border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--white); box-shadow: var(--shadow-soft); }
.diagnosis-label { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.diagnosis-label span { padding: 6px 10px; border-radius: 999px; background: var(--soft-green); color: var(--green); font-size: 12px; font-weight: 900; }
.diagnosis-label span.critical { background: var(--danger-soft); color: var(--danger); }
.diagnosis-label span.tight { background: var(--warning-soft); color: var(--warning); }
.diagnosis-label small { color: var(--muted); font-weight: 700; }
.diagnosis-main h3 { margin: 16px 0 10px; font-size: 31px; }
.diagnosis-main > p { color: var(--muted); font-size: 16px; }
.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.metric-card { min-height: 110px; padding: 16px; display: flex; flex-direction: column; justify-content: center; border: 1px solid var(--line); border-radius: 18px; background: #F8FBFE; }
.metric-card span { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.metric-card strong { margin: 5px 0; color: var(--navy); font-family: Montserrat, Inter, sans-serif; font-size: 22px; }
.metric-card small { color: var(--muted); font-size: 11px; }
.metric-card.accent { border-color: rgba(0, 155, 119, .25); background: var(--soft-green); }
.cashflow-block { margin-top: 22px; }
.cashflow-label { display: flex; justify-content: space-between; gap: 12px; color: var(--navy); font-size: 13px; font-weight: 800; }
.cashflow-track { height: 16px; margin: 10px 0 12px; display: flex; overflow: hidden; border-radius: 999px; background: #E9F0F6; }
.cashflow-segment { min-width: 0; height: 100%; }
.cashflow-segment.essential { background: var(--navy); }
.cashflow-segment.variable { background: var(--blue); }
.cashflow-segment.debt { background: #E58A00; }
.cashflow-segment.savings { background: var(--green); }
.cashflow-segment.remaining { background: #A8D7CB; }
.cashflow-legend { display: flex; gap: 12px; flex-wrap: wrap; }
.cashflow-legend span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 700; }
.cashflow-legend i { width: 9px; height: 9px; display: inline-block; border-radius: 50%; }
.cashflow-legend i.essential { background: var(--navy); }
.cashflow-legend i.variable { background: var(--blue); }
.cashflow-legend i.debt { background: #E58A00; }
.cashflow-legend i.savings { background: var(--green); }
.cashflow-legend i.remaining { background: #A8D7CB; }
.cashflow-legend i.deficit { background: var(--danger); }

.result-block { margin-top: 20px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); box-shadow: 0 10px 28px rgba(0, 43, 92, .05); }
.block-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 22px; }
.block-kicker { display: inline-flex; min-width: 32px; min-height: 28px; align-items: center; justify-content: center; margin-bottom: 8px; padding: 4px 9px; border-radius: 999px; background: var(--soft-green); color: var(--green); font-size: 11px; font-weight: 900; }
.compact-heading { margin-bottom: 16px; }
.attention-grid, .adjustment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.attention-card, .adjustment-card { min-height: 205px; padding: 20px; border: 1px solid var(--line); border-radius: 19px; background: #FAFCFE; }
.attention-card .card-index, .adjustment-card .card-index { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 13px; background: var(--navy); color: var(--white); font-weight: 900; }
.attention-card h4, .adjustment-card h4 { margin: 16px 0 9px; }
.attention-card p, .adjustment-card p { margin: 0; color: var(--muted); font-size: 13px; }
.attention-card strong, .adjustment-card strong { display: block; margin-top: 14px; color: var(--green); font-size: 12px; }
.seven-day-grid { display: grid; grid-template-columns: repeat(7, minmax(150px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x proximity; }
.day-card { min-height: 210px; padding: 17px; border: 1px solid var(--line); border-radius: 18px; background: #FBFDFE; scroll-snap-align: start; }
.day-card:first-child { border-color: rgba(0, 155, 119, .3); background: var(--soft-green); }
.day-card span { color: var(--green); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.day-card h4 { margin: 11px 0 9px; font-size: 16px; }
.day-card p { margin: 0; color: var(--muted); font-size: 12px; }
.result-grid-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.goal-card p, .follow-card p { color: var(--graphite); font-size: 17px; font-weight: 700; }
.goal-meter { height: 10px; overflow: hidden; margin: 18px 0 10px; border-radius: 999px; background: #E9F0F6; }
.goal-meter span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--green)); }
.goal-card small { color: var(--muted); }
.review-list { margin: 0; padding: 0; display: grid; gap: 10px; list-style: none; }
.review-list li { position: relative; padding: 12px 12px 12px 38px; border-radius: 14px; background: #F8FBFE; }
.review-list li::before { content: "✓"; position: absolute; left: 13px; top: 12px; color: var(--green); font-weight: 900; }
.ai-card { background: linear-gradient(145deg, #FFFFFF, #F1FAF7); }
.ai-card textarea { width: 100%; min-height: 270px; padding: 16px; resize: vertical; border: 1px solid #C7D8E3; border-radius: 16px; background: var(--white); color: var(--graphite); line-height: 1.5; }
.ai-card > p { color: var(--muted); font-size: 13px; }

.feedback-card, .upgrade-card { margin-top: 20px; padding: 28px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; border-radius: var(--radius-lg); }
.feedback-card { border: 1px solid var(--line); background: var(--white); }
.feedback-card h3, .upgrade-card h3 { margin: 4px 0 8px; }
.feedback-card p { margin: 0; color: var(--muted); }
.feedback-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.feedback-actions button { min-height: 44px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--navy); font-weight: 800; }
.feedback-actions button.selected { border-color: var(--green); background: var(--soft-green); color: var(--green); }
.feedback-message { grid-column: 1 / -1; min-height: 18px; color: var(--green) !important; font-size: 13px; font-weight: 800; }
.upgrade-card { background: linear-gradient(135deg, var(--navy), var(--navy-deep)); color: var(--white); }
.upgrade-card h3 { color: var(--white); }
.upgrade-card p { margin: 0; color: #C9D8E8; }
.upgrade-label { color: #78E7CC; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
.upgrade-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.upgrade-card .button-secondary { border-color: rgba(255, 255, 255, .25); background: transparent; color: var(--white); }

.app-footer { padding: 46px 0; background: #001D3D; color: #C9D8E8; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 36px; align-items: start; }
.footer-inner img { width: 140px; padding: 8px; border-radius: 12px; background: var(--white); }
.footer-inner p { max-width: 420px; margin: 10px 0 0; font-size: 13px; }
.footer-inner b { color: var(--white); }
.footer-inner nav { display: grid; gap: 8px; }
.footer-inner a { color: var(--white); font-weight: 700; }
.footer-inner a:hover { color: #77E5CB; }

.chat-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  min-height: 54px;
  padding: 10px 17px 10px 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 16px 38px rgba(0, 43, 92, .3);
  font-weight: 900;
}
.chat-launcher-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--green); }
.chat-panel {
  position: fixed;
  right: 22px;
  bottom: 88px;
  z-index: 90;
  width: min(390px, calc(100vw - 32px));
  max-height: min(680px, calc(100vh - 120px));
  display: grid;
  grid-template-rows: auto auto minmax(150px, 1fr) auto auto;
  overflow: hidden;
  border: 1px solid rgba(0, 43, 92, .14);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 24px 70px rgba(0, 25, 50, .28);
  opacity: 0;
  transform: translateY(16px) scale(.98);
  pointer-events: none;
  transition: .22s ease;
}
.chat-panel.open { opacity: 1; transform: none; pointer-events: auto; }
.chat-header { padding: 18px; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; background: linear-gradient(135deg, var(--navy), #004786); color: var(--white); }
.chat-header h2 { margin: 4px 0 2px; color: var(--white); font-size: 20px; }
.chat-header p { margin: 0; color: #CDE0F0; font-size: 11px; }
.chat-mode { display: inline-flex; padding: 3px 8px; border-radius: 999px; background: rgba(119, 229, 203, .16); color: #8DF0D8; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.chat-close { width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; background: rgba(255, 255, 255, .08); color: var(--white); font-size: 24px; }
.chat-context { padding: 12px 15px; border-bottom: 1px solid var(--line); background: #F8FBFE; }
.chat-context label { display: flex; gap: 8px; align-items: flex-start; color: var(--navy); font-size: 12px; font-weight: 800; }
.chat-context input { width: 17px; height: 17px; flex: 0 0 auto; accent-color: var(--green); }
.chat-context small { display: block; margin: 6px 0 0 25px; color: var(--muted); font-size: 10px; }
.chat-messages { overflow-y: auto; padding: 15px; display: flex; flex-direction: column; gap: 10px; background: var(--white); }
.chat-message { max-width: 86%; padding: 11px 13px; border-radius: 15px; font-size: 13px; line-height: 1.45; }
.chat-message small { display: block; margin-bottom: 4px; font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.chat-message.assistant { align-self: flex-start; border: 1px solid var(--line); border-bottom-left-radius: 5px; background: #F5F8FB; color: var(--graphite); }
.chat-message.assistant small { color: var(--green); }
.chat-message.user { align-self: flex-end; border-bottom-right-radius: 5px; background: var(--navy); color: var(--white); }
.chat-message.user small { color: #8DF0D8; }
.chat-message.loading { opacity: .7; }
.chat-quick-actions { padding: 10px 13px; display: flex; gap: 7px; overflow-x: auto; border-top: 1px solid var(--line); background: #FBFDFE; }
.chat-quick-actions button { flex: 0 0 auto; min-height: 34px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--navy); font-size: 10px; font-weight: 800; }
.chat-form { padding: 12px; display: grid; grid-template-columns: 1fr auto; gap: 8px; border-top: 1px solid var(--line); }
.chat-form input { min-width: 0; min-height: 44px; padding: 0 13px; border: 1px solid #C9D7E4; border-radius: 13px; }
.chat-form button { min-height: 44px; padding: 0 14px; border: 0; border-radius: 13px; background: var(--green); color: var(--white); font-weight: 900; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 120;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 800;
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; gap: 42px; }
  .selector-card { max-width: 700px; }
  .profile-grid { grid-template-columns: repeat(3, 1fr); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .stepper { grid-template-columns: repeat(2, 1fr); }
  .diagnosis-card { grid-template-columns: 1fr; }
  .attention-grid, .adjustment-grid { grid-template-columns: repeat(2, 1fr); }
  .attention-card:last-child, .adjustment-card:last-child { grid-column: span 2; }
  .deliverable-grid { grid-template-columns: repeat(3, 1fr); }
  .route-panel { grid-template-columns: auto 1fr; }
  .route-panel .button { grid-column: 2; justify-self: start; }
}

@media (max-width: 760px) {
  .utility-bar { justify-content: flex-start; }
  .header-inner { min-height: 74px; }
  .brand img { width: 118px; }
  .back-link { display: none; }
  .quick-hero { padding: 56px 0 50px; }
  h1 { font-size: clamp(40px, 13vw, 58px); }
  .hero-lead { font-size: 17px; }
  .selector-card { padding: 22px; border-radius: 25px; }
  .selector-card h2 { font-size: 28px; }
  .workspace-section, .results-section { padding: 58px 0 72px; }
  .section-intro { grid-template-columns: 1fr; align-items: start; }
  .budget-benefits { grid-template-columns: repeat(3, 1fr); min-width: 0; }
  .budget-benefits span { padding: 9px; font-size: 11px; text-align: center; }
  .app-shell { border-radius: 23px; }
  .stepper { display: flex; overflow-x: auto; padding: 16px; scroll-snap-type: x mandatory; }
  .stepper-item { min-width: 185px; scroll-snap-align: start; }
  .step-panel { padding: 24px 18px 28px; }
  .progress-summary { padding: 16px 18px 0; }
  .panel-heading h3 { font-size: 25px; }
  .panel-number { width: 46px; height: 46px; border-radius: 15px; }
  .profile-grid { grid-template-columns: repeat(2, 1fr); }
  .choice-card > span { min-height: 120px; }
  .amount-layout, .amount-grid, .two-column { grid-template-columns: 1fr; }
  .amount-card { min-height: 0; }
  .amount-card label { min-height: 0; }
  .select-chip-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: repeat(2, 1fr); }
  .wide-review { grid-column: span 2; }
  .deliverable-grid { grid-template-columns: repeat(2, 1fr); }
  .panel-actions { align-items: stretch; flex-direction: column-reverse; }
  .panel-actions > * { width: 100%; }
  .panel-actions-end { flex-direction: column; }
  .result-header { align-items: flex-start; flex-direction: column; }
  .result-header-actions { width: 100%; justify-content: flex-start; }
  .result-header-actions .button { flex: 1; }
  .diagnosis-card, .result-block { padding: 21px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .attention-grid, .adjustment-grid, .result-grid-two { grid-template-columns: 1fr; }
  .attention-card:last-child, .adjustment-card:last-child { grid-column: auto; }
  .feedback-card, .upgrade-card { grid-template-columns: 1fr; padding: 22px; }
  .feedback-actions, .upgrade-actions { justify-content: flex-start; }
  .footer-inner { grid-template-columns: 1fr; gap: 22px; }
  .route-panel { grid-template-columns: 1fr; text-align: center; }
  .route-icon { margin: 0 auto; }
  .route-panel .button { grid-column: auto; justify-self: stretch; }
  .route-points { justify-content: center; }
  .chat-launcher { right: 14px; bottom: 14px; padding-right: 12px; }
  .chat-launcher > span:last-child { max-width: 140px; font-size: 11px; text-align: left; }
  .chat-panel { right: 8px; bottom: 78px; width: calc(100vw - 16px); max-height: calc(100vh - 96px); border-radius: 22px; }
}

@media (max-width: 480px) {
  .shell { width: min(100% - 24px, 1160px); }
  .utility-bar { padding-inline: 12px; font-size: 11px; }
  .privacy-pill { width: 100%; justify-content: center; }
  .trust-row { gap: 10px; flex-direction: column; }
  .profile-grid, .select-chip-grid, .category-grid { grid-template-columns: 1fr; }
  .category-chip span, .select-chip span { min-height: 52px; }
  .budget-benefits { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .wide-review { grid-column: auto; }
  .deliverable-grid { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: 1fr; }
  .result-header-actions .button { width: 100%; flex: auto; }
  .mini-calculation strong { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media print {
  @page { margin: 12mm; }
  body { background: var(--white); color: #111; }
  .utility-bar, .app-header, .quick-hero, .workspace-section, .app-footer, .no-print, .chat-panel, .toast { display: none !important; }
  .results-section { padding: 0; background: var(--white); }
  .shell { width: 100%; }
  .result-header { margin-bottom: 12px; }
  .print-card, .result-block, .diagnosis-card { break-inside: avoid; box-shadow: none; }
  .diagnosis-card, .result-block { padding: 16px; }
  .seven-day-grid { grid-template-columns: repeat(4, 1fr); overflow: visible; }
  .day-card { min-height: 0; }
  .ai-card textarea { min-height: 210px; border-color: #999; }
}

/* Contextual pain illustration */
.selected-pain{display:grid;grid-template-columns:112px minmax(0,1fr);gap:16px;align-items:center}
.selected-pain[hidden]{display:none}
.selected-pain-image{width:112px;height:82px;display:block;object-fit:cover;border-radius:15px;border:1px solid var(--line);background:#EDF5FA}
.selected-pain-copy{min-width:0}
@media(max-width:520px){.selected-pain{grid-template-columns:1fr}.selected-pain-image{width:100%;height:auto;aspect-ratio:16/8}}
