/* ============================================================
   COGRAFIUM — Hand-Painted Atlas Design System
   Colors: #FAF7F2 parchment · #7A5C47 earth · #2B2520 ink
   Fonts: Georgia (serif headings) + system sans-serif (body)
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Primary */
  --primary:       #7A5C47;
  --primary-light: #A08672;
  --primary-dark:  #5C4433;

  /* Parchment surfaces */
  --bg:         #FAF7F2;
  --surface:    #FFFDFA;
  --surface-2:  #F5F0E8;

  /* Text */
  --text:       #2B2520;
  --text-2:     #6B5D52;
  --text-3:     #9B8B7D;

  /* Terrain accents */
  --grass:    #8FA884;
  --forest:   #6B7C62;
  --mountain: #9B8578;
  --water:    #88B3C7;
  --desert:   #D4C4A8;
  --gold:     #D4B574;

  /* Structure */
  --border:   #E5DED3;
  --border-2: #D4C8B8;
  --shadow:   rgba(44, 37, 32, 0.08);
  --shadow-md:rgba(44, 37, 32, 0.13);

  /* Spacing */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a  { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  line-height: 1.3;
}

.serif { font-family: Georgia, "Times New Roman", serif; }

/* ---------- Layout helpers ---------- */
.container {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: 96px; }
.section-sm { padding-block: 64px; }

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 24px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.nav__logo-icon {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 8px;
  display: grid;
  place-items: center;
}
.nav__links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav__links a {
  font-size: 14px;
  color: var(--text-2);
  transition: color 120ms;
}
.nav__links a:hover { color: var(--primary); text-decoration: none; }
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--primary);
  color: #fff !important;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 600;
  transition: background 120ms;
  text-decoration: none !important;
}
.nav__cta:hover { background: var(--primary-dark); }

/* ---------- HERO ---------- */
.hero {
  padding-block-start: 120px;
  padding-block-end: 80px;
  overflow: hidden;
  position: relative;
}

/* Subtle parchment texture via radial gradients */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 600px at 70% 40%, rgba(136, 179, 199, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 500px 400px at 20% 80%, rgba(143, 168, 132, 0.10) 0%, transparent 60%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}
.hero__eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 20px;
  color: var(--text);
}

.hero h1 em {
  font-style: normal;
  color: var(--primary);
}

.hero__subtitle {
  font-size: 18px;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 440px;
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: var(--r-lg);
  font-size: 15px;
  font-weight: 600;
  transition: transform 120ms, box-shadow 120ms;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
}
.btn-store:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow-md);
  text-decoration: none;
}
.btn-store--primary {
  background: var(--text);
  color: var(--bg);
}
.btn-store--outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-2);
}
.btn-store--outline:hover { background: var(--surface-2); }

.btn-store__icon { font-size: 20px; line-height: 1; }
.btn-store__label { display: flex; flex-direction: column; gap: 0; text-align: left; }
.btn-store__pre { font-size: 10px; font-weight: 400; opacity: 0.7; line-height: 1.2; }
.btn-store__name { font-size: 15px; font-weight: 700; line-height: 1.2; }

/* Hero visual / phone mockup */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 240px;
  aspect-ratio: 9 / 19;
  background: var(--surface);
  border-radius: 36px;
  border: 1.5px solid var(--border-2);
  box-shadow:
    0 32px 80px rgba(44, 37, 32, 0.14),
    0 8px 24px rgba(44, 37, 32, 0.08),
    inset 0 0 0 6px var(--bg);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-frame__notch {
  width: 80px;
  height: 20px;
  background: var(--bg);
  border-radius: 0 0 12px 12px;
  margin-inline: auto;
  margin-block-start: 8px;
  flex-shrink: 0;
}

.phone-frame__screen {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

/* Mini UI inside the phone mockup */
.mock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 4px 0;
}
.mock-title { font-family: Georgia, serif; font-size: 11px; font-weight: 700; color: var(--text); }
.mock-badge {
  font-size: 8px;
  font-weight: 600;
  background: var(--gold);
  color: var(--primary-dark);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Map preview inside phone */
.mock-map {
  background: var(--surface-2);
  border-radius: 8px;
  border: 1px solid var(--border);
  height: 90px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.mock-map svg { width: 100%; height: 100%; }

/* Mini cards inside phone */
.mock-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 7px 8px;
}
.mock-card__tag {
  font-size: 7px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 2px;
}
.mock-card__text { font-size: 8px; color: var(--text); line-height: 1.4; }
.mock-card--highlight { background: #FFF8E8; border-color: var(--gold); }

/* Floating decorative chips around phone */
.hero__chip {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  box-shadow: 0 4px 12px var(--shadow);
  white-space: nowrap;
}
.hero__chip-icon { font-size: 16px; }
.hero__chip--1 { top: 10%; right: -20px; animation: float 4s ease-in-out infinite; }
.hero__chip--2 { bottom: 20%; left: -28px; animation: float 4s ease-in-out 1.4s infinite; }
.hero__chip--3 { top: 55%; right: -24px; animation: float 4s ease-in-out 0.7s infinite; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

/* Hero compass decoration */
.hero__compass {
  position: absolute;
  top: -20px;
  right: -60px;
  width: 200px;
  height: 200px;
  opacity: 0.06;
  pointer-events: none;
}

/* ---------- FEATURES ---------- */
.features { background: var(--surface); border-block: 1px solid var(--border); }

.section__header { text-align: center; margin-bottom: 56px; }
.section__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.section__title {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 700;
  margin-bottom: 16px;
}
.section__subtitle {
  font-size: 17px;
  color: var(--text-2);
  max-width: 540px;
  margin-inline: auto;
  line-height: 1.7;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px 24px;
  transition: box-shadow 200ms, transform 200ms, border-color 200ms;
}
.feature-card:hover {
  box-shadow: 0 8px 28px var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--border-2);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 16px;
  border: 1px solid transparent;
}
.icon--grass     { background: rgba(143,168,132,0.15); border-color: rgba(143,168,132,0.4); }
.icon--water     { background: rgba(136,179,199,0.15); border-color: rgba(136,179,199,0.4); }
.icon--mountain  { background: rgba(155,133,120,0.15); border-color: rgba(155,133,120,0.4); }
.icon--gold      { background: rgba(212,181,116,0.15); border-color: rgba(212,181,116,0.4); }
.icon--desert    { background: rgba(212,196,168,0.25); border-color: rgba(212,196,168,0.6); }
.icon--forest    { background: rgba(107,124,98,0.15);  border-color: rgba(107,124,98,0.4);  }

.feature-card__title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
  font-family: Georgia, serif;
}
.feature-card__desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
}

/* ---------- HOW IT WORKS ---------- */
.how { position: relative; }
.how::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 700px 500px at 30% 50%, rgba(212,181,116,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}

/* Connector line between steps */
.steps::before {
  content: '';
  position: absolute;
  top: 30px;
  left: calc(33.33% - 0px);
  width: calc(33.33%);
  height: 1px;
  background: linear-gradient(to right, var(--border-2), transparent);
  pointer-events: none;
}
.steps::after {
  content: '';
  position: absolute;
  top: 30px;
  left: 50%;
  width: calc(16.67%);
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-2));
  pointer-events: none;
}

.step { text-align: center; }
.step__number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--border-2);
  display: grid;
  place-items: center;
  margin-inline: auto;
  margin-bottom: 20px;
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  box-shadow: 0 4px 16px var(--shadow);
  position: relative;
  z-index: 1;
}
.step__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  font-family: Georgia, serif;
}
.step__desc { font-size: 14px; color: var(--text-2); line-height: 1.65; }

/* ---------- TOPICS BAND ---------- */
.topics {
  background: var(--surface-2);
  border-block: 1px solid var(--border);
  padding-block: 56px;
}
.topics__label {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 28px;
}
.topics__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  cursor: default;
  transition: background 150ms, border-color 150ms;
}
.pill:hover { background: var(--bg); border-color: var(--primary-light); }
.pill__dot { width: 8px; height: 8px; border-radius: 50%; }

/* ---------- TESTIMONIAL / QUOTE ---------- */
.quote-section { background: var(--surface); border-block: 1px solid var(--border); }
.quote-block {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}
.quote-text {
  font-family: Georgia, serif;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 400;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 24px;
  position: relative;
}
.quote-text::before {
  content: '\201C';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 80px;
  line-height: 1;
  color: var(--desert);
  font-family: Georgia, serif;
}
.quote-meta { font-size: 14px; color: var(--text-3); }
.quote-stars { color: var(--gold); font-size: 18px; margin-bottom: 8px; letter-spacing: 2px; }

/* ---------- STATS ---------- */
.stats { }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.stat-item {
  background: var(--surface);
  padding: 32px 24px;
  text-align: center;
}
.stat-item__number {
  font-family: Georgia, serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-item__label { font-size: 13px; color: var(--text-2); font-weight: 500; }

/* ---------- CTA DOWNLOAD ---------- */
.cta-download {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  position: relative;
  overflow: hidden;
  color: #fff;
}
.cta-download::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='1' fill='rgba(255,255,255,0.06)'/%3E%3C/svg%3E") repeat;
  pointer-events: none;
}
.cta-download .container { position: relative; z-index: 1; text-align: center; }
.cta-download h2 {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}
.cta-download p {
  font-size: 17px;
  color: rgba(255,255,255,0.8);
  max-width: 480px;
  margin-inline: auto;
  margin-bottom: 36px;
  line-height: 1.7;
}
.cta-download .hero__actions { justify-content: center; }
.cta-download .btn-store--primary {
  background: #fff;
  color: var(--primary-dark);
}
.cta-download .btn-store--outline {
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}
.cta-download .btn-store--outline:hover { background: rgba(255,255,255,0.1); }

/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding-block: 40px;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer__brand {
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.footer__links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.footer__links a {
  font-size: 14px;
  color: var(--text-2);
  transition: color 120ms;
}
.footer__links a:hover { color: var(--primary); text-decoration: none; }
.footer__copy {
  font-size: 13px;
  color: var(--text-3);
  text-align: right;
}

/* ---------- INNER PAGE (privacy / terms) ---------- */
.inner-hero {
  padding-block: 100px 48px;
  border-bottom: 1px solid var(--border);
}
.inner-hero h1 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 8px; }
.inner-hero .date { font-size: 14px; color: var(--text-3); }

.prose {
  max-width: 720px;
  padding-block: 48px 80px;
}
.prose h2 {
  font-size: 22px;
  margin-block: 36px 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.prose h3 { font-size: 17px; margin-block: 24px 8px; font-family: Georgia, serif; }
.prose p  { margin-bottom: 16px; color: var(--text-2); line-height: 1.75; }
.prose ul, .prose ol { padding-left: 20px; margin-bottom: 16px; color: var(--text-2); line-height: 1.75; }
.prose li { margin-bottom: 6px; }
.prose a  { color: var(--primary); }
.prose a:hover { text-decoration: underline; }
.prose strong { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__visual { order: -1; }
  .hero__chip--2 { display: none; }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps::before, .steps::after { display: none; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__copy { text-align: center; }
}

@media (max-width: 600px) {
  .section { padding-block: 64px; }
  .nav__links { display: none; }
  .features__grid { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 32px; }
  .hero__chip--1, .hero__chip--3 { display: none; }
  .phone-frame { width: 200px; }
}
