/* Reveal — website styles
   Dusty Blue palette, matches the in-app default theme.
   Calm, lots of whitespace, no marquee energy. */

:root {
  --bg: #e8eef2;
  --surface: #f3f6f8;
  --surface-alt: #dde6ec;
  --tile: #ffffff;
  --text: #1c2530;
  --text-muted: #4a5564;
  --text-dim: #6a7484;
  --accent: #3d5b78;
  --accent-soft: rgba(61, 91, 120, 0.12);
  --border: #c8d4dc;
  --shadow: rgba(20, 35, 55, 0.06);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, .serif {
  font-family: "Lora", Georgia, "Iowan Old Style", serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); line-height: 1.1; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.25rem); line-height: 1.2; margin-bottom: 0.5rem; }
h3 { font-size: 1.25rem; line-height: 1.3; }

p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

p.lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-muted);
}

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

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 720px;
}

section {
  padding: 80px 0;
}

/* Top nav */
.nav {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

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

.nav-brand-text {
  font-family: "Lora", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 500;
}

.nav-links {
  display: flex;
  gap: 22px;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--text-muted);
}

/* Hero */
.hero {
  padding: 80px 0 60px;
}

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

@media (min-width: 880px) {
  .hero-grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 80px;
  }
}

.hero-tagline {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 18px;
}

.hero h1 {
  margin-bottom: 20px;
}

.hero p.lead {
  margin-bottom: 32px;
  max-width: 560px;
}

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

.hero-image img {
  width: 100%;
  max-width: 360px;
  border-radius: 22px;
  box-shadow:
    0 1px 2px var(--shadow),
    0 24px 40px rgba(20, 35, 55, 0.12);
}

/* App Store badge */
.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 12px;
  background: var(--text);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

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

.btn-appstore svg {
  flex-shrink: 0;
}

.btn-appstore-sub {
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.8;
  display: block;
}

.btn-appstore-main {
  font-size: 1.05rem;
  display: block;
}

.btn-soft {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--border);
  margin-left: 14px;
}

.btn-soft:hover {
  background: var(--surface-alt);
  text-decoration: none;
}

/* Features grid */
.features {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features-intro {
  text-align: center;
  max-width: 540px;
  margin: 0 auto 56px;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--tile);
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 28px;
}

.feature-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 10px;
}

.feature-card h3 {
  margin-bottom: 8px;
  color: var(--text);
}

.feature-card p {
  font-size: 0.95rem;
  margin: 0;
}

/* Privacy callout */
.privacy-callout {
  text-align: center;
}

.privacy-callout h2 {
  margin-bottom: 16px;
}

.privacy-callout p {
  max-width: 540px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.privacy-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 28px;
}

/* Maker section */
.maker {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.maker h2 {
  margin-bottom: 16px;
}

.maker p {
  max-width: 520px;
  margin: 0 auto;
}

/* Final CTA */
.final-cta {
  text-align: center;
}

.final-cta h2 {
  margin-bottom: 20px;
}

.final-cta p {
  max-width: 480px;
  margin: 0 auto 32px;
}

/* Footer */
footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.85);
  padding: 56px 0 40px;
  font-size: 0.9rem;
}

footer .container {
  display: grid;
  gap: 24px;
}

@media (min-width: 720px) {
  footer .container {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }
}

footer a {
  color: rgba(255, 255, 255, 0.95);
}

footer .footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

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

footer .footer-brand-name {
  font-family: "Lora", Georgia, serif;
  font-size: 1.1rem;
  color: #ffffff;
}

footer .copyright {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8rem;
  margin-top: 8px;
}

footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: flex-start;
}

@media (min-width: 720px) {
  footer .footer-links {
    justify-content: flex-end;
  }
}

/* Document pages (privacy, terms, support) */
.doc-page {
  padding: 64px 0 96px;
}

.doc-page h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 8px;
}

.doc-meta {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 40px;
}

.doc-page h2 {
  margin-top: 36px;
  margin-bottom: 12px;
  font-size: 1.5rem;
}

.doc-page p {
  margin-bottom: 16px;
}

.doc-page ul {
  margin: 0 0 18px 0;
  padding-left: 22px;
  color: var(--text-muted);
}

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

.doc-page strong {
  color: var(--text);
}

/* Support page */
.support-actions {
  display: grid;
  gap: 16px;
  margin: 32px 0 48px;
}

.support-card {
  background: var(--tile);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.support-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.support-card-body h3 {
  margin-bottom: 4px;
}

.support-card-body p {
  margin: 0;
  font-size: 0.95rem;
}

.support-card-body a {
  font-weight: 500;
}
