/* XGrab Motion site. Colours follow motion/design/brand/xgrab-motion/README.md:
   the mark and lockup always sit on navy #0b1f45, flight blue #2f8cff. */
:root {
  --navy: #0b1f45;
  --navy-deep: #07152f;
  --flight: #2f8cff;
  --byline: #a9b8d6;

  --bg: #ffffff;
  --bg-soft: #f3f6fb;
  --text: #0f1a2e;
  --text-2: #3e4a5f;
  --border: #dbe2ee;
  --link: #1764cc;
  --card: #ffffff;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07152f;
    --bg-soft: #0b1f45;
    --text: #f4f6f8;
    --text-2: #b9c3d6;
    --border: #1d3466;
    --link: #6fb0ff;
    --card: #0d2450;
  }
}

*, *::before, *::after { box-sizing: border-box; }

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

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

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--link); }
a:focus-visible { outline: 2px solid var(--flight); outline-offset: 2px; }

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

/* Header: always navy, so the lockup sits on its own ground in both themes. */
.site-header { background: var(--navy); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px;
}
.brand img { width: 190px; }
.site-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-nav a { color: #ffffff; text-decoration: none; font-size: 15px; font-weight: 500; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

/* Hero */
.hero { background: var(--navy); color: #ffffff; padding: 48px 0 64px; }
.hero .wrap { display: grid; gap: 32px; align-items: center; }
@media (min-width: 760px) { .hero .wrap { grid-template-columns: 1fr 300px; gap: 48px; } }
.hero h1 { font-size: clamp(30px, 6vw, 46px); line-height: 1.15; margin: 0 0 16px; letter-spacing: -0.01em; }
.hero p.lede { font-size: 19px; color: #d5def0; margin: 0 0 24px; max-width: 36em; }
.hero .icon { width: 72px; border-radius: 16px; margin-bottom: 20px; box-shadow: 0 0 0 1px rgba(255,255,255,0.12); }
.badge {
  display: inline-block; padding: 12px 20px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.35); color: #ffffff;
  font-weight: 600; font-size: 16px;
}
.hero .meta { margin-top: 14px; font-size: 14px; color: var(--byline); }

/* Sections */
main section { padding: 48px 0; }
main section.alt { background: var(--bg-soft); }
h2 { font-size: 26px; line-height: 1.25; margin: 0 0 16px; }
h3 { font-size: 19px; margin: 0 0 8px; }
p { margin: 0 0 14px; }
.muted { color: var(--text-2); }

.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; } }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.card p:last-child { margin-bottom: 0; }

.steps { padding-left: 1.3em; margin: 0; }
.steps li { margin-bottom: 10px; }

/* Long-form text pages */
.doc { padding: 40px 0 56px; }
.doc h1 { font-size: clamp(28px, 5vw, 38px); line-height: 1.2; margin: 0 0 8px; }
.doc h2 { font-size: 21px; margin: 36px 0 10px; }
.doc ul { padding-left: 1.3em; margin: 0 0 14px; }
.doc li { margin-bottom: 6px; }
.doc .meta { color: var(--text-2); font-size: 15px; margin-bottom: 24px; }
.callout { background: var(--bg-soft); border: 1px solid var(--border); border-left: 4px solid var(--flight); border-radius: 10px; padding: 16px 18px; margin: 20px 0; }
.callout p:last-child { margin-bottom: 0; }
address { font-style: normal; }
dt { font-weight: 600; margin-top: 12px; }
dd { margin: 4px 0 0; }

.faq details { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; background: var(--card); }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details[open] summary { margin-bottom: 10px; }
.faq details p:last-child, .faq details ul:last-child { margin-bottom: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0 40px; font-size: 14px; color: var(--text-2); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; }

/* Video slots. Posters are brand placeholders until consented, face-blurred footage exists. */
.media-frame {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9;
  background: var(--navy-deep); border-radius: 16px; object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.10);
}
/* Portrait hero footage in a phone-shaped frame (stacked under the copy on phones). */
.phone { margin: 0; justify-self: center; width: 100%; max-width: 300px; }
.hero-video {
  display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover;
  background: var(--navy-deep); border-radius: 36px; border: 6px solid #16306a;
  box-shadow: 0 18px 50px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.12);
}
.phone figcaption { margin-top: 12px; font-size: 14px; color: var(--byline); text-align: center; }
.clip { margin: 0; }
.clip figcaption { margin-top: 8px; font-size: 15px; color: var(--text-2); text-align: center; }

.how { display: grid; gap: 28px; align-items: start; margin-bottom: 20px; }
@media (min-width: 860px) { .how { grid-template-columns: 1fr 1fr; } }
.steps.numbered { list-style: none; padding: 0; counter-reset: step; }
.steps.numbered li { position: relative; padding-left: 52px; margin-bottom: 22px; counter-increment: step; }
.steps.numbered li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--navy); color: #ffffff; border: 2px solid var(--flight);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px;
}
.steps.numbered h3 { margin-top: 4px; }
.steps.numbered p { margin: 0; color: var(--text-2); }
.explainer { margin: 0; }
.explainer figcaption { margin-top: 10px; font-size: 15px; color: var(--text-2); text-align: center; }
.site-footer .sb-link { color: var(--link); text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.site-footer .sb-link:focus-visible { outline: 2px solid var(--flight); outline-offset: 3px; border-radius: 2px; }
