/* Checkout pages share the public website's tokens without loading its bundle. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/checkout-assets/inter-variable-latin.woff2") format("woff2");
}
:root {
  --bg: #fafaf7;
  --bg-warm: #f5f2ec;
  --white: #ffffff;
  --ink: #1e1919;
  --ink-2: #4a4744;
  --muted: #6b6763;
  --blue: #0061ff;
  --blue-2: #004fd6;
  --blue-soft: #eaf2ff;
  --border: #e8e4dd;
  --border-strong: #d9d4cb;
  --input: #d7d1c8;
  --danger: #b42318;
  color: var(--ink);
  background: var(--bg);
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
h1,
h2,
p,
ol,
ul,
dl,
dd,
fieldset {
  margin: 0;
}
a {
  color: inherit;
}
svg {
  flex-shrink: 0;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Frame */
.topbar,
.page-footer {
  width: 100%;
  max-width: 1184px;
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand img {
  width: 34px;
  height: auto;
  border-radius: 9px;
}
.secure-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.secure-note svg,
.processor svg {
  width: 15px;
  height: 15px;
}
.page-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}
.page-footer nav {
  display: flex;
  gap: 20px;
}
.page-footer a {
  text-decoration: none;
}
.page-footer a:hover {
  color: var(--ink);
}

/* Purchase layout */
.checkout {
  width: 100%;
  max-width: 1184px;
  margin: 0 auto;
  padding: 48px 32px 88px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "offer card"
    "details card";
  column-gap: 80px;
  align-items: start;
}
.offer {
  grid-area: offer;
  padding-top: 24px;
}
.offer-details {
  grid-area: details;
  padding-top: 36px;
}
.eyebrow {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
h1 {
  margin-top: 16px;
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.08;
}
.highlight {
  background: linear-gradient(to bottom, transparent 55%, #fde047 55%);
}
.price {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
}
.price-amount {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.price-unit {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-2);
}
.price-regular {
  font-size: 17px;
  color: var(--muted);
}
.price-note {
  margin-top: 8px;
  max-width: 440px;
  font-size: 14px;
  color: var(--muted);
}
.benefits {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 18px;
  max-width: 460px;
}
.benefits li {
  display: flex;
  gap: 14px;
  font-size: 15px;
  color: var(--ink-2);
}
.benefits svg {
  width: 26px;
  height: 26px;
  padding: 5px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
}
.benefits strong {
  color: var(--ink);
  font-weight: 700;
}
.processor {
  margin-top: 28px;
  padding-top: 20px;
  max-width: 460px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.processor svg {
  margin-top: 3px;
}

/* Card and steps */
.checkout-card {
  grid-area: card;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 18px 60px rgb(30 25 25 / 6%);
}
.steps {
  list-style: none;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
}
.steps li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.steps li + li::before {
  content: "";
  width: 28px;
  height: 1px;
  margin-right: 2px;
  background: var(--border-strong);
}
.steps span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  font-size: 12px;
}
.steps [aria-current] {
  color: var(--ink);
}
.steps [aria-current] span {
  border-color: var(--blue);
  background: var(--blue);
  color: white;
}
.steps .done span {
  border-color: var(--blue-soft);
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0;
}
.steps .done span::before {
  content: "✓";
  font-size: 13px;
  font-weight: 800;
}
.checkout-card h2 {
  margin-top: 24px;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.025em;
}
.checkout-card h2:focus {
  outline: none;
}

/* Fields */
.field {
  margin-top: 16px;
}
label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
}
.optional {
  font-weight: 450;
  color: var(--muted);
}
input,
select {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-top: 6px;
  padding: 11px 14px;
  border: 1px solid var(--input);
  border-radius: 12px;
  background: var(--white);
  color: inherit;
  font: inherit;
  font-size: 16px;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
select {
  appearance: none;
  padding-right: 40px;
  background: var(--white)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6763' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right 14px center / 16px;
}
input::placeholder {
  color: #a39e97;
}
input:focus,
select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgb(0 97 255 / 14%);
}
input[aria-invalid="true"] {
  border-color: var(--danger);
}
input[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 4px rgb(180 35 24 / 12%);
}
.field-note {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--muted);
}
.field-error {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 550;
  color: var(--danger);
}
.field-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 12px;
}
.business {
  margin-top: 20px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.business summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 650;
}
.business summary::-webkit-details-marker {
  display: none;
}
.business summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  color: var(--blue);
  transition: transform 0.18s ease;
}
.business[open] summary::after {
  transform: rotate(45deg);
}
.check-label {
  margin-top: 16px;
  display: flex;
  align-items: start;
  gap: 10px;
  font-weight: 500;
  line-height: 1.5;
}
.check-label input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex-shrink: 0;
  accent-color: var(--blue);
}

/* Buttons */
.primary {
  display: flex;
  width: 100%;
  min-height: 54px;
  margin-top: 24px;
  padding: 14px 24px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: white;
  font: inherit;
  font-size: 16px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease;
}
.primary:hover {
  background: var(--blue-2);
}
.primary .arrow {
  transition: transform 0.18s ease;
}
.primary:hover .arrow {
  transform: translateX(3px);
}
.primary:focus-visible,
.link-button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.primary.busy {
  opacity: 0.85;
  cursor: progress;
}
.primary.busy::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid rgb(255 255 255 / 40%);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.primary.busy .arrow {
  display: none;
}
.link-button {
  padding: 4px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--blue);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}
.link-button:hover {
  background: var(--blue-soft);
}

/* Payment step */
.recap {
  margin-top: 16px;
  padding: 14px 12px 14px 16px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  border-radius: 16px;
  background: var(--bg-warm);
}
.recap dl {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.recap dl div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 8px;
  font-size: 14px;
}
.recap dt {
  color: var(--muted);
}
.recap dd {
  overflow-wrap: anywhere;
}
.totals {
  margin-top: 20px;
  display: grid;
  gap: 8px;
}
.totals div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14.5px;
  color: var(--ink-2);
}
.totals dd {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.totals .total {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  align-items: baseline;
  font-size: 18px;
  font-weight: 750;
  color: var(--ink);
}
.totals-note {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--muted);
  text-align: right;
}
.methods {
  margin-top: 20px;
  padding: 0;
  border: 0;
  min-width: 0;
}
.methods legend {
  padding: 0;
  margin-bottom: 2px;
  font-size: 13.5px;
  font-weight: 600;
}
.method {
  margin-top: 10px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.method:hover {
  border-color: var(--blue);
}
.method:has(input:checked) {
  border-color: var(--blue);
  background: #f5f9ff;
  box-shadow: 0 0 0 1px var(--blue);
}
.method input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  accent-color: var(--blue);
}
.method input:focus {
  box-shadow: none;
}
.method:has(input:focus-visible) {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.method strong {
  display: block;
  font-size: 15px;
  font-weight: 650;
}
.method small {
  display: block;
  font-size: 12.5px;
  font-weight: 450;
  color: var(--muted);
}
.method-icon {
  width: 26px;
  height: 26px;
  color: var(--ink-2);
}
#card-fields {
  margin-top: 4px;
}
/* Mollie renders labels and containers here; each container holds an iframe
   input, so the container is styled as the field. */
#mollie-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 12px;
}
.mollie-card-component {
  margin-top: 16px;
}
.mollie-card-component--cardHolder,
.mollie-card-component--cardNumber {
  grid-column: 1 / -1;
}
.mollie-component {
  margin-top: 6px;
  padding: 14px;
  border: 1px solid var(--input);
  border-radius: 12px;
  background: var(--white);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.mollie-component.has-focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgb(0 97 255 / 14%);
}
.mollie-component.is-touched.is-invalid {
  border-color: var(--danger);
}
.mollie-card-component__error {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 550;
  color: var(--danger);
}
.mollie-card-component__error:empty {
  display: none;
}
.consent {
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* Messages */
.error,
.notice {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
}
.error {
  border: 1px solid #fecdca;
  background: #fff1f0;
  color: var(--danger);
}
.notice {
  border: 1px solid var(--border);
  background: var(--bg-warm);
  color: var(--ink-2);
}
.notice.warning {
  border-color: #fde68a;
  background: #fffbeb;
  color: #854d0e;
}

/* Progress and management */
.status-page {
  width: 100%;
  padding: 48px 20px 88px;
  display: flex;
  justify-content: center;
}
.status-card {
  width: 100%;
  max-width: 580px;
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 18px 60px rgb(30 25 25 / 6%);
}
.status-card h1 {
  font-size: clamp(30px, 4vw, 40px);
}
.status-card > p:not(.eyebrow, .error) {
  margin-top: 14px;
  font-size: 16px;
  color: var(--ink-2);
}
.status-icon {
  display: grid;
  width: 56px;
  height: 56px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
}
.status-icon > * {
  grid-area: 1 / 1;
  display: none;
}
.status-icon svg {
  width: 28px;
  height: 28px;
}
.status-spinner {
  width: 26px;
  height: 26px;
  border: 3px solid rgb(0 97 255 / 22%);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
[data-state="processing"] .status-spinner,
[data-state="done"] .status-done,
[data-state="attention"] .status-problem,
[data-state="problem"] .status-problem {
  display: block;
}
[data-state="done"] .status-icon {
  background: #dcfce7;
  color: #15803d;
}
[data-state="attention"] .status-icon {
  background: #fef3c7;
  color: #b45309;
}
[data-state="problem"] .status-icon {
  background: #fee4e2;
  color: var(--danger);
}
/* A quiet way back to an unfinished payment, never the main action. */
.status-card > .unfinished {
  margin-top: 22px;
  font-size: 14px;
  color: var(--ink-2);
}
.unfinished a {
  color: var(--blue);
  font-weight: 650;
}
[data-state="attention"] .eyebrow {
  color: #b45309;
}
[data-state="problem"] .eyebrow {
  color: var(--danger);
}
.progress-bar {
  position: relative;
  height: 4px;
  margin-top: 24px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--blue-soft);
}
.progress-bar::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 35%;
  border-radius: inherit;
  background: var(--blue);
  animation: slide 1.4s ease-in-out infinite;
}
.next-steps {
  margin-top: 24px;
  padding: 0;
  list-style: none;
  counter-reset: step;
  border-top: 1px solid var(--border);
}
.next-steps li {
  position: relative;
  padding: 16px 0 16px 44px;
  border-bottom: 1px solid var(--border);
  counter-increment: step;
  font-size: 15px;
  color: var(--ink-2);
}
.next-steps li::before {
  content: counter(step);
  position: absolute;
  top: 15px;
  left: 0;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 13px;
  font-weight: 750;
}
.next-steps strong {
  display: block;
  color: var(--ink);
}
.status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.status-actions .primary {
  width: auto;
}
.manage-card form > p {
  margin-top: 14px;
  color: var(--ink-2);
}
#management-message:not(:empty) {
  margin-top: 16px;
}
#subscriptions section {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
}
#subscriptions h2 {
  font-size: 18px;
  font-weight: 750;
}
#subscriptions p {
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink-2);
}
#subscriptions button {
  margin-top: 14px;
  padding: 10px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}
#subscriptions button:hover {
  border-color: var(--ink);
}
#subscriptions button + button {
  margin-left: 8px;
}
/* Paying or renewing is the main action when a subscription needs one. */
#subscriptions button.primary {
  display: inline-flex;
  width: auto;
  min-height: 0;
  border-color: var(--blue);
  background: var(--blue);
  color: white;
}
#subscriptions button.primary:hover {
  border-color: var(--blue-2);
  background: var(--blue-2);
}
#subscriptions button.primary:disabled {
  opacity: 0.6;
  cursor: progress;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes slide {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(300%);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0s !important;
    transition-duration: 0s !important;
  }
}

@media (max-width: 920px) {
  .checkout {
    padding: 24px 20px 56px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas:
      "offer"
      "card"
      "details";
    max-width: 600px;
  }
  .offer {
    padding: 0 4px 24px;
  }
  .offer-details {
    padding: 32px 4px 0;
  }
  h1 {
    font-size: 32px;
  }
  .price {
    margin-top: 16px;
  }
  .price-amount {
    font-size: 34px;
  }
}
@media (max-width: 560px) {
  .topbar,
  .page-footer {
    padding: 16px 20px;
  }
  .brand {
    font-size: 20px;
  }
  .brand img {
    width: 30px;
  }
  .checkout {
    padding: 16px 12px 48px;
  }
  .checkout-card,
  .status-card {
    padding: 24px 20px;
    border-radius: 22px;
  }
  .status-page {
    padding: 24px 12px 56px;
  }
  .status-actions .primary {
    width: 100%;
  }
}
@media (max-width: 380px) {
  .field-pair {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
}
