/* ============================================
   Billie Website - Static CSS
   ============================================ */

/* CSS Variables */
:root {
  /* Brand Colors */
  --primary: #f88379;       /* Coral */
  --secondary: #5171ff;     /* Blue */
  --background: #fffbf1;    /* Cream */
  --foreground: #000000;    /* Black */
  
  /* Utility Colors */
  --card: #ffffff;
  --muted: #f1f0ee;
  --muted-foreground: #646464;
  --border: #e5e5e5;
  
  /* Spacing */
  --radius: 0.5rem;
  
  /* Fonts */
  --font-heading: 'Bebas Neue', serif;
  --font-body: 'Alata', 'Segoe UI', sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

/* Container */
.container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.container-narrow {
  max-width: 48rem;
}

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

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* Utility Classes */
.hidden {
  display: none !important;
}

.text-coral {
  color: var(--primary);
}

.text-blue {
  color: var(--secondary);
}

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--background);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

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

@media (min-width: 1024px) {
  .nav-container {
    padding: 0 2rem;
  }
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4rem;
}

.nav-logo img {
  height: 2.5rem;
  width: auto;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--primary);
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-toggle {
  display: flex;
  padding: 0.5rem;
}

.nav-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }
}

.nav-mobile {
  padding-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-mobile a {
  display: block;
  padding: 0.5rem;
  transition: color 0.2s;
}

.nav-mobile a:hover {
  color: var(--primary);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 9999px;
  transition: opacity 0.2s;
  text-align: center;
}

.btn:hover {
  opacity: 0.9;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
  background-color: var(--secondary);
  color: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-full {
  width: 100%;
}

.btn-adjust {
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: 2px solid var(--secondary);
  color: var(--secondary);
  border-radius: var(--radius);
  transition: background-color 0.2s;
}

.btn-adjust:hover {
  background-color: rgba(81, 113, 255, 0.1);
}

/* ============================================
   Sections
   ============================================ */
.section {
  padding: 4rem 0;
}

@media (min-width: 640px) {
  .section {
    padding: 6rem 0;
  }
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  text-align: center;
  color: var(--secondary);
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.section-subtitle {
  text-align: center;
  color: var(--muted-foreground);
  margin-bottom: 3rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.section-gradient {
  background: linear-gradient(to right, rgba(81, 113, 255, 0.1), rgba(248, 131, 121, 0.1));
}

.section-gradient-alt {
  background: linear-gradient(to bottom right, var(--background), rgba(81, 113, 255, 0.05), rgba(248, 131, 121, 0.05));
}

.section-gradient-reverse {
  background: linear-gradient(to bottom right, rgba(248, 131, 121, 0.05), var(--background), rgba(81, 113, 255, 0.05));
}

.section-gradient-blue {
  background: linear-gradient(to bottom right, rgba(81, 113, 255, 0.05), var(--background));
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  padding: 4rem 0;
  background: linear-gradient(to bottom, rgba(81, 113, 255, 0.1), var(--background), var(--background));
}

@media (min-width: 640px) {
  .hero {
    padding: 6rem 0;
  }
}

.hero-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero-logo {
  width: 10rem;
  height: 10rem;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--secondary);
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

.hero-description {
  font-size: 1.125rem;
  max-width: 42rem;
  line-height: 1.75;
}

@media (min-width: 640px) {
  .hero-description {
    font-size: 1.25rem;
  }
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1rem;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

.hero-image {
  margin-bottom: 3rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  height: 16rem;
  position: relative;
}

@media (min-width: 640px) {
  .hero-image {
    height: 20rem;
  }
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   Steps Grid (How It Works)
   ============================================ */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .steps-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  border-radius: var(--radius);
  border-left: 4px solid;
  transition: background-color 0.2s;
}

.step-blue {
  background-color: rgba(81, 113, 255, 0.1);
  border-color: var(--secondary);
}

.step-blue:hover {
  background-color: rgba(81, 113, 255, 0.2);
}

.step-coral {
  background-color: rgba(248, 131, 121, 0.1);
  border-color: var(--primary);
}

.step-coral:hover {
  background-color: rgba(248, 131, 121, 0.2);
}

.step-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.step-icon svg {
  width: 2rem;
  height: 2rem;
  color: white;
}

.step-icon-blue {
  background-color: var(--secondary);
}

.step-icon-coral {
  background-color: var(--primary);
}

.step-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ============================================
   Calculator
   ============================================ */
.calculator-card {
  max-width: 28rem;
  margin: 0 auto;
  background-color: var(--background);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 2px solid var(--secondary);
}

.calculator-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.calculator-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.calculator-slider {
  width: 100%;
  height: 0.5rem;
  background-color: rgba(81, 113, 255, 0.2);
  border-radius: 9999px;
  appearance: none;
  cursor: pointer;
}

.calculator-slider::-webkit-slider-thumb {
  appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  background-color: var(--secondary);
  border-radius: 50%;
  cursor: pointer;
}

.calculator-slider::-moz-range-thumb {
  width: 1.25rem;
  height: 1.25rem;
  background-color: var(--secondary);
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

.calculator-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.calculator-amount {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--secondary);
}

.calculator-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-top: 2px solid var(--secondary);
  padding-top: 1.5rem;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.breakdown-row span:first-child {
  color: var(--muted-foreground);
}

.breakdown-row span:last-child {
  font-weight: 600;
}

.breakdown-total {
  padding-top: 0.75rem;
  border-top: 2px solid var(--primary);
}

.breakdown-total span:last-child {
  font-size: 1.125rem;
  font-weight: 700;
}

.calculator-note {
  background-color: rgba(81, 113, 255, 0.1);
  border-left: 4px solid var(--secondary);
  padding: 1rem;
  border-radius: var(--radius);
}

.calculator-note p {
  font-size: 0.875rem;
}

/* ============================================
   Features Grid
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 2px solid;
  transition: all 0.2s;
}

.feature-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.feature-blue {
  background-color: rgba(81, 113, 255, 0.05);
  border-color: var(--secondary);
}

.feature-blue:hover {
  background-color: rgba(81, 113, 255, 0.1);
}

.feature-coral {
  background-color: rgba(248, 131, 121, 0.05);
  border-color: var(--primary);
}

.feature-coral:hover {
  background-color: rgba(248, 131, 121, 0.1);
}

.feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
}

.icon-blue {
  color: var(--secondary);
}

.icon-coral {
  color: var(--primary);
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* ============================================
   FAQ
   ============================================ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border: 2px solid rgba(81, 113, 255, 0.3);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--background);
  transition: all 0.2s;
}

.faq-item:hover {
  border-color: var(--secondary);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.faq-question {
  width: 100%;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-weight: 600;
  transition: background-color 0.2s;
}

.faq-question:hover {
  background-color: rgba(81, 113, 255, 0.05);
}

.faq-chevron {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--secondary);
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 1rem 1.5rem;
  background-color: rgba(81, 113, 255, 0.05);
  border-top: 2px solid var(--secondary);
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-answer p {
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* ============================================
   Resources
   ============================================ */
.resources-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .resources-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.resource-card {
  padding: 2rem;
  border-radius: var(--radius);
  background: linear-gradient(to bottom right, rgba(248, 131, 121, 0.1), rgba(248, 131, 121, 0.05));
  border: 2px solid var(--primary);
  transition: all 0.2s;
}

.resource-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.resource-icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.resource-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.resource-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.coming-soon-banner {
  padding: 2rem;
  background: linear-gradient(to right, rgba(81, 113, 255, 0.1), rgba(248, 131, 121, 0.1));
  border-radius: var(--radius);
  border: 2px solid var(--secondary);
  text-align: center;
}

.coming-soon-banner h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.coming-soon-banner p {
  color: var(--muted-foreground);
}

/* ============================================
   Testimonials
   ============================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  padding: 2rem;
  border-radius: var(--radius);
  background-color: var(--background);
  border: 2px solid rgba(248, 131, 121, 0.5);
  transition: all 0.2s;
}

.testimonial-card:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.testimonial-quote {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
  font-style: italic;
  line-height: 1.6;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: rgba(248, 131, 121, 0.1);
  object-fit: cover;
}

.testimonial-name {
  font-weight: 600;
}

.testimonial-role {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.testimonial-location {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  opacity: 0.7;
}

/* ============================================
   Contact
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-card {
  text-align: center;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 2px solid;
}

.contact-blue {
  background-color: rgba(81, 113, 255, 0.05);
  border-color: var(--secondary);
}

.contact-coral {
  background-color: rgba(248, 131, 121, 0.05);
  border-color: var(--primary);
}

.contact-icon {
  width: 2rem;
  height: 2rem;
  margin: 0 auto 1rem;
}

.contact-blue .contact-icon {
  color: var(--secondary);
}

.contact-coral .contact-icon {
  color: var(--primary);
}

.contact-card h3 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-card p {
  color: var(--muted-foreground);
}

.contact-form-wrapper {
  max-width: 42rem;
  margin: 0 auto;
  background-color: rgba(248, 131, 121, 0.05);
  border-radius: var(--radius);
  padding: 2rem;
  border: 2px solid var(--primary);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  padding: 0.5rem 1rem;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  background-color: var(--background);
  font-family: inherit;
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(248, 131, 121, 0.3);
}

.form-group textarea {
  min-height: 6rem;
  resize: vertical;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background-color: var(--foreground);
  color: var(--background);
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-brand img {
  height: 2rem;
  width: auto;
  margin-bottom: 1rem;
}

.footer-brand p {
  opacity: 0.8;
  font-size: 0.875rem;
}

.footer-links h4 {
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}

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

.footer-social h4 {
  font-weight: 600;
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  opacity: 0.7;
  transition: opacity 0.2s;
}

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

.social-links svg {
  width: 1.25rem;
  height: 1.25rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
  font-size: 0.875rem;
  opacity: 0.7;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ============================================
   Document Pages (Privacy, Terms)
   ============================================ */
.document-page {
  padding: 3rem 0;
}

.document-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .document-title {
    font-size: 3rem;
  }
}

.document-content {
  max-width: 56rem;
  margin: 0 auto;
}

.document-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.document-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--secondary);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.document-content p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.document-content ul {
  margin-bottom: 1rem;
  margin-left: 1.5rem;
  list-style-type: disc;
}

.document-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.document-content a {
  color: var(--primary);
}

.document-content a:hover {
  text-decoration: underline;
}

.document-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.document-content th,
.document-content td {
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  text-align: left;
}

.document-content th {
  background-color: var(--muted);
  font-weight: 600;
}

.document-content tr:nth-child(even) td {
  background-color: rgba(0, 0, 0, 0.02);
}

.document-callout {
  background-color: rgba(248, 131, 121, 0.1);
  border-left: 4px solid var(--primary);
  padding: 1rem;
  margin: 1.5rem 0;
}

.document-callout p {
  margin-bottom: 0;
  font-weight: 600;
}

.document-info-box {
  background-color: var(--muted);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

.document-info-box h3 {
  margin-top: 0;
}

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

.fade-in {
  animation: fadeIn 0.3s ease-out;
}
