/* ============================================================
   SI TEC — shared site styles
   Parent site for My Namaz, My Amaan and My Anbiya: privacy and
   support pages for all three, plus a plain landing page.

   Palette: warm charcoal ink + terracotta-gold — related to, but
   deliberately distinct from, the individual apps' own colours
   (My Namaz is deep green/gold), since this is the parent brand,
   not another app skin.

   Fonts are self-hosted (see @font-face below) — no Google Fonts
   request, no analytics, no tracking of any kind on this site.
   ============================================================ */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/fraunces-variable.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/inter-variable.woff2') format('woff2');
}

:root {
  --bg: #16130f;
  --panel: #1e1912;
  --panel-2: #251f16;
  --line: rgba(212, 146, 74, 0.18);
  --accent: #d4924a;
  --accent-bright: #e8ac66;
  --accent-dim: rgba(212, 146, 74, 0.32);
  --cream: #f5efe3;
  --body-text: #cdc2ac;
  --muted: #a79a85;
  --muted-2: #7a6e5b;
  --radius: 20px;
  --radius-sm: 12px;
  --maxw: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

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

/* Faint fixed texture — an echo of the star mark, not a repeat of any
   single app's signature motif. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(212, 146, 74, 0.06), transparent 60%);
}

h1,
h2,
h3,
h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  color: var(--cream);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 {
  font-weight: 500;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--accent-bright);
  text-decoration-color: var(--accent-dim);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-bright);
}

img,
svg {
  display: block;
  max-width: 100%;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: '';
  width: 14px;
  height: 1px;
  background: var(--accent);
}

/* ---------- nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(22, 19, 15, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: 'Fraunces', serif;
  font-size: 18px;
  letter-spacing: 0.03em;
  color: var(--cream);
}

.brand .mark {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.brand b {
  font-weight: 600;
  color: var(--accent-bright);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-bright);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--accent);
  color: #1b1206;
}

.btn-gold:hover {
  background: var(--accent-bright);
  color: #1b1206;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--cream);
}

.btn-ghost:hover {
  border-color: var(--accent-dim);
}

.btn.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.btn small {
  font-weight: 500;
  opacity: 0.75;
  font-size: 12px;
}

/* ---------- section rhythm ---------- */
section {
  padding: 88px 0;
  position: relative;
  z-index: 1;
}

section.tight {
  padding: 56px 0;
}

.section-head {
  max-width: 640px;
  margin: 0 0 44px;
}

.divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
  margin: 0;
}

/* ---------- hero (landing page) ---------- */
.hero {
  padding: 88px 0 32px;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  max-width: 15ch;
  margin: 0.4em 0 0.4em;
}

.hero .lede {
  font-size: 17.5px;
  max-width: 56ch;
  margin-bottom: 8px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 28px;
}

/* ---------- app cards (landing page) ---------- */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

@media (max-width: 860px) {
  .apps-grid {
    grid-template-columns: 1fr;
  }
}

.app-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.app-card .app-status {
  display: inline-flex;
  align-self: flex-start;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.app-status.is-live {
  background: rgba(212, 146, 74, 0.16);
  color: var(--accent-bright);
}

.app-status.is-pending {
  background: rgba(167, 154, 133, 0.14);
  color: var(--muted);
}

.app-card h3 {
  font-size: 21px;
  margin-bottom: 6px;
}

.app-card p {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0 0 20px;
  flex-grow: 1;
}

.app-card .app-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.app-card .app-links a {
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--cream);
}

.app-card .app-links a:hover {
  border-color: var(--accent-dim);
  color: var(--accent-bright);
}

.app-card .app-links a.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* ---------- about band ---------- */
.band {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 44px;
}

.band h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  margin-bottom: 0.5em;
}

.band p {
  max-width: 62ch;
  margin: 0 0 1em;
}

.band p:last-child {
  margin-bottom: 0;
}

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 36px;
}

footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

footer .fbrand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', serif;
  color: var(--muted);
  font-size: 15px;
}

footer .fbrand .mark {
  width: 18px;
  height: 18px;
  opacity: 0.75;
}

footer .flinks {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13.5px;
  flex-wrap: wrap;
}

footer .flinks a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
}

footer .flinks a:hover {
  color: var(--accent-bright);
}

footer .fnote {
  font-size: 12.5px;
  color: var(--muted-2);
  margin-top: 16px;
}

/* ---------- generic content page (privacy / support) ---------- */
.page-hero {
  padding: 64px 0 16px;
}

.page-hero h1 {
  font-size: clamp(30px, 4.2vw, 42px);
  max-width: 20ch;
}

.page-hero .lede {
  font-size: 16px;
  max-width: 58ch;
  color: var(--muted);
}

.app-crumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 18px;
}

.app-crumb:hover {
  color: var(--accent-bright);
}

.prose {
  max-width: 680px;
}

.prose h2 {
  font-size: 22px;
  margin-top: 1.7em;
}

.prose h3 {
  font-size: 17px;
  margin-top: 1.4em;
  color: var(--accent-bright);
}

.prose p {
  font-size: 16px;
}

.prose p.muted {
  color: var(--muted);
}

.prose ul {
  padding-left: 22px;
  font-size: 16px;
}

.prose li {
  margin-bottom: 8px;
}

.prose strong {
  color: var(--cream);
}

.summary-line {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 28px 0 36px;
  font-size: 16.5px;
  color: var(--cream);
}

.summary-line strong {
  color: var(--accent-bright);
}

/* ---------- FAQ (support pages) ---------- */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

.faq-item:first-child {
  padding-top: 0;
}

.faq-item h3 {
  font-size: 16px;
  margin: 0 0 8px;
  color: var(--accent-bright);
}

.faq-item p {
  font-size: 15px;
  margin: 0;
}

/* ---------- responsive ---------- */
@media (max-width: 640px) {
  .nav-links {
    gap: 16px;
  }
  .nav-links span.nav-label {
    display: none;
  }
  .band {
    padding: 30px 24px;
  }
}

/* focus visibility everywhere */
a:focus-visible,
.btn:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
