:root {
  color-scheme: light;
  --ink: #0f172a;
  --muted: #59616d;
  --orange: #ea580c;
  --cream: #faf7f2;
  --peach: #ffeadb;
  --orange-hover: #c2410c;
  --rule: #e9e7e3;
  font-family: 'DM Sans', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 84px; }
body { margin: 0; color: var(--ink); background: #fff; font-size: 16px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { letter-spacing: -.045em; }
h2 { font-size: clamp(32px, 3.8vw, 48px); line-height: 1.13; font-weight: 600; text-wrap: balance; }
h3 { font-size: 24px; line-height: 1.2; font-weight: 600; }
p { line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: default; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
.container { width: min(1184px, calc(100% - 96px)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.topbar { position: sticky; z-index: 10; top: 0; background: #fff; border-bottom: 1px solid #f1f5f9; }
.topbar-inner { width: min(1104px, calc(100% - 48px)); min-height: 68px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.brand { line-height: 0; }
.brand img { display: block; max-width: 100%; }
.topbar nav { display: flex; gap: 20px; align-items: center; font-size: 14px; }
.login { color: #475569; }
.login:hover { color: var(--ink); }
.header-register { padding: 8px 16px; border-radius: 999px; font-weight: 600; line-height: 20px; }
.bg-orange-500 { background: #f97316; }
.hover\:bg-orange-600:hover { background: var(--orange); }
.text-white { color: #fff; }
.text-orange-600 { color: var(--orange); }
.hover\:text-orange-700:hover { color: var(--orange-hover); }

.hero { padding: 42px 0 32px; background: var(--cream); }
.hero-layout { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(24px, 5vw, 70px); }
.breadcrumbs { display: flex; gap: 11px; align-items: center; margin-bottom: 16px; color: #6b6258; font-size: 12px; }
.breadcrumbs a { text-decoration: underline; text-underline-offset: 3px; }
.hero h1 { font-size: clamp(43px, 5.2vw, 68px); line-height: 1.01; font-weight: 600; }
.hero h1 em { display: block; color: var(--orange); font-style: normal; }
.hero-lead { max-width: 540px; margin-top: 20px; color: var(--muted); font-size: clamp(16px, 1.46vw, 19px); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.hero-actions button, .hero-actions a {
  display: inline-flex; align-items: center; gap: 4px; min-height: 36px;
  border: 0; border-radius: 999px; padding: 7px 13px;
  font-size: 13px; line-height: 1.3;
}
.hero-actions button, .hero-actions a, .outline { background: #eee9e1; color: #514638; }
.hero-actions button:hover, .hero-actions a:hover, .outline:hover { background: #ffe0c6; color: #9a3907; }
.hero-visual {
  display: grid; place-items: center; overflow: hidden;
  background: #fff6e1; min-width: 0;
}
.hero-visual img {
  display: block; width: min(100%, 320px); height: auto;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.chat-section { padding: 0 0 46px; background: var(--cream); }
.chat-layout { display: grid; grid-template-columns: minmax(210px, .36fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.chat-intro { padding-top: 16px; }
.chat-intro h2 { font-size: clamp(27px, 3vw, 38px); text-wrap: wrap; }
.chat-intro p { max-width: 230px; margin-top: 8px; color: var(--muted); }
.chat-card { overflow: hidden; border-radius: 22px; background: #fff; box-shadow: 0 16px 40px rgb(62 47 33 / 8%); }
.chat-header { padding: 14px 18px 4px; display: flex; gap: 10px; align-items: center; line-height: 1.3; }
.chat-header img { border-radius: 50%; }
.chat-header strong { font-size: 15px; }
.chat-header small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.chat-body { padding: 12px 18px 0; }
.bubble { width: fit-content; max-width: min(100%, 620px); border-radius: 15px; padding: 10px 13px; overflow-wrap: anywhere; font-size: 14px; line-height: 1.55; }
.assistant { background: #f5f3f1; border-bottom-left-radius: 4px; }
.user-row { display: flex; justify-content: flex-end; }
.user { background: var(--peach); border-bottom-right-radius: 4px; margin: 12px 0; white-space: pre-wrap; }
#response:focus { outline-offset: 2px; }
#handoff-note { margin-top: 9px; color: #71371d; font-size: 13px; }
.reply-actions { display: flex; flex-wrap: wrap; gap: 9px 14px; align-items: center; margin-top: 9px; font-weight: 700; font-size: 13px; }
.reply-actions button { padding: 0; border: 0; background: none; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.reply-actions a { text-decoration: underline; text-underline-offset: 3px; }
.composer { display: flex; align-items: end; gap: 8px; padding: 7px; margin-top: 13px; background: #faf9f7; border: 1px solid var(--rule); border-radius: 16px; }
.composer textarea {
  min-width: 0; flex: 1; padding: 7px 4px 3px; resize: vertical;
  min-height: 48px; max-height: 180px; color: var(--ink); background: transparent;
  border: 0; border-radius: 6px; font-size: 16px; line-height: 1.45;
}
.composer textarea::placeholder { color: #64666d; }
#send:enabled:hover { background: var(--orange-hover); }
#send { flex: 0 0 42px; height: 42px; display: grid; place-items: center; background: var(--orange); color: #fff; border: 0; border-radius: 50%; }
.chat-footer { display: flex; justify-content: space-between; align-items: center; gap: 5px 18px; padding: 10px 18px 13px; font-size: 12px; }
.chat-footer p { color: var(--muted); }
.chat-footer a { flex: none; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.section { padding: 65px 0; }
.section-lead { color: var(--muted); margin-top: 13px; max-width: 640px; }
.case-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; margin-top: 34px; }
.case-action {
  display: grid; grid-template-columns: 36px minmax(0, 1fr) 20px; gap: 16px; align-items: start; text-align: left;
  border: 0; border-bottom: 1px solid var(--rule); padding: 18px 0 21px; background: transparent;
}
.action-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: var(--cream); color: var(--orange-hover); }
.action-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.case-copy { display: grid; gap: 7px; }
.case-copy > strong { font-size: 21px; line-height: 1.25; letter-spacing: -.035em; }
.case-action:hover .case-copy > strong { color: #b94910; }
.case-copy > span { color: var(--muted); font-size: 15px; line-height: 1.52; }
.case-copy > .action-result { color: #8a5a37; margin-top: 1px; font-size: 12px; letter-spacing: .025em; }
.action-arrow { color: var(--orange-hover); font-size: 20px; line-height: 1.4; }

.example { background: var(--cream); }
.example-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 26px; }
.source-estimate, .review { padding: clamp(17px, 2.6vw, 30px); background: #fff; border-radius: 20px; }
.source-estimate table { width: 100%; border-collapse: collapse; margin-top: 11px; font-size: 15px; }
.source-estimate td, .source-estimate th { padding: 9px 6px; text-align: left; }
.source-estimate thead th { color: var(--muted); font-size: 13px; }
.source-estimate td:last-child, .source-estimate thead th:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.source-estimate tbody td { border-top: 1px solid var(--rule); }
.source-estimate table small { display: block; color: var(--muted); font-size: 11px; }
.source-estimate .duplicate td { background: var(--peach); }
.source-estimate tfoot { font-weight: 700; }
.review ul { list-style: none; padding: 0; margin: 13px 0 20px; }
.review li { position: relative; padding-left: 15px; margin-top: 11px; color: var(--muted); font-size: 15px; line-height: 1.58; }
.review li::before { content: ""; width: 6px; height: 6px; position: absolute; top: .62em; left: 1px; background: var(--orange); border-radius: 50%; }
.review strong { color: var(--ink); }
.button {
  display: inline-flex; gap: 10px; align-items: center; justify-content: center; min-height: 44px;
  padding: 10px 16px; border: 0; border-radius: 999px; font-weight: 700; font-size: 14px; line-height: 1.35;
}
.questions-layout { display: grid; grid-template-columns: .72fr 1fr; gap: 32px; }
.questions-layout h2 { max-width: 440px; text-wrap: wrap; }
.faq details { border-block-end: 1px solid var(--rule); padding: 13px 0; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin: 7px 0 0 17px; color: var(--muted); }
.final { background: var(--cream); text-align: center; }
.final .button { margin-top: 20px; }
body > footer { margin-top: 0 !important; }

@media (max-width: 900px) {
  .container { width: calc(100% - 56px); }
  .hero-layout { gap: 26px; }
  .hero h1 { font-size: clamp(39px, 5.55vw, 56px); }
  .chat-layout, .questions-layout { gap: 20px; }
  .case-actions { column-gap: 28px; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 67px; }
  .container { width: calc(100% - 32px); }
  .topbar-inner { min-height: 60px; }
  .brand img { width: 128px; height: auto; }
  .topbar nav { gap: 11px; font-size: 13px; }
  .header-register { padding: 7px 12px; }
  .hero { padding: 28px 0 25px; }
  .hero-layout, .chat-layout, .case-actions, .example-grid, .questions-layout { grid-template-columns: minmax(0, 1fr); }
  .hero-layout { gap: 0; }
  .hero-visual { display: none; }
  .hero h1 { font-size: clamp(38px, 10.9vw, 56px); }
  .hero-lead { margin-top: 14px; }
  .hero-actions { margin-top: 16px; }
  .chat-section { padding-bottom: 30px; }
  .chat-layout { gap: 12px; }
  .chat-intro { padding-top: 0; }
  .chat-intro p { max-width: none; margin-top: 4px; }
  .chat-body, .chat-header, .chat-footer { padding-inline: 13px; }
  .chat-footer { flex-wrap: wrap; }
  .section { padding: 42px 0; }
  .case-actions { margin-top: 15px; }
  .case-action { gap: 12px; padding: 15px 0 16px; }
  .case-copy > strong { font-size: 19px; }
  .case-actions .action-arrow { text-align: right; }
}
