:root {
  --bg: #FAF7F2;
  --surface: #FFFFFF;
  --surface-alt: #F3EEE6;
  --line: #E7E0D4;
  --ink: #211C16;
  --ink-soft: #8A8172;
  --ink-faint: #B9AF9D;
  --teal: #0E6E68;
  --teal-soft: #DCEEEC;
  --coral: #D9653B;
  --coral-soft: #FBE3D6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
}

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

a:hover {
  text-decoration: underline;
}

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

/* Header / nav */
header.site {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.brand span {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
}

nav.site a {
  color: var(--ink-soft);
  font-size: 15px;
  margin-left: 24px;
}

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

/* Hero */
.hero {
  padding: 72px 0 56px;
  text-align: center;
}

.hero h1 {
  font-size: 40px;
  margin: 0 0 16px;
}

.hero p.tagline {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto 28px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

/* Deliberately not styled to resemble Apple's own "Download on the App Store" badge — that's a
   trademarked asset with its own strict brand guidelines. Swap this whole element for the real
   one once the app is live (see the comment above it in index.html). */
.store-badge-placeholder {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 10px;
  margin-top: 8px;
}

/* Feature grid */
.features {
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.features h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 40px;
}

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

.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}

.feature .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--coral-soft);
  color: var(--coral);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
}

.feature h3 {
  font-size: 17px;
  margin: 0 0 8px;
}

.feature p {
  color: var(--ink-soft);
  font-size: 15px;
  margin: 0;
}

/* Screenshots */
.screenshots {
  padding: 48px 0 64px;
  border-top: 1px solid var(--line);
  background: var(--surface-alt);
}

.screenshots h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 12px;
}

.screenshots p.hint {
  text-align: center;
  color: var(--ink-faint);
  font-size: 14px;
  margin-bottom: 36px;
}

.shot-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.shot-frame {
  flex: 0 0 auto;
  width: 200px;
  aspect-ratio: 9 / 19.5;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 8px;
  box-shadow: 0 8px 24px rgba(33, 28, 22, 0.08);
}

.shot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}

.shot-frame.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  font-size: 13px;
  text-align: center;
  padding: 20px;
}

/* Content pages (Privacy / Support / Terms) */
.content {
  padding: 48px 0 80px;
}

.content h1 {
  font-size: 32px;
  margin-bottom: 4px;
}

.content .updated {
  color: var(--ink-faint);
  font-size: 14px;
  margin-bottom: 36px;
}

.content h2 {
  font-size: 20px;
  margin-top: 36px;
  margin-bottom: 12px;
}

.content p, .content li {
  color: var(--ink-soft);
  font-size: 16px;
}

.content ul {
  padding-left: 20px;
}

.content .note {
  background: var(--coral-soft);
  border: 1px solid var(--coral);
  border-radius: 12px;
  padding: 16px 20px;
  color: var(--ink);
  font-size: 14px;
  margin-bottom: 32px;
}

.content .note strong {
  color: var(--coral);
}

/* Support cards */
.support-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
}

.support-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.support-card p {
  margin: 0;
}

.button {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
}

.button:hover {
  background: #0a5a55;
  text-decoration: none;
}

/* Footer */
footer.site {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}

footer.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-faint);
}

footer.site a {
  color: var(--ink-soft);
  margin-left: 18px;
}

footer.site .wrap > div:first-child a {
  margin-left: 0;
}

@media (max-width: 600px) {
  .hero h1 { font-size: 30px; }
  .hero p.tagline { font-size: 17px; }
  header.site .wrap, footer.site .wrap { flex-direction: column; align-items: flex-start; }
  nav.site { display: flex; flex-wrap: wrap; }
  nav.site a { margin-left: 0; margin-right: 18px; }
}
