/* /success: LANDING grammar (one message, one CTA, no nav; the shell's header-landing and footer-landing carry that),
   family structure (cyan to violet), signature PHOTOELASTIC. Layout is this page's own (D18, fix round 1): the
   specimen stands at the centre of the page and the message is set either side of it (the headline high on the left,
   the lede low on the right); below, the form is the inspection sheet hung under the disc, centred on the same axis,
   with what you want to see first as a checklist. */

/* ---- hero: a centred specimen, the message either side ---- */
.sc-hero { position: relative; overflow-x: clip; isolation: isolate; }
.sc-hero::before {
  /* the polarized light the specimen is seen in: centred on it, faint */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(30% 44% at 50% 50%, rgba(127, 214, 242, .13), transparent 100%),
    radial-gradient(22% 30% at 56% 62%, rgba(180, 156, 248, .1), transparent 100%);
}
.sc-hero-in {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px) minmax(0, 1fr);
  gap: clamp(20px, 2.6vw, 40px);
  min-height: min(824px, calc(100vh - 76px));
  padding-block: clamp(40px, 6vh, 72px) clamp(32px, 5vh, 56px);
}
.sc-left { align-self: start; padding-top: clamp(16px, 5vh, 64px); position: relative; z-index: 2; }
.sc-right { align-self: end; padding-bottom: clamp(16px, 5vh, 64px); position: relative; z-index: 2; }
.sc-left .eyebrow { margin: 0 0 22px; }
.sc-hero h1 {
  font: 400 clamp(46px, 4.7vw, 72px)/1 var(--serif); letter-spacing: -.012em;
  margin: 0; color: var(--ink);
}
.sc-lede { font-size: 18px; line-height: 1.62; color: var(--ink-2); margin: 0; }
.sc-specimen { margin: 0; align-self: center; display: flex; justify-content: center; pointer-events: none; }
.sc-specimen .ps-stage { width: 100%; }
.sc-specimen img, .sc-specimen canvas { display: block; }

/* ---- the inspection sheet, hung under the specimen on the same axis ---- */
.sc-talk { padding: clamp(56px, 8vh, 96px) 0 clamp(72px, 10vh, 120px); }
.sc-sheet {
  position: relative; max-width: 760px; margin: 0 auto;
  padding: clamp(28px, 4vw, 56px) clamp(22px, 4.4vw, 64px) clamp(26px, 3.4vw, 44px);
  background: #FFFEFC; border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(29, 33, 38, .13), 0 1px 0 rgba(29, 33, 38, .04), 0 34px 64px -44px rgba(40, 60, 110, .34);
}
.sc-sheet::before, .sc-sheet::after {
  /* the tag line it hangs from, up toward the specimen, and the ring at its top */
  content: ""; position: absolute; left: 50%; pointer-events: none;
}
.sc-sheet::before { top: -56px; height: 56px; width: 1px; margin-left: -.5px; background: rgba(29, 33, 38, .3); }
.sc-sheet::after { top: -66px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(29, 33, 38, .45); }
.sc-sheet-head { text-align: center; padding-bottom: 26px; border-bottom: 1px solid rgba(29, 33, 38, .16); }
.sc-sheet h2 { font: 400 clamp(34px, 3.6vw, 52px)/1.04 var(--serif); letter-spacing: -.01em; margin: 0 0 12px; }
.sc-sheet-head p { margin: 0; color: var(--ink-2); font-size: 17px; }

.sc-checks { border: 0; margin: 0; padding: 22px 0 0; min-width: 0; }
.sc-checks legend, .sc-field label {
  font: 600 13px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2);
}
.sc-checks legend { padding: 22px 0 6px; float: left; width: 100%; }
.sc-row {
  clear: both; position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: center; gap: 18px;
  min-height: 60px; padding: 10px 0; border-bottom: 1px solid rgba(29, 33, 38, .1); cursor: pointer;
  font-size: 18px; line-height: 1.4; color: var(--ink);
}
.sc-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sc-box {
  position: relative; width: 22px; height: 22px; border-radius: 4px; background: #FFFFFF;
  box-shadow: inset 0 0 0 1.5px rgba(29, 33, 38, .55);
}
.sc-row input:checked + .sc-box { background: var(--ink); box-shadow: none; }
.sc-row input:checked + .sc-box::after {
  content: ""; position: absolute; left: 7.5px; top: 3.5px; width: 5px; height: 10px;
  border: solid #FBFAF7; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.sc-row input:focus-visible + .sc-box { outline: 2px solid var(--ink); outline-offset: 3px; }

.sc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; margin-top: 30px; }
.sc-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sc-wide { grid-column: 1 / -1; }
.sc-field input, .sc-field select, .sc-field textarea {
  font: 400 17px/1.4 var(--sans); color: var(--ink);
  min-height: 48px; padding: 11px 14px; border: 0; border-radius: 4px;
  background: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(29, 33, 38, .26);
}
.sc-field select { padding-right: 30px; cursor: pointer; -webkit-appearance: none; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 13px) 55%, calc(100% - 7px) 55%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
.sc-field textarea { min-height: 96px; resize: vertical; }
.sc-field input:focus, .sc-field select:focus, .sc-field textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ink); }

.sc-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 34px; text-align: center; }
.sc-actions .btn { min-height: 52px; padding: 0 30px; }
.sc-actions .btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.sc-msg { margin: 0; font: 600 15px/1.4 var(--sans); color: var(--ink); min-height: 1.4em; }
.sc-noscript { margin: 0; font-size: 15px; color: var(--ink); max-width: 34em; }
.sc-fine { margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(29, 33, 38, .1); text-align: center; display: grid; gap: 6px; }
.sc-fine p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-3); }
.sc-fine a { color: var(--ink); text-underline-offset: 3px; }

/* ---- narrower desktops: the message on one row, the specimen centred under it ---- */
@media (max-width: 1100px) and (min-width: 761px) {
  .sc-hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 48px; min-height: 0; }
  .sc-left { grid-column: 1; grid-row: 1; padding-top: 0; }
  .sc-right { grid-column: 2; grid-row: 1; padding-bottom: 0; }
  .sc-specimen { grid-column: 1 / -1; grid-row: 2; }
  .sc-specimen .ps-stage { width: min(100%, 520px); }
}
/* very short desktop windows: keep the specimen inside the first screen */
@media (min-width: 1101px) and (max-height: 760px) {
  .sc-hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 480px) minmax(0, 1fr); }
}

/* ---- phone ---- */
@media (max-width: 760px) {
  .sc-hero-in { grid-template-columns: 1fr; min-height: 0; gap: 14px; padding-block: 36px 8px; }
  .sc-left, .sc-right { padding: 0; }
  .sc-hero h1 { font-size: clamp(42px, 11.6vw, 54px); }
  .sc-lede { font-size: 17.5px; }
  .sc-specimen .ps-stage { width: min(92%, 380px); }
  .sc-talk { padding-top: 64px; }
  .sc-sheet { border-radius: 4px; }
  .sc-sheet-head { text-align: left; }
  .sc-row { font-size: 17px; }
  .sc-fields { grid-template-columns: 1fr; }
  .sc-actions { align-items: stretch; }
  .sc-actions .btn { width: 100%; }
  .sc-fine { text-align: left; }
}
