/* Bestoo-Auto: an editorial product page. Scoped to the Smart API page. */
.smart-experience {
  --smart-ink: #17283f;
  --smart-muted: #546174;
  --smart-line: #dce1e5;
  --smart-paper: #f1f3f3;
  color: var(--smart-ink);
}
.smart-experience section[id] { scroll-margin-top: 88px; }
.smart-experience .hero { padding: 84px 0 0; }
.smart-experience .hero::before { display: none; }
.smart-experience .hero .wrap {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: 42px 64px;
  align-items: center;
}
.smart-experience .eyebrow { color: var(--smart-muted); letter-spacing: .035em; }
.smart-experience .eyebrow::before { background: #557391; }
.smart-experience .hero h1 {
  margin-top: 26px;
  font-size: clamp(36px, 3.8vw, 51px);
  line-height: 1.28;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.smart-experience .hero h1 em { color: #2757b2; }
.smart-experience .hero-lede { max-width: 34em; margin-top: 24px; font-size: 17px; line-height: 1.85; }
.smart-experience .hero .smart-secondary { margin-top: 18px; font-size: 14px; color: var(--smart-muted); }
.smart-experience .hero .smart-secondary code { font-size: 12px; }
.smart-experience .hero-actions { gap: 12px; }
.smart-experience .btn { border-radius: 7px; }
.smart-experience .btn-accent { background: #224dac; border-color: #224dac; }
.smart-experience .btn-accent:hover { background: #193c8b; border-color: #193c8b; }
.smart-experience .keyline { flex-wrap: wrap; gap: 6px 9px; font-size: 12px; margin-top: 24px; }
.smart-experience .smart-route {
  position: relative;
  background: var(--smart-ink);
  color: #f7fafc;
  border: 1px solid var(--smart-ink);
  border-radius: 18px;
  box-shadow: 0 22px 48px -28px rgba(23, 40, 63, .45);
  animation: none;
}
.smart-experience .smart-route .receipt-head {
  padding: 18px 24px;
  gap: 12px;
  flex-wrap: wrap;
  background: transparent;
  border-color: #35465b;
  color: #c5d2e1;
  font-size: 11px;
}
.smart-experience .flow { padding: 25px; gap: 15px; }
.smart-experience .flow-chips { gap: 7px; }
.smart-experience .flow-chips span {
  padding: 7px 4px;
  color: #cdd8e6;
  background: #20334c;
  border-color: #3b4d65;
  font-size: 11px;
  border-radius: 5px;
}
.smart-experience .flow-arrow { color: #8fa9c8; }
.smart-experience .flow-hub {
  min-height: 96px;
  padding: 19px 21px;
  border-color: #6885b1;
  background: #eff4fd;
  color: var(--smart-ink);
  border-radius: 9px;
}
.smart-experience .flow-hub strong { font-size: 13px; font-weight: 500; }
.smart-experience .flow-hub code { display: block; margin-top: 7px; font-size: 21px; letter-spacing: -.055em; color: #21467e; }
.smart-experience .flow-hub .pill { background: #dfe9f8; color: #284c81; font-size: 10px; flex-shrink: 0; }
.smart-experience .flow-split { gap: 10px; }
.smart-experience .flow-split div { padding: 16px; background: #20334c; border-color: #3b4d65; border-radius: 8px; }
.smart-experience .flow-split span { color: #b6c7dc; font-size: 11px; }
.smart-experience .flow-split strong { display: block; margin-top: 5px; font-size: 14px; font-weight: 500; }
.smart-experience .flow-result { margin-top: 2px; padding: 17px 0 0; border: 0; border-top: 1px solid #35465b; border-radius: 0; background: transparent; }
.smart-experience .flow-result svg { color: #b5cebd; }
.smart-experience .flow-result strong { color: #edf3fa; font-weight: 500; font-size: 13px; }
.smart-experience .flow-result span { color: #b6c7dc; font-size: 11px; }
.smart-experience .smart-jump {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-column: 1 / -1;
  margin-top: 15px;
  border-top: 1px solid var(--smart-line);
}
.smart-experience .smart-jump a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 22px;
  border-right: 1px solid var(--smart-line);
  font-size: 13px;
  color: var(--smart-muted);
  transition: color .15s, background-color .15s;
}
.smart-experience .smart-jump a:first-child { padding-left: 0; }
.smart-experience .smart-jump a:last-child { border-right: 0; }
.smart-experience .smart-jump a span { color: #6a829d; }
.smart-experience .smart-jump a:hover { color: #1e4da4; background: #edf1f7; }
.smart-experience .strip { border-top: 1px solid var(--smart-line); border-bottom: 1px solid var(--smart-line); background: #f0f3f6; color: var(--smart-ink); }
.smart-experience .strip .wrap { padding: 20px 0; }
.smart-experience .strip p { font-size: 14px; }
.smart-experience .strip .more { color: #2757b2; font-size: 12px; }
.smart-experience .section { padding: 86px 0; }
.smart-experience .section-alt { background: var(--smart-paper); }
.smart-experience .section-head { max-width: 740px; }
.smart-experience .section-head h2 { margin-top: 18px; font-size: clamp(27px, 2.6vw, 36px); line-height: 1.4; text-wrap: balance; }
.smart-experience .section-head > p:not(.eyebrow) { margin-top: 18px; max-width: 47em; font-size: 15px; line-height: 1.9; color: var(--smart-muted); }
.smart-experience .groups { gap: 0; margin-top: 44px; border-top: 1px solid var(--smart-line); }
.smart-experience .group { padding: 30px 28px 12px; background: transparent; border: 0; border-right: 1px solid var(--smart-line); box-shadow: none; border-radius: 0; }
.smart-experience .group:first-child { padding-left: 0; }
.smart-experience .group:last-child { border-right: 0; padding-right: 0; }
.smart-experience .group .eyebrow { font-size: 11px; color: #567096; }
.smart-experience .group .eyebrow::before { display: none; }
.smart-experience .group h3 { margin-top: 23px; font-size: 22px; }
.smart-experience .group .basis { margin-top: 14px; font-size: 14px; line-height: 1.9; color: var(--smart-muted); }
.smart-experience .use-grid { gap: 18px; }
.smart-experience .use-card { position: relative; padding: 30px; border-color: #dce1e5; border-radius: 10px; box-shadow: none; overflow: hidden; }
.smart-experience .use-card .eyebrow { display: flex; margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: #557194; }
.smart-experience .use-card .eyebrow::before { display: none; }
.smart-experience .use-card .eyebrow::after { content: "↗"; margin-left: auto; color: #8092a9; font-size: 18px; }
.smart-experience .use-card h3 { margin-top: 22px; font-size: 23px; }
.smart-experience .use-card > p:not(.eyebrow) { margin-top: 13px; line-height: 1.9; color: var(--smart-muted); }
.smart-experience .use-card blockquote { margin-top: 24px; padding: 13px 0 0; border: 0; border-top: 1px solid #e1e6eb; background: transparent; border-radius: 0; font-size: 13px; color: #596f8e; }
.smart-experience .note { background: transparent; border: 0; padding: 0; font-size: 12px; color: var(--smart-muted); }
.smart-experience #how-it-works .step-list-4 { max-width: none; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-top: 46px; }
.smart-experience #how-it-works .step { display: block; padding: 24px 0 0; border-top: 2px solid #d9e1ec; border-bottom: 0; }
.smart-experience #how-it-works .step-num { display: block; margin-bottom: 25px; font-size: 28px; letter-spacing: -.06em; color: #8a9bb2; }
.smart-experience #how-it-works .step h3 { font-size: 17px; line-height: 1.5; }
.smart-experience #how-it-works .step p { margin-top: 12px; font-size: 13px; line-height: 1.9; color: var(--smart-muted); }
.smart-experience .pricing-grid { gap: 64px; }
.smart-experience .h2-lg { line-height: 1.4; margin-top: 18px; }
.smart-experience .pricing-grid .lede { margin-top: 22px; font-size: 15px; line-height: 1.95; color: var(--smart-muted); }
.smart-experience .pricing-grid .small { font-size: 12px; line-height: 1.9; color: var(--smart-muted); }
.smart-experience .smart-price { padding: 13px; border-radius: 13px; border-color: #d1dbe7; box-shadow: 0 18px 34px -28px rgba(23, 40, 63, .3); animation: none; }
.smart-experience .smart-price .receipt-foot { grid-template-columns: repeat(2, minmax(0, 1fr)); background: #fff; }
.smart-experience .smart-price .receipt-foot div { padding: 20px; }
.smart-experience .smart-price .receipt-foot div:nth-child(2) { border-right: 0; }
.smart-experience .smart-price .receipt-foot div:last-child { grid-column: 1 / -1; background: #f0f4fa; margin: 8px 0; border-radius: 7px; }
.smart-experience .smart-price .receipt-foot small { font-size: 12px; color: #5c6b7f; }
.smart-experience .smart-price .receipt-foot strong { margin-top: 12px; font-family: var(--sans); font-size: 44px; letter-spacing: -.045em; color: #234575; }
.smart-experience .smart-price .receipt-foot div:last-child strong { margin-top: 7px; font-size: 28px; }
.smart-experience #quickstart .steps { gap: 64px; }
.smart-experience #quickstart .step { padding: 27px 0; grid-template-columns: 32px 1fr; gap: 14px; }
.smart-experience #quickstart .step-num { color: #527097; font-size: 16px; }
.smart-experience #quickstart .step h3 { font-size: 18px; }
.smart-experience #quickstart .step p { margin-top: 10px; line-height: 1.85; color: var(--smart-muted); }
.smart-experience .kv-card { border-color: #d5dfea; border-radius: 10px; box-shadow: none; }
.smart-experience .kv { padding: 19px 22px; }
.smart-experience .kv-row { gap: 10px; }
.smart-experience .kv-row code { overflow-wrap: anywhere; }
.smart-experience .copy { flex-shrink: 0; }
.smart-experience .code { background: var(--smart-ink); border-radius: 10px; box-shadow: none; }
.smart-experience .code-head { flex-wrap: wrap; padding: 13px 16px; }
.smart-experience .code pre { font-size: 12px; }
.smart-experience .faq-wrap { grid-template-columns: .82fr 1.18fr; gap: 72px; }
.smart-experience .faq details { margin: 0; background: transparent; border: 0; border-top: 1px solid #d4dce4; border-radius: 0; box-shadow: none; }
.smart-experience .faq details:last-child { border-bottom: 1px solid #d4dce4; }
.smart-experience .faq summary { padding: 23px 0; line-height: 1.7; font-size: 14px; }
.smart-experience .faq summary::after { color: #55749e; font-size: 20px; }
.smart-experience .faq details p { padding: 0 30px 24px 0; line-height: 1.95; color: var(--smart-muted); font-size: 13px; }
.smart-experience .cta-final { border-top: 1px solid #dce1e5; text-align: center; }
.smart-experience .cta-final .eyebrow::before { display: none; }
.smart-experience .cta-final h2 { line-height: 1.5; font-size: clamp(29px, 3.3vw, 43px); }
.smart-experience .cta-final .hero-actions { justify-content: center; }
.smart-experience .cta-final .small { font-size: 12px; }
.smart-experience a:focus-visible,
.smart-experience button:focus-visible,
.smart-experience summary:focus-visible { outline: 3px solid #6793d5; outline-offset: 4px; }

@media (max-width: 960px) {
  .smart-experience .hero { padding-top: 56px; }
  .smart-experience .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .smart-experience .hero h1 { font-size: clamp(36px, 5.7vw, 52px); }
  .smart-experience .hero .smart-secondary { max-width: 46em; }
  .smart-experience .smart-route { width: 100%; max-width: 580px; }
  .smart-experience .smart-jump { margin-top: 0; }
  .smart-experience .groups { grid-template-columns: 1fr; }
  .smart-experience .group,
  .smart-experience .group:first-child,
  .smart-experience .group:last-child { padding: 27px 0; border-right: 0; border-bottom: 1px solid var(--smart-line); }
  .smart-experience .group h3 { margin-top: 13px; }
  .smart-experience .group .basis { max-width: 52em; }
  .smart-experience #how-it-works .step-list-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .smart-experience .pricing-grid,
  .smart-experience #quickstart .steps,
  .smart-experience .faq-wrap { grid-template-columns: 1fr; gap: 36px; }
  .smart-experience .smart-price { max-width: 580px; }
}

@media (max-width: 600px) {
  .smart-experience .wrap { width: calc(100% - 36px); }
  .smart-experience .hero { padding-top: 40px; }
  .smart-experience .hero h1 { margin-top: 22px; font-size: clamp(29px, 7.6vw, 42px); letter-spacing: -.045em; }
  .smart-experience .hero-lede { font-size: 15px; line-height: 1.85; }
  .smart-experience .hero .smart-secondary { font-size: 13px; }
  .smart-experience .hero-actions { gap: 10px; }
  .smart-experience .hero-actions .btn { padding: 12px 15px; font-size: 13px; }
  .smart-experience .keyline { line-height: 1.9; }
  .smart-experience .smart-route .receipt-head { padding: 15px 18px; font-size: 10px; }
  .smart-experience .flow { padding: 18px; gap: 13px; }
  .smart-experience .flow-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .smart-experience .flow-chips span { font-size: 12px; }
  .smart-experience .flow-hub { padding: 16px; min-height: 88px; }
  .smart-experience .flow-hub code { font-size: 19px; }
  .smart-experience .flow-split div { padding: 13px; }
  .smart-experience .flow-split strong { font-size: 12px; }
  .smart-experience .smart-jump { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .smart-experience .smart-jump a,
  .smart-experience .smart-jump a:first-child { padding: 18px 12px; font-size: 12px; }
  .smart-experience .smart-jump a:nth-child(2) { border-right: 0; }
  .smart-experience .smart-jump a:nth-child(-n+2) { border-bottom: 1px solid var(--smart-line); }
  .smart-experience .strip .wrap { gap: 10px; padding: 18px 0; }
  .smart-experience .strip p { font-size: 13px; line-height: 1.8; }
  .smart-experience .section { padding: 58px 0; }
  .smart-experience .section-head h2 { font-size: 27px; }
  .smart-experience .section-head > p:not(.eyebrow) { font-size: 14px; }
  .smart-experience .groups,
  .smart-experience .use-grid { margin-top: 30px; }
  .smart-experience .use-grid { grid-template-columns: 1fr; gap: 14px; }
  .smart-experience .use-card { padding: 23px; }
  .smart-experience .use-card h3 { font-size: 21px; margin-top: 16px; }
  .smart-experience .use-card > p:not(.eyebrow) { font-size: 13px; }
  .smart-experience #how-it-works .step-list-4 { gap: 24px 20px; margin-top: 30px; }
  .smart-experience #how-it-works .step h3 { font-size: 15px; }
  .smart-experience #how-it-works .step p { font-size: 12px; }
  .smart-experience #how-it-works .step-num { font-size: 24px; margin-bottom: 17px; }
  .smart-experience .h2-lg { font-size: 33px; }
  .smart-experience .smart-price .receipt-foot div { padding: 17px 13px; border-bottom: 0; }
  .smart-experience .smart-price .receipt-foot small { font-size: 10px; }
  .smart-experience .smart-price .receipt-foot strong { font-size: 37px; }
  .smart-experience .kv { padding: 17px; }
  .smart-experience .kv-row code { font-size: 11px; min-width: 0; }
  .smart-experience .code-sub { font-size: 10px; }
  .smart-experience .faq summary { font-size: 13px; padding: 20px 0; }
  .smart-experience .cta-final h2 { font-size: 29px; }
}

@media (prefers-reduced-motion: reduce) {
  html:has(.smart-experience) { scroll-behavior: auto; }
  .smart-experience *, .smart-experience *::before, .smart-experience *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* The budget estimate is local arithmetic, never an account control. */
.smart-experience .smart-estimate-section { border-bottom: 1px solid var(--smart-line); }
.smart-experience .smart-estimate { display: grid; grid-template-columns: 1.1fr .9fr; margin-top: 38px; border: 1px solid #d3dde9; border-radius: 13px; background: #fff; overflow: hidden; }
.smart-experience .estimate-controls { padding: 35px; }
.smart-experience .estimate-control + .estimate-control { margin-top: 34px; padding-top: 29px; border-top: 1px solid #e4e9ef; }
.smart-experience .estimate-label-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.smart-experience .estimate-label-row label { font-size: 15px; font-weight: 500; }
.smart-experience .estimate-number { display: inline-flex; align-items: center; border: 1px solid #c9d5e4; border-radius: 6px; padding-right: 13px; color: #536c8d; font-family: var(--mono); font-size: 12px; background: #f7f9fc; }
.smart-experience .estimate-number input { width: 85px; min-height: 42px; padding: 9px 6px 9px 12px; background: transparent; border: 0; color: var(--smart-ink); font: 15px var(--mono); }
.smart-experience .estimate-control input[type="range"] { display: block; width: 100%; height: 26px; margin: 24px 0 6px; accent-color: #2b5a9c; cursor: pointer; }
.smart-experience .estimate-control input:disabled { cursor: not-allowed; }
.smart-experience .estimate-control input:focus-visible { outline: 3px solid #6793d5; outline-offset: 4px; }
.smart-experience .estimate-scale { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; color: #62768e; font-family: var(--mono); font-size: 10px; }
.smart-experience .estimate-scale span:nth-child(2) { font-family: var(--sans); font-size: 12px; }
.smart-experience .estimate-unit { margin-top: 25px; color: var(--smart-muted); font-size: 11px; line-height: 1.8; }
.smart-experience .estimate-result { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 37px; background: #eef3f9; border-left: 1px solid #d3dde9; }
.smart-experience .estimate-total-label { font-size: 12px; color: #536b8b; }
.smart-experience .estimate-total { display: block; margin-top: 12px; font-size: clamp(40px, 4.5vw, 59px); font-weight: 500; letter-spacing: -.055em; color: #234575; line-height: 1.2; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.smart-experience .estimate-chart { display: flex; height: 20px; margin-top: 30px; overflow: hidden; border-radius: 4px; background: #dce5f0; }
.smart-experience .estimate-chart span { display: block; height: 100%; transition: width .2s ease; }
.smart-experience .estimate-bar-input, .smart-experience .estimate-dot-input { background: #285b9b; }
.smart-experience .estimate-bar-output, .smart-experience .estimate-dot-output { background: #91accd; }
.smart-experience .estimate-breakdown { display: grid; gap: 13px; margin: 24px 0 0; font-size: 13px; }
.smart-experience .estimate-breakdown div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.smart-experience .estimate-breakdown dt { display: flex; align-items: center; gap: 8px; color: #4b6180; }
.smart-experience .estimate-breakdown i { display: block; width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }
.smart-experience .estimate-breakdown dd { margin: 0; color: #234575; font-family: var(--mono); font-size: 13px; }
.smart-experience .estimate-equation { margin-top: 24px; padding-top: 18px; border-top: 1px solid #d4deeb; color: #536b8b; font-family: var(--mono); font-size: 11px; line-height: 1.8; overflow-wrap: anywhere; }
.smart-experience .estimate-disclaimer { max-width: 78em; margin-top: 18px; color: var(--smart-muted); font-size: 12px; line-height: 1.9; }
@media (max-width: 760px) {
  .smart-experience .smart-estimate { grid-template-columns: 1fr; }
  .smart-experience .estimate-controls { padding: 26px; }
  .smart-experience .estimate-result { padding: 28px; border-left: 0; border-top: 1px solid #d3dde9; }
  .smart-experience .estimate-total { font-size: 47px; }
}
@media (max-width: 400px) {
  .smart-experience .estimate-controls, .smart-experience .estimate-result { padding: 22px; }
  .smart-experience .estimate-label-row label { font-size: 13px; }
  .smart-experience .estimate-number input { width: 73px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .smart-experience .estimate-chart span { transition: none; }
}

/* Fit the existing header controls on narrow phones; no navigation DOM changes. */
@media (max-width:360px) {
 body:has(.smart-experience) .site-header .wrap { gap:8px; padding-inline:12px; }
 body:has(.smart-experience) .site-header .brand { font-size:15px; gap:7px; flex-shrink:0; }
 body:has(.smart-experience) .site-header .brand-mark { width:36px; height:auto; }
 body:has(.smart-experience) .site-header .header-tools { gap:4px; min-width:0; }
 body:has(.smart-experience) .site-header .nav-cta { font-size:12px; padding-inline:9px; }
 body:has(.smart-experience) .site-header .nav-toggle { width:34px; flex-shrink:0; }
 body:has(.smart-experience) .site-header .ft-language-switch { min-width:34px; padding-inline:7px; }
 body:has(.smart-experience) .site-header .nav-login.is-logged-in { max-width:78px; padding-inline:5px; }
}

.smart-experience .hero-lede code { white-space:nowrap; }
.smart-experience .steps > div { min-width:0; }
.smart-experience .kv-card { min-width:0; }
.smart-experience .kv-row code { overflow-wrap:anywhere; }
@media (max-width:800px) {
  .smart-experience .steps { grid-template-columns:minmax(0,1fr); }
}
