:root {
  --color-primary: #090C80;
  --color-primary-dark: #06085A;
  --color-accent: #EFCA08;
  --color-text: #14163A;
  --color-text-secondary: #4E4A5C;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F5F0F6;
  --color-border: #E2E4E9;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1100px;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --radius: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  color: var(--color-primary-dark);
}

h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--color-text);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
  color: var(--color-text-secondary);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

/* ===== Header & Navigation ===== */

.site-header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--color-text);
  font-weight: 500;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--color-text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}

/* ===== Footer ===== */

.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
  text-align: center;
}

.footer-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  gap: 1.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-contact a {
  color: var(--color-accent);
  font-size: 0.95rem;
}

.footer-contact a:hover {
  color: #fff;
}

.footer-copyright {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

/* ===== Buttons ===== */

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
  border: none;
}

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

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

.btn-accent {
  background: var(--color-accent);
  color: var(--color-text);
}

.btn-accent:hover {
  background: #D9B607;
  color: var(--color-text);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

/* ===== Hero Section ===== */

.hero {
  padding: var(--spacing-lg) 0;
  text-align: center;
}

.hero h1 {
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* ===== Section Styles ===== */

.section {
  padding: var(--spacing-lg) 0;
}

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

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-md);
}

.section-header p {
  max-width: 600px;
  margin: 0.75rem auto 0;
  font-size: 1.05rem;
}

/* ===== Card Grid ===== */

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
}

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--spacing-md);
  text-align: center;
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.card h3 {
  margin-bottom: 0.5rem;
}

/* ===== Featured App ===== */

.featured-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
  text-align: center;
}

.app-icon {
  width: 250px;
  height: 250px;
  border-radius: 50px;
  background: #F2CC38;
  color: #090C80;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13.3rem;
  font-weight: 700;
  flex-shrink: 0;
}

.app-info h2 {
  margin-bottom: 0.5rem;
}

.app-tagline {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
}

.feature-list {
  list-style: none;
  text-align: left;
  margin-bottom: 1.5rem;
}

.feature-list li {
  padding: 0.4rem 0;
  color: var(--color-text-secondary);
  padding-left: 1.5rem;
  position: relative;
}

.feature-list li::before {
  content: "\2713";
  color: var(--color-primary);
  font-weight: 700;
  position: absolute;
  left: 0;
}

/* ===== Legal Pages ===== */

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--spacing-md) var(--spacing-sm) var(--spacing-lg);
}

.legal-content h1 {
  margin-bottom: 0.5rem;
}

.legal-content .effective-date {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  margin-bottom: var(--spacing-md);
}

.legal-content h2 {
  margin-top: var(--spacing-md);
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}

.legal-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-content p,
.legal-content li {
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.legal-content ul, .legal-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content li {
  margin-bottom: 0.4rem;
}

/* ===== Support Page ===== */

.contact-box {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--spacing-md);
  text-align: center;
  margin-bottom: var(--spacing-md);
}

.contact-box .email-link {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-primary);
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 1.25rem 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h3 {
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.faq-item p {
  margin-bottom: 0;
}

/* ===== About Page ===== */

.values-list {
  list-style: none;
}

.values-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-secondary);
}

.values-list li:last-child {
  border-bottom: none;
}

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

/* ===== 404 Page ===== */

.error-page {
  text-align: center;
  padding: 6rem 0;
}

.error-page h1 {
  font-size: 5rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.error-page p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* ===== App Store Badge ===== */

.app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #000;
  color: #fff;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: opacity 0.2s;
}

.app-store-badge:hover {
  color: #fff;
  opacity: 0.85;
}

.app-store-badge .badge-icon {
  font-size: 1.5rem;
}

/* ===== Responsive ===== */

@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2rem; }

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .featured-app {
    flex-direction: row;
    text-align: left;
  }

  .app-icon {
    width: 250px;
    height: 250px;
    font-size: 13.3rem;
  }

  .hero {
    padding: 5rem 0;
  }

  .section {
    padding: 5rem 0;
  }
}

@media (max-width: 767px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem;
    gap: 0;
  }

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

  .nav-links li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* ===== DayEvery additions ===== */

.app-icon-img {
  width: 200px;
  height: 200px;
  border-radius: 44px;
  margin: 0 auto 1.5rem;
  box-shadow: 0 12px 32px rgba(9, 12, 128, 0.18);
}

.tagline {
  font-style: italic;
  font-size: 1.3rem;
}

.domain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-sm);
  max-width: 560px;
  margin: 0 auto;
}

.domain-tile {
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-primary);
}

.domain-tile.blue { background: #5DB7DE; }
.domain-tile.yellow { background: #EFCA08; }

.price-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
  max-width: 640px;
  margin: 0 auto;
}

.price-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--spacing-md);
  text-align: center;
}

.price-card .price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.fine-print {
  max-width: 640px;
  margin: 1.5rem auto 0;
  font-size: 0.9rem;
  text-align: center;
}

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