/* Evrikum payment page. Tokens follow the approved parent prototype
   (Evrikum-next/design-reference/evrikum-full-prototype/styles.css). */
:root {
  --ink: #24272b;
  --muted: #646b74;
  --orange: #bd420d;
  --orange-dark: #a43508;
  --soft: #fff2e6;
  --page: #f6f4f0;
  --surface: #fff;
  --line: #e7e4df;
  --green: #287454;
  --green-soft: #e9f2eb;
  --forest: #30382f;
  --warn-ink: #8b520d;
  --warn-soft: #fff0dc;
  --error: #a42e21;
  --focus: #7253a4;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 22px;
  --shadow-1: 0 1px 3px #0000000f;
  --shadow-2: 0 18px 50px #3430280f, 0 2px 6px #34302808;
  --col: 560px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--page);
  color: var(--ink);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: not-allowed; opacity: .55; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
a { color: var(--orange); text-underline-offset: 3px; }
h1, h2, p { margin: 0; }

.top {
  width: 100%;
  max-width: calc(var(--col) + 40px);
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand img { width: 44px; height: 44px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 3px; }
.brand b { display: block; font-size: 19px; letter-spacing: -.5px; line-height: 1.1; }
.brand small { display: block; font-size: 12px; color: var(--muted); }
.lang { display: flex; gap: 2px; background: #ecebe7; border-radius: var(--r-sm); padding: 3px; }
.lang button {
  border: 0; background: none; border-radius: 8px; min-height: 40px; min-width: 52px;
  font-size: 13px; font-weight: 600; color: var(--muted);
}
.lang button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-1); }

main {
  flex: 1;
  width: 100%;
  max-width: calc(var(--col) + 40px);
  margin: 0 auto;
  padding: 12px 20px 40px;
}
.view { animation: appear .22s ease-out; }
@keyframes appear { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
/* Choices arrive in reading order (40 ms apart), so the eye follows child, then period, then the total. */
.view .choice { animation: appear .26s cubic-bezier(.2,.7,.2,1) both; }
.view .choice:nth-of-type(2) { animation-delay: 40ms; }
.view .choice:nth-of-type(3) { animation-delay: 80ms; }
.view .choice:nth-of-type(4) { animation-delay: 120ms; }
.view .plans .choice { animation-delay: 120ms; }
.view .plans .choice:nth-of-type(2) { animation-delay: 160ms; }
.view .plans .choice:nth-of-type(3) { animation-delay: 200ms; }
@media (prefers-reduced-motion: reduce) { .view, .view .choice, .spinner { animation: none; } .button.primary:hover { transform: none; } }

.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 1.6px; color: var(--muted); text-transform: uppercase; }
h1 { font-size: 32px; line-height: 1.12; letter-spacing: -1px; font-weight: 750; margin: 10px 0 10px; text-wrap: balance; }
.lead { color: var(--muted); font-size: 16px; line-height: 1.55; margin-bottom: 26px; text-wrap: pretty; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.stack { display: grid; gap: 14px; }

.field { display: grid; gap: 8px; font-size: 13px; font-weight: 600; }
.field input {
  border: 1px solid #d9d8d4; background: #fff; border-radius: var(--r-md); min-height: 54px;
  padding: 12px 14px; font-size: 19px; letter-spacing: .3px; width: 100%;
}
.field input:focus { border-color: var(--orange); outline: none; box-shadow: 0 0 0 3px #bd420d22; }
.field input.code { letter-spacing: 10px; text-align: center; font-size: 26px; font-weight: 650; }
.hint { font-size: 13px; color: var(--muted); font-weight: 400; }
.error { color: var(--error); font-size: 14px; min-height: 0; }
.error:empty { display: none; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  min-height: 54px; padding: 14px 18px; border-radius: var(--r-md); border: 1px solid transparent;
  font-size: 16px; font-weight: 650; line-height: 1.3; text-decoration: none;
  transition: background .16s ease, box-shadow .16s ease, transform .16s ease;
}
.button.primary { background: var(--orange); color: #fff; }
.button.primary:hover { background: var(--orange-dark); box-shadow: 0 6px 16px #bd420d26; transform: translateY(-1px); }
.button.secondary { background: #fff; border-color: #dcdad5; color: var(--ink); }
.button.link { background: none; color: var(--orange); min-height: 44px; padding: 8px; width: auto; }
.button:active { transform: translateY(1px); }

.children { display: grid; gap: 10px; border: 0; padding: 0; margin: 0 0 22px; }
.children legend, .plans legend { font-size: 13px; font-weight: 650; margin-bottom: 10px; padding: 0; }
.choice {
  display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 14px 16px; min-height: 68px; cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.choice:hover { border-color: #d6d2cb; }
.choice:has(input:checked) { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
.choice:has(input:disabled) { cursor: default; background: #fbfaf8; }
.choice input { accent-color: var(--orange); width: 20px; height: 20px; flex-shrink: 0; margin: 0; }
.choice .grow { flex: 1; min-width: 0; }
.choice strong { display: block; font-size: 16px; overflow-wrap: anywhere; }
.choice small { display: block; font-size: 13px; color: var(--muted); }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; background: #f1dfcb; color: #85542c;
  display: grid; place-items: center; font-weight: 700; flex-shrink: 0;
}
.badge { display: inline-flex; padding: 3px 8px; border-radius: 8px; font-size: 12px; font-weight: 600; margin-top: 4px; }
.badge.good { background: var(--green-soft); color: #21613c; }
.badge.warn { background: var(--warn-soft); color: var(--warn-ink); }
.badge.none { background: #f1f1ef; color: #5b6570; }

.plans { display: grid; gap: 10px; border: 0; padding: 0; margin: 0 0 18px; }
.price { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.summary { border-top: 1px solid var(--line); margin-top: 4px; }
.summary div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; font-size: 14px; }
.summary div + div { border-top: 1px solid var(--line); }
.summary span:first-child { color: var(--muted); }
.summary b { font-variant-numeric: tabular-nums; }
.note { font-size: 13px; color: var(--muted); margin: 14px 0 18px; }

.result { text-align: center; padding: 18px 0 8px; }
.result .mark {
  width: 76px; height: 76px; border-radius: var(--r-lg); display: grid; place-items: center; margin: 0 auto 20px;
  background: #f0ebf6; color: var(--focus);
}
.result .mark.good { background: var(--green-soft); color: var(--green); }
.result .mark.warn { background: var(--warn-soft); color: var(--warn-ink); }
.result h1 { font-size: 27px; }
.result .lead { margin-bottom: 22px; }
.result .actions { display: grid; gap: 10px; }
.result .actions.spaced { margin-top: 22px; }
.view > .button.link { display: flex; margin: 14px auto 0; }
.spinner {
  width: 34px; height: 34px; border-radius: 50%; border: 3px solid #d9cfe6; border-top-color: var(--focus);
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.until { display: inline-block; margin-top: 4px; background: var(--green-soft); color: #21613c; font-weight: 650; border-radius: var(--r-sm); padding: 6px 12px; }
.help { text-align: left; margin-top: 18px; }
.help a { display: block; padding: 6px 0; }

.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 22px 20px 30px; }
.foot .contacts { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin: 6px 0 12px; }
.foot .contacts a { color: var(--ink); font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.foot .fine a { color: var(--muted); }

@media (min-width: 720px) {
  main { padding-top: 28px; }
  h1 { font-size: 38px; letter-spacing: -1.3px; }
  /* On a computer the flow sits on one sheet: one focal point, the cream page around it. */
  .view { background: var(--surface); border-radius: var(--r-lg); padding: 36px 40px 32px; box-shadow: var(--shadow-2); }
  .view .panel { border: 0; padding: 0; }
  .view .choice { background: #fdfcfa; }
}
