/* OffGrid Messenger — marketing & support site
   Single stylesheet, no external dependencies. */

:root {
  --brand-teal: #16c7a8;
  --brand-blue: #1e3e8c;
  --brand-grad: linear-gradient(135deg, #16c7a8 0%, #1e3e8c 100%);

  --bg: #ffffff;
  --bg-soft: #f4f7f9;
  --bg-card: #ffffff;
  --text: #12212e;
  --text-soft: #52657a;
  --border: #dde5ec;
  --accent: #0e8f7a;
  --shadow: 0 1px 2px rgba(18, 33, 46, .05), 0 8px 24px rgba(18, 33, 46, .06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1520;
    --bg-soft: #121c29;
    --bg-card: #16212f;
    --text: #eaf1f7;
    --text-soft: #9fb2c4;
    --border: #24344a;
    --accent: #3fd9bb;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}

* { 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, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: 940px; margin: 0 auto; padding: 0 20px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 6vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 3.6vw, 1.9rem); font-weight: 650; margin-top: 0; }
h3 { font-size: 1.1rem; font-weight: 650; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
li { margin-bottom: .4em; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 60px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  color: var(--text);
  margin-right: auto;
}
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; display: block; }
.nav { display: flex; gap: 18px; font-size: .95rem; }
.nav a { color: var(--text-soft); }
.nav a[aria-current="page"] { color: var(--text); font-weight: 600; }

/* ---------- Hero ---------- */

.hero {
  text-align: center;
  padding: 72px 0 64px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
/* Two columns: copy on the left, demo video on the right.
   The video is absolutely positioned inside a stretched grid cell, so its
   height is dictated by the copy column and it can never make the hero taller. */
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 236px;
  gap: 48px;
  align-items: stretch;
}
.hero-copy { min-width: 0; text-align: center; }
.hero-media {
  position: relative;
  min-height: 0;
}
.hero-media video {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  height: 100%;
  width: auto;
  max-width: 100%;
  aspect-ratio: 592 / 1280;
  border-radius: 22px;
  background: #000;
  box-shadow: var(--shadow);
  display: block;
}
.hero-icon {
  width: 116px;
  height: 116px;
  border-radius: 26px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.hero .tagline {
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  color: var(--text-soft);
  max-width: 34ch;
  margin: 0 auto 8px;
}
.hero .lede {
  max-width: 58ch;
  margin: 20px auto 0;
  color: var(--text-soft);
}

.badge {
  display: inline-block;
  margin-top: 26px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--brand-grad);
  color: #fff;
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.badge-note {
  display: block;
  margin-top: 12px;
  font-size: .85rem;
  color: var(--text-soft);
}

/* ---------- Sections ---------- */

section { padding: 60px 0; border-bottom: 1px solid var(--border); }
section:last-of-type { border-bottom: 0; }
.section-alt { background: var(--bg-soft); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: .76rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 10px;
}

/* ---------- Cards ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .35em; }
.card p { margin: 0; color: var(--text-soft); font-size: .95rem; }

/* Numbered steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 28px 0 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 52px;
  margin-bottom: 22px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-grad);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps li strong { display: block; }
.steps li span { color: var(--text-soft); font-size: .95rem; }

/* ---------- FAQ ---------- */

.faq { margin-top: 24px; }
.faq details {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  padding: 0 18px;
  margin-bottom: 10px;
}
.faq summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  flex: none;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details > :not(summary) { color: var(--text-soft); font-size: .96rem; }
.faq details > :last-child { padding-bottom: 16px; margin-bottom: 0; }

/* ---------- Callout ---------- */

.callout {
  border-left: 3px solid var(--accent);
  background: var(--bg-soft);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  margin: 24px 0;
  color: var(--text-soft);
  font-size: .95rem;
}
.callout p:last-child { margin-bottom: 0; }

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--brand-grad);
  color: #fff;
  font-weight: 600;
  box-shadow: var(--shadow);
}
.btn:hover { text-decoration: none; opacity: .92; }

/* ---------- Tables ---------- */

.table-scroll { overflow-x: auto; margin: 24px 0; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; min-width: 460px; font-size: .95rem; border-bottom: 1px solid var(--border); }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-weight: 650; }
tbody tr:last-child td { border-bottom: 0; }

/* ---------- Page header (support / privacy) ---------- */

.page-head { padding: 56px 0 40px; background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.page-head p { color: var(--text-soft); max-width: 62ch; margin-bottom: 0; }
.updated { font-size: .85rem; color: var(--text-soft); margin-top: 14px; }

/* ---------- Footer ---------- */

.site-footer {
  padding: 40px 0 56px;
  border-top: 1px solid var(--border);
  color: var(--text-soft);
  font-size: .9rem;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; margin-left: auto; }
.site-footer p { margin: 0; }

img { max-width: 100%; height: auto; }

/* Below this width there is no room for a second column: stack, re-centre,
   and cap the video height so the hero stays a sensible length. */
@media (max-width: 820px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .hero-media { position: static; }
  .hero-media video {
    position: static;
    margin: 0 auto;
    height: auto;
    width: min(260px, 70vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  section { padding: 48px 0; }
  .hero { padding: 56px 0 48px; }
  .site-footer nav { margin-left: 0; }
}
