/* ================================
   Root Reset & Global Variables
================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
  padding: 0;
  font-family: "Noto Sans", sans-serif; /* default fallback */
}

/* Refined Color & Typography Variables */
:root {
  /* Color System */
  --system-white: #ffffff;
  --system-gray-1: #f2f5f3;
  --system-gray-2: #4a5d50;
  --system-gray-3: #181818;
  --surface-primary: #f2f5f3;
  --surface-secondary: #ffffff;
  --text-primary: #181818;
  
   /* Enhanced Contrast Colors */
  --system-black: #0d1a10;
  --accent-blue: #014017; /* Deep Forest Green */
  --accent-hover: #002a0f;
  --accent-gold: #c5a880; /* Gold/Bronze (for non-text accent use) */
  --accent-gold-hover: #b4966e;
  --text-gold: #8b6528; /* High-contrast Gold/Bronze for text elements */
  --text-secondary: #4a5d50;

  /* More Sophisticated Typography */
  --text-display: 500 2.2rem/1.2 "Alegreya", "Georgia", serif;
  --text-logo: 600 1.3rem/1.3 "Alegreya", "Georgia", serif;
  --text-headline: 600 1.85rem/1.3 "Alegreya", "Georgia", serif;
  --text-subhead: 400 1.05rem/1.5 "Noto Sans", sans-serif;
  --text-body: 400 1.15rem/1.6 "Noto Sans", sans-serif;
  --text-caption: 500 0.85rem/1.4 "Noto Sans", sans-serif;

  /* Motion Design */
  --motion-duration: 0.4s;
  --motion-easing: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);

  /* Responsive Spacing */
  --space-3xs: clamp(0.25rem, 0.2rem + 0.25vw, 0.5rem);
  --space-2xs: clamp(0.5rem, 0.4rem + 0.5vw, 1rem);
  --space-xs: clamp(1rem, 0.8rem + 1vw, 2rem);
  --space-sm: clamp(2rem, 1.6rem + 2vw, 3rem); /* Slightly reduced from 4rem */

  /* Layering System */
  --z-base: 1;
  --z-nav: 10;
  --z-dialog: 100;
  --z-tooltip: 1000;
}

/* Fluid base font-size */
html {
  font-size: clamp(0.9rem, 0.7rem + 0.5vw, 1rem); /* Slightly smaller overall */
}

/* Optional: Apple-style Gradient Headline */
.gradient-headline {
  background: linear-gradient(135deg, #1d1d1f 45%, #424245 75%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ================================
   Base Styles
================================ */
body {
  color: var(--text-primary);
  background-color: var(--system-white);
  line-height: 1.6;
  font-family: "Noto Sans", sans-serif;
}

button {
  cursor: pointer;
  background: transparent;
  outline: none;
  border: none;
  transition: all 0.3s ease;
}
button:hover {
  opacity: 0.9;
}
a {
  text-decoration: none;
  color: inherit;
}
ul li {
  list-style: none;
}

/* Container Utility: narrower max-width for more "luxury" feel */
.container {
  max-width: 1200px; /* Reduced from 1200px */
  margin: 0 auto;
  padding: 0 1rem; /* Slightly less padding */
}

/* ================================
   Top Banner
================================ */
.top-banner {
  background-color: var(--accent-blue);
  padding: 0.5rem 1rem;
}
.top-banner__container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}
.top-banner__link {
  font: var(--text-caption);
  color: var(--system-white);
  font-weight: 500;
}
.top-banner__link a {
  color: var(--system-white);
  transition: color 0.2s;
}
.top-banner__link a:hover {
  text-decoration: underline;
}
@media (max-width: 768px) {
  .top-banner__container {
    flex-direction: column;
  }
}

/* ================================
   Header & Navbar
================================ */
.header {
  background-color: var(--system-white);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3rem;
}
.logo__link {
  font: var(--text-logo);
  color: var(--system-black);
}

/* ================================
   Main Layout (Hero Section)
================================ */
.main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xs);
  align-items: center;
  min-height: 100vh;
  background: var(--surface-secondary);
  color: #fff;
  padding: var(--space-sm);
}

@media (max-width: 599px) {
  .main {
    grid-template-columns: 1fr;
    text-align: center;
    padding: var(--space-sm) 1rem;
    min-height: 100vh;
  }
}

/* Hero text area */
.flex-item-1.hero-text-block {
  padding: 1rem;
}
.flex-item-1 .top-title {
  font: var(--text-headline);
  margin-bottom: 0.5rem;
  color: var(--system-black);
}
.flex-item-1 .title {
  font: var(--text-display);
  margin-bottom: 0.75rem;
  color: var(--system-black);
}
.flex-item-1 .subtitle {
  font: var(--text-body);
  color: var(--system-gray-2);
  font-weight: 400;
  margin-bottom: 1.25rem;
}
.btn__start_trial {
  padding: 0.75rem 1.75rem; /* Reduced from 1rem 2.5rem */
  border-radius: 0.5rem;
  font: var(--text-subhead);
}

.btn__start_trial {
  background-color: var(--accent-blue);
  color: var(--system-white);
  border: 1px solid transparent;
  transition: all 0.3s var(--ease-out-quint);
  
  /* Depth effect */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08),
    0 2px 4px -2px rgba(0, 0, 0, 0.06);
  
  &:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 12px -2px rgba(0, 0, 0, 0.1),
      0 4px 6px -4px rgba(0, 0, 0, 0.08);
  }
  
  &:active {
    transform: translateY(0);
    box-shadow: 0 2px 3px -1px rgba(0, 0, 0, 0.06);
  }
}

.btn__start_trial:hover {
  background-color: var(--accent-hover);
}

.btn__secondary {
  padding: 0.75rem 1.75rem;
  border-radius: 0.5rem;
  font: var(--text-subhead);
  background-color: transparent;
  color: var(--accent-blue);
  border: 2px solid var(--accent-blue);
  transition: all 0.3s var(--ease-out-quint);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-sizing: border-box;
}

.btn__secondary:hover {
  background-color: rgba(1, 64, 23, 0.05);
  color: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 10px -2px rgba(0, 0, 0, 0.06);
}

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

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  justify-content: flex-start;
}

@media (max-width: 599px) {
  .hero-actions {
    justify-content: center;
  }
}

/* Hero image area */
.flex-item-2 {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}
.flex-item-2 img {
  width: 100%;
  max-width: 280px; /* Slightly smaller than 300px */
  border-radius: 0.75rem;
  object-fit: contain;
}
@media (max-width: 599px) {
  .flex-item-2 img {
    max-width: 200px;
  }
}

/* ================================
   CTA Section
================================ */
.cta-section {
  text-align: center;
  padding: var(--space-sm) 1rem;
  margin: 0 auto;
  max-width: 1000px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--system-white);
  color: var(--text-primary);
  border-radius: 1rem;
}
.cta-title {
  font: var(--text-headline);
  margin-bottom: 0.5rem;
}
.cta-subtitle {
  font: var(--text-body);
  color: var(--text-secondary);
  margin-bottom: 1rem;
}
.btn__cta {
  background-color: var(--accent-blue);
  color: #fff;
  padding: 0.6rem 1.2rem; /* Slightly smaller CTA button */
  border-radius: 0.5rem;
  font: var(--text-subhead);
  cursor: pointer;
  transition: background-color 0.2s;
  margin-bottom: 2rem;
}
.btn__cta:hover {
  background-color: var(--accent-hover);
}

.cta-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xs);
  max-width: 900px;
  margin: 2rem auto 0;
}
.cta-card {
  background-color: var(--surface-secondary);
  border-radius: 0.625rem;
  border: 1px solid #e0e0e0;
  padding: 1.5rem; /* Reduced from 2rem */
  text-align: center;
}
.cta-icon {
  margin-bottom: 1rem;
}

/* Step number styling for How It Works section */
.cta-icon.step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--accent-blue);
  color: var(--system-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font: 600 1.5rem/1 "Noto Sans", sans-serif;
  margin: 0 auto 1rem;
}
.cta-card h3 {
  font: var(--text-headline);
  margin-bottom: 0.5rem;
}
.cta-card-sub {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}
@media (max-width: 768px) {
  .cta-section {
    padding: var(--space-xs) 1rem;
  }
  .cta-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .about-section {
    padding: 40px 20px;
  }
  .faq-section {
    padding: var(--space-xs) 1rem;
  }
}

.form-nav {
  display: flex;
  gap: var(--space-3xs);
  margin-top: var(--space-xs);
  padding-top: var(--space-2xs);
  justify-content: space-between;
}
/* ================================
    About Us Section
================================ */
.about-section {
  padding: 60px 20px; /* Increased padding for better breathing room */
  margin: 0 auto; /* Adjusted margin for better spacing */
  max-width: 800px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-title {
  text-align: center;
  font: var(--text-headline);
  margin-bottom: 0.5rem;
}

.about-text {
  font: var(--text-body);
  line-height: 1.7; /* Increased line height for better reading flow */
  margin-bottom: 25px; /* Added consistent bottom margin for paragraphs */
}

/* FAQ Section Wrapper */
.faq-section {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-sm) 1rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--system-white);
  border-radius: 1rem;
  color: var(--text-primary);
}

/* Title & Intro Text */
.faq-title {
  text-align: center;
  font: var(--text-headline);
  margin-bottom: 0.5rem;
}
.faq-intro {
  text-align: center;
  font: var(--text-body);
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* FAQ Items: single column on all devices */
.faq-items {
  display: grid;
  grid-template-columns: 1fr; /* Single column only */
  gap: var(--space-xs);
}

/* Individual FAQ Item */
.faq-item {
  background-color: var(--surface-secondary);
  border-radius: 0.625rem;
  border: 1px solid #e0e0e0;
  padding: 0.5rem 1rem;
  display: flex;
  flex-direction: column;
}

/* FAQ Question (button) */
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: var(--text-subhead);
  width: 100%;
  padding: 1rem 0;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  color: var(--text-primary);
  transition: color 0.2s ease;
  /* Remove default bottom border */
  border-bottom: none;
}

/* Show bottom border only when expanded */
.faq-question[aria-expanded="true"] {
}

.faq-question:hover {
  color: var(--accent-blue);
}

/* Icon (plus sign) */
.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

/*
   When aria-expanded="true", rotate the plus sign 45deg to become a minus sign.
*/
.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

/* FAQ Answer */
.faq-answer {
  font: var(--text-body);
  color: var(--text-secondary);
  line-height: 1.5;
  max-height: 0; /* Collapsed by default */
  overflow: hidden; /* Hides content when collapsed */
  transition: max-height 0.3s ease; /* Smooth transition */
}

.faq-answer.open {
  max-height: 1000px; /* Large enough for your content */
  margin-top: 0.75rem;
  padding-bottom: 1rem;
}

/* FAQ Footer */
.faq-footer {
  text-align: center;
  font: var(--text-body);
  color: var(--text-secondary);
  margin-top: 2rem;
}

/* Focus States (Accessibility) */
.faq-question:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ================================
   Focus States (Accessibility)
================================ */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Accessibility Improvements */
.contact-link {
  color: var(--accent-blue);
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.3s ease;
}

.contact-link:hover,
.contact-link:focus {
  color: var(--accent-hover);
  text-decoration: none;
}

.contact-link:focus {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

/* Add more contrast and clarity to links */
.faq-footer {
  color: var(--text-secondary);
}

/* Center the entire icon row */
.social-icons-btn {
  display: flex; /* side-by-side icons */
  justify-content: center; /* horizontally center */
  align-items: center; /* vertically center */
  margin-bottom: 2rem; /* spacing above the footer text */
  gap: 0.5rem; /* small gap between icons */
}

/* Each icon link (like the "icons" class in reference code) */
.icons {
  width: 60px; /* Adjust icon box size */
  height: 60px;
  font-size: 2rem; /* If you were using ion-icons, you'd rely on this */
  font-weight: 500;
  text-decoration: none;
  margin: 0.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 0.4rem; /* or 50% if you want circles */
  color: var(--text-primary); /* white icon color */
  cursor: pointer;
  transition: all 0.15s ease;
}

/* Hover effect: slight opacity or brand color change */
.icons:hover {
  opacity: 0.8;
}

/* BRAND COLORS on hover (or always, your choice) */
/* If you want them always brand-colored, just set "background" instead of hover. */

/* Facebook */
.icons.facebook:hover {
  color: var(--accent-blue); /*#4267B2*/
}
/* X (formerly Twitter) */
.icons.x:hover {
  color: var(--accent-blue); /*#000000*/
}
/* LinkedIn */
.icons.linkedin:hover {
  color: var(--accent-blue); /*#0077B5*/
}
/* Instagram with a gradient (like reference code) */
.icons.instagram:hover {
  color: var(
    --accent-blue
  ); /*linear-gradient(#8a3ab9, #e95950, #bc2a8d, #fccc63)*/
}

/* Force the SVG fill to inherit from parent's color */
.icons svg {
  fill: currentColor;
  width: 24px; /* The actual icon size inside the 60px box */
  height: 24px;
}

/* ================================
   Footer
================================ */
.footer {
  position: relative;
  z-index: var(--z-base);
  padding: 2rem 1.5rem; /* Slightly less padding for a refined look */
  background-color: var(--system-white);
  border-top: 1px solid #e0e0e0;
  text-align: center;
  font: var(--text-caption);
  color: var(--text-secondary);
}
footer.footer p {
  margin: 0 0 0.75rem;
}
.footer__link {
  margin: 0 0.75rem;
}

.footer__link {
  color: var(--system-gray-3); /* From system-black */
  transition: color 0.2s ease;
  
  &:hover {
    color: var(--accent-blue);
    text-decoration: underline;
  }
}
.footer__link:hover {
  color: var(--accent-hover);
}

/* ================================
   Legal Pages — List Styles
================================ */
.abt-data ul {
  list-style-type: disc !important;
  list-style-position: outside;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  margin-top: 0.25rem;
}
.abt-data ul li {
  display: list-item;
  list-style-type: disc;
  font: 400 1rem/1.7 "Noto Sans", sans-serif;
  color: #424245;
  margin-bottom: 0.4rem;
}
