/* Cash4PCs: one stylesheet, system fonts, light and dark. Most visitors arrive on a phone from a
   street sign, so the layout is a single column first and the tap targets are big. */

:root {
  --bg: #fbfaf6;
  --surface: #ffffff;
  --text: #1c1f1a;
  --muted: #5b6157;
  --border: #dcdcd2;
  --accent: #14532d;
  --accent-text: #ffffff;
  --phosphor: #4ade80;
  --hero-bg: #0f1a12;
  --hero-text: #e8f5ea;
  --ok-bg: #e7f6ec;
  --ok-text: #14532d;
  --err-bg: #fdecea;
  --err-text: #8a1c12;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111511;
    --surface: #181d18;
    --text: #e6ebe4;
    --muted: #a3ad9f;
    --border: #2d352c;
    --accent: #4ade80;
    --accent-text: #0b1a0f;
    --hero-bg: #0a110c;
    --ok-bg: #12301d;
    --ok-text: #bbf7d0;
    --err-bg: #3a1714;
    --err-text: #fecaca;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.6 var(--sans);
}

a { color: var(--accent); }

.wrap { max-width: 46rem; margin: 0 auto; padding: 0 1rem; }
.narrow { padding-top: 3rem; padding-bottom: 3rem; }

h1, h2, h3 { line-height: 1.2; }
h2 { font-size: 1.5rem; margin: 3rem 0 1rem; }
h3 { font-size: 1.0625rem; margin: 1.25rem 0 0.25rem; }

/* Hero: a terminal screen, the one place the retro theme is loud. */
.hero {
  background: var(--hero-bg);
  color: var(--hero-text);
  padding: 2.5rem 0 3rem;
  border-bottom: 4px solid var(--phosphor);
}
.brand {
  font: 700 1rem var(--mono);
  color: var(--phosphor);
  letter-spacing: 0.05em;
  margin: 0;
}
.cursor { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }
.hero h1 { font-size: clamp(2.5rem, 11vw, 4.5rem); margin: 0.5rem 0 1rem; letter-spacing: -0.02em; }
.lede { font-size: 1.125rem; max-width: 36rem; }
.area { font: 0.9375rem var(--mono); color: var(--phosphor); }

.button {
  display: inline-block;
  background: var(--phosphor);
  color: #0b1a0f;
  font: 700 1.0625rem var(--sans);
  padding: 0.85rem 1.5rem;
  border: 0;
  border-radius: 0.5rem;
  text-decoration: none;
  cursor: pointer;
  min-height: 3rem;
}
.button:hover { filter: brightness(1.08); }
.button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--phosphor);
  outline-offset: 2px;
}
.button:disabled { opacity: 0.6; cursor: wait; }

.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
@media (min-width: 40rem) { .cards { grid-template-columns: 1fr 1fr; } }
.cards li { background: var(--surface); border: 1px solid var(--border); border-radius: 0.5rem; padding: 0.25rem 1rem 0.75rem; }
.cards p { margin: 0; color: var(--muted); font-size: 0.9375rem; }
.note { color: var(--muted); }

.steps { padding-left: 1.25rem; }
.steps li { margin-bottom: 0.5rem; }

.callout { margin-top: 3rem; }
.callout h2 { margin-top: 0; padding-top: 1.5rem; }
.callout { border-left: 4px solid var(--accent); }

/* Quote form */
.quote { background: var(--surface); border: 1px solid var(--border); border-radius: 0.75rem; padding: 1rem; }
fieldset { border: 0; margin: 0 0 1rem; padding: 0; }
legend { font-weight: 700; font-size: 1.125rem; padding: 0; margin-bottom: 0.25rem; }
label { display: block; font-weight: 600; margin: 0.9rem 0 0.3rem; }
.optional { font-weight: 400; color: var(--muted); font-size: 0.875rem; }
input, select, textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.4rem;
  padding: 0.65rem 0.75rem;
  min-height: 3rem;
}
textarea { resize: vertical; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; }
.check input { width: 1.25rem; min-height: 1.25rem; margin-top: 0.2rem; flex: none; }

.estimate {
  display: block;
  font: 700 1.25rem var(--mono);
  background: var(--hero-bg);
  color: var(--phosphor);
  border-radius: 0.5rem;
  padding: 0.9rem 1rem;
  margin: 0 0 1.25rem;
}
.estimate[hidden] { display: none; }

.form-status { border-radius: 0.5rem; padding: 0.25rem 1rem; margin-bottom: 1rem; }
.form-status.ok { background: var(--ok-bg); color: var(--ok-text); }
.form-status.error, .errors { background: var(--err-bg); color: var(--err-text); }
.errors { border-radius: 0.5rem; padding: 0.75rem 1rem 0.75rem 2rem; }
.fine { font-size: 0.875rem; color: var(--muted); }

/* Honeypot: off-screen for people, still in the form for bots. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.footer { margin-top: 4rem; padding: 1.5rem 0; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.9375rem; }
