/* ── Teoriva website — shared styles ─────────────────────────────────────── */

@font-face {
  font-family: 'Manrope';
  src: url('assets/fonts/Manrope-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('assets/fonts/Manrope-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('assets/fonts/Manrope-800.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}

:root {
  color-scheme: light;
  --violet: #6B4CE8;
  --violet-light: #8B6DF2;
  --violet-dark: #4A2FB8;
  --grad: linear-gradient(135deg, #8B6DF2 0%, #6B4CE8 45%, #4A2FB8 100%);

  --bg: #f4f2fb;
  --surface: #ffffff;
  --surface-2: #ece7f8;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --border: #e4def2;
  --card-shadow: 0 8px 30px rgba(74, 47, 184, 0.10);
  --max: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ── Wordmark ─────────────────────────────────────────────────────────── */
.wordmark {
  font-weight: 800;
  letter-spacing: 0.5px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--violet);
}

/* ── Header ───────────────────────────────────────────────────────────── */
header.site {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(12px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
}
header.site .bar {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
header.site .brand { display: flex; align-items: center; gap: 10px; }
header.site .brand img { width: 30px; height: 30px; border-radius: 8px; }
header.site .brand .wordmark { font-size: 22px; }
header.site nav { display: flex; gap: 24px; }
header.site nav a { color: var(--muted); font-weight: 600; font-size: 15px; }
header.site nav a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 560px) { header.site nav { display: none; } }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { padding: 72px 0 40px; text-align: center; }
.hero h1 {
  font-weight: 800;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.5px;
  max-width: 720px; margin: 0 auto 18px;
}
.hero h1 .accent {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.lead {
  font-size: clamp(16px, 2.4vw, 20px);
  color: var(--muted);
  max-width: 560px; margin: 0 auto 32px;
}

/* Store badge (Coming soon placeholder) */
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 14px;
  background: var(--text); color: var(--bg);
  font-weight: 700; font-size: 15px;
}
.store-badge:hover { text-decoration: none; opacity: 0.9; }
.store-badge small { display: block; font-size: 11px; font-weight: 600; opacity: 0.7; line-height: 1; }
.store-badge .pico { font-size: 22px; line-height: 1; }

/* ── Phone frame ──────────────────────────────────────────────────────── */
.phone {
  border-radius: 34px;
  border: 8px solid #14121c;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  background: #14121c;
  display: block;
}
.phone img { display: block; width: 100%; height: auto; }

.hero-shot { max-width: 300px; margin: 44px auto 0; }

/* ── Features ─────────────────────────────────────────────────────────── */
section.features { padding: 64px 0; }
.section-title { text-align: center; margin-bottom: 44px; }
.section-title h2 { font-size: clamp(26px, 4vw, 34px); font-weight: 800; letter-spacing: -0.3px; }
.section-title p { color: var(--muted); margin-top: 8px; }

.feature-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 820px) { .feature-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 24px;
}
.feature .ico {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--grad); color: #fff;
  font-size: 26px; margin-bottom: 16px;
}
.feature h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; }

/* ── Screenshot strip ─────────────────────────────────────────────────── */
section.shots { padding: 24px 0 72px; }
.shot-row {
  display: flex; gap: 24px; justify-content: center; flex-wrap: wrap;
}
.shot-row .phone { width: 240px; }

/* ── CTA band ─────────────────────────────────────────────────────────── */
section.cta {
  background: var(--grad); color: #fff;
  padding: 64px 0; text-align: center;
}
section.cta h2 { font-size: clamp(24px, 4vw, 32px); font-weight: 800; margin-bottom: 10px; }
section.cta p { opacity: 0.92; margin-bottom: 26px; }
section.cta .store-badge { background: #fff; color: var(--violet-dark); }

/* ── Footer ───────────────────────────────────────────────────────────── */
footer.site {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  padding: 48px 0 40px;
  font-size: 14px;
}
footer.site .cols { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
footer.site .brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
footer.site .brand img { width: 28px; height: 28px; border-radius: 8px; }
footer.site .brand .wordmark { font-size: 20px; }
footer.site .co { color: var(--muted); line-height: 1.7; }
footer.site .links { display: flex; flex-direction: column; gap: 10px; }
footer.site .links a { color: var(--muted); font-weight: 600; }
footer.site .links a:hover { color: var(--text); text-decoration: none; }
footer.site .legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); }

/* ── Legal / content pages ────────────────────────────────────────────── */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 24px 80px; }
.doc .back { display: inline-block; margin-bottom: 24px; color: var(--muted); font-weight: 600; }
.doc h1 { font-size: clamp(28px, 5vw, 38px); font-weight: 800; letter-spacing: -0.4px; margin-bottom: 6px; }
.doc .updated { color: var(--muted); margin-bottom: 32px; font-size: 15px; }
.doc h2 { font-size: 22px; font-weight: 800; margin: 34px 0 12px; letter-spacing: -0.2px; }
.doc h3 { font-size: 18px; font-weight: 700; margin: 24px 0 8px; }
.doc h4 { font-size: 16px; font-weight: 700; margin: 20px 0 6px; }
.doc p, .doc li { color: var(--text); margin-bottom: 12px; }
.doc ul { padding-left: 22px; margin-bottom: 16px; }
.doc li { margin-bottom: 6px; }
.doc strong { font-weight: 700; }
.doc a { font-weight: 600; word-break: break-word; }
.doc hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }
.doc .contact-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 20px 24px; margin-top: 12px;
}
