/* Sign-up page only: the extras on top of the site-wide glass skin (glass-site.css, loaded first).
   The form column and the order summary become two large glass cards with a grabber bar; the numbered sections
   inside the form are open, divided by hairlines. Every rule is scoped to body[data-page="signup"]. */

/* page head: centered, crisp */
body[data-page="signup"] .page-head { background: transparent; text-align: center; padding-bottom: .5rem; }
body[data-page="signup"] .page-head::before, body[data-page="signup"] .page-head::after { display: none; }
body[data-page="signup"] .page-head h1.display::before { display: none; }
body[data-page="signup"] .page-head .lead { margin-inline: auto; color: #c9cac4; }
body[data-page="signup"] main > .section { padding-top: 1.75rem !important; }

/* the two big cards (plus the status cards the script shows instead of the form) */
body[data-page="signup"] .signup-layout { max-width: 1120px; margin-inline: auto; gap: 1.5rem; }
body[data-page="signup"] .signup-layout > div:first-child,
body[data-page="signup"] .summary,
body[data-page="signup"] #signup-done > .card {
  position: relative; border: 1px solid rgba(255, 255, 255, .14); border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02) 38%, rgba(255, 255, 255, .035)), rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(26px) saturate(140%); backdrop-filter: blur(26px) saturate(140%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 -1px 0 rgba(0, 0, 0, .35) inset, 0 30px 80px -24px rgba(0, 0, 0, .9), 0 12px 28px -14px rgba(0, 0, 0, .8);
}
body[data-page="signup"] .signup-layout > div:first-child { padding: 2.4rem clamp(1.1rem, 3.5vw, 2.4rem) 1.2rem; }
body[data-page="signup"] .summary { position: sticky; top: 90px; padding: 2.2rem 1.6rem 1.6rem; }
/* grabber bar */
body[data-page="signup"] .signup-layout > div:first-child::before,
body[data-page="signup"] .summary::before,
body[data-page="signup"] #signup-done > .card::before {
  content: ""; position: absolute; top: 12px; left: 50%; width: 44px; height: 5px; margin-left: -22px; border-radius: 99px;
  background: rgba(255, 255, 255, .28); box-shadow: 0 1px 0 rgba(0, 0, 0, .4);
}
/* specular top edge */
body[data-page="signup"] .signup-layout > div:first-child::after,
body[data-page="signup"] .summary::after,
body[data-page="signup"] #signup-done > .card::after {
  content: ""; position: absolute; top: -1px; left: 12%; right: 12%; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
}

/* sections inside the form card */
body[data-page="signup"] fieldset {
  background: transparent; border: 0; border-radius: 0; box-shadow: none; padding: 1.6rem 0 1.9rem; margin: 0;
  -webkit-backdrop-filter: none; backdrop-filter: none; border-top: 1px solid rgba(255, 255, 255, .09);
}
body[data-page="signup"] .signup-layout > div:first-child > fieldset:first-of-type { border-top: 0; padding-top: .6rem; }
body[data-page="signup"] fieldset.hidden { display: none; }
body[data-page="signup"] legend {
  float: left; width: 100%; padding: 0; margin-bottom: 1.1rem; line-height: 1.1; color: #fff; font-size: 1.35rem;
  display: flex; align-items: center; gap: .65rem;
}
body[data-page="signup"] fieldset > legend ~ * { clear: both; }
body[data-page="signup"] legend .n {
  display: inline-grid; place-items: center; min-width: 2.2rem; height: 2.2rem; padding: 0 .4rem; margin: 0; flex: none;
  font-size: .95rem; border-radius: 12px; color: var(--orange-hi);
  background: linear-gradient(180deg, rgba(255, 106, 26, .2), rgba(255, 106, 26, .06));
  border: 1px solid rgba(255, 106, 26, .45); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 0 18px -6px rgba(255, 106, 26, .7);
}
body[data-page="signup"] .summary h3, body[data-page="signup"] .summary .total { color: #fff; }
body[data-page="signup"] .summary .line { border-bottom-color: rgba(255, 255, 255, .12); }
body[data-page="signup"] #stripe-mount { background: rgba(6, 7, 9, .55) !important; border-color: rgba(255, 255, 255, .34) !important; border-radius: 14px !important; }

/* entrance: a soft spring up, staggered (the site-wide card entrance is replaced here) */
@media (prefers-reduced-motion: no-preference) {
  body[data-page="signup"] .signup-layout > div:first-child,
  body[data-page="signup"] .summary,
  body[data-page="signup"] #signup-done > .card { animation: g-in .9s var(--g-spring) backwards; }
  body[data-page="signup"] .summary { animation-delay: .12s; }
  body[data-page="signup"] fieldset { animation: g-fade .7s var(--ease) backwards; }
  body[data-page="signup"] fieldset:nth-of-type(2) { animation-delay: .08s; }
  body[data-page="signup"] fieldset:nth-of-type(3) { animation-delay: .14s; }
  body[data-page="signup"] fieldset:nth-of-type(n+4) { animation-delay: .2s; }
  body[data-page="signup"] .check input[type="checkbox"]:checked { animation: g-tick .35s var(--g-spring); }
  @keyframes g-fade { from { opacity: 0; transform: translateY(10px); } }
  @keyframes g-tick { 0% { transform: scale(.8); } 100% { transform: scale(1); } }
}

/* phones */
@media (max-width: 999px) { body[data-page="signup"] .summary { position: relative; top: 0; } }
@media (max-width: 600px) {
  body[data-page="signup"] main > .section .wrap { width: calc(100% - 1.25rem); }
  body[data-page="signup"] .signup-layout > div:first-child { padding: 2.1rem 1rem .6rem; border-radius: 20px; }
  body[data-page="signup"] .summary { padding: 2rem 1.1rem 1.2rem; border-radius: 20px; }
  body[data-page="signup"] legend { font-size: 1.15rem; }
  body[data-page="signup"] #signup-done > .card { padding: 2.6rem 1.2rem 2rem !important; border-radius: 20px; }
}

/* fallbacks: solid dark cards */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  body[data-page="signup"] .signup-layout > div:first-child, body[data-page="signup"] .summary, body[data-page="signup"] #signup-done > .card { background: #17181c; }
}
@media (prefers-reduced-transparency: reduce) {
  body[data-page="signup"] .signup-layout > div:first-child, body[data-page="signup"] .summary, body[data-page="signup"] #signup-done > .card {
    background: #17181c; -webkit-backdrop-filter: none; backdrop-filter: none;
  }
}
