/* TaskSnap landing (guests only). Uses the glass tokens from styles.css. */

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

:root { --landing-max: 1180px; --landing-ease: cubic-bezier(0.2, 0.7, 0.2, 1); }

/* ---------- shell ---------- */

.app-shell--public {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: clip;
}

.public-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--landing-max), calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  border: 0;
}

.public-header::before {
  content: "";
  position: absolute;
  inset: 0 -100vw;
  z-index: -1;
  background: color-mix(in srgb, var(--canvas) 62%, transparent);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
}

.public-header__actions { display: flex; gap: 8px; align-items: center; }

.public-main {
  position: relative;
  flex: 1;
  width: min(var(--landing-max), calc(100% - 32px));
  margin: 0 auto;
}

/* ---------- animated backdrop ---------- */

.landing-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.landing-bg__blob {
  position: absolute;
  width: 54vmax;
  height: 54vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}

.landing-bg__blob--red { top: -22vmax; right: -12vmax; background: rgba(220, 31, 46, 0.55); animation: drift-a 24s ease-in-out infinite alternate; }
.landing-bg__blob--blue { bottom: -26vmax; left: -16vmax; background: rgba(79, 92, 255, 0.38); animation: drift-b 30s ease-in-out infinite alternate; }
.landing-bg__blob--warm { top: 38vh; left: 30vw; width: 34vmax; height: 34vmax; background: rgba(255, 140, 66, 0.32); animation: drift-c 36s ease-in-out infinite alternate; }

.landing-bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 22%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 22%, #000 25%, transparent 75%);
  opacity: 0.55;
}

[data-theme="dark"] .landing-bg__blob { opacity: 0.38; }
:root:not([data-theme="dark"]) .landing-bg__blob { opacity: 0.34; }

@keyframes drift-a { to { transform: translate3d(-14vmax, 10vmax, 0) scale(1.15); } }
@keyframes drift-b { to { transform: translate3d(18vmax, -8vmax, 0) scale(1.1); } }
@keyframes drift-c { to { transform: translate3d(-10vmax, -12vmax, 0) scale(0.85); } }

/* ---------- hero ---------- */

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 440px);
  gap: clamp(32px, 6vw, 84px);
  align-items: center;
  padding: clamp(32px, 8vh, 88px) 0 clamp(56px, 10vh, 112px);
}

.landing-hero__copy > * { animation: rise 0.8s var(--landing-ease) both; }
.landing-hero__copy > :nth-child(2) { animation-delay: 0.08s; }
.landing-hero__copy > :nth-child(3) { animation-delay: 0.16s; }
.landing-hero__copy > :nth-child(4) { animation-delay: 0.24s; }
.landing-hero__copy > :nth-child(5) { animation-delay: 0.32s; }
.landing-hero .auth-card { animation: rise 0.9s 0.2s var(--landing-ease) both; }

@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.landing-hero h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(42px, 6.6vw, 96px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.hero-accent {
  display: inline-block;
  padding-bottom: 0.06em;
  color: var(--accent);
  background: linear-gradient(100deg, var(--accent) 0%, #ff7a45 42%, var(--accent) 70%, #ff3d5a 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 7s linear infinite;
}

@keyframes shine { to { background-position: -220% 0; } }

.landing-hero__lead {
  max-width: 540px;
  margin: 26px 0 0;
  color: var(--text-muted);
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.6;
}

.landing-cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.landing-cta-row .btn { min-height: 52px; padding: 0 24px; font-size: 16px; }
.landing-cta-row .btn-primary { box-shadow: 0 10px 30px rgba(220, 31, 46, 0.35); }

.landing-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }

.landing-facts li {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 7px 13px;
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}

.landing-facts i { color: var(--accent); }

/* ---------- auth card ---------- */

.auth-card {
  position: relative;
  width: 100%;
  padding-bottom: 6px;
  overflow: visible;
  scroll-margin-top: 90px;
  box-shadow: 0 30px 80px rgba(24, 24, 27, 0.18);
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1.5px;
  border-radius: inherit;
  background: conic-gradient(from var(--angle), transparent 0 55%, rgba(255, 122, 69, 0.9) 78%, var(--accent) 88%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: spin-border 7s linear infinite;
  pointer-events: none;
}

@keyframes spin-border { to { --angle: 360deg; } }

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 14px 14px 0;
  padding: 4px;
  background: var(--surface-strong);
  border-radius: var(--radius-md);
}

.auth-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}

.auth-tab:hover { color: var(--text); }
.auth-tab.is-active { color: var(--text); background: var(--surface-raised); box-shadow: 0 1px 3px rgba(24, 24, 27, 0.14); }

.auth-form { padding: 22px 22px 18px; }
.auth-form[hidden] { display: none; }
.auth-form:not([hidden]) { animation: rise 0.4s var(--landing-ease) both; }
.auth-form__title { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.auth-form__sub { margin: 6px 0 20px; color: var(--text-muted); font-size: 14px; }
.auth-form .alert { margin-bottom: 16px; }
.auth-field { margin-bottom: 16px; }
.auth-field .form-text { margin-top: 6px; font-size: 12px; }
.auth-field .invalid-feedback { margin-top: 6px; font-size: 13px; }
.auth-form .btn-primary { width: 100%; min-height: 48px; margin-top: 4px; }

.auth-password { position: relative; }
.auth-password .form-control { padding-right: 48px; }

.auth-password__toggle {
  position: absolute;
  top: 4px;
  right: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: var(--text-muted);
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
}

.auth-password__toggle:hover { color: var(--text); background: var(--surface-strong); }
.auth-note { margin: 16px 0 0; color: var(--text-muted); font-size: 13px; line-height: 1.5; }

/* ---------- sections ---------- */

.landing-section { padding: clamp(56px, 10vh, 104px) 0; }

.landing-head { max-width: 680px; margin: 0 0 clamp(28px, 5vh, 52px); }

.landing-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-head h2 {
  margin: 0;
  font-size: clamp(30px, 4.2vw, 52px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.landing-head p:not(.landing-kicker) { margin: 16px 0 0; color: var(--text-muted); font-size: 17px; line-height: 1.6; }

/* reveal on scroll: only hidden once the script has run */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--landing-ease), transform 0.8s var(--landing-ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- product tour ---------- */

.showcase { display: grid; gap: 28px; }

.showcase__tabs {
  position: relative;
  display: inline-flex;
  gap: 4px;
  justify-self: start;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

@property --fill { syntax: "<percentage>"; initial-value: 0%; inherits: true; }

.showcase { --tour-ms: 7000ms; }

.showcase__top { position: relative; display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; justify-content: space-between; }

.showcase__tab {
  position: relative;
  display: grid;
  min-height: 42px;
  padding: 0;
  overflow: hidden;
  color: var(--text-muted);
  background: linear-gradient(90deg, var(--accent) var(--fill), transparent var(--fill));
  border: 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}

.tab-face { display: inline-flex; grid-area: 1 / 1; gap: 8px; align-items: center; padding: 0 18px; white-space: nowrap; }
/* the white copy of the label is revealed exactly as far as the fill has gone */
.tab-face--on { color: #fff; clip-path: inset(0 calc(100% - var(--fill)) 0 0); }

.showcase__tab:hover { color: var(--text); }

.showcase__tab[aria-selected="true"] {
  --fill: 100%;
  color: var(--text);
  background-color: color-mix(in srgb, var(--accent) 10%, var(--surface));
  box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) calc(var(--fill) * 0.35), transparent);
}

.showcase.is-auto .showcase__tab[aria-selected="true"] { animation: tab-fill var(--tour-ms) linear both; }
.showcase.is-paused .showcase__tab[aria-selected="true"] { animation-play-state: paused; }
@keyframes tab-fill { from { --fill: 0%; } to { --fill: 100%; } }

/* desktop / phone switch */
.device-switch {
  position: relative;
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.device-switch__btn {
  position: relative;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  color: var(--text-muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s, background-color 0.2s, box-shadow 0.2s, transform 0.2s var(--landing-ease);
}

.device-switch__btn:hover { color: var(--text); }
.device-switch__btn:active { transform: scale(0.95); }
.device-switch__btn[aria-pressed="true"] { color: var(--text); background: var(--popover); box-shadow: 0 1px 5px rgba(24, 24, 27, 0.2); }

/* until the visitor tries it, the phone button asks for attention */
.showcase:not(.device-seen) .device-switch__btn[aria-pressed="false"] { color: var(--accent); }
.showcase:not(.device-seen) .device-switch__btn[aria-pressed="false"]::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 7px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: dot-pulse 1.8s infinite;
}

@keyframes dot-pulse { from { box-shadow: 0 0 0 0 rgba(220, 31, 46, 0.55); } to { box-shadow: 0 0 0 10px rgba(220, 31, 46, 0); } }

.device-hint {
  position: absolute;
  top: calc(100% + 8px);
  right: 4px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  animation: hint-bob 2.2s ease-in-out infinite;
}

@keyframes hint-bob { 50% { transform: translateY(3px); } }
.showcase.device-seen .device-hint { display: none; }

.showcase__body { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 64px); align-items: center; }

.showcase__copy [role="tabpanel"] { display: none; }
.showcase__copy [role="tabpanel"].is-active { display: block; animation: rise 0.5s var(--landing-ease) both; }
.showcase__copy h3 { margin: 0 0 12px; font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; letter-spacing: -0.03em; }
.showcase__copy p { margin: 0 0 18px; color: var(--text-muted); font-size: 16px; line-height: 1.6; }
.showcase__copy ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.showcase__copy li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; font-size: 15px; line-height: 1.45; }
.showcase__copy li i { margin-top: 2px; color: var(--accent); }

.showcase__stage {
  position: relative;
  display: grid;
  min-height: 560px;
  place-items: center;
  perspective: 1400px;
}

.showcase__stage::before {
  content: "";
  position: absolute;
  inset: 8% 6%;
  background: radial-gradient(closest-side, rgba(220, 31, 46, 0.28), transparent);
  filter: blur(30px);
}

.mock {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  color: #18181B;
  background: #fff;
  border: 1px solid rgba(24, 24, 27, 0.1);
  border-radius: 22px;
  box-shadow: 0 40px 90px rgba(24, 24, 27, 0.28), 0 2px 6px rgba(24, 24, 27, 0.08);
  --d: 0;
  z-index: calc(10 - var(--d));
  opacity: calc(1 - var(--d) * 0.2);
  pointer-events: none;
  transform: translate(calc(var(--d) * 26px), calc(var(--d) * -20px)) scale(calc(1 - var(--d) * 0.06)) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: opacity 0.6s var(--landing-ease), transform 0.7s var(--landing-ease), box-shadow 0.5s;
}

/* the front sheet flies off to the back of the stack */
.mock.is-leaving { opacity: 0; transform: translate(130px, -150px) rotate(6deg) scale(0.98); transition: opacity 0.45s, transform 0.5s cubic-bezier(0.5, 0, 0.9, 0.6); }
.mock.no-anim { transition: none; }


.mock-phone { display: flex; flex-direction: column; width: min(300px, 78vw); height: 520px; overflow: hidden; background: #F6F6F8; border-radius: 34px; }
.mock-phone__status { display: flex; flex: none; align-items: center; justify-content: space-between; padding: 12px 22px 2px; font-size: 11px; }
.mock-phone__status span { display: inline-flex; gap: 5px; }
.mock-phone__home { flex: none; width: 92px; height: 4px; margin: 9px auto 8px; background: #18181B; border-radius: 2px; opacity: 0.75; }
.mock-phone .mock-ui { flex: 1; align-content: start; min-height: 0; gap: 8px; padding: 8px 14px 4px; overflow: hidden; }
.mock-phone .mock-map { flex: 1; min-height: 0; }
.mock-phone .mock-item { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 8px; padding: 9px 6px; }
.mock-phone .mock-item span { min-width: 0; }
.mock-phone .mock-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mock-search { display: flex; gap: 8px; align-items: center; padding: 9px 12px; color: #8C8C95; background: #fff; border: 1px solid #E4E4E7; border-radius: 12px; font-size: 12px; }
.mock-search--float { position: absolute; top: 10px; right: 10px; left: 10px; z-index: 1; color: #18181B; border-color: transparent; box-shadow: 0 6px 18px rgba(24, 24, 27, 0.2); font-weight: 600; }
.mock-chips { display: flex; gap: 6px; }
.mock-chips span { padding: 5px 12px; color: #6B6B73; background: #fff; border: 1px solid #E4E4E7; border-radius: 999px; font-size: 11px; font-weight: 600; }
.mock-chips .is-on { color: #fff; background: #DC1F2E; border-color: #DC1F2E; }
.mock-tabbar { display: flex; flex: none; justify-content: space-around; padding: 9px 8px; color: #8C8C95; background: #fff; border-top: 1px solid #E4E4E7; font-size: 19px; }
.mock-tabbar .is-on { color: #DC1F2E; }
.mock-locate { position: absolute; right: 10px; bottom: 196px; display: grid; width: 36px; height: 36px; place-items: center; color: #DC1F2E; background: #fff; border-radius: 50%; box-shadow: 0 4px 12px rgba(24, 24, 27, 0.25); font-size: 16px; }
.mock-phone .mock-pop { top: auto; right: 0; bottom: 0; left: 0; width: auto; padding: 12px 14px 14px; border-radius: 18px 18px 0 0; }
.mock-btn--sm { display: flex; gap: 6px; align-items: center; justify-content: center; min-height: 34px; margin-top: 8px; font-size: 12px; }

/* the audit form in a browser window */
.mock-form { display: grid; align-content: start; gap: 12px; padding: 16px 18px; font-size: 12px; }
.mock-row3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; }
.mock-row3 > div { display: grid; gap: 6px; }
.mock-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mock-btn--end { justify-self: end; padding: 0 24px; }

.mock-defs { position: absolute; }

/* only one device is on stage */
.showcase__stage[data-device="desktop"] .mock[data-device="phone"],
.showcase__stage[data-device="phone"] .mock[data-device="desktop"] { display: none; }
.showcase__stage.is-swap .mock { animation: swap-in 0.5s var(--landing-ease); }
@keyframes swap-in { from { opacity: 0; scale: 0.94; } }

.mock-ui { display: grid; gap: 10px; padding: 16px 14px; color: #18181B; font-size: 12px; }
.mock-ui__back { color: #8C8C95; font-size: 11px; }
.mock-ui__title { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.mock-label { margin: 2px 0 -4px; font-size: 11px; font-weight: 600; }
.mock-control { padding: 9px 11px; background: #fff; border: 1px solid #D9DCE3; border-radius: 10px; font-weight: 500; }
.mock-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mock-row2 > div { display: grid; gap: 6px; }
.mock-group { padding: 10px; background: #fff; border: 1px solid #E4E4E7; border-radius: 14px; }
.mock-group__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 12px; font-weight: 600; }
.mock-group__head em { padding: 2px 8px; color: #1F9D63; background: #DDF4E8; border-radius: 999px; font-size: 10px; font-style: normal; font-weight: 700; }
.mock-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }

.mock-slots i {
  position: relative;
  display: grid;
  aspect-ratio: 4 / 3;
  place-items: center;
  color: #AEB5C2;
  background: #EEF0F4;
  border: 1px solid #E1E4EA;
  border-radius: 10px;
  font-size: 18px;
  transform: scale(0.4);
  opacity: 0;
}

.mock-slots i::after {
  content: "\F26E";
  position: absolute;
  right: 4px;
  bottom: 4px;
  display: grid;
  width: 15px;
  height: 15px;
  place-items: center;
  color: #fff;
  background: #1F9D63;
  border-radius: 50%;
  font-family: "bootstrap-icons";
  font-size: 9px;
}

.mock.is-active .mock-slots i { animation: pop 0.5s var(--landing-ease) forwards; animation-delay: calc(var(--n) * 0.18s + 0.3s); }
@keyframes pop { 60% { transform: scale(1.08); } to { transform: scale(1); opacity: 1; } }

.mock-btn { display: grid; min-height: 38px; place-items: center; color: #fff; background: #DC1F2E; border-radius: 11px; font-weight: 700; box-shadow: 0 6px 16px rgba(220, 31, 46, 0.3); }

.mock-window { width: min(620px, 94%); overflow: hidden; }
.mock-window__bar { display: flex; gap: 6px; align-items: center; padding: 11px 14px; background: #F1F1F4; border-bottom: 1px solid #E4E4E7; }
.mock-window__bar i { width: 10px; height: 10px; background: #D4D4D8; border-radius: 50%; }
.mock-window__bar span { margin-left: 10px; color: #6B6B73; font-size: 12px; font-weight: 600; }
.mock-window__body { display: grid; grid-template-columns: 56px minmax(0, 1fr); min-height: 330px; }
.mock-nav { display: grid; align-content: start; gap: 10px; padding: 14px 0; justify-items: center; background: #F8F8FA; border-right: 1px solid #E4E4E7; }
.mock-nav i { display: grid; width: 32px; height: 32px; place-items: center; color: #8C8C95; border-radius: 10px; font-size: 15px; }
.mock-nav i.is-on { color: #DC1F2E; background: #fff; box-shadow: 0 1px 3px rgba(24, 24, 27, 0.12); }

.mock-list { display: grid; align-content: start; padding: 10px 12px; }
.mock-list__head { padding: 4px 6px 10px; color: #8C8C95; font-size: 11px; }

.mock-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px 8px;
  border-bottom: 1px solid #EEEEF1;
  font-size: 12px;
  opacity: 0;
  transform: translateX(14px);
}

.mock.is-active .mock-item { animation: slide-in 0.5s var(--landing-ease) forwards; animation-delay: calc(var(--n) * 0.1s + 0.15s); }
@keyframes slide-in { to { opacity: 1; transform: none; } }
.mock-item.is-selected { background: #FFF4F5; border-radius: 10px; }
.mock-item b { color: #6B6B73; font-size: 11px; }
.mock-item span { display: grid; font-weight: 600; }
.mock-item small { color: #8C8C95; font-weight: 400; }
.mock-item em { padding: 3px 9px; border-radius: 999px; font-size: 10px; font-style: normal; font-weight: 700; }
.mock-item .st-open { color: #9A6A00; background: #FFF1CC; }
.mock-item .st-done { color: #1F9D63; background: #DDF4E8; }

.mock-map { position: relative; min-height: 360px; background: #EAEFE9; }
.mock-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.mock-pin {
  position: absolute;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: #6B6B73;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  font-size: 13px;
  font-weight: 700;
  transform: scale(0);
}

.mock-pin.is-hot { background: #DC1F2E; }
.mock.is-active .mock-pin { animation: pin-drop 0.55s var(--landing-ease) forwards; animation-delay: calc(var(--n) * 0.2s + 0.2s); }
@keyframes pin-drop { 60% { transform: scale(1.2); } to { transform: scale(1); } }
.mock-pin--main::before { content: ""; position: absolute; inset: -8px; border: 2px solid rgba(220, 31, 46, 0.45); border-radius: 50%; animation: ripple 2s infinite; }
@keyframes ripple { from { transform: scale(0.7); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }

.mock-pop {
  position: absolute;
  top: 12%;
  right: 5%;
  width: 188px;
  padding: 11px 12px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(24, 24, 27, 0.25);
  font-size: 11px;
  opacity: 0;
  transform: translateY(10px);
}

.mock.is-active .mock-pop { animation: slide-in 0.5s 1.1s var(--landing-ease) forwards; }
.mock-pop b { display: block; margin-bottom: 2px; font-size: 12px; }
.mock-pop small { display: block; margin-bottom: 7px; color: #8C8C95; }
.mock-pop p { display: flex; gap: 8px; align-items: center; margin: 0; padding: 4px 0; border-top: 1px solid #EEEEF1; }
.mock-pop p span { color: #DC1F2E; font-weight: 700; }

/* ---------- bento ---------- */

.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }

.bento__card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: 270px;
  padding: 28px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 26px;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.bento__card--audit { grid-column: span 4; flex-direction: row; align-items: stretch; }
.bento__card--exchange, .bento__card--map, .bento__card--search, .bento__card--history { grid-column: span 2; }
.bento__card--bot { grid-column: span 6; flex-direction: row; align-items: center; }
.bento__text { position: relative; z-index: 1; max-width: 340px; }
.bento__text h3 { margin: 0 0 10px; font-size: 22px; font-weight: 700; letter-spacing: -0.025em; }
.bento__text p { margin: 0; color: var(--text-muted); font-size: 15px; line-height: 1.55; }
.bento__art { position: relative; flex: 1; min-height: 130px; }

.big-num { position: absolute; right: 0; bottom: -20px; color: var(--text); font-size: clamp(110px, 15vw, 190px); font-weight: 800; line-height: 1; letter-spacing: -0.06em; }
.big-num b { color: var(--accent); }

.float-photo { position: absolute; width: 74px; height: 56px; border: 3px solid #fff; border-radius: 12px; box-shadow: 0 10px 24px rgba(24, 24, 27, 0.25); animation: float 6s ease-in-out infinite; }
.float-photo.p1 { top: 4%; left: 6%; background: linear-gradient(135deg, #37506e, #1d2b3d); transform: rotate(-8deg); }
.float-photo.p2 { top: 36%; left: 34%; background: linear-gradient(135deg, #7c5e4a, #3d2c22); transform: rotate(5deg); animation-delay: -2s; }
.float-photo.p3 { top: 6%; left: 52%; background: linear-gradient(135deg, #e9edf2, #b9c3ce); transform: rotate(10deg); animation-delay: -4s; }
@keyframes float { 50% { translate: 0 -10px; } }

.stack { position: relative; height: 120px; }
.stack div { position: absolute; right: 0; left: 0; padding: 12px 14px; background: var(--surface-raised); border: 1px solid var(--line); border-radius: 14px; font-size: 13px; font-weight: 600; box-shadow: 0 6px 18px rgba(24, 24, 27, 0.1); }
.stack div:nth-child(1) { top: 0; transform: scale(0.88); opacity: 0.5; }
.stack div:nth-child(2) { top: 22px; transform: scale(0.94); opacity: 0.8; }
.stack div:nth-child(3) { top: 46px; color: #fff; background: var(--accent); border-color: transparent; animation: nudge 3.4s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(-5px); } }

.pins { position: relative; height: 120px; }
.pins i { position: absolute; display: grid; width: 38px; height: 38px; place-items: center; color: #fff; background: #6B6B73; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25); font-size: 14px; font-style: normal; font-weight: 700; }
.pins i:nth-child(1) { top: 10px; left: 8%; }
.pins i:nth-child(2) { top: 56px; left: 38%; background: var(--accent); animation: float 4s ease-in-out infinite; }
.pins i:nth-child(3) { top: 18px; left: 66%; }
.pins i:nth-child(2)::before { content: ""; position: absolute; inset: -9px; border: 2px solid rgba(220, 31, 46, 0.4); border-radius: 50%; animation: ripple 2.2s infinite; }

.searchbar { display: flex; gap: 10px; align-items: center; padding: 11px 14px; background: var(--surface-raised); border: 1px solid var(--line-strong); border-radius: 14px; font-size: 14px; }
.searchbar i { color: var(--text-muted); }
.searchbar .typed { flex: 1; overflow: hidden; white-space: nowrap; border-right: 2px solid var(--accent); width: 0; animation: type 5s steps(14) infinite, caret 0.8s step-end infinite; }
.searchbar kbd { padding: 2px 7px; color: var(--text-muted); background: var(--surface-strong); border: 1px solid var(--line); border-radius: 6px; font-family: var(--font-sans); font-size: 11px; }
@keyframes type { 0%, 8% { width: 0; } 45%, 85% { width: 14ch; } 100% { width: 0; } }
@keyframes caret { 50% { border-color: transparent; } }

.timeline { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.timeline li { position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: center; font-size: 13px; }
.timeline li i { display: grid; width: 26px; height: 26px; place-items: center; color: var(--accent); background: var(--accent-soft); border-radius: 50%; font-size: 12px; }
.timeline li span { display: grid; font-weight: 600; }
.timeline li small { color: var(--text-muted); font-weight: 400; }

.bot-chat { display: grid; flex: 1; gap: 8px; max-width: 380px; margin-left: auto; }
.bubble { max-width: 86%; padding: 10px 14px; background: var(--surface-raised); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; font-size: 14px; }
.bubble--me { justify-self: end; color: #fff; background: var(--accent); border-color: transparent; border-radius: 16px 16px 4px 16px; }
.bento__card--bot .bubble { animation: rise 0.6s var(--landing-ease) both; }
.bento__card--bot .bubble:nth-child(2) { animation-delay: 0.5s; }
.bento__card--bot .bubble:nth-child(3) { animation-delay: 1s; }

/* ---------- steps ---------- */

.landing-steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }

.landing-steps::before {
  content: "";
  position: absolute;
  top: 38px;
  right: 12%;
  left: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(220, 31, 46, 0.1));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 1.4s 0.2s var(--landing-ease);
}

.landing-steps.is-in::before, html:not(.js) .landing-steps::before { transform: scaleX(1); }

.landing-step { position: relative; padding: 22px; background: var(--surface); border: 1px solid var(--card-border); border-radius: 22px; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.step-num { position: relative; display: inline-grid; width: 42px; height: 42px; place-items: center; color: #fff; background: var(--accent); border-radius: 50%; font-size: 15px; font-weight: 700; box-shadow: 0 0 0 6px var(--accent-soft); }
.step-num b { grid-area: 1 / 1; font-weight: 700; transition: opacity 0.25s, transform 0.3s; }
.step-num i { grid-area: 1 / 1; font-size: 22px; opacity: 0; transform: scale(0.4) rotate(-20deg); transition: opacity 0.25s, transform 0.45s cubic-bezier(0.3, 1.5, 0.5, 1); }
.landing-step h3 { margin: 18px 0 6px; font-size: 18px; font-weight: 700; }
.landing-step p { margin: 0; color: var(--text-muted); font-size: 14px; line-height: 1.55; }

/* ---------- closing call to action ---------- */

.landing-final {
  position: relative;
  margin: clamp(24px, 6vh, 64px) 0 0;
  padding: clamp(40px, 8vw, 88px) clamp(24px, 5vw, 64px);
  overflow: hidden;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 32px;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.landing-final::before {
  content: "";
  position: absolute;
  inset: -40% 10% auto;
  height: 80%;
  background: radial-gradient(closest-side, rgba(220, 31, 46, 0.3), transparent);
  filter: blur(40px);
  pointer-events: none;
}

.landing-final > * { position: relative; }
.landing-final h2 { max-width: 760px; margin: 0 auto; font-size: clamp(30px, 5vw, 60px); font-weight: 700; line-height: 1.04; letter-spacing: -0.04em; text-wrap: balance; }
.landing-final p { max-width: 520px; margin: 18px auto 0; color: var(--text-muted); font-size: 17px; line-height: 1.6; }
.landing-final .btn { min-height: 56px; margin-top: 30px; padding: 0 32px; font-size: 17px; box-shadow: 0 12px 34px rgba(220, 31, 46, 0.4); }

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .landing-hero { grid-template-columns: 1fr; gap: 32px; padding-top: 16px; }
  .showcase__body { grid-template-columns: 1fr; }
  .showcase__stage { min-height: 560px; }
  .bento__card--audit, .bento__card--bot { grid-column: span 6; }
  .bento__card--exchange, .bento__card--map, .bento__card--search, .bento__card--history { grid-column: span 3; }
  .landing-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .landing-steps::before { display: none; }
}

@media (max-width: 760px) {
  .public-header { width: calc(100% - 24px); min-height: 60px; }
  .public-header .btn-primary { min-height: 38px; padding: 8px 12px; font-size: 13px; }
  .public-header__actions .btn-quiet { display: none; }
  .public-main { width: calc(100% - 24px); }
  .landing-facts { display: none; }
  .landing-cta-row .btn { flex: 1 1 100%; }
  .bento__card--exchange, .bento__card--map, .bento__card--search, .bento__card--history { grid-column: span 6; }
  .bento__card--audit, .bento__card--bot { flex-direction: column; align-items: stretch; }
  .big-num { position: relative; right: auto; bottom: auto; align-self: flex-end; margin-top: -10px; }
  .bot-chat { max-width: none; margin-left: 0; }
  .showcase__tabs { justify-self: stretch; overflow-x: auto; }
  .showcase__tab { flex: 1; justify-content: center; gap: 6px; padding: 0 10px; }
  .showcase__tab span { font-size: 13px; }
}

@media (max-width: 560px) {
  .landing-steps { grid-template-columns: 1fr; }
  .auth-form { padding: 20px 16px 14px; }
  .auth-tabs { margin: 12px 12px 0; }
  .showcase__stage { min-height: 560px; }
  .mock-window__body { grid-template-columns: 44px minmax(0, 1fr); }
  .mock-pop { width: 150px; right: 3%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .mock-slots i, .mock-item, .mock-pin, .mock-pop { opacity: 1; transform: none; }
  .searchbar .typed { width: 14ch; }
  .landing-steps::before { transform: scaleX(1); }
}

/* ---------- hover and press motion ---------- */

/*
 * Cards: light enters from the card's own frame (landing.js). Only the hovered card reacts.
 * --mx / --my: cursor position inside the card.
 * --gt / --gb / --gl / --gr: how strongly the top / bottom / left / right edge glows.
 * The weights follow the cursor smoothly, so moving through the middle cross-fades top and bottom
 * (both are lit, one a little more) instead of the light jumping from one edge to the other.
 */
@property --mx { syntax: "<length-percentage>"; initial-value: 50%; inherits: true; }
@property --my { syntax: "<length-percentage>"; initial-value: 0%; inherits: true; }
@property --gt { syntax: "<number>"; initial-value: 0; inherits: true; }
@property --gb { syntax: "<number>"; initial-value: 0; inherits: true; }
@property --gl { syntax: "<number>"; initial-value: 0; inherits: true; }
@property --gr { syntax: "<number>"; initial-value: 0; inherits: true; }

.bento__card,
.landing-step {
  position: relative;
  overflow: hidden;
  --edge: color-mix(in srgb, var(--accent) 78%, #fff);
}

.js .bento__card.reveal,
.bento__card,
.landing-step {
  transition:
    opacity 0.8s var(--landing-ease),
    transform 0.5s var(--landing-ease),
    box-shadow 0.5s var(--landing-ease),
    border-color 0.3s,
    --mx 0.2s var(--landing-ease),
    --my 0.2s var(--landing-ease),
    --gt 0.3s var(--landing-ease),
    --gb 0.3s var(--landing-ease),
    --gl 0.3s var(--landing-ease),
    --gr 0.3s var(--landing-ease);
}

/* first frame of a hover: the light is already under the cursor's column/row, no glide from the old spot */
.js .bento__card.reveal.is-snap,
.bento__card.is-snap,
.landing-step.is-snap {
  transition:
    opacity 0.8s var(--landing-ease),
    transform 0.5s var(--landing-ease),
    box-shadow 0.5s var(--landing-ease),
    border-color 0.3s,
    --mx 0s,
    --my 0s,
    --gt 0.3s var(--landing-ease),
    --gb 0.3s var(--landing-ease),
    --gl 0.3s var(--landing-ease),
    --gr 0.3s var(--landing-ease);
}

/* the frame: thin lit segments, one per edge, each as strong as its weight */
.bento__card::before,
.landing-step::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 1.5px;
  border-radius: inherit;
  background:
    radial-gradient(210px circle at var(--mx) 0%, color-mix(in srgb, var(--edge) calc(var(--gt) * 100%), transparent), transparent 74%),
    radial-gradient(210px circle at var(--mx) 100%, color-mix(in srgb, var(--edge) calc(var(--gb) * 100%), transparent), transparent 74%),
    radial-gradient(210px circle at 0% var(--my), color-mix(in srgb, var(--edge) calc(var(--gl) * 100%), transparent), transparent 74%),
    radial-gradient(210px circle at 100% var(--my), color-mix(in srgb, var(--edge) calc(var(--gr) * 100%), transparent), transparent 74%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}

/* ... and light that starts at the frame and fades towards the middle of the card */
.bento__card::after,
.landing-step::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(320px 170px at var(--mx) 0%, color-mix(in srgb, rgb(220 31 46 / 0.16) calc(var(--gt) * 100%), transparent), transparent 72%),
    radial-gradient(320px 170px at var(--mx) 100%, color-mix(in srgb, rgb(220 31 46 / 0.16) calc(var(--gb) * 100%), transparent), transparent 72%),
    radial-gradient(170px 320px at 0% var(--my), color-mix(in srgb, rgb(220 31 46 / 0.16) calc(var(--gl) * 100%), transparent), transparent 72%),
    radial-gradient(170px 320px at 100% var(--my), color-mix(in srgb, rgb(220 31 46 / 0.16) calc(var(--gr) * 100%), transparent), transparent 72%);
  pointer-events: none;
}

.landing-steps::before { z-index: 0; }

@media (hover: hover) {
  .bento__card.is-in:hover,
  html:not(.js) .bento__card:hover {
    z-index: 3;
    box-shadow: 0 22px 54px rgba(24, 24, 27, 0.2);
    transform: scale(1.02);
  }

  .bento__card.is-in:active { transform: scale(1.005); transition-duration: 0.12s; }
}

/* buttons: lift on hover, sink on press, a sheen runs over the primary one */
.app-shell--public :is(.btn, .auth-tab, .showcase__tab, .auth-password__toggle, .theme-toggle) {
  transition:
    transform 0.22s var(--landing-ease),
    box-shadow 0.3s var(--landing-ease),
    background-color 0.2s,
    border-color 0.2s,
    color 0.2s,
    --fill 0.6s var(--landing-ease);
}

.app-shell--public .btn { position: relative; overflow: hidden; }

.app-shell--public .btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.38) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 0.7s var(--landing-ease);
  pointer-events: none;
}

@media (hover: hover) {
  .app-shell--public .btn:hover { transform: translateY(-2px); }
  .app-shell--public .btn-primary:hover { box-shadow: 0 16px 38px rgba(220, 31, 46, 0.5); }
  .app-shell--public .btn-primary:hover::after { transform: translateX(130%); }
  .app-shell--public .btn-quiet:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line-strong)); box-shadow: 0 10px 26px rgba(24, 24, 27, 0.16); }
  .app-shell--public .showcase__tab:hover:not([aria-selected="true"]) { background: var(--surface-strong); transform: translateY(-1px); }
  .app-shell--public .theme-toggle:hover, .app-shell--public .auth-password__toggle:hover { transform: scale(1.1); }
}

.app-shell--public .btn:active,
.app-shell--public .auth-tab:active,
.app-shell--public .showcase__tab:active { transform: translateY(0) scale(0.96); transition-duration: 0.08s; }
.app-shell--public .theme-toggle:active, .app-shell--public .auth-password__toggle:active { transform: scale(0.88); transition-duration: 0.08s; }
.app-shell--public .btn-primary:active { box-shadow: 0 4px 12px rgba(220, 31, 46, 0.4); }

/* ---------- stacks: process steps and product tour ---------- */

@property --p { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

/* process steps as a stack: the front card fills its ring, turns green and goes to the back */
.landing-steps.is-stack { display: block; height: 280px; --card-w: 280px; }
.landing-steps.is-stack::before { display: none; }

.landing-steps.is-stack .landing-step {
  position: absolute;
  top: 0;
  left: var(--stack-x, 50%);
  width: var(--card-w);
  height: var(--card-h, 200px);
  translate: -50% 0;
  background: var(--popover);
  transform-origin: 50% 0;
  transform: translateY(calc(var(--d, 0) * 20px)) scale(calc(1 - var(--d, 0) * 0.055));
  opacity: calc(1 - var(--d, 0) * 0.14);
  z-index: calc(10 - var(--d, 0));
  box-shadow: 0 18px 40px rgba(24, 24, 27, 0.14);
  transition: transform 0.65s var(--landing-ease), left 0.65s var(--landing-ease), opacity 0.5s, box-shadow 0.4s, border-color 0.3s;
}

.landing-steps.is-stack .landing-step.no-anim { transition: none; }
.landing-steps.is-stack .landing-step.is-leaving { opacity: 0; transform: translate(90px, -100px) rotate(7deg); transition: transform 0.5s cubic-bezier(0.5, 0, 0.9, 0.6), opacity 0.45s; }

.landing-steps.is-stack .step-num { margin: 6px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 10%, transparent); transition: background-color 0.35s; }

.landing-steps.is-stack .step-num::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: var(--accent);
  transition: background-color 0.35s;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px)), conic-gradient(from -90deg, #000 var(--p), transparent 0);
  -webkit-mask-composite: source-in;
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px)), conic-gradient(from -90deg, #000 var(--p), transparent 0);
  mask-composite: intersect;
}

@keyframes step-ring { to { --p: 360deg; } }
.landing-steps.is-stack .landing-step.is-filling .step-num::before { animation: step-ring 2.5s linear forwards; }

.landing-steps.is-stack .landing-step.is-done { border-color: color-mix(in srgb, #1F9D63 45%, var(--card-border)); box-shadow: 0 18px 44px rgba(31, 157, 99, 0.2); }
.landing-steps.is-stack .landing-step.is-done .step-num { background: #1F9D63; }
.landing-steps.is-stack .landing-step.is-done .step-num::before { background: #1F9D63; }
.landing-steps.is-stack .landing-step.is-done .step-num b { opacity: 0; transform: scale(0.4); }
.landing-steps.is-stack .landing-step.is-done .step-num i { opacity: 1; transform: none; }

/* hovering the stack lays the cards out in a row, every ring complete */
.landing-steps.is-stack.is-spread .landing-step {
  z-index: 5;
  opacity: 1;
  transform: translateX(calc((var(--i) - 1.5) * (var(--card-w) + 18px)));
  box-shadow: 0 22px 50px rgba(24, 24, 27, 0.16);
}


/* tour: hovering the stage lays the three sheets out in a row (sizes are measured in landing.js) */
.showcase__stage.is-spread .mock {
  z-index: 5;
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
  transform: translate(var(--rx, 0px), 0) scale(var(--rs, 0.5));
}

.showcase__stage.is-spread .mock:hover { box-shadow: 0 30px 70px rgba(220, 31, 46, 0.3), 0 2px 6px rgba(24, 24, 27, 0.08); }

.showcase__stage.is-spread :is(.mock-slots i, .mock-item, .mock-pin, .mock-pop) { opacity: 1; transform: none; animation: none; }

/* ---------- how it works: a step rail beside the stack ---------- */

.how__rail { display: none; }

.how:has(.landing-steps.is-stack) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; min-height: 320px; }
.how:has(.landing-steps.is-stack) > .landing-steps { grid-area: 1 / 1 / 2 / 3; pointer-events: none; --stack-x: 76%; }
.how:has(.landing-steps.is-stack) > .landing-steps .landing-step { pointer-events: auto; }
.how:has(.landing-steps.is-stack) > .landing-steps.is-spread { --stack-x: 50%; }

.how:has(.landing-steps.is-stack) .how__rail {
  position: relative;
  z-index: 2;
  display: block;
  grid-area: 1 / 1;
  padding-right: 24px;
  transition: opacity 0.4s, transform 0.5s var(--landing-ease);
}

.how:has(.landing-steps.is-spread) .how__rail { opacity: 0; transform: translateX(-24px); pointer-events: none; }

.how__lead { max-width: 24ch; margin: 0 0 26px; font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; line-height: 1.2; letter-spacing: -0.03em; }

.how__list { position: relative; display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; }
.how__list::before { content: ""; position: absolute; top: 20px; bottom: 20px; left: 19px; width: 2px; background: var(--line-strong); }

.how__item { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: center; opacity: 0.5; transition: opacity 0.4s; }
.how__item strong { display: block; font-size: 16px; }
.how__item small { color: var(--text-muted); font-size: 14px; }

.how__dot {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--text-muted);
  background: var(--popover);
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.3s, background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.how__dot b, .how__dot i { grid-area: 1 / 1; transition: opacity 0.25s, transform 0.4s cubic-bezier(0.3, 1.5, 0.5, 1); }
.how__dot i { font-size: 20px; opacity: 0; transform: scale(0.4) rotate(-20deg); }

.how__item.is-current, .how__item.is-done { opacity: 1; }
.how__item.is-current .how__dot { color: #fff; background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); }
.how__item.is-done .how__dot { color: #fff; background: #1F9D63; border-color: #1F9D63; }
.how__item.is-done .how__dot b { opacity: 0; transform: scale(0.4); }
.how__item.is-done .how__dot i { opacity: 1; transform: none; }

/* ---------- invitation page ---------- */

.invite-page { display: grid; place-items: center; min-height: calc(100vh - 230px); padding: 24px 0 48px; }
.invite-page .auth-card { width: min(440px, 100%); }
