/* Assortiqa Website Styles */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
  background: #f8f9fa;
  color: #1e3a5f;
}

body.mobile-nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

/* Navigation */
.navbar {
  background: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(30, 58, 95, 0.06);
  backdrop-filter: blur(18px);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
}

.logo-text {
  font-size: 24px;
  font-weight: 700;
  color: #2d5f8d;
}

.nav-desktop-shell {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
  flex: 1;
  min-width: 0;
}

.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 2rem;
  margin: 0;
  min-width: 0;
}

.nav-menu a {
  color: #1e3a5f;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.96rem;
  transition: color 0.3s, opacity 0.3s;
}

.nav-menu a:hover {
  color: #2d5f8d;
}

.nav-auth-desktop {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

@media (min-width: 1025px) {
  .nav-container {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
  }

  .nav-desktop-shell {
    display: contents;
  }

  .nav-menu {
    justify-content: center;
  }

  .nav-auth-desktop {
    justify-self: end;
  }
}

.nav-auth-links {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.nav-text-link {
  color: #2d5f8d;
  text-decoration: none;
  font-weight: 600;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-text-link:hover {
  background: #eef5ff;
}

.mobile-nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid #d7e6fb;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
  color: #1e4f85;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.mobile-nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-nav-toggle:hover {
  transform: translateY(-1px);
  border-color: #c7dbf7;
  box-shadow: 0 12px 24px rgba(30, 58, 95, 0.08);
}

.mobile-nav-open .mobile-nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-nav-open .mobile-nav-toggle span:nth-child(2) {
  opacity: 0;
}

.mobile-nav-open .mobile-nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav {
  display: none;
}

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 30, 51, 0.34);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.mobile-nav-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(400px, 100vw);
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
  border-left: 1px solid #e8eef3;
  box-shadow: -20px 0 50px rgba(30, 58, 95, 0.16);
  transform: translateX(100%);
  transition: transform 0.24s ease;
}

.mobile-nav.is-open .mobile-nav-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav.is-open .mobile-nav-panel {
  transform: translateX(0);
}

.mobile-nav-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1rem 1rem;
  border-bottom: 1px solid #edf2f7;
  color: #1e3a5f;
  font-weight: 700;
}

.mobile-nav-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 0.25rem 1rem calc(1.75rem + env(safe-area-inset-bottom, 16px));
}

.mobile-nav-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #d9e3ec;
  border-radius: 14px;
  background: #fff;
  color: #2d5f8d;
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-nav-section {
  display: grid;
  gap: 0.5rem;
  padding: 0.75rem 0;
}

.mobile-nav-section + .mobile-nav-section {
  border-top: 1px solid #edf2f7;
  margin-top: 0.25rem;
}

.mobile-nav-link,
.mobile-nav-button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 52px;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  text-decoration: none;
  color: #1e3a5f;
  font-weight: 600;
  background: #fff;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-button:hover,
.mobile-nav-link-emphasis {
  background: #f4f8fe;
  border-color: #e1ebf6;
  color: #2d5f8d;
}

.mobile-nav-form {
  margin: 0;
}

.mobile-nav-button {
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
}

.mobile-nav-button--signout {
  margin-top: 0.25rem;
  border: 1px solid #e8c4c4;
  background: linear-gradient(180deg, #fff8f8 0%, #fdeeee 100%);
  color: #9b1c1c;
}

.mobile-nav-button--signout:hover {
  background: linear-gradient(180deg, #fff0f0 0%, #fae0e0 100%);
  border-color: #ddb0b0;
  color: #7a1515;
}

.mobile-nav-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 1rem 1.15rem;
  border-radius: 22px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.02rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.mobile-nav-action:hover {
  transform: translateY(-1px);
}

.mobile-nav-action-primary {
  background: linear-gradient(135deg, #4a9eff 0%, #2d5f8d 100%);
  color: #fff;
  box-shadow: 0 14px 28px rgba(74, 158, 255, 0.24);
}

.mobile-nav-action-primary:hover {
  box-shadow: 0 16px 30px rgba(74, 158, 255, 0.28);
}

.mobile-nav-action-secondary {
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
  border: 1px solid #d7e6fb;
  color: #2d5f8d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.mobile-nav-action-secondary:hover {
  border-color: #c7dbf7;
  background: linear-gradient(180deg, #fbfdff 0%, #f3f8fe 100%);
}

.mobile-account-pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
  border: 1px solid #d7e6fb;
  color: #1e4f85;
  font-weight: 600;
  word-break: break-word;
}

.mobile-nav-cta {
  width: 100%;
  min-height: 52px;
}

.cta-button {
  background: linear-gradient(135deg, #4a9eff 0%, #2d5f8d 100%);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 25px;
  font-weight: 600;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  appearance: none;
  -webkit-appearance: none;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(74, 158, 255, 0.3);
}

.navbar .nav-user-wrap {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.navbar .nav-user-wrap > * {
  flex: 0 0 auto;
}

.navbar .nav-user-email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  max-width: 240px;
  padding: 0 1rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
  border: 1px solid #d7e6fb;
  color: #1e4f85;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.navbar .nav-inline-form {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.account-dropdown {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}

.account-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 46px;
  max-width: 280px;
  padding: 0.35rem 0.6rem 0.35rem 1rem;
  border-radius: 999px;
  border: 1px solid #d7e6fb;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
  color: #1e4f85;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.account-dropdown-trigger:hover {
  transform: translateY(-1px);
  border-color: #c7dbf7;
  box-shadow: 0 12px 24px rgba(30, 58, 95, 0.08);
}

.account-dropdown-trigger:focus-visible,
.account-dropdown-item:focus-visible,
.danger-button:focus-visible,
.mobile-nav-toggle:focus-visible,
.mobile-nav-close:focus-visible,
.mobile-nav-link:focus-visible,
.mobile-nav-button:focus-visible,
.mobile-nav-action:focus-visible,
.nav-text-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(74, 158, 255, 0.16);
}

.account-dropdown-trigger-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.95rem;
  font-weight: 600;
}

.account-dropdown-trigger-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(74, 158, 255, 0.12);
  color: #2d5f8d;
  font-size: 0.95rem;
  transition: transform 0.2s ease;
}

.account-dropdown.is-open .account-dropdown-trigger-icon {
  transform: rotate(180deg);
}

.account-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.8rem);
  right: 0;
  width: 220px;
  padding: 0.55rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #e8eef3;
  box-shadow: 0 24px 50px rgba(30, 58, 95, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 1100;
}

.account-dropdown.is-open .account-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.account-dropdown-form {
  margin: 0;
}

.account-dropdown-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  color: #1e3a5f;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.account-dropdown-item:hover {
  background: #f3f8fe;
  color: #2d5f8d;
}

.account-dropdown-item-button {
  border: none;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 560px;
  background: linear-gradient(180deg, #ffffff 0%, #f0f4f8 100%);
  padding: 6rem 2rem;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 4.25rem);
  color: #1e3a5f;
  margin-bottom: 1.5rem;
  font-weight: 300;
  line-height: 1.1;
}

.hero-title .highlight {
  color: #4a9eff;
  font-weight: 400;
}

.hero-subtitle {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  font-size: 1.25rem;
  color: #5a6c7d;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 3;
}

.hero-cta {
  background: linear-gradient(135deg, #4a9eff 0%, #2d5f8d 100%);
  color: white;
  border: none;
  padding: 1rem 3rem;
  border-radius: 30px;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(74, 158, 255, 0.4);
}

.hero-cta-secondary {
  background: transparent;
  color: #2d5f8d;
  border: 2px solid #2d5f8d;
  box-shadow: none;
}

.hero-cta-secondary:hover {
  background: rgba(45, 95, 141, 0.08);
  box-shadow: 0 8px 20px rgba(45, 95, 141, 0.18);
}

/* Floating Images — behind copy/CTAs; must not capture clicks (WebKit needs this on imgs too) */
.floating-images {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
}

.float-img {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
}

.float-1 {
  top: 15%;
  left: 8%;
  animation-delay: 0s;
}

.float-2 {
  top: 20%;
  right: 10%;
  animation-delay: 1s;
}

.float-3 {
  bottom: 25%;
  left: 12%;
  animation-delay: 2s;
}

.float-4 {
  bottom: 20%;
  right: 8%;
  animation-delay: 3s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Dark Sections */
.dark-section {
  background: #2d5f8d;
  color: white;
  position: relative;
  padding: 6rem 2rem;
}

.curved-top {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 72px;
  background: #f0f4f8;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
}

.section-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.what-we-do .section-content {
  padding-top: 2rem;
}

.icon-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.section-icon {
  width: 60px;
  height: 60px;
  color: white;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  font-weight: 300;
}

.feature-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.tab {
  padding: 0.75rem 2rem;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: background 0.3s;
}

.tab.active {
  background: rgba(255, 255, 255, 0.1);
  border-bottom: none;
}

.tab:hover {
  background: rgba(255, 255, 255, 0.2);
}

.feature-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 3rem;
}

.feature-image {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.feature-text {
  position: relative;
}

.quote-icon {
  font-size: 4rem;
  color: #4a9eff;
  opacity: 0.3;
  position: absolute;
  top: -20px;
  left: -20px;
  font-family: Georgia, serif;
}

.testimonial {
  font-size: 1.125rem;
  line-height: 1.8;
  padding-left: 2rem;
}

/* Light Sections */
.light-section {
  background: white;
  padding: 6rem 2rem;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-heading {
  font-size: 2.5rem;
  color: #1e3a5f;
  text-align: center;
  margin-bottom: 1rem;
  font-weight: 300;
}

.section-subheading {
  text-align: center;
  color: #5a6c7d;
  font-size: 1.125rem;
  margin-bottom: 4rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.accent-line {
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #ffc107 0%, #ff9800 100%);
  margin: 0 auto 3rem;
  border-radius: 2px;
}

/* For Who Section */
.content-grid {
  display: grid;
  grid-template-columns: 1fr minmax(0, 560px);
  gap: 4rem;
  align-items: start;
  margin-top: 3rem;
}

.promo-card {
  position: relative;
}

.promo-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  /* Matches the video's own background so letterboxing is invisible. */
  background: #14213d;
}

.description-text h3 {
  font-size: 2rem;
  color: #1e3a5f;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.description-text p {
  color: #5a6c7d;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 1.0625rem;
}

/* Pricing Section */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.pricing-card {
  background: white;
  border: 2px solid #e8eef3;
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
  border-color: #4a9eff;
  background: linear-gradient(135deg, #f0f8ff 0%, #ffffff 100%);
  transform: scale(1.05);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-10px);
}

.plan-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  color: #2d5f8d;
}

.plan-icon svg {
  width: 100%;
  height: 100%;
}

.pricing-card h3 {
  font-size: 1.5rem;
  color: #1e3a5f;
  margin-bottom: 1rem;
}

.price {
  font-size: 3rem;
  color: #2d5f8d;
  font-weight: 700;
  margin-bottom: 2rem;
}

.price span {
  font-size: 1.25rem;
  color: #5a6c7d;
  font-weight: 400;
}

.plan-features {
  list-style: none;
  margin-bottom: 2rem;
  text-align: left;
}

.plan-features li {
  padding: 0.75rem 0;
  color: #5a6c7d;
  border-bottom: 1px solid #e8eef3;
}

.plan-features li:before {
  content: "✓ ";
  color: #4a9eff;
  font-weight: bold;
  margin-right: 0.5rem;
}

.plan-button {
  width: 100%;
  background: linear-gradient(135deg, #4a9eff 0%, #2d5f8d 100%);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s;
  font-size: 1rem;
}

.plan-button:hover {
  transform: scale(1.05);
}

/* Another Example Section */
.another-example {
  background: linear-gradient(135deg, #3d7aad 0%, #2d5f8d 100%);
}

.report-content {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 3rem;
  align-items: center;
}

.report-text {
  flex: 1;
}

.report-text p {
  font-size: 1.125rem;
  line-height: 1.8;
}

.report-image {
  display: block;
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  background: #fff;
}

.bar:hover {
  opacity: 0.8;
}

/* Who We Are Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

@media (max-width: 1200px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.team-member {
  text-align: center;
}

.member-avatar {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, #e8eef3 0%, #d0dae3 100%);
  border-radius: 50%;
  margin: 0 auto 1.5rem;
}

.member-info {
  background: #f0f8ff;
  padding: 2rem;
  border-radius: 20px;
  min-height: 280px;
}

.member-badge {
  display: inline-block;
  background: #2d5f8d;
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.member-info h4 {
  font-size: 1.25rem;
  color: #1e3a5f;
  margin-bottom: 1rem;
}

.member-info p {
  color: #5a6c7d;
  line-height: 1.6;
  font-size: 0.9375rem;
}

/* Contact Section */
.contact {
  background: linear-gradient(180deg, #ffffff 0%, #f0f4f8 100%);
  /* The generic 6rem bottom left the form floating in empty space once the
     second column went; the section now closes up under it. */
  padding-bottom: 4rem;
}

.contact .section-heading {
  margin-bottom: 0.75rem;
}

.contact-description {
  text-align: center;
  color: #5a6c7d;
  font-size: 1.125rem;
  max-width: 640px;
  /* Tight enough that the intro reads as the form's caption rather than a
     separate block floating above it. */
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.contact-card {
  background: white;
  border: 2px solid #e8eef3;
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.contact-card h4 {
  font-size: 1.25rem;
  color: #1e3a5f;
  margin-bottom: 1rem;
}

.contact-card p {
  color: #5a6c7d;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

/* Contact form ---------------------------------------------------------- */

/*
 * One column, not two. The form is the only thing on this section worth
 * acting on, and the max-width keeps it a composed block rather than a band
 * stretched across a wide monitor.
 */
.contact-layout {
  max-width: 680px;
  margin: 0 auto;
}

.contact-form {
  background: white;
  border: 2px solid #dce5ee;
  border-radius: 20px;
  padding: 2.25rem;
  text-align: left;
}

/*
 * The email route, under the form rather than beside it. Same card language,
 * but lighter padding than a full .contact-card: it carries one line, and
 * matching the form's weight is what made it look like a peer before.
 */
.contact-card-email {
  margin-top: 1.25rem;
  padding: 1.5rem;
  border-color: #dce5ee;
}

.contact-card-email h4 {
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

.contact-card-email p {
  margin-bottom: 0;
}

/*
 * Sent confirmation. An overlay rather than a banner because the redirect
 * lands the reader at #contact, far below the page-level message strip, so
 * anything in normal flow at the top of the document is never seen.
 */
.sent-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(30, 58, 95, 0.45);
  animation: sent-fade 0.2s ease-out;
}

.sent-overlay.is-closing {
  opacity: 0;
  transition: opacity 0.2s ease-out;
}

.sent-dialog {
  background: #ffffff;
  border-radius: 20px;
  padding: 2.5rem 2.75rem;
  text-align: center;
  max-width: 380px;
  width: 100%;
  box-shadow: 0 24px 60px rgba(30, 58, 95, 0.25);
  animation: sent-rise 0.25s ease-out;
}

.sent-tick {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
}

.sent-tick svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #2e7d5b;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The circle then the mark, each drawn by paying out its own dash. */
.sent-tick-circle {
  stroke-dasharray: 145;
  stroke-dashoffset: 145;
  animation: sent-draw 0.4s ease-out forwards;
}

.sent-tick-mark {
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
  animation: sent-draw 0.25s 0.35s ease-out forwards;
}

.sent-dialog h3 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e3a5f;
}

.sent-dialog p {
  margin: 0 0 1.5rem;
  color: #41566f;
  font-size: 1rem;
  line-height: 1.6;
}

.sent-close {
  background: #2d5f8d;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 0.7rem 1.75rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.sent-close:hover {
  background: #24506f;
}

.sent-close:focus-visible {
  outline: 3px solid #2d5f8d;
  outline-offset: 3px;
}

@keyframes sent-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes sent-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes sent-draw {
  to { stroke-dashoffset: 0; }
}

/* Respect a reduced-motion preference: show it, do not animate it. */
@media (prefers-reduced-motion: reduce) {
  .sent-overlay,
  .sent-dialog,
  .sent-tick-circle,
  .sent-tick-mark {
    animation: none;
  }

  .sent-tick-circle,
  .sent-tick-mark {
    stroke-dashoffset: 0;
  }
}

.contact-legend {
  margin: 0 0 1.25rem;
  font-size: 0.85rem;
  color: #5a6c7d;
}

/* Carries meaning for sighted users only; the required attribute and the
   legend cover everyone else, so the markup marks these aria-hidden. */
.contact-required {
  color: #b3261e;
  font-weight: 700;
}

.contact-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.contact-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
  min-width: 0;
}

.contact-form-row .contact-field {
  margin-bottom: 0;
}

.contact-form-row + .contact-field {
  margin-top: 1.25rem;
}

.contact-field label {
  font-weight: 600;
  color: #1e3a5f;
  margin-bottom: 0.45rem;
  font-size: 0.95rem;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  /*
   * #7d8ea0 is 3.36:1 against the white card. The old #e8eef3 was about
   * 1.1:1, which fails WCAG 2.2 SC 1.4.11 (non-text contrast, 3:1) — the
   * boundary that identifies the control has to be perceivable.
   */
  border: 2px solid #7d8ea0;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  color: #1e3a5f;
  background: #ffffff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-field textarea {
  /* Vertical only: horizontal dragging breaks the card's layout. */
  resize: vertical;
  min-height: 120px;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  /* 4.6:1 on white. Placeholder text is still text. */
  color: #6b7c8d;
}

.contact-field input:focus,
.contact-field textarea:focus {
  /*
   * A real outline rather than a tinted glow: #2d5f8d is 6.7:1 on white, so
   * the focused field is unmistakable at a glance and passes 1.4.11 on its
   * own rather than relying on a low-opacity ring.
   */
  outline: 3px solid #2d5f8d;
  outline-offset: 2px;
  border-color: #2d5f8d;
  box-shadow: none;
}

.contact-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  margin-top: 1.75rem;
}

/*
 * Deliberately not .cta-button. The nav's Sign up pill is the loudest thing
 * on the page and should stay that way; this is the primary action *within*
 * the form, so it takes the flat dark end of the same palette and the 12px
 * radius of the inputs it belongs to, rather than competing as a second
 * bright gradient pill.
 */
.contact-submit {
  background: #2d5f8d;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 0.8rem 1.75rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}

.contact-submit:hover {
  background: #24506f;
}

.contact-submit:focus-visible {
  outline: 3px solid #2d5f8d;
  outline-offset: 3px;
}

/* The most valuable sentence on the section, so it sits beside the action at
   body size instead of below it as fine print. */
.contact-promise {
  margin: 0;
  color: #1e3a5f;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}

.contact-fineprint {
  margin: 1.25rem 0 0;
  text-align: center;
  color: #5a6c7d;
  font-size: 0.9rem;
  line-height: 1.7;
}

/*
 * The honeypot. Not display:none and not type=hidden — both are trivially
 * skipped. It stays in the layout and out of sight, and aria-hidden plus
 * tabindex=-1 in the markup keep it away from keyboard and screen-reader users.
 */
.contact-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Footer */
.footer {
  background: #1e3a5f;
  color: white;
  padding: 3rem 2rem;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo-text {
  font-size: 24px;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.footer p {
  color: rgba(255, 255, 255, 0.7);
}

/* Account Settings */
.settings-shell {
  background: linear-gradient(180deg, #ffffff 0%, #f0f4f8 100%);
  padding: 4.5rem 1.5rem 5rem;
}

.settings-container {
  max-width: 1080px;
  margin: 0 auto;
}

.settings-page-header {
  max-width: 720px;
  margin-bottom: 2rem;
}

.settings-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: #eef5ff;
  color: #2d5f8d;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.settings-page-header h1 {
  margin: 1rem 0 0.85rem;
  color: #1e3a5f;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 300;
}

.settings-page-header p {
  color: #5a6c7d;
  font-size: 1.05rem;
  line-height: 1.8;
}

.settings-grid {
  display: grid;
  gap: 1.5rem;
}

.settings-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #e8eef3;
  border-radius: 28px;
  padding: 2rem;
  box-shadow: 0 24px 60px rgba(30, 58, 95, 0.08);
}

.settings-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.settings-card-header h2 {
  color: #1e3a5f;
  font-size: 1.45rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.settings-card-header p,
.settings-danger-copy,
.settings-inline-hint {
  color: #5a6c7d;
  line-height: 1.7;
}

.settings-overview {
  display: grid;
  gap: 0.4rem;
  padding: 1.25rem 1.35rem;
  border-radius: 20px;
  background: linear-gradient(180deg, #fbfdff 0%, #f3f8fe 100%);
  border: 1px solid #e1ebf6;
}

.settings-overview-label {
  color: #6b7d90;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.settings-overview-value {
  color: #1e3a5f;
  font-size: 1.15rem;
  font-weight: 600;
  word-break: break-word;
}

.settings-form {
  display: grid;
  gap: 1.2rem;
}

.settings-form label {
  display: block;
  margin-bottom: 0.45rem;
  color: #1e3a5f;
  font-weight: 600;
}

.settings-form input {
  width: 100%;
  border: 1px solid #d9e3ec;
  border-radius: 14px;
  padding: 0.95rem 1rem;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
}

.settings-form input:focus {
  outline: none;
  border-color: #4a9eff;
  box-shadow: 0 0 0 4px rgba(74, 158, 255, 0.16);
}

.settings-form select,
.settings-select {
  width: 100%;
  max-width: 100%;
  border: 1px solid #d9e3ec;
  border-radius: 14px;
  padding: 0.95rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
  color: #1e3a5f;
  cursor: pointer;
}

.settings-form select:focus {
  outline: none;
  border-color: #4a9eff;
  box-shadow: 0 0 0 4px rgba(74, 158, 255, 0.16);
}

.settings-form input[type="file"],
.settings-file-input {
  width: 100%;
  max-width: 100%;
  border: 1px solid #d9e3ec;
  border-radius: 14px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  background: #f8fafc;
  color: #1e3a5f;
  cursor: pointer;
}

.settings-form input[type="file"]:focus {
  outline: none;
  border-color: #4a9eff;
  box-shadow: 0 0 0 4px rgba(74, 158, 255, 0.16);
}

.settings-help-text,
.settings-inline-hint {
  margin-top: 0.65rem;
  font-size: 0.94rem;
}

.settings-help-text ul {
  padding-left: 1.2rem;
  margin: 0;
}

.settings-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 0.25rem;
}

.settings-submit {
  width: auto;
  min-width: 210px;
}

.settings-muted-copy {
  margin-top: 0.35rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #4a5f78;
  font-weight: 400;
}

.settings-card-maintenance .settings-card-header p {
  max-width: 52rem;
}

.settings-fieldset {
  display: grid;
  gap: 0.85rem;
}

.settings-fieldset-label {
  color: #1e3a5f;
  font-weight: 600;
}

.settings-choice-grid {
  display: grid;
  gap: 0.85rem;
}

.settings-choice-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.1rem;
  border: 1px solid #d9e3ec;
  border-radius: 16px;
  background: #fff;
  color: #1e3a5f;
  cursor: pointer;
}

.settings-choice-card input[type="radio"] {
  width: auto;
  margin: 0;
}

.settings-example-toggle {
  align-items: flex-start;
}

.settings-example-toggle-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-weight: 600;
  color: #1e3a5f;
  margin: 0;
}

.settings-example-toggle-label input[type="checkbox"] {
  width: auto;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.settings-search-input {
  margin-bottom: 0.75rem;
}

.settings-autocomplete {
  position: relative;
}

.settings-autocomplete .settings-autocomplete-input {
  margin-bottom: 0;
}

.settings-hidden-select {
  display: none;
}

.settings-autocomplete-list {
  position: absolute;
  top: calc(100% - 0.2rem);
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  gap: 0;
  background: #fff;
  border: 1px solid #d9e3ec;
  border-radius: 16px;
  box-shadow: 0 18px 36px rgba(30, 58, 95, 0.12);
  overflow: hidden;
}

/* Author `display: grid` must not override native `[hidden]` or an empty list shows as a line */
.settings-autocomplete-list[hidden] {
  display: none !important;
}

.settings-autocomplete-option,
.settings-autocomplete-empty {
  width: 100%;
  padding: 0.85rem 1rem;
  text-align: left;
  font: inherit;
}

.settings-autocomplete-option {
  border: none;
  background: #fff;
  color: #1e3a5f;
  cursor: pointer;
}

.settings-autocomplete-option:hover,
.settings-autocomplete-option:focus {
  background: #eef5ff;
  outline: none;
}

.settings-autocomplete-empty {
  color: #6b7d90;
  background: #fff;
}

.settings-source-upload-grid {
  display: grid;
  gap: 1.2rem;
}

/* My dashboards — date filter */
.my-dashboards-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
}

.my-dashboards-filter {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: min(100%, 280px);
}

.my-dashboards-filter label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1e3a5f;
}

.my-dashboards-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.my-dashboards-date-input {
  border: 1px solid #d9e3ec;
  border-radius: 14px;
  padding: 0.55rem 0.75rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: #1e3a5f;
  background: #fff;
  max-width: 100%;
}

.my-dashboards-date-input:focus {
  outline: none;
  border-color: #4a9eff;
  box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.16);
}

.my-dashboards-filter-btn {
  padding: 0.55rem 1rem;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
}

.my-dashboards-clear {
  font-size: 0.9rem;
  color: #4a6fa5;
  text-decoration: underline;
  white-space: nowrap;
}

.my-dashboards-clear:hover {
  color: #1e3a5f;
}

.my-dashboards-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
}

.my-dashboards-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.15rem;
  border-radius: 25px;
  border: 1px solid #c9d8ea;
  background: #fff;
  color: #2d5f8d;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: inherit;
  text-decoration: none;
  line-height: 1;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.my-dashboards-download:hover {
  border-color: #4a9eff;
  background: #f5f9ff;
  color: #1e3a5f;
}

.my-dashboards-view {
  text-decoration: none;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.6rem;
  border: 1px solid #d9e3ec;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e3a5f;
  background: #fff;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.pagination-link:hover {
  background: #f1f6fb;
  border-color: #4a9eff;
  color: #2d5f8d;
}

.pagination-current {
  background: linear-gradient(135deg, #4a9eff 0%, #2d5f8d 100%);
  color: #fff;
  border-color: transparent;
  cursor: default;
}

.pagination-current:hover {
  background: linear-gradient(135deg, #4a9eff 0%, #2d5f8d 100%);
  color: #fff;
  border-color: transparent;
}

.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6rem;
  color: #7a8998;
  font-size: 1rem;
  user-select: none;
}

.pagination-prev,
.pagination-next {
  font-size: 0.9rem;
  font-weight: 600;
}

.settings-card-danger {
  border-color: #f0d4d4;
  background: linear-gradient(180deg, #ffffff 0%, #fff9f8 100%);
}

.settings-danger-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: #fff0ee;
  color: #b42318;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 210px;
  border: 1px solid #e59b95;
  border-radius: 16px;
  background: linear-gradient(135deg, #d55b4b 0%, #b42318 100%);
  color: #fff;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.danger-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(180, 35, 24, 0.22);
}

/* Small icon-only destructive button (e.g. delete X) */
.danger-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid #e59b95;
  border-radius: 999px;
  background: linear-gradient(135deg, #d55b4b 0%, #b42318 100%);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.danger-icon-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(180, 35, 24, 0.22);
  filter: brightness(1.02);
}

.danger-icon-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.18);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .navbar {
    padding: 0.85rem 0;
  }

  .nav-desktop-shell {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .mobile-nav-toggle {
    display: inline-flex;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-section,
  .dark-section,
  .light-section {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .pricing-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    transform: scale(1);
  }

  .pricing-card.featured:hover {
    transform: translateY(-10px);
  }

  .content-grid,
  .feature-content {
    grid-template-columns: 1fr;
  }

  .report-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .float-img {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0.75rem 0;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-heading {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .floating-images {
    display: none;
  }

  .nav-container {
    padding: 0 1rem;
    gap: 0.75rem;
    min-height: 64px;
  }

  .cta-button {
    padding: 0.8rem 1.4rem;
    font-size: 0.95rem;
  }

  .account-dropdown-trigger {
    max-width: 170px;
    min-height: 40px;
    padding: 0.25rem 0.45rem 0.25rem 0.85rem;
  }

  .account-dropdown-trigger-label {
    font-size: 0.84rem;
  }

  .account-dropdown-trigger-icon {
    width: 28px;
    height: 28px;
  }

  .account-dropdown-menu {
    right: 0;
    width: min(220px, calc(100vw - 2rem));
  }

  .hero-section {
    min-height: auto;
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  .curved-top {
    height: 60px;
  }

  .hero-cta-group,
  .feature-tabs {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta,
  .hero-cta-secondary,
  .tab {
    width: 100%;
    justify-content: center;
  }

  .content-grid {
    gap: 2rem;
    margin-top: 2.25rem;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .feature-content {
    gap: 2rem;
  }

  .feature-tabs {
    margin-bottom: 2rem;
  }

  .testimonial,
  .report-text p,
  .description-text p,
  .contact-description {
    font-size: 1rem;
  }

  .pricing-card,
  .contact-card,
  .contact-form,
  .member-info {
    padding: 1.5rem;
  }

  /* Side-by-side name and email stop fitting well below this. */
  .contact-form-row {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .contact-submit {
    width: 100%;
  }

  /* Stacked, so the promise sits directly under the button it belongs to. */
  .contact-form-actions {
    align-items: flex-start;
  }

  .settings-shell {
    padding: 3.5rem 1rem 4rem;
  }

  .settings-card {
    padding: 1.5rem;
    border-radius: 22px;
  }

  .settings-card-header {
    flex-direction: column;
  }

  .settings-submit,
  .danger-button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-section {
    padding: 3.75rem 1rem 4rem;
  }

  .dark-section,
  .light-section {
    padding: 4rem 1rem;
  }

  .curved-top {
    height: 48px;
  }

  .section-heading,
  .section-title {
    font-size: 1.8rem;
  }

  .logo-text {
    font-size: 1.2rem;
  }

  .mobile-nav-header {
    padding: 1rem 0.9rem 0.85rem;
  }

  .mobile-nav-body {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
    padding-bottom: calc(2rem + env(safe-area-inset-bottom, 20px));
  }

  .hero-cta,
  .plan-button {
    width: 100%;
  }

  .price {
    font-size: 2.5rem;
  }

  .pricing-card,
  .contact-card,
  .settings-card {
    border-radius: 18px;
  }
}

/* End of Styles */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.logo-text {
  font-size: 24px;
  font-weight: 700;
  color: #2d5f8d;
}

.navbar .brand .logo {
  height: 54px;
  width: auto;
}

.feature-video {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 15px;
}

.feature-video iframe,
.feature-video .promo-video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #14213d;
}

/* Flash messages + auth layouts */
.page-messages {
  max-width: 1200px;
  margin: 1.5rem auto 0;
  padding: 0 2rem;
}

.message {
  border-radius: 14px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  font-weight: 500;
  box-shadow: 0 12px 30px rgba(30, 58, 95, 0.08);
}

.message.success {
  background: #eef8f2;
  color: #1f6b3d;
  border: 1px solid #ccebd8;
}

.message.error {
  background: #fff2f2;
  color: #9b1c1c;
  border: 1px solid #f3c7c7;
}

.message.info {
  background: #eef5ff;
  color: #1e4f85;
  border: 1px solid #cfe0fb;
}

.auth-shell {
  min-height: calc(100vh - 180px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem 5rem;
  background: linear-gradient(180deg, #ffffff 0%, #f0f4f8 100%);
}

.auth-card {
  width: min(100%, 520px);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #e8eef3;
  border-radius: 28px;
  padding: 2.5rem;
  box-shadow: 0 24px 60px rgba(30, 58, 95, 0.12);
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header img {
  display: block;
  height: 64px;
  width: auto;
  margin: 0 auto 1rem;
}

.auth-header h1 {
  font-size: 2rem;
  color: #1e3a5f;
  margin-bottom: 0.75rem;
  font-weight: 400;
}

.auth-header p {
  color: #5a6c7d;
  line-height: 1.7;
}

.auth-form {
  display: grid;
  gap: 1.2rem;
}

.auth-form label {
  display: block;
  font-weight: 600;
  color: #1e3a5f;
  margin-bottom: 0.45rem;
}

.auth-form input {
  width: 100%;
  border: 1px solid #d9e3ec;
  border-radius: 14px;
  padding: 0.95rem 1rem;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
}

.auth-form input:focus {
  outline: none;
  border-color: #4a9eff;
  box-shadow: 0 0 0 4px rgba(74, 158, 255, 0.16);
}

.field-errors,
.non-field-errors {
  list-style: none;
  color: #b42318;
  font-size: 0.92rem;
  margin-top: 0.5rem;
}

.auth-submit {
  width: 100%;
  background: linear-gradient(135deg, #4a9eff 0%, #2d5f8d 100%);
  color: white;
  border: none;
  border-radius: 16px;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(74, 158, 255, 0.28);
}

.auth-submit.settings-submit-secondary {
  background: #fff;
  color: #1e3a5f;
  border: 1px solid #c5d4e3;
  box-shadow: none;
}

.auth-submit.settings-submit-secondary:hover {
  background: #f1f6fb;
  border-color: #4a9eff;
  box-shadow: 0 8px 14px rgba(30, 58, 95, 0.06);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 1.5rem 0 1.2rem;
  color: #7a8998;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.auth-divider span {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(216, 227, 236, 0.15) 0%,
    rgba(216, 227, 236, 0.9) 50%,
    rgba(216, 227, 236, 0.15) 100%
  );
}

.social-auth-form {
  margin: 0;
}

.social-auth-button {
  width: 100%;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  border-radius: 18px;
  border: 1px solid #d9e3ec;
  background: #ffffff;
  color: #1e3a5f;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  box-shadow: 0 14px 34px rgba(30, 58, 95, 0.06);
}

.social-auth-button:hover {
  transform: translateY(-1px);
  border-color: #c9d8ea;
  box-shadow: 0 18px 40px rgba(30, 58, 95, 0.1);
}

.social-auth-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(74, 158, 255, 0.16);
}

.social-auth-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.social-auth-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.auth-links {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: #5a6c7d;
}

.auth-links a {
  color: #2d5f8d;
  font-weight: 600;
  text-decoration: none;
}

.auth-links a:hover {
  text-decoration: underline;
}

.auth-links span {
  font-weight: 500;
}

.email-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: #eef5ff;
  color: #1e4f85;
  font-weight: 600;
  font-size: 0.95rem;
  word-break: break-word;
}

@media (max-width: 768px) {
  .page-messages {
    padding: 0 1rem;
  }

  .auth-shell {
    align-items: flex-start;
    padding: 2.5rem 1rem 4rem;
    min-height: calc(100vh - 120px);
  }

  .auth-card {
    padding: 1.75rem 1.25rem;
    border-radius: 22px;
  }

  .auth-header {
    margin-bottom: 1.5rem;
  }

  .auth-header img {
    height: 56px;
  }

  .auth-header h1 {
    font-size: 1.75rem;
  }

  .auth-links {
    justify-content: flex-start;
  }

  .social-auth-button {
    min-height: 54px;
    border-radius: 16px;
  }
}

/* ── Client Requests ── */

.settings-form textarea {
  width: 100%;
  border: 1px solid #d9e3ec;
  border-radius: 14px;
  padding: 0.95rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
  color: #1e3a5f;
  resize: vertical;
}

.settings-form textarea:focus {
  outline: none;
  border-color: #4a9eff;
  box-shadow: 0 0 0 4px rgba(74, 158, 255, 0.16);
}

/* Dashboard spec JSON is code, so it needs a monospace font and no wrapping. */
.settings-form textarea.settings-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.55;
  white-space: pre;
  overflow: auto;
}

/* Request list — mobile-first layout */
.request-list-page {
  max-width: 960px;
  margin: 2rem auto;
  padding: 0 1.25rem 4rem;
}

.request-list-page__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.request-list-page__head h1 {
  font-size: 1.65rem;
  color: #1e3a5f;
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.request-list-page__head p {
  color: #5a6c7d;
  margin: 0;
  line-height: 1.5;
  max-width: 36rem;
}

.request-list-page__new {
  text-decoration: none;
  flex-shrink: 0;
  width: 100%;
  text-align: center;
}

@media (min-width: 520px) {
  .request-list-page__new {
    width: auto;
  }
}

.request-list-filter {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: stretch;
  margin: 0 0 1.35rem;
}

.request-list-filter label {
  color: #1e3a5f;
  font-weight: 600;
  font-size: 0.95rem;
}

.request-list-filter__select {
  width: 100%;
  min-width: 0;
  padding: 0.55rem 0.85rem;
  font-size: 0.95rem;
  border-radius: 12px;
}

.request-list-filter__submit {
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.55rem 1.25rem;
  align-self: flex-start;
}

.request-list-filter__clear {
  color: #4a9eff;
  font-weight: 600;
  text-decoration: none;
  padding: 0.25rem 0;
  align-self: flex-start;
}

@media (min-width: 560px) {
  .request-list-filter {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
  }

  .request-list-filter label {
    flex: 0 0 auto;
  }

  .request-list-filter__select {
    flex: 1 1 12rem;
    max-width: 280px;
    width: auto;
  }

  .request-list-filter__submit {
    align-self: auto;
  }

  .request-list-filter__clear {
    align-self: auto;
  }
}

.request-list-cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.request-card {
  border: 1px solid #e8eef3;
  border-radius: 16px;
  padding: 1.15rem 1.2rem;
  background: #fff;
  box-shadow: 0 8px 24px rgba(30, 58, 95, 0.06);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 720px) {
  .request-card {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
  }

}

.request-card__main {
  flex: 1;
  min-width: 0;
}

.request-card__title {
  font-weight: 700;
  color: #1e3a5f;
  font-size: 1.05rem;
  line-height: 1.45;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.request-card__meta {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  align-items: center;
  font-size: 0.9rem;
  color: #5a6c7d;
}

.request-card__meta-date {
  color: #8a9bac;
  font-size: 0.85rem;
}

.request-card__staff-email {
  color: #4a9eff;
  font-size: 0.85rem;
  font-weight: 600;
  word-break: break-all;
}

.request-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: stretch;
  width: 100%;
}

@media (min-width: 720px) {
  .request-card__actions {
    width: auto;
    flex-shrink: 0;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
  }
}

.request-card__btn {
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.55rem 1.1rem;
  flex: 1 1 0;
  min-width: 0;
  min-height: 46px;
  justify-content: center;
}

@media (min-width: 720px) {
  .request-card__btn {
    flex: 0 0 auto;
    min-width: 5.5rem;
  }
}

.request-card__btn--secondary {
  background: #fff;
  color: #1e3a5f;
  border: 2px solid #1e3a5f;
  box-shadow: none;
}

.request-card__btn--secondary:hover {
  background: #f4f8fe;
  box-shadow: 0 4px 12px rgba(30, 58, 95, 0.08);
}

.request-card__delete-form {
  margin: 0;
  display: flex;
  align-items: stretch;
}

.request-card__actions .danger-icon-button {
  flex: 0 0 auto;
  min-width: 48px;
  min-height: 48px;
}

.request-card__btn--compact {
  font-size: 0.86rem;
  padding: 0.48rem 1rem;
  min-height: 40px;
  min-width: auto;
  border-radius: 11px;
  flex: 0 0 auto;
}

@media (max-width: 719px) {
  .request-card__btn--compact {
    flex: 1 1 auto;
    min-width: 0;
  }
}

.request-card__actions .danger-icon-button.request-card__delete-btn {
  min-width: 40px;
  min-height: 40px;
  font-size: 1.12rem;
  line-height: 1;
  padding: 0;
  border-radius: 999px;
}

.request-list-empty {
  color: #5a6c7d;
  margin-top: 1.5rem;
  line-height: 1.6;
}

.request-list-empty a {
  color: #4a9eff;
  font-weight: 600;
}

.req-badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: capitalize;
  background: #eef5ff;
  color: #2d5f8d;
}

.req-badge--submitted      { background: #eef5ff; color: #2d5f8d; }
.req-badge--under_review   { background: #fff4e5; color: #b47812; }
.req-badge--feasible        { background: #e6f9ed; color: #1a7a3a; }
.req-badge--not_feasible    { background: #fde8e8; color: #b12525; }
.req-badge--code_sent       { background: #eef5ff; color: #2d5f8d; }
.req-badge--subscribed      { background: #e6f9ed; color: #1a7a3a; }

.req-detail-grid {
  display: grid;
  gap: 1.25rem;
}

.req-detail-item {
  padding: 1rem 1.15rem;
  border-radius: 16px;
  background: linear-gradient(180deg, #fbfdff 0%, #f3f8fe 100%);
  border: 1px solid #e1ebf6;
}

.req-detail-label {
  color: #6b7d90;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.35rem;
}

.req-detail-value {
  color: #1e3a5f;
  font-size: 1.05rem;
  line-height: 1.6;
  word-break: break-word;
}

/* Payment offers list (staff) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.payments-offers-page {
  max-width: 1080px;
  margin: 2rem auto;
  padding: 0 1.25rem 4rem;
}

.payments-offers-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.payments-offers-toolbar__text {
  flex: 1 1 16rem;
  min-width: 0;
}

.payments-offers-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #eef5ff 0%, #e4eef9 100%);
  color: #2d5f8d;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.payments-offers-title {
  margin: 0.85rem 0 0.5rem;
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 700;
  color: #1e3a5f;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.payments-offers-lede {
  margin: 0;
  color: #5a6c7d;
  font-size: 0.98rem;
  line-height: 1.55;
  max-width: 34rem;
}

.payments-offers-lede a {
  color: #4a9eff;
  font-weight: 600;
  text-decoration: none;
}

.payments-offers-lede a:hover {
  text-decoration: underline;
}

.payments-offers-toolbar__cta {
  flex-shrink: 0;
  align-self: center;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(30, 58, 95, 0.18);
}

@media (max-width: 520px) {
  .payments-offers-toolbar__cta {
    width: 100%;
    text-align: center;
  }
}

.payments-offers-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid #e1ebf6;
  box-shadow:
    0 1px 2px rgba(30, 58, 95, 0.04),
    0 12px 40px rgba(30, 58, 95, 0.06);
  overflow: hidden;
}

.payments-offers-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.85rem 1.25rem;
  background: linear-gradient(180deg, #fbfdff 0%, #f5f9fc 100%);
  border-bottom: 1px solid #e8eef5;
  font-size: 0.88rem;
  color: #5a6c7d;
}

.payments-offers-count {
  font-weight: 700;
  color: #1e3a5f;
}

.payments-offers-page-indicator {
  font-weight: 600;
  color: #6b7d90;
}

.payments-offers-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.payments-offers-table {
  width: 100%;
  min-width: 720px;
  border-collapse: separate;
  border-spacing: 0;
}

.payments-offers-table thead th {
  text-align: left;
  padding: 0.75rem 1.15rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7d90;
  background: #fafcfe;
  border-bottom: 1px solid #e8eef5;
  white-space: nowrap;
}

.payments-offers-table thead th:first-child {
  padding-left: 1.35rem;
}

.payments-offers-table thead th:last-child {
  padding-right: 1.35rem;
}

.payments-offers-row td {
  padding: 1rem 1.15rem;
  vertical-align: middle;
  border-bottom: 1px solid #eef2f7;
  font-size: 0.94rem;
  color: #1e3a5f;
}

.payments-offers-row td:first-child {
  padding-left: 1.35rem;
}

.payments-offers-row td:last-child {
  padding-right: 1.35rem;
}

.payments-offers-row:last-child td {
  border-bottom: none;
}

.payments-offers-row:hover td {
  background: #fbfdff;
}

.payments-offers-table__numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.payments-offers-table__title {
  font-weight: 600;
  max-width: 14rem;
}

.payments-offers-table__email {
  color: #4a6579;
  font-size: 0.9rem;
  max-width: 12rem;
  word-break: break-all;
}

.payments-offers-table__amount {
  font-weight: 700;
  font-size: 1rem;
  color: #1e3a5f;
}

.payments-offers-code {
  display: inline-block;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.4rem 0.65rem;
  border-radius: 10px;
  background: linear-gradient(180deg, #f0f4f8 0%, #e8eef5 100%);
  color: #1e3a5f;
  border: 1px solid #dce4ee;
}

.payments-offers-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.payments-offers-pill--billing {
  background: #f3f0ff;
  color: #5c4d9d;
}

.payments-offers-table__actions {
  width: 1%;
  white-space: nowrap;
}

.payments-offers-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
}

.payments-offers-actions__form {
  margin: 0;
  display: inline;
}

.payments-offers-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 0.95rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.payments-offers-btn--primary {
  background: #1e3a5f;
  color: #fff;
  border-color: #1e3a5f;
}

.payments-offers-btn--primary:hover {
  background: #2a5080;
  border-color: #2a5080;
  box-shadow: 0 2px 8px rgba(30, 58, 95, 0.2);
}

.payments-offers-btn--ghost {
  background: #fff;
  color: #1e3a5f;
  border-color: #c5d4e5;
}

.payments-offers-btn--ghost:hover {
  border-color: #1e3a5f;
  background: #fbfdff;
}

.payments-offers-pagination {
  margin-top: 1.75rem;
}

.payments-offers-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  border-radius: 20px;
  background: linear-gradient(180deg, #fbfdff 0%, #f3f8fe 100%);
  border: 1px dashed #c5d4e5;
}

.payments-offers-empty__title {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e3a5f;
}

.payments-offers-empty__text {
  margin: 0 0 1.25rem;
  color: #5a6c7d;
  font-size: 0.98rem;
}

.payments-offers-empty .cta-button {
  text-decoration: none;
}

/* Payment offer status badges (align with request badges) */
.req-badge--draft {
  background: #f0f2f5;
  color: #4a5568;
}

.req-badge--ready {
  background: #e6f4ff;
  color: #1a6e9e;
}

.req-badge--checkout_started {
  background: #fff4e5;
  color: #b47812;
}

.req-badge--paid {
  background: #e6f9ed;
  color: #1a7a3a;
}

.req-badge--active {
  background: #e8f5e9;
  color: #2e7d32;
}

.req-badge--canceled {
  background: #fdeaea;
  color: #b12525;
}

.req-badge--processing {
  background: #eef2ff;
  color: #4338ca;
}

.req-badge--past_due {
  background: #fff4e5;
  color: #b45309;
}

/* Cancellation scheduled: still active, but ending — Stripe keeps the raw
   status as 'active', so this state only exists in our own labelling. */
.req-badge--ending {
  background: #fff4e5;
  color: #b45309;
}

.req-badge--refunded {
  background: #f0f2f5;
  color: #4a5568;
}

/* Payment notices — one block per lifecycle state on the request page. */
.payment-notice {
  margin-top: 1.25rem;
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 0.93rem;
  line-height: 1.65;
}

.payment-notice strong {
  display: block;
  margin-bottom: 0.15rem;
}

.payment-notice--pending {
  background: #eef5ff;
  border-color: #cfe0f5;
  color: #2d5f8d;
}

.payment-notice--warning {
  background: #fff8ec;
  border-color: #f5e2c0;
  color: #8a5a00;
}

.payment-notice--danger {
  background: #fdeaea;
  border-color: #f5c6c6;
  color: #b12525;
}

.payment-notice--muted {
  background: #f7f9fb;
  border-color: #e3e9f0;
  color: #5a6c7d;
}

.payments-offers-card--form .payments-offers-form-body {
  padding: 1.25rem 1.35rem 1.75rem;
}

.payments-offers-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.payments-offers-form-actions .settings-submit {
  margin: 0;
}

/* Offer form — two-column row for paired fields */
.offer-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 520px) {
  .offer-form-row {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Legal documents and purchase consents
   Layered on the existing settings-shell / settings-card components rather
   than reinventing a page frame — these only add what long-form legal text
   needs and the design system did not already have.
   ========================================================================== */

/* Long-form prose reads badly at the 1080px settings width. */
.settings-container--prose {
  max-width: 820px;
}

.legal-meta {
  margin: 0.35rem 0 0;
  color: #5a6c7d;
  font-size: 0.92rem;
}

.legal-card + .legal-card {
  margin-top: 1.5rem;
}

/* Unfilled trader details must be impossible to miss before publishing. */
.legal-warning {
  margin-bottom: 1.5rem;
  padding: 1rem 1.2rem;
  background: #fdeaea;
  border: 1px solid #f5c6c6;
  border-radius: 16px;
  color: #b12525;
  font-size: 0.95rem;
  line-height: 1.65;
}

/* The settings-form textarea has no rule of its own; match its inputs. */
.legal-form textarea {
  width: 100%;
  border: 1px solid #d9e3ec;
  border-radius: 14px;
  padding: 0.95rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.legal-form textarea:focus {
  outline: none;
  border-color: #4a9eff;
  box-shadow: 0 0 0 4px rgba(74, 158, 255, 0.16);
}

.legal-warning strong {
  display: block;
  margin-bottom: 0.2rem;
}

.legal-toc ol {
  margin: 0;
  padding-left: 1.2rem;
  columns: 2;
  column-gap: 2.5rem;
}

.legal-toc li {
  margin-bottom: 0.4rem;
  font-size: 0.93rem;
  break-inside: avoid;
}

.legal-toc a {
  color: #2d5f8d;
  text-decoration: none;
}

.legal-toc a:hover {
  text-decoration: underline;
}

.legal-body {
  color: #33475f;
  font-size: 1rem;
  line-height: 1.8;
}

.legal-body > p,
.legal-body > ul,
.legal-body > ol {
  margin: 0 0 1.1rem;
}

.legal-intro {
  font-size: 1.05rem;
  color: #243b5a;
  padding-bottom: 1.4rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid #edf2f7;
}

.legal-body h2 {
  margin: 2.4rem 0 0.9rem;
  font-size: 1.22rem;
  font-weight: 700;
  color: #1e3a5f;
  scroll-margin-top: 100px;
}

.legal-body h3 {
  margin: 1.6rem 0 0.6rem;
  font-size: 1.03rem;
  font-weight: 700;
  color: #2d5f8d;
}

.legal-body ul,
.legal-body ol {
  padding-left: 1.4rem;
}

.legal-body li {
  margin-bottom: 0.5rem;
}

.legal-body a {
  color: #2d5f8d;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.1rem 0 1.6rem;
  font-size: 0.95rem;
}

.legal-table th,
.legal-table td {
  text-align: left;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid #edf2f7;
  vertical-align: top;
}

.legal-table th {
  width: 38%;
  color: #5a6c7d;
  font-weight: 600;
}

.legal-definitions dt {
  font-weight: 700;
  color: #1e3a5f;
  margin-top: 0.9rem;
}

.legal-definitions dd {
  margin: 0.15rem 0 0;
  color: #4a5f7a;
}

/* Clauses a court would expect to be conspicuous, not buried in the body. */
.legal-emphasis {
  padding: 0.95rem 1.15rem;
  background: #fff8ec;
  border-left: 4px solid #e0a63f;
  border-radius: 0 12px 12px 0;
  font-weight: 600;
  color: #6b4a12;
}

.legal-callout {
  padding: 0.95rem 1.15rem;
  background: #eef5ff;
  border-left: 4px solid #4a9eff;
  border-radius: 0 12px 12px 0;
  color: #2d5f8d;
}

.legal-updated {
  margin-top: 2.5rem;
  padding-top: 1.3rem;
  border-top: 1px solid #edf2f7;
  font-size: 0.88rem;
  color: #7a8899;
}

.legal-form {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid #edf2f7;
}

.legal-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.1rem;
}

.legal-form__cancel {
  font-size: 0.93rem;
  color: #5a6c7d;
}

.legal-form__note {
  margin-top: 0.9rem;
  font-size: 0.86rem;
  color: #7a8899;
}

.cta-button--danger {
  background: #b12525;
  border-color: #b12525;
}

/* Purchase consents. Deliberately plain and legible — a consent hidden in
   small grey text is easy to attack as not transparently presented. */
.consent-box {
  margin: 0 0 1.25rem;
  padding: 1.1rem 1.25rem 1.25rem;
  border: 1px solid #d7e1ec;
  border-radius: 16px;
  background: #fbfdff;
}

.consent-box__legend {
  padding: 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a8899;
}

.consent-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.9rem;
  font-size: 0.93rem;
  line-height: 1.6;
  color: #33475f;
  cursor: pointer;
}

.consent-item:last-child {
  margin-bottom: 0;
}

.consent-item input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  accent-color: #2d5f8d;
  cursor: pointer;
}

.consent-item__hint {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.85rem;
  font-style: normal;
  color: #7a8899;
}

.withdrawal-cta {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px dashed #e3e9f0;
}

.withdrawal-cta__link {
  font-size: 0.9rem;
  color: #8a5a00;
  text-decoration: underline;
}

.withdrawal-cta__note {
  margin: 0.35rem 0 0;
  font-size: 0.84rem;
  color: #7a8899;
}

.footer-legal {
  margin: 0.75rem 0 0.5rem;
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.footer-legal a {
  color: inherit;
  opacity: 0.85;
  text-decoration: underline;
}

.footer-legal a:hover {
  opacity: 1;
}

.footer-legal span {
  opacity: 0.5;
}

@media (max-width: 720px) {
  .legal-toc ol {
    columns: 1;
  }

  .legal-table th {
    width: auto;
  }
}

/* Sign-up consent sits inside the narrow auth card, so it needs less padding
   than the checkout version. */
.consent-box--compact {
  padding: 0.85rem 1rem;
  border-radius: 14px;
}

.consent-box--compact .consent-item {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.auth-consent-note {
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 0.83rem;
  line-height: 1.6;
  color: #7a8899;
}

.auth-consent-note a {
  color: #2d5f8d;
}


/* Staff dashboard tools (/dashboards/staff/)
   ------------------------------------------------------------------
   Scoped one notch smaller than the marketing pages: this is a dense
   working surface, not a landing page. Every size below is relative to
   .dash-admin, so the whole scale moves together.
   ------------------------------------------------------------------ */

.dash-admin {
  font-size: 0.8125rem;
  line-height: 1.6;
  padding: 2.5rem 1.25rem 4rem;
  color: #33475b;
}

.dash-admin-container {
  max-width: 68rem;
  margin: 0 auto;
}

.dash-admin-head {
  margin-bottom: 1.75rem;
}

.dash-eyebrow {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4a6fa5;
  background: #eef4fc;
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  margin-bottom: 0.75rem;
}

.dash-admin-head h1 {
  color: #1e3a5f;
  font-size: 1.75rem;
  font-weight: 500;
  margin: 0 0 0.35rem;
}

.dash-admin-head p {
  color: #5a6c7d;
  max-width: 46rem;
  margin: 0;
}

/* Tabs ------------------------------------------------------------- */

.dash-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  border-bottom: 1px solid #e1ebf6;
  margin-bottom: 1.5rem;
}

.dash-tab {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 0.6rem 0.9rem;
  font: inherit;
  font-weight: 600;
  color: #5a6c7d;
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.dash-tab:hover {
  color: #1e3a5f;
  background: #f5f9fd;
}

.dash-tab.is-active {
  color: #1e3a5f;
  border-bottom-color: #f2b230;
}

.dash-tab:focus-visible {
  outline: 2px solid #4a6fa5;
  outline-offset: -2px;
}

.dash-tab-count {
  display: inline-block;
  min-width: 1.25rem;
  margin-left: 0.4rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #eef4fc;
  color: #4a6fa5;
  font-size: 0.6875rem;
  font-weight: 700;
  text-align: center;
}

/* Panels ----------------------------------------------------------- */

.dash-panel {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #e8eef3;
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 16px 40px rgba(30, 58, 95, 0.06);
}

.dash-panel-head {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eef2f7;
}

.dash-panel-head h2 {
  color: #1e3a5f;
  font-size: 1.15rem;
  font-weight: 500;
  margin: 0 0 0.3rem;
}

.dash-panel-head p {
  color: #5a6c7d;
  max-width: 52rem;
  margin: 0;
}

/* Forms ------------------------------------------------------------ */

.dash-fieldset + .dash-fieldset {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #eef2f7;
}

.dash-fieldset-title {
  color: #1e3a5f;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 0.25rem;
}

.dash-fieldset-hint,
.dash-field-hint,
.dash-empty {
  color: #5a6c7d;
  font-size: 0.78125rem;
  margin: 0 0 0.85rem;
}

.dash-field-hint {
  margin: 0.35rem 0 0;
}

.dash-empty {
  padding: 1rem 1.1rem;
  border: 1px dashed #dbe6f2;
  border-radius: 12px;
  background: #fbfdff;
  margin-bottom: 1.5rem;
}

/* Two columns once there is room. Long inputs opt out with .dash-grid-wide. */
.dash-grid {
  display: grid;
  gap: 1rem 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  align-items: start;
}

.dash-grid-wide {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.dash-admin label {
  display: block;
  color: #1e3a5f;
  font-weight: 600;
  font-size: 0.78125rem;
  margin-bottom: 0.35rem;
}

.dash-admin .danger-button {
  min-width: 0;
}

.dash-admin .settings-input,
.dash-admin .settings-select,
.dash-admin .settings-file-input,
.dash-admin .settings-search-input,
.dash-admin input[type="text"],
.dash-admin input[type="number"],
.dash-admin input[type="time"],
.dash-admin textarea,
.dash-admin select {
  width: 100%;
  font-size: 0.8125rem;
  padding: 0.5rem 0.65rem;
  border-radius: 9px;
}

.dash-admin textarea {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  line-height: 1.55;
  /* The widget asks for 12 rows, which swallows the panel. Start smaller and
     let the resize handle do the rest. */
  height: 11rem;
  resize: vertical;
}

/* The first fieldset has no rule above it — the panel header already divides. */
.dash-fieldset:first-of-type {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #eef2f7;
}

.dash-check {
  align-self: end;
  padding: 0.75rem 0.85rem;
  border: 1px solid #e1ebf6;
  border-radius: 12px;
  background: #fbfdff;
}

.dash-check label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.dash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #eef2f7;
}

.dash-admin .dash-submit {
  width: auto;
  /* .danger-button and .auth-submit are sized for a full-width form button. */
  min-width: 0;
  padding: 0.5rem 1.1rem;
  font-size: 0.8125rem;
  border-radius: 9px;
}

/* A per-row destroy is secondary to Run now; only the bulk delete is loud. */
.dash-admin .dash-submit-danger {
  appearance: none;
  background: #fff;
  border: 1px solid #edc9c6;
  color: #9b2226;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.dash-admin .dash-submit-danger:hover {
  background: #fdecec;
  border-color: #e5b0ac;
}

.dash-admin .dash-submit-secondary {
  background: #eef4fc;
  color: #1e3a5f;
  box-shadow: none;
}

.dash-admin .dash-submit-secondary:hover {
  background: #e2ecf8;
}

.dash-form-boxed {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border: 1px solid #e1ebf6;
  border-radius: 14px;
  background: #fbfdff;
}

.dash-admin .field-errors,
.dash-admin .non-field-errors {
  font-size: 0.75rem;
}

.dash-admin code {
  background: #f3f8fe;
  border: 1px solid #e1ebf6;
  border-radius: 5px;
  padding: 0.05rem 0.3rem;
  font-size: 0.9em;
}

/* Schedule list ---------------------------------------------------- */

.schedule-list {
  display: grid;
  gap: 0.85rem;
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.schedule-item {
  display: grid;
  gap: 0.6rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid #e1ebf6;
  background: linear-gradient(180deg, #fbfdff 0%, #f3f8fe 100%);
}

.schedule-item-paused {
  opacity: 0.65;
}

.schedule-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.schedule-item-head strong {
  color: #1e3a5f;
  font-size: 0.9375rem;
  font-weight: 600;
}

.schedule-status {
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  font-size: 0.71875rem;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid transparent;
}

.schedule-status-ok {
  background: #e7f6ed;
  border-color: #c6e7d3;
  color: #1c6b41;
}

.schedule-status-skipped,
.schedule-status-none {
  background: #eef2f7;
  border-color: #dde5ee;
  color: #5a6c7d;
}

.schedule-status-missing {
  background: #fdf3e2;
  border-color: #f4e0bb;
  color: #8a5b12;
}

.schedule-status-error {
  background: #fdecec;
  border-color: #f5cccc;
  color: #9b2226;
}

.schedule-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.schedule-item-actions form {
  margin: 0;
}

.schedule-item-actions .auth-submit,
.schedule-item-actions .dash-submit-danger {
  width: auto;
  min-width: 0;
}

.schedule-edit summary {
  cursor: pointer;
  color: #4a6fa5;
  font-weight: 600;
  font-size: 0.78125rem;
  padding: 0.2rem 0;
}

.schedule-edit summary:hover {
  color: #1e3a5f;
}

.schedule-edit .dash-form {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid #e1ebf6;
}

@media (max-width: 640px) {
  .dash-admin {
    padding: 1.75rem 1rem 3rem;
  }

  .dash-panel {
    padding: 1.15rem;
    border-radius: 14px;
  }

  .dash-tabs {
    gap: 0;
  }

  .dash-tab {
    flex: 1 1 auto;
    padding: 0.55rem 0.5rem;
    text-align: center;
  }

  .schedule-item-actions .auth-submit,
  .schedule-item-actions .dash-submit-danger {
    width: 100%;
  }
}
