/* ClearCalc "At a glance" carousel: the same component as the Tandm page, in ClearCalc's mint */
/* ---------- At a glance: the final screens, both sides of the marketplace, near the top ---------- */
.glance { margin: 0; }
.glance-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 28px; }
.glance-head .eyebrow { margin: 0 0 8px; }
.glance-head h2 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: var(--fs-h2); }
.glance-skip {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none;
  font: 500 15px var(--font-display); transition: border-color .25s ease, translate .25s ease;
}
.glance-skip span { transition: translate .3s cubic-bezier(.22, 1, .36, 1); }
.glance-skip:hover { border-color: var(--text); }
.glance-skip:hover span { translate: 0 3px; }
.glance-skip:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

/* ---------- At a glance carousel: one large screen at a time, moved by the visitor (never on its own) ---------- */
.gc {
  --tint: var(--card-yellow);
  padding: clamp(14px, 3vw, 40px); border-radius: var(--radius); background: var(--tint);
  transition: background-color .6s ease;
}
.gc[data-side="seller"] { --tint: var(--card-lavender); }
.gc-stage { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 10px; }
.gc-stage:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
.gc-frame {
  position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 10px; background: #fff;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--text) 10%, transparent), 0 24px 48px -28px rgba(0, 0, 0, .4);
  touch-action: pan-y;
}
.gc-slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center;
  border-radius: 0 !important; opacity: 0; transition: opacity .55s ease;
}
.gc-slide.on { opacity: 1; }

/* caption left, dots in the middle, arrows right */
.gc-bar { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 20px; margin-top: 18px; }
.gc-cap { margin: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; min-width: 0; }
.gc-who {
  padding: 5px 11px; border-radius: 999px; background: var(--surface);
  font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
}
.gc-name { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-h3); color: var(--text); }
.gc-dots { display: flex; gap: 6px; }
.gc-dots button { width: 28px; height: 20px; padding: 8px 0; border: 0; background: none; cursor: pointer; }
.gc-dots i { display: block; height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--text) 18%, transparent); transition: background-color .3s ease; }
.gc-dots button:hover i { background: color-mix(in srgb, var(--text) 35%, transparent); }
.gc-dots button[aria-current="true"] i { background: var(--text); }
.gc-dots button:focus-visible, .gc-arrows button:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 6px; }
.gc-arrows { display: flex; gap: 8px; }
.gc-arrows button {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--text) 16%, transparent); background: var(--surface); color: var(--text); cursor: pointer;
  transition: border-color .25s ease, translate .25s ease;
}
.gc-arrows button:hover { border-color: var(--text); }
.gc-arrows button[data-step="-1"]:hover { translate: -2px 0; }
.gc-arrows button[data-step="1"]:hover { translate: 2px 0; }
.gc-arrows svg { width: 18px; height: 18px; }
@media (max-width: 640px) {
  .gc-bar { grid-template-columns: 1fr auto; row-gap: 12px; }
  .gc-cap { grid-column: 1 / -1; }
  .gc-name { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { .gc, .gc-slide { transition: none; } }

/* carousel autoplay: the current dot fills up to show when the next screen arrives */
.gc-dots i { position: relative; overflow: hidden; }
.gc-dots i::after { content: ""; position: absolute; inset: 0; border-radius: 2px; background: var(--text); transform-origin: left; scale: 0 1; }
.gc.auto .gc-dots button[aria-current="true"] i { background: color-mix(in srgb, var(--text) 18%, transparent); }
.gc.auto .gc-dots button[aria-current="true"] i::after { animation: gc-fill var(--dur, 6.5s) linear forwards; }
@keyframes gc-fill { from { scale: 0 1; } to { scale: 1 1; } }


.gc.gc-mint, .gc.gc-mint[data-side] { --tint: var(--card-mint); }
.cs-hero .role-cards { margin-bottom: 0; }
.cs section.glance { padding-top: var(--section-gap); }
@media (max-width: 860px) { .cs-hero .role-cards { margin-bottom: 0; } }
