/* Marketing site is locked to the app's dark palette on all devices,
   regardless of the visitor's system light/dark setting. */
:root {
  color-scheme: dark;
  --bg: #1F1B17;
  --elevated: #2A2521;
  --text: #EDE5D5;
  --heading: #EDE5D5;
  --muted: #9C8F7A;
  --accent: #E08560;
  --accent-soft: #4A332A;
  --border: #3A332B;
  --border-soft: #2F2823;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Newsreader', serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: var(--accent-soft);
  color: var(--text);
}

a { color: var(--accent); }

a:focus-visible,
.button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 24px 64px;
}

/* Hero */
.hero {
  text-align: center;
  padding: clamp(64px, 16vh, 140px) 0 clamp(48px, 9vh, 90px);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  margin: 0 auto 28px;
  animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.55; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.rise {
  opacity: 0;
  animation: fadeUp 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .rise { opacity: 1; }
}

h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(44px, 11vw, 64px);
  font-weight: 400;
  color: var(--heading);
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0 0 20px;
}

.tagline {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: clamp(18px, 4.5vw, 22px);
  color: var(--muted);
  margin: 0 auto 48px;
  max-width: 400px;
  line-height: 1.45;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  font-family: 'Newsreader', serif;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 16px 40px;
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(63, 48, 32, 0.14);
  transition: transform 0.12s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.12s ease, background 0.18s;
}

.button:hover { background: var(--text); }

.button:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: 0 1px 3px rgba(63, 48, 32, 0.12);
}

.appstore-badge-wrap {
  display: inline-block;
  line-height: 0;
}

.appstore-badge {
  height: 52px;
  width: auto;
}

.availability {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--muted);
  margin-top: 16px;
}

/* Screenshot gallery */
.shots {
  text-align: center;
}

.shots-row {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 14px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.shots-row::-webkit-scrollbar {
  display: none;
}

@media (min-width: 640px) {
  /* Break the gallery out wider than the text column so 4 phones fit at a good size */
  .shots {
    width: 760px;
    max-width: 92vw;
    margin-left: 50%;
    transform: translateX(-50%);
  }
  .shots-row {
    justify-content: center;
    overflow-x: visible;
  }
}

.phone {
  flex: 0 0 auto;
  width: 168px;
  scroll-snap-align: center;
  border-radius: 26px;
  border: 1px solid var(--border);
  background: var(--elevated);
  padding: 5px;
  box-shadow: 0 20px 40px -18px rgba(63, 48, 32, 0.28);
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
}

hr {
  border: none;
  border-top: 1px solid var(--border-soft);
  margin: 0 0 56px;
}

/* Sections */
.label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}

section { margin-bottom: 64px; }
section p { margin: 0 0 16px; }

h2 {
  font-family: 'Newsreader', serif;
  font-size: 17px;
  font-weight: 700;
  font-style: italic;
  color: var(--heading);
  margin: 32px 0 8px;
}

.page-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 7vw, 36px);
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--heading);
  margin: 48px 0 8px;
}

.updated {
  font-style: italic;
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 40px;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-soft);
  padding-top: 32px;
  text-align: center;
}

footer nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

footer a {
  color: var(--muted);
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border);
}

.crisis {
  font-style: italic;
  font-size: 14px;
  color: var(--muted);
  max-width: 420px;
  margin: 0 auto 16px;
}

.copyright {
  font-size: 13px;
  color: var(--muted);
}

.back {
  display: inline-block;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  margin-top: 8px;
}
