/* ============================================================
   SkySalah: static guide pages (SEO/content layer)
   Self-contained: no external fonts or app CSS. Matches the
   app's night-sky brand (emerald + gold on a deep sky).
   ============================================================ */

:root {
  --emerald: #16c79a;
  --emerald-bright: #34e6bb;
  --gold: #e9c46a;
  --text: rgba(236, 242, 246, 0.96);
  --text-dim: rgba(205, 217, 226, 0.7);
  --text-faint: rgba(188, 202, 212, 0.45);
  --card: rgba(8, 16, 30, 0.5);
  --card-border: rgba(255, 255, 255, 0.1);
  --radius: 18px;
  --radius-sm: 12px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100vh;
  color: var(--text);
  background-color: #060912;
  background-image: radial-gradient(
      130% 80% at 50% 118%,
      rgba(22, 199, 154, 0.12),
      transparent 60%
    ),
    linear-gradient(180deg, #060912 0%, #0a1326 55%, #0d1b30 100%);
  background-attachment: fixed;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px;
}

/* --- header ------------------------------------------------ */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.brand span {
  font-size: 18px;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--emerald);
  color: #04140f;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.header-cta:hover {
  background: var(--emerald-bright);
}

/* --- article ---------------------------------------------- */
article {
  padding-bottom: 8px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--emerald);
  margin-bottom: 10px;
}

h1 {
  font-size: clamp(28px, 6vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(21px, 4.5vw, 26px);
  line-height: 1.25;
  letter-spacing: -0.3px;
  margin: 40px 0 12px;
}

h3 {
  font-size: 18px;
  margin: 22px 0 6px;
  color: var(--text);
}

p {
  color: var(--text-dim);
  margin: 12px 0;
}

article a {
  color: var(--emerald-bright);
  text-decoration: none;
  border-bottom: 1px solid rgba(52, 230, 187, 0.35);
}

article a:hover {
  border-bottom-color: var(--emerald-bright);
}

strong,
b {
  color: var(--text);
  font-weight: 700;
}

ul,
ol {
  margin: 12px 0 12px 22px;
  color: var(--text-dim);
}

li {
  margin: 8px 0;
}

/* front-loaded answer / TL;DR */
.answer {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--emerald);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 8px 0 28px;
}

.answer p {
  color: var(--text);
  margin: 0;
}

.answer p + p {
  margin-top: 10px;
}

/* compact CTA under the intro block, for readers who will not scroll to the
   bottom card. Deliberately placed AFTER the front-loaded answer so the answer
   stays first (it is what ranks and what AI engines extract). */
.cta-inline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 26px 0 8px;
}

.cta-inline .btn-primary {
  padding: 12px 22px;
  font-size: 15px;
}

.cta-inline span {
  font-size: 14px;
  color: var(--text-faint);
}

/* soft note / disclaimer */
.note {
  display: flex;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 24px 0;
  font-size: 15px;
  color: var(--text-dim);
}

.note strong {
  color: var(--text);
}

/* FAQ */
.faq h2 {
  margin-bottom: 4px;
}

.faq h3 {
  color: var(--text);
  margin-top: 24px;
}

.faq p {
  margin-top: 6px;
}

/* CTA card */
.cta {
  background: linear-gradient(
    160deg,
    rgba(22, 199, 154, 0.16),
    rgba(8, 16, 30, 0.5)
  );
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
  margin: 40px 0 8px;
}

.cta h2 {
  margin: 0 0 8px;
}

.cta p {
  margin: 0 auto 18px;
  max-width: 46ch;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--emerald);
  color: #04140f;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: none;
}

.btn-primary:hover {
  background: var(--emerald-bright);
}

/* --- footer ----------------------------------------------- */
.site-footer {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--card-border);
  font-size: 14px;
  color: var(--text-faint);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 14px;
}

.site-footer a {
  color: var(--text-dim);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--emerald-bright);
}

.site-footer p {
  font-size: 13px;
  color: var(--text-faint);
  margin: 6px 0 0;
}
