/* Salah Together: Slate & Indigo, the same tokens as the app (docs/project-plan.md › Theme) */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("fonts/inter-700.woff2") format("woff2"); }

:root {
  --bg: #F1F3F7;
  --surface: #FFFFFF;
  --text: #2B3440;
  --muted: #5B6573;
  --divider: #E3E6EC;
  --primary: #4A4FD8;
  --on-primary: #FFFFFF;
  --done: #16806F;
  --late: #9A6410;
  --missed: #C2304F;
  --sky-top: #3A3F9E;
  --sky-bottom: #5A5FC8;
  --sun: #FFE9A8;
  --shadow: 0 6px 20px rgba(43, 52, 64, 0.08);
  --radius: 16px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12161D;
    --surface: #1B212B;
    --text: #EEF1F6;
    --muted: #A3ADBD;
    --divider: #2A3140;
    --primary: #8A8FF5;
    --on-primary: #12161D;
    --done: #3CC2B0;
    --late: #E5A93B;
    --missed: #FF7A85;
    --sky-top: #1B1F4A;
    --sky-bottom: #2B3170;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 14px; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; color: var(--muted); }
.eyebrow { display: inline-block; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); margin-bottom: 10px; }

/* Header sits on the sky, like the app's Today header */
.sky {
  color: #fff;
  background: linear-gradient(180deg, var(--sky-top), var(--sky-bottom));
  border-radius: 0 0 32px 32px;
  position: relative;
}
.sky .wrap { position: relative; z-index: 1; }
.sky a { color: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; text-decoration: none; color: inherit; }
.brand img { border-radius: 10px; }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a { text-decoration: none; font-weight: 500; padding: 10px 14px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.16); }

.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; padding: 40px 0 0; }
.hero .lead { font-size: 1.15rem; color: rgba(255, 255, 255, 0.86); max-width: 34em; }
.hero .eyebrow { color: rgba(255, 255, 255, 0.9); }
.today-pill {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.16); border-radius: 999px; padding: 8px 16px; margin: 4px 0 22px;
  font-weight: 500; font-variant-numeric: tabular-nums;
}
.today-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 10px var(--sun); }
.hero-phone { justify-self: center; transform: translateY(40px); }
.hero-arc { position: absolute; left: 0; bottom: 0; width: 100%; height: 220px; pointer-events: none; opacity: 0.5; }

.actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 8px 0 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 12px;
  font-weight: 600; text-decoration: none; border: 1px solid transparent;
  background: var(--primary); color: var(--on-primary);
}
.sky .btn { background: #fff; color: #3A3F9E; }
.btn.ghost { background: transparent; color: var(--primary); border-color: var(--divider); }
.sky .btn.ghost { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.coming { font-size: 0.95rem; color: rgba(255, 255, 255, 0.8); }

.phone {
  width: 280px; border-radius: 36px; padding: 10px; background: #0E1117;
  box-shadow: 0 30px 60px rgba(18, 22, 29, 0.35);
}
.phone img { border-radius: 27px; width: 100%; }

.section { padding: 96px 0 40px; }
.section-head { max-width: 46em; margin-bottom: 28px; }
.lead { font-size: 1.08rem; color: var(--muted); }

.shots { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; }
.shots figure { margin: 0; text-align: center; }
.shots figcaption { margin-top: 14px; font-weight: 600; }
.shots .phone { width: 250px; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--surface); border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow); border: 1px solid transparent;
}
@media (prefers-color-scheme: dark) { .card { border-color: var(--divider); } }
.card .icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary); margin-bottom: 14px;
}
.card p { color: var(--muted); margin: 0; }
.tag { display: inline-block; font-size: 0.78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }
.tag.now { background: color-mix(in srgb, var(--done) 16%, transparent); color: var(--done); }
.tag.next { background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary); }

.prayer-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; background: var(--surface); border-radius: var(--radius); padding: 6px; box-shadow: var(--shadow); max-width: 560px; }
.prayer-row div { text-align: center; padding: 12px 4px; border-radius: 12px; }
.prayer-row span { display: block; font-size: 0.85rem; color: var(--muted); font-weight: 500; }
.prayer-row strong { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.prayer-row .on { background: var(--primary); }
.prayer-row .on span, .prayer-row .on strong { color: var(--on-primary); }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.steps li::before {
  content: counter(step); width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700;
  background: var(--primary); color: var(--on-primary);
}
.steps strong { display: block; }

.cta { text-align: center; padding: 44px 24px; }
.cta .actions { justify-content: center; }

.site-footer { border-top: 1px solid var(--divider); margin-top: 80px; padding: 32px 0 44px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.site-footer nav a { color: var(--text); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.site-footer nav a:hover { color: var(--primary); }
.fine { width: 100%; font-size: 0.88rem; color: var(--muted); margin: 0; }

/* Document pages: privacy, terms, contact */
.narrow { width: min(760px, 100% - 40px); }
.page-head { padding: 28px 0 56px; }
.page-head .eyebrow { color: rgba(255, 255, 255, 0.9); }
.page-head h1 { font-size: clamp(2.1rem, 5vw, 3rem); margin-bottom: 8px; }
.page-head .meta, .page-head .lead { color: rgba(255, 255, 255, 0.82); margin: 0; }
.doc { padding-top: 36px; }
.doc h2 { font-size: 1.45rem; margin: 40px 0 10px; scroll-margin-top: 20px; }
.doc h3 { margin: 22px 0 8px; }
.doc ul { padding-left: 1.3em; margin: 0 0 14px; }
.doc li { margin-bottom: 6px; }
.callout { background: color-mix(in srgb, var(--primary) 10%, var(--surface)); border-left: 4px solid var(--primary); border-radius: 12px; padding: 18px 20px; }
.callout p { margin: 0; }
.toc { margin: 24px 0 0; padding: 20px 20px 20px 44px; columns: 2 220px; column-gap: 32px; }
.toc li { margin-bottom: 6px; break-inside: avoid; }
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.92em; }
.table-scroll { overflow-x: auto; margin: 0 0 14px; }
table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 12px; overflow: hidden; font-size: 0.95rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--divider); vertical-align: top; }
th { font-weight: 600; }
tr:last-child td { border-bottom: 0; }
.email-big { font-size: clamp(1.2rem, 4.5vw, 1.7rem); font-weight: 600; margin: 0 0 18px; word-break: break-all; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 24px; padding-top: 20px; }
  .hero-phone { transform: translateY(32px); }
  .section { padding-top: 80px; }
}
