:root {
  --primary: #5c6bc0;
  --primary-dark: #383c59;
  --gradient-start: #e3f2fd;
  --gradient-end: #ede7f6;
  --green: #4caf50;
  --yellow: #ffc107;
  --orange: #ff9800;
  --text: #1a1a1a;
  --text-secondary: #757575;
  --surface: #ffffff;
  --max-width: 1100px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--surface);
}

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

a:hover {
  text-decoration: underline;
}

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

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.site-header {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  border-bottom: 1px solid rgba(92, 107, 192, 0.15);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 22%;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--primary-dark);
  font-weight: 500;
  text-decoration: none;
}

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

.hero {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  padding: 4rem 0 5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  color: var(--primary-dark);
  margin: 0 0 1rem;
}

.hero p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin: 0 0 1.75rem;
  max-width: 36rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 14px rgba(92, 107, 192, 0.35);
}

.btn-secondary {
  background: white;
  color: var(--primary-dark);
  border: 1px solid rgba(92, 107, 192, 0.25);
}

.store-badges {
  align-items: flex-start;
}

.store-badge-link,
.store-badge-soon {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.store-badge-soon {
  cursor: default;
  user-select: none;
}

.store-badge-slot {
  width: 8.5rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.store-badge--apple {
  height: 2.75rem;
  width: auto;
  max-width: 100%;
}

.store-badge--play {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  opacity: 0.55;
  pointer-events: none;
}

.store-badge-caption {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: min(280px, 100%);
  aspect-ratio: 9 / 19;
  background: var(--primary-dark);
  border-radius: 2rem;
  padding: 0.75rem;
  box-shadow: 0 24px 48px rgba(56, 60, 89, 0.25);
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 1.5rem;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem;
  text-align: center;
}

.phone-screen img {
  width: 72px;
  height: 72px;
  border-radius: 22%;
}

.phone-screen strong {
  color: var(--primary-dark);
  font-size: 1.125rem;
}

.phone-screen span {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

section {
  padding: 4rem 0;
}

section h2 {
  text-align: center;
  color: var(--primary-dark);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.5rem;
}

.section-lead {
  text-align: center;
  color: var(--text-secondary);
  max-width: 40rem;
  margin: 0 auto 2.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: white;
  border: 1px solid rgba(92, 107, 192, 0.12);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(56, 60, 89, 0.06);
}

.feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.feature-icon.green { background: rgba(76, 175, 80, 0.15); }
.feature-icon.yellow { background: rgba(255, 193, 7, 0.2); }
.feature-icon.orange { background: rgba(255, 152, 0, 0.15); }
.feature-icon.indigo { background: rgba(92, 107, 192, 0.15); }

.feature-card h3 {
  margin: 0 0 0.5rem;
  color: var(--primary-dark);
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.step {
  text-align: center;
  padding: 1.5rem;
}

.step-num {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.step h3 {
  margin: 0 0 0.5rem;
  color: var(--primary-dark);
}

.step p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.screenshots {
  background: linear-gradient(180deg, #fafbff 0%, white 100%);
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.screenshot-placeholder {
  aspect-ratio: 9 / 19;
  border-radius: 1.25rem;
  border: 2px dashed rgba(92, 107, 192, 0.3);
  background: linear-gradient(180deg, var(--gradient-start), white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
  text-align: center;
  padding: 1rem;
}

.screenshot-img {
  width: 100%;
  aspect-ratio: 9 / 19;
  object-fit: cover;
  border-radius: 1.25rem;
  border: 1px solid rgba(92, 107, 192, 0.15);
  box-shadow: 0 12px 30px rgba(30, 41, 59, 0.12);
  background: white;
}

.download-section {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  text-align: center;
}

.download-section .cta-row {
  justify-content: center;
}

.legal-page {
  padding: 3rem 0 4rem;
}

.legal-page h1 {
  color: var(--primary-dark);
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.legal-meta {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.legal-page h2 {
  text-align: left;
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

.legal-page p,
.legal-page li {
  color: var(--text);
}

.legal-page ul {
  padding-left: 1.25rem;
}

.faq-item {
  border-bottom: 1px solid rgba(92, 107, 192, 0.12);
  padding: 1.25rem 0;
}

.faq-item h3 {
  margin: 0 0 0.5rem;
  color: var(--primary-dark);
  font-size: 1.05rem;
}

.faq-item p {
  margin: 0;
  color: var(--text-secondary);
}

.contact-box {
  margin-top: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  border-radius: 1rem;
}

.site-footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 2rem 0;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.site-footer a {
  color: white;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
