:root {
  color-scheme: light;
  --bg: #f7f7f8;
  --surface: #ffffff;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-solid: #ffffff;
  --muted-panel: #f1f2f4;
  --border: #e2e4e8;
  --soft-border: rgba(148, 163, 184, 0.32);
  --text: #18181b;
  --muted: #5f6673;
  --faint: #8a93a3;
  --danger: #dc2626;
  --danger-light: #dc2626;
  --danger-soft: rgba(220, 38, 38, 0.1);
  --font-body: "Be Vietnam Pro", ui-sans-serif, system-ui, sans-serif;
  --font-heading: "Inter", ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--danger);
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
}

[hidden] {
  display: none !important;
}

.site-shell {
  min-height: 100vh;
  background: var(--bg);
}

.container {
  width: min(100% - 32px, 1280px);
  margin-inline: auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(226, 228, 232, 0.9);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-header.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.header-inner {
  display: flex;
  height: 64px;
  align-items: center;
  justify-content: center;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand-logo {
  display: block;
  width: 132px;
  height: auto;
  object-fit: contain;
}

.footer-logo {
  width: 118px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 0 0 96px;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(254, 226, 226, 0.9), var(--bg) 68%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: none;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 999px;
  background: var(--danger-soft);
  padding: 6px 12px;
  color: var(--danger-light);
  font-size: 14px;
  font-weight: 700;
}

.icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.25;
}

.hero-image {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: 0;
  object-fit: contain;
}

.trade-section {
  position: relative;
  z-index: 2;
  margin-top: -64px;
}

.trade-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 32px;
  align-items: start;
}

.panel,
.estimate-card {
  border: 1px solid var(--border);
  border-radius: 24px;
  backdrop-filter: blur(10px);
}

.panel {
  background: var(--panel);
  padding: clamp(24px, 4vw, 32px);
}

.wizard-shell {
  max-width: 920px;
  margin-inline: auto;
}

.trade-wizard {
  display: grid;
  gap: 26px;
}

.wizard-heading {
  display: grid;
  gap: 8px;
}

.wizard-heading h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.wizard-heading p:last-child {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.wizard-progress {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  align-items: center;
}

.wizard-progress-line {
  position: absolute;
  right: 12.5%;
  left: 12.5%;
  top: 50%;
  height: 2px;
  background: var(--border);
  transform: translateY(-50%);
}

.wizard-dot {
  position: relative;
  z-index: 1;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  justify-self: center;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-weight: 900;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.wizard-dot.active,
.wizard-dot.complete {
  border-color: var(--danger);
  background: var(--danger);
  color: #fff;
}

.wizard-dot:disabled {
  cursor: default;
}

.wizard-stage {
  min-height: 300px;
}

.wizard-step {
  animation: wizardFade 0.24s ease both;
}

.wizard-type-grid {
  border: 0;
  background: transparent;
  padding: 0;
}

.wizard-type-card {
  display: grid;
  min-height: 156px;
  align-content: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  padding: 24px;
  text-align: left;
}

.wizard-type-card.active {
  border-color: rgba(220, 38, 38, 0.45);
  background: rgba(220, 38, 38, 0.05);
  color: var(--danger);
}

.type-card-title {
  color: var(--text);
  font-family: var(--font-heading);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.wizard-type-card small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}

.wizard-preview-card {
  border-radius: 20px;
  box-shadow: none;
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 22px;
}

.wizard-actions .continue-button {
  width: auto;
  min-width: 220px;
  margin: 0;
}

@keyframes wizardFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
}

.step-title span {
  display: inline-grid;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.form-stack {
  display: grid;
  gap: 24px;
}

.input-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  padding: 6px;
}

.mode-tab {
  cursor: pointer;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 800;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.mode-tab.active {
  background: var(--surface);
  color: var(--danger);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.mode-tab-ai {
  border: 1px solid rgba(220, 38, 38, 0.18);
  background: rgba(220, 38, 38, 0.04);
}

.mode-tab-ai.active {
  background: rgba(220, 38, 38, 0.08);
  box-shadow: 0 14px 36px rgba(220, 38, 38, 0.12);
}

.mode-panel {
  display: grid;
  gap: 20px;
}

.ai-type-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid rgba(220, 38, 38, 0.18);
  border-radius: 14px;
  background: #fff;
  padding: 6px;
}

.ai-type-tab {
  cursor: pointer;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 800;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.ai-type-tab.active {
  background: rgba(220, 38, 38, 0.08);
  color: var(--danger);
}

.ai-panel {
  border: 1px solid rgba(220, 38, 38, 0.16);
  border-radius: 18px;
  background: #fff;
  padding: 16px;
}

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

.field-label {
  display: grid;
  gap: 8px;
}

.field-label span {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.field-label input,
.field-label select,
.field-label textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  outline: 0;
  padding: 13px 14px;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field-label textarea {
  resize: vertical;
}

.field-label input:focus,
.field-label select:focus,
.field-label textarea:focus {
  border-color: rgba(220, 38, 38, 0.55);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08);
}

.full-field {
  margin-top: 14px;
}

.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-button {
  cursor: pointer;
  border-radius: 10px;
  background: var(--muted-panel);
  padding: 10px 16px;
  color: #3f4652;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
}

.category-button:hover {
  background: #e6e8ec;
}

.category-button.active {
  background: var(--danger);
  color: #fff;
}

.product-select {
  position: relative;
}

.select-toggle {
  display: flex;
  width: 100%;
  min-height: 58px;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  padding: 16px;
  color: var(--faint);
  text-align: left;
  transition: border-color 0.2s ease;
}

.select-toggle.has-value {
  color: var(--text);
}

.select-toggle:hover,
.select-toggle[aria-expanded="true"] {
  border-color: rgba(239, 68, 68, 0.55);
}

.chevron {
  flex: none;
  color: var(--faint);
  font-size: 24px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.chevron.open {
  transform: rotate(180deg);
}

.dropdown {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + 8px);
  z-index: 20;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel-solid);
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.16);
}

.search-box {
  position: relative;
  display: block;
  border-bottom: 1px solid var(--border);
  padding: 12px;
}

.search-box .icon {
  position: absolute;
  left: 24px;
  top: 50%;
  translate: 0 -50%;
  color: var(--faint);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  outline: 0;
  padding: 10px 12px 10px 40px;
  font-size: 14px;
}

.search-box input:focus {
  border-color: var(--danger);
}

.product-list {
  max-height: 256px;
  margin: 0;
  overflow-y: auto;
  padding: 8px;
  list-style: none;
}

.product-item,
.empty-state {
  border-radius: 8px;
  padding: 12px 16px;
}

.product-item {
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #313844;
  transition: background 0.2s ease, color 0.2s ease;
}

.product-item:hover {
  background: var(--muted-panel);
  color: var(--text);
}

.product-item strong {
  font-size: 15px;
  font-weight: 700;
}

.product-item span {
  flex: none;
  color: var(--faint);
  font-size: 14px;
}

.empty-state {
  color: var(--faint);
  font-size: 14px;
  text-align: center;
}

.usage-block {
  margin-top: 48px;
}

.usage-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  padding: 24px;
}

.usage-summary {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.month-value {
  margin-bottom: 4px;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 900;
}

.month-value span {
  color: var(--faint);
  font-size: 24px;
  font-weight: 600;
}

.usage-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.usage-summary strong,
.danger {
  color: var(--danger-light);
}

#months-range {
  width: 100%;
  accent-color: var(--danger);
  cursor: pointer;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 700;
}

.estimate-wrap {
  position: sticky;
  top: 96px;
}

.estimate-card {
  overflow: hidden;
  border-color: rgba(220, 38, 38, 0.2);
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.ai-card-kicker {
  margin: 0 0 6px;
  color: var(--danger);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.estimate-card h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 24px;
  padding: 32px 32px 0;
  font-family: var(--font-heading);
  font-size: 20px;
}

.estimate-card h3,
.ai-inline-header h4 {
  text-wrap: balance;
}

.estimate-card h3 .refresh-icon {
  color: var(--danger-light);
}

.estimate-list {
  display: grid;
  gap: 0;
  padding: 0 32px;
}

.estimate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.estimate-row.top-align {
  align-items: flex-start;
}

.estimate-row span,
.estimate-total span {
  color: var(--muted);
  font-size: 14px;
}

.estimate-row strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  text-align: right;
}

.estimate-product-stack {
  display: grid;
  justify-items: end;
  gap: 6px;
  max-width: 220px;
  min-width: 0;
  text-align: right;
}

.estimate-product-stack strong {
  display: -webkit-box;
  overflow: hidden;
  max-width: 100%;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.35;
}

.original-price {
  margin: 0;
  padding: 0;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.25;
  text-align: right;
}

.original-price span {
  display: inline-block;
  text-decoration: none;
}

.estimate-total {
  display: grid;
  gap: 8px;
  padding: 32px 0 8px;
}

.estimate-total strong {
  color: var(--text);
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 40px);
  font-weight: 900;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}

.continue-button {
  display: flex;
  width: calc(100% - 64px);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 32px 32px 0;
  border-radius: 14px;
  background: var(--danger);
  color: #fff;
  padding: 16px 24px;
  font-weight: 900;
  transition: background 0.2s ease, transform 0.2s ease;
}

.continue-button:hover:not(:disabled) {
  background: var(--danger-light);
  transform: translateY(-1px);
}

.continue-button:disabled {
  cursor: not-allowed;
  background: #e6e8ec;
  color: var(--faint);
}

.estimate-disclaimer {
  margin: 16px 32px 32px;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

.ai-inline-shell {
  margin: 4px 32px 0;
  border-top: 1px solid var(--border);
  padding-top: 22px;
}

.ai-inline-header {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.ai-inline-header h4 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.ai-result {
  margin: 0 0 28px;
  border: 1px solid rgba(220, 38, 38, 0.18);
  border-radius: 16px;
  background: #fff;
  padding: 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.ai-result h4 {
  margin: 0 0 12px;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 18px;
}

.ai-result p {
  margin: 0 0 12px;
  white-space: pre-line;
}

.ai-result strong {
  display: block;
  margin: 12px 0 6px;
  color: var(--text);
  font-weight: 850;
}

.ai-result ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
}

.ai-result li {
  overflow-wrap: anywhere;
}

.ai-result small {
  display: block;
  margin-top: 12px;
  color: var(--faint);
  line-height: 1.7;
}

.ai-price-range {
  border-radius: 12px;
  background: rgba(220, 38, 38, 0.08);
  color: var(--danger);
  padding: 14px;
  font-family: var(--font-heading);
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 900;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.trade-section-shell {
  position: relative;
}

.trade-section-shell.overlay-active {
  min-height: 760px;
}

.trade-overlay {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background: rgba(247, 247, 248, 0.9);
  backdrop-filter: blur(10px);
}

.trade-overlay-card {
  width: min(100%, 1040px);
  border: 1px solid rgba(220, 38, 38, 0.14);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.14);
  padding: 32px;
}

.trade-overlay-state {
  display: grid;
  gap: 18px;
}

.trade-overlay-state h3 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.trade-overlay-state p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.loading-spinner {
  width: 52px;
  height: 52px;
  border: 4px solid rgba(220, 38, 38, 0.12);
  border-top-color: var(--danger);
  border-radius: 999px;
  animation: spin 0.8s linear infinite;
}

.trade-result-header {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.trade-result-header h3 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 900;
  letter-spacing: -0.035em;
}

.trade-result-content {
  display: grid;
  gap: 12px;
}

.trade-result-content .ai-price-range {
  font-size: clamp(22px, 4vw, 30px);
}

.trade-result-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.secondary-button {
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  padding: 14px 18px;
  font-weight: 800;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.secondary-button:hover {
  border-color: rgba(220, 38, 38, 0.28);
  background: rgba(220, 38, 38, 0.04);
}

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

.steps-section {
  margin-top: 128px;
}

.section-heading {
  margin-bottom: 64px;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.section-heading span {
  display: block;
  width: 80px;
  height: 4px;
  margin: 24px auto 0;
  border-radius: 999px;
  background: var(--danger);
}

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

.step-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--panel-solid);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.06);
  padding: 32px;
}

.step-number {
  position: absolute;
  right: 28px;
  top: 14px;
  color: rgba(220, 38, 38, 0.08);
  font-family: var(--font-heading);
  font-size: 88px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
  transition: transform 0.25s ease;
}

.step-card:hover .step-number {
  color: rgba(220, 38, 38, 0.28);
  transform: scale(1.08);
}

.step-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 14px;
  background: var(--danger-soft);
  color: var(--danger-light);
  font-size: 24px;
  font-weight: 900;
}

.step-icon .icon {
  width: 24px;
  height: 24px;
}

.step-card h3,
.step-card p {
  position: relative;
  z-index: 1;
}

.step-card h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.faq-section {
  margin-top: 112px;
}

.section-heading p {
  max-width: 760px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.faq-list {
  display: grid;
  gap: 14px;
  max-width: 920px;
  margin-inline: auto;
}

.faq-item {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}

.faq-item[open] {
  border-color: rgba(239, 68, 68, 0.42);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.faq-item summary {
  display: flex;
  cursor: pointer;
  list-style: none;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid transparent;
  background: linear-gradient(90deg, #f5f6f8, #ffffff);
  padding: 18px 22px;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item[open] summary {
  border-bottom-color: rgba(239, 68, 68, 0.25);
  background: linear-gradient(90deg, rgba(254, 226, 226, 0.95), #ffffff);
}

.faq-item summary .icon {
  flex: 0 0 auto;
  color: var(--danger-light);
  transition: transform 0.2s ease;
}

.faq-item[open] summary .icon {
  transform: rotate(180deg);
}

.faq-answer {
  border-top: 1px solid rgba(226, 228, 232, 0.9);
  background: linear-gradient(180deg, #ffffff, #fafafa);
  padding: 20px 22px 22px;
}

.highlight-answer {
  background: linear-gradient(180deg, rgba(254, 242, 242, 0.95), #ffffff);
}

.faq-answer p,
.faq-answer li {
  color: #4b5563;
  font-size: 15px;
  line-height: 1.78;
}

.faq-answer strong {
  color: var(--text);
  font-weight: 800;
}

.faq-answer p {
  margin: 0;
}

.faq-answer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.site-footer {
  margin-top: 96px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg), #fff);
  padding: 56px 0 32px;
}

.footer-inner {
  display: block;
}

.footer-panel {
  overflow: hidden;
  border: 1px solid rgba(226, 228, 232, 0.9);
  border-radius: 28px;
  background: linear-gradient(135deg, #ffffff, #f9fafb);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.08);
}

.footer-primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--border);
  padding: 28px 32px;
}

.footer-primary > div {
  display: grid;
  gap: 6px;
  text-align: right;
}

.footer-company {
  margin: 0;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.footer-email {
  color: var(--danger);
  font-size: 14px;
  font-weight: 800;
}

.footer-details {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 0;
}

.footer-group {
  padding: 28px 32px;
}

.footer-group + .footer-group {
  border-left: 1px solid var(--border);
}

.footer-group h3 {
  margin: 0 0 14px;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.footer-group p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.footer-group p + p {
  margin-top: 8px;
}

.footer-group strong {
  color: var(--text);
  font-weight: 850;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  background: rgba(247, 247, 248, 0.72);
  padding: 18px 32px;
}

.footer-bottom p {
  margin: 0;
  color: var(--faint);
  font-size: 13px;
  text-align: center;
}

.reveal {
  animation: reveal 0.55s ease both;
}

.reveal-delay-1 {
  animation-delay: 0.12s;
}

.reveal-delay-2 {
  animation-delay: 0.2s;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 980px) {
  .trade-grid {
    grid-template-columns: 1fr;
  }

  .estimate-wrap {
    position: static;
  }

  .trade-overlay {
    position: fixed;
    inset: 16px;
    border-radius: 24px;
  }

  .trade-overlay-card {
    width: 100%;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
  }

  .footer-details {
    grid-template-columns: 1fr;
  }

  .footer-details {
    display: grid;
  }

  .footer-group + .footer-group {
    border-top: 1px solid var(--border);
    border-left: 0;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, 1280px);
  }

  .hero {
    padding: 0 0 96px;
  }

  .trade-overlay {
    inset: 10px;
    border-radius: 18px;
  }

  .trade-overlay-card {
    border-radius: 20px;
    padding: 22px;
  }

  .trade-section {
    margin-top: -48px;
  }

  .usage-summary {
    align-items: flex-start;
  }

  .product-item span {
    display: none;
  }

  .input-mode-tabs,
  .field-grid,
  .ai-type-tabs {
    grid-template-columns: 1fr;
  }

  .trade-wizard {
    gap: 22px;
    padding: 22px;
    border-radius: 22px;
  }

  .wizard-progress {
    gap: 6px;
  }

  .wizard-dot {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }

  .wizard-stage {
    min-height: auto;
  }

  .wizard-type-card {
    min-height: 132px;
    padding: 20px;
  }

  .wizard-actions {
    position: sticky;
    bottom: 10px;
    z-index: 5;
    flex-direction: column-reverse;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    padding: 12px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  }

  .wizard-actions .continue-button,
  .wizard-actions .secondary-button {
    width: 100%;
    min-width: 0;
  }

  .wizard-preview-card .estimate-row {
    display: grid;
    gap: 8px;
  }

  .wizard-preview-card .estimate-row strong,
  .wizard-preview-card .estimate-product-stack,
  .wizard-preview-card .original-price {
    justify-items: start;
    max-width: 100%;
    text-align: left;
  }

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

  .faq-item summary {
    padding: 16px;
    font-size: 16px;
  }

  .faq-answer {
    padding: 16px;
  }

  .ai-inline-shell {
    margin-inline: 24px;
  }

  .trade-result-actions {
    justify-content: stretch;
  }

  .secondary-button {
    width: 100%;
  }

  .footer-primary {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px;
  }

  .footer-primary > div {
    text-align: left;
  }

  .footer-group,
  .footer-bottom {
    padding-inline: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
