/* Step forms (mockup form.css): no top or bottom bar, a slim header with back, title and Help, the steps as dots on a
   thread, one column, and the main button in a glass bar at the bottom. Computers: one 640 px column, plain bar. */
.fx-page .topbar, .fx-page .tabbar, .fx-page .ab, .fx-page .mp-fab { display: none !important; }
.fx-head { position: sticky; top: 0; z-index: 1020; padding: 14px 16px 10px;
  background: linear-gradient(var(--bg) 72%, color-mix(in srgb, var(--bg) 0%, transparent)); }
.fx-row { display: flex; align-items: center; gap: 10px; max-width: 640px; margin-inline: auto; }
.fx-ibtn { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--surface);
  color: var(--text); display: grid; place-items: center; }
.fx-ibtn:hover { background: var(--tint); color: var(--text); }
.fx-t { flex: 1; min-width: 0; text-align: center; }
.fx-t b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1rem; line-height: 20px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.fx-t small { display: block; font-size: .78rem; line-height: 16px; color: var(--text-muted); }
.fx-help > summary.fx-helpbtn { height: 44px; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px 0 10px; border-radius: 999px;
  background: var(--tint); font-family: var(--font-display); font-weight: 700; font-size: .875rem; color: var(--text); }
.fx-helpbtn i { width: 24px; height: 24px; border-radius: 50%; background: var(--net); color: #1C1828; display: grid; place-items: center;
  font-style: normal; font-weight: 800; }
.fx-grab { display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: 0 auto 12px; }
.fx-tips { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.fx-tips li { display: flex; gap: 10px; line-height: 22px; }
.fx-tips li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--net); }
.fx-hlinks { margin-top: 16px; display: grid; gap: 8px; }
.fx-hl { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 12px; border-radius: 16px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); text-decoration: none; }
.fx-hl > .icon { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: color-mix(in srgb, var(--net) 40%, var(--surface)); color: #1C1828; flex: none; }
.fx-hl b { display: block; } .fx-hl small { display: block; color: var(--text-muted); font-size: .8rem; }

/* the thread: dots, done ones in ink, the current one in the network's colour with a halo */
.fx-prog { position: relative; display: flex; justify-content: space-between; max-width: 640px; margin: 12px auto 0; padding: 0; list-style: none; height: 14px; }
.fx-prog::before, .fx-prog::after { content: ""; position: absolute; left: 6px; right: 6px; top: 6px; height: 2px; border-radius: 2px; background: var(--line-strong); }
.fx-prog::after { right: auto; width: calc((100% - 12px) * (var(--p) - 1) / (var(--n) - 1)); background: var(--text); transition: width 420ms var(--ease-standard); }
.fx-prog li { position: relative; z-index: 1; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px var(--line-strong); }
.fx-prog li.dn { background: var(--text); box-shadow: none; }
.fx-prog li.cur { background: var(--net); box-shadow: 0 0 0 4px color-mix(in srgb, var(--net) 30%, transparent); animation: fx-pop 360ms cubic-bezier(.3, 1.4, .5, 1); }
@keyframes fx-pop { from { transform: scale(.4) } to { transform: none } }

.fx-main { min-height: 100vh; padding-bottom: 140px; }
.fx-main .mp-band { padding: 8px 0 0; }
.fx-main .mp-body, .fx-main .mp-wrap.mp-body { max-width: 672px; padding-bottom: 140px; }
.fx-main .mp-title { font-size: clamp(1.75rem, 7vw, 2.5rem); }
.fx-step-in { position: relative; animation: fx-in 340ms var(--ease-standard); }
@keyframes fx-in { from { opacity: 0; left: 24px } to { opacity: 1; left: 0 } }   /* not transform: the glass bar inside stays fixed */

/* the main button sits in a glass bar at the bottom of the screen */
.fx-bar { position: fixed; z-index: 1025; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); max-width: 640px; margin-inline: auto;
  display: flex; gap: 8px; padding: 6px; border-radius: 999px;
  background: radial-gradient(110px 80px at 0% 100%, color-mix(in srgb, var(--net) 26%, transparent), transparent 70%),
    radial-gradient(150px 90px at 100% 0%, var(--glow-b), transparent 70%), var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
  box-shadow: inset 0 1px 0 var(--glass-hi), var(--glass-shadow); }
.fx-bar::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(100deg, color-mix(in srgb, var(--net) 85%, transparent), var(--rim-b) 38%, var(--rim-b) 62%, var(--rim-c));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.fx-bar > * { position: relative; z-index: 1; margin: 0; }
.fx-bar .btn { min-height: 52px; border-radius: 999px; }
.fx-bar .fx-go { flex: 1; }
.fx-bar .fx-quiet { background: var(--surface); color: var(--text); border: 0; padding-inline: 18px; }
.fx-bar form { display: contents; }
@media (min-width: 1024px) {
  .fx-head { background: color-mix(in srgb, var(--bg) 90%, transparent); -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
  .fx-t { text-align: left; }
  .fx-bar { left: 0; right: 0; bottom: 0; max-width: none; border-radius: 0; padding: 14px max(24px, calc((100% - 640px) / 2));
    background: var(--surface); box-shadow: none; border-top: 1px solid var(--line); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .fx-bar::before { display: none; }
  .fx-bar .fx-go { flex: none; min-width: 220px; margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) { .fx-step-in, .fx-prog li.cur { animation: none; } }

/* inside a step form the header does the going back; the old in-page bits step aside */
.fx-main .mp-back, .fx-main .mp-netmenu, .fx-main .mp-progress { display: none; }
.fx-main .mp-band { padding-top: 4px; }

/* OFR-1 offer: one card for the price, then three lines, then why we charge behind one tap */
.ofr .mp-lead { margin-bottom: 18px; }
.ofr-card { position: relative; overflow: hidden; padding: 20px 20px 18px; border-radius: 24px; background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--line), 0 10px 30px rgba(28, 24, 40, .08); margin-bottom: 20px; }
.ofr-card::before { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%;
  border: 18px solid color-mix(in srgb, var(--net) 30%, transparent); }
.ofr-tag { display: inline-flex; padding: 3px 12px; border-radius: 999px; background: var(--net); color: #1C1828; font-weight: 700; font-size: .8125rem; }
.ofr-price { display: flex; align-items: baseline; gap: 10px; margin: 12px 0 6px; }
.ofr-price b { font-family: var(--font-display); font-weight: 800; font-size: 3.5rem; line-height: 1; letter-spacing: -.03em; }
.ofr-price span { color: var(--text-muted); font-weight: 600; }
.ofr-when { margin: 0; color: var(--text-muted); font-size: .9375rem; }
.ofr-ticks { margin-bottom: 16px; }
.ofr-why { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.ofr-why summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; font-weight: 700; cursor: pointer; list-style: none; }
.ofr-why summary::-webkit-details-marker { display: none; }
.ofr-why[open] summary .icon { transform: rotate(180deg); }
.ofr-why p { margin: 0 0 12px; color: var(--text-muted); }

/* small links that belong to a form (Terms, Refunds, Skip for now, Go to My people) float just above the action bar,
   centred, quiet: the mockup's .fstat line. Computers: inside the bar, on the left. */
.fx-links { position: fixed; z-index: 1024; left: 16px; right: 16px; max-width: 640px; margin-inline: auto;
  bottom: calc(16px + 64px + 10px + env(safe-area-inset-bottom)); display: flex; justify-content: center; align-items: center; gap: 4px 18px;
  flex-wrap: wrap; font-size: .8125rem; color: var(--text-muted); pointer-events: none; }
.fx-links a, .fx-links button { pointer-events: auto; min-height: 36px; display: inline-flex; align-items: center; padding: 0 4px; border: 0; background: none;
  color: var(--text); font: inherit; font-weight: 700; text-decoration: underline; text-decoration-color: var(--net); text-decoration-thickness: 2px;
  text-underline-offset: 3px; cursor: pointer; }
.fx-links a:hover, .fx-links button:hover { color: var(--text); text-decoration-thickness: 3px; }
.fx-main:has(.fx-links) { padding-bottom: 190px; }
@media (min-width: 1024px) {
  .fx-links { left: max(24px, calc((100% - 640px) / 2)); right: auto; bottom: 0; height: 85px; margin: 0; justify-content: flex-start; z-index: 1026; }
}

/* B19 offer: struck original price, the saving, the label, the end date */
.po { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 12px 0 0; }
.po-tag { padding: 2px 10px; border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 700; font-size: .75rem; }
.po-was { color: var(--text-muted); font-weight: 600; text-decoration-thickness: 2px; }
.po-save { font-weight: 700; font-size: .875rem; }
.po-ends { margin: 4px 0 0; color: var(--text-muted); font-size: .875rem; }
.ofr-card .po + .ofr-price, .ofr-card .po-ends + .ofr-price { margin-top: 4px; }

/* SET sign-in inside the form: Google, then email that opens in place, then the code under it */
.si-google .btn, .si-btn { width: 100%; min-height: 56px; border-radius: 999px; display: flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.si-google { margin-bottom: 10px; }
.si-btn { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line-strong); list-style: none; cursor: pointer; }
.si-btn::-webkit-details-marker { display: none; }
.si-toggle[open] .si-btn { display: none; }
.si-email { animation: fx-in 300ms var(--ease-standard); position: relative; }
.si-code { animation: fx-in 300ms var(--ease-standard); position: relative; }
.si-code input { font-size: 1.375rem; letter-spacing: .3em; font-family: var(--font-display); font-weight: 700; }
.si:has(.si-email .fx-links) > .si-fine { display: none; }

/* a bar with nothing to show (e.g. Install is hidden where the browser cannot install) does not show at all */
.fx-bar:not(:has(> :not([hidden]):not(input[type="hidden"]))) { display: none; }
/* last set-up step: Finish set-up leads, unless Install can show, then Finish steps back */
.fx-bar:has([data-install-button]:not([hidden])) [data-install-skip] { flex: none; --btn-bg: var(--surface); --btn-fg: var(--text);
  background: var(--surface); color: var(--text); box-shadow: none; padding-inline: 18px; }

/* a calm note in a step form (e.g. the place is held while paying opens) */
.ofr-note { padding: 16px 18px; border-radius: 20px; background: color-mix(in srgb, var(--net) 14%, var(--surface));
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--net) 40%, transparent); }
.ofr-note b { font-family: var(--font-display); font-size: 1.0625rem; }
.ofr-note p { margin: 4px 0 0; color: var(--text-muted); }
.si-new { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 6px; }
.si-new summary { min-height: 48px; display: flex; align-items: center; font-weight: 700; cursor: pointer; list-style: none;
  text-decoration: underline; text-decoration-color: var(--net); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.si-new summary::-webkit-details-marker { display: none; }

.mp-done-mark { display: block; width: 96px; height: 96px; margin: 8px auto 18px; color: var(--text); animation: fx-pop 420ms cubic-bezier(.3, 1.4, .5, 1); }
