/* Cafe's sales page on mainlab.es: what the site's own stylesheets don't already cover.
   Colours, type and spacing are the site's (--tinta, --trazo, --f-display, --r-stage…). */

/* The buy card */
.cs-buy { scroll-margin-top: calc(var(--sticky-offset) + 24px); }
.cs-form { display: grid; gap: 18px; }
.cs-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.cs-price__amount {
  font: 500 clamp(2.5rem, 2rem + 1.9vw, 3.5rem)/1 var(--f-display);
  letter-spacing: -.025em;
  color: var(--tinta);
  font-variant-numeric: tabular-nums;
}
.cs-price__terms { font-size: var(--fs-small); font-weight: 600; color: var(--grafito); line-height: 1.3; }
.cs-submit { width: 100%; }
.cs-submit[aria-busy="true"] { opacity: .6; cursor: progress; }
.cs-error { margin: -4px 0 0; }
.cs-points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.cs-points li {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: var(--fs-small); font-weight: 600; color: var(--tinta); line-height: 1.3;
}
.cs-points .node { --node: 8px; }

/* The pictures of the app: a dark table for a dark window */
.cs-stage {
  margin: 0;
  border-radius: var(--r-stage);
  background:
    radial-gradient(90% 70% at 50% 34%, #4a2c14 0%, rgba(74, 44, 20, 0) 70%),
    linear-gradient(180deg, #1c1410 0%, #0c0a09 100%);
  padding: clamp(28px, 5vw, 72px) clamp(14px, 4vw, 56px);
  overflow: hidden;
}
.cs-stage__shots { display: flex; justify-content: center; align-items: flex-start; gap: clamp(14px, 4.5vw, 64px); }
.cs-shot {
  display: block;
  width: clamp(132px, 31vw, 330px);
  height: auto;
  /* A hairline of light around the window, so it does not melt into the dark table. */
  filter: drop-shadow(0 0 .6px rgba(255, 255, 255, .55)) drop-shadow(0 28px 44px rgba(0, 0, 0, .55));
}
.cs-shot--b { margin-top: clamp(18px, 4vw, 56px); }

/* What the purchase includes */
.cs-purchase { display: grid; gap: 22px; }
.cs-purchase__also { font-size: var(--fs-body); color: var(--grafito); line-height: 1.6; }

/* The thank-you page */
.cs-thanks-phd { padding-bottom: clamp(32px, 5vw, 72px); }
.cs-thanks { margin-top: 10px; }
.cs-state { display: grid; justify-items: start; gap: 12px; }
.cs-state[hidden] { display: none; }
.cs-state .cs-submit { width: auto; min-width: min(100%, 18rem); margin: 6px 0 4px; }
.cs-state__wait { font: 500 var(--fs-h3)/1.2 var(--f-display); color: var(--grafito); }
.cs-state__wait::after { content: ""; display: inline-block; width: 1.2em; text-align: left; animation: cs-dots 1.2s steps(4, end) infinite; }
@keyframes cs-dots { 0% { content: ""; } 25% { content: "·"; } 50% { content: "··"; } 75% { content: "···"; } }
@media (prefers-reduced-motion: reduce) { .cs-state__wait::after { animation: none; } }
