/* 16px on every screen (Bootstrap's own size). Phones used to get 14px, which made text and labels small and made an
   iPhone zoom in on every field tapped, as Safari does for text under 16px (readable-font-size). */
html {
  font-size: 16px;
  /* The root size is fixed: no phone browser inflates text on its own (iOS Safari on rotate, Chrome's font boosting). */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* ---------------- Business blue ----------------
   Bootstrap's primary is its own blue (#0d6efd), written straight into many of its rules. Here it becomes the business
   blue (#1b6ec2, hover #1861ac) everywhere: buttons, links, checkboxes, switches, focus rings, pills, dropdowns, lists,
   pagination and progress bars. White text on it is 5.1:1, and it is 5.1:1 as text on white. Green stays for taking
   money only. Dark mode keeps its lighter link blue (admin/tokens.css). */
:root,
[data-bs-theme="light"] {
  --bs-primary: #1b6ec2;
  --bs-primary-rgb: 27, 110, 194;
  --bs-blue: #1b6ec2;
  --bs-link-color: #1b6ec2;
  --bs-link-color-rgb: 27, 110, 194;
  --bs-link-hover-color: #1861ac;
  --bs-link-hover-color-rgb: 24, 97, 172;
  --bs-primary-text-emphasis: #0b2c4e;
  --bs-primary-bg-subtle: #d1e2f3;
  --bs-primary-border-subtle: #a4c5e7;
  --bs-focus-ring-color: rgba(27, 110, 194, .25);
}

[data-bs-theme="dark"] {
  --bs-primary-text-emphasis: #76a8da;
  --bs-primary-bg-subtle: #051627;
  --bs-primary-border-subtle: #104274;
}

.btn-primary {
  --bs-btn-bg: #1b6ec2;
  --bs-btn-border-color: #1b6ec2;
  --bs-btn-hover-bg: #1861ac;
  --bs-btn-hover-border-color: #1861ac;
  --bs-btn-focus-shadow-rgb: 61, 132, 203;
  --bs-btn-active-bg: #155a9a;
  --bs-btn-active-border-color: #155a9a;
  --bs-btn-disabled-bg: #1b6ec2;
  --bs-btn-disabled-border-color: #1b6ec2;
}

.btn-outline-primary {
  --bs-btn-color: #1b6ec2;
  --bs-btn-border-color: #1b6ec2;
  --bs-btn-hover-bg: #1b6ec2;
  --bs-btn-hover-border-color: #1b6ec2;
  --bs-btn-focus-shadow-rgb: 27, 110, 194;
  --bs-btn-active-bg: #1861ac;
  --bs-btn-active-border-color: #1861ac;
  --bs-btn-disabled-color: #1b6ec2;
  --bs-btn-disabled-border-color: #1b6ec2;
}

.btn-link {
  --bs-btn-focus-shadow-rgb: 61, 132, 203;
}

/* In dark mode the outline button's text and border take the lighter link blue (7.7:1 on the page); pressed, it fills
   with the business blue. */
[data-bs-theme="dark"] .btn-outline-primary {
  --bs-btn-color: #6cb2f5;
  --bs-btn-border-color: #4c9be8;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #1b6ec2;
  --bs-btn-hover-border-color: #1b6ec2;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #1b6ec2;
  --bs-btn-active-border-color: #1b6ec2;
  --bs-btn-disabled-color: #6cb2f5;
  --bs-btn-disabled-border-color: #4c9be8;
}

/* Grey outline buttons (Print claim slip, Edit repair, Cash in or out): Bootstrap's grey is 4.3:1 on the grey page, so
   their text is a shade darker (6.1:1). Dark mode has its own (admin/tokens.css). */
.btn-outline-secondary {
  --bs-btn-color: #565e64;
}

/* Red outline buttons and red text in dark mode: Bootstrap's red is 3.8:1 on the dark page, so they take its lighter
   dark-mode red (6.8:1). Pressed, they fill with a deeper red under white text. */
[data-bs-theme="dark"] .btn-outline-danger {
  --bs-btn-color: var(--bs-danger-text-emphasis);
  --bs-btn-border-color: var(--bs-danger-text-emphasis);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #b02a37;
  --bs-btn-hover-border-color: #b02a37;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #b02a37;
  --bs-btn-active-border-color: #b02a37;
}

[data-bs-theme="dark"] .text-danger {
  color: var(--bs-danger-text-emphasis) !important;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: #8db7e1;
  box-shadow: 0 0 0 .25rem rgba(27, 110, 194, .25);
}

.form-check-input:checked,
.form-check-input[type="checkbox"]:indeterminate {
  background-color: #1b6ec2;
  border-color: #1b6ec2;
}

.form-range::-webkit-slider-thumb {
  background-color: #1b6ec2;
}

.form-range::-moz-range-thumb {
  background-color: #1b6ec2;
}

.nav-pills {
  --bs-nav-pills-link-active-bg: #1b6ec2;
}

.dropdown-menu {
  --bs-dropdown-link-active-bg: #1b6ec2;
}

.pagination {
  --bs-pagination-active-bg: #1b6ec2;
  --bs-pagination-active-border-color: #1b6ec2;
  --bs-pagination-focus-box-shadow: 0 0 0 .25rem rgba(27, 110, 194, .25);
}

.list-group {
  --bs-list-group-active-bg: #1b6ec2;
  --bs-list-group-active-border-color: #1b6ec2;
}

.progress,
.progress-stacked {
  --bs-progress-bar-bg: #1b6ec2;
}


/* For keyboard users: the first Tab lands on a link straight past the menus to the page itself (skip-links). */
.skip-link:focus {
  position: fixed !important;
  top: .75rem;
  left: .75rem;
  z-index: 1100;
  padding: .6rem 1rem;
  border-radius: .5rem;
  color: #fff;
  background: #1b6ec2;
  box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);
  text-decoration: none;
  font-weight: 600;
}

/* The page it skips to takes focus without a ring around all of it. */
#main:focus { outline: none; }

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Site navbar */
.site-header {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(15, 23, 42, .06);
  transition: box-shadow .2s ease, background-color .2s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 .5rem 1.5rem rgba(15, 23, 42, .08);
}

.site-navbar {
  padding: .75rem 0;
}

.site-navbar .navbar-brand {
  font-size: 1.2rem;
  letter-spacing: -.01em;
  color: #0f172a;
}

.site-navbar .nav-link {
  position: relative;
  padding: .5rem .9rem !important;
  border-radius: .6rem;
  font-weight: 500;
  color: #475569;
  transition: color .15s ease, background-color .15s ease;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus-visible {
  color: #0f172a;
  background: rgba(15, 23, 42, .05);
}

.site-navbar .nav-link.active {
  color: var(--bs-primary);
  background: rgba(27, 110, 194, .08);
}

.site-navbar-toggler {
  padding: .35rem .6rem;
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: .6rem;
  font-size: 1.4rem;
  line-height: 1;
  color: #0f172a;
}

.site-navbar-toggler:focus {
  box-shadow: 0 0 0 .2rem rgba(27, 110, 194, .25);
}

.site-nav-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.site-nav-signin {
  font-weight: 500;
  text-decoration: none;
  color: #334155;
}

.site-nav-signin:hover {
  color: var(--bs-primary);
}

.site-nav-cta {
  padding: .5rem 1.1rem;
  border: 0;
  border-radius: .7rem;
  font-weight: 600;
  background: linear-gradient(135deg, #1b6ec2, #4f46e5);
  box-shadow: 0 .35rem 1rem rgba(79, 70, 229, .3);
  transition: transform .15s ease, box-shadow .15s ease;
}

.site-nav-cta:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #1861ac, #4338ca);
  box-shadow: 0 .5rem 1.25rem rgba(79, 70, 229, .4);
}

.site-nav-cta .bi {
  transition: transform .15s ease;
}

.site-nav-cta:hover .bi {
  transform: translateX(3px);
}

.site-user-toggle {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 2.75rem;
  padding: .3rem .8rem .3rem .3rem;
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 999px;
  font-weight: 600;
  color: #0f172a;
  background: #fff;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.site-user-toggle:hover,
.site-user-toggle[aria-expanded="true"] {
  border-color: rgba(27, 110, 194, .3);
  background: #f8fafc;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
}

/* A ring only for keyboard focus; a mouse click shouldn't leave a heavy outline behind. */
.site-user-toggle:focus,
.site-user-toggle:active {
  box-shadow: none;
}

.site-user-toggle:focus-visible {
  outline: 2px solid #1b6ec2;
  outline-offset: 2px;
}

.site-user-toggle .site-avatar {
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(15, 23, 42, .08);
}

/* Points down when closed, up when open. */
.site-user-chevron {
  font-size: .75rem;
  color: #64748b;
  transition: transform .2s ease;
}

.site-user-toggle[aria-expanded="true"] .site-user-chevron {
  transform: rotate(180deg);
}

.site-user-name {
  max-width: 10rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-avatar {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #1b6ec2, #7c3aed);
}

.site-avatar-lg {
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1rem;
}

img.site-avatar {
  object-fit: cover;
  background: #e2e8f0;
}

/* The account menu: the public site's navbar and the back office's top bar (_ConsoleLayout) share it. */
.site-user-menu {
  min-width: 17.5rem;
  padding: .4rem;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 1.25rem 2.5rem -.5rem rgba(15, 23, 42, .18);
  transform-origin: top right;
}

/* In the navbar Bootstrap places it without Popper; the back office passes the same gap as data-bs-offset. */
.site-navbar .site-user-menu {
  margin-top: .5rem !important;
}

/* Opens with a short drop from the button. `translate` (not `transform`) so it never fights Bootstrap's positioning. */
.site-user-menu.show {
  animation: site-menu-in .16s cubic-bezier(.2, .7, .2, 1);
}

@keyframes site-menu-in {
  from { opacity: 0; translate: 0 -.35rem; scale: .98; }
}

@media (prefers-reduced-motion: reduce) {
  .site-user-menu.show { animation: none; }
  .site-user-chevron { transition: none; }
}

/* The signed-in person, on a soft panel set apart from the links below it. */
.site-user-menu-head {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .4rem;
  padding: .75rem;
  border-radius: .75rem;
  background: linear-gradient(135deg, rgba(27, 110, 194, .07), rgba(124, 58, 237, .07));
}

.site-user-menu-head .site-avatar {
  box-shadow: 0 0 0 2px #fff;
}

.site-user-menu-name {
  font-weight: 600;
  line-height: 1.3;
  color: #0f172a;
}

.site-user-menu-email {
  font-size: .8125rem;
  color: #64748b;
}

.site-user-role {
  display: inline-block;
  margin-top: .3rem;
  padding: .1rem .5rem;
  border-radius: 999px;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: #1b5fa8;
  background: #fff;
  border: 1px solid rgba(27, 110, 194, .2);
}

.site-user-menu .min-w-0 {
  min-width: 0;
}

.site-user-menu .dropdown-divider {
  margin: .35rem .25rem;
  border-color: rgba(15, 23, 42, .07);
}

.site-user-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-height: 2.5rem;
  padding: .45rem .65rem;
  border-radius: .6rem;
  font-weight: 500;
  color: #334155;
  transition: background-color .12s ease, color .12s ease;
}

.site-user-menu .dropdown-item .bi {
  width: 1.1rem;
  font-size: 1.05rem;
  text-align: center;
  color: #64748b;
  transition: color .12s ease;
}

.site-user-menu .dropdown-item:hover,
.site-user-menu .dropdown-item:focus {
  color: #0f172a;
  background: #f1f5f9;
}

.site-user-menu .dropdown-item:hover .bi,
.site-user-menu .dropdown-item:focus .bi {
  color: #1b6ec2;
}

.site-user-menu .dropdown-item:focus-visible {
  outline: 2px solid #1b6ec2;
  outline-offset: -2px;
}

.site-user-menu .dropdown-item:active {
  color: #0f172a;
  background: #e2e8f0;
}

.site-user-menu .dropdown-item.text-danger,
.site-user-menu .dropdown-item.text-danger .bi {
  color: #c0392b !important;
}

.site-user-menu .dropdown-item.text-danger:hover,
.site-user-menu .dropdown-item.text-danger:focus {
  background: rgba(220, 53, 69, .08);
}

@media (max-width: 991.98px) {
  .site-navbar .navbar-collapse {
    margin-top: .75rem;
    padding: .75rem;
    border: 1px solid rgba(15, 23, 42, .06);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 1rem 2rem rgba(15, 23, 42, .08);
  }

  .site-nav-actions {
    flex-direction: column;
    align-items: stretch;
    margin-top: .75rem;
    padding-top: .75rem;
    border-top: 1px solid rgba(15, 23, 42, .06);
  }

  .site-nav-actions .btn {
    width: 100%;
  }

  .site-navbar .site-user-toggle {
    justify-content: flex-start;
  }

  .site-navbar .site-user-toggle .bi-chevron-down {
    margin-left: auto;
  }

  /* Inside the opened phone menu it unfolds in place, part of the panel, rather than floating over the page.
     (The back office's top bar keeps it as a floating menu.) */
  .site-navbar .site-user-menu {
    position: static !important;
    width: 100%;
    margin-top: .5rem !important;
    box-shadow: none;
  }
}

.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin-bottom: 0;
}

.site-footer {
  margin-top: auto;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(15, 23, 42, .06);
  font-size: .9rem;
  color: #64748b;
  background: #fff;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem 1.25rem;
}

.site-footer .site-footer-links a,
.site-footer .site-footer-links .btn-link {
  font-size: .9rem;
  text-decoration: none;
  color: #475569;
}

.site-footer .site-footer-links a:hover,
.site-footer .site-footer-links .btn-link:hover {
  color: var(--bs-primary);
}

.brand-logo {
  display: block;
  height: 2.75rem;
  width: auto;
}

.brand-logo-sm {
  height: 1.75rem;
}

/* Legal pages */
.legal-page {
  padding: 1.5rem 0 3rem;
}

.legal-hero {
  max-width: 760px;
}

/* The links and the company box stick together: on their own, the box scrolled up under the links. */
.legal-side {
  position: sticky;
  top: 6rem;
}

.legal-nav {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.legal-nav-link {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem .8rem;
  border: 0;
  border-radius: .6rem;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  color: var(--bs-secondary-color);
  background: transparent;
}

a.legal-nav-link {
  color: var(--bs-secondary-color);
}

.legal-nav-link:hover {
  color: var(--bs-emphasis-color);
  background: var(--bs-tertiary-bg);
}

a.legal-nav-link.active {
  color: var(--bs-primary);
  background: rgba(27, 110, 194, .08);
}

.legal-contact {
  padding: 1rem;
  border-radius: .85rem;
  background: var(--bs-tertiary-bg);
}

@media (max-width: 991.98px) {
  .legal-side {
    position: static;
  }

  .legal-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .legal-contact {
    display: none;
  }
}

.legal-body {
  max-width: 820px;
  line-height: 1.7;
  color: var(--bs-body-color);
}

.legal-body section {
  padding-bottom: 1.75rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--bs-border-color-translucent);
}

.legal-body section:last-child {
  border-bottom: 0;
}

.legal-body h2 {
  margin-bottom: .85rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bs-emphasis-color);
}

.legal-body ul {
  padding-left: 1.25rem;
}

.legal-body li + li {
  margin-top: .35rem;
}

.legal-summary {
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(27, 110, 194, .15);
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(27, 110, 194, .06), rgba(124, 58, 237, .06));
}

.legal-summary ul {
  padding-left: 1.25rem;
}

.legal-table {
  font-size: .9rem;
}

.legal-table thead th {
  font-weight: 600;
  white-space: nowrap;
  color: var(--bs-emphasis-color);
  background: var(--bs-tertiary-bg);
}

.legal-card {
  padding: 1rem 1.25rem;
  border: 1px solid var(--bs-border-color-translucent);
  border-radius: .85rem;
  background: var(--bs-body-bg);
}

.legal-address {
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--bs-primary);
  border-radius: 0 .6rem .6rem 0;
  background: var(--bs-tertiary-bg);
}

[data-bs-theme="dark"] a.legal-nav-link.active {
  color: var(--bs-primary-text-emphasis);
  background: rgba(110, 168, 254, .12);
}

/* Cookie consent */
.cookie-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 1055;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 960px;
  padding: 1rem 1.25rem;
  border: 1px solid var(--bs-border-color-translucent);
  border-radius: 1rem;
  background: var(--bs-body-bg);
  box-shadow: 0 1.25rem 3rem rgba(15, 23, 42, .18);
  pointer-events: auto;
  animation: cookie-in .3s ease-out;
}

.cookie-banner-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: .75rem;
  font-size: 1.35rem;
  color: #b45309;
  background: #fef3c7;
}

/* Dark mode: the banner takes the dark page's surface (its text already follows the theme), and the icon its own amber. */
[data-bs-theme="dark"] .cookie-banner-inner {
  box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, .5);
}

[data-bs-theme="dark"] .cookie-banner-icon {
  color: #fbbf24;
  background: rgba(251, 191, 36, .14);
}

.cookie-banner-text {
  flex: 1;
  min-width: 0;
}

.cookie-banner-actions {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
}

@keyframes cookie-in {
  from { opacity: 0; transform: translateY(1rem); }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner-inner { animation: none; }
}

@media (max-width: 767.98px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner-icon {
    display: none;
  }

  .cookie-banner-actions .btn {
    /* Each label stays on one line; the row wraps instead when they don't fit. */
    flex: 1 1 auto;
    white-space: nowrap;
  }
}

.cookie-modal {
  border: 0;
  border-radius: 1rem;
}

.cookie-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 0;
  border-top: 1px solid rgba(15, 23, 42, .06);
}

.cookie-option .form-check-input {
  width: 2.5rem;
  height: 1.35rem;
  cursor: pointer;
}

/* Landing page */
.lp-hero {
  position: relative;
  overflow: hidden;
  padding: 3rem 0 3.5rem;
  color: #fff;
  background:
    radial-gradient(40rem 30rem at 85% 10%, rgba(168, 85, 247, .45), transparent 60%),
    radial-gradient(35rem 25rem at 0% 100%, rgba(14, 165, 233, .35), transparent 60%),
    linear-gradient(135deg, #0f2a5f 0%, #1b4fb8 45%, #4338ca 100%);
}

.lp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000 30%, transparent 90%);
  pointer-events: none;
}

.lp-hero-title {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.lp-gradient-text {
  background: linear-gradient(90deg, #7dd3fc, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lp-hero-lead {
  color: rgba(255, 255, 255, .78);
}

.lp-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .9rem;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 500;
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(6px);
}

.lp-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.5rem;
}

.lp-hero-points li {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: rgba(255, 255, 255, .85);
  font-size: .95rem;
}

.lp-hero-points .bi {
  color: #86efac;
}

/* The floating notes sit above and below the card, not over its header; on phones they stay inside the screen. */
.lp-mockup {
  position: relative;
  max-width: 460px;
  margin: 0 auto;
  padding: 3.5rem 0 3.75rem;
}

.lp-glass {
  border-radius: 1.25rem;
  color: var(--bs-body-color);
  box-shadow: 0 2rem 4rem rgba(2, 6, 23, .35);
}

.lp-mockup-total {
  font-size: clamp(1.9rem, 6vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.lp-mockup-total,
.lp-stat,
.lp-plan-price,
.lp-estimate-total {
  font-variant-numeric: tabular-nums;
}

.lp-bars {
  display: flex;
  align-items: flex-end;
  gap: .5rem;
  height: 90px;
}

.lp-bars span {
  flex: 1;
  border-radius: .4rem .4rem .15rem .15rem;
  background: linear-gradient(180deg, #6366f1, #93c5fd);
}

.lp-stat {
  padding: .75rem;
  border-radius: .75rem;
  background: var(--bs-tertiary-bg);
}

.lp-stat .bi {
  display: block;
  margin-bottom: .25rem;
  font-size: 1.1rem;
  color: var(--bs-primary);
}

.lp-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1rem;
  border-radius: 1rem;
  color: var(--bs-body-color);
  background: #fff;
  box-shadow: 0 1rem 2rem rgba(2, 6, 23, .25);
  animation: lp-float 5s ease-in-out infinite;
}

.lp-float .bi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: .6rem;
  font-size: 1.1rem;
  color: #fff;
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.lp-float-top {
  top: 0;
  left: .75rem;
}

.lp-float-bottom {
  right: .75rem;
  bottom: 0;
  animation-delay: -2.5s;
}

@media (min-width: 992px) {
  .lp-hero {
    padding: 5rem 0 6rem;
  }

  .lp-mockup {
    margin-right: 0;
  }

  .lp-float-top {
    left: -2.5rem;
  }

  .lp-float-bottom {
    right: -1.5rem;
  }
}

.lp-float-bottom .bi {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
}

@keyframes lp-float {
  50% { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
  .lp-float { animation: none; }
}

/* Cards slide up into place as they scroll into view (reveal.js). The page adds .reveal-on to <html>
   only when the script can run, so nothing stays hidden without it. */
.reveal-on [data-reveal] {
  opacity: 0;
  transform: translateY(1.5rem);
}

.reveal-on [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
  transition: opacity .6s ease-out, transform .6s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--reveal-order, 0) * 90ms);
}

@media print, (prefers-reduced-motion: reduce) {
  .reveal-on [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.lp-section {
  padding: 3.5rem 0;
}

@media (min-width: 768px) {
  .lp-section {
    padding: 5rem 0;
  }
}

.lp-section-alt {
  background: var(--bs-tertiary-bg);
}

.lp-narrow {
  max-width: 820px;
}

.lp-eyebrow {
  display: inline-block;
  margin-bottom: .5rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--bs-primary);
}

.lp-section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -.01em;
}

/* Feature cards aren't links, so they don't lift on hover. On phones the icon sits beside the text to keep the list short. */
.lp-feature {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--bs-border-color-translucent);
  border-radius: 1rem;
  background: #fff;
}

.lp-feature .h5 {
  margin-bottom: .35rem;
}

.lp-feature-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: .85rem;
  font-size: 1.3rem;
  color: #1d4ed8;
  background: #dbeafe;
}

@media (min-width: 768px) {
  .lp-feature {
    flex-direction: column;
    padding: 1.75rem;
  }

  .lp-feature .h5 {
    margin-bottom: .5rem;
  }

  .lp-feature-icon {
    width: 3rem;
    height: 3rem;
    font-size: 1.4rem;
  }
}

.lp-step {
  position: relative;
  height: 100%;
  padding: 1.5rem 1.5rem 1.5rem 4.5rem;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .06);
}

.lp-step .h5 {
  margin-bottom: .35rem;
}

/* A line joins the steps' numbers on wider screens. */
@media (min-width: 768px) {
  .lp-step {
    padding: 2rem 1.75rem 1.75rem;
  }

  .lp-steps > li:not(:last-child) .lp-step::after {
    content: "";
    position: absolute;
    top: 3.125rem;
    left: 4.5rem;
    right: calc(-1 * var(--bs-gutter-x) - 1.25rem);
    border-top: 2px dashed rgba(27, 110, 194, .3);
    z-index: 1;
  }
}

.lp-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #1b6ec2, #6d28d9);
}

@media (max-width: 767.98px) {
  .lp-step-num {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
  }
}

.lp-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 1.25rem;
  background: #fff;
}

.lp-plan-featured {
  border: 2px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #1b6ec2, #a855f7) border-box;
  box-shadow: 0 1.25rem 2.5rem rgba(67, 56, 202, .15);
}

.lp-plan-badge {
  position: absolute;
  top: 0;
  right: 1.5rem;
  transform: translateY(-50%);
  padding: .3rem .8rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, #1b6ec2, #7c3aed);
}

.lp-plan-price {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
}

.lp-plan-list li {
  display: flex;
  gap: .65rem;
  padding: .4rem 0;
}

.lp-plan-list .bi {
  flex-shrink: 0;
  color: var(--bs-primary);
  font-size: 1.1rem;
  line-height: 1.4;
}

.lp-estimate {
  padding: 2rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 1.25rem;
  background: #fff;
}

.lp-estimate-field {
  margin-bottom: 1rem;
}

.lp-estimate-field label {
  display: flex;
  flex-direction: column;
  margin-bottom: .35rem;
}

.lp-estimate-field .input-group {
  max-width: 14rem;
}

/* The steppers replace the browser's own spin buttons. */
.lp-estimate-field input::-webkit-inner-spin-button,
.lp-estimate-field input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.lp-estimate-field input {
  -moz-appearance: textfield;
  appearance: textfield;
  font-weight: 600;
}

.lp-estimate-plan {
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 1rem;
  background: var(--bs-tertiary-bg);
}

.lp-estimate-best {
  border: 2px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #1b6ec2, #a855f7) border-box;
  box-shadow: 0 .75rem 1.5rem rgba(67, 56, 202, .12);
}

.lp-estimate-unavailable {
  opacity: .65;
}

.lp-estimate-total {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -.02em;
}

.lp-includes {
  padding: 2rem;
  border-radius: 1.25rem;
  background: var(--bs-tertiary-bg);
}

.lp-includes-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: .85rem 1.5rem;
}

.lp-includes-list li {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.lp-includes-list .bi {
  color: var(--bs-primary);
  font-size: 1.1rem;
}

.lp-faq .accordion-item {
  margin-bottom: .75rem;
  border: 1px solid var(--bs-border-color-translucent);
  border-radius: .85rem !important;
  overflow: hidden;
}

.lp-faq .accordion-button {
  font-weight: 600;
}

.lp-faq .accordion-button:not(.collapsed) {
  color: var(--bs-body-color);
  background: #fff;
  box-shadow: none;
}

@media (max-width: 575.98px) {
  .lp-plan,
  .lp-estimate,
  .lp-includes {
    padding: 1.5rem;
  }
}

.lp-cta {
  padding: clamp(2.5rem, 7vw, 4rem) clamp(1.25rem, 4vw, 2rem);
  border-radius: 1.5rem;
  color: #fff;
  background:
    radial-gradient(30rem 20rem at 100% 0%, rgba(168, 85, 247, .45), transparent 60%),
    linear-gradient(135deg, #0f2a5f, #4338ca);
}

.status-dot {
  display: inline-block;
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
}

/* My stores */
.store-card,
.store-empty {
  border: 0;
  border-radius: .75rem;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .05);
}

.store-card-archived {
  background-color: var(--bs-tertiary-bg);
}

.store-card-archived .card-body {
  opacity: .75;
}

/* Sign in / register */
.auth-wrapper {
  display: flex;
  justify-content: center;
  padding: 2rem 0;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  overflow-wrap: anywhere; /* a long email address wraps instead of leaving the card */
}

/* An empty box's label is lighter than typed text, so it can't be mistaken for a value. The same colour Bootstrap gives it once it floats. */
.auth-card .form-floating > label {
  color: rgba(var(--bs-body-color-rgb), .65);
}

/* Sign-in and forgot password can't know an email or password is right, so there's no green tick: only what's wrong shows. */
#login-form.was-validated .form-control:valid,
#forgot-form.was-validated .form-control:valid {
  border-color: var(--bs-border-color);
  background-image: none;
}

#login-form.was-validated .form-floating:not(.password-field) > .form-control:valid,
#forgot-form.was-validated .form-floating > .form-control:valid {
  padding-right: .75rem;
}

#login-form.was-validated .form-control:valid:focus,
#forgot-form.was-validated .form-control:valid:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* A password box with an eye: the eye takes the place of the validation icon, and the error below says what's wrong. */
.password-field > .form-control,
.was-validated .password-field > .form-control:valid,
.was-validated .password-field > .form-control:invalid {
  padding-right: 3.25rem;
  background-image: none;
}

/* Edge's own eye would make two. */
.password-field > .form-control::-ms-reveal,
.password-field > .form-control::-ms-clear {
  display: none;
}

.password-toggle {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  min-width: 44px;
  height: calc(3.5rem + 2px);
  padding: 0;
  font-size: 1.25rem;
  color: var(--bs-secondary-color);
  background: none;
  border: 0;
  border-radius: var(--bs-border-radius);
  touch-action: manipulation;
  transition: color .15s ease;
}

.password-toggle:hover {
  color: var(--bs-body-color);
}

.password-toggle:focus-visible {
  outline: 2px solid #258cfb;
  outline-offset: -5px;
}

/* Phones use a 14px base, and iPhones zoom the page in when a box under 16px gets focus. */
@media (max-width: 767.98px) {
  .auth-card .form-floating > .form-control {
    height: 58px;
    min-height: 58px;
    font-size: 16px;
  }

  .auth-card .form-floating > label {
    padding-top: 17px;
    font-size: 16px;
  }

  .password-toggle {
    height: 58px;
  }
}

/* Sign-up's "check your inbox" and the activation page */
.auth-mail-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  font-size: 1.75rem;
  color: #1d4ed8;
  background: #dbeafe;
}

.auth-mail-icon-success {
  color: #15803d;
  background: #dcfce7;
}
/* Loading: skeletons in the shape of what's coming (_PageStates, skeleton*() in ui.js), never spinners. */
.skeleton {
  display: block;
  position: relative;
  overflow: hidden;
  background-color: #e8ecf1;
  border-radius: .375rem;
}

.skeleton::after,
.btn.is-busy::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .6), rgba(255, 255, 255, 0));
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
  to { transform: translateX(100%); }
}

.skeleton-text { height: .75rem; }
.skeleton-faint { background-color: #f0f3f6; }
.skeleton-title { height: 1.1rem; }
.skeleton-figure { height: 1.75rem; }
.skeleton-input,
.skeleton-btn { height: calc(1.5em + .75rem + 2px); }
.skeleton-btn { width: 7rem; }
.skeleton-search { flex: 1 1 14rem; max-width: 22rem; }
.skeleton-block { height: 3.5rem; }
.skeleton-chart { height: 240px; }
.skeleton-avatar { width: 3rem; height: 3rem; flex-shrink: 0; border-radius: .75rem; }
.skeleton-tile { aspect-ratio: 1; border-radius: .75rem; }

/* Rows standing in for a table or list while it loads. */
.skeleton-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: .9rem 1rem;
  border-top: 1px solid var(--bs-border-color-translucent);
}

.skeleton-row:first-child { border-top: 0; }
/* A button at work (setBusy in ui.js): disabled, with a soft sweep across it. */
.btn.is-busy {
  position: relative;
  overflow: hidden;
}

.btn:not(.btn-primary, .btn-success, .btn-danger, .btn-dark, .btn-secondary, .btn-info, .btn-warning).is-busy::after {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0), rgba(15, 23, 42, .08), rgba(15, 23, 42, 0));
}

/* Waiting on someone else, such as a customer paying by QR: a gently pulsing dot. */
.waiting-dot {
  display: inline-block;
  width: .6rem;
  height: .6rem;
  border-radius: 50%;
  background-color: var(--bs-success);
  animation: waiting-pulse 1.6s ease-in-out infinite;
}

@keyframes waiting-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .35; transform: scale(.75); }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton::after,
  .btn.is-busy::after { animation: none; display: none; }
  .waiting-dot { animation: none; }
}

/* ---------------- The Android app's download page (/app) ---------------- */

.app-dl-hero {
  padding-bottom: 2.5rem;
}

.app-dl-card,
.app-dl-qr-card {
  padding: 1.5rem;
  border: 1px solid var(--bs-border-color-translucent);
  border-radius: 1rem;
  background: var(--bs-body-bg);
  box-shadow: 0 .5rem 1.5rem rgba(15, 23, 42, .06);
}

.app-dl-button {
  min-height: 48px;
  font-weight: 600;
}

@media (max-width: 575.98px) {
  .app-dl-button {
    width: 100%;
  }
}

.app-dl-release summary {
  /* Kept as a list item, so the browser's arrow shows it opens. Padding makes it a 44px target. */
  padding: .625rem 0;
  cursor: pointer;
}

.app-dl-qr {
  width: min(100%, 220px);
  margin: 0 auto;
}

.app-dl-qr svg {
  width: 100%;
  height: auto;
}

.app-dl-steps {
  display: grid;
  gap: 1.25rem;
}

.app-dl-steps > li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.app-dl-num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #1b6ec2, #6d28d9);
}

.app-dl-notes {
  padding-left: 1.25rem;
  line-height: 1.6;
}

.app-dl-history {
  border-top: 1px solid var(--bs-border-color-translucent);
}

.app-dl-release {
  border-bottom: 1px solid var(--bs-border-color-translucent);
}

.app-dl-release[open] {
  padding-bottom: .75rem;
}

/* The public header and footer had fixed white backgrounds; in dark mode they follow the page. */
[data-bs-theme="dark"] .site-header {
  background: rgba(33, 37, 41, .85);
}

[data-bs-theme="dark"] .site-footer {
  background: var(--bs-body-bg);
  border-color: var(--bs-border-color-translucent);
}

.brand-logo-on-dark,
[data-bs-theme="dark"] .brand-logo-on-light {
  display: none;
}

[data-bs-theme="dark"] .brand-logo-on-dark {
  display: inline-block;
}

[data-bs-theme="dark"] .site-navbar-toggler {
  border-color: var(--bs-border-color);
  color: var(--bs-emphasis-color);
}

[data-bs-theme="dark"] .site-footer,
[data-bs-theme="dark"] .site-footer .site-footer-links a,
[data-bs-theme="dark"] .site-footer .site-footer-links .btn-link {
  color: var(--bs-secondary-color);
}
