.pseo-bo {
  --bo-ink: #152238;
  --bo-muted: #64748b;
  --bo-line: #dbe4f0;
  --bo-blue: #2563eb;
  --bo-cyan: #0891b2;
  --bo-green: #059669;
  --bo-orange: #ea580c;
  max-width: 1120px;
  margin: 42px auto;
  color: var(--bo-ink);
  font-family: inherit;
}

.pseo-bo * { box-sizing: border-box; }
.pseo-bo [hidden] { display: none !important; }

.pseo-bo__hero {
  padding: 32px 34px 25px;
  border-radius: 24px 24px 0 0;
  color: #fff;
  background:
    radial-gradient(circle at 82% 15%, rgba(34, 211, 238, .28), transparent 31%),
    linear-gradient(135deg, #0f2442, #193a66 58%, #075985);
}

.pseo-bo__eyebrow,
.pseo-bo__hero .pseo-bo__eyebrow {
  display: block;
  margin-bottom: 8px;
  color: #67e8f9;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
}

.pseo-bo__hero h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(25px, 4vw, 38px);
  line-height: 1.2;
}

.pseo-bo__hero p {
  max-width: 760px;
  margin: 0;
  color: #dbeafe;
  font-size: 15px;
  line-height: 1.7;
}

.pseo-bo__form {
  padding: 28px 34px 30px;
  border: 1px solid var(--bo-line);
  border-top: 0;
  border-radius: 0 0 24px 24px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(15, 35, 65, .1);
}

.pseo-bo__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.pseo-bo label {
  display: block;
  margin-bottom: 16px;
}

.pseo-bo label > span {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 600;
}

.pseo-bo input,
.pseo-bo textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 12px 14px;
  background: #f8fafc;
  color: var(--bo-ink);
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.pseo-bo input:focus,
.pseo-bo textarea:focus {
  border-color: var(--bo-blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.pseo-bo__honey {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.pseo-bo__submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 14px;
  padding: 14px 18px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(90deg, var(--bo-blue), var(--bo-cyan));
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.pseo-bo__submit:disabled { cursor: wait; opacity: .65; }
.pseo-bo__fine { margin: 12px 0 0; color: var(--bo-muted); font-size: 12px; line-height: 1.6; text-align: center; }

.pseo-bo__loading {
  margin-top: 24px;
  padding: 42px 24px;
  border: 1px solid var(--bo-line);
  border-radius: 20px;
  background: #fff;
  text-align: center;
}

.pseo-bo__loading strong { display: block; margin-top: 18px; font-size: 19px; }
.pseo-bo__loading > span { display: block; margin-top: 6px; color: var(--bo-muted); font-size: 13px; }

.pseo-bo__radar {
  position: relative;
  width: 72px;
  height: 72px;
  margin: auto;
  overflow: hidden;
  border: 1px solid #93c5fd;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, #eff6ff 0 12px, #bfdbfe 13px 14px);
}

.pseo-bo__radar::after {
  content: "";
  position: absolute;
  inset: 50% 50% 0 0;
  transform-origin: right top;
  background: linear-gradient(135deg, rgba(8, 145, 178, .65), transparent);
  animation: pseo-bo-scan 1.4s linear infinite;
}

.pseo-bo__radar i {
  position: absolute;
  z-index: 2;
  top: 23px;
  right: 17px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
}

@keyframes pseo-bo-scan { to { transform: rotate(360deg); } }

.pseo-bo__error,
.pseo-bo__warning {
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid #fecaca;
  border-radius: 12px;
  color: #991b1b;
  background: #fef2f2;
  font-size: 13px;
  line-height: 1.65;
}

.pseo-bo__report {
  margin-top: 26px;
  border: 1px solid var(--bo-line);
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 50px rgba(15, 35, 65, .1);
}

.pseo-bo__report-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 30px;
  border-bottom: 1px solid var(--bo-line);
  background: #f8fafc;
}

.pseo-bo__report-head h3 { margin: 2px 0 5px; font-size: 27px; line-height: 1.25; }
.pseo-bo__report-head p { margin: 0; color: var(--bo-muted); font-size: 13px; word-break: break-all; }

.pseo-bo__mode {
  align-self: flex-start;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  white-space: nowrap;
}

.pseo-bo__mode.is-api { color: #065f46; background: #d1fae5; }
.pseo-bo__mode.is-free { color: #92400e; background: #fef3c7; }

.pseo-bo__summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 18px 30px;
  border-bottom: 1px solid var(--bo-line);
}

.pseo-bo__summary article {
  padding: 15px;
  border: 1px solid var(--bo-line);
  border-radius: 14px;
  background: #fff;
}

.pseo-bo__summary strong { display: block; font-size: 25px; line-height: 1; color: var(--bo-blue); }
.pseo-bo__summary span { display: block; margin-top: 6px; color: var(--bo-muted); font-size: 12px; }
.pseo-bo__report > .pseo-bo__warning { margin: 18px 30px 0; }

.pseo-bo__section { padding: 26px 30px; border-top: 1px solid var(--bo-line); }
.pseo-bo__section-title { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.pseo-bo__section-title span { color: var(--bo-blue); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.pseo-bo__section-title h3 { margin: 3px 0 0; font-size: 20px; }
.pseo-bo__section-title p { max-width: 430px; margin: 0; color: var(--bo-muted); font-size: 12px; line-height: 1.6; text-align: right; }

.pseo-bo__free-note {
  display: flex;
  gap: 12px;
  margin: 20px 30px 0;
  padding: 14px 16px;
  border: 1px solid #bae6fd;
  border-radius: 13px;
  color: #0c4a6e;
  background: #f0f9ff;
  font-size: 13px;
}

.pseo-bo__free-note span { line-height: 1.6; }
.pseo-bo__opportunity-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }

.pseo-bo__opportunity {
  padding: 16px;
  border: 1px solid var(--bo-line);
  border-radius: 15px;
  background: #fff;
}

.pseo-bo__opportunity-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.pseo-bo__type { color: var(--bo-blue); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.pseo-bo__opportunity h4 { margin: 2px 0 0; font-size: 16px; word-break: break-word; }

.pseo-bo__score { flex: 0 0 auto; padding: 7px 9px; border-radius: 9px; font-size: 11px; font-weight: 800; }
.pseo-bo__score.is-high { color: #065f46; background: #d1fae5; }
.pseo-bo__score.is-medium { color: #92400e; background: #fef3c7; }
.pseo-bo__score.is-review { color: #991b1b; background: #fee2e2; }

.pseo-bo__metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 13px 0; }
.pseo-bo__metrics span { padding: 8px; border-radius: 9px; color: var(--bo-muted); background: #f8fafc; font-size: 10px; }
.pseo-bo__metrics b { display: block; color: var(--bo-ink); font-size: 15px; }
.pseo-bo__opportunity p { margin: 8px 0; color: #475569; font-size: 12px; line-height: 1.6; }
.pseo-bo__opportunity p strong { color: var(--bo-ink); font-weight: 600; }
.pseo-bo__opportunity small { display: block; color: var(--bo-muted); font-size: 10px; }
.pseo-bo__visit { display: inline-block; margin-top: 12px; color: var(--bo-blue); font-size: 12px; font-weight: 700; text-decoration: none; }

.pseo-bo__query-list { display: grid; gap: 9px; }
.pseo-bo__query {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--bo-line);
  border-radius: 12px;
}

.pseo-bo__query span { display: block; margin-bottom: 3px; color: var(--bo-cyan); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.pseo-bo__query code { color: #334155; background: none; font-size: 12px; white-space: normal; }
.pseo-bo__query a { flex: 0 0 auto; color: var(--bo-blue); font-size: 11px; font-weight: 700; text-decoration: none; }

.pseo-bo__workflow ol { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: bo-step; }
.pseo-bo__workflow li { counter-increment: bo-step; padding: 13px 13px 13px 44px; border-radius: 12px; background: #f8fafc; color: #475569; font-size: 12px; line-height: 1.55; position: relative; }
.pseo-bo__workflow li::before { content: counter(bo-step); position: absolute; left: 12px; top: 12px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--bo-blue); font-size: 10px; font-weight: 800; }

.pseo-bo__disclaimer { margin: 0 30px 20px; padding: 13px 15px; border-radius: 12px; color: #78350f; background: #fffbeb; font-size: 11px; line-height: 1.6; }
.pseo-bo__actions { display: flex; gap: 10px; padding: 18px 30px; border-top: 1px solid var(--bo-line); background: #f8fafc; }
.pseo-bo__actions button,
.pseo-bo__actions a { padding: 11px 14px; border: 0; border-radius: 10px; color: #fff; background: var(--bo-blue); font: inherit; font-size: 12px; font-weight: 700; text-decoration: none; cursor: pointer; }
.pseo-bo__actions a { background: var(--bo-green); }
.pseo-bo__actions .is-secondary { margin-left: auto; color: #334155; background: #e2e8f0; }

@media (max-width: 760px) {
  .pseo-bo { margin: 22px 12px; }
  .pseo-bo__hero, .pseo-bo__form { padding-left: 20px; padding-right: 20px; }
  .pseo-bo__grid, .pseo-bo__summary, .pseo-bo__opportunity-list, .pseo-bo__workflow ol { grid-template-columns: 1fr; }
  .pseo-bo__report-head, .pseo-bo__section-title, .pseo-bo__free-note, .pseo-bo__query, .pseo-bo__actions { flex-direction: column; }
  .pseo-bo__section-title p { text-align: left; }
  .pseo-bo__actions .is-secondary { margin-left: 0; }
  .pseo-bo__section, .pseo-bo__report-head, .pseo-bo__summary, .pseo-bo__actions { padding-left: 18px; padding-right: 18px; }
  .pseo-bo__report > .pseo-bo__warning, .pseo-bo__free-note, .pseo-bo__disclaimer { margin-left: 18px; margin-right: 18px; }
}

@media print {
  .pseo-bo__form, .pseo-bo__hero, .pseo-bo__actions { display: none !important; }
  .pseo-bo__report { margin: 0; border: 0; box-shadow: none; }
  .pseo-bo__opportunity { break-inside: avoid; }
}
