/* Shared website palette, matched to the supplied convoy sales artwork.
   Layout, map tiles, route colors, and member status colors stay independent. */
:root {
  color-scheme: dark;
  --flock-night: #061c30;
  --flock-panel: #0b2a40;
  --flock-raised: #10364f;
  --flock-field: #082337;
  --flock-white: #f3fbff;
  --flock-muted: #bed6e2;
  --flock-cyan: #19e2ef;
  --flock-line: #337c98;
  --flock-shadow: 0 16px 48px #00121e66;
  color: var(--flock-white);
  background: var(--flock-night);
}
body {color:var(--flock-white);background:var(--flock-night)}
::selection {background:var(--flock-cyan);color:var(--flock-night)}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,
textarea:focus-visible,summary:focus-visible {outline-color:var(--flock-cyan)}
input,select,textarea {color-scheme:dark;accent-color:var(--flock-cyan)}
input::placeholder,textarea::placeholder {color:#aac9d8;opacity:1}

/* Marketing pages and shared navigation. */
.site-header,.map-header,.phone-header,body>header {background:var(--flock-night);border-color:var(--flock-line)}
.brand,footer .brand,.map-header .brand,.phone-header .brand,.review-brand {color:var(--flock-white)}
.brand-icon {background:var(--flock-cyan);color:var(--flock-night)}
.brand-dot,.android-symbol {color:var(--flock-cyan)}
nav,.map-header nav a,.header-link {color:var(--flock-muted)}
.header-link,.text-link,.three-words,.hero-demo-controls,.how,.feature-number,
.support-links,.faq details,.faq details:first-child,.account-offer,.account-divider {border-color:var(--flock-line)}
nav a:hover,.text-link:hover,.header-link:hover {color:var(--flock-cyan)}
.eyebrow,.feature-number,.demo-control-label,.access-tier,
.community .eyebrow,.expanded-plans .ep-eyebrow {color:var(--flock-cyan)}
.hero-description,.availability,.product-caption,.hero-product .product-caption,
.feature-columns p,.faq p,.community p,.access-intro,.access-free,.access-summary,
.access-payment,.access-details,.access-price span,.access-plan ul,
.access-plan-heading>p:not(.eyebrow):not(.selected-device),
.selected-device,
.account-intro,.account-note,#billing-status,.offer-intro,.offer-renewal,
.offer-terms,.offer-status,.offer-payment-note,.offer-footer,
.pricing-section>div>p:not(.eyebrow),.pricing-summary>span,
.reading-page p,.reading-page li,.reading-page .reading-date,footer,
.hero-route-buttons span,.demo-action-row p,.three-words b {color:var(--flock-muted)}
.hero-product:before {background:radial-gradient(ellipse at center,#0e617566,#0b2d4666 64%,#061c3000)}
.phone-shell {background:#02121e;border-color:var(--flock-line);box-shadow:var(--flock-shadow)}
.phone-shell iframe {background:var(--flock-night)}
.orbit-label,.community-example,.pricing-summary,.offer-card,.account-card,
.access-plan,.device-card,.guide-tile,.reading-related,
.hero-route-buttons button {background:var(--flock-panel);color:var(--flock-white);border-color:var(--flock-line);box-shadow:var(--flock-shadow)}
.hero-route-buttons button[aria-pressed=true],.device-card:hover {background:var(--flock-raised);color:var(--flock-white);border-color:var(--flock-cyan)}
.community,.closing,.preview-note {background:#082539;color:var(--flock-white)}
.community-example .example-label,.community-example .record-demo-note,.record-counts {color:var(--flock-muted)}
.record-title,.record-demo {border-color:var(--flock-line)}
.timeline-dot {border-color:var(--flock-cyan)}
.camera-symbol,.record-status {background:var(--flock-raised);color:var(--flock-cyan)}
.timeline-dot.check {background:#1d704c;color:white}
.faq summary:after {color:var(--flock-cyan)}
.device-card svg {stroke:var(--flock-cyan)}
.device-card>span,.device-grid .device-card>span,.plain-button,
.demo-action-row button,.reading-page a:not(.button),.reading-page .guide-tile a,
.convoy-sales p a {color:var(--flock-cyan)}
.hero-demo-link,.hero-demo-link:visited {color:var(--flock-cyan)}
.hero-demo-link:hover {color:#87faff}
.plan-choice {background:var(--flock-panel);color:var(--flock-white);border-color:var(--flock-line)}
.plan-choice.selected {background:var(--flock-raised);border-color:var(--flock-cyan)}
.device-switch {border-color:var(--flock-line)}
.device-switch a.selected {background:var(--flock-cyan);color:var(--flock-night)}

/* Paid plan cards, examples, and expandable detail dialogs. */
.expanded-plans {color:var(--flock-white)}
.expanded-plans .ep-card,.expanded-plans .ep-screen,
.expanded-plans dialog,.expanded-plans .ep-dialog-bar {
  background:var(--flock-panel);color:var(--flock-white);border-color:var(--flock-line);box-shadow:var(--flock-shadow);
}
.expanded-plans .ep-example {background:var(--flock-field);border-color:var(--flock-line)}
.expanded-plans .ep-heading>p:last-child,.expanded-plans .ep-price span,
.expanded-plans .ep-field span,.expanded-plans .ep-route-pair span,
.expanded-plans .ep-features span,.expanded-plans .ep-terms {color:var(--flock-muted)}
.expanded-plans .ep-field,.expanded-plans .ep-screen-tags span,
.expanded-plans .ep-warning-stages,.expanded-plans .ep-features li {border-color:var(--flock-line)}
.expanded-plans [data-select-plan]:hover {border-color:var(--flock-cyan);box-shadow:0 8px 28px #19e2ef20}
.expanded-plans .ep-screen-alert {background:var(--flock-raised);color:var(--flock-white)}
.expanded-plans .ep-expand,.expanded-plans .ep-close {background:var(--flock-raised);color:var(--flock-white);border-color:var(--flock-line)}
.expanded-plans .ep-convoy-line {background-image:linear-gradient(var(--flock-line),var(--flock-line))}
.expanded-plans .ep-convoy-line span {background:var(--flock-cyan);color:var(--flock-night)}
dialog::backdrop,.expanded-plans dialog::backdrop {background:#00101ddd}
.offer-flow li::before {background:var(--flock-cyan);color:var(--flock-night)}
.account-card input,.account-card select {background:var(--flock-field);color:var(--flock-white);border-color:var(--flock-line)}
#account-status {background:var(--flock-raised);color:var(--flock-white)}

/* Map chrome; cartography and red/green route meanings are preserved. */
.trip-panel,.phone-tabs,.install-sheet,.report-page,
.identity,.card,dialog,.event-controls {background:var(--flock-panel);color:var(--flock-white);border-color:var(--flock-line)}
.trip-panel {border-color:var(--flock-line)}
.trip-panel input,.trip-panel select,.event-controls input,.event-controls select,
.event-controls textarea,.report-page input,.report-page select,
.card input,.card select,.card textarea {background:var(--flock-field);color:var(--flock-white);border-color:var(--flock-line)}
.destination-bar {background:var(--flock-field);border-color:var(--flock-cyan)}
.destination-bar input,.destination-bar button {background:var(--flock-field);color:var(--flock-white)}
.embed.demo-entry .destination-bar input {border-color:var(--flock-line)}
.map-eyebrow,.service-note,.source-note,.route-explanation,
#trip-status,#position-status,#data-status,.route-option .route-count,
.route-option.selected .route-count,.trip-panel small {color:var(--flock-muted)}
.route-option {background:var(--flock-field);color:var(--flock-white);border-color:var(--flock-line)}
.route-option.selected {background:var(--flock-raised)}
#search-results {background:var(--flock-field);border-color:var(--flock-line)}
#search-results button {color:var(--flock-white)}
#search-results button:hover {background:var(--flock-raised)}
#data-status,.directions li {border-color:var(--flock-line)}
.map-legend,#map-camera-summary {background:#082337ed;color:var(--flock-white);border-color:var(--flock-line)}
.trip-map-panel .map-legend {background:var(--flock-panel);border-color:var(--flock-line)}
.map-location-entry p {background:#082337ed;color:var(--flock-white)}
.map-location-entry button {background:var(--flock-cyan);color:var(--flock-night);border-color:var(--flock-line)}
.avoidance-control,.avoidance-control button {color:var(--flock-muted)}
#origin-location {color:var(--flock-cyan)}
.switch-track {background:#526c7b}
.avoidance-control button[aria-checked=true] .switch-track {background:var(--flock-cyan)}
.embed.demo-entry #destination {caret-color:var(--flock-cyan)}
.embed.demo-entry #destination:focus {outline-color:var(--flock-cyan)}
#route-overview,.embed #map-camera-summary {background:var(--flock-panel);color:var(--flock-white);border-color:var(--flock-line)}
#comparison-note,#navigation-status {color:var(--flock-muted)}
#next-turn {background:var(--flock-raised);color:var(--flock-white)}
#compare-again,.navigation-actions button,.usual-stops button {background:var(--flock-raised);color:var(--flock-white);border-color:var(--flock-line)}
.navigation-actions #start-navigation {background:var(--flock-cyan);color:var(--flock-night);border-color:var(--flock-cyan)}
#origin.demo-start-highlight,#destination.demo-start-highlight {outline-color:var(--flock-cyan);background:var(--flock-field);caret-color:var(--flock-cyan)}
@keyframes demo-start-attention {
  from {box-shadow:0 0 0 8px #19e2ef44;background:var(--flock-raised)}
  to {box-shadow:0 0 0 0 #19e2ef00;background:var(--flock-field)}
}
.service-note a,.report-page a {color:var(--flock-cyan)}
.phone-tabs {border-color:var(--flock-line)}
.phone-tabs button {background:transparent;color:var(--flock-muted)}
.phone-tabs button[aria-current=page] {background:var(--flock-raised);color:var(--flock-cyan)}
.phone-status {background:#513e18;color:#ffe2a4}
.report-row {border-color:var(--flock-line)}
.maplibregl-popup-content,.map-point-label {background:var(--flock-panel);color:var(--flock-white)}
.map-popup a,.camera-popup a {color:var(--flock-cyan)}
.maplibregl-popup-anchor-bottom .maplibregl-popup-tip {border-top-color:var(--flock-panel)}
.maplibregl-popup-anchor-top .maplibregl-popup-tip {border-bottom-color:var(--flock-panel)}
.camera-popup .popup-status {color:#ffcd72}

/* Location guides and the legacy event view share the same surfaces. */
.location-intro>p:not(.eyebrow),.location-stats span,.public-map-section>p,
.location-followup p,.location-trip>p,#camera-records span,.place-card p,
.section-kicker,#event-members,.update-compose-footer span,
.trip-update .update-author,.trip-update time,.group-roster li>span,
.travel-details p,.map-info p,#event-speed,.empty-road-state,
.empty-road-state h3,.road-alert p {color:var(--flock-muted)}
.location-stats strong,.place-card h2 a,.sign-in-link {color:var(--flock-cyan)}
.public-map-section,.place-card,.event-map-panel,.tab-menu,
.location-trip-frame {background:var(--flock-panel);color:var(--flock-white);border-color:var(--flock-line)}
.camera-list-panel,#camera-records li+li {border-color:var(--flock-line)}
.public-map-toolbar button,.camera-list-panel button,.road-alert button,
.map-preferences select {background:var(--flock-raised);color:var(--flock-white);border-color:var(--flock-line)}
.public-map-toolbar .selected,.event-controls .tab-menu button[aria-selected=true] {background:var(--flock-cyan);color:var(--flock-night);border-color:var(--flock-cyan)}
.check-in-badge,.update-organizer-tag,.map-count {background:var(--flock-raised);color:var(--flock-white);border-color:var(--flock-line)}
.other-reports summary {color:var(--flock-white)}
.event-controls .danger-text {color:#ff9ea8}
.group-roster li.checked-in {background:#143e37;color:#9af0bd}
.group-roster li.pending,.check-in-badge.pending {background:var(--flock-raised);color:var(--flock-muted);border-color:var(--flock-line)}

/* Groups, messages, status, and consent. Pins retain their status colors. */
.intro,.hint,small,.delivery,.travel-description,.travel-steps p,
.event-controls .field-note,.event-map-note {color:var(--flock-muted)}
.convoy-app input:not([type=checkbox]),.convoy-app select,.convoy-app textarea {background:var(--flock-field);color:var(--flock-white);border-color:var(--flock-line)}
.convoy-app button:not(.member-pin):not(.report-pin) {background:var(--flock-raised);color:var(--flock-white);border-color:var(--flock-line)}
.convoy-app a {color:var(--flock-cyan)}
.identity,.message,.roster-row,.quick-guide,.travel-steps,
.travel-map-link {border-color:var(--flock-line)}
.connection,.service-banner,.reason,.position-note {background:var(--flock-raised);color:var(--flock-white);border-color:var(--flock-line)}
.alerts {background:#082337ed}
.ready,.delivery.waiting {color:#ffcd72}
.active {color:#79e9a9}
.delivery.failed,.delivery.expired {color:#ff9ea8}
#event-messages:empty::after {color:var(--flock-muted)}
.travel-steps li>span {background:var(--flock-raised);color:var(--flock-cyan)}
.analytics-consent {background:#082539;color:var(--flock-white);border:1px solid var(--flock-line);box-shadow:var(--flock-shadow)}
.analytics-preferences {background:transparent;color:var(--flock-muted);border-color:var(--flock-line)}

/* Shared secondary and primary actions: cyan means an action, not a route. */
.input-row button,.origin-actions button,.trip-actions button,
.phone-header button,.install-sheet button,.report-page button,
.card button,.alerts button,.event-controls button,.account-card .secondary,
.record-demo button,.button.light,.expanded-plans .ep-expand,.analytics-consent button {
  background:var(--flock-raised);color:var(--flock-white);border-color:var(--flock-line);
}
.primary,.plan-button,.expanded-plans .ep-choice,
.destination-bar #destination-search,.event-controls .action-primary,
.access-plan .button.primary {
  background:linear-gradient(135deg,#19e2ef,#1ca6d9);color:#031c2b;border-color:var(--flock-cyan);
}
.convoy-app button.primary {background:var(--flock-cyan);color:var(--flock-night);border-color:var(--flock-cyan)}
.primary:hover,.plan-button:hover,.expanded-plans .ep-choice:hover {background:#66f1f5;color:#031c2b}
.account-card input:focus {outline-color:var(--flock-cyan)}

/* Browser print uses ink-efficient paper colors. */
@media print {
  :root {color-scheme:light;background:white;color:#14271d}
  body {background:white;color:#14271d}
  .reading-page p,.reading-page li,.reading-page a:not(.button),.reading-page .reading-date {color:#14271d}
}
/* Readable event preview fills the Convoy Command card's unused space. */
.ep-convoy-value{margin:20px 0 0;border:0;padding:0;background:transparent}
.ep-convoy-value .ep-screen{padding:16px;background:#082437;border:1px solid #2987a5}
.ep-event-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.ep-event-heading strong{font-size:20px;color:#f2fbff}
.ep-event-heading>span{color:#47eaf0;font-size:16px}
.ep-connected-label{font-size:16px;margin:12px 0!important}
.expanded-plans .ep-member-strip{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:3px;margin-bottom:12px}
.expanded-plans .ep-member-strip>span{display:grid;place-items:center;max-width:28px;width:100%;height:auto;aspect-ratio:1;margin:0;box-sizing:border-box;border:1px solid #22e0e9;border-radius:50%;background:#104059;color:#eefaff;font-size:16px;font-weight:750}
.ep-report-example{display:flex;align-items:center;gap:12px;background:#10374d;padding:12px;border-radius:9px;border-left:3px solid #19e2ef}
.expanded-plans .ep-report-icon{display:grid;place-items:center;width:30px;height:30px;background:#14d8e4;color:#032032;border-radius:50%;font-size:23px;font-weight:800;flex-shrink:0;margin:0}
.ep-report-example strong,.ep-report-example span,.ep-event-stop strong,.ep-event-stop span{display:block;font-size:16px;line-height:1.45}
.ep-report-example strong,.ep-event-stop strong{color:#f2fbff;font-size:18px}
.ep-event-delivery{font-size:16px;line-height:1.45;margin:12px 0!important}
.ep-event-stop{padding-top:12px;border-top:1px solid #26718b}
.ep-convoy-value .ep-preview-note{font-size:14px;line-height:1.5;margin-top:12px;color:#bad8e8}

/* The portrait artwork and annual choices must fit small screens. */
.convoy-sales-picture{min-width:0}.convoy-sales-picture img{max-width:100%;height:auto;object-fit:contain}.expanded-plans .ep-annual-price{color:var(--flock-cyan);font-size:18px}.expanded-plans .ep-annual-choice{margin-top:0;background:var(--flock-raised);color:var(--flock-white);border-color:var(--flock-cyan)}.expanded-plans .ep-choice{flex-shrink:0}.offer-interval-label{display:block;margin:24px 0 8px;font-size:18px;font-weight:700}#billing-interval,#subscription-interval{width:100%;padding:12px;border-radius:10px;background:var(--flock-field);color:var(--flock-white);border:1px solid var(--flock-line);font-size:18px}
