/* AgencyTenders design system */
:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #f0f2f8;
  --text: #0e1222;
  --muted: #5a6178;
  --line: #e3e6ef;
  --brand: #4f46e5;
  --brand-2: #06b6d4;
  --brand-ink: #ffffff;
  --ok: #16a34a;
  --warn: #d97706;
  --danger: #dc2626;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 20, 40, .06), 0 8px 24px rgba(16, 20, 40, .06);
  --shadow-lg: 0 20px 60px rgba(30, 27, 75, .18);
  --hero-1: #0b0f24;
  --hero-2: #1e1b4b;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #090c18; --surface: #111527; --surface-2: #171c33; --text: #eef0f7; --muted: #9aa1b9;
    --line: #232944; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(34px, 6vw, 62px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 750; }
h3 { font-size: 19px; font-weight: 650; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.grad { background: linear-gradient(90deg, #a5b4fc, #67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(160%) blur(12px);
  background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid var(--line); }
.nav.dark { background: rgba(11, 15, 36, .72); border-bottom-color: rgba(255,255,255,.08); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--text); letter-spacing: -.02em; }
.logo:hover { text-decoration: none; }
.nav.dark .logo, .nav.dark .links a:not(.btn) { color: #e8eaf6; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid; place-items: center; color: #fff; font-size: 15px; box-shadow: 0 6px 18px rgba(79,70,229,.45); }
.links { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.links a:not(.btn) { color: var(--muted); font-weight: 500; }
.links a:not(.btn):hover { color: var(--text); text-decoration: none; }
@media (max-width: 720px) { .links .hide-m { display: none; } .links { gap: 12px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  font: 600 15px/1 var(--font); padding: 12px 18px; border-radius: 10px; background: var(--brand); color: var(--brand-ink);
  transition: transform .12s ease, box-shadow .2s ease, background .2s; white-space: nowrap; }
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(79,70,229,.35); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.lg { padding: 15px 24px; font-size: 16px; border-radius: 12px; }
.btn.sm { padding: 8px 12px; font-size: 14px; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { box-shadow: none; background: var(--surface-2); }
.btn.light { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.18); }
.btn.danger { background: transparent; color: var(--danger); border: 1px solid var(--line); }
.btn.grad-btn { background: linear-gradient(90deg, var(--brand), #7c3aed); }

/* Hero */
.hero { position: relative; overflow: hidden; color: #eef0ff;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(6,182,212,.28), transparent 60%),
              radial-gradient(900px 500px at 0% 20%, rgba(124,58,237,.35), transparent 60%),
              linear-gradient(180deg, var(--hero-1), var(--hero-2)); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .35;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.hero .wrap { position: relative; padding-top: 72px; padding-bottom: 84px; }
.hero p.lead { font-size: clamp(17px, 2.2vw, 21px); color: #c7cbe6; max-width: 640px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #dfe3ff; margin-bottom: 22px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.signup-inline { display: flex; gap: 10px; margin-top: 26px; max-width: 520px; flex-wrap: wrap; }
.signup-inline input { flex: 1 1 240px; }
.hero input { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #fff; }
.hero input::placeholder { color: #a9aed0; }
.trust { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 26px; color: #aeb3d6; font-size: 14px; }
.trust b { color: #fff; font-size: 22px; display: block; letter-spacing: -.02em; }

/* Hero mock (product preview) */
.mock { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; padding: 14px;
  box-shadow: var(--shadow-lg); transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); }
.mock-bar { display: flex; gap: 6px; padding: 4px 4px 12px; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.25); }
.mock .tcard { background: rgba(255,255,255,.95); color: #0e1222; border: 0; margin: 0 0 10px; }
.mock .tcard:last-child { margin-bottom: 0; }

/* Sections */
section.block { padding: 88px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 700; color: var(--brand); margin-bottom: 10px; }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.feature .icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 20px;
  background: color-mix(in srgb, var(--brand) 12%, transparent); margin-bottom: 14px; }
.area { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; }
.area:hover { text-decoration: none; border-color: color-mix(in srgb, var(--brand) 50%, var(--line)); transform: translateY(-2px); }
.area { transition: transform .15s, border-color .2s; color: var(--text); }
.area .n { font-weight: 800; font-size: 22px; color: var(--brand); }
.step-n { width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; margin-bottom: 12px; }

/* Tender card */
.tcard { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 10px 0; }
.tcard .t { font-weight: 650; color: inherit; display: block; line-height: 1.35; }
.tcard .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.mock .tcard .meta { color: #5a6178; }
.tcard .sum { font-size: 14.5px; margin-top: 8px; color: var(--text); }
.mock .tcard .sum { color: #2a3047; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.tag { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.tag.hot { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.fit { font-weight: 700; color: var(--ok); }

/* Pricing */
.toggle { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin: 0 auto 32px; }
.toggle button { border: 0; background: transparent; font: 600 14px var(--font); padding: 8px 16px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.toggle button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; position: relative; }
.plan.featured { border: 2px solid var(--brand); box-shadow: 0 20px 50px rgba(79,70,229,.18); }
.plan .badge { position: absolute; top: -12px; left: 22px; background: linear-gradient(90deg, var(--brand), #7c3aed); color: #fff;
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.price { font-size: 44px; font-weight: 800; letter-spacing: -.03em; line-height: 1; margin: 10px 0 4px; }
.price small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 24px; flex: 1; }
.plan li { padding: 6px 0 6px 26px; position: relative; font-size: 15px; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }

/* Forms */
label { display: block; font-weight: 600; font-size: 14px; margin: 14px 0 6px; }
input, select, textarea { width: 100%; font: 15px var(--font); padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 520px) { .checks { grid-template-columns: 1fr; } }
.check { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
  font-weight: 500; margin: 0; background: var(--surface); }
.check input { width: 18px; height: 18px; accent-color: var(--brand); margin: 0; }
.check:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, var(--surface)); }
.auth { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 40px 16px; }
.auth .card { width: 100%; max-width: 520px; padding: 32px; }
.msg { padding: 10px 12px; border-radius: 10px; font-size: 14px; margin-top: 14px; display: none; }
.msg.show { display: block; }
.msg.err { background: color-mix(in srgb, var(--danger) 10%, var(--surface)); color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 30%, var(--line)); }
.msg.ok { background: color-mix(in srgb, var(--ok) 10%, var(--surface)); color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 30%, var(--line)); }
.hp { position: absolute; left: -9999px; }
.plan-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.plan-pick .check { flex-direction: column; align-items: flex-start; gap: 2px; }
.plan-pick .check input { position: absolute; opacity: 0; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::after { content: "+"; color: var(--muted); font-size: 20px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 0; color: var(--muted); }

/* App shell */
.app { display: grid; grid-template-columns: 272px 1fr; min-height: calc(100vh - 64px); }
@media (max-width: 860px) { .app { grid-template-columns: 1fr; } .side { position: static !important; border-right: 0 !important; border-bottom: 1px solid var(--line); } }
.side { border-right: 1px solid var(--line); padding: 20px 14px; background: var(--surface); position: sticky; top: 64px; height: calc(100vh - 64px); overflow: auto; }
@media (max-width: 860px) { .side { height: auto; display: flex; gap: 6px; overflow-x: auto; padding: 10px; } .side h4 { display: none; } }
.side h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 18px 10px 8px; }
.side a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 9px; color: var(--text); font-weight: 500; font-size: 15px; white-space: nowrap; }
.side a:hover { background: var(--surface-2); text-decoration: none; }
.side a.on { background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); }
.side .count { font-size: 12px; font-weight: 700; color: var(--muted); background: var(--surface-2); padding: 1px 8px; border-radius: 999px; }
.main { padding: 26px clamp(16px, 3vw, 36px); min-width: 0; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 14px 0 6px; }
.toolbar input { flex: 1 1 240px; }
.toolbar select { width: auto; }
.banner { padding: 12px 16px; border-radius: 12px; background: color-mix(in srgb, var(--brand) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--brand) 25%, var(--line)); font-size: 14.5px; margin-bottom: 14px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; align-items: center; }
.actions select { width: auto; padding: 7px 10px; font-size: 14px; }
.status { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; text-transform: capitalize; }
.status.interested { background: #e0e7ff; color: #3730a3; } .status.preparing { background: #fef3c7; color: #92400e; }
.status.submitted { background: #cffafe; color: #155e75; } .status.won { background: #dcfce7; color: #166534; }
.status.lost { background: #fee2e2; color: #991b1b; } .status.dismissed { background: #f1f5f9; color: #475569; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.spinner { width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.pager { display: flex; gap: 10px; justify-content: center; margin: 20px 0; }
.copy { display: flex; gap: 8px; } .copy input { font-family: ui-monospace, monospace; font-size: 13px; }

/* Footer */
footer.site { border-top: 1px solid var(--line); padding: 36px 0; color: var(--muted); font-size: 14px; background: var(--surface); }
footer.site .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer.site a { color: var(--muted); }
.cta-band { border-radius: 22px; padding: 48px clamp(20px, 5vw, 56px); color: #fff; text-align: center;
  background: radial-gradient(600px 300px at 90% 0%, rgba(6,182,212,.35), transparent 60%), linear-gradient(135deg, #1e1b4b, #4f46e5); box-shadow: var(--shadow-lg); }
.cta-band p { color: #d6d9f5; }
.cta-band input { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); color: #fff; }
.cta-band input::placeholder { color: #c6c9ec; }
.cta-band .signup-inline { margin: 22px auto 0; }
.prose h2 { font-size: 24px; margin-top: 1.6em; } .prose { padding: 48px 0 72px; }

/* Countdown + card row */
.trow { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.cd { flex: none; font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.cd.warm { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
.cd.hot { background: #fef2f2; color: #b91c1c; border-color: #fecaca; animation: glow 2.4s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 4px rgba(239,68,68,.12); } }
.fitb { color: var(--ok); letter-spacing: 1px; }
.closing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .closing-grid { grid-template-columns: 1fr; } }
.closing { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.closing .clock { display: flex; gap: 8px; }
.closing .clock div { flex: 1; text-align: center; background: var(--surface-2); border-radius: 10px; padding: 8px 4px; }
.closing .clock b { display: block; font-size: 24px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.closing .clock span { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.closing .t { font-weight: 650; color: var(--text); line-height: 1.35; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; }
.compare .us { background: color-mix(in srgb, var(--brand) 7%, transparent); font-weight: 600; }
.yes { color: var(--ok); font-weight: 800; } .no { color: var(--danger); font-weight: 800; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }

.side a { min-width: 0; } .side a > span.count { flex: none; }
.mock .tcard .sum { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mock .tcard .tags .tag:nth-child(n+3):not(.fitb) { display: none; }
