/* Before The Shop — free estimate check (public page /check). Mobile-first.
 * Matches beforetheshop.com (Jet, Nov 11): the site's navy, its orange (#ef4444) buttons,
 * its fonts (served from this site's /assets/fonts) and its header. No blue or red buttons. */
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/HTxwL3I-JCGChYJ8VI-L6OO_au7B4873z3bWuQ.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/HTxwL3I-JCGChYJ8VI-L6OO_au7B46r2z3bWuQ.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400 600; font-stretch: 100%; font-display: swap; src: url(/assets/fonts/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxeKYY.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --bg: #0b1220; --surface: #121a2a; --surface2: #182234; --border: #243044;
  --text: #f8fafc; --muted: #94a3b8; --accent: #ef4444; --accent-fg: #1a0a06;
  --success: #22c55e; --warn: #f59e0b; --radius: 12px;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased;
}
.ck-page { padding: 12px 14px max(24px, env(safe-area-inset-bottom)); }
/* Site header (same as beforetheshop.com: sticky navy bar, logo lockup, boxed buy button, hamburger on desktop and mobile). */
.site-head { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--border); background: rgba(11, 18, 32, .95); padding-top: env(safe-area-inset-top); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.site-head-in { position: relative; max-width: 72rem; margin: 0 auto; padding: 12px; display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; }
.site-mark { flex-shrink: 0; display: block; line-height: 0; text-decoration: none; }
.site-mark img { display: block; height: 36px; width: auto; }
.site-head-actions { margin-left: auto; display: flex; flex-shrink: 0; align-items: center; gap: 4px; }
.site-head-buy { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 10px; border-radius: 12px; background: var(--accent); color: var(--accent-fg); font-size: 12px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.site-head-buy:hover { background: rgba(239, 68, 68, .9); }
.site-menu-btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px; border: 0; background: transparent; color: var(--text); border-radius: 6px; cursor: pointer; }
.site-menu-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.site-menu-btn .ico-close, .site-menu-btn[aria-expanded="true"] .ico-open { display: none; }
.site-menu-btn[aria-expanded="true"] .ico-close { display: block; }
.site-menu-panel { position: absolute; right: 12px; top: 100%; z-index: 20; width: 14rem; max-width: calc(100% - 1.5rem); background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 8px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25); }
.site-menu-panel[hidden] { display: none !important; }
.site-menu-panel ul { list-style: none; margin: 0; padding: 0; }
.site-menu-panel a { display: block; border-radius: 6px; padding: 8px; font-size: 14px; color: var(--text); text-decoration: none; }
.site-menu-panel a:hover { background: rgba(255, 255, 255, .05); }
@media (min-width: 640px) {
  .site-head-in { padding: 16px; gap: 16px; }
  .site-mark img { height: 48px; }
  .site-head-actions { gap: 8px; }
  .site-head-buy { min-height: 48px; padding: 0 24px; font-size: 14px; }
  .site-menu-panel { right: 16px; }
}
.ck-head, .ck-main { max-width: 640px; margin: 0 auto; }
.ck-head { text-align: center; padding: 6px 4px 10px; }
.ck-lockup { width: 168px; height: auto; display: block; margin: 0 auto 8px; }
.ck-kicker { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
h1 { font-family: var(--font-display); font-weight: 600; letter-spacing: .025em; font-size: 32px; line-height: 1.1; margin: 6px 0 8px; }
.ck-lead { margin: 0 0 6px; color: var(--text); }
.ck-tone-top { color: var(--muted); font-size: 14px; }
.ck-privacy { margin: 0; color: var(--muted); font-size: 13px; }
.ck-panel, .ck-upsell {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px; margin: 12px 0;
}
.ck-field { display: flex; flex-direction: column; gap: 4px; margin: 10px 0; }
label, .ck-label-row { font-size: 13px; font-weight: 600; color: var(--muted); }
.ck-label-row { margin: 14px 0 6px; text-transform: uppercase; letter-spacing: .05em; font-size: 12px; }
input[type=text], select, textarea {
  width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; padding: 11px 12px; font-size: 16px; font-family: inherit; outline: none;
}
input[type=text]:focus, select:focus, textarea:focus { border-color: var(--accent); }
textarea { resize: vertical; min-height: 96px; }
.ck-note { color: var(--muted); font-size: 13px; margin: 4px 0; }
.ck-paste { background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.ck-paste summary { cursor: pointer; font-weight: 600; }
.ck-lines { display: flex; flex-direction: column; gap: 10px; }
.ck-line { background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 10px; }
.ck-line-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.ck-line-num { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.ck-line-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ck-line .ck-field { margin: 6px 0; }
.ck-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px;
  padding: 10px 14px; border-radius: 8px; font-size: 15px; font-weight: 700; border: none; cursor: pointer;
  font-family: inherit; text-decoration: none; color: #fff;
}
/* Buttons: the site's orange with its dark text (same as the site's main buttons); others are the
 * site's quiet secondary style. No blue or red buttons (Jet, Nov 11). */
.ck-btn { border-radius: 12px; }
.ck-btn-primary { background: var(--accent); color: var(--accent-fg); }
.ck-btn-primary:hover { background: rgba(239, 68, 68, .9); }
.ck-btn-send, .ck-btn-ghost { background: var(--surface2); color: var(--text); border: 1px solid var(--border); }
.ck-btn-send:hover, .ck-btn-ghost:hover { border-color: rgba(148, 163, 184, .4); }
.ck-quiet-buy { margin: 14px 0 2px; padding-top: 12px; border-top: 1px solid var(--border); display: flex; justify-content: center; }
.ck-quiet-buy .ck-btn { font-weight: 600; font-size: 14px; min-height: 44px; }
.ck-btn-sm { min-height: 34px; padding: 6px 10px; font-size: 13px; font-weight: 600; }
.ck-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 2px; }
.ck-actions > .ck-btn { flex: 1 1 auto; }
.ck-actions-main > .ck-btn-primary { flex: 2 1 60%; }
.ck-sum { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 9px 11px; font-size: 14px; color: var(--muted); }
.ck-sum strong { color: var(--text); }
.ck-sum.off { border-color: var(--warn); }
.ck-msg { margin-top: 8px; font-size: 14px; color: var(--muted); }
.ck-msg.bad { color: #fca5a5; }
#ck-result h2 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 600; letter-spacing: .025em; font-size: 26px; }
.ck-tone { margin: 0 0 10px; padding: 9px 11px; border-left: 3px solid var(--accent); background: var(--surface2); border-radius: 6px; font-size: 14px; }
.ck-meta { color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.ck-q-list { margin: 8px 0 0; padding-left: 24px; display: flex; flex-direction: column; gap: 10px; }
.ck-q-ref { font-size: 14px; color: var(--muted); }
.ck-q-ask { font-size: 16px; }
.ck-sub { margin: 16px 0 6px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.ck-labor { background: var(--surface2); border: 1px solid var(--border); border-left-width: 3px; border-radius: 8px; padding: 9px 11px; margin: 8px 0; font-size: 14px; }
.ck-labor.warn { border-left-color: var(--warn); }
.ck-labor.ok { border-left-color: var(--success); }
.ck-labor-head { font-weight: 600; }
.ck-upsell { border-color: #3b2a26; background: linear-gradient(180deg, #182234 0%, #121a2a 100%); }
.ck-upsell-lockup { width: 132px; height: auto; display: block; margin: 0 0 6px; }
.ck-upsell h2 { margin: 2px 0 6px; font-family: var(--font-display); font-weight: 600; letter-spacing: .025em; font-size: 24px; line-height: 1.15; }
.ck-upsell ul { margin: 6px 0 10px; padding-left: 20px; }
.ck-upsell li { margin: 3px 0; }
.ck-price { font-size: 15px; }
.ck-buy { width: 100%; font-size: 17px; margin: 4px 0 6px; }
.ck-toast {
  position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px);
  background: #1f2937; color: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 10px 16px; font-size: 14px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: 90vw; text-align: center;
}
.ck-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.ck-print-only { display: none; }

@media print {
  @page { margin: 14mm; }
  body { background: #fff; color: #111; padding: 0; font-size: 12pt; }
  .site-head, .ck-head .ck-kicker, .ck-lead, .ck-privacy, #ck-entry, .ck-upsell, .ck-no-print, .ck-toast, .site-foot { display: none !important; }
  .ck-page { padding: 0; }
  .ck-print-only { display: block; }
  .ck-lockup { width: 140px; filter: invert(1) hue-rotate(180deg); }
  h1 { font-size: 18pt; }
  .ck-panel { border: none; background: #fff; padding: 0; }
  .ck-tone, .ck-sum, .ck-labor { background: #fff; color: #111; border-color: #999; }
  .ck-q-ref, .ck-meta, .ck-sub, .ck-note { color: #444; }
  .ck-q-list li { break-inside: avoid; }
}
.ck-kicker a { color: inherit; text-decoration: none; }
.ck-refund { text-align: center; margin: 0; }
/* Site footer: same as every beforetheshop.com page (src/components/site-footer.tsx, Tailwind
 * classes written out). One row: wordmark left, social icons (plus email) right. */
.site-foot { border-top: 1px solid var(--border); background: var(--bg); padding-bottom: env(safe-area-inset-bottom); }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot a { text-decoration: none; transition: color .15s; }
.site-foot-in { max-width: 72rem; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 32px 16px; }
.site-foot-mark { flex-shrink: 0; display: block; }
.site-foot-mark img { display: block; height: 64px; width: auto; max-width: 100%; object-fit: contain; object-position: left; }
@media (min-width: 640px) { .site-foot-mark img { height: 80px; } }
.site-foot-social { display: flex; align-items: center; gap: 4px; margin: 0 -8px !important; }
.site-foot-social a { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 6px; color: var(--muted); }
.site-foot-social a:hover { color: var(--text); }
.site-foot-social svg { width: 20px; height: 20px; fill: currentColor; }
/* lucide Mail (same icon the site footer uses): stroke icon. */
.site-foot-social svg.site-foot-mail { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
