/* Pacing Guard — Marketing Page */

:root {
  /* Medical-Themed Brand Palette */
  --accent: #0C51AD;
  --accent-secondary: #15A4F3;
  --gradient-accent: linear-gradient(135deg, #0C51AD 0%, #15A4F3 100%);
  --accent-glow: rgba(12, 81, 173, 0.2);
  --accent-soft: #e8f0fa;

  /* Clean, clinical backgrounds */
  --bg: #FCFDFD;
  --bg-alt: #f8fafc;
  --bg-elevated: #ffffff;
  --hero-gradient: radial-gradient(ellipse at top, #e8f0fa 0%, #FCFDFD 50%, #f1f5f9 100%);

  /* Text with excellent contrast */
  --text: #0f172a;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;

  /* Borders */
  --border: #e2e8f0;
  --border-light: #f1f5f9;

  /* Enhanced shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 4px 20px rgba(12, 81, 173, 0.25);

  /* Consistent rounded corners */
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --max-width: 1120px;
  --transition: 200ms ease;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

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

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

/* Skip link */
.skiplink {
  position: absolute;
  left: -9999px;
  z-index: 999;
}
.skiplink:focus {
  left: 16px;
  top: 16px;
  padding: 12px 20px;
  background: var(--text);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 500;
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 640px) {
  .container {
    padding: 0 32px;
  }
}

.section {
  padding: 80px 0;
}

.section--soft {
  background: var(--bg-alt);
}

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.brand__name {
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}

.nav__link:hover {
  color: var(--text);
  background: var(--bg-alt);
}

.nav__cta {
  margin-left: 8px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--gradient-accent);
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 8px rgba(12, 81, 173, 0.2);
}

.nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(12, 81, 173, 0.3);
}

/* Mobile nav */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 10px;
  background: none;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.nav-toggle:hover {
  background: var(--bg-alt);
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Typography */
.h1 {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 0 0 24px;
}

.h1-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.h2 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}

.lead {
  font-size: 19px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}

.fineprint {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Hero */
.hero {
  position: relative;
  padding: 80px 0 100px;
  background: var(--hero-gradient);
  overflow: hidden;
}

/* Decorative gradient orbs */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  pointer-events: none;
}

.hero__orb--1 {
  width: 500px;
  height: 500px;
  background: rgba(12, 81, 173, 0.15);
  top: -200px;
  right: -100px;
}

.hero__orb--2 {
  width: 400px;
  height: 400px;
  background: rgba(12, 81, 173, 0.12);
  bottom: -150px;
  left: -100px;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero__copy {
  max-width: 540px;
}

.hero__media {
  display: flex;
  justify-content: center;
}

.phone {
  width: 260px;
  padding: 10px;
  background: #fff;
  border-radius: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(12, 81, 173, 0.1);
  animation: float 6s ease-in-out infinite;
}

.phone__img {
  border-radius: 22px;
}

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

/* Buttons */
.ctaRow {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  color: #fff;
  background: var(--gradient-accent);
  box-shadow: var(--shadow-sm), var(--shadow-glow);
}

.btn--primary:hover {
  box-shadow: var(--shadow-md), 0 6px 30px rgba(12, 81, 173, 0.35);
}

.btn--secondary {
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn--secondary:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

/* Coming soon badge */
.coming-soon {
  position: relative;
  display: inline-block;
  padding: 14px 24px;
  background: linear-gradient(135deg, rgba(12, 81, 173, 0.08) 0%, rgba(12, 81, 173, 0.08) 100%);
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
  overflow: hidden;
}

.coming-soon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: var(--gradient-accent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.coming-soon::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
}

/* Trust line */
.trustLine {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 24px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--text-secondary);
}

.trustLine li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trustLine li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.6;
}

/* Origin story */
.origin {
  padding: 80px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.origin__inner {
  max-width: 100%;
  margin: 0;
  background: var(--bg-elevated);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 40px 40px 36px;
  box-shadow: var(--shadow-sm);
}

.origin__inner .h2 {
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  color: var(--text);
}

.origin__inner p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin: 0 0 14px;
}

.origin__inner p:last-of-type {
  margin-bottom: 0;
  margin-top: 22px;
  font-weight: 500;
  color: var(--text);
}

.origin__sign {
  display: block;
  margin-top: 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .origin {
    padding: 56px 0;
  }

  .origin__inner {
    padding: 28px 24px 24px;
  }
}

/* Showcase feature sections */
.showcase {
  padding: 80px 0;
}

.showcase--alt {
  background: var(--bg-alt);
}

.showcase__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.showcase__grid--reverse {
  direction: rtl;
}

.showcase__grid--reverse > * {
  direction: ltr;
}

.showcase__media {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.showcase__media .phone {
  animation: none;
}

.showcase__media--dual .phone {
  width: 200px;
}

.showcase__copy {
  max-width: 480px;
}

.showcase__copy .h2 {
  margin-bottom: 16px;
}

.showcase__copy p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}

/* Trust strip */
.trust-strip {
  padding: 48px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.trust-strip__list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
}

.trust-strip__list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-strip__list li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.6;
}

/* Final CTA */
.final-cta {
  padding: 80px 0;
  text-align: center;
}

.final-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ctaRow--center {
  justify-content: center;
}

.final-cta__link {
  margin-top: 24px;
  font-size: 15px;
}

.final-cta__link a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.final-cta__link a:hover {
  color: var(--accent-secondary);
}

/* Footer */
.footer {
  padding: 24px 0;
  border-top: 1px solid var(--border-light);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 14px;
  color: var(--text-secondary);
}

.footer__brand {
  color: var(--text);
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a:hover {
  color: var(--text);
}

/* Responsive */
@media (max-width: 900px) {
  .h1 {
    font-size: 44px;
  }

  .h2 {
    font-size: 30px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero__copy {
    max-width: 100%;
  }

  .hero__orb--1 {
    width: 350px;
    height: 350px;
    top: -150px;
    right: -80px;
  }

  .hero__orb--2 {
    width: 300px;
    height: 300px;
    bottom: -100px;
    left: -80px;
  }

  .ctaRow {
    justify-content: center;
  }

  .trustLine {
    justify-content: center;
  }

  .phone {
    width: 240px;
  }

  .showcase__grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .showcase__grid--reverse {
    direction: ltr;
  }

  .showcase__copy {
    max-width: 100%;
  }

  .showcase__media--dual .phone {
    width: 180px;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 56px 0;
  }

  .hero {
    padding: 56px 0 72px;
  }

  .h1 {
    font-size: 36px;
  }

  .h2 {
    font-size: 26px;
  }

  .lead {
    font-size: 17px;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 16px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    gap: 4px;
  }

  .nav.is-open {
    display: flex;
  }

  .nav__link,
  .nav__cta {
    width: 100%;
    text-align: center;
    padding: 12px 16px;
    margin-left: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .btn {
    width: 100%;
    padding: 16px 24px;
  }

  .phone {
    width: 220px;
  }

  .showcase {
    padding: 56px 0;
  }

  .showcase__grid {
    gap: 36px;
  }

  .showcase__media--dual .phone {
    width: 150px;
  }

  .showcase__media--dual {
    gap: 12px;
  }

  .final-cta {
    padding: 56px 0;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .final__inner {
    padding: 40px 24px;
  }
}

/* Page content (Support, Privacy, Terms) */
.page-hero {
  padding-bottom: 48px;
}

.page-content {
  max-width: 720px;
}

.page-content h2 {
  margin-top: 48px;
}

.page-list {
  padding-left: 24px;
  margin: 16px 0;
  color: var(--text-secondary);
}

.page-list li {
  margin: 8px 0;
}

.page-content p {
  color: var(--text-secondary);
  margin: 0 0 16px;
}

.page-content h2:first-child {
  margin-top: 0;
}

/* Support hero */
.support-hero {
  position: relative;
  padding: 80px 0 56px;
  background: var(--hero-gradient);
  overflow: hidden;
  text-align: center;
}

.support-hero__orb {
  position: absolute;
  width: 500px;
  height: 500px;
  background: rgba(12, 81, 173, 0.12);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  pointer-events: none;
  top: -200px;
  right: -100px;
}

@media (max-width: 900px) {
  .support-hero__orb {
    width: 350px;
    height: 350px;
    top: -150px;
    right: -80px;
  }
}

@media (max-width: 640px) {
  .support-hero {
    padding: 56px 0 40px;
  }
}

/* Section heading accent bar */
.section-heading {
  position: relative;
  padding-top: 20px;
}

.section-heading::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

/* Steps (Getting Started) */
.steps {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--transition);
}

.step:hover {
  box-shadow: var(--shadow-sm);
}

.step__number {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--gradient-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 50%;
}

.step__body {
  color: var(--text-secondary);
  line-height: 1.6;
  padding-top: 4px;
}

.step__body strong {
  color: var(--text);
}

/* FAQ */
.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq__item {
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--transition);
}

.faq__item:hover {
  box-shadow: var(--shadow-sm);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 20px;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  list-style: none;
  min-height: 56px;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::after {
  content: "+";
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-left: 16px;
  font-size: 18px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 50%;
  transition: transform var(--transition), background var(--transition);
}

.faq__item[open] .faq__question::after {
  content: "\2212";
  background: var(--accent);
  color: #fff;
}

.faq__body {
  padding: 0 20px 18px;
  overflow: hidden;
}

.faq__answer {
  margin: 0;
  color: var(--text-secondary);
}

/* Support contact CTA */
.support-contact {
  text-align: center;
}

.support-contact__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.support-contact__inner .h2 {
  margin-bottom: 0;
}

.support-contact__inner .lead {
  max-width: 480px;
}

.support-contact__inner .btn {
  margin-top: 8px;
}

/* Focus states */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .phone {
    animation: none;
  }

  .coming-soon::after {
    animation: none;
  }
}

/* Health disclaimer (site-wide) */
.health-disclaimer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-light);
}

.health-disclaimer .container {
  padding-top: 16px;
  padding-bottom: 16px;
}

.health-disclaimer p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.health-disclaimer strong {
  font-weight: 600;
  color: var(--text);
}

