:root {
  --accent: #8B2635;
  --accent-dark: #6f1e2a;
  --gold: #C9A84C;
  --bg: #F5F0E8;
  --surface: #FBF7F0;
  --border: #E2D8C8;
  --text: #1A1208;
  --text-muted: #6B5D4F;
  --shadow: 0 14px 40px rgba(26, 18, 8, 0.10);
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 240, 232, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  color: var(--accent);
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav a {
  margin-left: 22px;
  color: var(--text-muted);
  font-size: 15px;
}
.nav a:hover { color: var(--accent); }

/* Hero */
.hero {
  text-align: center;
  padding: 72px 0 56px;
}
.hero .app-icon {
  width: 112px;
  height: 112px;
  border-radius: 26px;
  box-shadow: var(--shadow);
  margin-bottom: 26px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 6vw, 54px);
  line-height: 1.08;
  margin: 0 0 16px;
  letter-spacing: -0.5px;
}
.hero p.tagline {
  font-size: clamp(17px, 2.4vw, 21px);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 32px;
}
.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 22px rgba(139, 38, 53, 0.28);
}
.btn-primary:hover { background: var(--accent-dark); text-decoration: none; }
.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-ghost:hover { background: rgba(139, 38, 53, 0.06); text-decoration: none; }
.hero .store-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

/* Section */
.section { padding: 56px 0; }
.section h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 36px);
  text-align: center;
  margin: 0 0 12px;
}
.section .lead {
  text-align: center;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 44px;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 22px;
}
.feature .emoji {
  font-size: 30px;
  display: block;
  margin-bottom: 12px;
}
.feature h3 {
  font-family: var(--serif);
  font-size: 19px;
  margin: 0 0 8px;
}
.feature p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}
.site-footer a { margin: 0 10px; color: var(--text-muted); }
.site-footer a:hover { color: var(--accent); }
.site-footer .copyright { margin-top: 14px; opacity: 0.8; }

/* Legal pages */
.legal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  margin: 40px 0;
  box-shadow: var(--shadow);
}
.legal h1 {
  font-family: var(--serif);
  font-size: 32px;
  margin: 0 0 6px;
}
.legal .updated { color: var(--text-muted); font-size: 14px; margin-bottom: 28px; }
.legal h2 {
  font-family: var(--serif);
  font-size: 21px;
  margin: 30px 0 10px;
}
.legal p, .legal li { color: var(--text); }
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 15px;
}
.legal th, .legal td {
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--border);
  vertical-align: top;
}
.legal th { background: rgba(139, 38, 53, 0.05); }
.back-link { display: inline-block; margin: 8px 0 0; font-weight: 600; }

@media (max-width: 760px) {
  .features { grid-template-columns: 1fr; }
  .legal { padding: 26px; }
  .nav a { margin-left: 16px; }
}
