/* Layout: one calm column on white. Colours come from the ALSAMER mark: its blue for action,
   its red dot only for "tap here". Green means protection is on. Light mode only. */
:root {
  --paper: #ffffff;
  --mist: #f2f7fd;
  --line: #d9e5f2;
  --ink: #12233d;
  --soft: #4a5d78;
  --blue: #1767c4;
  --blue-deep: #10529f;
  --dot: #f5222f;
  --green: #12794a;
  --green-mist: #eaf7f0;
  --face: "Cairo", "Segoe UI", Tahoma, sans-serif;
  color-scheme: light only;
}

@font-face {
  font-family: "Cairo";
  src: url("/cairo.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.75 var(--face);
  overflow-wrap: break-word;
}
h1, h2, h3, p, ol { margin: 0; }
h1, h2, h3 { line-height: 1.35; text-wrap: balance; }
b { font-weight: 700; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid #7db4f0; outline-offset: 3px; border-radius: 8px; }

.top, main, footer {
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  padding-inline: max(20px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-right, 0px));
}
.top { padding-block: 26px 8px; display: flex; justify-content: center; }
.top img { width: min(264px, 72vw); height: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 8px 24px;
  border: 2px solid transparent; border-radius: 14px;
  font: 700 17px/1.4 var(--face); text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .15s;
}
.btn-main { width: 100%; min-height: 66px; background: var(--blue); color: #fff; font-size: 21px; }
.btn-main:hover { background: var(--blue-deep); }
.btn svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-line { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn-line:hover { background: var(--mist); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #0d633c; }
.btn-small { min-height: 46px; padding: 6px 16px; font-size: 15px; }

/* Hero */
.hero { display: grid; gap: 20px; padding-block: 24px 44px; }
.hero-app { display: grid; justify-items: center; text-align: center; gap: 16px; }
.app-icon { border-radius: 26px; box-shadow: 0 14px 30px -14px rgb(45 66 150 / .55); }
h1 { font-size: clamp(27px, 7vw, 38px); font-weight: 800; }
.facts { margin-top: 8px; color: var(--soft); font-size: 15px; }
.facts b { color: var(--ink); }
.facts { display: flex; flex-wrap: wrap; gap: 2px 8px; justify-content: center; }
.facts > span { white-space: nowrap; }
.facts > span + span::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-inline-end: 8px; border-radius: 50%; background: var(--dot); vertical-align: middle; }
.started { text-align: center; font-weight: 600; color: var(--green); }
.signed { display: flex; gap: 12px; align-items: flex-start; color: var(--soft); font-size: 15.5px; }
.signed span { min-width: 0; }
.signed b { color: var(--ink); }
.signed svg { flex: none; width: 30px; height: 30px; fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.desktop-qr { display: none; }

@media (max-width: 479px) {
  .facts > span:first-child { flex-basis: 100%; }
  .facts > span:nth-child(2)::before { display: none; }
}

/* Play live / under review */
[data-play="review"] .only-live, [data-play="live"] .only-review { display: none; }
[data-play="live"] #download { background: #fff; color: var(--blue); border-color: var(--blue); min-height: 54px; font-size: 17px; }

/* Sections */
.block { padding-block: 40px; border-top: 1px solid var(--line); display: grid; gap: 18px; }
h2 { font-size: clamp(23px, 5.6vw, 29px); font-weight: 800; }
h3 { font-size: 18.5px; font-weight: 700; }
.lead { color: var(--soft); }
.pick { font-weight: 700; }

.steps { list-style: none; padding: 0; counter-reset: s; display: grid; gap: 0; }
.steps li { counter-increment: s; position: relative; padding-inline-start: 62px; padding-bottom: 26px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(s); position: absolute; inset-inline-start: 0; top: 0;
  width: 42px; height: 42px; border-radius: 50%; background: var(--mist); color: var(--blue);
  display: grid; place-items: center; font-weight: 800; font-size: 19px;
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; inset-inline-start: 20px; top: 48px; bottom: 6px; width: 2px; background: var(--line);
}
.steps h3 { padding-top: 7px; }
.steps p { color: var(--soft); margin-top: 4px; }
.steps b { color: var(--ink); }

/* Warning cases */
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
.case { border: 1.5px solid var(--line); border-radius: 16px; background: #fff; }
.case[open] { border-color: var(--blue); }
.case summary, .qa summary { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.case summary { padding: 16px 18px; min-height: 60px; line-height: 1.5; }
.case summary::after, .qa summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-inline-end: 4px;
  border: solid var(--blue); border-width: 0 2.5px 2.5px 0; transform: translateY(-3px) rotate(45deg);
}
.case[open] summary::after, .qa[open] summary::after { transform: translateY(3px) rotate(225deg); }
.case-body { padding: 4px 18px 22px; display: grid; gap: 20px; }

.dialog { width: 100%; max-width: 290px; margin-inline: auto; padding: 20px; border-radius: 22px; background: var(--mist); border: 1px solid var(--line); display: grid; gap: 11px; font-size: 15px; }
.dialog-brand { font-weight: 700; color: var(--green); }
.dialog-line { height: 8px; border-radius: 4px; background: #d3deeb; }
.dialog-line.short { width: 62%; }
.dialog-tap { position: relative; width: fit-content; max-width: 100%; padding: 5px 14px; border-radius: 10px; background: #fff; color: var(--blue); font-weight: 700; box-shadow: 0 0 0 2px var(--dot); }
.dialog-tap.solid { width: 100%; text-align: center; }
.dialog-tap[data-n]::after {
  content: attr(data-n); position: absolute; inset-inline-end: -36px; top: 50%; translate: 0 -50%;
  width: 25px; height: 25px; border-radius: 50%; background: var(--dot); color: #fff;
  display: grid; place-items: center; font-size: 14px; line-height: 1;
}
.dialog-ok { text-align: center; padding: 7px; border-radius: 20px; background: #dbe5f1; color: var(--soft); }

.mini { padding-inline-start: 24px; display: grid; gap: 8px; align-content: center; min-width: 0; }
.mini li::marker { font-weight: 800; color: var(--blue); }
.mini.big { gap: 20px; }
.mini.big li > * + * { margin-top: 12px; }
.mini .btn { width: 100%; }
.manual-note { padding: 14px 16px; border-radius: 12px; background: #fff6e2; color: #5e4300; }

.toggle { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 16px; border-radius: 14px; background: var(--mist); border: 1px solid var(--line); font-size: 15.5px; font-weight: 600; line-height: 1.5; }
.toggle i { flex: none; position: relative; width: 50px; height: 28px; border-radius: 14px; background: #9aabbf; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--dot); }
.toggle i::after { content: ""; position: absolute; top: 4px; inset-inline-start: 4px; width: 20px; height: 20px; border-radius: 50%; background: #fff; }
.toggle.on { background: #fff; border-color: #bfe3cf; }
.toggle.on i { background: var(--green); box-shadow: none; }
.toggle.on i::after { inset-inline: auto 4px; }

.restore { margin-top: 10px; padding: 22px 20px; border-radius: 18px; background: var(--green-mist); display: grid; gap: 14px; }
.restore h3 { color: var(--green); font-size: 20px; }

/* Quick answers */
.qa { border-bottom: 1px solid var(--line); }
#help { gap: 4px; }
#help h2 { margin-bottom: 8px; }
.qa summary { padding-block: 15px; font-weight: 600; line-height: 1.55; }
.qa p { color: var(--soft); padding-bottom: 16px; }
.qa b { color: var(--ink); }
.qa .hash { font: 13px/1.7 ui-monospace, Consolas, monospace; word-break: break-all; text-align: left; user-select: all; }

footer { padding-block: 28px 48px; border-top: 1px solid var(--line); text-align: center; color: var(--soft); font-size: 15px; }
footer p:first-child { font-weight: 700; color: var(--ink); }

/* Notices */
.notice { background: #fff6e2; color: #5e4300; padding: 12px 20px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: center; text-align: center; font-weight: 600; font-size: 15.5px; }
.notice .btn { background: #5e4300; color: #fff; }
.reminder {
  position: fixed; inset: auto 0 0; z-index: 5; padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px));
  background: #fff; border-top: 3px solid var(--green); box-shadow: 0 -10px 30px -12px rgb(18 35 61 / .3);
  display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: center;
}
.reminder p { font-weight: 700; }
.reminder div { display: flex; gap: 10px; flex-wrap: wrap; }
body.has-reminder { padding-bottom: 150px; }

@media (min-width: 640px) {
  .hero-app { grid-template-columns: auto 1fr; justify-items: start; text-align: start; align-items: center; gap: 24px; }
  .hero { padding-top: 36px; }
  .facts { justify-content: flex-start; font-size: 16px; }
  .case-body:not(.case-full) { grid-template-columns: 290px 1fr; align-items: center; }
  .mini .btn, .restore .btn { width: auto; justify-self: start; }
}
@media (min-width: 640px) and (hover: hover) and (pointer: fine) {
  .desktop-qr { display: flex; align-items: center; gap: 20px; padding: 14px; border-radius: 18px; background: var(--mist); }
  .desktop-qr img { flex: none; border-radius: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
