/* Aletheia website. Tokens, type and shapes mirror the app's `Ui` object (SettingsUi.kt). */

@font-face { font-family: 'EB Garamond'; src: url('fonts/eb_garamond_regular.ttf') format('truetype'); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: 'EB Garamond'; src: url('fonts/eb_garamond_italic.ttf') format('truetype'); font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: 'Lato'; src: url('fonts/lato_light.ttf') format('truetype'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Lato'; src: url('fonts/lato_regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }

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

:root {
  --bg:            #0A0A0B;
  --surface:       #121214;
  --outline:       #26262A;
  --outline-light: #383840;
  --primary:       #C9A876;
  --primary-soft:  #8A7A5C;
  --text:          #ECEAE4;
  --text-dim:      #95918A;
  --text-label:    #5C5852;
  --radius-card:   10px;
  --nav-h:         56px;
  --serif:         'EB Garamond', Garamond, Georgia, serif;
  --sans:          'Lato', 'Helvetica Neue', Arial, sans-serif;
}

html { scroll-padding-top: var(--nav-h); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

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

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--text); }

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--outline);
}

.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h);
}

.nav-brand {
  font-family: var(--serif); font-size: 20px; color: var(--text);
  letter-spacing: 4px;
}
.nav-brand:hover { color: var(--text); }

.nav-links { display: flex; gap: 4px; list-style: none; }
.nav-links a {
  display: block; padding: 8px 12px;
  font-size: 13px; color: var(--text-dim);
}
.nav-links a:hover { color: var(--primary); }

.nav-hamburger {
  display: none; background: none; border: none; cursor: pointer;
  padding: 12px;
}
.nav-hamburger span {
  display: block; width: 20px; height: 1px;
  background: var(--text-dim); margin: 5px 0;
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 120px 24px 60px;
}

.hero-content { max-width: 640px; }

.mark {
  width: 136px; height: 136px; margin: -20px auto;
  overflow: hidden; position: relative;
}
.mark img {
  position: absolute; width: 422px; max-width: none;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
}

/* Sway, not a full spin: the glyph never shows its mirrored back. */
@keyframes mark-sway {
  from { transform: perspective(520px) rotateY(-28deg) rotateX(4deg); }
  to   { transform: perspective(520px) rotateY(28deg) rotateX(-4deg); }
}
@media (prefers-reduced-motion: no-preference) {
  .mark { animation: mark-sway 12s ease-in-out infinite alternate; }
}

.wordmark {
  font-family: var(--serif); font-size: 32px;
  letter-spacing: 4px; color: var(--text);
  margin: 20px 0 32px;
}

.hero-eyebrow {
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2rem, 6vw, 3rem); line-height: 1.12;
  color: var(--text);
  margin-bottom: 20px;
}
.hero h1 .highlight { font-style: italic; color: var(--primary); }

.hero p {
  font-size: 14px; color: var(--text-dim);
  max-width: 480px; margin: 0 auto 32px;
  line-height: 1.7;
}

.hero-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center;
  padding: 10px 12px;
  font-family: var(--serif); font-size: 20px;
  background: none; border: none; cursor: pointer;
}
.btn-primary { color: var(--primary); }
.btn-primary:hover { color: var(--text); }
.btn-outline { color: var(--text-dim); font-style: italic; }
.btn-outline:hover { color: var(--primary); }

.sprite { position: absolute; }

svg.i {
  width: 1em; height: 1em;
  fill: none; stroke: currentColor; stroke-width: 1.25;
  stroke-linecap: round; stroke-linejoin: round;
}
svg.i text { fill: currentColor; stroke: none; font-family: var(--serif); }
.feature-icon svg { display: block; }

/* ── Sections ───────────────────────────────────────────────── */
section { padding: 72px 24px; }
.section-inner { max-width: 1200px; margin: 0 auto; }

.section-title {
  font-family: var(--serif); font-weight: 400;
  font-size: 28px; color: var(--text);
  margin-bottom: 24px;
}

.section-lede {
  font-size: 14px; line-height: 1.75; color: var(--text-dim);
  max-width: 640px;
  margin: -8px 0 40px;
}
.section-lede em { font-family: var(--serif); font-size: 16px; color: var(--text); }

/* ── Principles ─────────────────────────────────────────────── */
.commitments {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.commitment { border-top: 1px solid var(--outline); padding-top: 20px; }

.commitment-num {
  display: block;
  font-family: var(--serif); font-style: italic; font-size: 17px;
  color: var(--primary-soft);
  margin-bottom: 8px;
}

.commitment h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: 20px; color: var(--text);
  margin-bottom: 8px;
}

.commitment p { font-size: 13px; line-height: 1.7; color: var(--text-dim); }
.commitment p strong { font-weight: 400; color: var(--text); }

/* ── Features ───────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius-card);
  padding: 22px 18px;
  transition: border-color 0.2s;
}
.feature-card:hover { border-color: var(--outline-light); }

.feature-icon { font-size: 24px; color: var(--primary-soft); margin-bottom: 16px; }

.feature-card h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: 20px; color: var(--text);
  margin-bottom: 4px;
}

.feature-card p { font-size: 13px; line-height: 1.6; color: var(--text-dim); }

code { font-size: 12px; color: var(--text); }

/* ── Download ───────────────────────────────────────────────── */
.cta { text-align: center; }

.cta-lede { font-size: 13px; color: var(--text-dim); margin: -8px 0 24px; }

.store-badges { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.store-badge {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 22px;
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius-card);
  color: var(--text);
  transition: border-color 0.2s;
}
.store-badge:hover { border-color: var(--outline-light); color: var(--text); }

.store-badge-icon { font-size: 22px; color: var(--primary-soft); display: flex; }
.store-badge-text { text-align: left; }
.store-badge-text small { display: block; font-size: 12px; color: var(--text-dim); }
.store-badge-text strong { font-family: var(--serif); font-size: 20px; font-weight: 400; }

.cta-note { margin-top: 20px; font-size: 12px; color: var(--text-label); }

/* ── Footer ─────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--outline); padding: 20px 24px; }

.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: var(--text-label);
}
.footer-bottom a { color: var(--text-dim); }
.footer-bottom a:hover { color: var(--primary); }

/* ── Legal pages ────────────────────────────────────────────── */
.legal { padding: 112px 24px 80px; min-height: 100vh; }
.legal-inner { max-width: 640px; margin: 0 auto; }

.legal h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: 28px; color: var(--text);
  margin-bottom: 4px;
}

.legal .last-updated { font-size: 12px; color: var(--text-label); margin-bottom: 32px; }

.legal h2 {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 17px; color: var(--primary-soft);
  margin: 32px 0 6px;
}

.legal p, .legal li {
  font-size: 14px; font-weight: 400; line-height: 1.7; color: var(--text-dim);
  margin-bottom: 12px;
}
.legal strong { font-weight: 400; color: var(--text); }

.legal ul { padding-left: 20px; margin-bottom: 12px; }
.legal li { margin-bottom: 6px; }

.legal a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--outline-light); }
.legal a:hover { text-decoration-color: currentColor; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 960px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .commitments { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: block; }

  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--outline);
    padding: 8px 12px 16px; gap: 0;
  }

  .hero { min-height: auto; padding: 100px 24px 48px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .features-grid { grid-template-columns: 1fr; }
  .store-badge { width: 100%; justify-content: center; }
}
