/* FieldMosaic website. Gardner Avionics palette: navy #1B2F4B, sky #2F7FC1, ground #B8681E,
   shared with the SightControl and Crux EFIS sites, plus hillshade greens for the survey art. */
:root {
  --navy: #1b2f4b;
  --night: #0b1626;
  --panel: #12233a;
  --sky: #2f7fc1;
  --sky-hi: #5fa8e6;
  --ground: #b8681e;
  --ground-hi: #e08a3c;
  --ink: #e9f0f7;
  --muted: #9fb1c6;
  --line: rgba(159, 177, 198, .18);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font: 17px/1.6 "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--sky-hi); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(28px, 3.4vw, 40px); }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }
.section-lede { color: var(--muted); max-width: 44em; margin: 0 0 48px; font-size: 18px; }

.preview-banner {
  background: repeating-linear-gradient(45deg, #5b3a00, #5b3a00 12px, #6e4700 12px, #6e4700 24px);
  color: #ffe3a3; text-align: center; font-weight: 600; padding: 10px 16px; font-size: 14px;
}

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(11, 22, 38, .82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 14px; }
.brand img { background: #fff; border-radius: 50%; padding: 2px; }
.nav nav { display: flex; gap: 28px; }
.nav nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav nav a:hover { color: var(--ink); }

/* hero */
.hero {
  padding: 88px 0 104px;
  background:
    radial-gradient(1000px 500px at 80% 10%, rgba(47, 127, 193, .28), transparent 60%),
    radial-gradient(800px 400px at 10% 100%, rgba(184, 104, 30, .18), transparent 60%),
    var(--night);
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.6vw, 68px); font-weight: 700; }
.lede { font-size: 21px; color: #c7d5e4; max-width: 30em; }
.pill { display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ground-hi); border: 1px solid rgba(224, 138, 60, .45); border-radius: 999px; padding: 5px 14px; margin-bottom: 22px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 18px; }
.hero-note { color: var(--muted); font-size: 14px; margin: 0; }
.button { display: inline-block; padding: 14px 26px; border-radius: 999px; background: var(--sky); color: #fff; font-weight: 600; text-decoration: none; border: 1px solid var(--sky); transition: background .2s, transform .2s; }
.button:hover { background: var(--sky-hi); transform: translateY(-1px); }
.button.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.button.ghost:hover { border-color: var(--muted); background: rgba(255, 255, 255, .04); }
.button.disabled { background: transparent; color: var(--muted); border: 1px dashed var(--muted); cursor: default; transform: none; }





/* features */
.features { background: var(--panel); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.card { position: relative; background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015)); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card h3 { font-size: 20px; margin-top: 18px; }
.card p { color: #c2d0df; margin: 0; font-size: 16px; }
.card.preview { border-style: dashed; border-color: rgba(224, 138, 60, .6); }
.icon { width: 42px; height: 42px; padding: 9px; border-radius: 11px; background: rgba(47, 127, 193, .16); stroke: var(--sky-hi); stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.badge { display: inline-block; margin-top: 16px; font-size: 12px; font-weight: 600; color: var(--ground-hi); border: 1px solid rgba(224, 138, 60, .5); border-radius: 6px; padding: 3px 8px; }

/* system */
.arch { display: flex; align-items: stretch; gap: 0; }
.arch-node { flex: 1; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; display: flex; flex-direction: column; gap: 6px; }
.arch-node b { font-size: 17px; }
.arch-node span { color: var(--muted); font-size: 14.5px; }
.arch-link { flex: 0 0 40px; align-self: center; height: 2px; background: linear-gradient(90deg, var(--sky), var(--ground)); position: relative; }
.arch-link::after { content: ""; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left: 7px solid var(--ground); }

/* gallery */
.gallery { background: var(--panel); }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.shots figure { margin: 0; }
.shots img { border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0, 0, 0, .45); }
.shots figcaption { color: var(--muted); font-size: 14.5px; margin-top: 12px; }

/* builder */
.builder { background: linear-gradient(180deg, #f4f7fa, #e8eef4); color: var(--navy); }
.builder-inner { display: grid; grid-template-columns: 360px 1fr; gap: 64px; align-items: center; }
.builder p { font-size: 19px; color: #31465f; margin: 0; }

/* roadmap */
.roadmap { border-top: 1px solid var(--line); }
.roadmap p { color: #c2d0df; max-width: 44em; font-size: 18px; }

/* workshop */
.workshop-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0; }
.stats div { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.stats dt { color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; }
.stats dd { margin: 4px 0 0; font-size: 22px; font-weight: 700; }
.since { color: var(--muted); font-size: 14px; }
.log { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.log li { position: relative; padding: 0 0 22px 26px; display: grid; gap: 2px; }
.log li::before { content: ""; position: absolute; left: -7px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--night); border: 2px solid var(--sky); }
.log time { color: var(--ground-hi); font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.log span { color: #d3dfeb; }
.log .empty { color: var(--muted); }

/* call to action */
.cta-band { text-align: center; background: radial-gradient(700px 300px at 50% 0%, rgba(47, 127, 193, .3), transparent 70%), var(--panel); }
.cta-inner p { color: var(--muted); font-size: 18px; margin: 0 0 28px; }

/* footer */
footer { padding: 48px 0 40px; border-top: 1px solid var(--line); }
.notice { border: 1.5px solid var(--ground); border-radius: 12px; padding: 18px 22px; margin-bottom: 28px; }
.notice b { color: var(--ground-hi); font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; }
.notice p { margin: 6px 0 0; color: #c7d5e4; font-size: 14.5px; }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 13.5px; }

@media (max-width: 900px) {
  section { padding: 72px 0; }
  .hero-inner, .builder-inner, .workshop-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { order: -1; max-width: 320px; margin: 0 auto; }
  .arch { flex-direction: column; }
  .arch-link { flex: 0 0 28px; width: 2px; height: auto; align-self: center; background: linear-gradient(180deg, var(--sky), var(--ground)); }
  .arch-link::after { right: -4px; top: auto; bottom: -1px; border: 5px solid transparent; border-top: 7px solid var(--ground); }
  .nav nav { display: none; }
  .builder-inner .lockup { max-width: 280px; }
}
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; } }

/* Let grid children shrink below long identifiers (e.g. EFIS_GNSS_STATUS) on narrow screens. */
.hero-inner > *, .builder-inner > *, .workshop-inner > *, .log li { min-width: 0; }
body { overflow-wrap: break-word; }
.log span { overflow-wrap: anywhere; }

/* Print / PDF: keep the dark backgrounds and colours, drop the sticky nav. */
@media print {
  /* Wide page in A4 proportions so the desktop layout prints, not the phone one. */
  @page { size: 1280px 1810px; margin: 0; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  html, body { background: var(--night); }
  .nav { position: static; backdrop-filter: none; background: var(--night); }
  .card, .arch-node, .stats div, .log li, .notice { break-inside: avoid; }
  section { padding: 56px 0; }
}
@media print {
  h2, .section-lede { break-after: avoid; }
  .hero, .system, .builder, .workshop-inner, .cta-band { break-inside: avoid; }
}
/* Force the desktop layout in print, whatever width the print engine reports. */
@media print {
  .hero-inner { grid-template-columns: 1.1fr .9fr; gap: 56px; }
  .builder-inner { grid-template-columns: 360px 1fr; gap: 64px; }
  .workshop-inner { grid-template-columns: .8fr 1.2fr; gap: 64px; }
  .hero-art { order: 0; max-width: none; margin: 0; }
  .nav nav { display: flex; }
  .arch { flex-direction: row; }
  .arch-link { flex: 0 0 40px; width: auto; height: 2px; background: linear-gradient(90deg, var(--sky), var(--ground)); }
  .arch-link::after { right: -1px; top: -4px; bottom: auto; border: 5px solid transparent; border-left: 7px solid var(--ground); }
  .stats { grid-template-columns: repeat(3, 1fr); }
}

/* card status note (e.g. part of a feature still in development) */
.card .note { margin-top: 14px; font-size: 13.5px; color: var(--ground-hi); }

/* roadmap grid */
.roadmap { background: var(--night); border-top: 1px solid var(--line); }
.road-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.road-item { border: 1px dashed rgba(159, 177, 198, .35); border-radius: 12px; padding: 20px; break-inside: avoid; }
.road-item h3 { font-size: 17px; margin: 12px 0 6px; }
.road-item p { margin: 0; color: var(--muted); font-size: 14.5px; }
.status { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; border-radius: 6px; padding: 3px 8px; }
.status.dev { color: #ffd9b0; background: rgba(184, 104, 30, .35); }
.status.planned { color: var(--sky-hi); background: rgba(47, 127, 193, .2); }
@media print { .roadmap { break-before: page; } .pill { break-after: avoid; } }


/* ---- shared with the SightControl site ---- */
.brand span { letter-spacing: .12em; }
.brand b { color: var(--sky-hi); font-weight: 600; }
.brand img { background: none; padding: 0; border-radius: 8px; }
.hero h1 { font-size: clamp(42px, 6vw, 76px); }
.hero .pill { border-radius: 14px; line-height: 1.6; }
.logo-banner { background: #fff; text-align: center; padding: 24px 0; }
.logo-banner img { display: block; margin: 0 auto; width: 360px; max-width: 80%; height: auto; }
.workshop-inner.no-log { grid-template-columns: 1fr; }
.builder .lockup { background: #fff; border-radius: 16px; padding: 22px; box-shadow: 0 12px 30px rgba(27, 47, 75, .12); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 700; color: var(--ground-hi); margin-bottom: 12px; }
.pro-points { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pro-points.four { grid-template-columns: repeat(4, 1fr); }
.pro-points li { border-left: 3px solid var(--ground-hi); padding-left: 18px; break-inside: avoid; }
.pro-points h3 { font-size: 19px; margin: 0 0 6px; }
.pro-points p { color: #c2d0df; margin: 0; font-size: 16px; }
.professional { background: linear-gradient(180deg, #0e1c30, var(--night)); }
.hero-video { width: 100%; max-width: 560px; margin: 0 auto; display: block; border-radius: 22px; border: 2px solid #2a4466; background: #06101d; aspect-ratio: 16 / 10; object-fit: cover; box-shadow: 0 30px 60px rgba(0, 0, 0, .55); }
.cta-icon { width: 112px; height: 112px; margin: 0 auto 26px; border-radius: 26px; box-shadow: 0 18px 40px rgba(0, 0, 0, .5); }

/* Privacy / Support pages */
.legal { max-width: 780px; padding-top: 56px; padding-bottom: 72px; }
.legal h1 { font-size: clamp(32px, 4vw, 44px); }
.legal h2 { font-size: 22px; margin-top: 40px; }
.legal p, .legal li { color: var(--muted); font-size: 17px; line-height: 1.6; }
.legal b { color: var(--ink); }
.legal ul, .legal ol { padding-left: 1.3em; }
.legal li { margin-bottom: .6em; }
.legal a, .foot a { color: var(--sky-hi); }
.legal .updated { font-size: 14px; }

/* ---- FieldMosaic additions ---- */

/* hero survey map: tiles fill in, the drone flies its lines */
.scene { width: 100%; max-width: 560px; margin: 0 auto; display: block; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .55)); }
.scene .tile { opacity: 0; animation: tile 12s linear infinite; }
@keyframes tile { 0% { opacity: 0; } 4%, 86% { opacity: 1; } 94%, 100% { opacity: 0; } }
.scene .drone { offset-rotate: auto; animation: fly 12s linear infinite; }
@keyframes fly { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.scene .beam { animation: beam 1.2s ease-in-out infinite; }
@keyframes beam { 0%, 100% { opacity: .15; } 50% { opacity: .9; } }
.scene .ping { transform-box: fill-box; transform-origin: center; animation: ping 2.4s ease-out infinite; }
@keyframes ping { from { transform: scale(.4); opacity: .9; } to { transform: scale(2.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .scene .tile { animation: none; opacity: 1; }
  .scene .drone, .scene .beam, .scene .ping { animation: none; }
  html { scroll-behavior: auto; }
}
@media print { .scene .tile { animation: none; opacity: 1; } .scene .drone, .scene .beam, .scene .ping { animation: none; } }

/* proof band: numbers from real jobs */
.numbers { padding: 72px 0; background: linear-gradient(180deg, var(--night), #0e1c30); border-top: 1px solid var(--line); }
.numbers h2 { font-size: clamp(24px, 2.8vw, 32px); }
.numbers .section-lede { margin-bottom: 32px; }
.figures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 0; }
.figures div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px; break-inside: avoid; }
.figures dd { margin: 0; font-size: clamp(28px, 3vw, 38px); font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.figures dt { margin-top: 4px; color: var(--sky-hi); font-weight: 600; font-size: 15px; }
.figures p { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }

/* feature card icons get the survey greens on hover */
.card { transition: border-color .2s, transform .2s; }
.card:hover { border-color: rgba(95, 168, 230, .45); transform: translateY(-2px); }

/* laser check */
.laser { background: var(--night); }
.laser-inner { display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: start; }
.laser-inner > * { min-width: 0; }
.laser .pro-points { grid-template-columns: 1fr; gap: 22px; }
.laser-callout { background: linear-gradient(180deg, rgba(229, 72, 59, .12), rgba(229, 72, 59, .03)); border: 1px solid rgba(229, 72, 59, .45); border-radius: var(--radius); padding: 28px; }
.laser-callout b { display: block; font-size: 64px; line-height: 1; color: #ff8a7a; letter-spacing: -.02em; }
.laser-callout p { margin: 14px 0 0; color: #d6c2c0; font-size: 16px; }
.laser-art { margin-top: 26px; }

/* workflow steps: numbered nodes on the shared arch rail */
.workflow { background: var(--panel); }
.arch-node { position: relative; padding-top: 46px; }
.arch-node i { position: absolute; top: 16px; left: 20px; font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--ground-hi); }
.arch-node.go { border-color: var(--sky); background: linear-gradient(180deg, rgba(47, 127, 193, .25), rgba(47, 127, 193, .08)); }

/* time saving */
.time { background: linear-gradient(180deg, #0e1c30, var(--night)); }

/* gallery of app captures */
.shots { grid-template-columns: repeat(2, 1fr); }
.shots figure:last-child:nth-child(odd) { grid-column: 1 / -1; }
.shots figure:last-child:nth-child(odd) img { aspect-ratio: 16 / 8; object-fit: cover; object-position: 50% 70%; width: 100%; }

/* field kit */
.kit { background: var(--panel); }
.kit .pro-points li { border-left-color: var(--sky); }

/* value */
.value { background: radial-gradient(800px 360px at 15% 0%, rgba(184, 104, 30, .22), transparent 65%), var(--night); }
.value .pro-points li { border-left-color: var(--ground-hi); }
.value h2 { max-width: 18em; }

@media (max-width: 900px) {
  .figures { grid-template-columns: repeat(2, 1fr); }
  .laser-inner { grid-template-columns: 1fr; gap: 36px; }
  .pro-points, .pro-points.four { grid-template-columns: 1fr; gap: 20px; }
  .shots { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .figures { grid-template-columns: 1fr; } }
@media print {
  .figures { grid-template-columns: repeat(4, 1fr); }
  .laser-inner { grid-template-columns: 1fr 340px; }
  .pro-points { grid-template-columns: repeat(3, 1fr); }
  .pro-points.four { grid-template-columns: repeat(4, 1fr); }
  .laser .pro-points { grid-template-columns: 1fr; }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .card:hover { transform: none; }
}
