@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Unbounded:wght@600;700&display=swap");

:root {
  color-scheme: light;
  --ink: #151515;
  --muted: #6f7377;
  --paper: #ededeb;
  --surface: #ffffff;
  --surface-soft: #e4e4e0;
  --line: #d3d3ce;
  --brand: #ff6b00;
  --brand-strong: #e85f00;
  --night: #111315;
  --night-deep: #090a0a;
  --white: #f7f7f4;
  --danger: #b42318;
  --warning: #b54708;
  --success: #217a3c;
  --radius-sm: 2px;
  --radius: 2px;
  --radius-lg: 2px;
  --shadow: 0 18px 46px rgba(0, 0, 0, 0.13);
  --max: 1180px;
  font-family: Manrope, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}
button, input, textarea, select { font: inherit; }
a { color: inherit; }

.container { width: min(var(--max), calc(100% - 36px)); margin-inline: auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(17, 19, 21, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(247, 247, 244, 0.12);
}
.header-inner { min-height: 104px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--white); }
.brand-logo { display: block; width: 114px; height: auto; }
.sidebar .brand-logo { width: 116px; }
.top-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.top-nav a { text-decoration: none; color: #a7aaad; font-weight: 650; font-size: 14px; }
.top-nav a:hover, .top-nav a[aria-current="page"] { color: var(--white); }
.header-actions { display: flex; gap: 10px; }

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 2px;
  padding: 0 18px;
  background: var(--night);
  color: var(--white);
  text-decoration: none;
  font-weight: 750;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .55; cursor: wait; transform: none; }
.button-primary { background: var(--brand); color: #111; }
.button-primary:hover { background: var(--brand-strong); }
.button-secondary { background: var(--surface); border-color: var(--line); color: var(--ink); }
.site-header .button-secondary { background: transparent; border-color: rgba(247,247,244,.34); color: var(--white); }
.button-danger { background: #fff4f2; color: var(--danger); border-color: #fecdca; }
.button-small { min-height: 38px; padding: 0 14px; font-size: 14px; }

.hero { padding: 76px 0 76px; color: var(--white); background: var(--night); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 54px; align-items: center; }
.hero-grid > * { min-width: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--brand); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 22px; height: 3px; background: var(--brand); }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: Unbounded, sans-serif; font-weight: 700; }
h1 { margin: 18px 0 22px; font-size: clamp(40px, 5.7vw, 70px); line-height: 1.02; letter-spacing: .035em; max-width: 850px; }
h2 { font-size: clamp(28px, 4vw, 48px); line-height: 1.04; letter-spacing: .025em; }
h3 { font-size: 18px; letter-spacing: .01em; }
.hero-copy { max-width: 650px; font-size: 19px; color: #b6b9bb; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.microcopy { margin-top: 18px; color: #8e9295; font-size: 13px; }
.vin-card { position: relative; min-height: 360px; padding: 28px; border: 1px solid rgba(247,247,244,.14); border-top: 4px solid var(--brand); border-radius: 2px; overflow: hidden; background: var(--night-deep); color: var(--white); box-shadow: var(--shadow); }
.vin-card::after { content: ""; position: absolute; width: 250px; height: 250px; right: -95px; bottom: -95px; border: 48px solid rgba(255, 107, 0, .17); border-radius: 50%; }
.vin-label { color: var(--brand); font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.vin-number { margin-top: 24px; padding: 20px; border: 1px solid rgba(255,255,255,.18); border-radius: 2px; font: 700 17px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .08em; background: rgba(255,255,255,.06); }
.result-stack { margin-top: 28px; display: grid; gap: 10px; }
.result-row { display: flex; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 14px; }
.result-row span { color: #b7c2bd; }
.result-row strong { text-align: right; }
.selection-example::after { display: none; }
.example-request { margin-top: 22px; }
.selection-example h3 { margin-bottom: 12px; font-size: 18px; }
.example-caption { display: block; color: #b7c2bd; font-size: 13px; }
.selection-example .vin-number { margin-top: 8px; }
.example-fields { margin: 14px 0 0; }
.example-fields > div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.example-fields dt { color: #b7c2bd; font-size: 14px; }
.example-fields dd { margin: 0; text-align: right; font-size: 14px; font-weight: 750; overflow-wrap: anywhere; min-width: 0; }
.example-reply { margin-top: 24px; padding: 18px; border-left: 3px solid var(--brand); background: #191b1d; }
.example-reply h3 { margin: 6px 0 0; }
.example-part-number { font-family: ui-monospace, Consolas, monospace; }
.example-match { margin: 14px 0 0; font-size: 13px; color: #f7f7f4; }
.example-disclaimer { margin: 18px 0 0; color: #b7c2bd; font-size: 12px; line-height: 1.6; }
.example-reply { transition: opacity .5s ease, transform .5s ease; }
.selection-example[data-stage="typing"] .example-reply,
.selection-example[data-stage="choice"] .example-reply { opacity: 0; transform: translateY(8px); }
.selection-example[data-stage="choice"] .example-request dd { color: #ff9c54; }
.example-motion-control { margin-top: 12px; padding: 8px 0; border: 0; background: transparent; color: #b7c2bd; font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; }
.example-motion-control:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
  .selection-example .example-reply { opacity: 1 !important; transform: none !important; transition: none; }
}
@media (max-width: 400px) {
  .example-fields > div { display: block; }
  .example-fields dd { margin-top: 4px; text-align: left; }
}

.section { padding: 72px 0; }
.landing-faq { max-width: 900px; }
.landing-faq details { padding: 20px 24px; margin-bottom: 12px; background: var(--surface); border: 1px solid var(--line); }
.landing-faq summary { cursor: pointer; font-weight: 800; line-height: 1.5; }
.landing-faq summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 5px; }
.landing-faq p { margin: 16px 0 0; color: var(--muted); line-height: 1.7; }
#parts .note { margin-top: 24px; }
.part-icon { display: block; width: 48px; height: 48px; margin-bottom: 20px; color: #b94700; }
.section-dark { color: var(--white); background: var(--night); }
.section-head { display: flex; justify-content: space-between; gap: 28px; align-items: end; margin-bottom: 28px; }
.section-head p { max-width: 560px; color: var(--muted); }
.section-dark .section-head p { color: #aebbb5; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card, .card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: none; }
.feature-card { padding: 24px; }
.feature-number { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 2px; margin-bottom: 32px; color: #111; background: var(--brand); font-weight: 850; }
.feature-card p { margin: 0; color: var(--muted); }
.section-dark .feature-card { color: var(--white); border-color: #303235; background: #191b1d; }
.section-dark .feature-card p { color: #a7aaad; }
.note { padding: 18px 20px; border-left: 4px solid var(--brand); border-radius: 0; background: #fff3ea; color: #4f2a10; }

.pricing-section { background: #deded9; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; padding: 28px; border: 1px solid #c9c9c3; background: var(--surface); }
.price-card-featured { color: var(--white); border-color: var(--brand); border-top-width: 5px; background: var(--night); }
.plan-name { margin-bottom: 24px; color: var(--brand); font-size: 13px; font-weight: 800; letter-spacing: .12em; }
.plan-price { display: grid; gap: 2px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.price-card-featured .plan-price { border-color: #343638; }
.plan-price strong { font: 700 clamp(34px, 4vw, 48px)/1 Unbounded, sans-serif; letter-spacing: .02em; }
.plan-price span { color: var(--muted); font-size: 14px; }
.price-card-featured .plan-price span { color: #a7aaad; }
.price-card ul { display: grid; gap: 11px; margin: 22px 0 28px; padding: 0; list-style: none; }
.price-card li { position: relative; padding-left: 20px; }
.price-card li::before { content: ""; position: absolute; left: 0; top: .58em; width: 7px; height: 7px; background: var(--brand); }
.price-card .button { width: 100%; margin-top: auto; }
.popular-label { position: absolute; top: 16px; right: 16px; padding: 5px 8px; color: #111; background: var(--brand); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.payment-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 26px; border: 1px solid #c9c9c3; background: #c9c9c3; }
.payment-flow > div { min-height: 190px; padding: 24px; background: #f5f5f2; }
.payment-flow span { display: block; margin-bottom: 28px; color: var(--brand); font: 700 13px Unbounded, sans-serif; }
.payment-flow strong { display: block; margin-bottom: 8px; font-size: 17px; }
.payment-flow p { margin: 0; color: var(--muted); font-size: 14px; }
.payment-note { margin: 16px 0 0; color: #5f6265; font-size: 13px; }
#tariffs .price-card { min-width: 0; }
#tariffs .price-card-featured .plan-price strong { font-size: clamp(26px, 3vw, 36px); overflow-wrap: anywhere; }
#tariffs .payment-flow a { overflow-wrap: anywhere; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 244px 1fr; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 24px 18px; color: var(--white); background: var(--night); }
.sidebar .brand { padding: 0 8px 24px; color: var(--white); }
.sidebar-nav { display: grid; gap: 5px; }
.sidebar-nav a { display: flex; align-items: center; gap: 11px; min-height: 44px; padding: 0 12px; border-radius: 10px; text-decoration: none; color: #b8c4bf; font-size: 14px; font-weight: 700; }
.sidebar-nav a:hover, .sidebar-nav a[aria-current="page"] { color: var(--white); background: rgba(255,255,255,.09); }
.sidebar-nav a[aria-current="page"]::before { content: ""; width: 7px; height: 7px; border-radius: 0; background: var(--brand); }
.sidebar-foot { position: absolute; left: 18px; right: 18px; bottom: 20px; }
.sidebar-foot button { width: 100%; }
.app-main { min-width: 0; padding: 34px 40px 60px; }
.app-top { display: flex; align-items: start; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.app-title h1 { margin: 0 0 8px; font-size: clamp(30px, 4vw, 44px); line-height: 1; }
.app-title p { margin: 0; color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
.stat { padding: 20px; }
.stat span { display: block; color: var(--muted); font-size: 13px; font-weight: 700; }
.stat strong { display: block; margin-top: 9px; font-size: 30px; letter-spacing: -.04em; }
.toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin: 18px 0; }
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 2px; background: var(--surface); color: var(--muted); cursor: pointer; }
.chip.active { color: #111; border-color: var(--brand); background: #ffdec7; }
.request-list { display: grid; gap: 10px; }
.request-card { display: grid; grid-template-columns: 110px 1fr 150px 110px; gap: 18px; align-items: center; padding: 18px 20px; text-decoration: none; }
.request-card:hover { border-color: #b5c5ae; }
.request-number { font: 750 14px ui-monospace, Consolas, monospace; }
.request-main strong { display: block; }
.request-main span, .request-date { color: var(--muted); font-size: 13px; }
.badge { display: inline-flex; width: fit-content; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 2px; font-size: 12px; font-weight: 800; background: var(--surface-soft); }
.badge-queue { color: #694100; background: #fff1cc; }
.badge-progress { color: #175cd3; background: #eff8ff; }
.badge-done { color: var(--success); background: #ecfdf3; }
.badge-cancel { color: var(--danger); background: #fef3f2; }

.form-page { padding: 54px 0 80px; }
.form-wrap { width: min(720px, calc(100% - 36px)); margin-inline: auto; }
.form-card { padding: 30px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 800; }
.field small { color: var(--muted); }
.input, .textarea, .select { width: 100%; border: 1px solid var(--line); border-radius: 2px; background: #fff; color: var(--ink); padding: 12px 13px; outline: none; }
.input { min-height: 46px; }
.textarea { min-height: 120px; resize: vertical; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255,107,0,.15); }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.item-row { display: grid; grid-template-columns: 1fr 42px; gap: 10px; margin-bottom: 10px; }
.icon-button { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 2px; background: #fff; cursor: pointer; }
.auth-layout { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-aside { padding: 54px; display: flex; flex-direction: column; justify-content: space-between; color: var(--white); background: var(--night); border-top: 6px solid var(--brand); }
.auth-aside h1 { font-size: clamp(38px, 5vw, 66px); }
.auth-panel { display: grid; place-items: center; padding: 34px; }
.auth-card { width: min(440px, 100%); }
.auth-card h2 { font-size: 36px; }
.auth-card .field { margin-bottom: 15px; }
.auth-card .button { width: 100%; margin-top: 8px; }
.auth-switch { margin-top: 18px; color: var(--muted); font-size: 14px; }
.field-link { margin: -5px 0 12px; text-align: right; color: var(--muted); font-size: 13px; }
.field-link a, .auth-switch a { color: var(--ink); font-weight: 750; }
.access-note { margin-top: 18px; padding: 14px; border-left: 4px solid var(--brand); background: #fff3ea; font-size: 13px; }
.access-note a { font-weight: 800; }
.alert { display: none; margin: 0 0 16px; padding: 12px 14px; border-radius: 2px; font-size: 14px; }
.alert.show { display: block; }
.alert-error { color: var(--danger); background: #fef3f2; }
.alert-success { color: var(--success); background: #ecfdf3; }
.empty { padding: 48px 24px; text-align: center; color: var(--muted); }
.loading { padding: 28px; color: var(--muted); }
.message-list { display: grid; gap: 10px; }
.message-card { padding: 16px 18px; border-left: 4px solid var(--line); background: #f5f5f2; }
.message-card span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.message-card p { margin-bottom: 8px; white-space: pre-wrap; }
.message-card small { color: var(--muted); }
.message-staff { border-left-color: var(--brand); background: #fff3ea; }
.footer { padding: 28px 0; color: #6e7b75; border-top: 1px solid var(--line); font-size: 13px; }
.staff-footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 32px; }
.vin-photo { margin: 24px 0; }
.vin-photo img { display: block; width: auto; max-width: 100%; max-height: 420px; object-fit: contain; border: 1px solid var(--line); }
.vin-photo a { display: inline-block; max-width: 100%; }
.vin-photo span { display: block; margin-top: 10px; }
.staff-footer-link { margin-left: auto; color: inherit; font-weight: 400; text-decoration: none; white-space: nowrap; }
.staff-footer-link:hover, .staff-footer-link:focus-visible { color: var(--ink); text-decoration: underline; }
.staff-footer-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.landing-page main section[id] { scroll-margin-top: 124px; }
.landing-page .top-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.landing-page .top-nav a:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
@media (max-width: 640px) {
  .landing-page .header-inner { min-height: 72px; gap: 12px; }
  .landing-page .brand-logo { width: 72px; }
  .landing-page .top-nav { display: flex; gap: 16px; }
  .landing-page .top-nav a[href="#how"],
  .landing-page .top-nav a[href="#result"] { display: none; }
  .landing-page main section[id] { scroll-margin-top: 92px; }
}
@media (prefers-reduced-motion: reduce) {
  html:has(.landing-page) { scroll-behavior: auto; }
}

@media (max-width: 900px) {
  .hero-grid, .auth-layout { grid-template-columns: 1fr; }
  .vin-card { min-height: 300px; }
  .grid-3, .pricing-grid { grid-template-columns: 1fr; }
  .payment-flow { grid-template-columns: 1fr; }
  .payment-flow > div { min-height: auto; }
  .app-shell { display: block; }
  .sidebar { position: static; height: auto; padding: 14px 18px; }
  .sidebar .brand { padding: 0; }
  .sidebar-nav { margin-top: 12px; display: flex; overflow-x: auto; }
  .sidebar-nav a { white-space: nowrap; }
  .sidebar-foot { position: static; margin-top: 10px; }
  .sidebar-foot button { width: auto; }
  .app-main { padding: 28px 20px 50px; }
  .auth-aside { min-height: 290px; padding: 34px; }
}

@media (max-width: 640px) {
  .hero h1 { font-size: clamp(32px, 10vw, 44px); overflow-wrap: anywhere; }
  .hero .vin-card { padding: 20px; }
  .hero .vin-number { overflow-wrap: anywhere; }
  .top-nav { display: none; }
  .header-actions .button-secondary { display: none; }
  .hero { padding-top: 46px; }
  h1 { font-size: 44px; }
  .section { padding: 52px 0; }
  .section-head, .app-top { display: block; }
  .app-top .button { margin-top: 18px; }
  .stats { grid-template-columns: 1fr; }
  .request-card { grid-template-columns: 86px 1fr; }
  .request-card .badge, .request-date { grid-column: 2; }
  .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .form-card { padding: 20px; }
  .item-row { grid-template-columns: 1fr 42px; }
}
