/* betal.duckert.design — same look as duckert.design */
@font-face { font-family: "Duckert Sans"; src: url("/fonts/DuckertSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Duckert Sans"; src: url("/fonts/DuckertSans-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --white: #fff; --green: #60ed2e; --green-dark: #2f9e0c; --green-soft: #effde9; --black: #000; --ink: #111;
  --muted: #6b6b6b; --surface: #f6f7f5; --line: rgba(0, 0, 0, 0.07); --red: #d93025;
  --radius-sm: 12px; --radius: 20px; --radius-lg: 32px; --pill: 999px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1); --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; background: var(--white); color: var(--ink); font-family: "Duckert Sans", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: var(--radius-sm); }
h1, h2 { color: var(--black); letter-spacing: -0.02em; margin: 0; line-height: 1.08; }
h1 { font-size: clamp(36px, 6vw, 60px); font-weight: 700; }
h2 { font-size: 22px; font-weight: 700; }
p { margin: 0; }
.dot { color: var(--green); }
.muted { color: var(--muted); }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 52ch; }

.pay-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 26px var(--gutter); }
.logo img { height: 24px; width: auto; }
.secure { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: var(--pill); background: var(--green-soft); color: var(--green-dark); font-size: 13px; font-weight: 700; }
main { flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 24px var(--gutter) 80px; }
main.is-entering > * { animation: rise 0.6s var(--ease-soft) both; }
main.is-entering > :nth-child(2) { animation-delay: 0.08s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.pay-footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 28px var(--gutter); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.pay-footer a { color: var(--ink); text-decoration-color: var(--green); text-underline-offset: 3px; }

.loading { min-height: 50vh; display: grid; place-items: center; }
.spinner { transform-origin: 50% 50%; animation: spin 1.3s cubic-bezier(0.4, 0.12, 0.6, 0.88) infinite; }
.spinner circle { stroke: var(--green); animation: arc 1.3s cubic-bezier(0.4, 0.12, 0.6, 0.88) infinite; }
.btn-primary .spinner circle { stroke: var(--black); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes arc { 0% { stroke-dasharray: 4 159; stroke-dashoffset: 0; } 50% { stroke-dasharray: 100 63; stroke-dashoffset: -30; } 100% { stroke-dasharray: 4 159; stroke-dashoffset: -163; } }

.intro { margin-bottom: 32px; }
.intro .lead { margin-top: 14px; }
.note { margin: 24px 0 0; padding: 18px 22px; border-radius: var(--radius); background: var(--surface); max-width: 640px; white-space: pre-wrap; }
.note-from { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.items { display: grid; gap: 16px; }
.item { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); transition: border-color 0.3s var(--ease), box-shadow 0.4s var(--ease-soft), background-color 0.3s var(--ease); }
.item.is-optional { border-style: dashed; border-color: rgba(0, 0, 0, 0.16); }
.item.is-optional.is-on { border-style: solid; border-color: var(--green); box-shadow: 0 0 0 3px rgba(96, 237, 46, 0.18); }
.item-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 10px; }
.item-head h2 { margin-top: 8px; }
.tag { display: inline-flex; height: 24px; align-items: center; padding: 0 10px; border-radius: var(--pill); background: var(--surface); color: var(--muted); font-size: 12.5px; font-weight: 700; }
.tag-green { background: var(--green-soft); color: var(--green-dark); }
.price { font-size: 22px; font-weight: 700; color: var(--black); white-space: nowrap; letter-spacing: -0.01em; }
.price small { font-size: 14px; font-weight: 400; color: var(--muted); }
.price-block { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.regular { font-size: 14px; color: var(--muted); }
.free { font-size: 12.5px; font-weight: 700; color: var(--green-dark); background: var(--green-soft); padding: 2px 9px; border-radius: var(--pill); white-space: nowrap; }
.features { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.features li { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.features svg { color: var(--green-dark); flex: none; }

.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border-radius: var(--pill); border: 1px solid transparent; font-size: 15.5px; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease), opacity 0.2s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.45; cursor: default; transform: none; }
.btn-primary { background: var(--green); color: var(--black); }
.btn-primary:hover { background: #55db25; }
.btn-ghost { background: var(--white); border-color: rgba(0, 0, 0, 0.12); }
.btn-ghost:hover { background: var(--surface); }
.btn-toggle { margin-top: 18px; background: var(--white); border-color: rgba(0, 0, 0, 0.14); }
.btn-toggle::before { content: "+"; font-size: 20px; line-height: 1; font-weight: 400; }
.btn-toggle.is-on { background: var(--green); border-color: var(--green); color: var(--black); }
.btn-toggle.is-on::before { content: "✓"; font-size: 16px; font-weight: 700; }

.stepper { display: inline-flex; align-items: center; margin-top: 18px; border: 1px solid rgba(0, 0, 0, 0.12); border-radius: var(--pill); padding: 4px; }
.stepper button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--surface); font-size: 20px; cursor: pointer; transition: background-color 0.2s var(--ease), opacity 0.2s var(--ease); }
.stepper button:hover:not(:disabled) { background: var(--green); }
.stepper button:disabled { opacity: 0.35; cursor: default; }
.stepper output { min-width: 48px; text-align: center; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }

.summary { position: sticky; top: 24px; padding: 26px; border-radius: var(--radius-lg); background: var(--surface); }
.sum-lines { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.sum-lines li { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(0, 0, 0, 0.1); }
.sum-total strong { font-size: 30px; letter-spacing: -0.02em; color: var(--black); font-variant-numeric: tabular-nums; }
.sum-after { margin-top: 8px; font-size: 14px; color: var(--muted); min-height: 0; }
.sum-after:empty { display: none; }
.btn-pay { width: 100%; height: 56px; margin-top: 20px; font-size: 17px; }
.pay-error { margin-top: 12px; color: var(--red); font-size: 14px; }
.pay-error:empty { display: none; }
.btn-pay[hidden] { display: none; }
.express { margin-top: 20px; min-height: 55px; }
.express[hidden] { display: none; }
.fine { margin-top: 14px; font-size: 12.5px; color: var(--muted); text-align: center; }
.fine svg { display: inline-block; vertical-align: -1px; margin-right: 5px; }

/* Payment method choice + the Stripe fields */
.method-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.method { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; min-height: 124px; text-align: left; border-radius: 16px; border: 1px solid rgba(0, 0, 0, 0.12); background: var(--white); cursor: pointer; transition: border-color 0.25s var(--ease), box-shadow 0.35s var(--ease-soft), transform 0.2s var(--ease), opacity 0.2s var(--ease); }
.method:hover:not(:disabled) { border-color: rgba(0, 0, 0, 0.3); transform: translateY(-1px); }
.method:active:not(:disabled) { transform: scale(0.98); }
.method.is-on { border-color: var(--green); box-shadow: 0 0 0 3px rgba(96, 237, 46, 0.22); }
.method:disabled { opacity: 0.45; cursor: default; }
.method-icon { height: 28px; display: flex; align-items: center; color: var(--black); }
.klarna-mark { display: inline-grid; place-items: center; height: 26px; padding: 0 8px; border-radius: 7px; background: #ffb3c7; color: #0b051d; font-weight: 700; font-size: 14px; letter-spacing: -0.02em; }
.method-text { display: grid; gap: 2px; }
.method-text strong { font-size: 16px; color: var(--black); }
.method-text small { font-size: 13px; color: var(--muted); line-height: 1.35; }
.method-radio { position: absolute; top: 14px; right: 14px; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid rgba(0, 0, 0, 0.2); transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease); }
.method.is-on .method-radio { border-color: var(--green); background: var(--green) radial-gradient(circle, var(--black) 0 3px, transparent 3.5px); }
.pay-form { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); animation: rise 0.45s var(--ease-soft) both; }
.pay-form[hidden] { display: none; }
.pay-slot:empty { display: none; }
.pay-slot + .pay-slot { margin-top: 14px; }
.pay-loading { min-height: 120px; display: grid; place-items: center; }
.pay-note { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 14px; background: var(--surface); font-size: 15px; }
.pay-note svg { flex: none; width: 18px; height: 20px; }
.pay-hint { margin-top: 12px; font-size: 14px; color: var(--muted); }
.pay-hint:empty { display: none; }

.message { min-height: 56vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 18px; max-width: 640px; }
.message .mark { width: 48px; height: 48px; border-radius: 50%; background: var(--green-soft); position: relative; }
.message .mark::after { content: ""; position: absolute; inset: 16px; border-radius: 50%; background: var(--green); }
.paid-mark { width: 72px; height: 72px; border-radius: 50%; background: var(--green); display: grid; place-items: center; animation: pop 0.6s var(--ease-soft) both; }
.paid-mark svg { width: 34px; height: 34px; color: var(--black); }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } }
.paid-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.paid-lines li { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.paid-lines svg { color: var(--green-dark); }

@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 520px) {
  .item { padding: 20px; }
  .item-head { flex-direction: column; gap: 6px; }
  .price-block { align-items: flex-start; flex-direction: row; align-items: center; gap: 10px; }
  .secure { font-size: 12px; padding: 6px 11px; }
  .method-grid { grid-template-columns: 1fr; }
  .method { flex-direction: row; align-items: center; min-height: 0; padding: 14px 16px; gap: 14px; }
  .method-icon { width: 34px; justify-content: center; flex: none; }
  .method-radio { position: static; margin-left: auto; flex: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } .spinner, .spinner circle { animation-duration: 1.3s !important; animation-iteration-count: infinite !important; } }
