/* SkyCalm website: the app's "night flight" palette. */
:root {
  --bg: #0b1424;
  --surface: #131f33;
  --raised: #1a2840;
  --text: #e8eef7;
  --muted: #8fa3bf;
  --faint: #5e7089;
  --border: #24324a;
  --sky: #8ec5e8;
  --on-accent: #0b1424;
  --sos: #ef9f86;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 50% -200px, #16314a 0%, transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  min-height: 100vh;
}

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

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

/* Header */
.site-header { padding: 20px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--serif); font-size: 22px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; gap: 20px; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--text); }

/* Hero */
.hero { text-align: center; padding: 56px 0 40px; }
.hero .app-icon { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 20px 60px rgba(142, 197, 232, 0.18); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.2; margin: 0 0 12px; }
.hero h1 { font-size: clamp(36px, 7vw, 60px); margin-top: 28px; letter-spacing: -0.5px; }
.lede { color: var(--muted); font-size: 19px; max-width: 560px; margin: 0 auto 32px; }

.button {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--sky); color: var(--on-accent);
  padding: 14px 26px; border-radius: 999px;
  font-weight: 600; text-decoration: none; font-size: 16px;
}
.button:hover { color: var(--on-accent); background: #a7d3ef; }
.button svg { width: 20px; height: 20px; }
.small { color: var(--faint); font-size: 14px; margin-top: 14px; }

/* Features */
.section { padding: 40px 0; }
.section h2 { font-size: 32px; text-align: center; margin-bottom: 8px; }
.section > .wrap > p.center { color: var(--muted); text-align: center; margin: 0 auto 32px; max-width: 560px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
}
.card h3 { font-size: 21px; margin-bottom: 6px; }
.card p { color: var(--muted); margin: 0; font-size: 16px; }
.card .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sky); margin-bottom: 16px; }
.card .dot.sos { background: var(--sos); }

.quote { text-align: center; padding: 48px 0; }
.quote p { font-family: var(--serif); font-size: clamp(22px, 4vw, 30px); max-width: 680px; margin: 0 auto; }

/* Long-form pages */
.doc { padding: 32px 0 64px; }
.doc h1 { font-size: clamp(32px, 6vw, 44px); }
.doc h2 { font-size: 24px; margin-top: 40px; }
.doc p, .doc li { color: #cbd6e6; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.updated { color: var(--faint); font-size: 15px; }
.callout {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 18px 20px; margin: 24px 0;
}
.callout p { margin: 0; }
details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; color: var(--text); }
details p { margin: 10px 0 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 28px 0 40px; color: var(--faint); font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; margin-right: 16px; }
.site-footer a:hover { color: var(--text); }
.disclaimer { width: 100%; margin: 12px 0 0; }

@media (max-width: 520px) {
  body { font-size: 16px; }
  .nav { gap: 14px; }
  .hero { padding-top: 32px; }
}
