html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@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;
}

body {
  margin-bottom: 60px;
  padding-top: 76px; /* Account for fixed navbar */
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Brand palette: blue/green primary, orange reserved for the primary CTA */
:root {
  --brand-blue: #0d6efd;
  --brand-green: #198754;
  --brand-orange: #f97316;
  --brand-orange-dark: #ea580c;
}

/* Hero section */
.hero {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 6rem 0;
}

.hero h1 {
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

/* Primary CTA — orange accent, reserved for the main conversion action */
.btn-cta {
  background-color: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #fff;
  font-weight: 600;
}

.btn-cta:hover,
.btn-cta:focus {
  background-color: var(--brand-orange-dark);
  border-color: var(--brand-orange-dark);
  color: #fff;
}

/* Hero mock app card (no external images needed) */
.mock-app-card {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  max-width: 460px;
}

.mock-app-header {
  background: linear-gradient(90deg, var(--brand-blue), #0a58ca);
  color: #fff;
  font-weight: 600;
  padding: 0.9rem 1.25rem;
}

.mock-app-body {
  padding: 1.5rem;
}

.mock-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.4rem;
}

.mock-search-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.mock-search-input {
  flex: 1;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  padding: 0.6rem 0.9rem;
  color: #212529;
  background: #f8f9fa;
}

.mock-search-btn {
  display: flex;
  align-items: center;
  white-space: nowrap;
  background-color: var(--brand-blue);
  color: #fff;
  border-radius: 0.5rem;
  padding: 0.6rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.mock-result {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
}

.mock-result i {
  font-size: 1.1rem;
  margin-top: 0.1rem;
}

.mock-result-clear {
  background-color: #d1f4e0;
  color: #146c43;
}

.mock-result-match {
  background-color: #fff1d6;
  color: #a15c00;
}

.mock-result-title {
  font-weight: 700;
}

.mock-result-sub {
  font-size: 0.8rem;
  opacity: 0.85;
}

/* Trust strip */
.trust-strip {
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-green));
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Accuracy comparison */
.accuracy-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.accuracy-col {
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.accuracy-col-basic {
  background: #f1f3f5;
}

.accuracy-col-us {
  background: #e7f6ee;
  border: 2px solid var(--brand-green);
}

.accuracy-col-us h3 {
  color: var(--brand-green);
}

.accuracy-col li {
  margin-bottom: 0.75rem;
  font-size: 0.92rem;
}

@media (max-width: 576px) {
  .accuracy-compare {
    grid-template-columns: 1fr;
  }
}

/* Integrations badge grid */
.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.integration-badge {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 0.75rem;
  padding: 1.25rem 0.75rem;
  text-align: center;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.integration-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 .5rem 1rem rgba(0,0,0,.08);
}

.integration-badge i {
  display: block;
  font-size: 1.75rem;
  color: var(--brand-blue);
  margin-bottom: 0.5rem;
}

.integration-badge span {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
}

.integration-badge small {
  display: block;
  color: #6c757d;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 0.25rem;
}

.integration-badge-available {
  border-color: var(--brand-green);
}

.integration-badge-available i {
  color: var(--brand-green);
}

.integration-badge-available small {
  color: var(--brand-green);
  font-weight: 600;
}

/* Pricing highlight cards */
.pricing-card-highlight {
  border-width: 2px !important;
}

/* Final CTA band */
.final-cta-band {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Cards */
.card {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
}

/* Pricing cards */
.card.border-primary {
  border-width: 2px !important;
}

/* Badges */
.badge {
  padding: 0.5em 1em;
  font-weight: 500;
}

/* Lists */
.list-unstyled li {
  margin-bottom: 0.5rem;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  color: #212529;
}

h2 {
  font-weight: 700;
  margin-bottom: 2rem;
}

/* Buttons */
.btn {
  padding: 0.5rem 1.5rem;
  font-weight: 500;
}

.btn-lg {
  padding: 0.75rem 2rem;
}

/* Accordion */
.accordion-button:not(.collapsed) {
  background-color: #f8f9fa;
  color: #0d6efd;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: rgba(13, 110, 253, 0.25);
}

/* Footer */
.footer {
  background-color: #f8f9fa;
  padding: 3rem 0 1.5rem;
  line-height: 1.5;
}

.footer h5 {
  color: #212529;
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.footer .footer-column {
  margin-bottom: 1.5rem;
}

/* Keep the tagline within its column so it wraps instead of colliding
   with the Quick Links column. (white-space:normal overrides an inherited
   nowrap that was forcing the sentence onto a single overflowing line;
   line-height:1.5 overrides an inherited oversized line-height.) */
.footer .footer-description p {
  max-width: 24rem;
  margin-bottom: 0;
  white-space: normal;
  line-height: 1.5;
}

/* Tidy, consistent link spacing (overrides the global .list-unstyled li). */
.footer .footer-links {
  margin-bottom: 0;
  line-height: 1.5;
}

.footer .footer-links li {
  margin-bottom: 0.5rem;
}

.footer .footer-links li:last-child {
  margin-bottom: 0;
}

.footer a {
  text-decoration: none;
  color: #0d6efd;
}

.footer a:hover {
  color: #0a58ca !important;
  text-decoration: underline;
}

/* API Example */
pre {
  margin: 0;
  white-space: pre-wrap;
}

code {
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero, section {
  animation: fadeIn 0.6s ease-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero {
    padding: 4rem 0;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .display-4 {
    font-size: 2.5rem;
  }
}

/* Navigation */
.navbar {
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95) !important;
}

.navbar-brand {
  font-weight: 700;
}

.nav-link {
  font-weight: 500;
}

/* Custom utility classes */
.text-gradient {
  background: linear-gradient(45deg, #0d6efd, #0dcaf0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.shadow-blue {
  box-shadow: 0 0 2rem rgba(13, 110, 253, 0.15);
}

.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;
}

/* Enrollment Modal Styles */
.enrollment-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.enrollment-modal-content {
    position: relative;
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.enrollment-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

.enrollment-tab {
    padding: 10px 20px;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 1.1em;
    color: #6b7280;
    position: relative;
}

.enrollment-tab.active {
    color: #2563eb;
    font-weight: 600;
}

.enrollment-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #2563eb;
}

.enrollment-tab-content {
    display: none;
}

.enrollment-tab-content.active {
    display: block;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.form-group input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.error-message {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.btn-primary {
    background-color: #2563eb;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #1d4ed8;
}

.btn-secondary {
    background-color: #6b7280;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-secondary:hover {
    background-color: #4b5563;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
}

.close-button:hover {
    color: #374151;
}

/* Square Payment Form Styles */
#square-payment-form {
    max-width: 100%;
    margin: 0 auto;
}

#card-container {
    min-height: 90px;
    margin-bottom: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    padding: 0.5rem;
}

#payment-status-container {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 0.375rem;
    display: none;
}

.payment-success {
    background-color: #dcfce7;
    color: #166534;
}

.payment-error {
    background-color: #fee2e2;
    color: #991b1b;
}