:root {
  --page: #f5f6f9;
  --surface: #ffffff;
  --ink: #111623;
  --ink2: #586173;
  --ink3: #98a1b2;
  --line: #e4e8f0;
  --fill: #f1f3f8;
  --navy: #16203b;
  --navy2: #27324f;
  --blue: #2b55ec;
  --blue-edge: #1c3bc4;
  --blue-soft: #ecf0ff;
  --gold: #c79a4b;
  --gold-deep: #a37a33;
  --gold-soft: #fbf3e2;
  --gold-ink: #8a6420;
  --green: #109d69;
  --green-deep: #0b7a52;
  --green-soft: #e5f6ee;
  --green-ink: #0b7a52;
  --red: #d4544a;
  --track: #e6e9f0;
  --edge: #d6dbe6;
  --edge-dim: #e8ebf2;
  --body: #39414f;
  --canvas: #dfe3ea;
  --font: "Plus Jakarta Sans", "Noto Sans SC", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

:root[data-theme="dark"] {
  --page: #0f1422;
  --surface: #1b2234;
  --ink: #f0f3fa;
  --ink2: #9aa4bc;
  --ink3: #637092;
  --line: #2b3450;
  --fill: #232c44;
  --navy: #2a3554;
  --navy2: #3e4e7c;
  --blue: #5b7bff;
  --blue-edge: #3650c9;
  --blue-soft: #232c4e;
  --gold: #d2a55c;
  --gold-deep: #9a7838;
  --gold-soft: #2e2818;
  --gold-ink: #e8c98a;
  --green: #1fb47e;
  --green-deep: #0e8a5f;
  --green-soft: #142e26;
  --green-ink: #7ce0b8;
  --red: #e0685e;
  --track: #252e47;
  --edge: #0b0f1b;
  --edge-dim: #141a2b;
  --body: #c7cedf;
  --canvas: #070a12;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  width: min(430px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--page);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(7, 10, 18, 0.18);
}

.screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--page);
}

.scroll-screen {
  min-height: 100vh;
  overflow-y: auto;
  background: var(--page);
}

.screen-pad {
  padding: calc(28px + env(safe-area-inset-top)) 20px calc(22px + env(safe-area-inset-bottom));
}

.step-in {
  animation: stepIn 340ms cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

.topbar,
.wizard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wizard-topbar {
  padding: calc(24px + env(safe-area-inset-top)) 20px 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  object-fit: cover;
  display: block;
  box-shadow: inset 0 0 0 3px rgba(199, 154, 75, 0.55), 0 6px 16px rgba(22, 32, 59, 0.3);
}

.brand-title {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.1;
}

.brand-subtitle {
  margin-top: 2px;
  color: var(--ink2);
  font-size: 11.5px;
  line-height: 1.35;
}

.icon-btn,
.back-btn {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.back-btn {
  flex: 0 0 auto;
}

.inline-back {
  border: 0;
  background: transparent;
  color: var(--ink2);
  font-size: 13.5px;
  font-weight: 700;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.progress {
  flex: 1;
  height: 12px;
  border-radius: 7px;
  background: var(--track);
  overflow: hidden;
}

.progress-fill {
  width: var(--value, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
  position: relative;
  transition: width 350ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

.progress-fill::after {
  content: "";
  position: absolute;
  left: 7px;
  right: 7px;
  top: 3px;
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.35);
}

.count {
  font-family: var(--mono);
  color: var(--ink3);
  font-size: 12px;
  font-weight: 600;
}

.buddy-row {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin: 24px 0 16px;
}

.buddy {
  --size: 62px;
  width: var(--size);
  height: calc(var(--size) * 0.94);
  flex: 0 0 auto;
  position: relative;
}

.buddy-body {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 36%;
  background: linear-gradient(155deg, var(--navy2), var(--navy));
  box-shadow: 0 14px 30px rgba(22, 32, 59, 0.32);
}

.buddy-ring {
  position: absolute;
  inset: 5%;
  border-radius: 33%;
  border: 1.5px solid rgba(199, 154, 75, 0.5);
}

.buddy-eyes {
  position: absolute;
  top: 32%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: calc(var(--size) * 0.15);
  transform-origin: center;
}

.buddy-eye {
  width: calc(var(--size) * 0.17);
  height: calc(var(--size) * 0.185);
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.buddy-pupil {
  width: calc(var(--size) * 0.078);
  height: calc(var(--size) * 0.078);
  border-radius: 50%;
  background: var(--navy);
  transform: translate(1px, 1.5px);
}

.buddy-mouth {
  position: absolute;
  width: 26%;
  height: 13%;
  top: 61%;
  left: 50%;
  transform: translateX(-50%);
}

.buddy-blush {
  position: absolute;
  width: 9%;
  height: 9%;
  top: 58%;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.32;
}

.buddy-blush.left {
  left: 14%;
}

.buddy-blush.right {
  right: 14%;
}

.buddy-arm {
  position: absolute;
  z-index: 1;
  width: 30%;
  height: 11.5%;
  border-radius: 999px;
  background: var(--navy2);
  border: 2px solid var(--navy);
}

.buddy-arm.wave {
  right: -21%;
  top: 26%;
  transform-origin: 8% 50%;
}

.buddy-arm.left-cheer {
  left: -17%;
  top: 10%;
  transform: rotate(-52deg);
}

.buddy-arm.right-cheer {
  right: -17%;
  top: 10%;
  transform: rotate(52deg);
  animation-delay: 120ms;
}

.bubble {
  position: relative;
  flex: 1;
  background: var(--surface);
  color: var(--ink);
  border: 2px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.45;
}

.bubble.small {
  font-size: 16px;
}

.bubble::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 22px;
  width: 13px;
  height: 13px;
  background: var(--surface);
  border-left: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  transform: rotate(45deg);
}

.bubble-note {
  margin: -6px 0 18px 75px;
  color: var(--ink2);
  font-size: 12.5px;
  line-height: 1.55;
}

.accent {
  color: var(--blue);
}

.motto {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}

.diamond {
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--gold);
  transform: rotate(45deg);
  display: inline-block;
}

.trust-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 13px 0 20px;
}

.trust-chip,
.mono-chip,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink2);
  font-size: 11.5px;
  font-weight: 700;
  padding: 8px 11px;
}

.mono-chip {
  font-family: var(--mono);
  color: var(--green-ink);
  background: var(--green-soft);
  border: 0;
  width: fit-content;
}

.press,
.primary-btn,
.option-card,
.product-card,
.secondary-row,
.chip-btn {
  transition: transform 70ms ease, box-shadow 70ms ease, border-color 150ms ease, background 150ms ease;
}

.press:active,
.primary-btn:active,
.option-card:active,
.product-card:active,
.secondary-row:active,
.chip-btn:active {
  transform: translateY(3px);
  box-shadow: none !important;
}

.primary-btn {
  width: 100%;
  border: 0;
  border-radius: 16px;
  padding: 16px;
  background: var(--blue);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--blue-edge);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.primary-btn:disabled {
  color: var(--ink3);
  background: var(--fill);
  box-shadow: none;
  cursor: default;
}

.ghost-link {
  border: 0;
  background: transparent;
  color: var(--ink3);
  font-size: 13.5px;
  font-weight: 700;
  padding: 13px 8px 0;
  cursor: pointer;
}

.welcome-screen {
  position: relative;
  overflow: hidden;
}

.welcome-theme {
  position: absolute;
  top: calc(58px + env(safe-area-inset-top));
  right: 20px;
  z-index: 3;
}

.welcome-layout {
  min-height: 100vh;
  min-height: 100svh;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.welcome-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: calc(54px + env(safe-area-inset-top)) 28px 0;
  text-align: center;
}

.welcome-buddy-row {
  justify-content: center;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  max-width: 320px;
  margin: 0 0 30px;
}

.welcome-buddy-row .bubble {
  flex: 0 1 208px;
  max-width: 208px;
  padding: 12px 14px;
  text-align: center;
  font-size: 14.5px;
  line-height: 1.48;
}

.welcome-title {
  max-width: 310px;
  margin: 0 auto 12px;
  text-align: center;
  font-size: 26px;
  line-height: 1.3;
  text-wrap: balance;
}

.welcome-subtitle {
  max-width: 280px;
  margin: 0 auto;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
}

.welcome-actions {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 16px 24px calc(18px + env(safe-area-inset-bottom));
}

.welcome-primary {
  min-height: 56px;
  border-radius: 16px;
  font-size: 16.5px;
}

.welcome-skip {
  justify-self: center;
  padding-top: 10px;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.product-card {
  min-height: 132px;
  border: 2px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 4px 0 var(--edge-dim);
  color: var(--ink);
  cursor: pointer;
  padding: 15px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.icon-tile {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--blue-soft);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card strong {
  display: block;
  color: var(--ink);
  font-size: 19px;
  font-weight: 800;
}

.product-card .de {
  margin-top: 5px;
  font-family: var(--mono);
  color: var(--ink3);
  font-size: 10px;
  letter-spacing: 0.16em;
  font-weight: 600;
}

.secondary-list {
  margin-top: 18px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}

.secondary-row {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 14px 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  cursor: pointer;
}

.secondary-row:last-child {
  border-bottom: 0;
}

.secondary-row .text {
  flex: 1;
  min-width: 0;
}

.secondary-row strong {
  display: block;
  font-size: 14.5px;
  font-weight: 800;
}

.secondary-row span {
  display: block;
  color: var(--ink2);
  font-size: 12px;
  margin-top: 2px;
}

.option-list {
  display: grid;
  gap: 12px;
}

.option-card {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 4px 0 var(--edge-dim);
  padding: 15px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  cursor: pointer;
}

.option-card.selected {
  border-color: var(--blue);
  background: var(--blue-soft);
  box-shadow: 0 4px 0 var(--blue-edge);
}

.option-card.dim {
  opacity: 0.45;
}

.option-card .option-copy {
  flex: 1;
  min-width: 0;
}

.option-card strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.28;
}

.option-card span {
  display: block;
  color: var(--ink2);
  font-size: 12.5px;
  line-height: 1.45;
  margin-top: 3px;
}

.check-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex: 0 0 auto;
}

.selected .check-dot {
  border-color: var(--blue);
  background: var(--blue);
}

.form-field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.field-grid {
  display: grid;
  gap: 12px;
}

.field-grid.two {
  grid-template-columns: minmax(0, 1.45fr) minmax(92px, 0.55fr);
}

.form-field label {
  color: var(--ink2);
  font-size: 12.5px;
  font-weight: 800;
}

.input,
.textarea {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  outline: none;
  padding: 15px 16px;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 3px 0 var(--edge-dim);
}

.textarea {
  min-height: 132px;
  resize: vertical;
  line-height: 1.6;
  font-size: 15px;
}

.input:focus,
.textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-soft);
}

.estimate-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: -2px;
  border-radius: 16px;
  background: var(--blue-soft);
  color: var(--ink);
  padding: 12px 14px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.55;
}

.estimate-card svg {
  flex: 0 0 auto;
  color: var(--blue);
  margin-top: 1px;
}

.estimate-card strong {
  color: var(--blue);
}

.bill-upload-drop {
  min-height: 126px;
  border: 2px dashed var(--line);
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink);
  display: grid;
  place-items: center;
  gap: 7px;
  padding: 18px 16px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--edge-dim);
}

.bill-upload-drop svg {
  color: var(--blue);
}

.bill-upload-drop strong {
  font-size: 16px;
  font-weight: 800;
}

.bill-upload-drop span {
  max-width: 280px;
  color: var(--ink2);
  font-size: 12.5px;
  line-height: 1.5;
}

.recognition-status {
  margin-top: 12px;
  border-radius: 16px;
  background: var(--fill);
  color: var(--ink2);
  padding: 12px 14px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.55;
}

.recognition-status.loading {
  color: var(--blue);
  background: var(--blue-soft);
}

.recognition-status.ok {
  color: var(--green-ink);
  background: var(--green-soft);
}

.recognition-status.warn {
  color: var(--gold-ink);
  background: var(--gold-soft);
}

.recognize-btn {
  width: 100%;
  margin-top: 12px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  padding: 13px 14px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.recognize-btn:disabled {
  color: var(--ink3);
  background: var(--fill);
  cursor: default;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.chip-btn {
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.chip-btn.selected {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.hint {
  color: var(--ink3);
  font-size: 12px;
  text-align: center;
  margin-top: 16px;
}

.error {
  min-height: 20px;
  color: var(--red);
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
  margin: 8px 0 0;
}

.bottom-actions {
  margin-top: auto;
  padding: 10px 20px calc(16px + env(safe-area-inset-bottom));
}

.feedback-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  width: min(430px, 100%);
  transform: translateX(-50%);
  z-index: 20;
  border-radius: 26px 26px 0 0;
  background: var(--green-soft);
  color: var(--body);
  padding: 22px 20px calc(18px + env(safe-area-inset-bottom));
  box-shadow: 0 -12px 36px rgba(20, 30, 60, 0.16);
  animation: sheetUp 340ms cubic-bezier(0.2, 0.75, 0.3, 1) both;
}

.feedback-sheet.gold {
  background: var(--gold-soft);
}

.feedback-sheet h3 {
  margin: 0 0 8px;
  color: var(--green-ink);
  font-size: 18.5px;
  font-weight: 800;
}

.feedback-sheet.gold h3 {
  color: var(--gold-ink);
}

.feedback-sheet p {
  margin: 0 0 14px;
  color: var(--body);
  font-size: 14px;
  line-height: 1.62;
}

.mini-chart {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 16px;
  padding: 13px 10px;
  margin: 13px 0;
}

:root[data-theme="dark"] .mini-chart {
  background: rgba(255, 255, 255, 0.07);
}

.bar-item {
  min-height: 110px;
  display: grid;
  grid-template-rows: 72px auto;
  align-items: end;
  text-align: center;
  gap: 8px;
}

.bar {
  width: 24px;
  height: var(--h);
  border-radius: 9px 9px 4px 4px;
  background: var(--c);
  margin: 0 auto;
  transform-origin: bottom;
  animation: barGrow 450ms ease both;
}

.bar-label {
  color: var(--ink2);
  font-size: 10.5px;
  line-height: 1.35;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.promise-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.promise-card {
  border: 1.5px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  padding: 14px 15px;
}

.promise-card strong {
  display: block;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 800;
}

.promise-card span {
  color: var(--ink2);
  font-size: 12px;
}

.done-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 24px 12px;
}

.done-wrap.ready {
  justify-content: flex-start;
}

.status-kicker {
  font-family: var(--mono);
  color: var(--blue);
  font-size: 11px;
  letter-spacing: 0.2em;
  font-weight: 600;
  margin-bottom: 8px;
}

.status-kicker.success {
  color: var(--green);
}

.status-kicker.failed {
  color: var(--red);
}

.done-title {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
}

.stage-dots {
  display: flex;
  gap: 7px;
  width: 100%;
  max-width: 290px;
  margin: 0 auto 24px;
}

.stage-dots span {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: var(--line);
}

.stage-dots span.on {
  background: var(--blue);
}

.pulse-wrap {
  position: relative;
  margin-bottom: 20px;
}

.pulse-wrap::before {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 46%;
  border: 2px solid var(--blue);
  opacity: 0.3;
  animation: genpulse 1.6s ease-out infinite;
}

.summary-card {
  width: 100%;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  margin: 12px 0 14px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
}

.summary-row:first-child {
  border-top: 0;
}

.summary-row span:first-child {
  color: var(--ink2);
  font-size: 13px;
  font-weight: 500;
}

.info-card {
  width: 100%;
  border-radius: 16px;
  background: var(--blue-soft);
  color: var(--ink);
  padding: 13px 15px;
  text-align: left;
  font-size: 12.5px;
  line-height: 1.55;
  margin-bottom: 14px;
}

.service-hero {
  position: relative;
  overflow: hidden;
  padding: calc(84px + env(safe-area-inset-top)) 20px 0;
  background: linear-gradient(165deg, #27324f, #16203b 60%);
}

.service-hero::before,
.service-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(199, 154, 75, 0.55);
  opacity: 0.42;
}

.service-hero::before {
  top: -70px;
  right: -70px;
  width: 220px;
  height: 220px;
}

.service-hero::after {
  top: -30px;
  right: -30px;
  width: 140px;
  height: 140px;
}

.hero-back {
  position: absolute;
  top: calc(24px + env(safe-area-inset-top));
  left: 20px;
  z-index: 4;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.service-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 2;
  margin-bottom: 18px;
}

.service-brand h1 {
  margin: 0;
  color: #fff;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: 0;
}

.service-brand p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12.5px;
  font-weight: 600;
}

.hero-pill {
  margin-top: 9px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(199, 154, 75, 0.55);
  border-radius: 999px;
  padding: 5px 11px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
}

.promise-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 -20px;
  padding: 15px 10px 17px;
  background: rgba(0, 0, 0, 0.18);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.promise-strip-item {
  text-align: center;
  padding: 0 6px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.promise-strip-item:first-child {
  border-left: 0;
}

.promise-strip-icon {
  width: 34px;
  height: 34px;
  border: 1.5px solid #c79a4b;
  border-radius: 50%;
  color: #c79a4b;
  margin: 0 auto 7px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.promise-strip-item strong {
  display: block;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.promise-strip-item span {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10.5px;
  line-height: 1.4;
}

.section {
  margin-bottom: 26px;
  padding: 0 20px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 13px;
}

.section-title::before {
  content: "";
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: #c79a4b;
}

.section-title h2 {
  margin: 0;
  color: var(--ink);
  font-size: 16.5px;
  font-weight: 800;
}

.scope-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.scope-card,
.timeline,
.checklist {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 17px;
}

.scope-card {
  padding: 15px 14px;
}

.scope-card strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  margin-top: 11px;
}

.scope-card span {
  color: var(--ink2);
  font-size: 11.5px;
  line-height: 1.45;
}

.green-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 12px;
  border-radius: 14px;
  background: var(--green-soft);
  color: var(--green-ink);
  padding: 13px 15px;
  font-size: 12.5px;
  line-height: 1.55;
  font-weight: 700;
}

.timeline {
  padding: 17px 16px;
}

.timeline-item {
  display: flex;
  gap: 13px;
  position: relative;
  padding-bottom: 17px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 28px;
  bottom: 2px;
  width: 2px;
  border-radius: 1px;
  background: var(--line);
}

.timeline-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--fill);
  color: var(--ink2);
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 800;
}

.timeline-item:first-child .timeline-num {
  background: var(--blue);
  color: #fff;
}

.timeline-copy strong {
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 800;
}

.timeline-copy span {
  display: block;
  color: var(--ink2);
  font-size: 12px;
  margin-top: 2px;
}

.checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 10px;
  padding: 15px 16px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.tiny-check {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-card {
  margin: 0 20px;
  border-radius: 20px;
  background: linear-gradient(165deg, #27324f, #16203b);
  color: #fff;
  text-align: center;
  padding: 22px 20px;
  overflow: hidden;
}

.cta-card h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.4;
}

.cta-card p {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
}

.gold-btn {
  margin-top: 16px;
  background: #c79a4b;
  color: #16203b;
  box-shadow: 0 4px 0 #8a6420;
}

.file-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.file-tile,
.upload-tile {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  background: var(--fill);
  border: 1.5px solid var(--line);
  color: var(--ink2);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 10px;
  font-weight: 800;
}

.upload-tile {
  border: 2px dashed var(--ink3);
  cursor: pointer;
}

.file-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.remove-file {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.hidden-input {
  display: none;
}

.success-panel {
  text-align: center;
  padding: calc(76px + env(safe-area-inset-top)) 24px calc(18px + env(safe-area-inset-bottom));
}

.success-panel h1,
.onboard-title {
  color: var(--ink);
  margin: 18px 0 10px;
  font-size: 27px;
  line-height: 1.24;
  font-weight: 800;
}

.success-panel p,
.onboard-subtitle {
  color: var(--ink2);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 20px;
}

.confetti {
  position: fixed;
  top: -18px;
  left: 50%;
  width: min(430px, 100%);
  height: 0;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 30;
}

.confetti i {
  position: absolute;
  top: 0;
  left: var(--x);
  width: 8px;
  height: 12px;
  border-radius: 2px;
  background: var(--c);
  animation: confetti 3s ease-in both;
  animation-delay: var(--d);
}

@keyframes stepIn {
  from {
    transform: translateY(11px);
    opacity: 0.72;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes sheetUp {
  from {
    transform: translate(-50%, 106%);
  }
  to {
    transform: translate(-50%, 0);
  }
}

@keyframes qBob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes qBlink {
  0%,
  88%,
  100% {
    transform: scaleY(1);
  }
  92%,
  95% {
    transform: scaleY(0.12);
  }
}

@keyframes qWave {
  0%,
  100% {
    transform: rotate(10deg);
  }
  50% {
    transform: rotate(-32deg);
  }
}

@keyframes qCheerLeft {
  0%,
  100% {
    transform: translateY(0) rotate(-52deg);
  }
  50% {
    transform: translateY(-4px) rotate(-52deg);
  }
}

@keyframes qCheerRight {
  0%,
  100% {
    transform: translateY(0) rotate(52deg);
  }
  50% {
    transform: translateY(-4px) rotate(52deg);
  }
}

@keyframes barGrow {
  from {
    transform: scaleY(0.15);
  }
  to {
    transform: scaleY(1);
  }
}

@keyframes genpulse {
  0% {
    transform: scale(1);
    opacity: 0.35;
  }
  70% {
    transform: scale(1.45);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@keyframes confetti {
  to {
    transform: translateY(620px) rotate(560deg);
    opacity: 0.7;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .buddy {
    animation: qBob 3.2s ease-in-out infinite;
  }

  .buddy-eyes {
    animation: qBlink 4.6s ease-in-out infinite;
  }

  .buddy-arm.wave {
    animation: qWave 1.5s ease-in-out 0.35s 3;
  }

  .buddy-arm.left-cheer {
    animation: qCheerLeft 850ms ease-in-out infinite;
  }

  .buddy-arm.right-cheer {
    animation: qCheerRight 850ms ease-in-out infinite;
    animation-delay: 120ms;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-height: 760px) {
  .welcome-layout {
    min-height: 100svh;
  }

  .welcome-center {
    padding-top: calc(44px + env(safe-area-inset-top));
  }

  .welcome-buddy-row {
    margin-bottom: 24px;
  }

  .welcome-buddy-row .buddy {
    --size: 76px !important;
  }

  .welcome-title {
    font-size: 25px;
  }

  .welcome-primary {
    min-height: 54px;
  }
}

@media (max-width: 360px) {
  .field-grid.two {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .welcome-center {
    padding-left: 18px;
    padding-right: 18px;
  }

  .welcome-actions {
    padding-left: 18px;
    padding-right: 18px;
  }

  .welcome-buddy-row {
    gap: 10px;
  }

  .welcome-buddy-row .buddy {
    --size: 74px !important;
  }

  .welcome-buddy-row .bubble {
    max-width: 200px;
    padding: 12px 13px;
    font-size: 14.5px;
  }

  .welcome-title {
    font-size: 25px;
  }
}

@media (min-width: 431px) {
  .app-shell {
    min-height: min(100vh, 920px);
  }
}
