/* Fix'd It! website. Colors and shapes follow the app (src/theme.ts). */
:root {
  color-scheme: light dark;
  --orange: #F96302;
  --blue: #004990;
  --ink: #1B1F24;
  --muted: #5F6B7A;
  --line: #E3E6EA;
  --paper: #FFFFFF;
  --surface: #F6F7F9;
  --field: #F3F4F6;
  --blue-soft: #E1EAF3;
  --orange-soft: #FDE7D8;
  --link: #004990;
  --danger: #C0392B;
  --success: #1E7B3C;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 8px 24px rgba(16, 24, 40, 0.06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #EEF1F4;
    --muted: #A6B0BC;
    --line: #2B323B;
    --paper: #121519;
    --surface: #181C21;
    --field: #1E232A;
    --blue-soft: #17293E;
    --orange-soft: #3A2414;
    --link: #8DBDF0;
    --danger: #F08A7E;
    --success: #6FD08F;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  }
}

*, *::before, *::after { box-sizing: border-box; }
/* `hidden` always wins over display rules (e.g. the signup form's grid). */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Avenir Next", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--link); font-weight: 600; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 6vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-name { font-weight: 800; font-size: 1.1rem; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.97rem; padding: 6px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--link); text-decoration: underline; }

/* The app's logo: "Fix'd" on orange over "It!" on blue. */
.logo { display: inline-grid; width: 54px; border-radius: 9px; overflow: hidden; line-height: 1; flex: none; }
.logo span { display: block; color: #fff; font-weight: 800; text-align: center; font-size: 12px; padding: 4px 0; letter-spacing: 0.02em; }
.logo span:first-child { background: var(--orange); }
.logo span:last-child { background: var(--blue); }
.logo.big { width: 150px; border-radius: 18px; }
.logo.big span { font-size: 26px; padding: 14px 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 22px; border-radius: var(--radius); border: 0;
  /* 19px bold counts as large text, so white on orange meets WCAG AA (3:1). */
  font: inherit; font-size: 1.2rem; font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: #E25800; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-ghost { background: var(--field); color: var(--ink); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.spaced { margin-top: 28px; }

.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 12px; font-size: 0.85rem; font-weight: 700; }
.pill-blue { background: var(--blue-soft); color: var(--link); }
.pill-orange { background: var(--orange-soft); color: var(--ink); }

/* Sections */
section { padding: 56px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; font-weight: 800; color: var(--muted); margin-bottom: 8px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40em; }

.hero { padding: 48px 0 56px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
.slogan { font-weight: 800; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 14px; }
.area { margin-top: 18px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 8px; }

/* A small mock of the app's bid list */
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 18px; box-shadow: var(--shadow); max-width: 380px; width: 100%; justify-self: center; }
.mock-title { font-weight: 800; margin-bottom: 2px; }
.mock-sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 14px; }
.bid { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; margin-bottom: 10px; }
.bid:last-child { margin-bottom: 0; }
.bid-name { font-weight: 700; }
.bid-price { font-weight: 800; }
.bid-meta { grid-column: 1 / -1; color: var(--muted); font-size: 0.88rem; }
.bid-badges { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.bid-badges .pill { font-size: 0.75rem; padding: 2px 9px; }

/* Steps and cards */
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; counter-reset: step; }
.steps li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; counter-increment: step; }
.steps li::before {
  content: counter(step); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 800; margin-bottom: 10px;
}
.steps.orange li::before { background: var(--orange); }
.steps p, .cards p { margin: 0; color: var(--muted); }
.cards { display: grid; gap: 16px; margin-top: 28px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.callout { background: var(--blue-soft); border-radius: 20px; padding: 28px; display: grid; gap: 14px; }
.callout p { margin: 0; }

/* Forms */
.form { display: grid; gap: 20px; margin-top: 24px; }
.field label, .field legend, .check-label { display: block; font-weight: 700; margin-bottom: 6px; }
.optional { font-weight: 500; color: var(--muted); }
.hint { color: var(--muted); font-size: 0.92rem; margin: 4px 0 0; }
input[type="text"], input[type="email"], input[type="tel"] {
  width: 100%; min-height: 50px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--field); color: var(--ink); font: inherit;
}
input[aria-invalid="true"] { border-color: var(--danger); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.trades { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.option { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--paper); font-weight: 600; cursor: pointer; }
.option input, .consent input { width: 20px; height: 20px; accent-color: var(--blue); flex: none; margin: 0; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.error { color: var(--danger); font-weight: 600; font-size: 0.95rem; margin: 6px 0 0; }
.error:empty { display: none; }
.status { border-radius: var(--radius); padding: 16px 18px; font-weight: 600; }
.status:empty { display: none; }
.status.bad { background: var(--orange-soft); color: var(--ink); }
.success { background: var(--blue-soft); border-radius: 20px; padding: 28px; }
.success h2 { color: var(--link); }
/* Bot trap: off-screen, never seen or reached by people. */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Text pages */
.page { padding: 40px 0 56px; }
.page h2 { margin-top: 1.6em; font-size: 1.4rem; }
.page ol, .page ul { padding-left: 1.3em; }
.page li { margin-bottom: 0.4em; }
.placeholder { border: 2px dashed var(--line); border-radius: var(--radius); padding: 22px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 36px; color: var(--muted); font-size: 0.93rem; }
.site-footer .wrap { display: grid; gap: 10px; }
.site-footer a { color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }

@media (min-width: 760px) {
  .hero .wrap { grid-template-columns: 1.15fr 1fr; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .callout { grid-template-columns: 1fr auto; align-items: center; }
  section { padding: 72px 0; }
}
