:root {
  --bg: #f8fafc;
  --bg-soft: #eef2f7;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-strong: rgba(255, 255, 255, 0.98);
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(148, 163, 184, 0.28);
  --text: #0f172a;
  --text-soft: #475569;
  --text-muted: #64748b;
  --white: #ffffff;
  --primary: #7c8cff;
  --primary-strong: #5b6dff;
  --primary-2: #22d3ee;
  --primary-soft: rgba(124, 140, 255, 0.12);
  --good: #22c55e;
  --warn: #f59e0b;
  --bad: #ef4444;
  --shadow-lg: 0 30px 80px rgba(15, 23, 42, 0.10);
  --shadow-md: 0 18px 44px rgba(15, 23, 42, 0.08);
  --radius-xl: 28px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: #f8fafc;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(91, 109, 255, 0.06), transparent 28%),
    radial-gradient(circle at bottom right, rgba(34, 211, 238, 0.06), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 48%, #f3f6fb 100%);
  line-height: 1.55;
}

body.theme-dark {
  color: #e5eefb;
  background:
    radial-gradient(circle at top left, rgba(91, 109, 255, 0.2), transparent 30%),
    radial-gradient(circle at bottom right, rgba(34, 211, 238, 0.12), transparent 28%),
    linear-gradient(180deg, #070b14 0%, #0b1020 54%, #080d16 100%);
}

body.theme-dark {
  --bg: #090d18;
  --bg-soft: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.8);
  --bg-card-strong: rgba(15, 23, 42, 0.94);
  --line: rgba(148, 163, 184, 0.16);
  --line-strong: rgba(148, 163, 184, 0.28);
  --text: #e5eefb;
  --text-soft: #a7b7d1;
  --text-muted: #7d8da7;
  --white: #ffffff;
  --shadow-lg: 0 30px 80px rgba(2, 6, 23, 0.45);
  --shadow-md: 0 18px 44px rgba(2, 6, 23, 0.34);
}

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

button,
input,
textarea {
  font: inherit;
}

.site-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(110px);
  opacity: 0.42;
}

.orb-1 {
  width: 440px;
  height: 440px;
  top: -120px;
  right: -120px;
  background: rgba(91, 109, 255, 0.10);
}

.orb-2 {
  width: 360px;
  height: 360px;
  left: -90px;
  bottom: 6%;
  background: rgba(34, 211, 238, 0.10);
}

body.theme-dark .bg-orb {
  filter: blur(90px);
  opacity: 0.55;
}

body.theme-dark .orb-1 {
  background: rgba(91, 109, 255, 0.32);
}

body.theme-dark .orb-2 {
  background: rgba(34, 211, 238, 0.18);
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, rgba(0,0,0,0.96), rgba(0,0,0,0.22) 70%, transparent 100%);
  opacity: 0.16;
}

body.theme-dark .bg-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  opacity: 0.28;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.flow-shell {
  position: relative;
  z-index: 2;
  padding: 28px 0 72px;
  display: grid;
  gap: 24px;
}

.narrow-shell {
  max-width: 860px;
}

.card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.94)),
    var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

body.theme-dark .card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)),
    var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.stepper,
.page-intro,
.form-card,
.side-panel,
.chat-card,
.payment-summary-card,
.checkout-card,
.checkout-mock-card,
.result-hero,
.featured-result-card,
.result-sidebar,
.products-list-card,
.empty-state-block {
  padding: 28px;
}

.page-intro,
.form-card {
  padding-left: 36px;
  padding-right: 36px;
}

@media (max-width: 640px) {
  .page-intro,
  .form-card {
    padding-left: 20px;
    padding-right: 20px;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6366f1;
}

body.theme-dark .eyebrow {
  color: #aab9ff;
}

h1,
h2,
h3,
strong {
  color: var(--text);
}

body.theme-dark h1,
body.theme-dark h2,
body.theme-dark h3,
body.theme-dark strong {
  color: var(--white);
}

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

h1 {
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

h2 {
  font-size: clamp(1.4rem, 2vw, 2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 0;
}

h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.hero-lead,
.body-copy {
  color: var(--text-soft);
}

.muted {
  color: var(--text-muted);
}

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

.section-heading.compact {
  margin-bottom: 20px;
}

.flow-grid,
.chat-layout,
.payment-layout,
.result-grid {
  display: grid;
  gap: 24px;
}

.flow-grid {
  grid-template-columns: 1.05fr 1fr;
}

.chat-layout {
  grid-template-columns: 360px minmax(0, 1fr);
  align-items: start;
}

.payment-layout {
  grid-template-columns: 1.15fr 360px;
  align-items: start;
}

.result-grid {
  grid-template-columns: 1.2fr 360px;
  align-items: start;
}

.accent-panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(124, 140, 255, 0.10), transparent 35%),
    linear-gradient(180deg, rgba(124, 140, 255, 0.04), rgba(255,255,255,0) 36%),
    var(--bg-card-strong);
}

body.theme-dark .accent-panel {
  background:
    radial-gradient(circle at top right, rgba(124, 140, 255, 0.2), transparent 35%),
    linear-gradient(180deg, rgba(124, 140, 255, 0.08), rgba(255,255,255,0) 36%),
    var(--bg-card-strong);
}

.accent-panel::after,
.result-hero::after {
  content: "";
  position: absolute;
  inset: auto -40px -56px auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(34,211,238,0.12) 0%, transparent 70%);
  border-radius: 999px;
}

body.theme-dark .accent-panel::after,
body.theme-dark .result-hero::after {
  background: radial-gradient(circle, rgba(34,211,238,0.18) 0%, transparent 70%);
}

.highlight-list,
.checkout-features,
.product-list {
  display: grid;
  gap: 14px;
}

.highlight-item,
.note-card,
.metric-card,
.product-row,
.info-row {
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(248, 250, 252, 0.95);
  border-radius: 18px;
}

body.theme-dark .highlight-item,
body.theme-dark .note-card,
body.theme-dark .metric-card,
body.theme-dark .product-row,
body.theme-dark .info-row {
  border: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(255,255,255,0.03);
}

.highlight-item {
  padding: 16px 18px;
}

.highlight-item strong,
.metric-card strong,
.checkout-price strong,
.product-metrics strong,
.hero-stat strong {
  display: block;
}

.highlight-item span,
.metric-card span,
.checkout-price span,
.product-metrics span,
.hero-stat span {
  color: var(--text-muted);
  font-size: 13px;
}

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

.field {
  display: grid;
  gap: 10px;
}

.field.full,
.form-actions.full {
  grid-column: 1 / -1;
}

label {
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
}

body.theme-dark label {
  color: var(--white);
}

input,
textarea {
  width: 100%;
  padding: 15px 16px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #ffffff;
  color: var(--text);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

body.theme-dark input,
body.theme-dark textarea {
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(9, 14, 27, 0.92);
  color: var(--text);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

input::placeholder,
textarea::placeholder {
  color: #94a3b8;
}

body.theme-dark input::placeholder,
body.theme-dark textarea::placeholder {
  color: #73839e;
}

input:focus,
textarea:focus {
  border-color: rgba(124, 140, 255, 0.58);
  box-shadow: 0 0 0 4px rgba(124, 140, 255, 0.10);
}

body.theme-dark input:focus,
body.theme-dark textarea:focus {
  border-color: rgba(124, 140, 255, 0.66);
  box-shadow: 0 0 0 4px rgba(124, 140, 255, 0.12);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

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

.button.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-strong), var(--primary), var(--primary-2));
  box-shadow: 0 18px 36px rgba(91, 109, 255, 0.22);
}

.button.light {
  color: var(--text);
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.24);
}

body.theme-dark .button.light {
  color: var(--text);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.button.large {
  min-height: 54px;
  padding: 0 24px;
}

.button.full-width {
  width: 100%;
}

.button.icon {
  min-width: 118px;
}

.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid transparent;
}

.status-pill.subtle {
  color: #475569;
  background: #f8fafc;
  border-color: rgba(148, 163, 184, 0.18);
}

body.theme-dark .status-pill.subtle {
  color: #cdd6e6;
  background: rgba(255,255,255,0.06);
  border-color: rgba(148, 163, 184, 0.14);
}

.status-pill.good,
.status-pill.success {
  color: #166534;
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.22);
}

body.theme-dark .status-pill.good,
body.theme-dark .status-pill.success {
  color: #ccf6d9;
}

.status-pill.warn {
  color: #92400e;
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.22);
}

body.theme-dark .status-pill.warn {
  color: #ffe8b5;
}

.status-pill.bad {
  color: #991b1b;
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.22);
}

body.theme-dark .status-pill.bad {
  color: #ffd3d3;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.95));
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-lg);
}

body.theme-dark .stepper {
  background: transparent;
  border: none;
  box-shadow: none;
}

.stepper-item {
  position: relative;
  min-width: 0;
}

.stepper-item:not(:last-child) .stepper-line {
  position: absolute;
  top: 22px;
  left: calc(50% + 22px);
  right: -10px;
  height: 1px;
  background: rgba(148, 163, 184, 0.18);
}

body.theme-dark .stepper-item:not(:last-child) .stepper-line {
  background: rgba(148, 163, 184, 0.16);
}

.stepper-item.is-done:not(:last-child) .stepper-line {
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.65), rgba(124, 140, 255, 0.55));
}

.stepper-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px;
  min-width: 0;
}

.stepper-dot {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.24);
  color: #475569;
  font-weight: 800;
  flex-shrink: 0;
}

body.theme-dark .stepper-dot {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: var(--text);
}

.stepper-copy {
  display: grid;
  min-width: 0;
}

.stepper-copy strong {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stepper-copy small {
  color: var(--text-muted);
  font-size: 12px;
}

.stepper-item.is-active .stepper-dot {
  background: linear-gradient(135deg, var(--primary-strong), var(--primary));
  border-color: transparent;
  color: #ffffff;
}

.stepper-item.is-active .stepper-copy strong,
.stepper-item.is-done .stepper-copy strong {
  color: var(--text);
}

body.theme-dark .stepper-item.is-active .stepper-copy strong,
body.theme-dark .stepper-item.is-done .stepper-copy strong {
  color: var(--white);
}

.stepper-item.is-done .stepper-dot {
  background: rgba(34, 197, 94, 0.10);
  border-color: rgba(34, 197, 94, 0.24);
  color: #15803d;
}

body.theme-dark .stepper-item.is-done .stepper-dot {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.3);
  color: #d1f9dd;
}

.info-stack,
.preview-grid,
.compact-stats {
  display: grid;
  gap: 14px;
}

.preview-grid,
.compact-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-row,
.note-card,
.metric-card {
  padding: 16px 18px;
}

.info-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.info-value {
  color: var(--text);
}

.chat-card {
  display: grid;
  min-height: 74vh;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff, #ffffff);
}

body.theme-dark .chat-card {
  background: transparent;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.chat-thread {
  min-height: 0;
  overflow-y: auto;
  padding: 18px 14px 18px;
  display: grid;
  gap: 14px;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.70), rgba(248,250,252,0.92)),
    radial-gradient(circle at 20% 10%, rgba(99,102,241,0.04), transparent 25%),
    radial-gradient(circle at 80% 90%, rgba(56,189,248,0.04), transparent 24%),
    #f1f5f9;
}

body.theme-dark .chat-thread {
  padding: 8px 2px 12px;
  border-radius: 0;
  border: none;
  background: transparent;
}

.bubble-row {
  display: flex;
  padding: 2px 2px;
}

.bubble-row.left {
  justify-content: flex-start;
}

.bubble-row.right {
  justify-content: flex-end;
}

.chat-bubble {
  position: relative;
  max-width: min(78%, 620px);
  padding: 14px 16px;
  border-radius: 22px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

body.theme-dark .chat-bubble {
  box-shadow: 0 12px 26px rgba(2, 6, 23, 0.18);
}

.chat-bubble.assistant {
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #0f172a;
  border-top-left-radius: 10px;
}

.chat-bubble.assistant::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 14px;
  width: 18px;
  height: 18px;
  background: #ffffff;
  border-left: 1px solid rgba(148, 163, 184, 0.18);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  transform: rotate(45deg);
  border-bottom-left-radius: 4px;
}

body.theme-dark .chat-bubble.assistant {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: var(--text);
  border-top-left-radius: 8px;
}

body.theme-dark .chat-bubble.assistant::before {
  display: none;
}

.chat-bubble.user {
  background: linear-gradient(135deg, #4f46e5, #6366f1, #38bdf8);
  color: #ffffff;
  border: 0;
  border-top-right-radius: 10px;
}

.chat-bubble.user::before {
  content: "";
  position: absolute;
  right: -7px;
  top: 14px;
  width: 18px;
  height: 18px;
  background: #57a8f8;
  transform: rotate(45deg);
  border-bottom-right-radius: 4px;
}

body.theme-dark .chat-bubble.user {
  background: linear-gradient(135deg, rgba(91, 109, 255, 0.95), rgba(34, 211, 238, 0.82));
  border-top-right-radius: 8px;
}

body.theme-dark .chat-bubble.user::before {
  display: none;
}

.chat-role {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
  opacity: 0.75;
}

.chat-content {
  white-space: pre-wrap;
  word-break: break-word;
}

.sticky-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.98) 36%);
}

body.theme-dark .sticky-composer {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0), rgba(15, 23, 42, 0.84) 34%);
}

.sticky-composer textarea {
  min-height: 54px;
  max-height: 120px;
  resize: none;
  background: #ffffff;
}

.checkout-card,
.result-sidebar {
  position: sticky;
  top: 24px;
}

.checkout-price {
  margin: 20px 0;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(124, 140, 255, 0.10), rgba(34, 211, 238, 0.08));
  border: 1px solid rgba(124, 140, 255, 0.18);
}

body.theme-dark .checkout-price {
  background: linear-gradient(135deg, rgba(124, 140, 255, 0.14), rgba(34, 211, 238, 0.08));
}

.checkout-price strong {
  margin-top: 8px;
  font-size: 2rem;
  letter-spacing: -0.03em;
}

.checkout-features {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
}

.checkout-features li {
  position: relative;
  padding-left: 22px;
  color: var(--text-soft);
}

.checkout-features li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #22c55e;
}

body.theme-dark .checkout-features li::before {
  color: #90f5c1;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.hero-stat {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

body.theme-dark .hero-stat {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.hero-stat strong {
  margin-top: 8px;
  font-size: 1.1rem;
}

.product-list {
  gap: 16px;
}

.product-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 18px;
}

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

.product-index {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef2ff;
  color: #4338ca;
  font-weight: 800;
  flex-shrink: 0;
}

body.theme-dark .product-index {
  background: rgba(124, 140, 255, 0.12);
  color: var(--white);
}

.product-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(90px, auto));
  gap: 16px;
  align-content: center;
}

.empty-state-block {
  text-align: left;
}

.result-actions {
  margin-top: 16px;
}

.product-link-wrap {
  display: flex;
  align-items: center;
}

.product-link-button {
  min-height: 40px;
  padding: 0 16px;
}

@media (max-width: 1080px) {
  .flow-grid,
  .chat-layout,
  .payment-layout,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .checkout-card,
  .result-sidebar {
    position: static;
  }

  .chat-card {
    min-height: 68vh;
  }
}

@media (max-width: 860px) {
  .stepper {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .stepper-item .stepper-line {
    display: none;
  }

  .preview-grid,
  .compact-stats,
  .hero-stats,
  .form-grid,
  .product-metrics {
    grid-template-columns: 1fr;
  }

  .sticky-composer {
    grid-template-columns: 1fr;
  }

  .chat-bubble {
    max-width: 90%;
  }

  .product-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 20px, 1180px);
  }

  .flow-shell {
    padding: 16px 0 42px;
    gap: 16px;
  }

  .stepper,
  .page-intro,
  .form-card,
  .side-panel,
  .chat-card,
  .payment-summary-card,
  .checkout-card,
  .checkout-mock-card,
  .result-hero,
  .featured-result-card,
  .result-sidebar,
  .products-list-card,
  .empty-state-block {
    padding: 20px;
  }

  h1 {
    font-size: 1.9rem;
  }

  .chat-card {
    min-height: 75vh;
  }
}

.page-shell {
  padding-top: 32px;
  padding-bottom: 48px;
}

.hero-home,
.section-card {
  padding: 32px 36px;
  margin-top: 10px;
}

.hero-copy {
  max-width: 820px;
}

.agent-grid {
  margin-top: 8px;
}

.agent-card {
  padding: 24px;
}

@media (max-width: 640px) {
  .hero-home,
  .section-card {
    padding: 20px;
    margin-top: 10px;
  }

  .agent-card {
    padding: 18px;
  }
}

/* === Premium refresh for produtoparavender.com.br === */
.page-shell {
  position: relative;
  z-index: 2;
  padding: 28px 0 72px;
  display: grid;
  gap: 24px;
}

.page-home {
  gap: 28px;
}

.hero-surface {
  position: relative;
  overflow: hidden;
}

.hero-home {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 24px;
  align-items: stretch;
  padding: 34px;
  background:
    radial-gradient(circle at top right, rgba(124, 140, 255, 0.14), transparent 34%),
    radial-gradient(circle at bottom left, rgba(34, 211, 238, 0.10), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.95));
}

.hero-home::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0) 50%, rgba(124,140,255,0.05) 100%);
  pointer-events: none;
}

.hero-home__content,
.hero-showcase {
  position: relative;
  z-index: 1;
}

.hero-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hero-proof {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-proof span,
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(148,163,184,0.16);
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.hero-home__copy h1 {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: .95;
  letter-spacing: -0.05em;
  max-width: 12ch;
}

.hero-lead--wide {
  max-width: 58ch;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.hero-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

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

.showcase-tile {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(148,163,184,0.16);
  box-shadow: 0 16px 30px rgba(15,23,42,0.06);
}

.showcase-tile--xl {
  grid-column: span 2;
  min-height: 220px;
  display: grid;
  align-content: space-between;
}

.showcase-tile--accent {
  background: linear-gradient(135deg, rgba(79,70,229,0.92), rgba(56,189,248,0.84));
  color: #fff;
}

.showcase-tile--accent p,
.showcase-tile--accent .tile-label,
.showcase-tile--accent strong,
.showcase-tile--accent h3 {
  color: #fff;
}

.tile-label,
.insight-label {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #64748b;
}

.showcase-tile h3,
.showcase-tile strong {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.showcase-tile p {
  margin: 0;
  color: #475569;
}

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

.insight-card {
  padding: 18px 20px;
}

.insight-card strong {
  display: block;
  font-size: 1rem;
}

.section-card--premium {
  padding: 32px;
}

.section-heading--hero {
  align-items: end;
}

.section-subcopy {
  max-width: 58ch;
  margin-top: 10px;
}

.premium-agent-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.agent-grid {
  display: grid;
}

.agent-card--premium {
  display: grid;
  gap: 18px;
  padding: 24px;
  background:
    radial-gradient(circle at top right, rgba(124,140,255,0.08), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.95));
}

.agent-card-copy h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.agent-card-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.agent-card-points span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid rgba(148,163,184,0.16);
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.agent-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  margin-top: auto;
}

.price-block span {
  display: block;
  margin-bottom: 6px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.price-block strong {
  font-size: 1.25rem;
}

.flow-grid--hero {
  align-items: start;
}

.accent-panel--premium {
  min-height: 100%;
}

.highlight-list--premium .highlight-item {
  background: rgba(255,255,255,0.72);
}

.form-card--premium {
  background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(255,255,255,0.96));
}

.section-heading--sticky {
  position: sticky;
  top: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,1), rgba(255,255,255,.92));
  padding-bottom: 8px;
  z-index: 2;
}

.microcopy {
  color: #64748b;
  font-size: 13px;
  align-self: center;
}

.chat-layout--premium {
  grid-template-columns: 340px minmax(0, 1fr);
}

.side-panel--premium {
  position: sticky;
  top: 24px;
}

.side-panel-note {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(124,140,255,0.10), rgba(34,211,238,0.08));
  border: 1px solid rgba(124,140,255,0.16);
  display: grid;
  gap: 8px;
}

.chat-card--premium {
  min-height: 76vh;
}

.chat-thread--premium {
  background:
    radial-gradient(circle at 10% 10%, rgba(124,140,255,0.06), transparent 18%),
    radial-gradient(circle at 90% 90%, rgba(34,211,238,0.06), transparent 18%),
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(248,250,252,0.98));
}

.payment-layout--premium {
  grid-template-columns: minmax(0, 1.1fr) 380px;
}

.preview-grid--premium {
  margin-top: 18px;
}

.metric-card--premium {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.note-card--premium {
  margin-top: 18px;
}

.checkout-card--premium {
  background:
    radial-gradient(circle at top right, rgba(124,140,255,0.14), transparent 35%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.96));
}

.checkout-price--premium strong {
  font-size: 2.25rem;
}

.checkout-features--premium li {
  padding-block: 2px;
}

.payment-state-card {
  padding: 32px;
}

.result-actions .button,
.product-link-button {
  min-height: 42px;
}

@media (max-width: 1080px) {
  .hero-home,
  .payment-layout--premium,
  .chat-layout--premium,
  .premium-agent-grid,
  .insight-strip {
    grid-template-columns: 1fr;
  }

  .hero-home__copy h1 {
    max-width: none;
  }
}

@media (max-width: 860px) {
  .showcase-grid,
  .premium-agent-grid,
  .insight-strip {
    grid-template-columns: 1fr;
  }

  .showcase-tile--xl {
    grid-column: span 1;
    min-height: auto;
  }

  .hero-home {
    padding: 22px;
  }

  .agent-card-footer {
    align-items: start;
    flex-direction: column;
  }
}
