/* SOP company mini demos — dark-glass surfaces aligned with the professional workspace. */
.smd-shelf {
  margin: 1rem 0 1.5rem;
  padding: clamp(1rem, 2.4vw, 1.5rem);
  border: 1px solid rgba(119, 201, 196, .28);
  border-radius: 16px;
  background: linear-gradient(140deg, rgba(15, 45, 63, .92), rgba(10, 25, 42, .94));
  color: #e9f1f8;
}
.smd-shelf-heading { margin-bottom: .9rem; }
.smd-shelf-heading > span { color: #77c9c4; font-size: .67rem; font-weight: 800; letter-spacing: .15em; }
.smd-shelf-heading h2 { margin: .2rem 0 .3rem; color: #f2f7fc; font-size: clamp(1.15rem, 2vw, 1.45rem); }
.smd-shelf-heading p { margin: 0; color: #aebfcf; font-size: .83rem; line-height: 1.5; }
.smd-shelf-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem; }
.smd-shelf-card {
  display: flex; min-width: 0; min-height: 135px; margin: 0;
  flex-direction: column; align-items: flex-start; gap: .45rem;
  padding: .85rem; border: 1px solid rgba(151, 189, 210, .21); border-radius: 11px;
  background: rgba(9, 24, 41, .72); color: #eaf4f9; text-align: left; cursor: pointer;
  transition: border-color .17s ease, background .17s ease, transform .17s ease;
}
.smd-shelf-card:hover, .smd-shelf-card:focus-visible {
  border-color: #77c9c4; background: rgba(30, 75, 90, .58); transform: translateY(-2px);
}
.smd-shelf-card strong { font-size: .85rem; line-height: 1.35; }
.smd-shelf-card span { color: #aabac8; font-size: .73rem; line-height: 1.35; }
.smd-shelf-card small { margin-top: auto; color: #91ded5; font-size: .62rem; font-weight: 800; letter-spacing: .04em; }
.smd-agency-card { grid-column: 1 / -1; min-height: 110px; }
@media (max-width: 850px) { .smd-shelf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .smd-shelf-grid { grid-template-columns: 1fr; } .smd-shelf-card { min-height: 98px; } }
.sop-mini-demo {
  --smd-accent: #77c9c4;
  --smd-accent-rgb: 119, 201, 196;
  position: fixed;
  z-index: 10020;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(.65rem, 3vw, 2rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(var(--smd-accent-rgb), .13), transparent 48%),
    rgba(3, 10, 19, .82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #e9f1f8;
  font-family: 'Inter', 'Plus Jakarta Sans', sans-serif;
}
.sop-mini-demo *,
.sop-mini-demo *::before,
.sop-mini-demo *::after { box-sizing: border-box; }
.smd-dialog {
  position: relative;
  display: flex;
  width: min(100%, 880px);
  min-height: 0;
  max-height: min(760px, calc(100dvh - 2rem));
  flex-direction: column;
  overflow: auto;
  border: 1px solid rgba(160, 191, 221, .24);
  border-radius: 21px;
  background: linear-gradient(145deg, rgba(20, 44, 69, .98), rgba(9, 24, 41, .99) 65%), #0b1d31;
  box-shadow: inset 0 1px 0 rgba(238, 247, 255, .08), 0 30px 90px rgba(0, 0, 0, .5), 0 0 0 1px rgba(4, 13, 23, .38);
  animation: smdArrive 220ms cubic-bezier(.2, .75, .25, 1) both;
}
.smd-dialog::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--smd-accent) 22%, rgba(var(--smd-accent-rgb), .28) 82%, transparent);
  content: "";
  pointer-events: none;
}
.smd-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .65rem 1rem;
  padding: clamp(1.35rem, 4vw, 2.25rem) clamp(1.25rem, 4.5vw, 2.8rem) 1.1rem;
}
.smd-eyebrow {
  margin: 0;
  color: var(--smd-accent);
  font-size: .67rem;
  font-weight: 780;
  letter-spacing: .15em;
  line-height: 1.4;
  text-transform: uppercase;
}
.smd-title {
  max-width: 25ch;
  margin: 0;
  color: #f2f7fc;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: clamp(1.65rem, 4vw, 2.45rem);
  font-weight: 780;
  letter-spacing: -.045em;
  line-height: 1.12;
  text-wrap: balance;
}
.smd-intro {
  max-width: 64ch;
  margin: 0;
  color: #b5c4d3;
  font-size: .91rem;
  line-height: 1.6;
}
.smd-close {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  grid-column: 2;
  grid-row: 1 / span 3;
  place-items: center;
  border: 1px solid rgba(164, 190, 217, .22);
  border-radius: 10px;
  background: rgba(8, 22, 38, .54);
  color: #c7d5e2;
  font: inherit;
  font-size: 1.25rem;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.smd-close:hover { border-color: rgba(var(--smd-accent-rgb), .55); background: rgba(var(--smd-accent-rgb), .12); color: #f4fbff; }
.smd-trail {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 0 clamp(1.25rem, 4.5vw, 2.8rem) 1.1rem;
}
.smd-stepcount {
  flex: 0 0 auto;
  color: #9dafc1;
  font-size: .73rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}
.smd-progress {
  display: flex;
  flex: 1;
  gap: .38rem;
}
.smd-progress span {
  height: 3px;
  flex: 1;
  border-radius: 4px;
  background: rgba(143, 178, 211, .2);
  transition: background-color 180ms ease;
}
.smd-progress span.is-active { background: var(--smd-accent); }
.smd-pace {
  flex: 0 0 auto;
  color: #879db1;
  font-size: .7rem;
}
.smd-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: stretch;
  gap: 1rem;
  padding: 0 clamp(1.25rem, 4.5vw, 2.8rem) 1.3rem;
}
.smd-story {
  position: relative;
  min-width: 0;
  min-height: 254px;
  padding: clamp(1.2rem, 3vw, 1.8rem);
  overflow: hidden;
  border: 1px solid rgba(143, 178, 211, .19);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(29, 57, 84, .75), rgba(12, 31, 51, .86));
  box-shadow: inset 0 1px 0 rgba(235, 245, 255, .045);
  animation: smdReveal 200ms ease both;
}
.smd-story::after {
  position: absolute;
  right: -3rem;
  bottom: -4.3rem;
  width: 9rem;
  height: 9rem;
  border: 1px solid rgba(var(--smd-accent-rgb), .09);
  border-radius: 50%;
  box-shadow: 0 0 0 1rem rgba(var(--smd-accent-rgb), .025), 0 0 0 2rem rgba(var(--smd-accent-rgb), .018);
  content: "";
  pointer-events: none;
}
.smd-status {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin: 0 0 .9rem;
  color: #a7d9d5;
  font-size: .67rem;
  font-weight: 780;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.smd-status::before {
  width: .42rem;
  height: .42rem;
  border-radius: 50%;
  background: var(--smd-accent);
  content: "";
}
.smd-story h3 {
  max-width: 28ch;
  margin: 0;
  color: #f1f6fb;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  font-weight: 760;
  letter-spacing: -.035em;
  line-height: 1.23;
  text-wrap: balance;
}
.smd-copy {
  max-width: 62ch;
  margin: .75rem 0 0;
  color: #b8c7d6;
  font-size: .88rem;
  line-height: 1.65;
  text-wrap: pretty;
}
.smd-illustration {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
  border: 1px solid rgba(143, 178, 211, .14);
  border-radius: 14px;
  background: rgba(6, 20, 35, .44);
}
.smd-illustration-label {
  margin: 0;
  color: #8298ae;
  font-size: .63rem;
  font-weight: 760;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.smd-diagram {
  display: grid;
  gap: .6rem;
  padding: .4rem 0;
}
.smd-diagram-row {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: #c5d4e2;
  font-size: .73rem;
  line-height: 1.35;
}
.smd-diagram-mark {
  display: grid;
  width: 1.65rem;
  height: 1.65rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(var(--smd-accent-rgb), .3);
  border-radius: 7px;
  background: rgba(var(--smd-accent-rgb), .1);
  color: var(--smd-accent);
  font-size: .63rem;
  font-weight: 800;
}
.smd-diagram-link {
  width: 1px;
  height: .55rem;
  margin: -.45rem 0 -.45rem .8rem;
  background: rgba(var(--smd-accent-rgb), .34);
}
.smd-example {
  margin: 0;
  padding: .66rem .72rem;
  border: 1px solid rgba(242, 192, 121, .24);
  border-radius: 8px;
  background: rgba(160, 106, 43, .1);
  color: #e7c994;
  font-size: .64rem;
  font-weight: 760;
  line-height: 1.4;
  letter-spacing: .045em;
}
.smd-detail {
  position: relative;
  z-index: 1;
  margin-top: 1rem;
  border-top: 1px solid rgba(143, 178, 211, .16);
  padding-top: .8rem;
}
.smd-detail summary {
  width: fit-content;
  color: #a8d9d6;
  font-size: .78rem;
  font-weight: 720;
  cursor: pointer;
}
.smd-detail p { margin: .65rem 0 0; color: #aebecd; font-size: .8rem; line-height: 1.6; }
.smd-flow-note {
  margin: 0 clamp(1.25rem, 4.5vw, 2.8rem) 1.1rem;
  padding: .72rem .85rem;
  border: 1px solid rgba(143, 178, 211, .14);
  border-radius: 9px;
  background: rgba(6, 20, 35, .38);
  color: #a9bac9;
  font-size: .75rem;
  line-height: 1.55;
}
.smd-flow-note strong { color: #d4e2eb; font-weight: 700; }
.smd-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: auto;
  padding: .95rem clamp(1.25rem, 4.5vw, 2.8rem) clamp(1.1rem, 2.5vw, 1.45rem);
  border-top: 1px solid rgba(143, 178, 211, .14);
  background: linear-gradient(180deg, rgba(8, 22, 38, .24), rgba(6, 18, 31, .45));
}
.smd-nav, .smd-cta-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.smd-button {
  display: inline-flex;
  min-height: 2.65rem;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .62rem .95rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-size: .8rem;
  font-weight: 730;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.smd-button:hover:not(:disabled) { transform: translateY(-1px); }
.smd-back { border-color: rgba(153, 181, 208, .22); background: transparent; color: #bac8d6; }
.smd-back:hover:not(:disabled) { border-color: rgba(153, 181, 208, .42); background: rgba(153, 181, 208, .07); color: #edf4fa; }
.smd-next { border-color: rgba(var(--smd-accent-rgb), .78); background: var(--smd-accent); color: #08232a; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
.smd-next:hover:not(:disabled) { background: #91d8d3; }
.smd-request { border-color: rgba(var(--smd-accent-rgb), .45); background: rgba(var(--smd-accent-rgb), .12); color: #dcf6f4; }
.smd-request:hover:not(:disabled) { border-color: rgba(var(--smd-accent-rgb), .72); background: rgba(var(--smd-accent-rgb), .19); }
.smd-button:disabled { cursor: not-allowed; opacity: .56; }
.smd-contact {
  max-width: 38ch;
  margin: 0;
  color: #aab9c8;
  font-size: .71rem;
  line-height: 1.45;
}
.sop-mini-demo :focus-visible {
  outline: 3px solid rgba(var(--smd-accent-rgb), .88);
  outline-offset: 3px;
}
@keyframes smdArrive { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes smdReveal { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 680px) {
  .sop-mini-demo { display: flex; align-items: flex-start; justify-content: center; padding: max(.45rem, env(safe-area-inset-top)) .45rem max(.45rem, env(safe-area-inset-bottom)); }
  .smd-dialog { width: 100%; max-height: calc(100dvh - max(.9rem, env(safe-area-inset-top) + env(safe-area-inset-bottom))); border-radius: 16px; }
  .smd-header { gap: .55rem .7rem; padding: 1.25rem 1rem .95rem; }
  .smd-title { font-size: clamp(1.55rem, 7vw, 2rem); }
  .smd-intro { font-size: .85rem; }
  .smd-close { width: 2.4rem; height: 2.4rem; }
  .smd-trail { gap: .55rem; padding: 0 1rem .9rem; }
  .smd-pace { display: none; }
  .smd-body { grid-template-columns: minmax(0, 1fr); gap: .65rem; padding: 0 1rem 1rem; }
  .smd-story { min-height: 230px; padding: 1.1rem; }
  .smd-illustration { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .7rem; padding: .7rem .8rem; }
  .smd-illustration-label { grid-column: 1 / -1; }
  .smd-diagram { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .3rem; padding: 0; }
  .smd-diagram-row { flex-direction: column; align-items: flex-start; gap: .3rem; font-size: .65rem; }
  .smd-diagram-link { display: none; }
  .smd-diagram-mark { width: 1.45rem; height: 1.45rem; }
  .smd-example { max-width: 145px; font-size: .58rem; }
  .smd-flow-note { margin: 0 1rem .9rem; }
  .smd-actions { padding: .8rem 1rem max(.9rem, env(safe-area-inset-bottom)); }
  .smd-nav, .smd-cta-wrap { width: 100%; }
  .smd-nav { justify-content: space-between; }
  .smd-cta-wrap { justify-content: stretch; }
  .smd-cta-wrap .smd-button { flex: 1; }
}
@media (max-width: 370px) {
  .smd-header { padding-right: .8rem; padding-left: .8rem; }
  .smd-trail, .smd-body { padding-right: .8rem; padding-left: .8rem; }
  .smd-flow-note { margin-right: .8rem; margin-left: .8rem; }
  .smd-actions { padding-right: .8rem; padding-left: .8rem; }
  .smd-illustration { grid-template-columns: minmax(0, 1fr); }
  .smd-illustration-label { grid-column: auto; }
  .smd-example { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .smd-dialog, .smd-story { animation: none; }
  .smd-button, .smd-progress span, .smd-close { transition: none; }
  .smd-button:hover:not(:disabled) { transform: none; }
}