/* "Try a sample site": the whole section fits one screen. One main glass card runs the
   selected sample live (usable right there, on every screen size); small glass cover cards
   pick the sample. The blurred hero of the selected sample sits behind, for the glass. */
.samples { position: relative; overflow: hidden; background: var(--caviar); color: var(--snow); isolation: isolate;
  height: calc(100vh - var(--bar)); height: calc(100svh - var(--bar)); min-height: 560px; max-height: 1080px; padding: 24px 0 !important; }
.samples > .wrap { height: 100%; display: flex; flex-direction: column; }
.samples > .wrap > * + * { margin-top: 0 !important; }
.smp-bg { position: absolute; inset: -10%; z-index: -1; }
.smp-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(40px) saturate(1.35) brightness(.8); transform: scale(1.1); transition: opacity 400ms var(--e); }
.smp-bg img.swap { opacity: 0; transition-duration: 320ms; }
.smp-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(37,35,36,.78) 0, rgba(37,35,36,.38) 40%, rgba(37,35,36,.5) 100%); }

.smp-head h2 { font-size: 32px; }
.smp-head .lede { color: var(--muted-dark); font-size: 17px; margin-top: 4px !important; max-width: none; }

.glass { background: rgba(37,35,36,.42); border: 1px solid rgba(243,240,235,.18); border-radius: 16px;
  -webkit-backdrop-filter: blur(20px) saturate(1.2); backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(243,240,235,.08) inset, 0 24px 48px rgba(0,0,0,.28); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .glass { background: rgba(37,35,36,.88); } }

/* desktop: main card left, covers + CTA right */
.bento { flex: 1; min-height: 0; display: grid; gap: 16px; margin-top: 24px !important; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.smp-main { display: flex; flex-direction: column; min-height: 0; overflow: hidden; padding: 8px; }
.smp-side { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.smp-tiles { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(4, minmax(0, 1fr)); gap: 12px; }
.smp-cta { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.smp-cta p { color: var(--muted-dark); font-size: 15px; line-height: 1.45; }
.smp-cta b { color: var(--snow); font-weight: 800; }
.smp-cta .btn { width: 100%; }

.smp-chrome { display: flex; align-items: center; gap: 16px; height: 36px; padding: 0 8px; color: var(--muted-dark); font-size: 14px; flex: none; }
.smp-dots { display: flex; gap: 8px; }
.smp-dots i { width: 12px; height: 12px; border-radius: 50%; background: rgba(243,240,235,.28); }
.smp-url { flex: 1; text-align: center; background: rgba(243,240,235,.1); border-radius: 8px; padding: 4px 12px; max-width: 380px; margin: 0 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.smp-tag { color: var(--snow); font-weight: 500; white-space: nowrap; }
.smp-view { position: relative; flex: 1; min-height: 0; border-radius: 10px; overflow: hidden; background: #fff; }
.smp-view iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.smp-foot { flex: none; padding: 8px 8px 2px; color: var(--muted-dark); font-size: 14px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.smp-foot b { color: var(--snow); font-weight: 800; font-size: 15px; margin-right: 6px; }
.smp-foot .smp-try { margin-left: 12px; }

.smp-tile { position: relative; display: block; width: 100%; height: 100%; min-height: 0; padding: 5px; cursor: pointer; text-align: left; color: var(--snow); font: inherit; overflow: hidden;
  transition: transform 200ms var(--e), border-color 200ms var(--e), background-color 200ms var(--e); }
.smp-tile:nth-child(7) { grid-column: 1 / -1; }
.smp-tile picture, .smp-tile img { display: block; width: 100%; height: 100%; }
.smp-tile img { object-fit: cover; object-position: top; border-radius: 10px; transition: opacity 250ms var(--e), transform 300ms var(--e); }
.smp-tile .lbl { position: absolute; z-index: 2; left: 10px; right: 10px; bottom: 10px; padding: 4px 8px; border-radius: 8px; font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: rgba(37,35,36,.5); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid rgba(243,240,235,.16); }
@media (hover:hover) and (pointer:fine){.smp-tile:hover{ border-color: rgba(243,240,235,.34); }.smp-tile:hover img{ transform: scale(1.03); }}
.smp-tile:active { transform: scale(.97); }
.smp-tile[aria-selected="true"] { border-color: var(--snow); background: rgba(243,240,235,.16); box-shadow: 0 0 0 1px var(--snow), 0 24px 48px rgba(0,0,0,.28); }
.smp-tile[aria-selected="true"] .lbl { background: var(--snow); color: var(--caviar); border-color: var(--snow); }
.smp-tile:focus-visible { outline: 2px solid var(--snow); outline-offset: 3px; }

/* tablet and phone: main card on top, one row of 7 portrait covers under it */
@media (max-width: 900px) {
  .bento { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: 12px; }
  .smp-side { flex-direction: row; align-items: stretch; }
  .smp-tiles { grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: none; gap: 8px; }
  .smp-tile { aspect-ratio: 3 / 4; height: auto; padding: 3px; }
  .smp-tile:nth-child(7) { grid-column: auto; }
  .smp-tile img { border-radius: 8px; }
  .smp-tile .lbl { left: 6px; right: 6px; bottom: 6px; font-size: 11px; padding: 2px 6px; }
  .smp-cta { width: 220px; flex: none; justify-content: center; }
  .smp-foot .smp-try { display: block; margin-left: 0; }
  .smp-foot { white-space: normal; }
}
@media (max-width: 860px) {
  .samples { padding: 16px 0 !important; min-height: 520px; }
  .smp-head h2 { font-size: 24px; }
  .smp-head .lede { font-size: 14px; }
  .bento { margin-top: 12px !important; gap: 8px; }
  .smp-main { padding: 6px; border-radius: 14px; }
  .smp-chrome { height: 28px; font-size: 12px; }
  .smp-chrome .smp-tag, .smp-dots { display: none; }
  .smp-side { flex-direction: column; gap: 8px; }
  .smp-cta { width: auto; padding: 0; background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .smp-cta p { display: none; }
  .smp-cta .btn { min-height: 44px; }
  .smp-tiles { gap: 6px; }
  .smp-tile { border-radius: 10px; }
  .smp-tile .lbl { display: none; }
  .smp-foot { font-size: 12px; padding: 6px 6px 0; }
  .smp-foot b { font-size: 13px; }
}

/* skeleton loading (Pau's rule: always a skeleton grid while loading) */
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sk { display: block; border-radius: 8px; background: linear-gradient(90deg, #ECE7DF 25%, #F7F4EF 37%, #ECE7DF 63%); background-size: 400% 100%; }
.smp-skel { position: absolute; inset: 0; z-index: 2; background: #fff; padding: 24px 40px; display: flex; flex-direction: column; gap: 12px; opacity: 0; pointer-events: none; transition: opacity 200ms var(--e); }
.smp-view.is-loading .smp-skel { opacity: 1; transition-duration: 120ms; }
.sk-bar { height: 40px; margin-bottom: 24px; flex: none; }
.sk-h1 { height: 40px; width: 62%; flex: none; }
.sk-p { height: 14px; width: 48%; margin-top: 8px; flex: none; }
.sk-short { width: 38%; }
.sk-btn { height: 44px; width: 180px; margin-top: 16px; flex: none; }
.sk-grid { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; min-height: 0; }
.sk-img { height: 100%; }
.smp-tile.is-loading::before { content: ""; position: absolute; inset: 5px; border-radius: 10px; z-index: 1;
  background: linear-gradient(90deg, rgba(243,240,235,.08) 25%, rgba(243,240,235,.18) 37%, rgba(243,240,235,.08) 63%); background-size: 400% 100%; }
.smp-tile.is-loading img { opacity: 0; }
@media (max-width: 860px) {
  .smp-skel { padding: 16px; gap: 8px; }
  .sk-bar { height: 28px; margin-bottom: 12px; } .sk-h1 { height: 28px; width: 86%; } .sk-p { width: 80%; } .sk-short { width: 60%; }
  .sk-grid { grid-template-columns: 1fr 1fr; margin-top: 12px; } .sk-grid .sk-img:nth-child(3) { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .sk, .smp-tile.is-loading::before { animation: skel 1.4s ease-in-out infinite; }
  @keyframes skel { from { background-position: 100% 0; } to { background-position: 0 0; } }
}
@media (prefers-reduced-motion: reduce) { .smp-bg img, .smp-tile, .smp-tile img { transition: none; } }

/* "Open full site": the same sample as its own page (same tab; the sample has a back link) */
.smp-open { flex: none; display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid rgba(243,240,235,.3); color: var(--snow); font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background-color 200ms var(--e), border-color 200ms var(--e); }
.smp-open { position: relative; z-index: 1; }
.smp-open::after { content: ""; position: absolute; inset: -8px -2px; }
@media (hover:hover) and (pointer:fine){.smp-open:hover{ background: rgba(243,240,235,.12); border-color: rgba(243,240,235,.5); }}
.smp-open:focus-visible { outline: 2px solid var(--snow); outline-offset: 2px; }
@media (max-width: 1280px) { .smp-chrome .smp-tag { display: none; } }
@media (max-width: 860px) { .smp-chrome { gap: 8px; } .smp-open { min-height: 28px; padding: 0 10px; font-size: 12px; } .smp-url { padding: 3px 8px; } }
