/* ALISA INTERNET QR: colours, type and the parts every page shares (buttons, fields, notices). */

:root {
  color-scheme: light; /* the site is light for everyone, whatever the system theme */
  --paper: #fff;
  --mist: #f3f3f7;
  --ink: #0e0e14;
  --ink-2: #4c4c5c;
  --ink-3: #747486;
  --line: #dedee7;
  --violet: #7138ff;
  --violet-d: #5528c1;
  --violet-s: #efe9ff;
  --ok: #157a45;
  --ok-s: #e3f5ea;
  --bad: #c42626;
  --bad-s: #fdeaea;
  --warn: #8a5a00;
  --warn-s: #fff2d2;
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;
  --r-xl: 32px;
  --text: Onest, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: Unbounded, Onest, system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.5 var(--text);
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { text-wrap: balance; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; border-radius: 6px; }

.ic { width: 22px; height: 22px; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 14px 26px;
  border: 0; border-radius: var(--r-m);
  background: var(--violet); color: #fff;
  font-weight: 600; font-size: 17px; line-height: 1.2; text-decoration: none; text-align: center;
  transition: background-color .2s var(--ease), transform .15s var(--ease), box-shadow .2s var(--ease), opacity .2s;
}
.btn:hover { background: var(--violet-d); }
.btn:active { transform: scale(.98); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: default; pointer-events: none; }
.btn--ink { background: var(--ink); }
.btn--ink:hover { background: #2a2a36; }
.btn--light { background: var(--mist); color: var(--ink); }
.btn--light:hover { background: #e7e7ee; }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: var(--violet-s); }
.btn--danger { background: var(--bad-s); color: var(--bad); }
.btn--danger:hover { background: #f9d6d6; }
.btn--s { min-height: 44px; padding: 10px 16px; font-size: 15px; border-radius: 12px; gap: 8px; }
.btn--s .ic { width: 18px; height: 18px; }
.btn--block { width: 100%; }
.btn--busy { position: relative; color: transparent !important; pointer-events: none; }
.btn--busy::after {
  content: ""; position: absolute; width: 22px; height: 22px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: spin .7s linear infinite;
}
.btn--light.btn--busy::after, .btn--white.btn--busy::after { border-color: rgba(14, 14, 20, .2); border-top-color: var(--ink); }
@keyframes spin { to { transform: rotate(1turn); } }

.link { color: var(--violet-d); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.link:hover { color: var(--violet); }

/* ---- fields ---- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field > label, .label { font-weight: 600; font-size: 15px; }
.hint { color: var(--ink-3); font-size: 14px; line-height: 1.4; }
.input {
  width: 100%; min-height: 56px; padding: 14px 16px;
  border: 1.5px solid var(--line); border-radius: var(--r-m); background: #fff;
  font-size: 17px; line-height: 1.3;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.input::placeholder { color: #9a9aab; }
.input:hover { border-color: #c4c4d2; }
.input:focus { outline: 0; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(113, 56, 255, .16); }
textarea.input { min-height: 96px; resize: vertical; }

.check { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--r-m); background: var(--mist); cursor: pointer; transition: background-color .2s var(--ease); }
.check:hover { background: #ececf2; }
.check input { flex: none; width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--violet); cursor: pointer; }
.check b { display: block; font-weight: 600; }
.check span { display: block; margin-top: 4px; color: var(--ink-2); font-size: 15px; line-height: 1.45; }

/* ---- notices ---- */
.note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-m); font-size: 15px; line-height: 1.45; }
.note .ic { margin-top: 1px; }
.note--bad { background: var(--bad-s); color: var(--bad); }
.note--ok { background: var(--ok-s); color: var(--ok); }
.note--warn { background: var(--warn-s); color: var(--warn); }
.note--info { background: var(--violet-s); color: var(--violet-d); }

/* a row of choices that behaves like radio buttons */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: var(--r-m); background: var(--mist); }
.seg__b {
  min-height: 44px; padding: 8px 16px; border: 0; border-radius: 12px; background: transparent;
  font-weight: 600; font-size: 15px; color: var(--ink-2); white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.seg__b:hover { color: var(--ink); }
/* every choice gets the same share of the row, so nothing wraps to a second line */
.seg--fit { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.seg--fit .seg__b { padding: 8px 4px; white-space: normal; line-height: 1.2; }
.seg__short { display: none; }
.seg__b[aria-checked="true"], .seg__b[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(14, 14, 20, .12); }

.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font: 700 15px/1.05 var(--display); letter-spacing: -.01em; }
.logo svg { width: 36px; height: 36px; flex: none; }
.logo b { font-weight: 700; }
.logo span { display: block; color: var(--violet); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
