:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: clamp(0.75rem, 4vw, 1.5rem);
  overflow-x: hidden;
  color: #1f2937;
  background:
    radial-gradient(circle at 15% 15%, rgb(255 213 74 / 34%), transparent 28rem),
    radial-gradient(circle at 90% 85%, rgb(99 91 255 / 22%), transparent 30rem),
    linear-gradient(145deg, #fffaf0, #f2f1ff);
}

main {
  position: relative;
  z-index: 1;
  width: min(100%, 36rem);
  min-width: 0;
  padding: clamp(1.25rem, 5vw, 3rem);
  text-align: center;
  background: rgb(255 255 255 / 92%);
  border: 1px solid rgb(255 255 255 / 75%);
  border-radius: 1rem;
  box-shadow: 0 1rem 3rem rgb(15 23 42 / 12%), 0 0 0 1px rgb(99 91 255 / 5%);
  backdrop-filter: blur(0.75rem);
}

.brand-logo {
  width: clamp(4.75rem, 18vw, 6.5rem);
  height: auto;
  display: block;
  margin: -0.35rem auto 0.7rem;
  filter: drop-shadow(0 0.5rem 0.65rem rgb(154 103 0 / 18%));
}

h1 {
  max-width: 100%;
  margin: 0;
  overflow-wrap: anywhere;
  color: #0f172a;
  font-size: clamp(1.65rem, 7vw, 2.35rem);
  line-height: 1.15;
}

h2 {
  margin: 0 0 0.65rem;
  color: #1e293b;
  font-size: clamp(1.1rem, 4vw, 1.3rem);
  line-height: 1.3;
}

h2:focus {
  outline: 3px solid rgb(99 91 255 / 36%);
  outline-offset: 0.3rem;
  border-radius: 0.2rem;
}

.intro {
  margin: 0.7rem auto 1.25rem;
  color: #64748b;
  line-height: 1.55;
}

.portal-notice {
  margin-bottom: 1.5rem;
  padding: 1rem 1.1rem;
  text-align: left;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
}

.portal-notice strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #334155;
  font-size: 0.95rem;
}

.portal-notice p {
  margin: 0;
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.55;
}

.portal-notice a {
  color: #5148e5;
  font-weight: 700;
}

.new-tab-note {
  white-space: nowrap;
}

.choice-list {
  min-width: 0;
  display: grid;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  text-align: left;
  border: 0;
}

.choice-legend {
  width: 100%;
  margin: 0 0 1rem;
  padding: 0;
  color: #475569;
  text-align: center;
  line-height: 1.55;
}

.choice-card,
.switch-choice {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  color: #1e293b;
  text-align: left;
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 1rem;
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.choice-card:hover,
.switch-choice:hover {
  border-color: #a5a0ff;
  background: linear-gradient(135deg, #fffdf6, #f8f7ff);
  box-shadow: 0 0.5rem 1.25rem rgb(99 91 255 / 12%);
  transform: translateY(-1px);
}

.choice-card:focus-within,
.switch-choice:focus-visible {
  outline: 3px solid #6f68ff;
  outline-offset: 3px;
}

.choice-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.radio-mark {
  width: 1.45rem;
  height: 1.45rem;
  flex: 0 0 1.45rem;
  margin-top: 0.1rem;
  background: #fff;
  border: 2px solid #64748b;
  border-radius: 50%;
  box-shadow: inset 0 0 0 0.28rem #fff;
}

.choice-card:has(input:checked) {
  background: linear-gradient(135deg, rgb(255 213 74 / 14%), rgb(99 91 255 / 8%));
  border-color: #635bff;
}

.choice-card input:checked + .radio-mark {
  background: #635bff;
  border-color: #635bff;
}

.choice-copy {
  min-width: 0;
}

.choice-title {
  display: block;
  overflow-wrap: anywhere;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
}

.choice-description {
  display: block;
  margin-top: 0.35rem;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.5;
}

.action-panel {
  padding: clamp(1rem, 4vw, 1.5rem);
  text-align: left;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.875rem;
}

.action-panel > p {
  margin: 0 0 1.25rem;
  color: #334155;
  line-height: 1.6;
}

.invoice-instructions {
  padding: 1rem;
  background: #fff;
  border-left: 3px solid #635bff;
  border-radius: 0.4rem;
}

.invoice-instructions p {
  margin: 0;
  color: #334155;
  line-height: 1.6;
}

.payment-disclaimer {
  margin: 1.5rem 0 0;
  padding: 0.85rem 1rem;
  color: #64748b;
  font-size: 0.8rem;
  line-height: 1.55;
  background: #fffaf0;
  border: 1px solid #f4d88a;
  border-radius: 0.5rem;
}

.payment-disclaimer strong {
  color: #5f4610;
}

.stripe-button-wrap {
  max-width: 100%;
  margin-top: 1.5rem;
  overflow-x: auto;
  text-align: center;
  overscroll-behavior-inline: contain;
}

stripe-buy-button {
  max-width: 100%;
  display: block;
  margin-inline: auto;
}

.recurring-panel {
  text-align: center;
  background: linear-gradient(135deg, rgb(99 91 255 / 10%), rgb(99 91 255 / 3%)), #f8fafc;
  border-color: rgb(99 91 255 / 18%);
}

.recurring-panel p {
  max-width: 27rem;
  margin-right: auto;
  margin-left: auto;
}

.pill-button {
  max-width: 100%;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  overflow-wrap: anywhere;
  color: #fff;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  background: #635bff;
  border-radius: 999px;
  box-shadow: 0 0.35rem 0.9rem rgb(99 91 255 / 25%);
}

.pill-button:hover {
  background: #5148e5;
  box-shadow: 0 0.5rem 1.1rem rgb(99 91 255 / 32%);
  transform: translateY(-1px);
}

.pill-button:focus-visible {
  outline: 3px solid #6f68ff;
  outline-offset: 3px;
}

.external-note {
  margin: 0.75rem 0 0 !important;
  color: #64748b !important;
  font-size: 0.8rem;
}

.switch-choice {
  margin-top: 1rem;
  font: inherit;
}

.switch-choice .choice-title::before {
  content: "Switch to: ";
  color: #64748b;
  font-weight: 500;
}

.contact-footer {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.65;
  border-top: 1px solid #e2e8f0;
}

.contact-footer strong {
  display: block;
  margin-bottom: 0.25rem;
  color: #334155;
  font-size: 0.95rem;
}

.contact-footer p {
  margin: 0;
}

.contact-footer a {
  color: #5148e5;
  font-weight: 650;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

.contact-separator {
  padding-inline: 0.35rem;
  color: #94a3b8;
}

.money-bg,
.fish-bg {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.money-bg span {
  position: absolute;
  left: var(--x);
  bottom: -4rem;
  width: var(--size);
  height: var(--size);
  display: grid;
  place-items: center;
  color: rgb(99 91 255 / 32%);
  font-size: calc(var(--size) * 0.46);
  font-weight: 800;
  background: rgb(255 255 255 / 45%);
  border: 1px solid rgb(99 91 255 / 12%);
  border-radius: 50%;
  animation: float-money var(--duration) linear var(--delay) infinite;
}

.money-bg span:nth-child(1) { --x: 7%; --size: 3.2rem; --duration: 18s; --delay: -4s; --drift: 2rem; }
.money-bg span:nth-child(2) { --x: 20%; --size: 2.4rem; --duration: 22s; --delay: -15s; --drift: -2rem; }
.money-bg span:nth-child(3) { --x: 38%; --size: 2.8rem; --duration: 20s; --delay: -9s; --drift: 3rem; }
.money-bg span:nth-child(4) { --x: 62%; --size: 3rem; --duration: 24s; --delay: -18s; --drift: -3rem; }
.money-bg span:nth-child(5) { --x: 79%; --size: 2.3rem; --duration: 19s; --delay: -11s; --drift: 2rem; }
.money-bg span:nth-child(6) { --x: 92%; --size: 3.4rem; --duration: 23s; --delay: -6s; --drift: -2rem; }

.money-bg span:nth-child(even) {
  color: rgb(169 112 0 / 38%);
  background: rgb(255 221 100 / 20%);
  border-color: rgb(195 130 0 / 14%);
}

.fish-swimmer {
  position: absolute;
  top: var(--y);
  left: -8rem;
  width: 7rem;
  height: 3rem;
  animation: swim-across var(--swim-duration) linear var(--swim-delay) infinite;
}

.fish-swimmer:nth-child(1) { --y: 18%; --fish-size: 2.6rem; --swim-duration: 22s; --swim-delay: -7s; }
.fish-swimmer:nth-child(2) { --y: 68%; --fish-size: 2.3rem; --swim-duration: 27s; --swim-delay: -20s; }
.fish-swimmer:nth-child(3) { --y: 84%; --fish-size: 2.8rem; --swim-duration: 31s; --swim-delay: -12s; }

.fish-icon {
  position: absolute;
  left: 0;
  font-size: var(--fish-size);
  line-height: 1;
  filter: drop-shadow(0 0.35rem 0.35rem rgb(15 23 42 / 15%));
  animation: fish-bob 1.2s ease-in-out infinite alternate;
}

.fish-snack {
  position: absolute;
  top: 0.45rem;
  left: 5rem;
  width: 1.8rem;
  height: 1.8rem;
  display: grid;
  place-items: center;
  color: #8b5a00;
  font-weight: 900;
  background: #ffdc63;
  border: 2px solid rgb(177 112 0 / 35%);
  border-radius: 50%;
  animation: snack-time 3s ease-in-out infinite;
}

.turtle-swimmer {
  position: absolute;
  top: var(--y);
  right: -7rem;
  width: var(--turtle-size);
  color: #35a888;
  animation: turtle-across var(--turtle-duration) linear var(--turtle-delay) infinite, turtle-bob 2.4s ease-in-out infinite alternate;
}

.turtle-swimmer:nth-child(4) { --y: 36%; --turtle-size: 5rem; --turtle-duration: 38s; --turtle-delay: -9s; }
.turtle-swimmer:nth-child(5) { --y: 58%; --turtle-size: 4.25rem; --turtle-duration: 46s; --turtle-delay: -31s; color: #2b8f78; }
.turtle-swimmer svg { width: 100%; height: auto; display: block; overflow: visible; }
.turtle-shell { fill: currentColor; stroke: #176957; stroke-width: 3; }
.turtle-body { fill: #78d2b5; stroke: #176957; stroke-linejoin: round; stroke-width: 3; }
.turtle-pattern { fill: none; stroke: rgb(255 255 255 / 42%); stroke-width: 2; }

.jelly-swimmer {
  position: absolute;
  left: var(--x);
  bottom: -7rem;
  width: var(--jelly-size);
  color: #9e83e8;
  opacity: 0.72;
  filter: drop-shadow(0 0.4rem 0.55rem rgb(99 91 255 / 18%));
  animation: jelly-drift var(--jelly-duration) ease-in-out var(--jelly-delay) infinite;
}

.jelly-swimmer:nth-child(6) {
  --x: 12%;
  --jelly-size: 4rem;
  --jelly-duration: 29s;
  --jelly-delay: -8s;
}

.jelly-swimmer:nth-child(7) {
  --x: 84%;
  --jelly-size: 3.25rem;
  --jelly-duration: 35s;
  --jelly-delay: -24s;
  color: #e284c3;
}

.jelly-swimmer svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.jelly-bell {
  fill: currentColor;
  stroke: rgb(76 51 145 / 55%);
  stroke-width: 2;
}

.jelly-highlight {
  fill: rgb(255 255 255 / 30%);
}

.jelly-tentacle {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 4;
}

@keyframes float-money {
  0% { opacity: 0; transform: translate3d(0, 0, 0) rotate(-8deg); }
  12%, 88% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(var(--drift), -115vh, 0) rotate(18deg); }
}

@keyframes swim-across {
  from { transform: translateX(0); }
  to { transform: translateX(calc(100vw + 16rem)); }
}

@keyframes fish-bob {
  from { transform: translateY(-0.2rem) rotate(-3deg) scaleX(-1); }
  to { transform: translateY(0.2rem) rotate(3deg) scaleX(-1); }
}

@keyframes turtle-across {
  from { transform: translateX(0) rotate(-2deg); }
  to { transform: translateX(calc(-100vw - 14rem)) rotate(3deg); }
}

@keyframes turtle-bob {
  from { margin-top: -0.3rem; }
  to { margin-top: 0.3rem; }
}

@keyframes snack-time {
  0% { opacity: 0; transform: translateX(1.4rem) scale(0.65); }
  14% { opacity: 1; transform: translateX(1.4rem) scale(1); }
  55% { opacity: 1; transform: translateX(-2.4rem) scale(0.75); }
  62%, 100% { opacity: 0; transform: translateX(-3.1rem) scale(0.2); }
}

@keyframes jelly-drift {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(-4deg);
  }
  12%, 88% {
    opacity: 0.72;
  }
  45% {
    transform: translate3d(1.5rem, -52vh, 0) rotate(4deg);
  }
  100% {
    opacity: 0;
    transform: translate3d(-0.75rem, -115vh, 0) rotate(-3deg);
  }
}

.no-js .choice-list,
.no-js .switch-choice {
  display: none;
}

.no-js #invoice-panel {
  display: block !important;
}

.no-js .intro::after {
  content: " Invoice payment is available below.";
}

@media (max-width: 30rem) {
  .choice-card,
  .switch-choice { gap: 0.75rem; padding: 1rem; }
  .pill-button { width: 100%; }
  .fish-swimmer:nth-child(3),
  .turtle-swimmer:nth-child(5),
  .jelly-swimmer:nth-child(7) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .money-bg span,
  .fish-bg { display: none; animation: none; }
  *,
  *::before,
  *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
