html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.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;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

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;
  padding: .3rem .75rem .3rem .3rem;
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 999px;
  font-weight: 500;
  color: #0f172a;
  background: #fff;
}

.site-user-toggle:hover,
.site-user-toggle[aria-expanded="true"] {
  border-color: rgba(27, 110, 194, .35);
  background: #f8fafc;
}

.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;
}

.site-user-menu {
  min-width: 16rem;
  padding: .5rem;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: .9rem;
  box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, .12);
}

.site-user-menu-head {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .5rem .6rem;
}

.site-user-menu .min-w-0 {
  min-width: 0;
}

.site-user-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .5rem .6rem;
  border-radius: .55rem;
  color: #334155;
}

.site-user-menu .dropdown-item .bi {
  width: 1.1rem;
  color: #64748b;
}

.site-user-menu .dropdown-item:hover,
.site-user-menu .dropdown-item:focus {
  color: #0f172a;
  background: #f1f5f9;
}

.site-user-menu .dropdown-item.text-danger,
.site-user-menu .dropdown-item.text-danger .bi {
  color: var(--bs-danger) !important;
}

.site-user-menu .dropdown-item.text-danger:hover {
  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-user-toggle {
    justify-content: flex-start;
  }

  .site-user-toggle .bi-chevron-down {
    margin-left: auto;
  }

  .site-user-menu {
    width: 100%;
    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;
}

.legal-nav {
  position: sticky;
  top: 6rem;
  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: #475569;
  background: transparent;
}

a.legal-nav-link {
  color: #475569;
}

.legal-nav-link:hover {
  color: #0f172a;
  background: rgba(15, 23, 42, .05);
}

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-nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .legal-contact {
    display: none;
  }
}

.legal-body {
  max-width: 820px;
  line-height: 1.7;
  color: #334155;
}

.legal-body section {
  padding-bottom: 1.75rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid rgba(15, 23, 42, .06);
}

.legal-body section:last-child {
  border-bottom: 0;
}

.legal-body h2 {
  margin-bottom: .85rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
}

.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: #0f172a;
  background: var(--bs-tertiary-bg);
}

.legal-card {
  padding: 1rem 1.25rem;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: .85rem;
  background: #fff;
}

.legal-address {
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--bs-primary);
  border-radius: 0 .6rem .6rem 0;
  background: var(--bs-tertiary-bg);
}

/* 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 rgba(15, 23, 42, .08);
  border-radius: 1rem;
  background: #fff;
  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;
}

.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 {
    flex: 1;
  }
}

.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;
}

.auth-brand {
  display: flex;
  justify-content: center;
  padding: 1.75rem 1.5rem 0;
}

.auth-brand .brand-logo {
  height: 3.5rem;
}

/* Landing page */
.lp-hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 6rem;
  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 li {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: rgba(255, 255, 255, .85);
  font-size: .95rem;
}

.lp-hero-points .bi {
  color: #86efac;
}

.lp-mockup {
  position: relative;
  max-width: 460px;
  margin-left: auto;
  padding: 2rem 0;
}

.lp-glass {
  border-radius: 1.25rem;
  color: var(--bs-body-color);
  box-shadow: 0 2rem 4rem rgba(2, 6, 23, .35);
}

.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: -.5rem;
  left: -3rem;
}

.lp-float-bottom {
  right: -2rem;
  bottom: -.5rem;
  animation-delay: -2.5s;
}

.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; }
}

.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;
}

.lp-feature {
  padding: 1.75rem;
  border: 1px solid var(--bs-border-color-translucent);
  border-radius: 1rem;
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.lp-feature:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: 0 1rem 2rem rgba(16, 24, 40, .08);
}

.lp-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: .85rem;
  font-size: 1.4rem;
}

.lp-tone-primary { color: #1d4ed8; background: #dbeafe; }
.lp-tone-success { color: #15803d; background: #dcfce7; }
.lp-tone-warning { color: #b45309; background: #fef3c7; }
.lp-tone-info { color: #0e7490; background: #cffafe; }
.lp-tone-violet { color: #6d28d9; background: #ede9fe; }
.lp-tone-danger { color: #be123c; background: #ffe4e6; }

.lp-step {
  position: relative;
  height: 100%;
  padding: 2rem 1.75rem 1.75rem;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .06);
}

.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);
}

.lp-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 1.25rem;
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease;
}

.lp-plan:hover {
  transform: translateY(-4px);
  box-shadow: 0 1.25rem 2.5rem rgba(16, 24, 40, .1);
}

.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;
}

.lp-cta {
  padding: 4rem 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;
}

/* 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;
}