/* BidRadar landing page — uses tokens from style.css */

.lp { --lp-max: 1200px; background: var(--bg); }

.lp-wrap {
  width: 100%;
  max-width: var(--lp-max);
  margin: 0 auto;
  padding: 0 24px;
}
.lp-wrap.narrow { max-width: 820px; }

/* ---------------------------------- nav */

.lp-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.lp-nav-inner {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.lp-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-right: auto;
}
.lp-links a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  transition: color .15s;
}
.lp-links a:hover { color: var(--text); }
.lp-nav-actions { display: flex; align-items: center; gap: 8px; }
.lp-nav-actions .btn { height: 36px; }

/* ---------------------------------- hero */

.hero {
  position: relative;
  padding: 76px 0 72px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 620px;
  background:
    radial-gradient(620px 320px at 22% 30%, var(--accent-soft), transparent 70%),
    radial-gradient(520px 280px at 82% 10%, #e6fbf2, transparent 70%);
  opacity: .9;
  pointer-events: none;
  z-index: 0;
}
html[data-theme="dark"] .hero::before { opacity: .35; }
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 820;
  letter-spacing: -.035em;
  line-height: 1.22;
  margin: 10px 0 0;
}
.hero-copy h1 .hl {
  color: var(--accent);
  background: linear-gradient(var(--accent-soft), var(--accent-soft)) no-repeat left bottom / 100% .26em;
  padding: 0 2px;
}
html[data-theme="dark"] .hero-copy h1 .hl {
  color: #aebdff;
  background: linear-gradient(rgba(122, 147, 255, .22), rgba(122, 147, 255, .22)) no-repeat left bottom / 100% .26em;
}
html[data-theme="dark"] .lp .btn-primary { background: #4a67f0; color: #fff; }
html[data-theme="dark"] .lp .btn-primary:hover { background: #5b78ff; }
html[data-theme="dark"] .lp .btn-primary:disabled { opacity: .6; }
.hero-copy .lead {
  margin-top: 20px;
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--text-2);
  max-width: 520px;
}
.hero-copy .lead b { color: var(--text); font-weight: 700; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.btn-lg {
  height: 46px;
  padding: 0 20px;
  font-size: 14px;
  border-radius: 11px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
  color: var(--muted);
}
.hero-meta li { display: flex; align-items: baseline; gap: 5px; }
.hero-meta b { font-size: 14px; color: var(--text); font-weight: 750; }

.hero-visual { position: relative; }
.browser {
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 34px 70px -30px rgba(16, 24, 40, .35), 0 2px 6px rgba(16, 24, 40, .06);
  overflow: hidden;
  position: relative;
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.browser-bar .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border-strong);
}
.browser-bar .dot:first-child { background: #f9a8a0; }
.browser-bar .dot:nth-child(2) { background: #f7d488; }
.browser-bar .dot:nth-child(3) { background: #9be0b8; }
.browser-url {
  margin-left: 10px;
  font-size: 11px;
  color: var(--faint);
  letter-spacing: .01em;
}
.browser img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10.4;
  max-height: 470px;
  object-fit: cover;
  object-position: top left;
}

.tg-toast {
  position: absolute;
  left: -34px;
  bottom: 24px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  max-width: 330px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 18px 44px -16px rgba(16, 24, 40, .3);
  animation: toast-in .7s cubic-bezier(.2, .8, .3, 1) both .5s;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
  to { opacity: 1; transform: none; }
}
.tg-badge {
  width: 34px; height: 34px;
  flex: none;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #229ed9;
  color: #fff;
}
.tg-badge svg { width: 19px; height: 19px; }
.tg-toast b {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
}
.tg-toast span {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--muted);
}
.demo-tag {
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: .1em;
  color: var(--amber);
  background: var(--amber-soft);
  border: 1px solid var(--amber-border);
  padding: 4px 7px;
  border-radius: 6px;
}

/* ---------------------------------- sections */

.lp-section { padding: 84px 0; }
.lp-section.tinted {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-head { max-width: 660px; margin: 0 auto 44px; text-align: center; }
.section-head h2 {
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.3;
}
.section-head p {
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted);
}
.section-sub { font-size: 14.5px; line-height: 1.75; color: var(--muted); }

/* ---------------------------------- pain */

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.pain {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}
.pain-icon {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  margin-bottom: 16px;
}
.pain-icon svg { width: 20px; height: 20px; }
.pain-icon.blue { background: var(--accent-soft); color: var(--accent); }
.pain-icon.amber { background: var(--amber-soft); color: var(--amber); }
.pain-icon.red { background: var(--red-soft); color: var(--red); }
.pain h3 { font-size: 15px; font-weight: 750; letter-spacing: -.015em; }
.pain p { margin-top: 8px; font-size: 13.5px; line-height: 1.68; color: var(--muted); }

/* ---------------------------------- steps */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 21px;
  left: 6%;
  right: 6%;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--border-strong) 0 6px, transparent 6px 12px);
  z-index: 0;
}
.step {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
}
.step-no {
  display: inline-grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 12.5px;
  font-weight: 750;
  letter-spacing: .03em;
  box-shadow: 0 0 0 6px var(--surface-2);
  margin-bottom: 14px;
}
.step h3 { font-size: 14.5px; font-weight: 750; }
.step p { margin-top: 7px; font-size: 13px; line-height: 1.68; color: var(--muted); }

/* ---------------------------------- demo */

.demo-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 52px;
  align-items: center;
}
.demo-copy h2 {
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.3;
  margin-top: 4px;
}
.demo-copy .section-sub { margin-top: 14px; }
.check-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 11px;
}
.check-list li {
  position: relative;
  padding-left: 26px;
  font-size: 13.8px;
  line-height: 1.55;
  color: var(--text-2);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23067647' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E") center / 11px no-repeat;
  border: 1px solid #abefc6;
}
.demo-actions { display: flex; align-items: center; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.demo-note { font-size: 12px; color: var(--faint); }
.demo-shot { margin: 0; }
.demo-shot img {
  display: block;
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  box-shadow: 0 26px 56px -28px rgba(16, 24, 40, .32);
  aspect-ratio: 16 / 11;
  object-fit: cover;
  object-position: top left;
}
.demo-shot figcaption {
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--faint);
  text-align: right;
}

/* ---------------------------------- pricing */

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}
.plan.featured {
  border-color: var(--accent-border);
  box-shadow: 0 22px 48px -26px rgba(49, 87, 232, .45);
}
.plan-badge {
  position: absolute;
  top: -11px;
  right: 20px;
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: .04em;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  padding: 4px 10px;
}
.plan h3 { font-size: 16px; font-weight: 780; letter-spacing: -.01em; }
.plan-desc {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
  min-height: 40px;
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 16px;
}
.plan-price .amount {
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -.03em;
}
.plan-price .unit { font-size: 12px; color: var(--faint); font-weight: 600; }
.plan-month {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-2);
}
.plan-month b { font-size: 14px; color: var(--text); }
.plan ul {
  margin: 18px 0 22px;
  padding: 16px 0 0;
  border-top: 1px solid var(--border);
  list-style: none;
  display: grid;
  gap: 9px;
}
.plan li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}
.plan li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-border);
}
.plan.featured li::before { background: var(--accent); }
.plan .btn { margin-top: auto; }
.plan-note {
  margin-top: 26px;
  text-align: center;
  font-size: 12px;
  line-height: 1.7;
  color: var(--faint);
}

/* ---------------------------------- faq */

.faq { border-top: 1px solid var(--border); }
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 4px 0;
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 2px;
  font-size: 14.5px;
  font-weight: 680;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  border-radius: 7px;
  background: var(--surface-3);
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
  transition: transform .18s, background .18s;
}
.faq details[open] summary::after {
  content: "+";
  transform: rotate(45deg);
  background: var(--accent-soft);
  color: var(--accent);
}
.faq details p {
  padding: 0 40px 20px 2px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
}

/* ---------------------------------- contact */

.contact-section {
  background:
    radial-gradient(760px 320px at 12% 0%, rgba(49, 87, 232, .35), transparent 70%),
    radial-gradient(620px 300px at 92% 100%, rgba(6, 118, 71, .28), transparent 70%),
    #0d1424;
  color: #e8edf8;
  border-top: 1px solid #1b2540;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-copy { align-self: center; }
.contact-copy .eyebrow { color: #8fa6ff; }
.contact-copy h2 {
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.32;
}
.contact-copy .section-sub { color: #a9b6cf; margin-top: 14px; }
.contact-steps {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}
.contact-steps li {
  display: grid;
  gap: 3px;
  padding-left: 16px;
  border-left: 2px solid rgba(143, 166, 255, .35);
}
.contact-steps b { font-size: 13.5px; font-weight: 700; color: #fff; }
.contact-steps span { font-size: 12.8px; line-height: 1.6; color: #9dabc6; }
.contact-note { margin-top: 26px; font-size: 12px; color: #7f8da8; }

.lead-form {
  background: var(--surface);
  color: var(--text);
  border-radius: 16px;
  padding: 26px 26px 24px;
  box-shadow: 0 30px 70px -24px rgba(0, 0, 0, .55);
}
.form-head h3 { font-size: 17px; font-weight: 780; letter-spacing: -.02em; }
.form-head p { margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lead-form .field > span i { color: var(--red); font-style: normal; }
.lead-form textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  line-height: 1.55;
  resize: vertical;
  min-height: 76px;
}
.lead-form textarea::placeholder { color: var(--faint); }
.lead-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.consent {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin: 16px 0 18px;
  font-size: 11.8px;
  line-height: 1.6;
  color: var(--muted);
  cursor: pointer;
}
.consent input { margin: 2px 0 0; accent-color: var(--accent); width: 15px; height: 15px; flex: none; }
.lead-form .btn { height: 46px; font-size: 14px; }
.form-status {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.55;
  min-height: 18px;
  color: var(--muted);
}
.form-status.ok { color: var(--green); font-weight: 650; }
.form-status.err { color: var(--red); font-weight: 650; }
.lead-form.sent .field,
.lead-form.sent .consent,
.lead-form.sent .btn { opacity: .45; pointer-events: none; }

/* ---------------------------------- footer */

.lp-foot {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 40px 0 28px;
}
.lp-foot-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.foot-desc { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-links a { font-size: 12.5px; color: var(--muted); }
.foot-links a:hover { color: var(--text); }
.foot-fine {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 11.5px;
  color: var(--faint);
}

/* ---------------------------------- responsive */

@media (max-width: 980px) {
  .hero-grid, .demo-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { max-width: 620px; }
  .hero-visual { max-width: 620px; }
  .tg-toast { left: 12px; bottom: 12px; max-width: 290px; }
  .hero-visual, .demo-shot { max-width: 640px; }
  .pain-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .plan-desc { min-height: 0; }
  .plan.featured { order: -1; }
  .contact-grid { gap: 34px; }
  .section-head { margin-bottom: 32px; }
}

@media (max-width: 720px) {
  .lp-links { display: none; }
  .lp-hide-sm { display: none; }
  .hero { padding: 48px 0 56px; }
  .lp-section { padding: 60px 0; }
  .hero-cta .btn { flex: 1 1 160px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .lead-form { padding: 22px 18px; }
  .foot-fine { flex-direction: column; gap: 6px; }
  .demo-shot figcaption { text-align: left; }
}

@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .hero-meta { gap: 6px 16px; }
  .tg-toast { position: static; margin-top: 12px; max-width: none; }
  .demo-tag { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .tg-toast { animation: none; }
}
