/* =========================================================
   Smartmatching Sample Frame v1
   Unified branding shell applied to every sample page.
   ========================================================= */

/* Hide legacy inline bar if any sample still has it */
.smartmatching-sample-bar { display: none !important; }

/* ---- Top sticky bar ---- */
.sm-top {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: rgba(11, 15, 26, .94);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
          backdrop-filter: blur(14px) saturate(140%);
  color: #fff;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  font-size: 12.5px;
  line-height: 1.4;
  letter-spacing: .02em;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  padding: 8px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 1px 12px rgba(0, 0, 0, .15);
}
.sm-top *, .sm-top *::before, .sm-top *::after { box-sizing: border-box; }

.sm-top-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.sm-top-logo {
  width: 20px; height: 20px;
  background: linear-gradient(135deg, #4D8FFF 0%, #2D6CFF 100%);
  border-radius: 5px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 11px;
  flex-shrink: 0;
  font-family: system-ui, sans-serif;
  letter-spacing: -.02em;
}
.sm-top-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, .78);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sm-top-label strong {
  color: #FFD850;
  font-weight: 600;
  letter-spacing: .12em;
  font-size: 11px;
  text-transform: uppercase;
}
.sm-top-label .sep { opacity: .35; }

.sm-top-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.sm-top a {
  color: rgba(255, 255, 255, .85);
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s;
  font-weight: 500;
}
.sm-top a:hover { color: #fff; }
.sm-top .sm-cta {
  background: linear-gradient(135deg, #4D8FFF 0%, #2D6CFF 100%);
  color: #fff;
  padding: 7px 14px;
  border-radius: 6px;
  font-weight: 600;
  transition: transform .15s, box-shadow .2s;
  box-shadow: 0 2px 8px rgba(77, 143, 255, .25);
}
.sm-top .sm-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(77, 143, 255, .4);
  color: #fff;
}

@media (max-width: 720px) {
  .sm-top { font-size: 11px; padding: 6px 12px; gap: 8px; }
  .sm-top-label .sm-disclaimer { display: none; }
  .sm-top-right { gap: 10px; }
  .sm-top .sm-cta { padding: 5px 10px; }
  .sm-top a:not(.sm-cta) { font-size: 11px; }
}

/* ---- Bottom CTA band ---- */
.sm-cta-band {
  background:
    radial-gradient(ellipse at top right, rgba(77, 143, 255, .18), transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(255, 216, 80, .08), transparent 55%),
    linear-gradient(135deg, #111827 0%, #0B1220 100%);
  color: #fff;
  padding: 72px 24px;
  text-align: center;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.sm-cta-band *, .sm-cta-band *::before, .sm-cta-band *::after { box-sizing: border-box; }

.sm-cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .03 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: -1;
}

.sm-cta-band-inner {
  max-width: 720px;
  margin: 0 auto;
}
.sm-cta-band .sm-eyebrow {
  font-size: 11px;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: #FFD850;
  margin-bottom: 20px;
  font-weight: 600;
  font-family: system-ui, sans-serif;
}
.sm-cta-band h2 {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 18px;
  letter-spacing: -.01em;
  color: #fff;
}
.sm-cta-band p {
  font-size: 15px;
  line-height: 1.9;
  color: rgba(255, 255, 255, .72);
  margin: 0 0 36px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.sm-cta-band-actions {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.sm-cta-band-actions a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s cubic-bezier(.4, 0, .2, 1);
  letter-spacing: .02em;
}
.sm-cta-band .sm-btn-primary {
  background: linear-gradient(135deg, #4D8FFF 0%, #2D6CFF 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(77, 143, 255, .35);
}
.sm-cta-band .sm-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(77, 143, 255, .5);
}
.sm-cta-band .sm-btn-ghost {
  background: rgba(255, 255, 255, .06);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .15);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}
.sm-cta-band .sm-btn-ghost:hover {
  background: rgba(255, 255, 255, .11);
  border-color: rgba(255, 255, 255, .3);
}

.sm-cta-band-foot {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 12px;
  color: rgba(255, 255, 255, .5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-family: system-ui, sans-serif;
  letter-spacing: .04em;
}
.sm-cta-band-foot strong {
  color: rgba(255, 255, 255, .85);
  font-weight: 600;
}
.sm-cta-band-foot .dot { opacity: .35; }

@media (max-width: 640px) {
  .sm-cta-band { padding: 56px 20px; }
  .sm-cta-band-actions a { width: 100%; justify-content: center; }
}
