/* fieldopsinc.com: one stylesheet for every page.
 *
 * The palette is the app's: charcoal neutrals, off-white paper, and the
 * orange of the logo's hard hat as the one accent. Light and dark both
 * follow the reader's system setting.
 *
 * Nothing is fetched from anywhere else. The people this is for are often
 * on one bar of signal, so the whole site is local text, a few photographs,
 * and no fonts, frameworks or trackers. */

:root {
  color-scheme: light dark;

  --paper: #f6f5f3;
  --surface: #ffffff;
  --surface-2: #efeeeb;
  --ink: #1b1b1b;
  --ink-muted: #5c5f62;
  --ink-faint: #8a8d90;
  --line: #e2e0dc;
  --line-soft: #ecebe8;

  /* The fill orange is the logo's exactly. The text orange is darker so it
   * still clears contrast on white. */
  --accent: #ec7426;
  --accent-strong: #d9621a;
  --accent-text: #b4530e;
  --accent-wash: rgba(236, 116, 38, 0.1);
  --on-accent: #ffffff;

  --charcoal: #2a2a2b;
  --night: #161617;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 10px 30px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.08), 0 30px 60px rgba(0, 0, 0, 0.16);
  --radius: 18px;
  --radius-sm: 12px;
  --measure: 70ch;
  --gutter: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111111;
    --surface: #1c1c1d;
    --surface-2: #262628;
    --ink: #ededed;
    --ink-muted: #a9adb1;
    --ink-faint: #7d8185;
    --line: #333335;
    --line-soft: #29292b;

    --accent-text: #f7a064;
    --accent-wash: rgba(236, 116, 38, 0.15);
    --on-accent: #1b1b1b;

    --charcoal: #e4e4e4;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.5), 0 30px 60px rgba(0, 0, 0, 0.55);
  }
}

* { box-sizing: border-box; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.022em; margin: 0; }
h1 { font-size: clamp(2.1rem, 5.6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3.6vw, 2.35rem); font-weight: 780; }
h3 { font-size: 1.1rem; font-weight: 680; letter-spacing: -0.01em; }
h4 { font-size: 1rem; font-weight: 650; letter-spacing: 0; }
p { margin: 0; }

.wrap {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 100;
  background: var(--surface);
  padding: 8px 14px;
  border-radius: 8px;
}

/* ---------------------------------------------------------------- header -- */

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.top .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}
.brand:hover { color: var(--ink); }

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #fff;
  padding: 3px;
  object-fit: contain;
  box-shadow: var(--shadow-sm);
}

.top nav.main {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.95rem;
}

.top nav.main a:not(.btn) { color: var(--ink-muted); text-decoration: none; font-weight: 520; }
.top nav.main a:not(.btn):hover,
.top nav.main a[aria-current="page"] { color: var(--ink); }

.top .btn { padding: 9px 16px; font-size: 0.92rem; }

.menu { display: none; margin-left: auto; position: relative; }
.menu summary {
  list-style: none;
  cursor: pointer;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { border-color: var(--accent); }
.menu .panel {
  position: absolute;
  right: 0;
  top: 52px;
  width: min(300px, calc(100vw - 32px));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  display: grid;
}
.menu .panel a:not(.btn) {
  padding: 11px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 560;
}
.menu .panel a:not(.btn):hover { background: var(--surface-2); }
.menu .panel .btn { margin-top: 6px; justify-content: center; color: var(--on-accent); }

@media (max-width: 900px) {
  .top nav.main { display: none; }
  .menu { display: block; }
}

/* --------------------------------------------------------------- buttons -- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 680;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 6px 16px rgba(236, 116, 38, 0.28);
  font-family: inherit;
  line-height: 1.2;
}
.btn:hover { background: var(--accent-strong); color: var(--on-accent); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: none;
}
.btn.ghost:hover { border-color: var(--ink-faint); background: var(--surface); color: var(--ink); }

.btn.light { background: #fff; color: #1b1b1b; box-shadow: var(--shadow); }
.btn.light:hover { background: #f1f1f1; color: #1b1b1b; }

.btn[aria-disabled="true"] {
  background: var(--surface-2);
  color: var(--ink-faint);
  box-shadow: none;
  cursor: default;
  transform: none;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------------------------------------------------------------- pieces -- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-text);
  font-weight: 720;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.lede {
  color: var(--ink-muted);
  font-size: clamp(1.04rem, 2vw, 1.2rem);
  line-height: 1.6;
  max-width: 62ch;
}

.fine { color: var(--ink-faint); font-size: 0.88rem; }

section { padding: clamp(64px, 9vw, 112px) 0; }
section.tight { padding: clamp(40px, 6vw, 64px) 0; }

.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head .lede { margin-top: 14px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lede { margin-left: auto; margin-right: auto; }
.section-head.center .eyebrow::before { display: none; }

.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.glyph {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--accent-wash);
  color: var(--accent-text);
  flex-shrink: 0;
}
.glyph svg { width: 24px; height: 24px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

/* ------------------------------------------------------------------ hero -- */

.hero {
  position: relative;
  padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 104px);
  overflow: hidden;
}

/* Graph paper, faintly: the survey sheet the app replaces. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 70% 70% at 70% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 30%, #000 20%, transparent 75%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero h1 { margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { margin-bottom: 30px; }
.hero .assure {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 26px;
  color: var(--ink-muted);
  font-size: 0.92rem;
}
.hero .assure span { display: inline-flex; align-items: center; gap: 7px; }
.hero .assure svg { width: 17px; height: 17px; color: var(--accent); }

.stage {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stage .photo {
  position: absolute;
  inset: 40px 0 40px 8%;
  border-radius: 28px;
  background: #b9a37e url("/assets/photos/savanna_peak.jpg") center / cover;
  box-shadow: var(--shadow-lg);
}
.stage .photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.35));
}

.phone {
  position: relative;
  width: 272px;
  aspect-ratio: 9 / 18.6;
  border-radius: 42px;
  background: #0f0f10;
  padding: 10px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, var(--shadow-lg);
  transform: rotate(-2.5deg);
}
.phone .screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 33px;
  overflow: hidden;
  background: #2b3b2a;
}
.phone .screen svg { width: 100%; height: 100%; }

.float {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 10px 14px;
  font-size: 0.84rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  max-width: 230px;
}
.float b { display: block; font-size: 0.88rem; }
.float small { color: var(--ink-muted); font-size: 0.78rem; }
.float .dot {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent-wash);
  color: var(--accent-text);
  flex-shrink: 0;
}
.float .dot svg { width: 18px; height: 18px; }
.float.f1 { left: -8%; top: 56%; animation: bob 7s ease-in-out infinite; }
.float.f2 { right: -8%; top: 12%; animation: bob 8s ease-in-out -3s infinite; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .stage { min-height: 520px; }
  .stage .photo { inset: 30px 4%; }
  .float.f1 { left: 0; top: 62%; }
  .float.f2 { right: 0; top: 6%; }
}

@media (max-width: 480px) {
  .phone { width: 236px; }
  .stage { min-height: 490px; }
  .float { font-size: 0.78rem; padding: 8px 10px; max-width: 180px; }
  .float .dot { width: 28px; height: 28px; }
  .float.f1 { top: auto; bottom: 4px; }
  .float.f2 { display: none; }
}

/* --------------------------------------------------------- who it is for -- */

.strip {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface);
  padding: 22px 0;
}
.strip .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 34px;
  color: var(--ink-muted);
  font-weight: 620;
  font-size: 0.95rem;
}
.strip .label {
  color: var(--ink-faint);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* -------------------------------------------------------------- features -- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.tile {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.tile p { color: var(--ink-muted); font-size: 0.97rem; }
a.tile { text-decoration: none; color: inherit; }
a.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line); }
a.tile .more { margin-top: auto; color: var(--accent-text); font-weight: 650; font-size: 0.92rem; }

/* ---------------------------------------------------------------- feature rows */

.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.row + .row { margin-top: clamp(64px, 9vw, 112px); }
.row.flip .row-art { order: -1; }
.row h2 { margin-bottom: 16px; }
.row .lede { margin-bottom: 22px; }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li {
  position: relative;
  padding-left: 32px;
  color: var(--ink);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14.5 7' fill='none' stroke='%23ec7426' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.ticks li span { color: var(--ink-muted); }

.row-art { position: relative; }

@media (max-width: 860px) {
  .row { grid-template-columns: minmax(0, 1fr); }
  .row.flip .row-art { order: 0; }
}

/* A timeline post, drawn in HTML. */
.post {
  padding: 18px;
  max-width: 440px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}
.post .who { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.post .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 750;
  color: #fff;
  background: linear-gradient(135deg, #f09a55, #c9581a);
  flex-shrink: 0;
}
.post .who b { display: block; font-size: 0.95rem; }
.post .who small { color: var(--ink-faint); font-size: 0.8rem; }
.post p { font-size: 0.95rem; margin-bottom: 12px; }
.post .media {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 6px;
  border-radius: 12px;
  overflow: hidden;
  height: 190px;
}
.post .media div { background-size: cover; background-position: center; }
.post .media .side { display: grid; gap: 6px; }
.post .voice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 8px 12px 8px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  width: fit-content;
}
.post .voice .play {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
}
.post .voice .bars { display: flex; align-items: center; gap: 2px; height: 22px; }
.post .voice .bars i { width: 3px; border-radius: 2px; background: var(--ink-faint); }
.post .voice .bars i.on { background: var(--accent); }
.post .voice small { color: var(--ink-muted); font-size: 0.78rem; }
.post .meta {
  display: flex;
  gap: 18px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-muted);
  font-size: 0.84rem;
}
.post .meta span { display: inline-flex; gap: 6px; align-items: center; }
.post .meta svg { width: 16px; height: 16px; }

/* A form response, drawn in HTML. */
.formcard { padding: 20px; max-width: 420px; margin: 0 auto; box-shadow: var(--shadow-lg); }
.formcard h4 { margin-bottom: 4px; }
.formcard .sub { color: var(--ink-faint); font-size: 0.82rem; margin-bottom: 16px; }
.formcard .q { margin-bottom: 12px; }
.formcard .q label { display: block; font-size: 0.8rem; color: var(--ink-muted); margin-bottom: 4px; font-weight: 600; }
.formcard .q div {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.92rem;
  background: var(--paper);
}
.formcard .gps {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--accent-wash);
  font-size: 0.84rem;
  color: var(--ink);
}
.formcard .gps svg { width: 18px; height: 18px; color: var(--accent-text); flex-shrink: 0; }

/* A call with captions. */
.callcard {
  max-width: 400px;
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  background: #17181a;
  color: #f2f2f2;
  box-shadow: var(--shadow-lg);
  padding: 28px 22px 22px;
  text-align: center;
}
.callcard .ring {
  width: 86px;
  height: 86px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.9rem;
  font-weight: 800;
  background: linear-gradient(135deg, #4c6c8f, #26384d);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.05), 0 0 0 16px rgba(255, 255, 255, 0.03);
}
.callcard b { font-size: 1.15rem; }
.callcard small { display: block; color: #a8acb0; margin-top: 2px; font-size: 0.85rem; }
.callcard .caps {
  margin-top: 22px;
  text-align: left;
  display: grid;
  gap: 8px;
}
.callcard .cap {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 0.9rem;
}
.callcard .cap span { color: #f7a064; font-weight: 700; font-size: 0.76rem; display: block; }
.callcard .cap em { font-style: normal; color: #a8acb0; font-size: 0.82rem; display: block; margin-top: 2px; }
.callcard .controls { display: flex; justify-content: center; gap: 14px; margin-top: 22px; }
.callcard .controls i {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  font-style: normal;
}
.callcard .controls i.on { background: var(--accent); }
.callcard .controls i.end { background: #e5484d; }
.callcard .controls svg { width: 20px; height: 20px; }

/* ------------------------------------------------------------ leadership -- */

.leader {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: center;
  padding: clamp(22px, 4vw, 34px);
  max-width: 900px;
}
.leader img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.leader .role {
  color: var(--accent-text);
  font-weight: 720;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.leader h3 { font-size: clamp(1.4rem, 3vw, 1.85rem); letter-spacing: -0.02em; margin-bottom: 10px; }
.leader .lede { font-size: 1.02rem; margin-bottom: 18px; }
.leader .reach { display: flex; flex-wrap: wrap; gap: 10px; }
.leader .chip { padding: 8px 14px; text-decoration: none; white-space: normal; overflow-wrap: anywhere; }
.leader a.chip:hover { border-color: var(--accent); color: var(--ink); }
.leader .chip svg { width: 16px; height: 16px; color: var(--accent-text); flex-shrink: 0; }
@media (max-width: 640px) {
  .leader { grid-template-columns: minmax(0, 1fr); }
  .leader img { max-width: 200px; }
}

/* ------------------------------------------------------------ dark band -- */

.band {
  position: relative;
  color: #f4f4f4;
  background: #1a120c url("/assets/photos/acacia_dusk.jpg") center 60% / cover;
  isolation: isolate;
}
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(14, 10, 8, 0.92) 0%, rgba(14, 10, 8, 0.7) 55%, rgba(14, 10, 8, 0.35));
  z-index: -1;
}
.band .eyebrow { color: #f7a064; }
.band .lede { color: #d6d2ce; }
.band h2 { max-width: 18ch; }
.band .stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  margin-top: 44px;
}
.band .stat {
  padding: 20px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.band .stat b { display: block; font-size: 1.02rem; margin-bottom: 6px; color: #fff; }
.band .stat p { color: #cfcac5; font-size: 0.93rem; }

/* --------------------------------------------------------------- formats -- */

.formats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.formats .card { padding: 26px; }
.formats h3 { margin-bottom: 6px; }
.formats p { color: var(--ink-muted); font-size: 0.95rem; margin-bottom: 16px; }
@media (max-width: 760px) { .formats { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------------- steps -- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  counter-reset: step;
}
.steps .card { padding: 26px; position: relative; }
.steps .card::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
  margin-bottom: 16px;
}
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--ink-muted); font-size: 0.96rem; }

/* ------------------------------------------------------------------- faq -- */

.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 0 22px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 30px 18px 0;
  font-weight: 650;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent-text);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--ink-muted); padding-bottom: 18px; }

/* ------------------------------------------------------------------- cta -- */

.cta {
  border-radius: 28px;
  padding: clamp(36px, 6vw, 64px);
  background:
    radial-gradient(ellipse 60% 90% at 100% 0%, rgba(236, 116, 38, 0.35), transparent 60%),
    linear-gradient(135deg, #222224, #121213);
  color: #f4f4f4;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: center;
  overflow: hidden;
}
.cta h2 { color: #fff; margin-bottom: 12px; }
.cta p { color: #c9c9cb; }
.cta .actions { justify-content: flex-end; }
.cta .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.cta .btn.ghost:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
@media (max-width: 760px) {
  .cta { grid-template-columns: 1fr; }
  .cta .actions { justify-content: flex-start; }
}

/* ------------------------------------------------------------ page heads -- */

.pagehead {
  padding: clamp(48px, 7vw, 84px) 0 clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(ellipse 50% 100% at 90% 0%, var(--accent-wash), transparent 70%);
}
.pagehead h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 14px; }
.crumbs { font-size: 0.88rem; color: var(--ink-faint); margin-bottom: 18px; }
.crumbs a { color: var(--ink-muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent-text); }

/* ------------------------------------------------------------------ prose -- */

.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-size: 1.6rem; margin-top: 2.2em; scroll-margin-top: 90px; }
.prose h3 { font-size: 1.18rem; margin-top: 1.8em; scroll-margin-top: 90px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 6px;
}
.prose strong { font-weight: 680; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 680; background: var(--surface-2); }

.prose .ui {
  font-weight: 650;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 7px;
  font-size: 0.92em;
  white-space: nowrap;
}

ol.howto { list-style: none; padding: 0; counter-reset: how; }
ol.howto > li {
  counter-increment: how;
  position: relative;
  padding: 2px 0 2px 46px;
  min-height: 32px;
}
ol.howto > li + li { margin-top: 18px; }
ol.howto > li::before {
  content: counter(how);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-wash);
  color: var(--accent-text);
  font-weight: 800;
  font-size: 0.9rem;
}

.note {
  border-left: 3px solid var(--accent);
  background: var(--accent-wash);
  padding: 14px 18px;
  border-radius: 0 12px 12px 0;
  font-size: 0.97rem;
}
.note b:first-child { display: block; margin-bottom: 2px; }

/* ----------------------------------------------------------------- guides -- */

.docs {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(36px, 5vw, 56px) var(--gutter) clamp(64px, 8vw, 100px);
}
.docs aside { position: sticky; top: 90px; align-self: start; }
.docs aside h4 {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  margin: 0 0 10px 12px;
}
.docs aside nav { display: grid; gap: 2px; }
.docs aside a {
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink-muted);
  font-size: 0.94rem;
  font-weight: 540;
}
.docs aside a:hover { background: var(--surface); color: var(--ink); }
.docs aside a[aria-current="page"] {
  background: var(--accent-wash);
  color: var(--accent-text);
  font-weight: 680;
}
.docs .toc {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 56px;
}
.pager a {
  padding: 16px 18px;
  text-decoration: none;
  color: var(--ink);
}
.pager a small { display: block; color: var(--ink-faint); font-size: 0.8rem; }
.pager a b { font-weight: 680; }
.pager a.next { text-align: right; grid-column: 2; }
.pager a:hover { border-color: var(--accent); }

@media (max-width: 860px) {
  .docs { grid-template-columns: 1fr; }
  .docs aside { position: static; }
  .docs aside nav { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .docs .toc { display: none; }
}

/* --------------------------------------------------------------- download -- */

.platforms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.platform { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.platform .glyph { width: 54px; height: 54px; border-radius: 15px; }
.platform .glyph svg { width: 28px; height: 28px; }
.platform p { color: var(--ink-muted); font-size: 0.96rem; }
.platform .req { font-size: 0.86rem; color: var(--ink-faint); }
.platform .actions { margin-top: auto; padding-top: 8px; }
.platform .status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  width: fit-content;
  background: var(--surface-2);
  color: var(--ink-muted);
}
.platform .status.live { background: rgba(46, 160, 67, 0.14); color: #2b8a3e; }
@media (prefers-color-scheme: dark) {
  .platform .status.live { color: #6cd383; }
}

/* ------------------------------------------------------------------ forms -- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

form.enquiry { padding: clamp(22px, 4vw, 34px); display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 620; font-size: 0.92rem; }
.field label small { color: var(--ink-faint); font-weight: 500; }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-wash);
}
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.status-msg {
  display: none;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 0.96rem;
}
.status-msg.show { display: block; }
.status-msg.ok { background: rgba(46, 160, 67, 0.12); border: 1px solid rgba(46, 160, 67, 0.35); }
.status-msg.err { background: rgba(229, 72, 77, 0.1); border: 1px solid rgba(229, 72, 77, 0.35); }

.side-card { padding: 24px; display: grid; gap: 10px; }
.side-card + .side-card { margin-top: 16px; }
.side-card p { color: var(--ink-muted); font-size: 0.95rem; }

/* ----------------------------------------------------------------- footer -- */

footer {
  border-top: 1px solid var(--line-soft);
  background: var(--surface);
  padding: 56px 0 34px;
  font-size: 0.93rem;
}
footer .cols {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 32px;
}
footer .about p { color: var(--ink-muted); margin-top: 12px; max-width: 34ch; }
footer h4 {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  margin-bottom: 12px;
}
footer nav { display: grid; gap: 8px; }
footer nav a { color: var(--ink-muted); text-decoration: none; }
footer nav a:hover { color: var(--ink); }
footer .base {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink-faint);
  font-size: 0.85rem;
}
footer .base a { color: var(--ink-faint); }
@media (max-width: 760px) {
  footer .cols { grid-template-columns: 1fr 1fr; }
  footer .about { grid-column: 1 / -1; }
}

/* ------------------------------------------------------------------- misc -- */

.center { text-align: center; }
.mt-s { margin-top: 12px; }
.mt-m { margin-top: 24px; }
.mt-l { margin-top: 44px; }

.notfound {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 0;
}
.notfound .code {
  font-size: clamp(4rem, 14vw, 8rem);
  font-weight: 850;
  letter-spacing: -0.05em;
  color: var(--accent);
  line-height: 1;
}

/* ----------------------------------------------------------- user manual -- */

.manual-card { display: grid; max-width: none; margin-bottom: 28px; text-decoration: none; color: inherit; }
.manual-card h3 { display: flex; align-items: center; gap: 10px; }
.manual-card h3 svg { width: 22px; height: 22px; color: var(--accent-text); }
.manual-card .more { color: var(--accent-text); font-weight: 650; font-size: 0.92rem; }
.manual-card:hover { border-color: var(--accent); }

.prose.manual h2 { padding-top: 0.6em; border-top: 1px solid var(--line-soft); }
.prose.manual h2:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.prose .table-wrap { overflow-x: auto; }
.prose .shots { display: flex; flex-wrap: wrap; gap: 22px; margin: 1.6em 0; }
.prose figure.shot { margin: 0; width: 250px; max-width: 100%; }
.prose figure.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 26px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--surface);
}
.prose figure.shot figcaption { margin-top: 10px; font-size: 0.86rem; color: var(--ink-muted); line-height: 1.45; }
@media (max-width: 560px) {
  .prose .shots { gap: 14px; }
  .prose figure.shot { width: calc(50% - 7px); }
}
