/* Shared by every page (on top of Vuetify): the page base, the Stripe card
   field and the site footer. Colours, fonts and radii live in
   assets/css/theme.css (loaded after this file), matching the mobile app; each
   page's own styles are in its page stylesheet (home.css, dashboard.css …). */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background-color: var(--page);
}

.v-application, 
.v-application.v-theme--light,
.v-application.v-theme--dark {
  background: transparent !important;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(30, 111, 123, 0.12) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

main,
header,
footer {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

/* Stripe Elements styling */
.stripe-element {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  transition: border-color 0.2s ease;
}

.stripe-element:focus-within {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(30, 111, 123, 0.1);
}


/* ── Site footer ──────────────────────────────────────────────────────────
   The same on every page: assets/js/footer.js fills each page's
   <footer class="site-footer" data-site-footer>. Deep teal (the app's screen
   headers) with a dotted route and pin along the top. Text contrast on the
   teal is 5.0–8.5:1; links are at least 44px tall on phones. */
.site-footer {
  overflow: hidden;
  padding: 76px 24px 8px;
  background: var(--primary-deep);
  color: #F4FBFA;
}
.site-footer__route {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 56px;
  pointer-events: none;
}
.site-footer__inner {
  max-width: 1104px;
  margin: 0 auto;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  padding-bottom: 44px;
}
.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.site-footer a {
  color: #F4FBFA;
  text-decoration: none;
}
.site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-footer a:focus-visible {
  outline: 2px solid #8FD3CB;
  outline-offset: 3px;
  border-radius: 4px;
}
.site-footer .site-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  align-self: flex-start;
  text-decoration: none;
}
.site-footer__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: #FFFFFF;
}
.site-footer__word {
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.4px;
  color: #FFFFFF;
}
.site-footer__word span:nth-child(2) {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  color: #8FD3CB;
}
.site-footer__word span:nth-child(3) {
  color: #5FE0D0;
}
.site-footer__tagline {
  max-width: 300px;
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  color: #CFE3E0;
}
.site-footer .site-footer__mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  align-self: flex-start;
  font-size: 15px;
  font-weight: 600;
}
.site-footer__title {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #8FD3CB;
}
.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer__links a {
  display: flex;
  align-items: center;
  min-height: 40px;
  font-size: 16px;
  line-height: 22px;
}
.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 14px;
  line-height: 20px;
  color: #CFE3E0;
}
.site-footer .site-footer__top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 600;
}
@media (max-width: 767px) {
  .site-footer {
    padding: 60px 20px 8px;
  }
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 16px;
    padding-bottom: 24px;
  }
  .site-footer__brand {
    grid-column: 1 / -1;
    gap: 12px;
  }
  .site-footer__links a {
    min-height: 44px;
    font-size: 15.5px;
  }
  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
}
