/* Tender Digest — SHARP.
   White + near-black teal, hairline borders, tight type, small radii.
   No beige, no soft shadows, no pill buttons. Numbers first, like the
   sharp tender sites: live stats strip, dense cards, plain words. */

:root {
  --teal: #0a2f31;
  --teal-dark: #062326;
  --teal-light: #14524f;
  --mist: #f4f7f5;
  --line: #e3e9e6;
  --line-dark: #d5dedb;
  --green: #147a2e;
  --green-dark: #0f5e24;
  --orange: #e87722;
  --orange-dark: #cf6517;
  --red: #d92b2b;
  --ink: #101815;
  --muted: #55635f;
  --white: #ffffff;
  --radius: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  font-size: 16px;
}
h1, h2, h3 { font-family: 'Archivo', sans-serif; letter-spacing: -0.02em; }
h1 { line-height: 1.05; }
h2 { line-height: 1.1; font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; margin: 0 0 0.4rem; }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 1.25rem; }
section { padding: 3.5rem 0; }
.section-sub { color: var(--muted); max-width: 640px; font-size: 1.02rem; }

/* Buttons — sharp corners, no pills */
.btn {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-small { padding: 0.55rem 1.1rem; font-size: 0.9rem; border-radius: 8px; background: var(--green); color: var(--white); }
.btn-small:hover { background: var(--green-dark); }
.btn-orange { background: var(--orange); color: var(--white); box-shadow: 0 6px 18px rgba(232, 119, 34, .30); }
.btn-orange:hover { background: var(--orange-dark); }
.btn-ghost { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.5); }
.btn-ghost:hover { border-color: var(--white); }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-dark); }
.btn-block { width: 100%; font-size: 1.1rem; padding: 1rem; }
.btn-card { padding: 0.55rem 1.1rem; font-size: 0.9rem; border-radius: 8px; }

/* Top bar */
.topbar { background: var(--teal); position: sticky; top: 0; z-index: 10; }
.topbar .topbar-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 1.6rem; padding-bottom: 1.6rem; }
.brand { color: var(--white); font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 1.2rem; text-decoration: none; letter-spacing: -0.01em; }
.brand-mark {
  display: inline-block; background: var(--orange); color: var(--white);
  width: 1.7rem; height: 1.7rem; line-height: 1.7rem; text-align: center;
  border-radius: 50%; margin-right: 0.4rem; font-size: 1.05rem;
}

/* Hero — near-black teal, tight, punchy */
.hero { background: var(--teal); color: var(--white); position: relative; overflow: hidden; padding: 4.5rem 0 4rem; }
.hero-inner { position: relative; z-index: 2; max-width: 760px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .82rem; font-weight: 700; color: #8ec4b4; margin: 0 0 1rem; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 900; margin: 0 0 1.1rem; }
.hero-sub { font-size: 1.18rem; color: #d7e8e1; max-width: 640px; margin: 0; }
.hero-price { font-size: 1.12rem; margin: 1.5rem 0; }
.price-big { font-family: 'Archivo', sans-serif; font-size: 2.3rem; font-weight: 900; color: #ffb066; letter-spacing: -0.02em; }
.hero-form { max-width: 520px; margin-top: 2rem; }
.hero-form #signup-form { margin-top: 0; }
.hero-sample-link { margin-top: 1rem; }
.hero-sample-link a { color: #8ec4b4; font-weight: 600; }
.hero-trust { margin-top: 1.6rem; font-size: .88rem; color: #8ec4b4; }

/* Stats strip — light now, so the dark hero stands alone */
.stats { background: var(--mist); color: var(--ink); padding: 1.4rem 0; overflow: hidden; }
.stats-inner { overflow: hidden; }
.stats-track { display: flex; width: max-content; animation: ticker 30s linear infinite; }
.stats-set { display: flex; align-items: center; gap: 2.5rem; padding-right: 2.5rem; }
.ticker-dot { color: var(--muted); }
.stats:hover .stats-track { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .stats-track { animation: none; } }
.stat b { display: block; font-family: 'Archivo', sans-serif; font-size: 1.7rem; font-weight: 900; letter-spacing: -0.02em; color: var(--ink); }
.stat span { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
.stats-note { margin-left: auto; font-size: .82rem; color: var(--muted); }

/* How it works */
.how { background: var(--white); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2rem; }
.step { background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.step-no {
  display: inline-block; background: var(--teal); color: var(--white);
  font-family: 'Archivo', sans-serif; font-weight: 800;
  width: 2.1rem; height: 2.1rem; line-height: 2.1rem; text-align: center; border-radius: 50%;
}
.step h3 { margin: 1rem 0 0.4rem; font-size: 1.15rem; }
.step p { margin: 0; color: var(--muted); }

/* Sample job cards — dense, hairline, sharp */
.sample { background: var(--mist); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin-top: 2rem; }
.job { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem; transition: transform .15s ease, box-shadow .15s ease; }
.job:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(8,47,49,.10); }
.job-top { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 0.7rem; }
.job-value { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 1.3rem; color: var(--teal); letter-spacing: -0.01em; }
.flag { background: var(--red); color: var(--white); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 0.28rem 0.6rem; border-radius: 6px; white-space: nowrap; }
.job h3 { margin: 0 0 0.3rem; font-size: 1.12rem; }
.job-buyer { color: var(--muted); margin: 0 0 0.5rem; font-weight: 600; }
.job-why { font-size: 0.88rem; font-weight: 600; color: var(--teal); margin: 0 0 0.5rem; }
.job-meta { font-size: 0.9rem; color: var(--muted); margin: 0 0 1rem; }
.more-line { margin-top: 1.5rem; font-size: 1.02rem; }

/* Trades */
.editions { background: var(--white); }
.edition-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; margin-top: 2rem; }
.edition { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem; }
.edition h3 { margin: 0 0 0.5rem; font-size: 1.08rem; }
.edition-count { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 1.35rem; color: var(--teal); margin: 0 0 0.5rem; letter-spacing: -0.01em; }
.edition-count span { display: block; font-family: 'Inter', sans-serif; font-weight: 500; font-size: 0.85rem; color: var(--muted); letter-spacing: 0; }
.edition p:last-child { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Benefits — plain tick list, full sentences, normal case, no boxes */
.benefits { background: var(--mist); color: var(--ink); }
.benefit-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 2rem; font-size: 1.02rem; }
.benefit-list li::before { content: "✓ "; color: var(--green); font-weight: 800; }

/* FAQ */
.faq { background: var(--white); }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin-top: 2rem; }
.faq-item { background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem; }
.faq-item h3 { margin: 0 0 0.4rem; font-size: 1.08rem; }
.faq-item p { margin: 0; color: var(--muted); }

/* Closing strip */
.closing { background: var(--white); border-top: 1px solid var(--line); text-align: center; }
.closing-inner { max-width: 640px; }
.closing .price-big { color: var(--orange); }

/* Signup form */
#signup-form { text-align: left; color: var(--ink); background: var(--white); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 1.6rem; box-shadow: 0 14px 40px rgba(0,0,0,.28); margin-top: 1.5rem; }
.form-title { margin: 0 0 1.2rem; font-size: 1.25rem; }
#signup, #sample, #how { scroll-margin-top: 80px; }
#signup-form label { display: block; font-weight: 600; margin-bottom: 1rem; }
#signup-form input, #signup-form select {
  display: block; width: 100%; margin-top: 0.35rem; padding: 0.8rem;
  border: 1.5px solid var(--line-dark); border-radius: 8px; font-size: 1rem; font-family: inherit;
}
#signup-form input:focus, #signup-form select:focus { outline: none; border-color: var(--teal); }
.field-label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.trade-chips { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-bottom: 1.2rem; }
#signup-form .trade-chips input { position: absolute; opacity: 0; width: auto; margin: 0; }
.chip {
  display: inline-block; padding: 0.55rem 1.1rem; border: 1.5px solid var(--line-dark);
  border-radius: 8px; font-weight: 600; cursor: pointer; background: var(--white);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.trade-chips input:checked + .chip { background: var(--teal); color: var(--white); border-color: var(--teal); }
.trade-chips input:focus-visible + .chip { outline: 2px solid var(--orange); outline-offset: 2px; }
.form-note { font-size: 0.85rem; color: var(--muted); text-align: center; margin: 1rem 0 0; }

/* Footer */
footer { background: var(--teal-dark); color: #8ec4b4; padding: 2.5rem 0; font-size: 0.9rem; }
footer a { color: #8ec4b4; }
footer strong { color: var(--white); }
footer p { margin: 0.3rem 0; }

/* Mobile */
@media (max-width: 760px) {
  section { padding: 2.75rem 0; }
  .steps, .cards, .faq-grid, .benefit-list { grid-template-columns: 1fr; }
  .edition-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 3.25rem 0; }
  .stats-inner { gap: 1.5rem; }
  .stats-note { margin-left: 0; }
}
@media (max-width: 480px) {
  .edition-grid { grid-template-columns: 1fr; }
}

/* Desktop: hero two-column (copy left, form right) + benefits one clean row. */
@media (min-width: 761px) {
  .wrap { max-width: 980px; padding: 0 2rem; }
  section { padding: 4.5rem 0; }
  .hero-inner { max-width: 960px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2rem; align-items: center; }
  .hero-form { max-width: none; margin-top: 0; }
  .benefit-list { grid-template-columns: 1fr 1fr; gap: 1.1rem 2rem; font-size: 1.02rem; }
}

/* Builder sub-category checkboxes (shown only when Builders is ticked). */
.cat-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.2rem; }
.cat-list label { display: flex; gap: 0.45rem; align-items: center; font-size: 0.92rem; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 0.5rem 0.7rem; cursor: pointer; }
.cat-list input { width: auto; margin: 0; accent-color: var(--teal); }
.form-error { color: #d92b2b; font-size: 0.9rem; text-align: center; margin: 0 0 0.75rem; }

/* Building-work Select all / Clear — plain text buttons, secondary action. */
.cat-actions { display: flex; gap: 1rem; margin: 0 0 0.5rem; }
.cat-actions button { background: none; border: 0; padding: 0; font: inherit; color: #0a2f31; text-decoration: underline; cursor: pointer; }
