/* Nightlink microsite. Palette, gradient, and the Prata display face are taken
   from the app's own index.css, so this reads as the product speaking. */

:root {
  --bg: #0d0d11;
  --bg-2: #110f1c;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.055);
  --border: rgba(255, 255, 255, 0.08);
  --primary: #c9a7f0;
  --primary-strong: #9d6fd4;
  --link: #d9b3ff;
  --accent: #e8c87a;
  --text: #eeeafa;
  --muted: #b9b6c4;
  --dim: #7d7a8c;
  --wrap: 1080px;
  --serif: Prata, Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* The header is sticky (~70px), so an anchor jump would otherwise land the
     section heading underneath it. Clear the bar plus a little breathing room. */
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  background-image: linear-gradient(180deg, #0d0d11 0%, #110f1c 55%, #0d0d11 100%);
  background-attachment: fixed;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Two soft, off-centre lights. The app leans on glow rather than hard edges. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(46% 38% at 78% 6%, rgba(157, 111, 212, 0.24), transparent 68%),
    radial-gradient(40% 34% at 12% 44%, rgba(201, 167, 240, 0.11), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

body > * { position: relative; z-index: 1; }

h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.14; }
p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--primary); color: #16101f; padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip:focus { left: 16px; top: 16px; z-index: 99; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

/* ---------- header ---------- */

.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(13, 13, 17, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* The bar itself is full-bleed so the blurred band spans the viewport; the
   inner wrapper keeps its contents on the same grid as the rest of the page. */
.bar-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px 24px;
}

.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 19px; letter-spacing: 0.01em; }
.mark-glyph { width: 20px; height: 20px; color: var(--primary); }

.bar-nav { display: flex; gap: 22px; margin-left: auto; }
.bar-nav a { color: var(--muted); text-decoration: none; font-size: 14px; transition: color 0.18s ease; }
.bar-nav a:hover { color: var(--text); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #16101f;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  padding: 11px 22px;
  border-radius: 999px;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { background: var(--link); transform: translateY(-1px); box-shadow: 0 0 34px rgba(157, 111, 212, 0.3); }
.btn-sm { padding: 8px 16px; font-size: 14px; }

.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--surface-2); box-shadow: none; }

.appstore {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: #fff;
  color: #000;
  text-decoration: none;
  padding: 9px 20px 9px 17px;
  border-radius: 12px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.appstore:hover { transform: translateY(-1px); box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5); }
.appstore svg { width: 26px; height: 26px; flex: none; }
.appstore span { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.appstore small { font-size: 11px; font-weight: 500; }
.appstore strong { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-center { justify-content: center; }

/* ---------- shared furniture ---------- */

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.sec-head { max-width: 600px; margin-bottom: 48px; }
.sec-head h2 { font-size: clamp(28px, 4vw, 42px); }
.sec-head p { color: var(--muted); margin-top: 16px; font-size: 17px; }

.lede { color: var(--muted); font-size: 17px; }

/* ---------- hero ---------- */

.hero {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 64px 24px 104px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
  align-items: center;
}
.hero h1 { font-size: clamp(40px, 6.4vw, 72px); }
.hero h1 em { font-style: italic; color: var(--primary); }
.hero .lede { margin-top: 24px; max-width: 47ch; }
.hero .cta-row { margin-top: 34px; }
.hero-shot img { border-radius: 22px; filter: drop-shadow(0 30px 70px rgba(0, 0, 0, 0.6)); }

/* ---------- journal ---------- */

.journal { max-width: var(--wrap); margin: 0 auto; padding: 0 24px 104px; }

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; }
.feature-grid li { background: #0f0e15; padding: 32px 30px; transition: background 0.2s ease; }
.feature-grid li:hover { background: #14121d; }
.feature-grid h3 { font-size: 22px; margin-bottom: 10px; }
.feature-grid p { color: var(--muted); font-size: 15px; }

/* ---------- visibility ---------- */

.privacy { max-width: var(--wrap); margin: 0 auto; padding: 0 24px 104px; }

.vis-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.vis-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 22px 28px;
}
.vis-list p { color: var(--muted); font-size: 15px; margin-top: 14px; }

.vis-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid currentColor;
}
/* These echo the pill colours the app uses on each entry. */
.vis-private { color: #e8a0a0; }
.vis-mutuals { color: #d9a9c8; }
.vis-anon    { color: var(--accent); }
.vis-public  { color: #8fd8a8; }

/* ---------- analysis ---------- */

.analysis, .social {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px 104px;
  display: grid;
  gap: 64px;
  align-items: center;
}
.analysis { grid-template-columns: 320px 1fr; }
.social { grid-template-columns: 1fr 320px; }

.analysis h2, .social h2 { font-size: clamp(28px, 4vw, 42px); }
.analysis .lede, .social .lede { margin-top: 18px; max-width: 46ch; }
.analysis-shot img, .social-shot img { border-radius: 22px; filter: drop-shadow(0 30px 70px rgba(0, 0, 0, 0.6)); }

.notes { margin-top: 30px; border-left: 2px solid var(--primary-strong); padding-left: 20px; }
.notes li { color: var(--dim); font-size: 14px; padding: 4px 0; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.chips li {
  font-size: 13px;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 7px 15px;
  border-radius: 999px;
}

/* ---------- pro ---------- */

.pro { max-width: var(--wrap); margin: 0 auto; padding: 0 24px 104px; }

.pro-card {
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 48px 44px;
  background: linear-gradient(160deg, rgba(157, 111, 212, 0.13), rgba(255, 255, 255, 0.02) 55%);
  box-shadow: 0 0 60px rgba(157, 111, 212, 0.1);
}
.pro-card h2 { font-size: clamp(26px, 3.6vw, 38px); }
.pro-card .lede { margin-top: 16px; max-width: 52ch; }

.pro-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 42px; }
.pro-cols > div { background: rgba(13, 13, 17, 0.5); border: 1px solid var(--border); border-radius: 18px; padding: 28px 26px; }
.pro-col-paid { border-color: rgba(201, 167, 240, 0.4) !important; }

.pro-cols h3 { font-size: 20px; margin-bottom: 18px; }
.pro-col-paid h3 { color: var(--accent); }
.pro-cols li { color: var(--muted); font-size: 15px; padding: 5px 0 5px 22px; position: relative; }
.pro-cols li::before { content: "◦"; position: absolute; left: 4px; color: var(--primary); }
.pro-col-paid li::before { content: "✦"; font-size: 10px; top: 6px; color: var(--accent); }

/* ---------- closer ---------- */

.closer {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 78px 24px 96px;
  text-align: center;
  border-top: 1px solid var(--border);
}
.closer h2 { font-size: clamp(28px, 4.8vw, 48px); margin-bottom: 34px; }

/* ---------- footer ---------- */

.foot {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 26px 24px 52px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--dim);
}
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--link); }
.foot-by a { color: var(--text); border-bottom: 1px solid var(--border); }
.foot-links { display: flex; flex-wrap: wrap; gap: 22px; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero, .analysis, .social { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding-top: 36px; }
  /* Keep the screenshot under the copy on both alternating sections. */
  .analysis-shot { order: 2; }
  .hero-shot img, .analysis-shot img, .social-shot img { max-width: 300px; margin: 0 auto; }
  .vis-list { grid-template-columns: repeat(2, 1fr); }
  .pro-card { padding: 36px 28px; }
}

@media (max-width: 620px) {
  /* Bar loses 8px of padding below 620px. */
  html { scroll-padding-top: 88px; }
  .bar-inner { gap: 14px; padding: 14px 18px; }
  .bar-nav { display: none; }
  .hero, .journal, .privacy, .analysis, .social, .pro, .closer, .foot { padding-left: 18px; padding-right: 18px; }
  .feature-grid, .vis-list, .pro-cols { grid-template-columns: 1fr; }
  .feature-grid li { padding: 26px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
