/* Anamna People landing page. No fonts, scripts or trackers are loaded from
   anywhere: the system font stack and inline SVG keep it fast and private. */

:root {
  --bg: #f6f8f8;
  --surface: #ffffff;
  --surface-2: #eef4f5;
  --text: #0f1b1f;
  --muted: #4d5d62;
  --line: rgba(15, 27, 31, 0.1);
  --brand: #0b6f8a;
  --brand-strong: #075a71;
  --brand-soft: rgba(11, 134, 166, 0.1);
  --on-brand: #ffffff;
  --shadow: 0 1px 2px rgba(15, 27, 31, 0.06), 0 12px 32px rgba(15, 27, 31, 0.08);
  --radius: 20px;
  --max: 1080px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1113;
    --surface: #131c1f;
    --surface-2: #18252a;
    --text: #eef4f5;
    --muted: #a3b3b8;
    --line: rgba(238, 244, 245, 0.12);
    --brand: #5cc4dd;
    --brand-strong: #86d6e9;
    --brand-soft: rgba(92, 196, 221, 0.12);
    --on-brand: #06232c;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px rgba(0, 0, 0, 0.35);
  }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--surface); padding: 8px 14px; }

.wrap { width: min(100% - 40px, var(--max)); margin-inline: auto; }

/* ---------- Header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand svg { width: 32px; height: 32px; flex: none; }
.lang {
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.lang:hover { color: var(--text); }

/* ---------- Hero ---------- */

.hero {
  display: grid;
  gap: 40px;
  padding: 24px 0 56px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.05fr 1fr; padding: 48px 0 80px; }
}

.eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

h1 {
  font-size: clamp(36px, 7vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
}
h1 .accent { color: var(--brand); display: block; }

.lead {
  font-size: clamp(18px, 2.4vw, 21px);
  color: var(--muted);
  max-width: 34ch;
  margin: 0 0 28px;
}

.cta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
}
.button svg { width: 20px; height: 20px; flex: none; }
.button.primary { background: var(--brand); color: var(--on-brand); box-shadow: var(--shadow); }
.button.primary:hover { background: var(--brand-strong); color: var(--on-brand); }
.button.ghost { color: var(--text); border-color: var(--line); background: var(--surface); }
.button.ghost:hover { border-color: var(--brand); color: var(--text); }
.button.soon {
  color: var(--muted);
  border: 1px dashed var(--line);
  background: transparent;
  cursor: default;
}
.button.soon small {
  font-weight: 500;
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 8px;
}
.cta-note { width: 100%; font-size: 14px; color: var(--muted); margin: 6px 0 0; }

/* ---------- Phone mockups ---------- */

.phones {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 18px;
  min-height: 520px;
}
.phone {
  width: 250px;
  flex: none;
  border-radius: 38px;
  padding: 10px;
  background: #0f1b1f;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.phone .screen {
  height: 100%;
  min-height: 500px;
  border-radius: 29px;
  overflow: hidden;
  background: #efeff4;
  color: #000;
  font-size: 13px;
  line-height: 1.3;
}
.phone.back { transform: translateY(36px) rotate(-3deg); }
.phone.front { transform: rotate(2deg); position: relative; z-index: 1; }
@media (max-width: 640px) {
  .phones { min-height: 0; }
  .phone.back { display: none; }
  .phone.front { transform: none; }
}

.tg-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 8px;
  font-weight: 600;
  font-size: 14px;
}
.tg-pill {
  font-size: 11px;
  color: #3a3a3c;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  padding: 3px 9px;
}
.tg-seg {
  display: flex;
  margin: 2px 12px 10px;
  padding: 2px;
  border-radius: 8px;
  background: rgba(118, 118, 128, 0.14);
  font-size: 12px;
  font-weight: 500;
}
.tg-seg span { flex: 1; text-align: center; padding: 4px 0; border-radius: 6px; }
.tg-seg .on { background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); }
.tg-search {
  margin: 0 12px 10px;
  padding: 6px 10px;
  border-radius: 9px;
  background: rgba(118, 118, 128, 0.12);
  color: #8e8e93;
  font-size: 13px;
}
.tg-group { margin: 0 10px 14px; background: #fff; border-radius: 10px; overflow: hidden; }
.tg-caption { margin: 0 22px 5px; font-size: 10.5px; text-transform: uppercase; color: #6d6d72; letter-spacing: 0.02em; }
.tg-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; position: relative; }
.tg-row + .tg-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 54px;
  right: 0;
  border-top: 0.5px solid rgba(60, 60, 67, 0.2);
}
.tg-row.plain + .tg-row.plain::before { left: 12px; }
.tg-row b { display: block; font-weight: 500; font-size: 13.5px; }
.tg-row small { display: block; color: #8e8e93; font-size: 11.5px; }
.tg-row .grow { flex: 1; min-width: 0; }
.tg-badge { font-size: 10.5px; color: #8e8e93; }
.tg-badge.hot { color: #fff; background: #2481cc; border-radius: 9px; padding: 1px 7px; font-weight: 500; }
.tg-link { color: #2481cc; }

.av {
  --c: #0b86a6;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 72%, #fff), var(--c));
}
.av.big { width: 72px; height: 72px; font-size: 26px; margin: 4px auto 8px; }
.c-cyan { --c: #0b86a6; }
.c-teal { --c: #0f8a8a; }
.c-sea { --c: #12876f; }
.c-azure { --c: #1f7fc4; }
.c-blue { --c: #2f73d9; }
.c-steel { --c: #3f7a94; }

.tg-profile { text-align: center; padding: 6px 12px 12px; }
.tg-profile b { display: block; font-size: 17px; font-weight: 600; }
.tg-profile small { color: #8e8e93; font-size: 12px; }
.tg-actions { display: flex; gap: 6px; margin: 0 10px 14px; }
.tg-actions span {
  flex: 1;
  background: #fff;
  border-radius: 9px;
  padding: 7px 0 6px;
  text-align: center;
  color: #2481cc;
  font-size: 10.5px;
}
.tg-actions svg { display: block; width: 16px; height: 16px; margin: 0 auto 2px; }
.tg-note { padding: 9px 12px; font-size: 12.5px; }
.tg-note ul { margin: 0; padding-left: 16px; }
.tg-fab {
  display: block;
  width: max-content;
  margin: 8px auto 14px;
  background: #2481cc;
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  padding: 7px 14px;
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}

/* Mockups show Telegram's own dark theme when the page is dark. */
@media (prefers-color-scheme: dark) {
  .phone .screen { background: #000; color: #fff; }
  .tg-group, .tg-actions span, .tg-seg .on { background: #1c1c1e; }
  .tg-seg { background: rgba(118, 118, 128, 0.24); }
  .tg-pill { color: #d1d1d6; background: rgba(255, 255, 255, 0.12); }
  .tg-row + .tg-row::before { border-color: rgba(84, 84, 88, 0.6); }
  .tg-link, .tg-actions span { color: #3e88f7; }
  .tg-badge.hot, .tg-fab { background: #3e88f7; }
}

/* ---------- Sections ---------- */

section { padding: 56px 0; }
.section-title {
  font-size: clamp(28px, 4.5vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.section-lead { color: var(--muted); max-width: 60ch; margin: 0 0 32px; font-size: 18px; }

/* Where your data is: deliberately prominent. */
.data {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  padding: clamp(24px, 5vw, 48px);
  box-shadow: var(--shadow);
}
.data-grid { display: grid; gap: 16px; margin: 8px 0 24px; }
@media (min-width: 720px) { .data-grid { grid-template-columns: 1fr 1fr; } }
.data-card {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 22px;
}
.data-card h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 19px; }
.data-card p { margin: 0; color: var(--muted); }
.icon-chip {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  flex: none;
}
.icon-chip svg { width: 20px; height: 20px; }
.promise {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 0;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--brand-soft);
  font-weight: 600;
}
.promise svg { width: 24px; height: 24px; flex: none; color: var(--brand); margin-top: 1px; }
.promise span { font-weight: 400; color: var(--muted); display: block; margin-top: 2px; }

.features { display: grid; gap: 18px; }
@media (min-width: 860px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.feature h3 { margin: 14px 0 8px; font-size: 20px; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--muted); }
.feature ul { margin: 12px 0 0; padding-left: 18px; color: var(--muted); }
.feature li + li { margin-top: 4px; }
.feature code {
  font: 14px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--surface-2);
  padding: 1px 6px;
  border-radius: 6px;
}

.file {
  margin: 0;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: #0f1b1f;
  color: #d8e6e9;
  font: 14px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-x: auto;
}
.file .k { color: #7fd3e6; }
.file .h { color: #ffd38a; }
.file .l { color: #9fe0b8; }
.split { display: grid; gap: 24px; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: 48px; } }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  color: var(--muted);
  font-size: 15px;
}
.footer-grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 { font-size: 15px; color: var(--text); margin: 0 0 6px; }
.site-footer p { margin: 0 0 4px; }

/* ---------- Privacy page ---------- */

.doc { max-width: 720px; padding: 24px 0 64px; }
.doc h1 { font-size: clamp(32px, 6vw, 44px); }
.doc h2 { font-size: 22px; margin: 36px 0 10px; letter-spacing: -0.01em; }
.doc p, .doc li { color: var(--muted); }
.doc strong { color: var(--text); }
.doc .updated { font-size: 15px; }

@media (prefers-reduced-motion: no-preference) {
  .button, .lang { transition: background-color 0.15s, border-color 0.15s, color 0.15s; }
}

/* Long names in the mockups end with an ellipsis instead of wrapping. */
.tg-row .grow b, .tg-row .grow small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-badge { white-space: nowrap; }
.data-card code {
  font: 14px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--surface);
  padding: 1px 6px;
  border-radius: 6px;
}
@media (max-width: 640px) {
  .cta .button { flex: 1 1 auto; justify-content: center; }
  .cta .button.primary { flex-basis: 100%; }
}
