:root {
  color-scheme: light;
  --background: #f8f7f3;
  --surface: #ffffff;
  --surface-soft: #f0efec;
  --surface-tint: #f4f3ef;
  --text: #0f0f0f;
  --muted: #5f5f5f;
  --line: #deddd9;
  --line-strong: #c9c8c4;
  --accent: #171717;
  --accent-strong: #050505;
  --accent-soft: #ecebe7;
  --danger: #b42318;
  --danger-soft: #fff1f0;
  --warning: #8a5a00;
  --warning-soft: #fff8e6;
  --info: #315b9f;
  --info-soft: #eff5ff;
  --shadow: 0 18px 55px rgba(18, 18, 20, 0.08), 0 2px 10px rgba(18, 18, 20, 0.04);
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", monospace;
  font-family: var(--font-sans);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--background);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

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

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(23, 23, 23, 0.34);
  outline-offset: 2px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.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 {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  background: color-mix(in srgb, var(--background) 88%, transparent);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(100%, 940px);
  min-height: 60px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.brand-mark,
.assistant-avatar {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  background: var(--text);
  color: var(--background);
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 4px 14px rgba(15, 15, 15, 0.08);
}

.brand-mark svg,
.assistant-avatar svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-mark .placeholder-mark {
  width: 20px;
  height: 20px;
  fill: currentColor;
  stroke: none;
}

.agent-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.platform-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.platform-badge {
  min-width: 158px;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--text);
  border-radius: 14px;
  background: var(--text);
  color: var(--background);
  text-align: left;
  text-decoration: none;
}

a.platform-badge:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.platform-badge-muted {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--text);
}

.platform-badge svg {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  fill: currentColor;
}

.platform-badge-plugin img {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 6px;
}

.platform-badge span,
.platform-badge small,
.platform-badge strong {
  display: block;
}

.platform-badge small {
  font-size: 10px;
  line-height: 1.1;
}

.platform-badge strong {
  margin-top: 1px;
  font-size: 18px;
  line-height: 1;
  letter-spacing: -0.025em;
}

.profile-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.profile-button:hover {
  background: var(--surface-soft);
}

.profile-pin {
  color: var(--accent-strong);
  font-size: 15px;
}

.online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.runtime-notice {
  width: min(100%, 880px);
  margin: 12px auto 0;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid color-mix(in srgb, var(--warning) 18%, var(--line));
  border-radius: 18px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--warning-soft) 68%, var(--surface)), var(--surface));
  box-shadow: 0 14px 35px rgba(18, 18, 20, 0.05);
}

.runtime-notice-mark {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: var(--text);
  color: var(--background);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.runtime-notice-copy {
  min-width: 0;
}

.runtime-notice-copy strong {
  display: block;
  font-size: 13px;
  letter-spacing: -0.02em;
}

.runtime-notice-copy p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.runtime-notice-copy code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text);
}

.runtime-key-form {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.runtime-key-form label {
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
}

.runtime-key-row {
  display: flex;
  gap: 8px;
}

.runtime-key-row input {
  min-width: 0;
  flex: 1;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 12px;
}

.runtime-key-row button {
  height: 34px;
  padding: 0 13px;
  border: 0;
  border-radius: 10px;
  background: var(--text);
  color: var(--background);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.runtime-key-form small {
  color: var(--muted);
  font-size: 10px;
}

.app-shell {
  width: min(100%, 880px);
  margin: 0 auto;
  padding: 0 18px 56px;
}

.onboarding {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 58px 0 72px;
}

.onboarding-progress {
  width: min(100%, 280px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.onboarding-progress span {
  height: 4px;
  border-radius: 99px;
  background: var(--line);
}

.onboarding-progress span.is-active,
.onboarding-progress span.is-complete {
  background: var(--accent);
}

.onboarding-heading {
  max-width: 600px;
  margin: 30px auto 0;
  text-align: center;
}

.onboarding-heading h1 {
  margin-top: 10px;
  font-size: clamp(31px, 6vw, 46px);
}

.profile-form {
  margin-top: 30px;
  padding: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.profile-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.profile-field {
  min-width: 0;
}

.profile-field-wide {
  grid-column: 1 / -1;
}

.profile-field > span:first-child {
  display: block;
  margin: 0 0 7px 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.profile-field small {
  font-size: 10px;
  font-weight: 500;
}

.profile-field input,
.profile-field select {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: 0;
  background: var(--surface-soft);
  color: var(--text);
}

.unit-field {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding-right: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.unit-field input {
  min-height: 46px;
  border: 0;
  background: transparent;
}

.unit-field > span {
  color: var(--muted);
  font-size: 12px;
}

.profile-checks {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.profile-checks label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
}

.profile-checks input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
}

.security-note {
  margin-top: 15px;
  padding: 11px 12px;
  border-radius: 11px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.profile-error {
  min-height: 18px;
  margin-top: 12px;
  color: var(--danger);
  font-size: 12px;
}

.profile-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 3px;
}

.profile-spacer {
  flex: 1;
}

.ghost-button,
.continue-button {
  min-height: 46px;
  padding: 0 17px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 650;
}

.ghost-button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}

.continue-button {
  border: 0;
  background: var(--text);
  color: var(--background);
}

.continue-button:disabled {
  opacity: 0.62;
}

.hero {
  padding: 72px 0 34px;
  text-align: center;
}

.eyebrow,
.kicker {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin-top: 12px;
  font-size: clamp(34px, 7vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-weight: 620;
}

.lede {
  max-width: 660px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.composer {
  margin-top: 34px;
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: left;
}

.next-step-card {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: left;
}

.next-step-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.vertical-step {
  display: grid;
  gap: 12px;
}

.step-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.step-actions .back-button {
  margin-right: auto;
}

.spend-setting {
  padding: 16px;
}

.spend-setting .money-field {
  font-family: var(--font-mono);
  font-size: 22px;
}

.spend-setting input {
  font-family: var(--font-mono);
  font-size: 22px;
}

.field-hint {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.next-step-heading h2 {
  margin: 3px 0 0;
  font-size: 18px;
  letter-spacing: -0.025em;
}

.step-kicker,
.step-count {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.step-count {
  padding-top: 4px;
  font-family: var(--font-mono);
}

.composer textarea {
  width: 100%;
  min-height: 74px;
  max-height: 180px;
  padding: 10px 11px 14px;
  resize: vertical;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 17px;
  line-height: 1.5;
}

.composer textarea::placeholder,
.setting-field input::placeholder {
  color: color-mix(in srgb, var(--muted) 72%, transparent);
}

.preference-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 8px;
}

.setting-field {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.setting-field > .setting-label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.setting-field input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 550;
}

.delivery-setting strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 550;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.location-actions .suggestion-chip {
  min-height: 40px;
  padding: 8px 13px;
}

.text-button {
  min-width: 40px;
  min-height: 40px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
}

.delivery-setting {
  position: relative;
  padding-left: 42px;
}

.location-pin {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 20px;
  height: 20px;
  margin: -10px 0 0;
  color: var(--text);
}

.location-pin svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.next-step-submit {
  margin: 0;
}

.money-field {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--muted);
}

.money-field input {
  color: var(--text);
}

.composer-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  padding: 12px 2px 0 10px;
}

.composer-footer > span,
.example-copy,
.chart-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.search-button,
.approve-button,
.show-all-button,
.tab-button {
  min-height: 44px;
  border: 0;
  cursor: pointer;
  font-weight: 650;
}

.search-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 17px;
  border-radius: 999px;
  background: var(--text);
  color: var(--background);
  white-space: nowrap;
  transition: transform 150ms ease, opacity 150ms ease;
}

.search-button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.search-button:disabled {
  cursor: wait;
  opacity: 0.66;
}

.search-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.example-copy {
  margin-top: 14px;
}

.conversation {
  display: grid;
  gap: 22px;
}

.conversation > *,
.result-space,
.answer-content,
.recommendation,
.comparison-disclosure,
.comparison-disclosure-content > * {
  min-width: 0;
  max-width: 100%;
}

.result-space,
.answer-content {
  width: 100%;
}

.user-message {
  width: fit-content;
  max-width: 100%;
  overflow-wrap: anywhere;
  max-width: min(82%, 620px);
  margin-left: auto;
  padding: 13px 16px;
  border-radius: 20px 20px 5px 20px;
  background: var(--surface-soft);
  line-height: 1.45;
}

.user-message strong,
.user-message span {
  display: block;
}

.user-message strong {
  font-size: 14px;
  font-weight: 550;
}

.user-message span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.assistant-status {
  display: flex;
  min-height: 0;
  align-items: flex-start;
  gap: 12px;
  scroll-margin-top: 78px;
}

.assistant-status:empty {
  display: none;
}

.assistant-avatar {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

.status-copy {
  min-width: 0;
  padding-top: 4px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
}

.assistant-status[data-tone="error"] .status-copy {
  color: var(--danger);
}

.thinking-dots {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}

.thinking-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted);
  animation: thinking 1.2s infinite ease-in-out;
}

.thinking-dots i:nth-child(2) {
  animation-delay: 130ms;
}

.thinking-dots i:nth-child(3) {
  animation-delay: 260ms;
}

@keyframes thinking {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.42; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.result-space:empty {
  display: none;
}

.answer-content {
  display: grid;
  gap: 18px;
  padding-left: 42px;
}

.evidence-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.evidence-strip > div {
  min-width: 0;
  padding: 0 18px;
  border-right: 1px solid var(--line);
}

.evidence-strip > div:first-child {
  padding-left: 0;
}

.evidence-strip > div:last-child {
  padding-right: 0;
  border-right: 0;
}

.evidence-strip strong,
.evidence-strip span {
  display: block;
}

.evidence-strip strong {
  font-size: 23px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.evidence-strip span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.recommendation,
.chart-section,
.funnel-section {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.recommendation {
  padding: 18px;
}

.billing-fields {
  margin-top: 18px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.billing-fields h3 {
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 650;
}

.product-overview {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.product-image {
  display: block;
  width: 138px;
  height: 112px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--surface-soft);
}

.product-copy {
  min-width: 0;
}

.product-copy h2 {
  margin-top: 6px;
  font-size: clamp(20px, 4vw, 27px);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 620;
}

.product-copy > p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 12px;
}

.price-row strong {
  font-size: 29px;
  letter-spacing: -0.04em;
}

.price-row span {
  color: var(--muted);
  font-size: 12px;
}

.product-description {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.collapsible-description {
  margin-top: 14px;
}

.collapsible-description summary {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  list-style: none;
}

.collapsible-description summary::-webkit-details-marker,
.price-details summary::-webkit-details-marker {
  display: none;
}

.collapsible-description summary > span {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collapsible-description summary > b {
  color: var(--text);
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}

.collapsible-description summary > b::after { content: "Read more"; }
.collapsible-description[open] summary > span { display: none; }
.collapsible-description[open] summary > b::after { content: "Show less"; }

.collapsible-description > p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.price-details {
  margin-top: 13px;
  border-radius: 14px;
  background: var(--surface-soft);
}

.price-details > summary {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
  list-style: none;
}

.price-details > summary span {
  color: var(--muted);
  font-weight: 500;
}

.price-breakdown {
  display: grid;
  gap: 8px;
  margin-top: 0;
  padding: 0 14px 14px;
  border-radius: 14px;
  background: var(--surface-soft);
  font-size: 13px;
}

.recommendation.is-purchased {
  padding: 15px;
}

.recommendation.is-purchased .fact-row {
  display: none;
}

.recommendation.is-purchased .decision-banner {
  margin-top: 12px;
  padding: 10px 12px;
}

.recommendation.is-purchased .decision-banner p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-breakdown > div,
.receipt-lines > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.price-breakdown span,
.receipt-lines span {
  color: var(--muted);
}

.saving,
.price-down {
  color: var(--accent-strong);
}

.price-up {
  color: var(--danger);
}

.fact-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.fact-row {
  margin-top: 14px;
}

.fact-row span,
.tag {
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.decision-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 14px;
  border-radius: 15px;
}

.decision-banner > div {
  min-width: 0;
  flex: 1;
}

.decision-banner strong {
  display: block;
  font-size: 14px;
}

.decision-banner p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.decision-success {
  background: var(--accent-soft);
}

.decision-approval {
  background: var(--info-soft);
}

.decision-watching {
  background: var(--warning-soft);
}

.decision-icon,
.empty-icon {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: color-mix(in srgb, currentColor 12%, transparent);
  color: var(--accent-strong);
  font-weight: 750;
}

.decision-watching .decision-icon {
  color: var(--warning);
}

.decision-approval .decision-icon {
  color: var(--info);
}

.approve-button {
  padding: 0 15px;
  border-radius: 11px;
  background: var(--text);
  color: var(--background);
  white-space: nowrap;
}

.approve-button:hover,
.show-all-button:hover {
  opacity: 0.86;
}

.funnel-section {
  padding: 18px;
}

.funnel-country {
  min-width: 32px;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  text-align: center;
}

.funnel-list {
  display: grid;
  gap: 11px;
  margin-top: 18px;
}

.funnel-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 14px;
}

.funnel-copy strong,
.funnel-copy span,
.funnel-value strong,
.funnel-value span {
  display: block;
}

.funnel-copy strong,
.funnel-value strong {
  font-size: 12px;
}

.funnel-copy span,
.funnel-value span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.funnel-value {
  min-width: 48px;
  text-align: right;
}

.funnel-track {
  height: 6px;
  grid-column: 1 / -1;
  overflow: hidden;
  border-radius: 99px;
  background: var(--surface-soft);
}

.funnel-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 320ms ease;
}

.funnel-bands {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  margin-top: 17px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.funnel-bands span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
}

.funnel-bands strong {
  color: var(--text);
}

.funnel-bands i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.band-auto {
  background: var(--accent);
}

.band-approval {
  background: var(--info);
}

.band-above {
  background: var(--warning);
}

.chart-section {
  padding: 18px 18px 14px;
  overflow: hidden;
}

.section-heading,
.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.section-heading h3,
.panel-heading h3 {
  margin-top: 5px;
  font-size: 18px;
  font-weight: 620;
  letter-spacing: -0.02em;
}

.chart-legend {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
}

.chart-legend i {
  width: 18px;
  height: 3px;
  border-radius: 99px;
  background: var(--accent);
}

.chart-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
}

.chart-stats span,
.chart-stats strong {
  display: block;
}

.chart-stats span {
  color: var(--muted);
  font-size: 11px;
}

.chart-stats strong {
  margin-top: 3px;
  font-size: 15px;
}

.chart-wrap {
  width: 100%;
  margin-top: 7px;
  color: var(--accent);
}

.price-chart {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.chart-grid line {
  stroke: var(--line);
  stroke-width: 1;
}

.chart-grid text,
.date-label {
  fill: var(--muted);
  font-size: 10px;
}

.chart-area {
  fill: url(#priceArea);
}

.chart-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-point {
  fill: var(--surface);
  stroke: currentColor;
  stroke-width: 2;
}

.low-marker circle {
  fill: var(--surface);
  stroke: currentColor;
  stroke-width: 3;
}

.low-marker text {
  fill: var(--text);
  font-size: 10px;
  font-weight: 650;
}

.chart-note {
  padding: 0 4px;
}

.tabs {
  display: flex;
  gap: 4px;
  padding-bottom: 1px;
  border-bottom: 1px solid var(--line);
}

.tab-button {
  position: relative;
  padding: 0 15px;
  background: transparent;
  color: var(--muted);
}

.tab-button::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: -2px;
  left: 12px;
  height: 2px;
  border-radius: 99px;
  background: transparent;
}

.tab-button[aria-selected="true"] {
  color: var(--text);
}

.tab-button[aria-selected="true"]::after {
  background: var(--text);
}

.tab-panel {
  display: grid;
  gap: 14px;
}

.panel-heading p {
  max-width: 620px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.panel-heading > span {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.offer-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.offer-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}

.offer-card.is-winner {
  border-color: color-mix(in srgb, var(--accent) 52%, var(--line));
  box-shadow: inset 3px 0 0 var(--accent);
}

.offer-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.offer-title > div {
  min-width: 0;
}

.offer-title strong,
.offer-title span {
  display: block;
}

.offer-title strong {
  font-size: 13px;
}

.offer-title span {
  display: -webkit-box;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.offer-title .offer-price {
  flex: 0 0 auto;
  font-size: 15px;
}

.offer-details {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 10px;
}

.tag-row {
  margin-top: 11px;
}

.tag-good {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.tag-bad {
  background: var(--danger-soft);
  color: var(--danger);
}

.tag-approval {
  background: var(--info-soft);
  color: var(--info);
}

.tag-neutral {
  background: var(--warning-soft);
  color: var(--warning);
}

.show-all-button {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.coupon-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
}

.coupon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

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

.coupon-row > div {
  min-width: 0;
}

.coupon-row strong,
.coupon-row span {
  display: block;
}

.coupon-row strong {
  font-size: 12px;
}

.coupon-row > div span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.coupon-row > .tag {
  flex: 0 0 auto;
}

.empty-state {
  padding: 34px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: center;
}

.empty-icon {
  margin: 0 auto;
}

.empty-state h3 {
  margin-top: 12px;
  font-size: 17px;
}

.empty-state p {
  margin: 6px auto 0;
  color: var(--muted);
  font-size: 13px;
}

.empty-state .approve-button {
  margin-top: 16px;
}

.receipt {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.receipt-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.receipt-heading h3 {
  font-size: 18px;
}

.receipt-heading p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.receipt-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.checkout-summary {
  display: grid;
  gap: 3px;
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: var(--surface-soft);
  font-size: 12px;
}

.checkout-summary span {
  color: var(--muted);
  font-size: 11px;
}

.receipt-lines {
  display: grid;
  gap: 9px;
  margin-top: 15px;
  font-size: 13px;
}

.receipt-total {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 16px;
}

.site-footer {
  padding: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

@media (max-width: 680px) {
  .app-shell {
    padding-right: 14px;
    padding-left: 14px;
  }

  .hero {
    padding-top: 42px;
  }

  .onboarding {
    padding: 38px 0 54px;
  }

  .profile-field input,
  .profile-field select {
    font-size: 16px;
  }

  .preference-grid {
    grid-template-columns: 1fr 1fr;
  }

  .setting-field:first-child {
    grid-column: 1 / -1;
  }

  .composer-footer {
    align-items: flex-end;
  }

  .answer-content {
    padding-left: 0;
  }

  .product-overview {
    grid-template-columns: 105px minmax(0, 1fr);
    gap: 13px;
  }

  .product-image {
    width: 105px;
    height: 105px;
  }

  .decision-banner {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .decision-approval .approve-button {
    width: 100%;
  }

  .offer-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 440px) {
  .header-inner {
    padding: 0 14px;
  }

  .agent-label {
    display: none;
  }

  .platform-badges {
    align-items: stretch;
  }

  .platform-badge {
    min-width: 0;
    flex: 1;
    padding: 8px 10px;
  }

  .platform-badge-plugin {
    flex-basis: 100%;
  }

  .platform-badge strong {
    font-size: 15px;
  }

  .profile-button {
    max-width: 185px;
  }

  .profile-button span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .onboarding {
    padding-top: 28px;
  }

  .onboarding-heading {
    margin-top: 22px;
  }

  .profile-form {
    margin-top: 24px;
    padding: 14px;
    border-radius: 18px;
  }

  .profile-fields {
    grid-template-columns: 1fr;
  }

  .profile-field-wide {
    grid-column: auto;
  }

  .profile-actions {
    flex-wrap: wrap;
  }

  .continue-button {
    min-width: 150px;
  }

  .hero {
    padding-top: 32px;
  }

  .composer {
    border-radius: 20px;
  }

  .preference-grid {
    grid-template-columns: 1fr;
  }

  .setting-field:first-child {
    grid-column: auto;
  }

  .composer-footer {
    display: grid;
    grid-template-columns: 1fr;
    padding-left: 2px;
  }

  .search-button {
    width: 100%;
  }

  .user-message {
    max-width: 92%;
  }

  .evidence-strip {
    gap: 10px;
  }

  .evidence-strip > div {
    padding: 0 8px;
  }

  .evidence-strip strong {
    font-size: 20px;
  }

  .recommendation,
  .chart-section,
  .funnel-section {
    border-radius: 16px;
  }

  .recommendation {
    padding: 14px;
  }

  .product-overview {
    grid-template-columns: 86px minmax(0, 1fr);
    align-items: start;
  }

  .product-image {
    width: 86px;
    height: 86px;
    border-radius: 11px;
  }

  .product-copy h2 {
    font-size: 19px;
  }

  .price-row {
    margin-top: 7px;
  }

  .price-row strong {
    font-size: 23px;
  }

  .chart-section {
    padding: 14px 10px 12px;
  }

  .funnel-section {
    padding: 14px;
  }

  .chart-stats {
    gap: 15px;
  }

  .section-heading,
  .panel-heading {
    gap: 10px;
  }

  .chart-legend {
    display: none;
  }

  .price-chart {
    min-height: 215px;
  }

  .tabs {
    justify-content: space-between;
  }

  .tab-button {
    flex: 1;
    padding: 0 8px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --background: #181818;
    --surface: #212121;
    --surface-soft: #2a2a2a;
    --surface-tint: #18342d;
    --text: #f3f3f3;
    --muted: #aaaab2;
    --line: #38383b;
    --line-strong: #4a4a4f;
    --accent: #27c493;
    --accent-strong: #5bd6ae;
    --accent-soft: #163d32;
    --danger: #ff8d86;
    --danger-soft: #472725;
    --warning: #ffd17a;
    --warning-soft: #40351e;
    --info: #9abcf7;
    --info-soft: #27364f;
    --shadow: 0 18px 55px rgba(0, 0, 0, 0.28), 0 2px 10px rgba(0, 0, 0, 0.2);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .thinking-dots i,
  .search-button,
  .process-spinner,
  .process-state.is-done {
    animation: none;
    transition: none;
  }
}

/* ---------- App shell: 3-tab dock layout ---------- */

body {
  padding-bottom: 96px;
}

body.onboarding-active {
  padding-bottom: 24px;
}

.dock {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  gap: 6px;
  padding: 8px;
  border-radius: 26px;
  border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
  background: color-mix(in srgb, var(--background) 82%, transparent);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.dock-button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 84px;
  padding: 9px 14px 8px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.dock-button svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dock-button.is-active {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.dock-button:hover:not(.is-active) {
  background: var(--surface-soft);
  color: var(--text);
}

.dock-badge {
  position: absolute;
  top: 4px;
  right: 16px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.app-view {
  width: min(100%, 940px);
  margin: 0 auto;
  padding: 26px 18px 40px;
}

.view-heading {
  margin-bottom: 22px;
}

.view-heading h1 {
  font-size: clamp(26px, 5vw, 34px);
  letter-spacing: -0.03em;
}

.view-heading .lede {
  margin-top: 6px;
  color: var(--muted);
}

/* ---------- Demo autofill onboarding ---------- */

.demo-fill-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 26px;
  padding: 22px;
  border-radius: 20px;
  border: 1.5px solid color-mix(in srgb, var(--accent) 35%, transparent);
  background: var(--accent-soft);
}

.demo-fill-card h2 {
  font-size: 20px;
  letter-spacing: -0.02em;
}

.demo-fill-copy p {
  margin-top: 5px;
  color: var(--muted);
}

.demo-fill-button {
  width: 100%;
  padding: 15px 22px;
  font-size: 17px;
  border-radius: 14px;
}

.demo-fill-note {
  font-size: 13px;
  color: var(--muted);
}

.onboarding-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 13.5px;
}

.onboarding-divider::before,
.onboarding-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ---------- Home tab ---------- */

.home-status {
  margin-bottom: 18px;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--info) 30%, transparent);
  background: var(--info-soft);
  color: var(--info);
  font-size: 14.5px;
  font-weight: 550;
}

.home-section {
  margin-bottom: 30px;
}

.home-quick-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.home-section-heading {
  margin-bottom: 12px;
}

.home-section-heading h2 {
  font-size: 19px;
  letter-spacing: -0.02em;
}

.home-section-heading p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 14px;
}

.home-section-heading.urgent h2 {
  color: var(--warning);
}

.watch-list,
.purchase-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.watch-card {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.watch-card.is-urgent {
  border-color: color-mix(in srgb, var(--warning) 45%, transparent);
  background: var(--warning-soft);
}

.watch-main {
  display: flex;
  gap: 14px;
}

.watch-image {
  width: 74px;
  height: 74px;
  flex: 0 0 auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  object-fit: cover;
  background: var(--surface-soft);
}

.watch-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.watch-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 15.5px;
  letter-spacing: -0.01em;
}

.watch-merchant {
  color: var(--muted);
  font-size: 13.5px;
}

.watch-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.watch-price-row strong {
  font-size: 21px;
  letter-spacing: -0.02em;
}

.watch-price-row span {
  color: var(--muted);
  font-size: 13px;
}

.watch-trend {
  font-size: 13px;
  font-weight: 650;
}

.watch-trend.down { color: var(--accent-strong); }
.watch-trend.up { color: var(--danger); }
.watch-trend.flat { color: var(--muted); font-weight: 500; }

.watch-note {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.45;
}

.watch-checked {
  color: var(--muted);
  font-size: 12px;
}

.watch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.adjust-watch-form {
  display: grid;
  grid-template-columns: auto minmax(90px, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 10px;
  border-radius: 12px;
  background: var(--surface-soft);
}

.adjust-watch-form label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.adjust-watch-form input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
}

.requirement-question,
.next-step-card,
.answer-content {
  scroll-margin-top: 72px;
}

.ghost-button.danger {
  color: var(--danger);
}

.purchase-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.purchase-card .watch-image {
  width: 56px;
  height: 56px;
}

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

.purchase-total {
  font-size: 18px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.home-empty {
  padding: 56px 20px;
}

.home-empty .empty-icon {
  font-size: 40px;
}

/* ---------- Profile tab ---------- */

.profile-card {
  margin-bottom: 14px;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.profile-card-heading h2 {
  font-size: 17px;
  letter-spacing: -0.02em;
}

.profile-facts {
  margin: 14px 0 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.profile-facts > div {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  align-items: baseline;
}

.profile-facts dt {
  color: var(--muted);
  font-size: 13.5px;
  flex: 0 0 auto;
}

.profile-facts dd {
  margin: 0;
  font-weight: 600;
  font-size: 14.5px;
  text-align: right;
}

.profile-edit-button {
  width: 100%;
  margin-top: 8px;
  padding: 15px 22px;
  font-size: 16px;
}

/* ---------- How it works ---------- */

.info-view {
  display: grid;
  gap: 18px;
  max-width: 860px;
}

.info-hero {
  padding: 34px 4px 18px;
}

.info-hero h1 {
  max-width: 690px;
  margin-top: 10px;
  font-size: clamp(34px, 6vw, 50px);
}

.info-hero > p:last-child {
  max-width: 680px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.info-flow {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}

.info-flow article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.info-flow article:last-child {
  border-bottom: 0;
}

.info-flow article > span {
  padding-top: 3px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.info-flow h2 {
  font-size: 19px;
  letter-spacing: -0.025em;
}

.info-flow p,
.brief-grid p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.firecrawl-card {
  display: grid;
  grid-template-columns: minmax(230px, 0.75fr) minmax(280px, 1.25fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: var(--text);
  color: var(--background);
}

.firecrawl-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.firecrawl-brand img {
  width: 28px;
  height: 38px;
  object-fit: contain;
}

.firecrawl-brand span,
.firecrawl-brand strong {
  display: block;
}

.firecrawl-brand span {
  opacity: 0.66;
  font-size: 11px;
}

.firecrawl-brand strong {
  margin-top: 2px;
  font-size: 15px;
}

.firecrawl-card > p {
  color: color-mix(in srgb, var(--background) 76%, transparent);
  font-size: 13px;
  line-height: 1.5;
}

.firecrawl-card > a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--background) 28%, transparent);
  border-radius: 999px;
  color: var(--background);
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.brief-section {
  padding: 26px 0 4px;
}

.info-section-heading h2 {
  margin-top: 7px;
  font-size: 28px;
  letter-spacing: -0.035em;
}

.brief-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.brief-grid article {
  min-height: 130px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.brief-grid strong {
  font-size: 15px;
  letter-spacing: -0.015em;
}

.design-principle {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin: 8px 0 28px;
  padding: 18px 2px 0;
  border-top: 1px solid var(--line);
}

.design-principle span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.design-principle p {
  max-width: 560px;
  font-size: 17px;
  font-weight: 560;
  letter-spacing: -0.02em;
  text-align: right;
}

/* ---------- Decision action rows ---------- */

.decision-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 4px;
}

.decision-banner .decision-actions .approve-button,
.decision-banner .decision-actions .ghost-button {
  white-space: nowrap;
}

/* ---------- Product defaults and quick questions ---------- */

.product-defaults {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.product-defaults summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
}

.product-defaults summary span {
  color: var(--muted);
  font-weight: 500;
}

.product-defaults .profile-fields {
  margin-top: 14px;
}

.requirement-question {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.requirement-question h2 {
  margin-top: 7px;
  font-size: 23px;
  letter-spacing: -0.03em;
}

.requirement-question > p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.requirement-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.requirement-field {
  min-width: 0;
}

.requirement-explanation {
  margin-top: 6px;
}

.requirement-explanation summary {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  list-style: none;
}

.requirement-explanation summary::-webkit-details-marker { display: none; }

.requirement-explanation summary span {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.requirement-explanation summary b {
  font-size: 10px;
  font-weight: 650;
}

.requirement-explanation summary b::after { content: "Read more"; }
.requirement-explanation[open] summary span { display: none; }
.requirement-explanation[open] summary b::after { content: "Show less"; }

.requirement-explanation p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.requirement-form label > span,
.requirement-form label > small {
  display: block;
}

.requirement-form label > span {
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 650;
}

.requirement-form input {
  width: 100%;
  min-height: 50px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 16px;
}

.requirement-form label > small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.requirement-form .approve-button {
  width: 100%;
}

.flexible-note {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.suggestion-options {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0 !important;
}

.suggestion-chip {
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: transform 100ms cubic-bezier(0, 0, .2, 1), background-color 100ms cubic-bezier(0, 0, .2, 1);
}

.suggestion-chip:hover,
.suggestion-chip[aria-pressed="true"] {
  background: var(--text);
  color: var(--surface);
}

.suggestion-chip:active { transform: translateY(1px); }

.invalid-product .ghost-button { margin-top: 14px; }

.shader-accent {
  width: 64px;
  height: 64px;
  margin-bottom: 22px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(61, 70, 232, .14);
}

.hero {
  max-width: 680px;
  margin-inline: auto;
}

.hero > .lede { max-width: 580px; }

.composer-actions { display: flex; align-items: center; gap: 8px; }

.voice-toggle {
  min-width: 88px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.voice-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.voice-toggle[aria-pressed="true"] { background: var(--text); color: var(--surface); border-color: var(--text); }
.voice-toggle[aria-pressed="true"] svg { animation: voice-pulse 1.3s cubic-bezier(.4, 0, .2, 1) infinite; }

.voice-guide {
  margin-top: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.voice-guide span { color: var(--muted); font-size: 11px; font-weight: 600; }
.voice-guide p { margin-top: 4px; font-size: 13px; line-height: 1.45; }

@keyframes voice-pulse { 50% { opacity: .45; transform: scale(.92); } }

.comparison-disclosure {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.comparison-disclosure > summary {
  min-height: 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 12px 18px;
  cursor: pointer;
  list-style: none;
}

.comparison-disclosure > summary::-webkit-details-marker { display: none; }
.comparison-disclosure > summary span { font-size: 14px; font-weight: 600; }
.comparison-disclosure > summary small { color: var(--muted); font-size: 11px; }
.comparison-disclosure-content { display: grid; gap: 14px; padding: 0 14px 14px; }

.price-row strong,
.price,
.money-field input,
.card-value { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .suggestion-chip { transition: none; }
  .voice-toggle[aria-pressed="true"] svg { animation: none; }
}

/* ---------- Visible reasoning process ---------- */

.process-section {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.process-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.process-heading h2 {
  margin-top: 5px;
  font-size: 19px;
  letter-spacing: -0.025em;
}

.process-heading > span {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 650;
}

.process-details-list {
  display: grid;
  gap: 7px;
  margin-top: 15px;
}

.process-complete {
  padding: 0;
  overflow: hidden;
}

.process-complete-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 0 18px;
  cursor: pointer;
  list-style: none;
}

.process-complete-summary::-webkit-details-marker {
  display: none;
}

.process-complete[open] > .process-complete-summary .process-chevron {
  transform: rotate(180deg);
}

.process-complete-details {
  margin: 0;
  padding: 0 18px 10px;
  border-top: 1px solid var(--line);
}

.process-detail {
  border-bottom: 1px solid var(--line);
}

.process-detail:last-child {
  border-bottom: 0;
}

.process-detail summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  cursor: pointer;
  list-style: none;
}

.process-detail summary::-webkit-details-marker {
  display: none;
}

.process-check {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 750;
}

.process-summary-copy {
  min-width: 0;
  flex: 1;
}

.process-summary-copy strong,
.process-summary-copy small {
  display: block;
}

.process-summary-copy strong {
  font-size: 13px;
}

.process-summary-copy small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.process-chevron {
  color: var(--muted);
  transition: transform 150ms ease;
}

.process-detail[open] .process-chevron {
  transform: rotate(180deg);
}

.process-detail ul {
  margin: 0 0 13px 37px;
  padding-left: 16px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.process-chat {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.process-chat-bubble {
  width: min(100%, 520px);
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px 20px 20px 20px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(30, 34, 40, 0.05);
}

.process-chat-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.process-chat-progress {
  display: flex;
  gap: 4px;
}

.process-chat-progress i {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line);
  transition: background 160ms ease, transform 160ms ease;
}

.process-chat-progress i.is-current {
  background: var(--text);
  transform: scale(1.25);
}

.process-chat-progress i.is-complete {
  background: var(--accent-strong);
}

.process-current-step {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  margin-top: 10px;
}

.process-current-step strong,
.process-current-step small {
  display: block;
}

.process-current-step strong {
  font-size: 14px;
}

.process-current-step small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.process-state {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.process-state.is-working {
  background: var(--accent-soft);
}

.process-state.is-done {
  background: var(--accent-strong);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  animation: processConfirm 180ms ease-out;
}

.process-spinner {
  width: 17px;
  height: 17px;
  border: 2px solid color-mix(in srgb, var(--accent-strong) 24%, transparent);
  border-top-color: var(--accent-strong);
  border-radius: 50%;
  animation: processSpin 700ms linear infinite;
}

.process-phase-copy {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

@keyframes processSpin {
  to { transform: rotate(360deg); }
}

@keyframes processConfirm {
  from { transform: scale(0.8); opacity: 0.5; }
  to { transform: scale(1); opacity: 1; }
}

/* ---------- Finalist gallery ---------- */

.choice-section {
  display: grid;
  gap: 12px;
}

.choice-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.choice-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.choice-card.is-selected {
  border-color: color-mix(in srgb, var(--accent) 60%, var(--line));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 20%, transparent);
}

.choice-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--surface-soft);
}

.choice-card-copy {
  display: grid;
  gap: 4px;
  padding: 12px;
}

.choice-label {
  color: var(--accent-strong);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.choice-card-copy > strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.choice-card-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.choice-card-copy b {
  margin-top: 4px;
  font-size: 16px;
}

.report-button {
  min-height: 28px;
  margin-left: auto;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
}

.report-button:hover {
  background: var(--danger-soft);
  color: var(--danger);
}

.watch-frequency-field {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
}

.watch-frequency-field > span {
  color: var(--muted);
  font-size: 11px;
}

.watch-frequency-field select {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}

@media (max-width: 560px) {
  .dock {
    left: 10px;
    right: 10px;
    transform: none;
    justify-content: space-around;
  }
  .dock-button {
    flex: 1;
    min-width: 0;
  }
  .profile-facts > div {
    flex-direction: column;
    gap: 2px;
  }
  .profile-facts dd {
    text-align: left;
  }
  .watch-actions .approve-button,
  .watch-actions .ghost-button {
    flex: 1 1 auto;
  }
  .choice-gallery {
    grid-template-columns: 1fr;
  }
  .choice-card {
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr);
  }
  .choice-card img {
    width: 94px;
    height: 100%;
    aspect-ratio: auto;
  }
  .decision-actions,
  .watch-frequency-field,
  .decision-banner .decision-actions .approve-button,
  .decision-banner .decision-actions .ghost-button {
    width: 100%;
  }
  .decision-banner > .decision-actions {
    flex: 1 0 100%;
    min-width: 100%;
  }
  .decision-banner .decision-actions .approve-button,
  .decision-banner .decision-actions .ghost-button {
    white-space: normal;
  }
  .watch-frequency-field {
    justify-content: space-between;
  }
  .process-section,
  .requirement-question {
    padding: 14px;
    border-radius: 16px;
  }
  .process-complete {
    padding: 0;
  }
}

@media (max-width: 600px) {
  body {
    padding-bottom: 70px;
    font-size: 14px;
  }

  .site-header .header-inner {
    min-height: 50px;
  }

  .app-view {
    padding: 14px 12px 24px;
  }

  .hero {
    padding: 24px 0 18px;
  }

  .runtime-notice {
    width: auto;
    margin: 10px 12px 0;
    padding: 11px 12px;
    border-radius: 16px;
  }

  .runtime-notice-mark {
    width: 28px;
    height: 28px;
  }

  .runtime-key-row {
    align-items: stretch;
  }

  .runtime-key-row button {
    padding: 0 10px;
  }

  h1 {
    margin-top: 8px;
    font-size: 31px;
  }

  .lede {
    margin-top: 10px;
    font-size: 14px;
  }

  .platform-badges {
    margin-top: 14px;
  }

  .platform-badge {
    min-height: 46px;
    border-radius: 12px;
  }

  .platform-badge svg {
    width: 21px;
    height: 21px;
  }

  .platform-badge strong {
    font-size: 14px;
  }

  .composer {
    margin-top: 18px;
    padding: 8px;
    border-radius: 17px;
  }

  .composer textarea {
    min-height: 56px;
    padding: 8px 9px;
    font-size: 15px;
  }

  .composer-footer {
    padding-top: 7px;
  }

  .search-button,
  .approve-button,
  .ghost-button,
  .continue-button,
  .show-all-button,
  .tab-button,
  .voice-toggle {
    min-height: 40px;
    padding-right: 12px;
    padding-left: 12px;
    font-size: 12px;
  }

  .next-step-card,
  .requirement-question,
  .watch-card,
  .profile-card,
  .comparison-disclosure-content {
    padding: 12px;
  }

  .next-step-heading {
    margin-bottom: 8px;
  }

  .next-step-heading h2,
  .requirement-question h2 {
    font-size: 19px;
  }

  .view-heading {
    margin-bottom: 14px;
    padding: 12px;
  }

  .view-heading h1 {
    font-size: 27px;
  }

  .home-section {
    margin-bottom: 20px;
  }

  .home-section-heading h2 {
    font-size: 17px;
  }

  .home-section-heading p,
  .watch-note,
  .watch-merchant {
    font-size: 12px;
  }

  .watch-main {
    gap: 10px;
  }

  .watch-image {
    width: 58px;
    height: 58px;
    border-radius: 11px;
  }

  .watch-title {
    font-size: 14px;
  }

  .watch-price-row strong {
    font-size: 18px;
  }

  .watch-price-row span,
  .watch-trend,
  .watch-checked {
    font-size: 11px;
  }

  .watch-actions {
    gap: 6px;
    margin-top: 10px;
    padding-top: 10px;
  }

  .adjust-watch-form {
    grid-template-columns: 1fr auto;
  }

  .adjust-watch-form label {
    grid-column: 1 / -1;
  }

  .purchase-card {
    gap: 10px;
    padding: 11px 12px;
  }

  .purchase-total {
    font-size: 15px;
  }

  .recommendation.is-purchased .product-overview {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 11px;
  }

  .recommendation.is-purchased .product-image {
    width: 76px;
    height: 76px;
  }

  .recommendation.is-purchased .product-copy h2 {
    font-size: 18px;
  }

  .recommendation.is-purchased .price-row {
    margin-top: 7px;
  }

  .recommendation.is-purchased .price-row strong {
    font-size: 24px;
  }

  .recommendation.is-purchased .collapsible-description,
  .recommendation.is-purchased .price-details {
    margin-top: 9px;
  }

  .evidence-strip {
    gap: 7px;
  }

  .evidence-strip div {
    padding: 10px 7px;
  }

  .dock {
    right: 12px;
    bottom: 7px;
    left: 12px;
    gap: 2px;
    padding: 4px;
    border-radius: 19px;
  }

  .dock-button {
    min-height: 44px;
    gap: 1px;
    padding: 4px 9px;
    border-radius: 14px;
    font-size: 10.5px;
  }

  .dock-button svg {
    width: 19px;
    height: 19px;
  }

  .dock-badge {
    top: 1px;
    right: 10px;
  }

  .info-view {
    gap: 12px;
  }

  .info-hero {
    padding: 22px 2px 10px;
  }

  .info-hero h1 {
    font-size: 30px;
  }

  .info-hero > p:last-child {
    margin-top: 11px;
    font-size: 13px;
  }

  .info-flow article {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 9px;
    padding: 14px;
  }

  .info-flow h2 {
    font-size: 16px;
  }

  .info-flow p,
  .brief-grid p {
    font-size: 12px;
  }

  .firecrawl-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 15px;
  }

  .firecrawl-card > a {
    justify-self: start;
  }

  .brief-section {
    padding-top: 18px;
  }

  .info-section-heading h2 {
    font-size: 23px;
  }

  .brief-grid {
    grid-template-columns: 1fr;
  }

  .brief-grid article {
    min-height: 0;
    padding: 14px;
  }

  .design-principle {
    display: block;
  }

  .design-principle p {
    margin-top: 7px;
    font-size: 15px;
    text-align: left;
  }

  .dock-button span {
    max-width: 62px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
