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

/* Skip to content link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #004e92;
  color: #ffffff;
  padding: 8px 16px;
  z-index: 1000;
  text-decoration: none;
  font-weight: 500;
}

.skip-link:focus {
  top: 0;
}

/* Focus states for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #004e92;
  outline-offset: 2px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  color: #052f5f;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* Ensure body takes at least full viewport height */
}

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

header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 40px;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #ffffff;
  flex: 1;
}

header nav {
  flex: 2;
  display: flex;
  justify-content: center;
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}

.header-buttons {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

header nav li {
  display: inline;
}

header nav a {
  color: #ffffff;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

header nav a:hover {
  opacity: 0.8;
}

.btn-primary {
  background-color: #004e92;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  border: 2px solid #004e92;
}

.btn-download {
  background-color: transparent;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 2px solid rgba(255, 255, 255, 0.7);
  margin-right: 10px;
  transition: all 0.2s ease;
}

.btn-download:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-primary:hover {
  background-color: #ffffff;
  color: #004e92;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  background: url('../images/beach.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero-content {
  position: relative;
  width: 50%;
  padding: 40px;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #0a2c5d;
  line-height: 1.2;
}

.hero p {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 30px;
  max-width: 500px;
  color: #0a2c5d;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  align-items: center;
}

.hero-buttons a {
  font-size: 1rem;
}

.hero-image {
  position: relative;
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  z-index: 1;
}

.hero-image img {
  max-width: 450px;
  width: 100%;
  height: auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  border-radius: 20px;
}

.hero-tagline {
  margin-top: 1.5rem;
  max-width: 28rem;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #053d73;
}

/* Home page feature strip */
.home-features {
  padding: 60px 40px;
}

.home-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.home-feature-card {
  background: rgba(241, 246, 250, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.home-feature-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 16px;
}

.home-feature-card h3 {
  font-size: 1.1rem;
  color: #0a2c5d;
  margin-bottom: 10px;
}

.home-feature-card p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
  margin: 0;
}

/* Home page differentiator section */
.home-differentiator {
  padding: 60px 40px;
}

.differentiator-content {
  background: rgba(241, 246, 250, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: 50px;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
}

.differentiator-content h2 {
  font-size: 1.8rem;
  color: #0a2c5d;
  margin-bottom: 24px;
  text-align: center;
}

.differentiator-content p {
  font-size: 1.05rem;
  color: #333;
  line-height: 1.7;
  margin-bottom: 16px;
}

.differentiator-content p:last-child {
  margin-bottom: 0;
}

/* General section styles */
section.page-section {
  padding: 80px 40px;
}

section.page-section h1 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: #0a2c5d;
  text-align: center;
}

section.page-section h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #0a2c5d;
  text-align: center;
}

section.page-section p {
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* 404 page CTA */
.error-cta {
  margin-top: 2rem;
}

/* Features */
.features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, 280px);
  grid-template-rows: auto auto auto;
  justify-content: center;
  gap: 10px 40px;
}

.feature-item {
  background: rgb(241, 246, 250);
  background: rgba(241, 246, 250, 0.88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 30px 30px 15px 30px;
  border-radius: 12px;
  width: 280px;
  text-align: center;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 4;
}

.feature-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 10px;
}

.feature-item h3 {
  margin-bottom: 10px;
  color: #004e92;
  align-self: start;
}

.feature-item .tagline {
  font-style: italic;
  color: #004e92;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  align-self: start;
}

.feature-item p {
  font-size: 0.95rem;
  align-self: start;
}

/* Features page CTA */
.features-cta {
  margin-top: 50px;
  text-align: center;
}

.features-cta p {
  margin-bottom: 16px;
  font-size: 1.3rem;
  color: #ffffff;
  font-weight: 500;
}

/* Pricing */
.pricing-table {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-bottom: 40px;
}

.pricing-card {
  border: 1px solid rgba(0, 53, 128, 0.08);
  border-radius: 12px;
  padding: 40px;
  width: 340px;
  background: rgb(241, 246, 250);
  background: rgba(241, 246, 250, 0.88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
  text-align: center;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card.featured {
  border: 2px solid rgba(0, 78, 146, 0.3);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background-color: #004e92;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}

.pricing-card h3 {
  margin-bottom: 5px;
  font-size: 1.5rem;
  color: #004e92;
}

.pricing-card .price {
  font-size: 2.5rem;
  color: #0a2c5d;
  margin: 10px 0 5px 0;
}

.price-subtitle {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 20px;
}

.pricing-card ul {
  list-style: none;
  margin-bottom: 30px;
  text-align: left;
  flex-grow: 1;
}

.pricing-card ul li {
  margin-bottom: 10px;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.5;
}

.pricing-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #004e92;
  font-weight: bold;
}

.pricing-card .btn-primary {
  display: inline-block;
  width: 100%;
}

.pricing-anchor {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 30px;
}

.pricing-checklist {
  list-style: none;
  margin-top: 20px;
  margin-bottom: 0;
  text-align: left;
  font-size: 0.9rem;
  color: #555;
}

.pricing-checklist li {
  margin-bottom: 6px;
  padding-left: 1.5rem;
  position: relative;
}

.pricing-checklist li::before {
  content: "✅";
  position: absolute;
  left: 0;
  font-size: 0.85rem;
}

.pricing-usecase {
  font-size: 1rem;
  color: #444;
  margin-top: 70px;
  padding-bottom: 40px;
  font-style: italic;
}

/* How it works */
.steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.step {
  width: 280px;
  text-align: center;
  background: rgb(241, 246, 250);
  background: rgba(241, 246, 250, 0.88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
}

.step-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 10px;
}

.step-number {
  background-color: #004e92;
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin: 0 auto 15px;
}

/* How it works CTA */
.how-it-works-cta {
  margin-top: 50px;
  text-align: center;
}

.how-it-works-cta p {
  margin-bottom: 16px;
  font-size: 1.3rem;
  color: #ffffff;
}

.how-it-works-cta .privacy-reassurance {
  margin-top: 20px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  background: rgb(241, 246, 250);
  background: rgba(241, 246, 250, 0.88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
  padding: 2.5rem clamp(1.5rem, 4vw, 3rem);
}

.faq-item {
  margin-bottom: 20px;
}

.faq-question {
  font-weight: bold;
  margin-bottom: 5px;
  color: #004e92;
}

.faq-answer {
  padding-left: 15px;
}

.faq-answer a {
  color: #004e92;
  text-decoration: underline;
}

.faq-answer a:hover {
  color: #003366;
}

.beach-background {
  background: url('../images/beach.webp') center/cover fixed no-repeat;
}

/* Fallback for browsers that don't support WebP */
.no-webp .beach-background {
  background: url('../images/beach.png') center/cover fixed no-repeat;
}

/* Footer */
footer {
  background: transparent;
  color: #ffffff;
  padding: 20px 40px;
  text-align: center;
  margin-top: auto;
}

.footer-links {
  margin-bottom: 10px;
}

.footer-links a {
  color: #ffffff;
  margin: 0 15px;
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

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

.footer-support {
  margin-top: 15px;
  font-size: 0.95rem;
}

.footer-support a {
  color: #ffffff;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

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

footer p {
  font-size: 1rem;
  color: #ffffff;
  opacity: 0.85;
}

/* Index page - footer below fold */
.index-page {
  background: url('../images/beach.webp') center/cover fixed no-repeat;
}

.no-webp .index-page {
  background: url('../images/beach.png') center/cover fixed no-repeat;
}

.index-page .hero {
  min-height: 100vh;
  background: none;
}

/* Mobile hamburger menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
  z-index: 200;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #ffffff;
  margin: 3px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }
  .hero-content, .hero-image {
    width: 100%;
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  header {
    padding: 15px 20px;
  }

  header nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: rgba(0, 78, 146, 0.98);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: right 0.3s ease;
    z-index: 150;
    padding-top: 80px;
  }

  header nav.active {
    right: 0;
  }

  header nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0 20px;
  }

  header nav li {
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  header nav a {
    display: block;
    padding: 15px 0;
    font-size: 1.1rem;
  }

  header .btn-primary,
  header .btn-download {
    display: none;
  }

  .nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 140;
  }

  .nav-overlay.active {
    display: block;
  }

  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .footer-links a {
    margin: 0;
  }

  /* Home page feature strip - mobile */
  .home-features {
    padding: 40px 20px;
  }

  .home-features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .home-feature-card {
    padding: 20px 16px;
  }

  .home-feature-icon {
    font-size: 2rem;
  }

  .home-feature-card h3 {
    font-size: 1rem;
  }

  .home-feature-card p {
    font-size: 0.85rem;
  }

  /* Home page differentiator - mobile */
  .home-differentiator {
    padding: 40px 20px;
  }

  .differentiator-content {
    padding: 30px 24px;
  }

  .differentiator-content h2 {
    font-size: 1.5rem;
  }

  .differentiator-content p {
    font-size: 0.95rem;
  }

  /* Features page - mobile */
  .features-list {
    gap: 20px;
  }

  .feature-item {
    width: 100%;
    max-width: 100%;
    padding: 24px 20px 12px 20px;
  }

  .feature-icon {
    font-size: 2rem;
  }

  .feature-item h3 {
    font-size: 1.1rem;
  }

  .feature-item .tagline {
    font-size: 0.9rem;
  }

  .feature-item p {
    font-size: 0.9rem;
  }

  .features-cta {
    margin-top: 30px;
  }

  .features-cta p {
    font-size: 1.1rem;
  }

  /* Pricing page - mobile */
  .pricing-table {
    gap: 20px;
  }

  .pricing-card {
    width: 100%;
    max-width: 100%;
    padding: 30px 24px;
  }

  .pricing-card .price {
    font-size: 2.5rem;
  }

  .pricing-anchor {
    font-size: 1rem;
  }

  .pricing-checklist {
    font-size: 0.85rem;
  }

  .pricing-usecase {
    font-size: 0.95rem;
    margin-top: 50px;
  }

  /* How it works / Steps - mobile */
  .steps {
    gap: 20px;
  }

  .step {
    width: 100%;
    max-width: 100%;
    padding: 24px 20px;
  }

  .step-icon {
    font-size: 2rem;
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .step h3 {
    font-size: 1.1rem;
  }

  .step p {
    font-size: 0.9rem;
  }

  .how-it-works-cta {
    margin-top: 30px;
  }

  .how-it-works-cta p {
    font-size: 1.1rem;
  }

  /* FAQ page - mobile */
  .faq-list {
    padding: 1.5rem clamp(1rem, 3vw, 2rem);
  }

  .faq-question {
    font-size: 1rem;
  }

  .faq-answer {
    font-size: 0.9rem;
    padding-left: 10px;
  }

  /* Page section - mobile */
  section.page-section {
    padding: 60px 20px;
  }

  section.page-section h1 {
    font-size: 1.8rem;
  }

  section.page-section p {
    font-size: 1rem;
    margin-bottom: 30px;
  }
}