/* ============================================
   Call a Geek — "Just Ask" homepage prototype
   Brand: black, red accents, white text.
   Deliberately dark-only: one look in every viewer theme.
   ============================================ */

:root {
  color-scheme: dark;
  --red: #c8102e;        /* fills and borders */
  --red-dark: #a30d25;
  --red-text: #ff5468;   /* red text on black (readable contrast) */
  --red-soft: #3b0d16;
  --black: #000000;
  --ink: #f3f3f4;
  --grey: #a6a8ae;
  --line: #2c2d31;
  --paper: #0b0b0c;      /* page */
  --surface: #141416;    /* cards and panels */
  --mist: #1d1d20;       /* chips and inputs */
  --ok: #4cc58a;         /* green text */
  --ok-fill: #1d7a4c;
  --amber: #e5a33a;
  --amber-soft: #2b2009;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --maxw: 980px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font: 17px/1.6 var(--body); color: var(--ink); background: var(--surface); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-text); }
button, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; text-wrap: balance; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- top bar ---------- */
.top { border-bottom: 1px solid var(--line); background: rgba(11, 11, 12, .92); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 10; }
.top-inner { display: flex; align-items: center; gap: 16px; min-height: 68px; flex-wrap: wrap; padding-block: 8px; }
.logo img { height: 40px; width: auto; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--grey); background: var(--mist); padding: 6px 12px; border-radius: 999px; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--grey); }
.status.open i { background: var(--ok); box-shadow: 0 0 0 3px rgba(29, 122, 76, .18); }
.status.open { color: var(--ink); }
.top-links { margin-left: auto; display: flex; gap: 18px; align-items: center; font-size: 15px; }
.top-links a { color: var(--ink); text-decoration: none; }
.top-links a:hover { color: var(--red-text); }
.top-links a[aria-current="page"] { color: var(--red-text); }
.top-links .phone { font-weight: 700; color: #fff; background: var(--red); padding: 8px 16px; border-radius: 999px; white-space: nowrap; letter-spacing: .02em; }
.top-links .phone:hover { color: #fff; background: var(--red-dark); }
.top-links .remote-btn { background: var(--red); color: #fff; font-weight: 600; padding: 8px 14px; border-radius: 10px; white-space: nowrap; }
.top-links .remote-btn:hover { background: var(--red-dark); color: #fff; }
/* Address line above the hero heading */
.hero-info { font-size: 15px; color: var(--grey); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.hero-info b { color: var(--ink); font-weight: 600; }
.hero-info i { font-style: normal; color: var(--red-text); font-weight: 700; }
.hero-info a { color: var(--grey); text-decoration: none; border-bottom: 1px solid var(--line); }
.hero-info a:hover { color: var(--ink); border-color: var(--red); }

/* ---------- hero ---------- */
.hero { padding: 64px 0 48px; }
.eyebrow { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--red-text); font-weight: 600; }
.hero h1 { font-size: clamp(34px, 5.2vw, 60px); font-weight: 800; letter-spacing: -.02em; margin: 14px 0 14px; max-width: 16ch; }
.sub { font-size: 20px; color: var(--grey); max-width: 52ch; }

.ask { margin-top: 32px; display: flex; gap: 10px; align-items: stretch; border: 2px solid var(--line); border-radius: 18px; padding: 10px; background: var(--surface); box-shadow: 0 14px 40px rgba(0, 0, 0, .45); }
.ask:focus-within { border-color: var(--red); }
.ask textarea::placeholder { color: #7d7f86; }
.ask textarea { flex: 1; min-width: 0; border: 0; resize: none; outline: none; font-size: 20px; line-height: 1.45; padding: 8px 10px; background: transparent; }
.ask button { flex: none; background: var(--red); color: #fff; border: 0; border-radius: 12px; padding: 0 24px; font-weight: 600; font-size: 18px; }
.ask button:hover { background: var(--red-dark); }
.ask button:disabled { opacity: .5; cursor: default; }

.starters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.starters button { border: 1px solid var(--line); background: var(--mist); border-radius: 999px; padding: 8px 14px; font-size: 15px; }
.starters button:hover { border-color: var(--red); background: var(--red-soft); }

/* ---------- conversation ---------- */
.thread { margin-top: 28px; display: grid; gap: 14px; }
.msg { max-width: 760px; font-size: 18px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.user { justify-self: end; background: var(--mist); color: var(--ink); border: 1px solid var(--line); padding: 12px 18px; border-radius: 18px 18px 4px 18px; max-width: 85%; }
.msg.bot { border-left: 3px solid var(--red); padding: 4px 0 4px 18px; }
.msg.bot .who { display: block; font-size: 13px; font-weight: 600; color: var(--red-text); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 4px; white-space: normal; }
.msg.typing { color: var(--grey); }
.msg.typing .dots::after { content: "…"; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.next { display: flex; flex-wrap: wrap; gap: 8px; padding-left: 21px; }
.next a, .next button { font-size: 15px; font-weight: 600; text-decoration: none; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.next .primary { background: var(--red); border-color: var(--red); color: #fff; }
.next a:hover, .next button:hover { border-color: var(--red); }
.note { font-size: 13px; color: var(--grey); padding-left: 21px; }

.fineprint { margin-top: 22px; font-size: 13px; color: var(--grey); max-width: 70ch; }

/* ---------- routes ---------- */
section.routes, section.asked, section.services, section.proof { padding: 56px 0; border-top: 1px solid var(--line); }
.services h2 { font-size: clamp(26px, 3.5vw, 36px); margin-bottom: 20px; }
.service-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.service-list li { background: var(--mist); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 15px; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
h2 { font-size: clamp(28px, 4.5vw, 42px); font-weight: 800; letter-spacing: -.015em; }
.jargon-toggle { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 14px; font-size: 14px; }
.jargon-toggle[aria-pressed="true"] { border-color: var(--red); background: var(--red-soft); }
.jargon-toggle b { font-weight: 600; }

.route-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 820px) { .route-grid { grid-template-columns: 1fr; } }
.route { position: relative; border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 12px; background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.route h3 { font-size: 24px; font-weight: 800; }
.route p { color: var(--grey); font-size: 16px; }
.route .price { color: var(--ink); font-weight: 600; margin-top: auto; }
.route .btn { align-self: flex-start; background: var(--ink); color: var(--paper); text-decoration: none; padding: 10px 16px; border-radius: 10px; font-weight: 600; font-size: 15px; }
.route .btn:hover { background: var(--red); color: #fff; }
.route .badge { display: none; position: absolute; top: -12px; left: 20px; background: var(--red); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.route.pick { border: 2px solid var(--red); box-shadow: 0 12px 34px rgba(200, 16, 46, .14); }
.route.pick .badge { display: block; }
.route.pick .btn { background: var(--red); color: #fff; }
.gst { margin-top: 14px; font-size: 13px; color: var(--grey); }

dfn { font-style: normal; border-bottom: 1px dotted var(--grey); }
dfn.explain::after { content: " (" attr(data-plain) ")"; color: var(--red-dark); font-style: italic; }

/* ---------- asked ---------- */
.asked h2 { margin-bottom: 20px; }
.asked-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
@media (max-width: 700px) { .asked-list { grid-template-columns: 1fr; } }
.asked-list button { width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 14px 28px 14px 0; font-size: 17px; position: relative; }
.asked-list button::after { content: "→"; position: absolute; right: 4px; color: var(--red-text); transition: transform .2s; }
.asked-list button:hover { color: var(--red-text); }
.asked-list button:hover::after { transform: translateX(4px); }

/* ---------- proof ---------- */
.proof { background: var(--black); color: var(--ink); }
.proof-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 820px) { .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .proof-grid { grid-template-columns: 1fr; } }
.proof strong { display: block; font: 800 26px/1.1 var(--display); color: var(--ink); margin-bottom: 6px; }
.proof span { color: var(--grey); font-size: 15px; }
.proof-logo { display: flex; align-items: center; height: 44px; width: auto; margin-bottom: 14px; }
.proof-logo.fern { height: 52px; margin: -8px 0 14px; }
.proof .since-mark { width: max-content; height: 44px; padding: 0 14px; background: var(--red); border-radius: 8px; color: #fff; font: 800 18px/1 var(--display); }
/* Brother's logo is dark blue, so it sits on a white tile */
.proof .brother-mark { width: max-content; height: 44px; padding: 4px 12px; background: #fff; border-radius: 8px; }
.proof .brother-mark img { height: 100%; width: auto; }

/* ---------- footer ---------- */
.foot { padding: 28px 0 40px; font-size: 14px; color: var(--grey); }
.foot-inner { display: grid; gap: 6px; }
.foot a { color: var(--grey); }

@media (max-width: 600px) {
  .hero { padding-top: 40px; }
  .top { position: static; }
  .top-inner { gap: 8px 16px; }
  .logo img { height: 32px; }
  .top-links { gap: 12px; }
  .top-links a:not(.phone):not(.remote-btn) { display: none; }
  .top-links .remote-btn, .top-links .phone { padding: 7px 11px; font-size: 14px; }
  .status { order: 3; font-size: 13px; padding: 4px 10px; }
  .ask { flex-direction: column; }
  .ask button { padding: 12px; }
  .ask textarea { font-size: 18px; }
}
/* Remote session links while we're closed (set by js/site-status.js) */
a.is-closed, .top-links a.is-closed, .top-links a.is-closed:hover, .route .btn.is-closed, .next a.is-closed {
  background: var(--mist); color: #74767c; border-color: var(--line); cursor: not-allowed; text-decoration: none;
}
.remote-note a.is-closed { background: none; text-decoration: line-through; }

/* ---------- the Geek car ---------- */
/* The car is black on a transparent background, so it sits in a soft
   spotlight with a red glow and a road line to stand out on black. */
.hero { overflow: hidden; }
.hero-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: end; }
@media (max-width: 820px) { .hero-top { grid-template-columns: 1fr; } .hero-car { max-width: 420px; } }
.hero-car, .done-car { position: relative; padding-bottom: 14px; }
.hero-car::before, .done-car::before {
  content: ""; position: absolute; inset: -10% -15% 0;
  background:
    radial-gradient(ellipse 60% 45% at 50% 62%, rgba(255, 255, 255, .13), transparent 70%),
    radial-gradient(ellipse 50% 40% at 35% 70%, rgba(200, 16, 46, .35), transparent 70%);
  pointer-events: none;
}
.hero-car img, .done-car img {
  position: relative; width: 100%; height: auto;
  filter: drop-shadow(0 16px 14px rgba(0, 0, 0, .9));
  animation: drive-in 1.6s cubic-bezier(0.22, 0.9, 0.3, 1) 0.2s both;
}
.road {
  position: absolute; left: -20%; right: -20%; bottom: 6px; height: 3px;
  background: repeating-linear-gradient(90deg, #4a4b51 0 34px, transparent 34px 60px);
  animation: road 1.6s cubic-bezier(0.22, 0.9, 0.3, 1) 0.2s both;
}
@keyframes drive-in {
  0% { transform: translateX(-110vw); }
  80% { transform: translateX(14px); }
  90% { transform: translateX(-6px); }
  100% { transform: translateX(0); }
}
@keyframes road { from { background-position: 600px 0; } to { background-position: 0 0; } }

.cruise { display: block; position: relative; height: 34px; width: min(260px, 100%); overflow: hidden; margin-top: 6px; border-bottom: 2px dashed var(--line); }
.cruise img { position: absolute; bottom: 0; width: 72px; animation: cruise 1.8s linear infinite; }
@keyframes cruise { from { transform: translateX(-80px); } to { transform: translateX(270px); } }

.done-car { max-width: 360px; margin-bottom: 4px; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
