/* ================================================================
   PayStubCheck Smart Features v1
   Unified SmartGuide + Knowledge Navigator + future prefill layer.
   Additive: scoped to .psc-smart-* and .psc-prefill-* only.
   ================================================================ */

.psc-smart-shell {
  position: relative;
  margin: 0;
  padding: 72px 20px;
  background:
    radial-gradient(circle at 20% 10%, rgba(168, 224, 64, 0.20), transparent 34%),
    linear-gradient(135deg, #f8fbf2 0%, #ffffff 52%, #f6fbef 100%);
  border-top: 1px solid rgba(11, 24, 6, 0.08);
  border-bottom: 1px solid rgba(11, 24, 6, 0.08);
}

.psc-smart-wrap {
  max-width: 1180px;
  margin: 0 auto;
}

.psc-smart-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 36px;
  align-items: stretch;
}

.psc-smart-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.55px;
  text-transform: uppercase;
  color: #0b1806;
  background: #e9f8d8;
  border: 1px solid #cbe8a6;
  border-radius: 999px;
  padding: 7px 11px;
}

.psc-smart-kicker::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #03A84E;
  box-shadow: 0 0 0 5px rgba(3, 168, 78, 0.12);
}

.psc-smart-title {
  margin: 0 0 14px;
  font-family: var(--ps-display, 'Bricolage Grotesque', sans-serif);
  font-size: clamp(34px, 4.5vw, 62px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  color: #0b1806;
}

.psc-smart-copy {
  max-width: 560px;
  margin: 0 0 22px;
  font-size: 17px;
  line-height: 1.62;
  color: #475569;
}

.psc-smart-points {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  max-width: 580px;
}

.psc-smart-point {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: #213121;
  font-size: 14.5px;
  line-height: 1.45;
}

.psc-smart-point svg {
  flex: 0 0 auto;
  margin-top: 2px;
  color: #03A84E;
}

.psc-smart-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(11, 24, 6, 0.10);
  box-shadow: 0 28px 70px rgba(11, 24, 6, 0.14);
  border-radius: 28px;
  padding: 24px;
  overflow: hidden;
}

.psc-smart-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.psc-smart-panel-title {
  margin: 0;
  color: #0b1806;
  font-size: 21px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.psc-smart-panel-subtitle {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 13.5px;
  line-height: 1.45;
}

.psc-smart-privacy {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: #4a6c1a;
  background: #f1f9e7;
  border: 1px solid #d7e9bb;
  border-radius: 999px;
  padding: 7px 9px;
  white-space: nowrap;
}

.psc-smart-quick {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.psc-smart-choice {
  border: 1px solid #e2ead8;
  background: #fff;
  color: #14220e;
  border-radius: 16px;
  padding: 13px 13px;
  min-height: 64px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}

.psc-smart-choice:hover,
.psc-smart-choice:focus-visible {
  transform: translateY(-2px);
  border-color: #9bd256;
  box-shadow: 0 14px 34px rgba(11, 24, 6, .10);
  outline: none;
}

.psc-smart-choice strong {
  display: block;
  font-size: 14.5px;
  line-height: 1.15;
  font-weight: 900;
}

.psc-smart-choice span {
  color: #64748b;
  font-size: 12.5px;
  line-height: 1.25;
}

.psc-smart-choice[data-audience="unsure"],
.psc-smart-choice.psc-smart-skip {
  background: #f8fbf2;
}

.psc-smart-search {
  margin: 18px 0 0;
  padding-top: 18px;
  border-top: 1px solid #edf2e7;
}

.psc-smart-search label {
  display: block;
  margin-bottom: 8px;
  color: #213121;
  font-size: 13px;
  font-weight: 900;
}

.psc-smart-search-row {
  display: flex;
  gap: 10px;
}

.psc-smart-search input {
  flex: 1;
  min-width: 0;
  border: 1px solid #d9e3d0;
  border-radius: 14px;
  padding: 14px 14px;
  color: #0b1806;
  background: #fff;
  font: inherit;
  font-size: 14px;
}

.psc-smart-search input:focus {
  outline: none;
  border-color: #03A84E;
  box-shadow: 0 0 0 4px rgba(3, 168, 78, .12);
}

.psc-smart-search button,
.psc-smart-primary-cta,
.psc-smart-secondary-cta {
  border: 0;
  cursor: pointer;
  border-radius: 14px;
  padding: 13px 16px;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
}

.psc-smart-search button,
.psc-smart-primary-cta {
  background: #03A84E;
  color: #fff;
  box-shadow: 0 12px 26px rgba(3, 168, 78, .20);
}

.psc-smart-secondary-cta {
  background: #f8fbf2;
  color: #0b1806;
  border: 1px solid #dbe8ce;
}

.psc-smart-search button:focus-visible,
.psc-smart-primary-cta:focus-visible,
.psc-smart-secondary-cta:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(3, 168, 78, .16), 0 12px 26px rgba(3, 168, 78, .18);
}

.psc-smart-secondary-cta:focus-visible {
  border-color: #9bd256;
}

.psc-smart-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.psc-smart-example {
  border: 1px solid #e2ead8;
  background: #fff;
  border-radius: 999px;
  color: #597047;
  cursor: pointer;
  padding: 6px 10px;
  font-size: 12px;
}

.psc-smart-results {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.psc-smart-result-card {
  border: 1px solid #e2ead8;
  border-radius: 18px;
  background: #fff;
  padding: 16px;
}

.psc-smart-result-label {
  font-size: 10.5px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 900;
  margin-bottom: 6px;
}

.psc-smart-result-card h3 {
  margin: 0 0 7px;
  color: #0b1806;
  font-size: 18px;
  line-height: 1.2;
}

.psc-smart-result-card p {
  margin: 0 0 12px;
  color: #475569;
  font-size: 14px;
  line-height: 1.5;
}

.psc-smart-product-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin: 12px 0 0;
}

.psc-smart-product-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
  background: #f1f9e7;
  color: #17330d;
  border: 1px solid #d4eabc;
}

.psc-smart-tax-note {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff8e7;
  border: 1px solid #f0ddb0;
  color: #6f5615;
  font-size: 12.5px;
  line-height: 1.45;
}

.psc-smart-upnext {
  margin-top: 16px;
  display: grid;
  gap: 9px;
}

.psc-smart-reset {
  border: 0;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  font-weight: 800;
  font-size: 12.5px;
  padding: 6px 0;
  text-decoration: underline;
}

.psc-smart-empty {
  border: 1px dashed #ccd8c0;
  background: #fcfff8;
  color: #586a4b;
  border-radius: 18px;
  padding: 16px;
  font-size: 14px;
  line-height: 1.5;
}

.psc-prefill-banner {
  position: relative;
  margin: 16px auto 0;
  max-width: 1120px;
  padding: 13px 18px;
  border: 1px solid #d7e9bb;
  border-radius: 16px;
  background: #f1f9e7;
  color: #213121;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  line-height: 1.4;
}

.psc-prefill-banner strong { color: #0b1806; }
.psc-prefill-banner button {
  border: 1px solid #c6dda8;
  background: #fff;
  border-radius: 999px;
  color: #213121;
  cursor: pointer;
  font-weight: 800;
  padding: 7px 10px;
}

.psc-prompt-bridge {
  max-width: 980px;
  margin: 0 auto;
  padding: 64px 20px;
}

.psc-prompt-card {
  border: 1px solid #e2ead8;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(11,24,6,.10);
  padding: 24px;
}

.psc-prompt-card textarea {
  width: 100%;
  min-height: 280px;
  border: 1px solid #d9e3d0;
  border-radius: 18px;
  padding: 16px;
  font: 13.5px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #0b1806;
  background: #fbfdf7;
  resize: vertical;
}

.psc-prompt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

@media (max-width: 900px) {
  .psc-smart-grid { grid-template-columns: 1fr; }
  .psc-smart-shell { padding: 52px 16px; }
}

@media (max-width: 560px) {
  .psc-smart-panel { padding: 18px; border-radius: 22px; }
  .psc-smart-quick { grid-template-columns: 1fr; }
  .psc-smart-search-row { flex-direction: column; }
  .psc-smart-search button { width: 100%; }
  .psc-smart-panel-head { flex-direction: column; }
}

.psc-smart-monthly {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #d7e9bb;
  border-radius: 16px;
  background: #f8fcf2;
}

.psc-smart-monthly-copy {
  display: grid;
  gap: 3px;
  margin-bottom: 10px;
}

.psc-smart-monthly-copy strong {
  color: #0b1806;
  font-size: 14px;
}

.psc-smart-monthly-copy span {
  color: #64748b;
  font-size: 12.5px;
  line-height: 1.45;
}

.psc-smart-monthly-row {
  display: flex;
  gap: 8px;
}

.psc-smart-monthly-row input[type="email"] {
  flex: 1;
  min-width: 0;
  border: 1px solid #d9e3d0;
  border-radius: 13px;
  padding: 12px 12px;
  font: inherit;
  font-size: 13px;
  background: #fff;
  color: #0b1806;
}

.psc-smart-monthly-consent {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  margin-top: 9px;
  color: #64748b;
  font-size: 11.5px;
  line-height: 1.4;
}

.psc-smart-monthly-consent input { margin-top: 2px; }
.psc-smart-monthly-status {
  min-height: 18px;
  margin-top: 8px;
  color: #375a16;
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 560px) {
  .psc-smart-monthly-row { flex-direction: column; }
}

/* Recommended document-set layer. Non-payment UI: routes users into existing product pages. */
.psc-smart-bundle {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #dce9cf;
  border-radius: 18px;
  background: linear-gradient(180deg, #fbfff7 0%, #ffffff 100%);
}

.psc-smart-bundle-head {
  display: grid;
  gap: 4px;
  margin-bottom: 8px;
}

.psc-smart-bundle-head strong {
  color: #0b1806;
  font-size: 16px;
  line-height: 1.2;
}

.psc-smart-bundle p {
  margin: 0 0 12px;
  color: #475569;
  font-size: 13.5px;
  line-height: 1.45;
}

.psc-smart-bundle-list {
  display: grid;
  gap: 8px;
}

.psc-smart-bundle-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid #e4edd9;
  border-radius: 14px;
  background: #fff;
  color: #0b1806;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.psc-smart-bundle-item:hover,
.psc-smart-bundle-item:focus-visible {
  transform: translateY(-1px);
  border-color: #9bd256;
  box-shadow: 0 12px 28px rgba(11, 24, 6, .08);
  outline: none;
}

.psc-smart-bundle-item span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.psc-smart-bundle-item strong {
  color: #0b1806;
  font-size: 13.5px;
  line-height: 1.2;
}

.psc-smart-bundle-item small {
  color: #64748b;
  font-size: 11.5px;
  line-height: 1.35;
}

.psc-smart-bundle-item em {
  flex: 0 0 auto;
  color: #03A84E;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .psc-smart-bundle-item { align-items: flex-start; flex-direction: column; }
}

/* AI Prompt Bridge structured paste helper. Frontend-only helper; does not change generators or checkout. */
.psc-prompt-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.psc-prompt-card h2 {
  margin: 0 0 12px;
  color: #0b1806;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.psc-bridge-paste-card p {
  margin: -4px 0 12px;
  color: #64748b;
  font-size: 13.5px;
  line-height: 1.5;
}

.psc-bridge-results {
  margin-top: 18px;
}

.psc-bridge-review-card {
  border: 1px solid #d7e9bb;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(11,24,6,.10);
  padding: 22px;
}

.psc-bridge-review-card h2 {
  margin: 6px 0 8px;
  color: #0b1806;
  font-size: 24px;
  letter-spacing: -0.025em;
}

.psc-bridge-review-card > p {
  margin: 0 0 16px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.55;
}

.psc-bridge-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.psc-bridge-detail-row {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid #edf2e7;
  border-radius: 14px;
  background: #fbfdf7;
}

.psc-bridge-detail-row span {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.psc-bridge-detail-row strong {
  color: #0b1806;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.psc-bridge-recommendation {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #dce9cf;
  border-radius: 18px;
  background: linear-gradient(180deg, #fbfff7 0%, #ffffff 100%);
}

.psc-bridge-recommendation span {
  display: block;
  margin-bottom: 5px;
  color: #4a6c1a;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.psc-bridge-recommendation strong {
  display: block;
  color: #0b1806;
  font-size: 17px;
  line-height: 1.25;
}

.psc-bridge-recommendation p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 13.5px;
  line-height: 1.45;
}

@media (max-width: 860px) {
  .psc-prompt-layout { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .psc-bridge-detail-grid { grid-template-columns: 1fr; }
}
