@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Quicksand:wght@300;400;500;600;700&display=swap");

:root {
  --font-sans: "Quicksand", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
}

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

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: #333333;
  background-color: #fffcf4;
  overflow-x: hidden;
}

/* Typography system:
   Sans handles UI, navigation, and body copy.
   Serif is reserved for editorial and section-heading moments. */
.brand-text,
.app-store-badge,
.legal-eyebrow,
.legal-meta,
.legal-card p,
.legal-list,
.legal-section h3,
.footer-links a,
.copyright {
  font-family: var(--font-sans);
}

.logo,
.section-title,
.feature h3,
.cta-section h2,
.page-title,
.legal-section h2 {
  font-family: var(--font-serif);
  font-weight: 700;
}

.site-header {
  padding: 1.5rem 0;
  background: transparent;
}

.header-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.brand:hover {
  opacity: 0.8;
}

.brand-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 10px;
}

.brand-text {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 900;
  color: #000000;
  letter-spacing: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero {
  text-align: center;
  padding: 1rem 1rem 5rem;
}

.logo {
  max-width: 18ch;
  margin: 0 auto;
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.03;
  color: #000000;
  letter-spacing: -1px;
  text-wrap: balance;
}

.hero-cta {
  margin-top: 1.5rem;
  margin-bottom: -2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.hero-cta .app-store-badge {
  display: inline-block;
  transition: transform 0.3s ease;
}

.hero-cta .app-store-badge:hover {
  transform: scale(1.05);
}

.phone-showcase {
  display: flex;
  justify-content: center;
  margin: 2rem 0 5rem;
}

.iphone {
  position: relative;
  width: 280px;
  height: 580px;
  background: #222222;
  border-radius: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  padding: 10px;
  border: 1px solid #444444;
  overflow: hidden;
}

.iphone-notch {
  position: absolute;
  width: 100px;
  height: 25px;
  background: #222222;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  z-index: 2;
}

.iphone-screen {
  width: 100%;
  height: 100%;
  background: #000000;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
}

#app-demo {
  width: 101%;
  height: 101%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-position: center;
}

.features {
  padding: 4rem 0;
  text-align: center;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 2.5rem;
  color: #222222;
  letter-spacing: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin: 0 auto;
  max-width: 1000px;
}

.feature {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.feature:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.feature h3 {
  margin-bottom: 1rem;
  color: #333333;
  font-size: 1.4rem;
  letter-spacing: 0;
}

.feature p {
  color: #555555;
  line-height: 1.6;
}

.cta-section {
  text-align: center;
  padding: 5rem 0;
  max-width: 800px;
  margin: 0 auto;
}

.cta-section h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: #222222;
  letter-spacing: 0;
}

.cta-section p {
  color: #555555;
  margin-bottom: 2.5rem;
  font-size: 1.2rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.app-store-badge {
  display: inline-block;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.app-store-badge img {
  height: 50px;
  width: auto;
  display: block;
}

/* Legal page styles keep long policy text readable without changing the site look. */
.legal-page {
  padding: 1rem 20px 4rem;
}

.legal-container {
  max-width: 900px;
  margin: 0 auto;
}

.legal-header {
  text-align: center;
  margin-bottom: 2rem;
}

.legal-eyebrow {
  color: #ff6b57;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.page-title {
  font-size: 2.4rem;
  color: #222222;
  letter-spacing: 0;
}

.legal-meta {
  margin-top: 0.75rem;
  color: #666666;
}

.legal-card {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.legal-card p {
  margin-bottom: 1rem;
  color: #444444;
}

.legal-card a {
  color: #222222;
  text-decoration: underline;
}

.legal-section + .legal-section {
  margin-top: 2rem;
}

.legal-section h2 {
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
  color: #222222;
  letter-spacing: 0;
}

.legal-section h3 {
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 1.08rem;
  color: #222222;
}

.legal-list {
  margin: 0.75rem 0 1rem 1.35rem;
  color: #444444;
}

.legal-list li + li {
  margin-top: 0.5rem;
}

.legal-footer-note {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  color: #777777;
  font-size: 0.95rem;
}

footer {
  text-align: center;
  padding: 3rem 0;
  margin-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-links {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #555555;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-links a[aria-current="page"] {
  color: #222222;
  font-weight: 700;
}

.copyright {
  color: #999999;
  font-size: 0.9rem;
}

a:focus-visible {
  outline: 2px solid #222222;
  outline-offset: 4px;
}

@media (max-width: 768px) {
  .site-header {
    padding: 1rem 0;
  }

  .brand-icon {
    width: 28px;
    height: 28px;
  }

  .brand-text {
    font-size: 1.25rem;
  }

  .hero {
    padding: 1rem 1rem;
  }

  .logo {
    font-size: 2.4rem;
    line-height: 1.06;
  }

  .hero-cta {
    margin-top: 1.5rem;
    margin-bottom: 0;
    flex-wrap: wrap;
  }

  .app-store-badge img {
    height: 44px;
  }

  .feature {
    margin-bottom: 1.5rem;
  }

  .page-title {
    font-size: 2rem;
  }

  .legal-card {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .container,
  .header-container,
  .legal-page {
    padding: 0 10px;
  }

  .brand-icon {
    width: 24px;
    height: 24px;
  }

  .brand-text {
    font-size: 1.1rem;
  }

  .hero {
    padding: 1rem 0;
  }

  .logo {
    font-size: 2.15rem;
    line-height: 1.08;
    margin-bottom: 0.1rem;
    white-space: normal;
  }

  .hero-cta {
    gap: 0.5rem;
  }

  .app-store-badge img {
    height: 39px;
  }

  .page-title {
    font-size: 1.7rem;
  }

  .legal-card {
    padding: 1.2rem;
    border-radius: 16px;
  }
}
