/* === Root Settings and Variables === */
:root {
  /* Typography scale (modular, mobile-first) */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;

  /* Colors */
  --color-text: #333;
  --color-muted: #525252;
  --color-bg: #fafafa;
  --color-primary: #026fe7;
  --color-feature: #040406;
  --color-badge-border: #2fc75d;
  --color-bg-secondary: #fff
}

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

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Sora, sans-serif;
  font-size: var(--font-size-sm);
  line-height: 1.6;
  background-color: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

p {
  text-wrap: pretty;
  color: var(--color-muted);
  font-size: var(--font-size-md);
}

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
  color: var(--color-feature);
}

#root, #__next {
  isolation: isolate;
}

/* === Typography === */
h1, h2, h3 {
  color: var(--color-feature);
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

.main-container {
  max-width: 1000px;
  margin: 0 auto;
}

/* === Navbar === */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md);
  top: 0;
  z-index: 1000;
}

@media (min-width: 768px) {
  .navbar {
    padding: var(--space-md);
  }
}

/* === Logo === */
.logo-container {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.logo-icon {
  height: 40px;
  width: 40px;
}

.logo-title {
  font-size: var(--font-size-xl);
  font-weight: bold;
}

/* === Navigation Links === */
.nav-links {
  list-style: none;
  display: flex;
  gap: var(--space-md);
  margin-left: auto;
}

.nav-links li {
  display: inline;
}

.nav-links a {
  color: var(--color-muted);
  transition: color 0.3s ease;
}

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

.social-media-icon {
  height: 24px;
  width: 24px;
}

/* === Main Section === */
.container {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

@media (min-width: 768px) {
  .container {
    flex-direction: row;
    justify-content: space-between;
    gap: var(--space-lg);
  }
}

.text-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .text-container {
    margin-top: var(--space-md);
  }
}

/* === Features === */
.feature-container {
  margin: var(--space-lg) 0;
  padding: 0 var(--space-md);
}

.feature-container h2 {
  text-align: center;
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.feature__items {
  margin-top: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  justify-content: center;
  align-items: start;
}

@media (min-width: 768px) {
  .feature__items {
    flex-direction: row;
    justify-content: space-between;
  }
}

.feature h4 {
  margin: var(--space-md) 0 var(--space-sm) 0;
}

/* === App Section === */
.app-screen {
  margin: auto;
}

.link-badge {
  pointer-events: none;
  display: block;
  height: 48px;
}

/* === Promo === */
.promo-container {
  margin: auto 0;
}

.promo__badges {
  margin-top: var(--space-md);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.promo__badge {
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-badge-border);
  border-radius: 8px;
  padding: var(--space-xs) var(--space-sm);
  flex: 45%;
}

.promo__badge p {
  font-size: var(--font-size-xs);
  color: var(--color-feature);
}

.promo__badge p:last-of-type {
  font-weight: bold;
}

.pricing {
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  display: flex;
  flex-direction: column;
}

.pricing h2 {
  margin-bottom: var(--space-sm);
}

.pricing p {
  margin-bottom: var(--space-md);
}

.pricing-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin: 0 auto;
}

@media (min-width: 768px) {
  .pricing-options {
    flex-direction: row;
  }
}

.plan {
  flex: 1;
  display: flex;
  align-items: start;
  flex-direction: column;
  gap: var(--space-xs);
  background: var(--color-bg-secondary);
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-muted);
  border-radius: 12px;
  min-width: 300px
}

.plan .price {
  font-size: var(--font-size-lg);
  font-weight: bold;
}

.plan .duration, .subtext {
  font-size: var(--font-size-md);
}

.plan .price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.plan .badge {
  background-color: var(--color-badge-border);
  font-size: var(--font-size-sm);
  font-weight: bold;
  padding: 4px 12px;
  border-radius: 999px;
}

/* === Contact / Footer === */
.contact-container {
  margin: var(--space-lg) 0;
  padding: 0 var(--space-md);
}

.contact-container h2 {
  margin-bottom: var(--space-md);  
}

.bottom-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer {
  display: flex;
  padding: var(--space-md);
  font-size: var(--font-size-xs);
  justify-content: space-between;
  align-items: center;
}

/* === Privacy Policy === */
.privacy-policy-container {
  padding: var(--space-md);
}

.privacy-policy-item {
  margin-top: var(--space-sm);
}


/* === Dark Mode Support === */
@media (prefers-color-scheme: dark) {
  :root {
    --color-text: #eee;
    --color-muted: #aaa;
    --color-bg: #121212;
    --color-feature: #fff;
    --color-bg-secondary: #1e1e1e;
  }

  body {
    background-color: var(--color-bg);
    color: var(--color-text);
  }

  a,
  .nav-links a:hover {
    color: #66b0ff;
  }
}

/* === Accessibility === */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
