/* =====================================================================
   NIGHT SHIFT. Loaded after every other stylesheet; it retires the "liquid glass" look.
   Direction: a shop at night. Warm charcoal field, solid panels with real hierarchy, one amber
   accent spent on actions and live status, paper work-order tickets as the one tactile object,
   and topography contours as the one atmospheric moment. No glow, blur or gradient decoration.
   Palette: field #0E1116 · panel #161A21 · raised #1C212A · line #2B313B · text #ECE8DF
            muted #A7ABB3 · amber #F2A93B (text on dark #FFC970) · paper #ECE8DF
   ===================================================================== */
:root {
  color-scheme: dark;
  --field: #0E1116; --night: #0E1116; --deep: #0E1116;
  --panel: #161A21; --raised: #1C212A; --line: #2B313B; --line-hi: #3A424E;
  --white: #161A21; --paper: #1C212A; --night-2: #161A21;
  --ink: #ECE8DF; --muted: #A7ABB3; --rule: #2B313B;
  --night-line: #2B313B; --night-text: #ECE8DF; --night-muted: #A7ABB3;
  --rim: #2B313B; --rim-hi: rgb(255 255 255 / 0.05); --glass-strong: #1C212A;
  --carbon: #F2A93B; --carbon-deep: #FFC970; --on-accent: #1A1203; --glow: rgb(242 169 59 / 0.22);
  --r-1: 6px; --r-2: 12px; --r-3: 18px; --radius: 14px;
  --shadow: none; --shadow-lift: none;
}
body { background: var(--field); color: var(--ink); }
body::before, body::after, .lp-field { display: none; }

/* Bands: alternate flat tones so sections read as separate surfaces. */
.bg-paper { background: #12161C; border-block: 1px solid var(--line); }
.bg-night { background: transparent; }

/* ---- Cards: three tiers instead of one identical glass box ---- */
:is(.card, .callout, .flow-card, .swatch):not(:is(.browser, .crm) *),
.bg-night .card {
  -webkit-backdrop-filter: none; backdrop-filter: none;
  background: var(--panel); border: 1px solid var(--line); box-shadow: none; text-shadow: none;
  border-radius: var(--r-2);
}
:is(.card, .callout, .flow-card):not(:is(.browser, .crm) *)::before { background: none; }
.callout { box-shadow: inset 3px 0 0 var(--carbon); border-left: 1px solid var(--line); }
/* Tier 1: the things you choose between */
.service-card, .plan, .card.plan, .bundle, .card.bundle { background: var(--raised); border-radius: var(--r-3); }
/* Tier 2: supporting items sit in a row with a rule, no box */
.mini-card, .mini-card.card {
  background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding-inline: 0;
}
.card-hover:hover, a.card:hover { box-shadow: none; border-color: rgb(242 169 59 / 0.65); }
.mini-card:hover { border-top-color: var(--carbon); }
.plan-pick { border: 1px solid rgb(242 169 59 / 0.8); box-shadow: none; }
.calc-out, .b-sum, .how-panel { background: var(--raised); }

.icon-chip { background: var(--raised); color: var(--carbon-deep); box-shadow: none; border: 1px solid var(--line); border-radius: 10px; }
.card-hover:hover .icon-chip, a.card:hover .icon-chip { background: var(--carbon); color: var(--on-accent); border-color: var(--carbon); }
.tilt::after { background: radial-gradient(260px circle at var(--gx, 50%) var(--gy, 50%), rgb(255 255 255 / 0.05), transparent 65%); }

/* ---- Header and footer ---- */
.site-head, .site-head.scrolled { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); background: rgb(14 17 22 / 0.88); border-bottom: 1px solid var(--line); box-shadow: none; }
.site-head.scrolled { background: rgb(14 17 22 / 0.95); border-bottom-color: var(--line-hi); }
.mobile-nav { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--panel); border-color: var(--line); }
footer { background: transparent; border-top: 1px solid var(--line); }

/* ---- Buttons: flat, one amber primary ---- */
.btn { border-radius: 10px; }
.btn-primary { background: var(--carbon); color: var(--on-accent); box-shadow: none; }
a.btn-primary:hover, button.btn-primary:hover { background: #FFC970; box-shadow: none; transform: translateY(-1px); }
.btn-secondary, .on-night .btn-secondary { background: transparent; border-color: var(--line-hi); color: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
a.btn-secondary:hover, button.btn-secondary:hover, .on-night a.btn-secondary:hover { background: var(--raised); border-color: #4a5360; }
.toggle { background: var(--panel); border-color: var(--line); -webkit-backdrop-filter: none; backdrop-filter: none; }

/* ---- Labels: plain sentence-case text, not tracked all-caps mono ---- */
.eyebrow, .bg-night .eyebrow, .eyebrow.yellow {
  font: 500 0.9375rem/1.3 var(--body); text-transform: none; letter-spacing: 0; color: var(--muted);
}
.trades { font: 400 0.9375rem/1.5 var(--body); color: var(--muted); }
.scr-label, .chat-mode, .thread .sys { text-transform: none; letter-spacing: 0.01em; font-family: var(--body); }
.pill {
  font: 500 0.8125rem/1 var(--body); text-transform: none; letter-spacing: 0; border-radius: var(--r-1);
  background: transparent; color: var(--muted); border: 1px solid var(--line); padding: 5px 9px;
}
.pill-soon, .pill-soon-light { background: transparent; color: var(--muted); }
.pill-live { background: transparent; color: var(--carbon-deep); border-color: rgb(242 169 59 / 0.45); }
.pill-live::before { background: var(--carbon); }
/* Links read as links by their underline; no appended arrow. */
.link { text-decoration: underline; text-decoration-color: rgb(236 232 223 / 0.35); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: text-decoration-color var(--dur-2) var(--ease-out); }
.link::after { content: none; }
.link:hover, :is(.card, .card-hover):hover .link { text-decoration-color: var(--carbon); }

/* ---- Work-order tickets: cream paper, the one tactile object ---- */
.ticket, .mini-ticket {
  --ink: #16181B; --muted: #4A4F57;
  background: #ECE8DF; color: #16181B; border: 0; border-radius: 4px;
  box-shadow: 0 24px 40px -26px rgb(0 0 0 / 0.9); -webkit-backdrop-filter: none; backdrop-filter: none;
}
.ticket-head, .mini-ticket b { border-bottom: 2px solid #16181B; color: #16181B; }
.ticket-reply { border-top: 1px dashed rgb(22 24 27 / 0.45); }
@keyframes fill { from { background: rgb(242 169 59 / 0.45); } to { background: transparent; } }

/* ---- Phone, chat ---- */
.glow { display: none; }
.phone { background: var(--raised); box-shadow: 0 0 0 1px var(--line-hi), 0 30px 60px -32px #000; -webkit-backdrop-filter: none; backdrop-filter: none; }
.screen { background: var(--field); }
.bubble { background: var(--raised); border: 1px solid var(--line); }
.ph { background: repeating-linear-gradient(135deg, rgb(255 255 255 / 0.02) 0 12px, rgb(255 255 255 / 0.04) 12px 24px); border-color: var(--line-hi); }

/* Headlines: Archivo at tight tracking needs a little word space or "for your" reads as one word. */
.display, .statement, .h2, .h3 { word-spacing: 0.07em; }
.display, .statement { letter-spacing: -0.025em; }

/* Remaining tracked all-caps mono labels (form labels, legends, definition terms, table heads,
   footer headings) become plain sentence-case text. Ticket and mockup chrome keep their own type. */
.field label, .out-label, .contact-list dt, .b-pick legend, .msg-kind legend, .con-form legend,
.svc-meta, .res-s, .res-table thead th, .svc-model-label, .foot-grid h2, .convo li b, .sample-tag {
  font-family: var(--body); font-weight: 500; font-size: 0.9375rem; text-transform: none; letter-spacing: 0;
}
.foot-grid h2 { color: var(--ink); font-weight: 600; }
.contact-list dt { color: var(--muted); }
.sample-tag { font-size: 0.8125rem; }
/* Card headings sit tight; the body line-height made two-line titles gappy. */
.card h3, .card .h3 { line-height: 1.18; }

/* No single-phrase color accent inside headlines (it is on every page, which makes it a template tell).
   The <em> stays as markup but reads as normal headline text; amber is kept for actions and status. */
h1 em, h2 em, h3 em, .statement em, .display em, .statement-dark em { font-style: normal; color: inherit; }
