/* chaaq.app: shared styles for the home, download and invite pages.
   Colours are the app's own (ChaaqColor in the iOS app). */
:root {
  --accent: #07BDAB;          /* the app icon's teal: fills and highlights */
  --accent-2: #06BED7;        /* gradient end, as in the icon */
  --accent-strong: #007A6E;   /* teal text and buttons with white text */
  --accent-tint: #E6F7F3;     /* soft teal wash */
  --ink: #0F172A;             /* titles and body text */
  --ink-2: #475569;           /* secondary text */
  --ink-3: #5B6B82;           /* captions */
  --bg: #FFFFFF;
  --bg-soft: #F8FAFC;
  --bg-grouped: #F1F5F9;
  --line: #E2E8F0;
  --green: #0C7F3A;
  --green-tint: #E5F9E8;
  --red: #CA3134;
  --whatsapp: #008069;
  --radius: 20px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: light;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
em { font-style: italic; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 200; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ── Nav ─────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img.icon { width: 30px; height: 30px; }
.brand img.word { height: 22px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-2); transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.btn-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff !important;
  padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: 15px;
  text-decoration: none; transition: transform .15s, opacity .15s;
}
.btn-pill:hover { opacity: .88; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; border-radius: 12px; cursor: pointer; align-items: center; justify-content: center; }
.menu-btn span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu { display: none; border-top: 1px solid var(--line); background: #fff; padding: 8px 24px 20px; }
.mobile-menu a { display: block; padding: 12px 0; font-size: 17px; font-weight: 500; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--bg-grouped); }
.mobile-menu a:last-child { border-bottom: 0; }
.menu-open .mobile-menu { display: block; }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
}

/* ── Type ────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-strong);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(7, 189, 171, .18); }
h1, h2, h3 { letter-spacing: -0.025em; line-height: 1.1; }
h1 { font-size: clamp(40px, 6.2vw, 68px); font-weight: 800; letter-spacing: -0.04em; }
h2 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 800; }
h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); line-height: 1.55; }
.grad { background: linear-gradient(120deg, var(--accent-strong), var(--accent) 55%, var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section { padding: 104px 0; }
.section.soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head h2 { margin: 12px 0 14px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
@media (max-width: 700px) { .section { padding: 72px 0; } .section-head { margin-bottom: 36px; } }

/* ── App Store badge ─────────────────── */
.store {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000; color: #fff; text-decoration: none;
  padding: 10px 20px 10px 16px; border-radius: 14px; min-height: 56px;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 10px 24px -12px rgba(15, 23, 42, .55);
}
.store:hover { transform: translateY(-1px); }
.store svg { width: 26px; height: 26px; fill: #fff; flex: none; }
.store .t { display: flex; flex-direction: column; line-height: 1.05; }
.store .t small { font-size: 11px; font-weight: 500; letter-spacing: .01em; }
.store .t b { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.soon {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 14px; min-height: 56px;
  border: 1px solid var(--line); background: #fff;
  font-size: 15px; font-weight: 600; color: var(--ink-2);
}
.soon svg { width: 20px; height: 20px; fill: #3DDC84; }
.soon i { font-style: normal; font-weight: 500; color: var(--ink-3); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* ── Phone frame ─────────────────────── */
.phone {
  width: 280px;
  border-radius: 46px; padding: 9px;
  background: #0B1220;
  box-shadow: 0 40px 80px -30px rgba(15, 23, 42, .45), 0 0 0 1px rgba(15, 23, 42, .1), inset 0 0 0 2px #1E293B;
}
.phone img { width: 100%; height: auto; border-radius: 37px; background: #fff; }

/* ── Cards ───────────────────────────── */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.tile { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-tint); color: var(--accent-strong); flex: none; }
.tile svg { width: 24px; height: 24px; }
.checks { list-style: none; display: grid; gap: 8px; margin-top: 18px; }
.checks li { position: relative; padding-left: 28px; font-size: 15.5px; color: var(--ink-2); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23007A6E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ── Footer ──────────────────────────── */
.footer { border-top: 1px solid var(--line); padding: 44px 0 36px; font-size: 14px; color: var(--ink-3); }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { text-decoration: none; color: var(--ink-2); font-weight: 500; }
.footer-links a:hover { color: var(--ink); }
.social { display: flex; gap: 10px; }
.social a { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-2); transition: color .15s, border-color .15s; }
.social a:hover { color: var(--accent-strong); border-color: var(--accent); }
.social svg { width: 18px; height: 18px; }
.footer-bottom { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* ── Reveal on scroll (only when JS runs) ─ */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .store, .btn-pill { transition: none; }
}
