/* skysociety.app: the app's dark palette (src/constants/colors.ts) and its font, Manrope.
   No inline styles (the CSP allows only this stylesheet). */

@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --bg: #0f172a;
  --card: #1a2436;
  --raised: #222e43;
  --tile: #2a374e;
  --border: rgba(243, 244, 246, 0.12);
  --border-subtle: rgba(243, 244, 246, 0.07);
  --text: #f3f4f6;
  --muted: #a3b1c6;
  --faint: #7d8ba1;
  --primary: #06bee1;
  --primary-soft: rgba(6, 190, 225, 0.12);
  --primary-line: rgba(6, 190, 225, 0.35);
  --success: #4ade80;
  --danger: #f87171;
  --radius: 16px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Soft brand glow behind the top of every page */
body::before {
  content: "";
  position: fixed;
  inset: -20vh -10vw auto -10vw;
  height: 80vh;
  background:
    radial-gradient(40% 50% at 20% 30%, rgba(6, 190, 225, 0.16), transparent 70%),
    radial-gradient(35% 45% at 85% 10%, rgba(59, 130, 246, 0.14), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.nav { display: flex; gap: 22px; font-size: 15px; font-weight: 600; }
.nav a { color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: none; }

/* Type */
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.2; margin: 0; }
h1 { font-size: clamp(34px, 6vw, 56px); font-weight: 800; }
h2 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 800; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0; color: var(--muted); }
.eyebrow { display: block; margin-bottom: 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary); }
.accent { color: var(--primary); }

/* Pills and buttons */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--primary-soft); border: 1px solid var(--primary-line);
  color: var(--primary); font-size: 14px; font-weight: 700;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px; font-weight: 700; font-size: 16px;
  background: var(--card); border: 1px solid var(--border); color: var(--text);
}
.button:hover { text-decoration: none; background: var(--raised); }
.button.primary { background: #06bee1; border-color: #06bee1; color: #0f172a; }
.button.primary:hover { background: #4dd0e8; }

/* Home: hero */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding: 72px 0 56px; }
.hero h1 { margin: 0 0 20px; }
.hero .lead { font-size: 19px; max-width: 520px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; align-items: center; }

/* Phone mockup (illustrative sample roster) */
.phone {
  justify-self: center;
  width: 290px; padding: 12px;
  border-radius: 44px;
  background: linear-gradient(160deg, #2a374e, #141d2e);
  border: 1px solid var(--border);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}
.screen { border-radius: 34px; background: var(--bg); padding: 18px 14px 22px; overflow: hidden; }
.screen .bar { width: 90px; height: 24px; margin: 0 auto 16px; border-radius: 14px; background: #05080f; }
.screen .day { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin: 14px 4px 8px; }
.screen .day.today { color: var(--primary); }
.duty { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; background: var(--card); margin-bottom: 8px; }
.duty .ico { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--tile); }
.duty .ico svg { width: 18px; height: 18px; }
.duty b { display: block; font-size: 14px; font-weight: 700; color: var(--text); }
.duty span { font-size: 12px; color: var(--muted); }
.ico.cyan { background: rgba(6, 190, 225, 0.14); color: var(--primary); }
.ico.orange { background: rgba(251, 146, 60, 0.14); color: #fb923c; }
.ico.violet { background: rgba(167, 139, 250, 0.16); color: #a78bfa; }
.ico.green { background: rgba(74, 222, 128, 0.14); color: var(--success); }

/* Home: sections */
section.block { padding: 56px 0; border-top: 1px solid var(--border-subtle); }
.block .head { max-width: 640px; margin-bottom: 32px; }
.block .head p { margin-top: 12px; font-size: 18px; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feature { background: var(--card); border: 1px solid var(--border-subtle); border-radius: var(--radius); padding: 22px; }
.feature .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; }
.feature .ico svg { width: 22px; height: 22px; }
.feature p { margin-top: 8px; font-size: 15.5px; }

.promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.promise li { list-style: none; background: var(--card); border: 1px solid var(--border-subtle); border-radius: var(--radius); padding: 20px 22px; color: var(--muted); font-size: 15.5px; }
.promise li strong { display: block; color: var(--text); font-size: 17px; margin-bottom: 6px; }
ul.promise { padding: 0; margin: 0; }

.block:last-child { padding-bottom: 8px; }
.contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; background: linear-gradient(120deg, rgba(6, 190, 225, 0.14), rgba(59, 130, 246, 0.1)); border: 1px solid var(--primary-line); border-radius: 22px; padding: 30px 32px; }
.contact p { margin-top: 6px; }

/* Legal pages */
.doc-head { padding: 56px 0 28px; }
.doc-head h1 { font-size: clamp(32px, 5vw, 46px); }
.doc-head .meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; padding-bottom: 32px; }
.toc { position: sticky; top: 88px; align-self: start; font-size: 14.5px; }
.toc p { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--border); }
.toc li { margin: 0; }
.toc a { display: block; padding: 5px 0 5px 14px; color: var(--muted); }
.toc a:hover { color: var(--text); text-decoration: none; }

.prose { max-width: 700px; }
.prose > section { padding: 28px 0; border-top: 1px solid var(--border-subtle); }
.prose > section:first-child { border-top: 0; padding-top: 0; }
.prose h2 { font-size: 24px; margin-bottom: 14px; }
.prose h3 { margin: 22px 0 8px; font-size: 17px; color: var(--text); }
.prose p { margin: 10px 0; }
.prose ul, .prose ol { padding-left: 0; margin: 10px 0; }
.prose li { color: var(--muted); margin: 8px 0; }
.prose ul > li { list-style: none; position: relative; padding-left: 22px; }
.prose ul > li::before { content: ""; position: absolute; left: 4px; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.prose ul ul { margin: 8px 0 0; }
.prose ul ul > li::before { background: var(--faint); }
.prose strong { color: var(--text); }

.summary { background: var(--card); border: 1px solid var(--primary-line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 28px; }
.summary h2 { font-size: 18px; margin-bottom: 4px; }

/* Delete page */
.options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 8px 0 14px; }
.option { background: var(--card); border: 1px solid var(--border-subtle); border-radius: var(--radius); padding: 22px; }
.option .tag { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary); }
.option h2 { font-size: 20px; margin: 8px 0 10px; }
.option ol { counter-reset: step; list-style: none; padding: 0; margin: 12px 0 0; }
.option ol li { counter-increment: step; position: relative; padding-left: 36px; margin: 10px 0; color: var(--muted); }
.option ol li::before { content: counter(step); position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; background: var(--primary-soft); color: var(--primary); }
.lists { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.list { background: var(--card); border: 1px solid var(--border-subtle); border-radius: var(--radius); padding: 22px; }
.list h2 { font-size: 18px; margin-bottom: 8px; }
.list ul { list-style: none; padding: 0; margin: 0; }
.list li { position: relative; padding-left: 28px; margin: 10px 0; color: var(--muted); font-size: 15.5px; }
.list li::before { position: absolute; left: 0; top: 0; font-weight: 800; }
.list.deleted li::before { content: "✓"; color: var(--success); }
.list.kept li::before { content: "•"; color: var(--faint); font-size: 22px; line-height: 1.1; }

/* Footer */
main { flex: 1; padding-bottom: 48px; }
.site-footer { border-top: 1px solid var(--border-subtle); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; padding: 28px 20px 40px; font-size: 14.5px; color: var(--faint); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--muted); }

/* Not found */
.notfound { text-align: center; padding: 120px 0 80px; }
.notfound p { margin: 14px 0 28px; font-size: 18px; }

/* Phone widths */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; text-align: left; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .promise { grid-template-columns: 1fr; }
  .doc { grid-template-columns: 1fr; gap: 8px; }
  .toc { position: static; background: var(--card); border: 1px solid var(--border-subtle); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 20px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .nav { gap: 16px; font-size: 14px; }
  .nav .hide-sm { display: none; }
  .features, .options, .lists { grid-template-columns: 1fr; }
  section.block { padding: 40px 0; }
  .block .head { margin-bottom: 24px; }
  /* Feature cards: icon beside the text, so the list is shorter */
  .feature { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding: 18px; }
  .feature .ico { grid-row: span 2; margin-bottom: 0; }
  .feature p { margin-top: 4px; }
  .hero { padding: 40px 0 32px; gap: 36px; }
  .phone { width: 270px; }
  .contact { padding: 24px; }
}

.lead-small { font-size: 18px; margin-top: 14px; max-width: 620px; }
.option p { margin-top: 10px; }
.note { margin-top: 28px; }
.inline-icon { width: 1.05em; height: 1.05em; vertical-align: -0.15em; color: var(--text); }
.summary-top { margin-bottom: 40px; }
.summary-top ul { list-style: none; padding: 0; margin: 10px 0 0; }
.summary-top li { position: relative; padding-left: 22px; margin: 8px 0; color: var(--muted); }
.summary-top li::before { content: ""; position: absolute; left: 4px; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }

/* Real app screenshot in the phone frame */
.phone.shot { width: 300px; padding: 10px; }
.phone.shot img { display: block; width: 100%; height: auto; border-radius: 36px; }
@media (max-width: 600px) { .phone.shot { width: 270px; } }
