/*
 * DamageBrief — the public landing page (layouts/landing). Its own small stylesheet instead of Bootstrap, and one small
 * script (the sign-in dialog and the contact form, app/javascript/landing.js). Every colour and the typeface come from brand.css tokens,
 * the same as the app's dark theme. No inline styles anywhere (strict CSP). Responsive from 360 px to 1920 px.
 */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.landing {
  margin: 0; background: var(--db-slate-900); color: var(--db-slate-200);
  font: 400 1.0625rem/1.6 var(--db-font-sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; color: var(--db-slate-100); line-height: 1.15; letter-spacing: -0.02em; }
p, figure, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--db-blue-400); text-underline-offset: 2px; }
a:hover { color: var(--db-blue-300); }
:focus-visible { outline: 2px solid var(--db-blue-300); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
@media (min-width: 768px) { .wrap { width: min(1160px, 100% - 64px); } }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 20; padding: 10px 14px; border-radius: 8px;
  background: var(--db-blue-600); color: #fff; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

/* line icons (LandingHelper#landing_icon): stroke only, coloured by the element around them */
.icon {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .8rem 1.25rem; border: 1px solid transparent; border-radius: 10px;
  font: 600 1rem/1.2 var(--db-font-sans); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn .icon { width: 1.15em; height: 1.15em; }
.btn-lg { padding: .95rem 1.5rem; font-size: 1.0625rem; }
.btn-sm { padding: .5rem .95rem; font-size: .9375rem; border-radius: 8px; }
/* blue-600, not 500: white on blue-500 is 4.0:1, under WCAG AA (measured in test/system/ui_account_views_test.rb) */
.btn-primary { background: var(--db-blue-600); color: #fff; box-shadow: 0 10px 28px rgba(47, 111, 208, .3); }
.btn-primary:hover { background: #2a63bc; color: #fff; }
.btn-secondary { background: var(--db-slate-800); border-color: var(--db-slate-700); color: var(--db-slate-100); }
.btn-secondary:hover { background: #2b313c; border-color: var(--db-blue-400); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--db-slate-700); color: var(--db-slate-100); }
.btn-ghost:hover { border-color: var(--db-blue-400); color: #fff; }

/* ---- header ---- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(21, 24, 30, .84); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.site-header-row { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.site-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.2rem; text-decoration: none; }
.site-nav { display: none; gap: 2px; margin-left: auto; }
.site-nav a {
  padding: 8px 12px; border-radius: 8px; color: var(--db-slate-400);
  font-size: .9375rem; font-weight: 500; text-decoration: none;
}
.site-nav a:hover { background: var(--db-slate-850); color: var(--db-slate-100); }
.site-sign-in { margin-left: auto; }
@media (min-width: 960px) {
  .site-nav { display: flex; }
  .site-sign-in { margin-left: 8px; }
}

/* ---- shared section furniture ---- */
.section { padding: 72px 0; scroll-margin-top: 64px; }
.section-alt {
  background: var(--db-slate-950);
  border-top: 1px solid rgba(255, 255, 255, .04); border-bottom: 1px solid rgba(255, 255, 255, .04);
}
@media (min-width: 992px) { .section { padding: 104px 0; } }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section h2 { font-size: clamp(1.75rem, 1.2rem + 2.1vw, 2.6rem); font-weight: 700; letter-spacing: -0.025em; }
.section-lead { margin-top: 16px; max-width: 40em; color: var(--db-slate-400); font-size: 1.0625rem; }
.eyebrow {
  margin-bottom: 14px; color: var(--db-blue-300);
  font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}

/* ---- hero ---- */
.hero {
  padding: 48px 0 80px; overflow: hidden;
  background:
    radial-gradient(70rem 36rem at 88% -12%, rgba(36, 83, 166, .45), transparent 65%),
    radial-gradient(40rem 30rem at -12% 6%, rgba(63, 127, 214, .12), transparent 70%);
}
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 992px) {
  .hero { padding: 88px 0 72px; }
  .hero-grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 64px; }
}
.hero h1 { font-size: clamp(2.25rem, 1.4rem + 3.5vw, 3.75rem); font-weight: 750; line-height: 1.05; letter-spacing: -0.032em; }
.lead { margin-top: 20px; max-width: 36em; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 32px; }
/* on the hero's glow: the lighter grey (slate-400 measured 4.2:1 there) */
.hero-note { color: #a9b2be; font-size: .9375rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 32px; color: #a9b2be; font-size: .9375rem; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts .icon { width: 18px; height: 18px; color: var(--db-blue-300); stroke-width: 2.25; }

/* the hero's picture: the illustration, two chips and the estimate card laid over it */
.hero-visual { position: relative; margin-bottom: 64px; }
.hero-frame { position: relative; }
.hero-photo {
  width: 100%; height: auto; border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.float-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px;
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px; background: rgba(15, 19, 25, .9);
  color: var(--db-slate-100); font-size: .8125rem; font-weight: 600; white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}
.chip-vehicle { top: 4.5%; right: 4%; }
.chip-damage { top: 77%; left: 4%; border-color: rgba(245, 165, 36, .5); padding-left: 12px; }
.chip-letter {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px;
  background: var(--db-blue-600); color: #fff; font-size: .75rem; font-weight: 700;
}
.chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--db-amber-500); box-shadow: 0 0 0 4px rgba(245, 165, 36, .22); }
.estimate-card {
  position: absolute; right: -18px; bottom: -64px; width: min(280px, 72%); padding: 14px 16px;
  border-radius: 14px; background: var(--db-paper); color: var(--db-ink); box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}
.estimate-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: .8125rem; font-weight: 600; }
.estimate-card-head span { margin-left: auto; color: var(--db-ink-soft); font-weight: 500; font-variant-numeric: tabular-nums; }
.estimate-card dl { display: grid; gap: 6px; }
.estimate-card dl > div { display: flex; justify-content: space-between; gap: 12px; font-size: .875rem; }
.estimate-card dt { color: var(--db-ink-soft); }
.estimate-card dd { font-weight: 600; font-variant-numeric: tabular-nums; }
.estimate-card-total { margin-top: 2px; padding-top: 8px; border-top: 1px solid var(--db-paper-line); }
.estimate-card-total dd { color: var(--db-blue-600); font-size: 1rem; }
@media (max-width: 575.98px) {
  .hero-visual { margin-bottom: 0; }
  .float-chip { font-size: .75rem; padding: 4px 10px 4px 6px; }
  .chip-letter { width: 18px; height: 18px; }
  /* above the estimate card, which overlaps the picture's bottom 20 px here */
  .chip-damage { top: auto; bottom: 30px; padding-left: 10px; }
  .estimate-card { position: relative; right: auto; bottom: auto; width: auto; margin: -20px 12px 0; }
}

/* ---- how it works ---- */
.steps { display: grid; gap: 16px; }
.step { position: relative; padding: 22px 20px 24px; border: 1px solid var(--db-slate-700); border-radius: 16px; background: var(--db-slate-850); }
.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.step-icon, .card-icon {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
  background: rgba(63, 127, 214, .14); color: var(--db-blue-300);
}
.step-no { color: var(--db-slate-400); font: 600 .8125rem/1 var(--db-font-mono); }
.step h3 { margin-bottom: 8px; font-size: 1.125rem; }
.step p { color: var(--db-slate-400); font-size: .9375rem; line-height: 1.55; }
@media (min-width: 640px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:last-child { grid-column: 1 / -1; }
}
@media (min-width: 1080px) {
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .step:last-child { grid-column: auto; }
  /* a chevron in the gap: one step leads to the next */
  .step:not(:last-child)::after {
    content: ""; position: absolute; top: 44px; right: -12px; z-index: 1; width: 8px; height: 8px;
    border-top: 2px solid var(--db-slate-500); border-right: 2px solid var(--db-slate-500); transform: rotate(45deg);
  }
}

/* ---- the report ---- */
.report-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 992px) {
  .report-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; }
  .report-copy { position: sticky; top: 96px; }   /* stays beside the (tall) sample while it scrolls past */
}
.report-sections { display: grid; gap: 16px; counter-reset: report-section; }
.report-sections li { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 14px; counter-increment: report-section; }
.report-sections li::before {
  content: counter(report-section); grid-row: span 2; display: grid; place-items: center; width: 30px; height: 30px;
  border: 1px solid var(--db-slate-700); border-radius: 8px; background: var(--db-slate-850);
  color: var(--db-blue-300); font-size: .8125rem; font-weight: 700;
}
.report-sections strong { color: var(--db-slate-100); font-weight: 600; }
.report-sections span { color: var(--db-slate-400); font-size: .9375rem; }
.report-sample figcaption { margin-top: 14px; color: var(--db-slate-400); font-size: .8125rem; }

/* the sample brief: a sheet of paper (ink on paper, the dented corner in amber) */
.paper {
  position: relative; padding: 28px 30px 20px; border-radius: 12px 0 12px 12px;
  background: var(--db-paper); color: var(--db-ink); font-size: .8125rem; line-height: 1.5;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.paper::before {
  content: ""; position: absolute; top: 0; right: 0; width: 36px; height: 36px; border-bottom-left-radius: 7px;
  background: linear-gradient(225deg, var(--db-slate-950) 0 50%, var(--db-amber-500) 50% 100%);
}
.paper h3, .paper h4 { color: var(--db-ink); letter-spacing: -0.005em; }
.paper-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-right: 30px; padding-bottom: 14px; border-bottom: 1px solid var(--db-paper-line);
}
.paper-brand { display: inline-flex; align-items: center; gap: 8px; font-size: .9375rem; }
.paper-langs { display: flex; gap: 4px; }
.paper-langs li {
  padding: 4px 6px; border-radius: 5px; background: var(--db-blue-100); color: var(--db-blue-700);
  font-size: .6875rem; font-weight: 700; letter-spacing: .06em; line-height: 1;
}
.paper-title { margin: 18px 0 14px; font-size: 1.05rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.paper-title span { margin-left: 6px; color: var(--db-ink-soft); font-weight: 600; letter-spacing: 0; text-transform: none; }
.paper-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; padding: 12px 14px;
  border: 1px solid var(--db-paper-line); border-radius: 8px; background: #fff;
}
.paper-grid div { min-width: 0; }
.paper-grid dt { color: var(--db-ink-soft); font-size: .6875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.paper-grid dd { font-weight: 500; overflow-wrap: anywhere; }
.paper-plate { font-family: var(--db-font-mono); }
.paper-block { margin-top: 18px; }
.paper-block h4 { margin-bottom: 6px; color: var(--db-blue-700); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.paper-costs { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.paper-costs th {
  padding: 6px; border-bottom: 1.5px solid var(--db-ink); color: var(--db-ink-soft); text-align: left;
  font-size: .6875rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
}
.paper-costs td { padding: 5px 6px; border-bottom: 1px solid var(--db-paper-line); vertical-align: top; }
.paper-costs .num { text-align: right; white-space: nowrap; }
.paper-part-no { color: var(--db-ink-soft); font-family: var(--db-font-mono); font-size: .92em; white-space: nowrap; }
.paper-totals { display: grid; gap: 2px; width: min(100%, 310px); margin: 8px 0 0 auto; font-variant-numeric: tabular-nums; }
.paper-totals div { display: flex; justify-content: space-between; gap: 16px; padding: 3px 6px; }
.paper-totals dd { font-weight: 600; }
.paper-totals .paper-grand { margin-top: 2px; padding: 6px; border-radius: 6px; background: var(--db-blue-100); color: var(--db-blue-900); font-weight: 700; }
.paper-note { margin-top: 10px; color: var(--db-ink-soft); }
.paper-note strong { color: var(--db-ink); }
.paper-shops li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--db-paper-line); }
.paper-shops span { color: var(--db-ink-soft); text-align: right; }
.paper-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.paper-photos li { display: flex; flex-direction: column; gap: 6px; min-width: 0; color: var(--db-ink-soft); font-size: .75rem; }
.paper-photo {
  display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; border-radius: 6px;
  background: linear-gradient(160deg, #2c3b52, #161c26); color: #8ea4c4;
}
.paper-photo .icon { width: 26px; height: 26px; }
.paper-foot {
  margin-top: 18px; padding-top: 10px; border-top: 1px solid var(--db-paper-line);
  color: var(--db-ink-soft); font-size: .6875rem; text-align: center;
}
@media (max-width: 575.98px) {
  .paper { padding: 20px 14px 14px; font-size: .75rem; }
  .paper::before { width: 28px; height: 28px; }
  .paper-head { margin-right: 22px; }
  .paper-grid { gap: 8px 12px; padding: 10px; }
  .paper-costs .col-wide { display: none; }
  .paper-costs th, .paper-costs td { padding: 5px 4px; }
  .paper-shops li { flex-direction: column; gap: 0; }
  .paper-shops span { text-align: left; }
  .paper-photos { gap: 6px; }
}

/* ---- who it is for: one card per audience, each marked available now or coming soon (a text label, never colour alone) ---- */
.cards { display: grid; gap: 16px; }
@media (min-width: 768px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card {
  display: flex; flex-direction: column; padding: 26px 24px;
  border: 1px solid var(--db-slate-700); border-radius: 16px; background: var(--db-slate-850);
}
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.card h3 { margin-bottom: 8px; font-size: 1.1875rem; }
.card p { color: var(--db-slate-400); font-size: .9375rem; }
.card-soon { border-style: dashed; border-color: rgba(245, 165, 36, .35); }
.card-cta { align-self: flex-start; margin-top: auto; white-space: normal; }
.card-soon p { margin-bottom: 22px; }
.availability {
  padding: 5px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .04em; line-height: 1.2;
  text-transform: uppercase; white-space: nowrap;
}
.availability-now { border: 1px solid #2e6b45; background: #16301f; color: #8fd8a5; }
.availability-soon { border: 1px solid rgba(245, 165, 36, .45); background: rgba(245, 165, 36, .12); color: var(--db-amber-300); }

/* ---- the API: what it does (a checked list) beside how to get access ---- */
.api-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 992px) { .api-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; } }
.api-grid .section-head { margin-bottom: 28px; }
code { padding: 1px 6px; border-radius: 6px; background: var(--db-slate-800); color: var(--db-slate-100); font: .9em var(--db-font-mono); }
.api-points { display: grid; gap: 14px; }
.api-points li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; color: var(--db-slate-400); }
.api-points .icon { width: 22px; height: 22px; margin-top: 2px; color: var(--db-blue-300); stroke-width: 2.25; }
.api-points strong { color: var(--db-slate-100); font-weight: 600; }
.api-card {
  display: grid; gap: 14px; padding: 28px 24px; border: 1px solid var(--db-slate-700); border-radius: 18px;
  background: var(--db-slate-850);
}
.api-card h3 { font-size: 1.1875rem; }
.api-card p { color: var(--db-slate-400); font-size: .9375rem; }
.api-card .inline-icon { display: inline-block; width: 18px; height: 18px; margin-right: 4px; vertical-align: -3px; color: var(--db-blue-300); }
.api-card .btn { justify-self: start; margin-top: 4px; }

/* ---- languages and countries ---- */
.coverage-grid { display: grid; gap: 40px; }
@media (min-width: 992px) { .coverage-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; } }
.coverage-grid .section-head { margin-bottom: 0; }
.language-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.language-pills li {
  padding: 8px 14px; border: 1px solid rgba(91, 155, 255, .28); border-radius: 999px;
  background: rgba(63, 127, 214, .14); color: var(--db-blue-300); font-size: .9375rem; font-weight: 600;
}
.language-pills .language-pill-local { border-color: rgba(245, 165, 36, .35); background: rgba(245, 165, 36, .1); color: var(--db-amber-300); }
.countries h3 { margin-bottom: 16px; font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }
.country-list { display: flex; flex-wrap: wrap; gap: 8px; }
.country-list li {
  padding: 6px 12px; border: 1px solid var(--db-slate-700); border-radius: 8px; background: var(--db-slate-850);
  color: var(--db-slate-200); font-size: .875rem;
}

/* ---- pricing (sits right above the contact block, so no padding of its own below) ---- */
#pricing { padding-bottom: 0; }
.pricing {
  display: grid; gap: 28px; align-items: center; padding: 36px 24px; border-radius: 20px;
  border: 1px solid rgba(91, 155, 255, .22);
  background: linear-gradient(135deg, rgba(36, 83, 166, .38), rgba(28, 33, 40, .9) 62%);
}
.pricing .eyebrow { margin-bottom: 12px; }
.pricing .section-lead { color: #a9b2be; }
.pricing .btn { justify-self: start; }
@media (min-width: 900px) { .pricing { grid-template-columns: minmax(0, 1fr) auto; padding: 48px 56px; } }

/* ---- contact: the words beside the form (stacked on a phone) ---- */
.contact-grid { display: grid; gap: 36px; align-items: start; }
@media (min-width: 992px) { .contact-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; } }
.contact-copy { display: grid; gap: 16px; }
.contact-copy .eyebrow { margin-bottom: 0; }
.contact-copy .section-lead { margin-top: 0; }
.contact-alt { color: var(--db-slate-400); font-size: .9375rem; }
.contact-form-box {
  padding: 24px 20px; border: 1px solid var(--db-slate-700); border-radius: 18px; background: var(--db-slate-850);
}
@media (min-width: 576px) { .contact-form-box { padding: 28px; } }

/* ---- forms (the contact form, the sign-in dialog): the app's controls, in this page's own stylesheet ---- */
.form-grid { display: grid; gap: 16px; }
.form-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.form-label { display: block; margin-bottom: 6px; color: var(--db-slate-100); font-size: .9375rem; font-weight: 600; }
.form-control, .form-select {
  display: block; width: 100%; min-height: 46px; padding: .65rem .85rem; border: 1px solid #3d4552; border-radius: 10px;
  background: var(--db-slate-950); color: var(--db-slate-100); font: 400 1rem/1.4 var(--db-font-sans);
}
textarea.form-control { min-height: 150px; resize: vertical; }
.form-control:focus, .form-select:focus { border-color: var(--db-blue-400); outline: 2px solid var(--db-blue-300); outline-offset: 1px; }
.form-control[readonly] { background: var(--db-slate-800); color: var(--db-slate-200); }
.form-control.is-invalid, .form-select.is-invalid { border-color: #e2625a; }
.field-hint { margin-top: 6px; color: var(--db-slate-400); font-size: .875rem; }
.field-error { margin-top: 6px; color: #f0a19b; font-size: .875rem; font-weight: 500; }
.form-alert, .dialog-alert {
  padding: 12px 14px; border: 1px solid #5c2c2c; border-radius: 10px; background: #341a1b; color: #f0a19b; font-size: .9375rem;
}
.form-alert-title { font-weight: 600; }
.form-alert ul { margin-top: 4px; padding-left: 1.1rem; list-style: disc; }
.dialog-alert { margin-bottom: 14px; }
.turnstile-box { min-height: 65px; color: var(--db-slate-400); font-size: .875rem; }
.contact-submit { display: grid; gap: 10px; justify-items: start; }
.w-100 { width: 100%; }

/* ---- the sign-in dialog (a native modal <dialog>: the page behind is inert; the box is its only child) ---- */
.signin-dialog {
  width: min(440px, 100% - 32px); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 0;
  border: 1px solid var(--db-slate-700); border-radius: 18px; background: var(--db-slate-850); color: var(--db-slate-200);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6); overflow: auto;
}
.signin-dialog::backdrop { background: rgba(5, 7, 10, .8); }
.signin-dialog-box { padding: 22px 22px 24px; }
@media (min-width: 576px) { .signin-dialog-box { padding: 26px 28px 28px; } }
.signin-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.signin-dialog-head h2 { font-size: 1.375rem; font-weight: 700; }
.dialog-close {
  display: grid; place-items: center; flex: none; width: 44px; height: 44px; margin: -6px -10px -6px 0; padding: 0;
  border: 0; border-radius: 10px; background: transparent; color: var(--db-slate-400); cursor: pointer;
}
.dialog-close:hover { background: var(--db-slate-800); color: var(--db-slate-100); }
.signin-dialog-lead { margin: 4px 0 18px; color: var(--db-slate-400); font-size: .9375rem; }
.signin-dialog-foot { margin-top: 18px; color: var(--db-slate-400); font-size: .875rem; }

/* ---- footer ---- */
.site-footer { padding: 44px 0 28px; border-top: 1px solid var(--db-slate-700); background: var(--db-slate-950); }
/* phone: the brand, then Product · Legal side by side, Contact (the e-mail address needs the width) under them;
   from 640 px the three groups as columns under the brand (narrower, the address outgrew its column); from 1024 px the brand and the three columns in one row */
.site-footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
#footer-contact { grid-column: 1 / -1; }
.site-footer-brand { grid-column: 1 / -1; display: grid; justify-items: start; gap: 10px; max-width: 34rem; }
.site-footer-mark { display: inline-flex; align-items: center; gap: 10px; font-size: 1.1rem; }
.site-footer-brand p { margin: 0; color: var(--db-slate-400); font-size: .9375rem; }
.site-footer-signin {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border: 1px solid var(--db-slate-500);
  border-radius: 10px; color: var(--db-slate-100); font-weight: 600; text-decoration: none;
}
.site-footer-signin:hover { border-color: var(--db-slate-400); color: #fff; }
.site-footer-group { display: grid; align-content: start; justify-items: start; gap: 10px; min-width: 0; font-size: .9375rem; }
.site-footer-group a { color: var(--db-slate-200); text-decoration: none; }
.site-footer-group a:hover { color: #fff; text-decoration: underline; }
.site-footer-title {
  margin: 0 0 2px; color: var(--db-slate-400); font-size: .75rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
}
.site-footer-note { color: var(--db-slate-400); font-size: .8125rem; }
.site-footer-legal {
  margin: 32px 0 0; padding-top: 18px; border-top: 1px solid var(--db-slate-800); color: var(--db-slate-400); font-size: .8125rem;
}
@media (min-width: 640px) {
  .site-footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #footer-contact { grid-column: auto; }
}
@media (min-width: 1024px) {
  .site-footer-grid { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
  .site-footer-brand { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
