/* Skylamp site. Colours are the app's "Desert sky" tokens (docs/DESIGN_SPEC.md §13.3). */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-600.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  --night: #0C0E26;
  --dusk: #211C4B;
  --sheet: #15163A;
  --ink: #F6F3FF;
  --ink2: rgba(246, 243, 255, 0.80);
  --ink3: rgba(246, 243, 255, 0.70);
  --gold: #FFC46B;
  --gold-base: #C98A36;
  --on-gold: #2A1606;
  --moon: #B9ACF7;
  --line: rgba(185, 172, 247, 0.22);
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --text: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font: 400 17px/1.6 var(--text);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 0.5em; overflow-wrap: break-word; }
h1 { font-size: clamp(2rem, 7vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 5vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 600px) { .wrap { padding: 0 32px; } }
.narrow { max-width: 760px; }
.center { text-align: center; }
.small { font-size: 0.9rem; color: var(--ink3); }
.eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--moon); margin-bottom: 0.6em; }
.lede { font-size: 1.15rem; color: var(--ink2); max-width: 36em; }

.skip { position: absolute; left: 8px; top: -60px; z-index: 10; background: var(--gold); color: var(--on-gold); padding: 10px 14px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 8px; }

/* Header and footer */
.top { position: absolute; inset: 0 0 auto; z-index: 5; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font: 600 1.25rem/1 var(--display); padding: 8px 0; }
.brand .mark { width: 34px; height: 34px; margin: -4px; }
.brand.small { font-size: 1.05rem; }
nav { display: flex; flex-wrap: wrap; gap: 4px 2px; }
nav a { color: var(--ink2); text-decoration: none; padding: 10px 10px; border-radius: 10px; font-size: 0.95rem; min-height: 44px; display: inline-flex; align-items: center; }
nav a:hover, nav a[aria-current="page"] { color: var(--ink); background: rgba(246, 243, 255, 0.08); }
@media (max-width: 380px) { nav a { padding: 10px 7px; font-size: 0.9rem; } .brand { font-size: 1.1rem; } }

.foot { border-top: 1px solid var(--line); background: var(--night); padding: 32px 0 40px; }
.foot-row { display: grid; gap: 12px; }
.foot nav { margin-left: -10px; }
.foot nav a { overflow-wrap: anywhere; }
.fine { font-size: 0.85rem; color: var(--ink3); margin: 8px 0 0; }

/* Sky art */
.stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.dunes { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(90px, 16vw, 220px); pointer-events: none; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 70% at 75% 110%, rgba(129, 96, 200, 0.55), transparent 60%),
    linear-gradient(180deg, #080A1E 0%, #12133A 45%, #2A2463 80%, #3A2F6E 100%);
  padding: 112px 0 clamp(110px, 18vw, 230px);
}
.moon {
  position: absolute; top: 96px; left: 6%; width: 54px; height: 54px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #fff, #E6E0FF 60%, #CFC6F5);
  box-shadow: 0 0 40px 14px rgba(230, 224, 255, 0.18), 0 0 120px 50px rgba(185, 172, 247, 0.10);
  opacity: 0.9;
}
.hero-grid { position: relative; z-index: 1; display: grid; gap: 40px; align-items: center; }
.hero-copy { padding-top: 40px; }
.hero h1 { max-width: 14em; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 56px; }
  .hero-copy { padding-top: 0; }
  .moon { left: auto; right: 44%; top: 120px; width: 64px; height: 64px; }
}

.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }
.cta.center { justify-content: center; }
.cta-note { margin: 0; color: var(--ink2); }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000; color: #fff; border: 1.5px solid rgba(246, 243, 255, 0.55); border-radius: 12px;
  padding: 9px 18px 9px 14px; min-height: 56px; line-height: 1.05; font: 600 1.35rem/1.05 var(--text);
  cursor: default;
}
.store-badge svg { width: 30px; height: 30px; color: var(--gold); flex: none; }
.store-badge small { display: block; font-size: 0.68rem; font-weight: 500; letter-spacing: 0.02em; margin-bottom: 2px; }

.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 22px;
  background: var(--gold); color: var(--on-gold); border-radius: 999px; font-weight: 700; text-decoration: none;
  box-shadow: 0 4px 0 var(--gold-base); overflow-wrap: anywhere; text-align: center; max-width: 100%;
}
.button:hover { filter: brightness(1.05); }
.button:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--gold-base); }

/* Phone frames */
.phone {
  margin: 0 auto; width: min(100%, 300px);
  border-radius: 38px; padding: 8px; background: linear-gradient(160deg, #3A3470, #15163A);
  box-shadow: 0 0 0 1px rgba(246, 243, 255, 0.12) inset, 0 30px 60px -20px rgba(0, 0, 0, 0.7), 0 0 80px -10px rgba(185, 172, 247, 0.25);
}
.phone img { border-radius: 30px; width: 100%; aspect-ratio: 640 / 1385; object-fit: cover; background: var(--sheet); }
.hero-shot .phone { width: min(78%, 320px); }
@media (min-width: 900px) { .phone.tilt { transform: rotate(3deg); } }
@media (prefers-reduced-motion: no-preference) {
  .phone.tilt img { animation: rise 900ms cubic-bezier(0.2, 0, 0, 1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}

/* Features */
.features { background: linear-gradient(180deg, var(--night), #121338 50%, var(--night)); padding: 16px 0 8px; }
.feature { display: grid; gap: 28px; align-items: center; padding: 40px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature-copy p:last-child { color: var(--ink2); font-size: 1.08rem; max-width: 32em; }
.feature .phone { width: min(80%, 280px); }
@media (min-width: 800px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 64px; padding: 64px 0; }
  .feature.flip .feature-copy { order: 2; }
}

/* Plans */
.plans { padding: 72px 0; background: var(--night); }
.plan-grid { display: grid; gap: 20px; margin-top: 32px; }
@media (min-width: 800px) { .plan-grid { grid-template-columns: 1fr 1fr; } }
.card { background: var(--sheet); border: 1px solid var(--line); border-radius: 22px; padding: 24px 20px; }
@media (min-width: 600px) { .card { padding: 32px; } }
.card.gold { border-color: rgba(255, 196, 107, 0.45); background: linear-gradient(180deg, #221C4C, var(--sheet)); }
.card.gold h3 { color: var(--gold); }
.price { font-size: 1.1rem; }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding: 6px 0 6px 28px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 13px; width: 14px; height: 14px; background: var(--gold);
  clip-path: polygon(50% 0, 62% 32%, 100% 32%, 70% 54%, 80% 100%, 50% 72%, 20% 100%, 30% 54%, 0 32%, 38% 32%);
}

/* Name */
.name { position: relative; overflow: hidden; padding: 88px 0; background: radial-gradient(80% 90% at 50% 0%, #1E1A4A, var(--night) 70%); }
.name .wrap { position: relative; }
.ayah { margin: 24px auto 28px; padding: 0; }
.ayah p { font: 600 clamp(1.35rem, 4.4vw, 2rem)/1.3 var(--display); color: var(--ink); margin-bottom: 0.6em; }
.ayah footer { color: var(--ink3); font-size: 0.95rem; }
.ayah cite { font-style: normal; }
.name > .wrap > p { color: var(--ink2); }

.closing { padding: 72px 0 88px; background: var(--night); }
.closing p { color: var(--ink2); }

/* Inner pages */
.page-head { position: relative; overflow: hidden; padding: 120px 0 48px; background: linear-gradient(180deg, #080A1E, #1A1846); }
.page-head.tall { min-height: 70vh; display: grid; align-items: center; }
.page-head .wrap { position: relative; }
.contact { margin-top: 20px; }
.prose-wrap { padding: 40px 0 72px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose p, .prose li { color: var(--ink2); }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 0.3em 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose blockquote { margin: 1.2em 0; padding: 12px 16px; border-left: 3px solid var(--moon); background: var(--sheet); border-radius: 0 12px 12px 0; }
.prose blockquote p:last-child { margin: 0; }
code { font: 0.9em ui-monospace, SFMono-Regular, Menlo, monospace; background: rgba(246, 243, 255, 0.08); padding: 1px 5px; border-radius: 5px; overflow-wrap: anywhere; }
.prose a, .faq a { overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; margin: 1em 0 1.5em; border: 1px solid var(--line); border-radius: 14px; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--ink2); min-width: 9em; }
th { color: var(--ink); background: var(--sheet); }
tr:last-child td { border-bottom: 0; }

/* FAQ */
.faq { margin: 16px 0 40px; display: grid; gap: 12px; }
.faq details { background: var(--sheet); border: 1px solid var(--line); border-radius: 18px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; min-height: 52px; position: relative;
  font-weight: 700; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--gold); }
.faq details[open] summary::after { content: "–"; }
.faq summary:focus-visible { outline-offset: -3px; border-radius: 18px; }
.answer { padding: 0 18px 8px; color: var(--ink2); }
.answer ol { padding-left: 1.3em; }
.answer li { margin: 0.4em 0; }
.answer strong { color: var(--ink); }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Small phones: keep the header on one row, and keep stars out from behind the hero text */
@media (max-width: 420px) {
  .top-row { flex-wrap: nowrap; gap: 4px; }
  .brand { font-size: 1.05rem; gap: 6px; }
  .brand .mark { width: 28px; height: 28px; }
  .top nav { gap: 0; flex-wrap: nowrap; }
  .top nav a { padding: 10px 6px; font-size: 0.86rem; }
}
@media (max-width: 899px) {
  .hero .stars { -webkit-mask-image: linear-gradient(180deg, #000 0 14%, rgba(0,0,0,0.25) 24% 62%, #000 74%); mask-image: linear-gradient(180deg, #000 0 14%, rgba(0,0,0,0.25) 24% 62%, #000 74%); }
}
