/* Rayna: Secure Messaging — shared site styles */
:root {
  --bg: #07090a;
  --surface: #111416;
  --surface-2: #171b1e;
  --border: #23292d;
  --text: #f2f5f3;
  --muted: #9aa5a0;
  --accent: #86ef31;
  --accent-ink: #0b1400;
  --radius: 16px;
  --max: 1080px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a { color: var(--accent); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }

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

/* ── Header ─────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(7, 9, 10, 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-weight: 700; font-size: 17px;
}
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

/* ── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; text-decoration: none;
  border: 1px solid transparent; transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--surface); }

/* ── Hero ───────────────────────────────────────────── */
.hero { padding: 88px 0 72px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto auto;
  width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(circle, rgba(134, 239, 49, 0.16), transparent 65%);
  pointer-events: none;
}
.hero .container {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; position: relative;
}
.eyebrow {
  display: inline-block; margin-bottom: 18px; padding: 5px 12px;
  border: 1px solid rgba(134, 239, 49, 0.35); border-radius: 999px;
  color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: .02em;
}
.hero h1 {
  margin: 0 0 18px; font-size: clamp(36px, 6vw, 58px); line-height: 1.05; letter-spacing: -0.02em;
}
.hero h1 span { color: var(--accent); }
.hero p.lead { margin: 0 0 30px; font-size: 19px; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--muted); }
.hero-art img {
  width: 100%; height: auto; max-width: 380px; margin-left: auto; border-radius: 28%;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 1px var(--border);
}

/* ── Sections ───────────────────────────────────────── */
section { padding: 72px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { margin: 0 0 10px; font-size: clamp(26px, 4vw, 36px); letter-spacing: -0.01em; line-height: 1.15; }
.section-head p { margin: 0; color: var(--muted); font-size: 17px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px;
}
.section-alt .card { background: var(--bg); }
.card .icon {
  width: 42px; height: 42px; border-radius: 12px; margin-bottom: 14px;
  display: grid; place-items: center;
  background: rgba(134, 239, 49, 0.12); color: var(--accent);
}
.card .icon svg { width: 22px; height: 22px; }
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; }
.checklist li { position: relative; padding-left: 32px; color: var(--text); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(134, 239, 49, 0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386ef31' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.checklist li span { display: block; color: var(--muted); font-size: 14px; }

.cta {
  text-align: center; padding: 56px 24px; border-radius: 24px;
  background: linear-gradient(135deg, rgba(134, 239, 49, 0.14), rgba(134, 239, 49, 0.02));
  border: 1px solid rgba(134, 239, 49, 0.25);
}
.cta h2 { margin: 0 0 10px; font-size: clamp(26px, 4vw, 34px); }
.cta p { margin: 0 auto 26px; color: var(--muted); max-width: 32em; }
.store-badges { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px;
  border-radius: 12px; background: var(--bg); border: 1px solid var(--border);
  color: var(--text); text-align: left; line-height: 1.2;
}
.store-badge svg { width: 24px; height: 24px; flex: none; }
.store-badge small { display: block; color: var(--muted); font-size: 11px; }
.store-badge strong { font-size: 15px; }

/* ── Document pages (privacy, support, etc.) ────────── */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 20px 88px; }
.doc header { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.doc header h1 { margin: 0 0 6px; font-size: clamp(30px, 5vw, 40px); letter-spacing: -0.01em; line-height: 1.15; }
.doc header p { margin: 0; color: var(--muted); font-size: 14px; }
.doc h2 { font-size: 20px; margin: 40px 0 8px; color: var(--accent); }
.doc h3 { font-size: 16px; margin: 22px 0 4px; }
.doc p, .doc li { font-size: 15.5px; color: #d9dfdc; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc .note {
  margin-top: 40px; padding: 16px 18px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted); font-size: 14px;
}
.table-wrap { overflow-x: auto; margin: 12px 0; }
.doc table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border: 1px solid var(--border); vertical-align: top; }
.doc th { background: var(--surface); }
.doc details {
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
  padding: 14px 18px; margin-bottom: 10px;
}
.doc summary { cursor: pointer; font-weight: 600; }
.doc details p { margin: 10px 0 2px; }
.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps li { counter-increment: step; position: relative; padding-left: 44px; margin-bottom: 16px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(134, 239, 49, 0.14); color: var(--accent); font-weight: 700; font-size: 14px;
}

/* ── Footer ─────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); padding: 36px 0; color: var(--muted); font-size: 14px; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 860px) {
  .hero { padding: 56px 0 48px; }
  .hero .container { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 160px; margin: 0; }
  .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .nav { gap: 14px; }
  .nav a.hide-sm { display: none; }
  section { padding: 56px 0; }
  .grid, .checklist { grid-template-columns: 1fr; }
  .brand span { display: none; }
}
