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

:root {
  --orange: #E8702A;
  --cream: #FDFBF8;
  --ink: #1D1D1F;
  --muted: #86868B;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

::selection {
  background: rgba(232,112,42,0.15);
  color: var(--ink);
}

html { height: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--cream);
  color: var(--ink);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ─────────────────────────────────────
   SHARED NAV (subpages)
   ───────────────────────────────────── */
.nav {
  padding: 20px 32px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav a {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--orange);
  transition: opacity 0.15s;
}
.nav a:hover { opacity: 0.7; }
.nav .sep { color: var(--muted); font-size: 13px; }

/* ─────────────────────────────────────
   HERO — SPLIT LAYOUT (index)
   ───────────────────────────────────── */
.hero {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 100dvh;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 10%;
  transform: translate(0, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(232,112,42,0.07) 0%, transparent 60%);
  pointer-events: none;
}

/* ── LEFT: TEXT COLUMN ── */
.hero-text {
  padding: 80px 64px 80px 10%;
  max-width: 640px;
  margin-left: auto;
}

.hero-icon {
  width: 72px;
  height: 72px;
  border-radius: 17px;
  margin-bottom: 28px;
  box-shadow:
    0 2px 8px rgba(0,0,0,0.04),
    0 10px 28px rgba(232,112,42,0.20);
  overflow: hidden;
  opacity: 0;
  animation: fadeUp 0.9s 0.05s var(--ease-out-expo) forwards;
}
.hero-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.app-name {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.9s 0.12s var(--ease-out-expo) forwards;
  color: var(--muted);
}
.app-name .brand { color: var(--orange); }

h1 {
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: var(--ink);
  opacity: 0;
  animation: fadeUp 0.9s 0.2s var(--ease-out-expo) forwards;
}

.subtitle {
  font-size: clamp(16px, 1.4vw, 19px);
  font-weight: 300;
  color: var(--muted);
  margin-top: 20px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  max-width: 380px;
  opacity: 0;
  animation: fadeUp 0.9s 0.32s var(--ease-out-expo) forwards;
}

/* ── STORE BADGES ── */
.dl-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 36px;
  opacity: 0;
  animation: fadeUp 0.9s 0.44s var(--ease-out-expo) forwards;
}

.dl-btn {
  display: block;
  text-decoration: none;
  transition: transform 0.2s ease-out, opacity 0.2s;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}
.dl-btn:hover { transform: translateY(-1px); opacity: 0.85; }
.dl-btn:active { transform: translateY(0) scale(0.97); }
.dl-btn:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 10px; }
.dl-btn svg { height: 44px; width: auto; display: block; }

/* ── RIGHT: MOCKUP COLUMN ── */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  overflow: hidden;
  opacity: 0;
  animation: fadeIn 1.2s 0.3s var(--ease-out-expo) forwards;
}
.hero-visual img {
  width: auto;
  height: 82%;
  max-height: 720px;
  object-fit: contain;
  filter: drop-shadow(0 24px 64px rgba(0,0,0,0.12));
  transform: translateX(4%);
}

/* ─────────────────────────────────────
   SUBPAGE LAYOUT (privacy, terms, contact)
   ───────────────────────────────────── */
.page {
  flex: 1;
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 32px 80px;
}

.page h1 {
  font-size: 32px;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
  opacity: 1;
  animation: none;
}

.page .last-updated {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 40px;
}

.page h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 36px 0 12px;
  color: var(--ink);
}

.page p,
.page li {
  font-size: 15px;
  line-height: 1.7;
  color: #444;
  font-weight: 300;
}

.page p + p { margin-top: 12px; }

.page ul {
  margin: 8px 0 8px 20px;
}

.page li { margin-bottom: 6px; }

.page a {
  color: var(--orange);
  text-decoration: none;
}
.page a:hover { text-decoration: underline; }

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.contact-form label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 10px;
  background: white;
  color: var(--ink);
  transition: border-color 0.15s;
  outline: none;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--orange);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form button {
  align-self: flex-start;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 32px;
  background: var(--ink);
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s ease-out, opacity 0.15s;
}
.contact-form button:hover { transform: translateY(-1px); opacity: 0.9; }
.contact-form button:active { transform: translateY(0) scale(0.98); }

/* ─────────────────────────────────────
   ANIMATIONS
   ───────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

/* ─────────────────────────────────────
   FOOTER
   ───────────────────────────────────── */
footer {
  text-align: center;
  padding: 20px 24px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.01em;
}
footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
footer a:hover { color: var(--orange); }

/* Index-only: fixed footer */
.footer-fixed {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, var(--cream) 40%);
  pointer-events: none;
}
.footer-fixed a,
.footer-fixed p { pointer-events: auto; }

/* ─────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────── */
@media (max-width: 900px) {
  html, body { height: auto; }
  body { overflow-y: auto; }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 0;
  }
  .hero::before {
    top: auto; bottom: 0; right: 50%;
    transform: translateX(50%);
  }
  .hero-text {
    padding: 72px 28px 0;
    margin: 0 auto;
    max-width: 480px;
    text-align: center;
  }
  .hero-icon { margin: 0 auto 20px; width: 64px; height: 64px; border-radius: 15px; }
  .app-name { font-size: 12px; margin-bottom: 14px; }
  h1 { font-size: 34px; line-height: 1.1; }
  .subtitle { font-size: 16px; margin: 14px auto 0; max-width: 300px; }
  .dl-buttons { justify-content: center; margin-top: 28px; gap: 10px; }
  .dl-btn svg { height: 40px; }

  .hero-visual {
    padding: 40px 20px 80px;
    height: auto;
    justify-content: center;
  }
  .hero-visual img {
    width: 88%; max-width: 400px; height: auto;
    transform: none;
    filter: drop-shadow(0 16px 48px rgba(0,0,0,0.10));
  }

  .footer-fixed {
    position: relative;
    background: none;
    pointer-events: auto;
  }

  .page { padding: 16px 20px 60px; }
  .page h1 { font-size: 28px; }
}

@media (max-width: 400px) {
  .hero-text { padding: 56px 20px 0; }
  h1 { font-size: 30px; }
  .subtitle { font-size: 15px; }
}
