:root {
  --color-bg: #ffffff;
  --color-surface: #f5f5f7;
  --color-text: #1d1d1f;
  --color-text-secondary: #6e6e73;
  --color-accent: #eb445a;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-width: 960px;
}

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

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

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

a:hover {
  text-decoration: underline;
}

/* ── Layout ── */

.site-header {
  border-bottom: 1px solid #e5e5e5;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header .logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-header .logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--color-text);
  display: flex;
  align-items: center;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 99;
}

.nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.site-nav {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 260px;
  background: var(--color-bg);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  gap: 0.25rem;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 100;
}

.site-nav.is-open {
  transform: translateX(0);
}

.nav-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
  align-self: flex-end;
  padding: 0.25rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.nav-close svg {
  width: 22px;
  height: 22px;
}

.site-nav a {
  font-size: 1.1rem;
  color: var(--color-text);
  padding: 0.6rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.site-nav a:last-child {
  border-bottom: none;
}

.site-footer {
  padding: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}

.site-footer a {
  color: var(--color-text-secondary);
  margin: 0 0.5rem;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 2rem;
}

/* ── Hero ── */

.hero {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  padding: 5rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-content {
  text-align: center;
  flex-shrink: 0;
}

.hero .app-icon-wrapper {
  width: 150px;
  height: 150px;
  margin: 0 auto 2rem;
  border-radius: 22.5%;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.hero .app-icon {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.hero p {
  font-size: 1.2rem;
  color: var(--color-text-secondary);
  max-width: 540px;
  margin: 0 auto 2.5rem;
}

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

.hero-image img {
  max-width: 400px;
  width: 100%;
  border-radius: 16px;
  display: block;
}

@media (max-width: 700px) {
  .hero {
    flex-direction: column;
    gap: 2.5rem;
    padding: 3rem 1rem;
  }

  .hero-image img {
    max-width: 280px;
    margin: 0 auto;
  }
}

/* ── Features ── */

.features {
  background: var(--color-surface);
  padding: 5rem 2rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.feature {
  text-align: center;
}

.feature svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-accent);
  margin-bottom: 1rem;
}

.feature h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.feature p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ── Screenshots ── */

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

.screenshots h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 2.5rem;
}

.screenshot-row {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.screenshot-row img {
  height: 480px;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  background: var(--color-surface);
}

/* ── Legal pages ── */

.legal-page h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.legal-page .updated {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-bottom: 3rem;
}

.legal-page h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 2.5rem 0 0.75rem;
}

.legal-page h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 1.5rem 0 0.5rem;
}

.legal-page p,
.legal-page li {
  color: var(--color-text-secondary);
  margin-bottom: 0.75rem;
}

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

/* ── Contact page ── */

.contact-page {
  max-width: 540px;
}

.contact-page h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.contact-intro {
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field label {
  font-size: 0.9rem;
  font-weight: 500;
}

.form-field input,
.form-field textarea {
  font-family: var(--font);
  font-size: 1rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid #d0d0d5;
  border-radius: 8px;
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color 0.15s;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-field textarea {
  resize: vertical;
}

.submit-btn {
  align-self: flex-start;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.65rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}

.submit-btn:hover { opacity: 0.85; }
.submit-btn:disabled { opacity: 0.5; cursor: default; }

.form-status {
  font-size: 0.9rem;
  min-height: 1.2em;
}

.form-status.success { color: #2e7d32; }
.form-status.error   { color: var(--color-accent); }
