:root { color-scheme: dark; font-family: system-ui, sans-serif; color: #e2fffa; background: #051312; }
body { margin: 0; background: linear-gradient(#000, #093c38); min-height: 100vh; }
main { max-width: 42rem; margin: auto; padding: 2rem 1rem 4rem; }
img { display: block; width: min(250px, 70%); margin: auto; }
h1 { text-align: center; }
section, form { margin: 1rem 0; padding: 1.25rem; background: #0b211f; border: 1px solid #37665e; border-radius: 1rem; }
label { display: block; margin: 0 0 1rem; }
input:not([type="checkbox"]), textarea, select { box-sizing: border-box; display: block; width: 100%; margin-top: .35rem; padding: .7rem; background: #071613; border: 1px solid #54877e; border-radius: .4rem; color: inherit; font: inherit; }
@property --portal-light-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
[hidden] { display: none !important; }
button, .button {
  --portal-edge: #315e56;
  --portal-light: #87f9e7;
  display: inline-block;
  box-sizing: border-box;
  min-height: 44px;
  padding: .78rem 1.25rem;
  border: 1px solid transparent;
  border-radius: .7rem;
  background:
    linear-gradient(155deg, #142724, #070e0d 75%) padding-box,
    conic-gradient(from var(--portal-light-angle), var(--portal-edge) 0 285deg,
      var(--portal-light) 325deg, var(--portal-edge) 360deg) border-box;
  color: #eafffc;
  font: inherit;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  animation: portal-edge-sweep 6s linear infinite;
}
button:hover, .button:hover { --portal-edge: #5fb7ab; box-shadow: 0 0 18px #73f8e025; }
button:disabled { cursor: wait; opacity: .62; animation-play-state: paused; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

@keyframes portal-edge-sweep { to { --portal-light-angle: 360deg; } }
@media (prefers-reduced-motion: reduce) {
  button, .button { animation: none; }
}

.portal-payment-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
}
.portal-payment-actions:has(:not([hidden])) { margin-block-start: 1.25rem; }
.portal-payment-actions > * { flex: 0 1 15rem; max-width: 100%; }
.portal-payment-actions > .portal-payment-primary {
  flex: 0 1 100%;
  --portal-edge: #4a978b;
}
.portal-consultation { margin: 1rem 0 0; color: #bdd8d3; font-size: .875rem; }
.portal-consultation a { color: #bef8ed; text-underline-offset: .2em; }

#portal-upgrades { border: 1px solid #37665e; margin: 0 0 1rem; }
#portal-upgrades label { margin: .5rem 0; }
#kv-inquiry-verification { margin-bottom: 1rem; }

/* Private website previews (one page per version) */
main:has(#draft-preview:not([hidden])) { max-width: 76rem; }
#draft-frame { display: block; width: 100%; height: min(78vh, 900px); border: 1px solid #37665e; border-radius: .8rem; background: #fff; }
.draft-note { color: #9fc2bc; font-size: .85rem; }

/* Revision survey */
.rv-rating { border: 0; padding: 0; margin: 0 0 1rem; } .rv-rating legend { font-weight: 650; margin-bottom: .5rem; }
.rv-scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; }
.rv-scale label { margin: 0; display: grid; justify-items: center; gap: .15rem; padding: .6rem .3rem; border: 1px solid #37665e; border-radius: .6rem; cursor: pointer; text-align: center; }
.rv-scale label:has(input:checked) { border-color: #73f8e0; background: #0d2e2a; } .rv-scale input { position: absolute; opacity: 0; }
.rv-scale label:has(input:focus-visible) { outline: 2px solid #fff; outline-offset: 2px; }
.rv-scale span { font-size: 1.2rem; font-weight: 700; } .rv-scale small { color: #9fc2bc; font-size: .72rem; }
#rv-list { padding-left: 1.2rem; } #rv-list li { margin-bottom: .75rem; }
.rv-row { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr) auto; gap: .5rem; align-items: start; }
.rv-row select, .rv-row input { margin-top: 0 !important; } .rv-row button { min-height: 44px; padding: .5rem .8rem; }
.rv-error { color: #ffd6d6; } @media (max-width: 560px) { .rv-row { grid-template-columns: 1fr auto; } .rv-row select { grid-column: 1 / -1; } }
