/* Qafila web — the public face of a link someone was handed.
   Dark like the app, one accent (the launcher maroon), and sized for a phone
   first: nearly every visit is someone tapping a shared link, not browsing. */

:root {
  --bg: #0b0c0e;
  --surface: #141619;
  --surface-2: #1c1f23;
  --line: #262a30;
  --ink: #f5f5f4;
  --muted: #9ca3af;
  --dim: #6b7280;
  --brand: #c1272d;
  --brand-deep: #a71c20;
  --radius: 20px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  /* A soft maroon bloom behind everything, so the page reads as brand rather
     than as a generic dark template. */
  background-image:
    radial-gradient(900px 420px at 50% -160px, rgba(193, 39, 45, 0.22), transparent 70%),
    radial-gradient(600px 300px at 100% 100%, rgba(193, 39, 45, 0.07), transparent 70%);
  background-repeat: no-repeat;
}

main {
  flex: 1;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 28px 20px 40px;
}

/* ── Brand line ─────────────────────────────────────────────────────────── */

.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.2px;
  margin-bottom: 26px;
}

/* The launcher icon itself — the white mark ON its maroon tile, which is what
   people recognise from their home screen. The bare white glyph read as a logo
   with its background missing; the plain red square before it read as a
   placeholder (user reports 2026-09-08). */
.mark img {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  object-fit: cover;
  display: block;
  flex: none;
}

/* ── The invite card ────────────────────────────────────────────────────── */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Cover + the icon that overlaps its bottom edge, mirroring the app's header. */
.cover {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--brand-deep), #6d1114);
  overflow: hidden;
}

.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Keeps the name legible over a bright photo. */
.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05), rgba(11, 12, 14, 0.85));
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(11, 12, 14, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #fff;
}

.body { padding: 0 20px 22px; }

.avatar-row {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-top: -34px;
  position: relative;
  z-index: 2;
}

.avatar {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  flex: none;
  background: var(--brand-deep);
  border: 3px solid var(--surface);
  object-fit: cover;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 26px;
  overflow: hidden;
}

.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

h1 {
  margin: 18px 0 4px;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.5px;
  font-weight: 800;
}

.handle {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
}

.meta .pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 12.5px;
}

.desc {
  margin: 16px 0 0;
  color: #d4d4d8;
  font-size: 15px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* ── Actions ────────────────────────────────────────────────────────────── */

.actions {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 18px;
  border-radius: 14px;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(0.99); }

.btn.secondary {
  background: var(--surface-2);
  color: var(--ink);
  border-color: var(--line);
}

.note {
  margin: 16px 0 0;
  color: var(--dim);
  font-size: 12.5px;
  line-height: 1.5;
  text-align: center;
}

/* ── Landing page extras ────────────────────────────────────────────────── */

.hero h1 { font-size: 34px; margin-top: 8px; }

.lede {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  margin: 10px 0 24px;
}

.features {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.features li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 14.5px;
  line-height: 1.45;
}

.features b { display: block; font-size: 14.5px; margin-bottom: 2px; }
.features span { color: var(--muted); font-size: 13.5px; }

.glyph {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(193, 39, 45, 0.14);
  font-size: 17px;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--line);
  padding: 22px 20px 30px;
  color: var(--dim);
  font-size: 12.5px;
}

footer .inner {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
}

footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); }

@media (max-width: 380px) {
  h1 { font-size: 23px; }
  .avatar { width: 62px; height: 62px; border-radius: 19px; }
}
