/* The home page and the login page. Colours follow the theme chosen in Settings (see includes/theme.php). */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
:root { --ink: #060d24; --ink-2: #0a1740; --glow: #38e1ff; --mint: #4ade9f; }
body { font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif; color: #e8eeff; background: var(--ink); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }

/* ── moving backdrop ───────────────────────────────── */
.fx-sky { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background: radial-gradient(120% 90% at 15% 0%, var(--ink-2) 0%, var(--ink) 60%); }
.fx-sky .orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.fx-sky .o1 { width: 46vmax; height: 46vmax; left: -14vmax; top: -16vmax; background: var(--primary); animation: fx-drift 19s ease-in-out infinite alternate; }
.fx-sky .o2 { width: 34vmax; height: 34vmax; right: -10vmax; top: 12vh; background: #0ea5b7; opacity: .38; animation: fx-drift 23s ease-in-out -7s infinite alternate-reverse; }
.fx-sky .o3 { width: 38vmax; height: 38vmax; left: 32vw; bottom: -24vmax; background: #6d4aff; opacity: .34; animation: fx-drift 27s ease-in-out -12s infinite alternate; }
.fx-sky .grid { position: absolute; inset: -2px; opacity: .22;
  background-image: linear-gradient(rgba(148, 180, 255, .16) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 180, 255, .16) 1px, transparent 1px);
  background-size: 54px 54px; -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent); mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent);
  animation: fx-pan 24s linear infinite; }
.fx-dust { position: absolute; inset: 0; width: 100%; height: 100%; }
@keyframes fx-drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(7vmax, 5vmax) scale(1.14); } 100% { transform: translate(-4vmax, 9vmax) scale(.94); } }
@keyframes fx-pan { to { transform: translate(54px, 54px); } }

/* ── logo ──────────────────────────────────────────── */
.fx-logo { position: relative; display: inline-grid; place-items: center; width: 76px; height: 76px; }
.fx-logo svg { position: relative; z-index: 2; width: 100%; height: 100%; filter: drop-shadow(0 10px 28px rgba(var(--primary-light-rgb), .6)); animation: fx-beat 2.4s ease-in-out infinite; }
.fx-logo::before, .fx-logo::after { content: ''; position: absolute; inset: 0; border-radius: 22px; border: 2px solid rgba(var(--primary-light-rgb), .8); animation: fx-ring 2.4s ease-out infinite; }
.fx-logo::after { animation-delay: 1.2s; }
@keyframes fx-beat { 0%, 100% { transform: scale(1); } 8% { transform: scale(1.1); } 16% { transform: scale(.98); } 24% { transform: scale(1.06); } 34% { transform: scale(1); } }
@keyframes fx-ring { 0% { transform: scale(1); opacity: .75; } 100% { transform: scale(1.9); opacity: 0; } }

.fx-word { display: flex; font-weight: 800; letter-spacing: .08em; line-height: 1; font-size: clamp(42px, 6.4vw, 82px); }
.fx-word span { display: inline-block; opacity: 0; transform: translateY(.6em) rotateX(-80deg); animation: fx-letter .8s cubic-bezier(.2, .9, .25, 1.3) forwards; animation-delay: calc(.15s + var(--i) * .08s); }
.fx-word .a { color: #fff; text-shadow: 0 8px 34px rgba(255, 255, 255, .18); }
.fx-word .b { background: linear-gradient(110deg, var(--primary-light) 20%, var(--glow) 40%, #fff 50%, var(--glow) 60%, var(--primary-light) 80%); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: fx-letter .8s cubic-bezier(.2, .9, .25, 1.3) forwards, fx-shine 5s linear 1.4s infinite; animation-delay: calc(.15s + var(--i) * .08s), 1.4s; }
@keyframes fx-letter { to { opacity: 1; transform: none; } }
@keyframes fx-shine { 0% { background-position: 100% 0; } 100% { background-position: -50% 0; } }

.fx-tagline { margin-top: 10px; font-size: 13px; font-weight: 600; letter-spacing: .34em; text-transform: uppercase; color: #9db4e8; }
.fx-licensed { display: inline-flex; align-items: center; gap: 9px; max-width: 100%; padding: 8px 15px; border-radius: 40px; font-size: 13px; font-weight: 600; color: #dbe6ff;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(8px); }
.fx-licensed i { color: var(--glow); }
.fx-licensed .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(74, 222, 159, .7); animation: fx-live 2s infinite; flex-shrink: 0; }
@keyframes fx-live { 70% { box-shadow: 0 0 0 9px rgba(74, 222, 159, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 159, 0); } }

/* ── heartbeat trace ───────────────────────────────── */
.fx-pulse { display: block; width: 100%; height: 90px; overflow: visible; }
.fx-pulse path { fill: none; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.fx-pulse .base { stroke: rgba(140, 175, 255, .16); stroke-width: 1.5; }
.fx-pulse .live { stroke: var(--glow); stroke-width: 2.5; stroke-dasharray: 170 830; stroke-dashoffset: 1000; filter: drop-shadow(0 0 7px var(--glow)); animation: fx-trace 5.5s linear infinite; }
@keyframes fx-trace { to { stroke-dashoffset: 0; } }

/* ── patient journey ───────────────────────────────── */
.fx-journey { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); list-style: none; max-width: 620px; }
.fx-track { position: absolute; left: 8.33%; right: 8.33%; top: 23px; height: 2px; background: rgba(150, 180, 255, .2); border-radius: 2px; }
.fx-track span { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px 4px var(--glow); animation: fx-travel 9s linear infinite; }
.fx-step { display: flex; flex-direction: column; align-items: center; gap: 9px; text-align: center; }
.fx-node { position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; font-size: 18px; color: #b7c9f5; background: #0d1a44; border: 1px solid rgba(150, 180, 255, .24);
  animation: fx-arrive 9s linear infinite; animation-delay: calc(var(--i) * 1.5s); }
.fx-name { font-size: 11.5px; font-weight: 600; color: #a9bce6; }
@keyframes fx-travel { 0% { left: 0; opacity: 1; } 83.33% { left: 100%; opacity: 1; } 90%, 100% { left: 100%; opacity: 0; } }
@keyframes fx-arrive { 0% { transform: scale(1.18) translateY(-4px); color: #fff; background: var(--primary); border-color: var(--glow); box-shadow: 0 10px 30px rgba(var(--primary-light-rgb), .65); }
  14% { transform: none; color: #fff; background: var(--primary); box-shadow: 0 4px 14px rgba(var(--primary-light-rgb), .3); } 26%, 100% { transform: none; color: #b7c9f5; background: #0d1a44; border-color: rgba(150, 180, 255, .24); box-shadow: none; } }

/* ── buttons ───────────────────────────────────────── */
.fx-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; overflow: hidden; padding: 15px 30px; border: 0; border-radius: 14px;
  font: 700 15px/1 'Plus Jakarta Sans', sans-serif; color: #fff; cursor: pointer; background: linear-gradient(120deg, var(--primary), var(--primary-light) 55%, #0ea5c6);
  background-size: 180% 100%; box-shadow: 0 12px 30px rgba(var(--primary-rgb), .45); transition: transform .22s, box-shadow .22s, background-position .5s; }
.fx-btn:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(var(--primary-rgb), .6); background-position: 100% 0; }
.fx-btn:active { transform: translateY(0); }
.fx-btn::after { content: ''; position: absolute; top: 0; bottom: 0; width: 45%; left: -70%; transform: skewX(-22deg); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); animation: fx-sweep 3.8s ease-in-out infinite; }
@keyframes fx-sweep { 0%, 55% { left: -70%; } 85%, 100% { left: 135%; } }
.fx-btn.ghost { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .22); box-shadow: none; }
.fx-btn.ghost::after { display: none; }
.fx-btn.ghost:hover { background: rgba(255, 255, 255, .13); }
.fx-btn.small { padding: 11px 20px; font-size: 13.5px; border-radius: 11px; }
.fx-btn:focus-visible, .fx-field input:focus-visible, .fx-eye:focus-visible, a:focus-visible { outline: 3px solid var(--glow); outline-offset: 2px; }

/* ═══ Login ════════════════════════════════════════ */
.fx-login { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 5vw, 80px); min-height: 100vh; min-height: 100dvh; max-width: 1280px; margin: 0 auto; padding: 36px clamp(18px, 4vw, 56px); }
.fx-show { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; min-width: 0; }
.fx-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.fx-say { font-size: clamp(22px, 2.5vw, 32px); font-weight: 700; line-height: 1.35; color: #fff; }
.fx-rotate { display: inline-grid; vertical-align: bottom; color: var(--glow); }
.fx-rotate b { grid-area: 1 / 1; opacity: 0; transform: translateY(70%); filter: blur(6px); transition: opacity .55s, transform .55s, filter .55s; white-space: nowrap; }
.fx-rotate b.on { opacity: 1; transform: none; filter: none; }
.fx-rotate b.off { transform: translateY(-70%); }
html:not(.js) .fx-rotate b:first-child { opacity: 1; transform: none; filter: none; }
.fx-show .fx-journey { width: 100%; margin-top: 8px; }
.fx-show .fx-pulse { max-width: 620px; opacity: .9; }

.fx-card { position: relative; justify-self: center; width: 100%; max-width: 440px; padding: 42px 40px 30px; border-radius: 28px; color: #0f172a; background: rgba(255, 255, 255, .97);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .5); animation: fx-rise .9s cubic-bezier(.2, .9, .25, 1.15) .25s backwards; }
.fx-card::before { content: ''; position: absolute; inset: -2px; z-index: -1; border-radius: 30px; background: conic-gradient(from var(--turn, 0deg), var(--primary), var(--glow), #8b6bff, var(--mint), var(--primary)); animation: fx-turn 7s linear infinite; }
.fx-card::after { content: ''; position: absolute; inset: -2px; z-index: -2; border-radius: 30px; background: inherit; filter: blur(30px); }
@property --turn { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes fx-turn { to { --turn: 360deg; } }
@keyframes fx-rise { from { opacity: 0; transform: translateY(46px) scale(.95); } }
.fx-card.shake { animation: fx-shake .55s ease .2s; }
@keyframes fx-shake { 0%, 100% { transform: none; } 20% { transform: translateX(-11px); } 40% { transform: translateX(9px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(3px); } }
.fx-card h1 { font-size: 29px; font-weight: 800; letter-spacing: -.01em; }
.fx-card .sub { margin: 6px 0 26px; font-size: 14px; color: #64748b; }
.fx-note { display: flex; gap: 9px; align-items: center; margin-bottom: 18px; padding: 12px 15px; border-radius: 12px; font-size: 13.5px; font-weight: 500; }
.fx-note.bad { color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; }
.fx-note.warn { color: #92400e; background: #fffbeb; border: 1px solid #fde68a; }
.fx-field { margin-bottom: 18px; }
.fx-field label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; color: #1e293b; }
.fx-wrap { position: relative; }
.fx-wrap > i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 15px; transition: color .2s, transform .25s; pointer-events: none; }
.fx-field input { width: 100%; padding: 15px 46px 15px 44px; border: 2px solid #e2e8f0; border-radius: 13px; background: #f8fafc; font: 500 15px 'Plus Jakarta Sans', sans-serif; color: #0f172a; outline: none; transition: border-color .2s, box-shadow .2s, background .2s; }
.fx-field input:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 5px rgba(var(--primary-rgb), .13); }
.fx-wrap input:focus ~ i { color: var(--primary); transform: translateY(-50%) scale(1.18); }
.fx-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 9px; background: transparent; color: #64748b; font-size: 15px; cursor: pointer; }
.fx-eye:hover { background: #eef2f7; color: var(--primary); }
html:not(.js) .fx-eye { display: none; }
.fx-caps { display: none; margin-top: 7px; font-size: 12.5px; font-weight: 600; color: #b45309; }
.fx-caps.on { display: block; }
.fx-card .fx-btn { width: 100%; margin-top: 6px; padding: 17px; }
.fx-spin { display: none; width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: fx-rot .7s linear infinite; }
.fx-btn.loading .fx-spin { display: inline-block; }
.fx-btn.loading > i { display: none; }
@keyframes fx-rot { to { transform: rotate(360deg); } }
.fx-help { margin-top: 20px; text-align: center; font-size: 12.5px; line-height: 1.6; color: #64748b; }
.fx-help a { display: inline-block; margin-top: 10px; font-weight: 700; color: var(--primary); }
.fx-help a i { transition: transform .2s; }
.fx-help a:hover i { transform: translateX(-4px); }

/* ═══ Home page ════════════════════════════════════ */
.fx-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 6%; transition: background .3s, padding .3s, box-shadow .3s; }
.fx-nav.solid { padding-top: 11px; padding-bottom: 11px; background: rgba(6, 13, 36, .82); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(255, 255, 255, .09); }
.fx-navbrand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.fx-navbrand .sm-word { display: block; font-weight: 800; letter-spacing: .16em; font-size: 21px; line-height: 1; color: #fff; }
.fx-navbrand .sm-word span { color: var(--primary-light); }
.fx-navbrand small { display: block; margin-top: 5px; font-size: 11px; font-weight: 600; color: #8ea3d4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-navbrand > div { min-width: 0; }
.fx-bar { position: fixed; top: 0; left: 0; z-index: 30; height: 3px; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--primary-light), var(--glow), var(--mint)); }

.fx-hero { position: relative; z-index: 1; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 30px; min-height: 100vh; min-height: 100svh; max-width: 1280px; margin: 0 auto; padding: 120px 6% 60px; }
.fx-hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; min-width: 0; }
.fx-hero h2 { font-size: clamp(28px, 3.6vw, 48px); font-weight: 800; line-height: 1.18; color: #fff; }
.fx-hero p { max-width: 560px; font-size: 16px; line-height: 1.75; color: #b8c8ee; }
.fx-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.fx-orbit { position: relative; justify-self: center; width: min(520px, 100%); aspect-ratio: 1; }
.fx-orbit .ring { position: absolute; border-radius: 50%; border: 1px dashed rgba(150, 185, 255, .3); }
.fx-orbit .r1 { inset: 6%; animation: fx-rot 60s linear infinite; }
.fx-orbit .r2 { inset: 24%; border-style: solid; border-color: rgba(150, 185, 255, .15); }
.fx-orbit .core { position: absolute; inset: 34%; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, rgba(var(--primary-light-rgb), .38), transparent 70%); }
.fx-orbit .core .fx-logo { width: 100px; height: 100px; }
.fx-orbit .core .fx-logo::before, .fx-orbit .core .fx-logo::after { border-radius: 28px; }
.fx-wheel { position: absolute; inset: 6%; animation: fx-rot 44s linear infinite; }
.fx-sat { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(var(--a)) translateY(calc(min(520px, 88vw) * -.44)) rotate(calc(var(--a) * -1)); }
.fx-sat span { position: absolute; display: grid; place-items: center; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 18px; font-size: 21px; color: #fff; background: rgba(18, 34, 84, .9); border: 1px solid rgba(150, 185, 255, .35);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .35); animation: fx-rot 44s linear infinite reverse; }
.fx-sat span i { color: var(--c); }
.fx-toast { position: absolute; display: flex; align-items: center; gap: 11px; padding: 11px 16px 11px 11px; border-radius: 15px; font-size: 12.5px; font-weight: 700; color: #0f172a; background: rgba(255, 255, 255, .96); box-shadow: 0 18px 44px rgba(0, 0, 0, .35); white-space: nowrap; animation: fx-float 6s ease-in-out infinite; }
.fx-toast i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: #fff; background: var(--c); }
.fx-toast small { display: block; font-weight: 500; font-size: 11px; color: #64748b; }
.fx-toast.t1 { left: -2%; top: 12%; --c: #2563eb; }
.fx-toast.t2 { right: -3%; top: 40%; --c: #059669; animation-delay: -2s; }
.fx-toast.t3 { left: 6%; bottom: 6%; --c: #7c3aed; animation-delay: -4s; }
@keyframes fx-float { 50% { transform: translateY(-14px); } }

.fx-band { position: relative; z-index: 1; }
.fx-section { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 90px 6%; }
.fx-head { max-width: 640px; margin: 0 auto 50px; text-align: center; }
.fx-head .kicker { display: block; margin-bottom: 12px; font-size: 12px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--glow); }
.fx-head h3 { margin-bottom: 12px; font-size: clamp(24px, 3vw, 36px); font-weight: 800; color: #fff; }
.fx-head p { font-size: 15px; line-height: 1.7; color: #a9bce6; }
.fx-journey.wide { max-width: 900px; margin: 0 auto; }
.fx-journey.wide .fx-node { width: 62px; height: 62px; border-radius: 19px; font-size: 23px; }
.fx-journey.wide .fx-track { top: 30px; }
.fx-journey.wide .fx-name { font-size: 13.5px; }

.fx-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.fx-tile { position: relative; overflow: hidden; padding: 28px 26px; border-radius: 22px; background: linear-gradient(165deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025)); border: 1px solid rgba(160, 190, 255, .16);
  transition: transform .3s, border-color .3s, box-shadow .3s; }
.fx-tile::before { content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .35s; background: radial-gradient(260px circle at var(--x, 50%) var(--y, 0%), rgba(var(--primary-light-rgb), .28), transparent 70%); }
.fx-tile:hover { transform: translateY(-8px); border-color: rgba(160, 200, 255, .45); box-shadow: 0 26px 50px rgba(0, 0, 0, .35); }
.fx-tile:hover::before { opacity: 1; }
.fx-tile > * { position: relative; }
.fx-tile .ico { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px; border-radius: 17px; font-size: 23px; color: #fff; background: linear-gradient(140deg, var(--c), color-mix(in srgb, var(--c) 55%, #000)); box-shadow: 0 12px 26px color-mix(in srgb, var(--c) 45%, transparent); transition: transform .35s; }
.fx-tile:hover .ico { transform: rotate(-8deg) scale(1.12); }
.fx-tile h4 { margin-bottom: 9px; font-size: 17px; font-weight: 700; color: #fff; }
.fx-tile p { font-size: 13.5px; line-height: 1.7; color: #a9bce6; }

.fx-why { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 30px; }
.fx-why div { padding-top: 22px; border-top: 2px solid rgba(160, 190, 255, .18); }
.fx-why i { margin-bottom: 14px; font-size: 24px; color: var(--glow); }
.fx-why h4 { margin-bottom: 7px; font-size: 16px; color: #fff; }
.fx-why p { font-size: 13.5px; line-height: 1.7; color: #a9bce6; }

.fx-cta { text-align: center; padding: 60px 30px; border-radius: 30px; overflow: hidden; background: linear-gradient(120deg, var(--primary), #5b3df0 45%, #0e8fb0 80%, var(--primary)); background-size: 260% 100%; animation: fx-shine 12s linear infinite; box-shadow: 0 30px 80px rgba(var(--primary-rgb), .4); }
.fx-cta h3 { margin-bottom: 12px; font-size: clamp(24px, 3vw, 34px); font-weight: 800; color: #fff; }
.fx-cta p { margin-bottom: 26px; font-size: 15px; color: rgba(255, 255, 255, .88); }
.fx-cta .fx-btn { background: #fff; color: var(--primary); box-shadow: 0 14px 34px rgba(0, 0, 0, .25); }
.fx-cta .fx-btn::after { background: linear-gradient(90deg, transparent, rgba(var(--primary-rgb), .2), transparent); }

.fx-foot { position: relative; z-index: 1; padding: 40px 6% 30px; border-top: 1px solid rgba(160, 190, 255, .14); background: rgba(3, 8, 24, .6); }
.fx-foot .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 22px; max-width: 1180px; margin: 0 auto; font-size: 13.5px; color: #a9bce6; }
.fx-foot .row span { display: inline-flex; align-items: center; gap: 9px; }
.fx-foot .legal { max-width: 1180px; margin: 24px auto 0; font-size: 12px; color: #6f83b5; text-align: center; }

/* things that arrive as they come into view */
html.js .reveal { opacity: 0; transform: translateY(38px) scale(.97); transition: opacity .75s ease, transform .75s cubic-bezier(.2, .9, .25, 1.1); transition-delay: calc(var(--d, 0) * 1ms); }
html.js .reveal.in { opacity: 1; transform: none; }
html.js .fx-tile.reveal.in { transition-delay: 0ms; }

/* ── smaller screens ───────────────────────────────── */
@media (max-width: 980px) {
  .fx-login { grid-template-columns: minmax(0, 1fr); align-content: center; gap: 30px; padding-top: 30px; }
  .fx-show { align-items: center; text-align: center; gap: 16px; }
  .fx-brand { align-items: center; gap: 14px; }
  .fx-rotate { display: grid; justify-items: center; }
  .fx-show .fx-journey, .fx-show .fx-pulse { display: none; }
  .fx-hero { grid-template-columns: minmax(0, 1fr); text-align: center; padding-top: 110px; }
  .fx-hero-text { align-items: center; }
  .fx-actions { justify-content: center; }
  .fx-orbit { width: min(420px, 88vw); margin-top: 10px; }
  .fx-sat { transform: rotate(var(--a)) translateY(calc(min(420px, 88vw) * -.44)) rotate(calc(var(--a) * -1)); }
}
@media (max-width: 600px) {
  .fx-card { padding: 32px 22px 24px; border-radius: 24px; }
  .fx-logo { width: 62px; height: 62px; }
  .fx-say { font-size: 19px; }
  .fx-tagline { font-size: 11px; letter-spacing: .24em; }
  .fx-journey, .fx-journey.wide { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 22px; }
  .fx-track { display: none; }
  .fx-section { padding: 60px 20px; }
  .fx-nav { padding-left: 18px; padding-right: 18px; }
  .fx-navbrand small { max-width: 38vw; }
  .fx-toast { font-size: 11px; padding: 8px 11px 8px 8px; }
  .fx-toast i { width: 28px; height: 28px; }
  .fx-toast small { display: none; }
  .fx-sat span { width: 46px; height: 46px; margin: -23px 0 0 -23px; font-size: 17px; border-radius: 14px; }
}
@media (max-height: 760px) and (min-width: 981px) {
  .fx-show { gap: 18px; }
  .fx-brand { gap: 12px; }
  .fx-show .fx-pulse { height: 60px; }
  .fx-card { padding-top: 30px; padding-bottom: 22px; }
  .fx-field { margin-bottom: 13px; }
}

/* people who ask their device for less movement get a still page */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .fx-word span { opacity: 1; transform: none; }
  html.js .reveal { opacity: 1; transform: none; }
  .fx-pulse .live { stroke-dasharray: none; }
  .fx-track span, .fx-dust { display: none; }
}
