/* Toge — shared site styles
   Palette matches the app: ink / clay / sage / cream / sand / line */

:root {
  --ink: #2A2118;
  --clay: #C4622D;
  --clay-light: #E8825A;
  --sage: #5B6B52;
  --cream: #F7F2E8;
  --sand: #EDE4D3;
  --line: #D8CBB3;
  --teal: #4A7C6F;
  --gold: #B8923B;
  --obsidian: #1C1510;
  --max-width: 760px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  padding: 28px 0 20px;
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; }
.brand img { height: 26px; width: auto; display: block; }
.nav-links { display: flex; gap: 22px; font-size: 14px; font-weight: 600; }
.nav-links a { color: var(--sage); }

/* Hero */
.hero {
  padding: 72px 0 56px;
  text-align: center;
}
.hero .tagline {
  color: var(--sage);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: 40px;
  line-height: 1.2;
  margin: 0 0 18px;
  color: var(--ink);
}
.hero p.lede {
  font-size: 18px;
  color: var(--ink);
  opacity: 0.8;
  max-width: 540px;
  margin: 0 auto 34px;
}

.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none !important;
  border: 1.5px solid transparent;
}
.btn-primary { background: var(--clay); color: var(--cream); }
.btn-primary:hover { background: var(--clay-light); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--clay); color: var(--clay); }
.cta-hint { font-size: 13px; color: var(--sage); }

/* Store badges — custom, matches site design (no official artwork used) */
.store-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border-radius: 13px;
  background: var(--obsidian);
  color: var(--cream);
  text-decoration: none !important;
  border: 1.5px solid var(--obsidian);
  transition: background 0.15s, border-color 0.15s;
}
.store-badge:hover { background: #000; border-color: #000; }
.store-badge .glyph {
  width: 22px; height: 22px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.store-badge .glyph svg { width: 100%; height: 100%; }
.store-badge .badge-text { text-align: start; line-height: 1.25; }
.store-badge .badge-text .small { font-size: 10px; opacity: 0.75; display: block; }
.store-badge .badge-text .big { font-size: 15px; font-weight: 700; display: block; }

/* Footer download row */
.footer-download {
  padding: 44px 0 40px;
  text-align: center;
  border-top: 1px solid var(--line);
}
.footer-download .section-title { margin-bottom: 16px; }
.footer-download .footer-smart-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sage);
}
.footer-download .footer-smart-link:hover { color: var(--clay); }

/* Sections */
section { padding: 56px 0; }
section.alt { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
  text-align: center;
  margin-bottom: 10px;
}
.section-heading {
  font-size: 28px;
  text-align: center;
  margin: 0 0 40px;
  color: var(--ink);
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
}
section.alt .feature-card { background: var(--sand); }
.feature-card .icon {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--obsidian);
  color: var(--clay);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  margin-bottom: 14px;
}
.feature-card h3 { font-size: 16px; margin: 0 0 8px; }
.feature-card p { font-size: 14px; color: var(--ink); opacity: 0.75; margin: 0; }

/* Language showcase */
.lang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.lang-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
}
.lang-card .native {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.lang-card .eng {
  font-size: 12px;
  font-weight: 700;
  color: var(--clay);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.lang-card p { font-size: 13px; color: var(--sage); margin: 0; line-height: 1.5; }

/* Screenshots */
.screens-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 8px 0 20px;
  scrollbar-width: thin;
}
.screen-slot {
  flex: 0 0 auto;
  display: block;
  width: 220px;
  /* Matches the screenshots' real 5267×11401 (~9/19.5) ratio, so cover frames
     them at a uniform height with no meaningful crop or vertical stretch. */
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: top;
  background: var(--obsidian);
  border-radius: 26px;
  border: 6px solid var(--ink);
}

/* Story teaser */
.story-teaser {
  background: var(--obsidian);
  border-radius: 24px;
  padding: 44px 36px;
  text-align: center;
  color: var(--cream);
}
.story-teaser p { font-size: 16px; opacity: 0.85; max-width: 480px; margin: 0 auto 22px; }
.story-teaser .btn-outline { border-color: rgba(247,242,232,0.3); color: var(--cream); }
.story-teaser .btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* Footer */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  background: var(--cream);
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
footer .foot-links { display: flex; gap: 20px; font-size: 13px; font-weight: 600; }
footer .foot-links a { color: var(--sage); }
footer .copyright { font-size: 13px; color: var(--sage); opacity: 0.8; }

/* Story page specific */
.story-header {
  padding: 60px 0 20px;
  text-align: center;
}
.story-header .eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--sage); margin-bottom: 12px;
}
.story-header h1 { font-size: 36px; margin: 0 0 8px; }
.story-body {
  max-width: 620px;
  margin: 0 auto;
  padding: 20px 24px 80px;
  font-size: 18px;
  color: var(--ink);
}
.story-body p { margin: 0 0 26px; }
.story-body p.drop::first-letter {
  font-size: 56px;
  font-weight: 800;
  color: var(--clay);
  float: left;
  line-height: 0.8;
  padding-right: 10px;
  padding-top: 6px;
}
.story-body .signoff {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--sage);
  font-style: italic;
}

/* Legal pages */
.legal-header { padding: 56px 0 24px; text-align: center; }
.legal-header h1 { font-size: 32px; margin: 0 0 8px; }
.legal-header .updated { font-size: 13px; color: var(--sage); }
.legal-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 20px 24px 80px;
  font-size: 15.5px;
}
.legal-body h2 {
  font-size: 19px;
  margin: 36px 0 12px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body p { margin: 0 0 14px; opacity: 0.9; }
.legal-body ul { margin: 0 0 14px; padding-inline-start: 22px; }
.legal-body li { margin-bottom: 6px; opacity: 0.9; }
.legal-body .callout {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 20px;
  font-size: 15px;
}

@media (max-width: 640px) {
  .hero h1 { font-size: 30px; }
  .hero p.lede { font-size: 16px; }
  .section-heading { font-size: 24px; }
  .story-header h1 { font-size: 28px; }
  .story-body { font-size: 16.5px; }
  .legal-header h1 { font-size: 26px; }
}
