/* BidMallet site CSS: one file for home, privacy, support and 404. Tokens mirror DESIGN.md. */
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/barlow-condensed-latin-800-normal.woff2") format("woff2");
}

:root {
  --asphalt: #12171c;
  --asphalt-2: #1c232b;
  --blueprint: #1f4e79;
  --blueprint-deep: #153655;
  --hivis: #f2a33a;
  --hivis-hover: #ffb44f;
  --hivis-soft: #fdf3e3;
  --paper: #f6f4ef;
  --concrete: #e9ecef;
  --white: #ffffff;
  --ink: #12171c;
  --steel: #46515c;
  --line: #c9d1d9;
  --on-dark: #eef1f4;
  --on-dark-muted: #b6c0ca;
  --focus: #1f4e79;

  --font-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-phone: 36px;

  --s-1: 4px;
  --s-2: 8px;
  --s-3: 16px;
  --s-4: 24px;
  --s-5: 40px;
  --s-6: 64px;
  --s-7: 96px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 1rem;
}
img, svg { max-width: 100%; }
a { color: var(--blueprint); }
code { font: inherit; } /* emails stay plain text, not monospace */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.on-dark { --focus: var(--hivis); }
.skip {
  position: absolute;
  left: 12px;
  top: -64px;
  background: var(--hivis);
  color: var(--ink);
  font-weight: 700;
  padding: 10px 16px;
  border-radius: var(--r-md);
  z-index: 10;
}
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nw { white-space: nowrap; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.legal .wrap { max-width: 820px; }

/* type */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.05;
  margin-top: 0;
  letter-spacing: 0.005em;
  text-wrap: balance;
}
h1 { font-size: 2.4rem; margin-bottom: 14px; }
h2 { font-size: 2rem; margin: 36px 0 12px; }
h3 { font-size: 1.25rem; margin-bottom: 6px; font-weight: 700; }
.legal h1 { font-size: 2.6rem; }
.legal h2 { font-size: 1.75rem; }
.legal h3 { font-size: 1.3rem; }

/* header */
header { background: var(--white); border-bottom: 1px solid var(--line); }
nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 10px 0;
  min-height: 80px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.25rem;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
}
.brand img { width: 52px; height: 52px; border-radius: 11px; display: block; }
.nav-right { display: flex; align-items: center; gap: 8px 20px; flex-wrap: wrap; }
.nav-links { display: flex; flex-wrap: wrap; gap: 4px 6px; font-size: 0.95rem; }
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  padding: 10px 8px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav-links a:hover { color: var(--blueprint); text-decoration: underline; }

/* buttons: only real links look like buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--r-md);
  border: 2px solid var(--hivis);
  background: var(--hivis);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: var(--hivis-hover); border-color: var(--hivis-hover); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-line { background: transparent; border-color: var(--blueprint); color: var(--blueprint); min-height: 44px; padding: 0 16px; font-size: 0.95rem; }
.btn-line:hover { background: var(--blueprint); border-color: var(--blueprint); color: var(--white); }

.ico { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* status label: plain text, never a button */
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hivis);
  margin: 0 0 18px;
}
.status::before { content: ""; width: 10px; height: 10px; background: var(--hivis); border-radius: 2px; }

/* hero */
.hero {
  padding: 0;
  background: var(--asphalt);
  color: var(--on-dark);
  border-bottom: 6px solid var(--hivis);
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.hero h1 { color: var(--white); font-size: clamp(2.5rem, 4.6vw, 3.9rem); line-height: 1.08; letter-spacing: 0.01em; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--hivis); }
.lead { font-size: 1.15rem; color: var(--on-dark-muted); margin: 0 0 28px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 28px; }
.cta-note { color: var(--on-dark-muted); font-size: 0.92rem; margin: 0; max-width: 20em; text-wrap: balance; }
.facts { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.facts li { display: flex; align-items: center; gap: 10px; color: var(--on-dark); font-weight: 600; }
.facts .ico { width: 20px; height: 20px; color: var(--hivis); flex: none; }
.fine { color: var(--on-dark-muted); font-size: 0.92rem; margin: 0; max-width: 36em; }
.fine strong { color: var(--on-dark); }
.hero-art {
  background-color: var(--blueprint-deep);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  border: 1px solid #2b5f8f;
  border-radius: var(--r-lg);
  padding: 36px 20px;
  display: flex;
  justify-content: center;
}

/* phone frame (real screenshots only) */
.phone { margin: 0; width: min(100%, 290px); }
.phone-body {
  background: #0b0e11;
  border-radius: var(--r-phone);
  padding: 30px 9px 24px;
  position: relative;
  /* crisp device edge: hairline ring + inner highlight, one tight 1px shadow. No blur halo. */
  box-shadow: 0 0 0 1px #2d3640, inset 0 0 0 1px #1b222a, 0 1px 2px rgba(18, 23, 28, 0.2);
}
.phone-body::before { /* camera island, part of the frame (not app UI) */
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  width: 72px;
  height: 14px;
  margin-left: -36px;
  background: #1b222a;
  border-radius: 7px;
}
.phone-body::after { /* home bar, part of the frame */
  content: "";
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 84px;
  height: 4px;
  margin-left: -42px;
  background: #3a4550;
  border-radius: 2px;
}
.phone img { display: block; width: 100%; height: auto; aspect-ratio: 390 / 844; border-radius: 26px; background: var(--white); }

/* sections */
section { padding: var(--s-6) 0; }
.sec-head { max-width: 40em; margin-bottom: 36px; }
.sec-head h2 { margin-top: 0; font-size: clamp(2.1rem, 4vw, 3rem); }
.sec-head p { color: var(--steel); margin: 0; font-size: 1.08rem; }
.band-white { background: var(--white); }
.band-concrete { background: var(--concrete); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.steps li { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.steps .phone { width: min(100%, 250px); margin-bottom: 24px; }
.step-text { width: 100%; max-width: 330px; }
/* badge sits in a row with the step title, same height, so number and name read as one label */
.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.step-no {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: var(--blueprint);
  border-bottom: 4px solid var(--hivis);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.8rem;
  line-height: 1;
}
.step-text h3 { font-size: 1.6rem; font-weight: 800; margin: 0; }
.sample { display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; margin-top: 12px; }
.sample a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; color: var(--blueprint); }
.sample .ico { width: 20px; height: 20px; }
.sample span { color: var(--steel); font-size: 0.95rem; }
.step-text p { margin: 0; color: var(--steel); }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; }
.feature { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 0 18px; align-content: start; }
.feature .icon { grid-row: 1 / span 2; }
/* trades tag: blueprint grid tile, chamfered corner, amber rule underneath, amber line icon */
.feature .icon {
  width: 56px;
  height: 56px;
  background-color: var(--blueprint-deep);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 8px 8px;
  border-bottom: 4px solid var(--hivis);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  color: var(--hivis);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature .icon .ico { width: 28px; height: 28px; stroke-width: 1.75; }
.feature h3 { font-size: 1.45rem; font-weight: 800; }
.feature p { margin: 0; color: var(--steel); }

.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 8px; }
.price-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--blueprint); background: #eef4fa; }
.price-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; min-height: 36px; }
.price-head h3 { margin: 0; font-size: 1.7rem; font-weight: 800; }
.best-badge { /* a label, not a button: dark, flat, no amber */
  display: inline-block;
  background: var(--blueprint);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  padding: 7px 9px;
  border-radius: var(--r-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.price-tag { font-family: var(--font-display); font-size: 3rem; font-weight: 800; line-height: 1; color: var(--ink); margin: 14px 0 12px; }
.price-tag small { font-family: var(--font-body); font-size: 0.95rem; font-weight: 500; color: var(--steel); }
.price-card p { margin: 0; color: var(--steel); }
.compare { margin: 24px 0 0; padding: 14px 18px; border-left: 6px solid var(--hivis); background: var(--white); border-radius: 0 var(--r-md) var(--r-md) 0; border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.price-cta { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; margin: 32px 0 0; color: var(--steel); }
.compare + .compare { margin-top: 12px; }
.cta-band { background: var(--asphalt); color: var(--on-dark); text-align: center; padding: 56px 0 48px; border-top: 6px solid var(--hivis); }
.cta-band h2 { color: var(--white); margin: 0 0 20px; font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.cta-band .cta-row { justify-content: center; margin-bottom: 14px; }
.cta-band .cta-note { margin: 0 auto; max-width: 28em; }

/* legal and 404 pages */
.legal main.wrap { padding-top: 36px; padding-bottom: 48px; }
.legal .card { margin-bottom: 16px; padding: 16px 20px; }
.keypoints { background: var(--hivis-soft); border: 1px solid var(--line); border-left: 6px solid var(--hivis); border-radius: var(--r-md); padding: 20px 22px; margin-bottom: 24px; }
.status-box { background: var(--hivis-soft); border: 1px solid var(--line); border-left: 6px solid var(--hivis); border-radius: var(--r-md); padding: 18px 20px; margin-bottom: 24px; }

/* footer */
footer { background: var(--asphalt); color: var(--on-dark-muted); padding: 32px 0; font-size: 0.95rem; border-top: 1px solid #2d3640; }
footer p { margin: 0 0 8px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 24px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; }
footer strong { color: var(--white); }
footer a { color: var(--on-dark); }

@media (max-width: 1000px) {
  .hero .wrap { gap: 32px; }
}
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 40px; }
  .hero-art { padding: 28px 12px; }
  .steps { grid-template-columns: 1fr; gap: 48px; }
  .step-text { order: -1; }
  .steps .phone { margin: 24px 0 0; align-self: center; }
  .brand { font-size: 1.9rem; }
  .brand img { width: 44px; height: 44px; border-radius: 10px; }
  nav { min-height: 68px; }
  section { padding: 48px 0; }
  .hide-sm { display: none; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .grid { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 48px minmax(0, 1fr); gap: 0 14px; }
  .feature .icon { width: 48px; height: 48px; }
  nav .btn-line { display: none; }
  .cta-row .btn, .price-cta .btn { width: 100%; }
  .legal h1 { font-size: 2.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}
