/* Dark mode for the public site (to-do item 55, the user 2026-10-02; built 2026-11-22 overnight, Documents/website-dark-mode-2026-11-22.md).
   _Layout links this file with media="(prefers-color-scheme: dark)", after public.css: it follows the device's setting, no
   switch. The admin pages (_AdminLayout) and the emails stay light. Bootstrap here is 5.1 (no data-bs-theme), so its
   components are set by hand below.

   Colors: graphite pages (#121212 / #1b1b1b surfaces, as the header's #262626 family), text #ececec; links and accents in a
   brighter amber, #ffb23f (the to-do's dark-mode amber, 10.9:1 on the page); buttons keep the app's #b45309 with white text
   (5.0:1), so they read the same in both modes. */

:root {
  color-scheme: dark;
  --al-text: #ececec;
  --al-muted: #a8a8a8;
  --al-border: #4a4a4a;
  --al-line: #333333;
  --al-panel: #1f1f1f;
  --al-warning-text: #ffb23f;
  --al-link: #ffb23f;
  --al-link-hover: #ffcc7a;
  --bs-body-color: var(--al-text);
  --bs-body-bg: #121212;
  --bs-link-color-rgb: 255, 178, 63;
  --bs-link-hover-color-rgb: 255, 204, 122;
}

body {
  background-color: #121212;
}

body.public {
  --page: #121212;
  --surface: #1b1b1b;
  --surface-2: #242424;
  --outline: #333333;
  --outline-strong: #4a4a4a;
  --text: #ececec;
  --text-2: #b4b4b4;
  --text-muted: #8f8f8f;
  /* text accents (eyebrows, icons, outline buttons); the filled buttons use --accent, which stays the app's amber */
  --primary: #ffb23f;
  --primary-deep: #ffcc7a;
  --primary-tint: rgba(255, 178, 63, 0.08);
  --success: #4cc27a;
  --warning-text: #ffb23f;
  --error: #ff6b6b;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 8px 24px -12px rgba(0, 0, 0, 0.7);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.5), 0 20px 44px -20px rgba(0, 0, 0, 0.8);
  background-image:
    radial-gradient(1000px 560px at 82% -120px, rgba(255, 122, 26, 0.12), transparent 70%),
    radial-gradient(760px 460px at -12% 6%, rgba(243, 146, 0, 0.05), transparent 70%);
}

/* links: the bright amber; buttons keep their own colors */
a, .public a {
  color: var(--al-link);
}

a:hover, .public a:hover {
  color: var(--al-link-hover);
}

.public .btn-primary, .public #submit, .btn-primary, #submit {
  color: #fff;
}

.btn-outline-primary, .public .btn-outline-primary {
  color: var(--al-link);
  border-color: var(--al-link);
}

.btn-outline-primary:hover, .public .btn-outline-primary:hover {
  color: #fff;
}

.btn-link {
  color: var(--al-link);
}

.gradient-text {
  background: linear-gradient(100deg, #ffb23f 0%, #ff9a3c 45%, #ff7a1a 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* site.css's accents in the app's amber, as text */
.feature-tab, .feature-icon, .soon.scope, .transfer-adapter summary, .adapter-checks li::before {
  color: var(--al-link);
}

.price-launch {
  color: #4cc27a;
}

/* text Bootstrap and the pages set dark on purpose */
.text-muted, .text-secondary {
  color: var(--al-muted) !important;
}

.text-dark {
  color: var(--al-text) !important;
}

.text-danger {
  color: #ff6b6b !important;
}

.text-success {
  color: #4cc27a !important;
}

.public .home-lead, .public .chassis-lead, .public .feature p {
  color: #c8c8c8;
}

/* surfaces that were white, or white to cream */
.public .hero-signup, .public .feature-wide, .public .purchase-option.chosen {
  background: linear-gradient(160deg, #2a1d0e, #1b1b1b 60%);
}

.bg-white, .bg-light {
  background-color: var(--al-panel) !important;
}

.border, .border-top, .border-bottom, .border-start, .border-end {
  border-color: var(--al-line) !important;
}

hr {
  color: #5a5a5a;
}

/* forms */
.form-control, .form-select,
.public .form-control, .public .form-select,
.public .purchase-check .form-control, .public .hero-signup-row .form-control {
  background-color: #1b1b1b;
  color: var(--al-text);
  border-color: var(--al-border);
}

.form-control:focus, .form-select:focus {
  background-color: #1b1b1b;
  color: var(--al-text);
}

.form-control::placeholder {
  color: #7a7a7a;
}

.form-control:disabled, .form-control[readonly], .form-select:disabled {
  background-color: #262626;
}

/* Bootstrap 5.1's select arrow is a dark svg */
.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23cfcfcf' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}

.form-check-input {
  background-color: #1b1b1b;
  border-color: #6a6a6a;
}

.form-text {
  color: var(--al-muted);
}

/* tables */
.table {
  --bs-table-bg: transparent;
  --bs-table-striped-bg: rgba(255, 255, 255, 0.04);
  --bs-table-hover-bg: rgba(255, 255, 255, 0.06);
  --bs-table-striped-color: var(--al-text);
  --bs-table-hover-color: var(--al-text);
  color: var(--al-text);
  border-color: var(--al-line);
}

.table > :not(:last-child) > :last-child > * {
  border-bottom-color: #5a5a5a;
}

.public .compare-table th:nth-child(2), .public .compare-table td:nth-child(2) {
  background: rgba(255, 122, 26, 0.08);
}

/* alerts */
.alert-warning {
  color: #ffd28a;
  background-color: #3a2a0d;
  border-color: #6b4a12;
}

.alert-success {
  color: #9be3b5;
  background-color: #10301d;
  border-color: #1f5a36;
}

.alert-danger {
  color: #ffb3b3;
  background-color: #3a1414;
  border-color: #6b2424;
}

.alert-info, .alert-secondary, .alert-light {
  color: var(--al-text);
  background-color: #1f2428;
  border-color: #34404a;
}

.alert a {
  color: inherit;
}

/* the dropdown under the address field */
.address-suggestions {
  background-color: #1f1f1f;
  color: var(--al-text);
  border-color: var(--al-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.list-group-item {
  background-color: #1b1b1b;
  color: var(--al-text);
  border-color: var(--al-line);
}

.badge.bg-light {
  color: var(--al-text);
}

/* the screenshots' drawn phones and the band at the end keep their own (already dark) look; images get no filter */

/* site.css's own hard-coded light colors, by section */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem #121212, 0 0 0 0.25rem #ff7a1a;
}

.compat .form-control, .compat .form-select,
.purchase .form-control, .purchase .form-select,
.home-check .form-control, .home-check .form-select,
.purchase-check .form-control, .hero-signup-row .form-control,
/* public.css's white fields, as specific as its own rule (".public .compat .form-select" beat the lines above: white
   selects with light text on the compatibility page, the user 2026-11-23) */
.public .compat .form-control, .public .compat .form-select,
.public .purchase .form-control, .public .purchase .form-select,
.public .home-check .form-control, .public .home-check .form-select {
  background-color: #1b1b1b;
  border-color: var(--al-border);
  color: var(--al-text);
}

.compat-row, .home-section, .transfer-adapter, .purchase-summary, .purchase-total, .purchase-subtotal,
.purchase-check, .signup-box-compact, .fault-meaning {
  border-color: var(--al-line) !important;
}

.fault-list li, .fault-modules li, .compare-table tr, .coding-settings details {
  border-color: #2e2e2e;
}

.compat-head, .compat-variants, .compat-label, .chassis-crumbs, .support-tile-label, .hero-adapter-text span,
.compat-mark.no, .compat-recognized, .compat-cell.none, .address-suggestions li.address-credit {
  color: var(--al-muted);
}

.compat-variant, .purchase-why, .home-lead, .chassis-lead {
  color: #c8c8c8;
}

.compat-cell.all, .purchase-discount, .signup-box-thanks {
  color: #4cc27a;
}

.compat-cell.most, .compat-cell.some, .round20-warning h2, details.round20-warning > summary {
  color: #ffb23f;
}

.fault-text, .purchase-or, .purchase-wallet-lead {
  color: var(--al-text);
}

/* warning, note and panel boxes */
.round20-warning, .ios-pending, .hero-signup {
  background-color: #2a1f0e;
  border-color: #6b4a12;
}

.purchase-returns, .support-returns, .socket-which {
  background-color: #1f1f1f;
}

.signup-box-compact {
  background: #1b1b1b;
}

.launch-pricing {
  background-color: #10301d;
  border-color: #1f5a36;
}

.compat-realcar {
  color: #4cc27a;
  border-color: #2f7a4b;
}

.coding-oncar {
  color: #4cc27a;
  border-color: #2f7a4b;
}

.purchase-option {
  border-color: var(--al-border);
}

.purchase-option.chosen, .address-suggestions li.active, .address-suggestions li:hover {
  background-color: #2a1f0e;
}

.cable-offer {
  background: #1b1b1b;
  border-color: var(--al-line);
}

.hero-adapter {
  border-color: var(--al-line);
}

.purchase-or::after {
  border-color: #3a3a3a;
}

.purchase-error {
  background: #3a1414;
  border-color: #8a2a2a;
  color: #ffb3b3;
}

.purchase-error-answers .btn {
  background: #1b1b1b;
  color: var(--al-text);
}

.soon {
  background-color: #4a4a4a;
}

/* the product photos are shot on white: their white tiles stay, with a soft edge (.adapter-photo, .hero-adapter-photo,
   .purchase-thumb, .cable-compact img) */
.purchase-thumb {
  border-color: #3a3a3a;
}

.purchase-promo > summary {
  color: var(--al-link);
}
