@font-face {
  font-family: 'Inter';
  src: url('/assets/inter.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #F4F7FC;
  --surface: #FFFFFF;
  --ink: #101828;
  --muted: #667085;
  --faint: #98A2B3;
  --line: #EAECF0;
  --accent: #5B5BF7;
  --accent-deep: #4747E8;
  --accent-tint: #EEEEFE;
  --green: #12B76A;
  --green-deep: #0E9355;
  --green-tint: #E7F8F0;
  --red: #F04438;
  --red-tint: #FEECEB;
  --amber: #F79009;
  --amber-tint: #FEF4E6;
  --sky: #E8F3FE;
  --lilac: #F1EBFE;
  --mint: #E6F9EF;
  --peach: #FEEEE6;
  --sand: #FBF3DC;
  --r: 20px;
  --ri: 14px;
  --shadow: 0 1px 2px rgb(16 24 40 / 0.07), 0 10px 28px rgb(16 24 40 / 0.09);
  --shadow-lg: 0 4px 12px rgb(16 24 40 / 0.08), 0 24px 60px rgb(16 24 40 / 0.16);
  --spring: cubic-bezier(0.34, 1.4, 0.4, 1);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

body[data-page="home"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 820px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(46% 42% at 16% 26%, rgb(91 91 247 / 0.16), transparent 72%),
    radial-gradient(38% 34% at 84% 12%, rgb(18 183 106 / 0.13), transparent 72%),
    radial-gradient(40% 36% at 70% 62%, rgb(247 144 9 / 0.11), transparent 72%);
}

#main, main.auth-shell { flex: 1; }

.foot { margin-top: auto; }

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

input, select, textarea {
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--ri);
  padding: 12px 14px;
  width: 100%;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input::placeholder { color: var(--faint); }

input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

::selection { background: rgb(91 91 247 / 0.22); }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}

.page-wrap { padding-top: 22px; padding-bottom: 56px; }
.page-wrap.narrow { max-width: 660px; }

h1, h2, h3, h4 { line-height: 1.18; letter-spacing: -0.02em; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: var(--accent-tint);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 14px;
}

.section-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: 26px;
}

.skel {
  background: linear-gradient(100deg, #EEF0F3 40%, #F7F8FA 50%, #EEF0F3 60%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
}

@keyframes shimmer {
  from { background-position: 120% 0; }
  to { background-position: -80% 0; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  border-radius: 999px;
  padding: 12px 22px;
  transition: transform 0.18s var(--spring), background 0.15s, box-shadow 0.15s, opacity 0.15s;
  white-space: nowrap;
}

.btn:active { transform: scale(0.96); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgb(91 91 247 / 0.32);
}

.btn-primary:hover { background: var(--accent-deep); }

.btn-secondary {
  background: var(--accent-tint);
  color: var(--accent-deep);
}

.btn-secondary:hover { background: #E2E2FD; }

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover { border-color: #D5DAE1; }

.btn-green {
  background: var(--green);
  color: #fff;
  box-shadow: 0 4px 14px rgb(18 183 106 / 0.3);
}

.btn-green:hover { background: var(--green-deep); }

.btn-danger { background: var(--red-tint); color: var(--red); }

.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-block { width: 100%; }

.btn[disabled] { opacity: 0.5; pointer-events: none; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

.pill { transition: background 0.35s, color 0.35s; }
.pill.st-invited { background: var(--amber-tint); color: #B25E04; }
.pill.st-authorized { background: var(--green-tint); color: var(--green-deep); }
.pill.st-charged { background: var(--accent-tint); color: var(--accent-deep); }
.pill.st-declined { background: var(--red-tint); color: var(--red); }
.pill.st-ready { background: var(--amber-tint); color: #B25E04; }

.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 800;
  flex: none;
  user-select: none;
}

img.avatar { object-fit: cover; background: #E4E7EB; }

.avatar-stack { display: flex; align-items: center; }
.avatar-stack .avatar { border: 2px solid var(--surface); margin-left: -8px; }
.avatar-stack .avatar:first-child { margin-left: 0; }
.avatar-more { background: #F2F4F7; color: var(--muted); }

.tint-sky { background: var(--sky); }
.tint-lilac { background: var(--lilac); }
.tint-mint { background: var(--mint); }
.tint-peach { background: var(--peach); }
.tint-sand { background: var(--sand); }

.card {
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}

#chrome-top {
  position: sticky;
  top: 0;
  z-index: 50;
}

.hdr {
  background: transparent;
  transition: background 0.25s, box-shadow 0.25s, backdrop-filter 0.25s;
}

.hdr.scrolled {
  background: rgb(244 247 252 / 0.82);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: 0 8px 26px rgb(16 24 40 / 0.06);
}

.hdr-in {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 60px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.logo-mark { width: 28px; height: 28px; flex: none; }
.logo-mark svg { width: 100%; height: 100%; }

.demo-tag {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-tint);
  padding: 2.5px 7px;
  border-radius: 6px;
  transform: translateY(-6px);
}

.hdr-nav { display: none; align-items: center; gap: 4px; margin-left: 10px; }

.hdr-link {
  position: relative;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 10px;
  transition: color 0.15s, background 0.15s;
}

.hdr-link:hover { color: var(--ink); background: #F2F4F7; }
.hdr-link.on { color: var(--ink); }

.dot-slot {
  position: absolute;
  top: 7px;
  right: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.dot-slot.live { background: var(--red); }

.hdr-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }

body:has(.bnav) .hdr-right .btn { display: none; }

@media (min-width: 720px) {
  body:has(.bnav) .hdr-right .btn { display: inline-flex; }
}

.chip-wrap { position: relative; }

.account-chip {
  display: flex;
  border-radius: 50%;
  transition: transform 0.18s var(--spring), box-shadow 0.15s;
}

.account-chip:hover { transform: scale(1.06); box-shadow: 0 0 0 4px var(--accent-tint); }

.chip-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 210px;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.15s, transform 0.18s var(--spring);
}

.chip-wrap.open .chip-menu { opacity: 1; transform: none; pointer-events: auto; }

.chip-who {
  display: flex;
  flex-direction: column;
  padding: 10px 12px 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}

.chip-who span { color: var(--muted); font-size: 13px; }

.chip-item {
  display: block;
  width: 100%;
  text-align: left;
  font-weight: 600;
  font-size: 14.5px;
  padding: 10px 12px;
  border-radius: 10px;
}

.chip-item:hover { background: #F2F4F7; }

.bnav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  background: rgb(244 247 252 / 0.9);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: 0 -8px 26px rgb(16 24 40 / 0.06);
  padding: 6px 8px calc(8px + env(safe-area-inset-bottom));
}

body:has(.bnav) { padding-bottom: 92px; }

.bnav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 0 4px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 700;
}

.bnav-item.on { color: var(--accent); }

.bnav-ic { position: relative; display: inline-flex; }

.bnav-ic.has-dot::after {
  content: '';
  position: absolute;
  top: -2px;
  right: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid #fff;
}

.bnav-new .bnav-ic {
  background: var(--accent);
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  margin-top: -22px;
  box-shadow: 0 6px 16px rgb(91 91 247 / 0.4);
  border: 4px solid var(--bg);
  transition: transform 0.18s var(--spring);
}

.bnav-new:active .bnav-ic { transform: scale(0.92); }
.bnav-new .bnav-label { color: var(--faint); }

.foot { margin-top: 60px; }

.foot-in {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 20px;
  padding-top: 44px;
  padding-bottom: 30px;
}

.foot-brand { grid-column: 1 / -1; }

.foot-brand .logo { margin-bottom: 12px; }
.foot-tag { font-weight: 600; }
.foot-note { color: var(--muted); font-size: 13px; margin-top: 6px; max-width: 320px; }

.foot-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--faint); margin-bottom: 12px; }
.foot-col a { display: block; color: var(--muted); font-weight: 600; font-size: 14.5px; padding: 5px 0; }
.foot-col a:hover { color: var(--ink); }

.foot-base {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding-bottom: 30px;
  color: var(--faint);
  font-size: 13px;
}

.hero { position: relative; padding: 46px 0 64px; }

.hero-inner { position: relative; display: grid; grid-template-columns: 1fr; gap: 44px; align-items: center; }
.hero-inner > * { min-width: 0; }

.hero-title {
  font-size: clamp(38px, 9vw, 62px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.rotate-wrap { display: inline-block; }

.rotate-word {
  display: inline-block;
  color: var(--accent);
  background: var(--accent-tint);
  border-radius: 14px;
  padding: 0 12px 4px;
  transition: opacity 0.22s, transform 0.28s var(--spring);
}

.rotate-word.swap { opacity: 0; transform: translateY(14px); }

.hero-sub { color: var(--muted); font-size: 17px; max-width: 480px; margin-top: 18px; text-wrap: pretty; }

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

.trust-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
}

.trust-row li { display: inline-flex; align-items: center; gap: 7px; }
.trust-ic { font-size: 15px; }

.hero-demo { position: relative; }

.demo-card {
  position: relative;
  background: var(--surface);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  padding: 22px 22px 30px;
  max-width: 420px;
  margin: 0 auto;
}

.demo-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }

.demo-emoji {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex: none;
}

.demo-card-head h3 { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.demo-card-head p { color: var(--muted); font-size: 13px; }

.demo-max {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 14px 0 6px;
}

.demo-max { margin-bottom: 14px; }
.demo-max strong { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.demo-max { flex-wrap: wrap; }
.demo-max span { color: var(--muted); font-size: 14px; font-weight: 700; }

.demo-pool {
  background: var(--accent-tint);
  color: var(--accent-deep) !important;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12.5px !important;
  font-weight: 800 !important;
}
.demo-explain { color: var(--muted); font-size: 12.5px; line-height: 1.45; margin-bottom: 14px; }

.prog { height: 8px; border-radius: 999px; background: #F2F4F7; overflow: hidden; }

.prog-fill {
  position: relative;
  overflow: hidden;
  height: 100%;
  border-radius: 999px;
  background: var(--green);
  transition: width 0.7s var(--spring), background 0.45s ease;
}

.prog-fill.tone-good { background: var(--green); }
.prog-fill.tone-done { background: var(--accent); }

.prog-fill.working::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.6), transparent);
  transform: translateX(-100%);
  animation: sweep 1.9s infinite ease-in-out;
}

@keyframes sweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(220%); }
}

.wait-dots { display: inline-flex; align-items: center; gap: 3px; margin-left: 3px; }

.wait-dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.45;
  animation: waitbounce 1.15s infinite ease-in-out;
}

.wait-dots i:nth-child(2) { animation-delay: 0.16s; }
.wait-dots i:nth-child(3) { animation-delay: 0.32s; }

@keyframes waitbounce {
  0%, 62%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-3px); opacity: 1; }
}

.demo-row.waiting .ava-slot { animation: waitglow 2.4s infinite ease-in-out; }

@keyframes waitglow {
  0%, 100% { opacity: 0.72; }
  50% { opacity: 1; }
}

.prog-label { display: flex; justify-content: space-between; color: var(--muted); font-size: 12.5px; font-weight: 600; margin-top: 7px; }

.demo-rows { margin-top: 14px; display: flex; flex-direction: column; }

.member-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
}

.member-row + .member-row { border-top: 1px solid #F4F5F7; }

.member-names { min-width: 0; flex: 1; }
.member-names strong { display: block; font-size: 14.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member-names span { display: block; color: var(--faint); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.member-amt { font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; }

.member-row.flip .pill { animation: pillpop 0.5s var(--spring); }

@keyframes pillpop {
  0% { transform: scale(0.6); }
  100% { transform: scale(1); }
}

.demo-row { transition: opacity 0.4s ease, transform 0.4s var(--spring); }
.demo-row.hidden { opacity: 0; transform: translateY(8px); }

.demo-row .ava-slot,
.demo-row .name-slot,
.demo-row .pill-slot {
  display: flex;
  align-items: center;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.demo-row .name-slot { flex-direction: column; align-items: flex-start; flex: 1; min-width: 0; }
.demo-row .name-slot > * { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-row .fading { opacity: 0; transform: translateY(3px); }
.demo-row .pill-slot { min-height: 24px; }
.demo-row .pill { animation: pillpop 0.45s var(--spring); }

.demo-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 16px -22px -30px;
  padding: 14px 22px;
  border-radius: 0 0 24px 24px;
  background: #EFF2F7;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  transition: color 0.45s ease, background 0.45s ease;
}

.demo-foot strong { font-weight: 800; }
.demo-foot .foot-emoji { font-size: 14px; }
.demo-foot .foot-sep { opacity: 0.45; }

.demo-foot.settled { color: var(--accent-deep); background: var(--accent-tint); }
.demo-foot .foot-total { color: var(--green-deep); font-weight: 800; }
.demo-foot.settled strong { animation: pillpop 0.5s var(--spring); display: inline-block; }

.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--surface);
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  padding: 9px 14px;
  font-size: 13.5px;
  font-weight: 700;
  animation: floaty 5s ease-in-out infinite;
}

.float-chip .fc-emoji { font-size: 16px; }
.fc-a { top: -20px; right: 2px; transition: color 0.4s ease; }

.st-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--faint);
  flex: none;
  transition: background 0.4s ease;
}

.st-dot.tone-work {
  background: var(--amber);
  animation: dotpulse 1.5s infinite ease-out;
}

.st-dot.tone-good {
  background: var(--green);
  animation: dotpulsegreen 1.5s infinite ease-out;
}

.st-dot.tone-done { background: var(--accent); }
.fc-a:has(.tone-good) { color: var(--green-deep); }
.fc-a:has(.tone-done) { color: var(--accent-deep); }

@keyframes dotpulsegreen {
  0% { box-shadow: 0 0 0 0 rgb(18 183 106 / 0.5); }
  70% { box-shadow: 0 0 0 7px rgb(18 183 106 / 0); }
  100% { box-shadow: 0 0 0 0 rgb(18 183 106 / 0); }
}

@keyframes dotpulse {
  0% { box-shadow: 0 0 0 0 rgb(247 144 9 / 0.55); }
  70% { box-shadow: 0 0 0 7px rgb(247 144 9 / 0); }
  100% { box-shadow: 0 0 0 0 rgb(247 144 9 / 0); }
}
.fc-b {
  bottom: -22px;
  left: -12px;
  color: var(--green-deep);
  box-shadow: 0 4px 14px rgb(16 24 40 / 0.1), 0 14px 34px rgb(18 183 106 / 0.28);
  opacity: 0;
  transform: scale(0.8) translateY(6px);
  animation: none;
  transition: opacity 0.35s ease, transform 0.45s var(--spring);
  pointer-events: none;
}

.fc-b.lit {
  opacity: 1;
  transform: none;
  animation: floaty 5s ease-in-out infinite 0.6s;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.steps-band { padding: 30px 0 10px; }

.steps-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }

.step-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 26px 22px 24px;
}

.step-num {
  position: absolute;
  top: 20px;
  right: 22px;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #F2F4F7;
  line-height: 1;
}

.step-emoji { font-size: 30px; margin-bottom: 14px; }
.step-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.step-card p { color: var(--muted); font-size: 14.5px; }

.cats-band { padding: 50px 0 20px; }

.cats-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14.5px;
  border-radius: 999px;
  padding: 10px 18px;
  transition: transform 0.18s var(--spring);
}

.cat-chip:hover { transform: translateY(-3px) rotate(-1deg); }

.cta-band { padding: 60px 0 30px; }

.cta-band .cta-inner {
  background: linear-gradient(135deg, var(--accent), #7A5AF8 60%, #9B8AFB);
  border-radius: 28px;
  color: #fff;
  text-align: center;
  padding: 64px 32px 68px;
  box-shadow: 0 24px 60px rgb(91 91 247 / 0.35);
}

.cta-inner h2 { font-size: clamp(28px, 6vw, 40px); font-weight: 800; letter-spacing: -0.03em; }
.cta-inner p { opacity: 0.85; font-size: 16.5px; margin: 12px 0 30px; }
.cta-inner .btn { background: #fff; color: var(--accent-deep); box-shadow: 0 6px 18px rgb(0 0 0 / 0.18); }
.cta-inner #band-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.demo-bar {
  background: var(--ink);
  color: #fff;
  position: relative;
  z-index: 60;
}

.demo-bar-in {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
  padding-bottom: 10px;
  flex-wrap: wrap;
}

.demo-bar-tag {
  background: rgb(255 255 255 / 0.16);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.demo-bar-txt { font-size: 13.5px; opacity: 0.9; flex: 1; min-width: 200px; }
.demo-bar .btn-primary { background: #fff; color: var(--ink); }
.demo-bar .btn-primary:hover { background: #ECECFF; }
.demo-bar-leave { color: #fff; background: rgb(255 255 255 / 0.14); }
.demo-bar-leave:hover { background: rgb(255 255 255 / 0.24); }

.demo-wall {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg);
  border-radius: var(--ri);
  padding: 16px 18px;
  flex-wrap: wrap;
}

.demo-wall-ic { font-size: 20px; }
.demo-wall-txt { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 3px; }
.demo-wall-txt strong { font-size: 15px; }
.demo-wall-txt span { color: var(--muted); font-size: 13.5px; }

body.has-demo-bar #chrome-top { top: 0; }

.auth-page { background: var(--bg); }

.auth-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 18px 40px;
}

.auth-col { width: 100%; max-width: 400px; }

.auth-logo { display: flex; justify-content: center; margin-bottom: 26px; }

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}

.auth-brand-mark { display: block; width: 52px; height: 52px; }
.auth-brand-text { display: flex; flex-direction: column; gap: 3px; }

.auth-brand-name {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--ink);
}

.auth-brand-tag { font-size: 14px; line-height: 1.25; color: var(--muted); }

.auth-card {
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 30px 26px 26px;
}

.auth-card h1 { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 20px; }
.auth-card .auth-sub { color: var(--muted); margin-top: 14px; }
.clerk-slot { width: 100%; min-height: 172px; }
.auth-card .cl-cardBox { overflow: visible !important; }
.auth-card .cl-form { gap: 18px !important; }
.auth-card .auth-forgot {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: #5B5BF7;
  cursor: pointer;
}
.auth-card .auth-forgot:hover { text-decoration: underline; }
.auth-card .cl-signIn-start .cl-formFieldRow__password {
  position: static !important;
  opacity: 1 !important;
  height: auto !important;
  pointer-events: auto !important;
  margin-top: 0 !important;
}

.auth-card .cl-formFieldInput {
  box-shadow: 0 0 0 1px #DDE1EC, 0 1px 2px rgb(16 24 40 / 0.04) !important;
  transition: box-shadow 0.16s ease !important;
}

.auth-card .cl-formFieldInput:hover {
  box-shadow: 0 0 0 1px #C7CCDE, 0 1px 2px rgb(16 24 40 / 0.05) !important;
}

.auth-card .cl-formFieldInput:focus {
  box-shadow: 0 0 0 1px var(--accent), 0 0 14px rgb(91 91 247 / 0.34) !important;
}

.auth-card .cl-formFieldInput[data-feedback="error"] {
  box-shadow: 0 0 0 1px var(--red), 0 0 12px rgb(240 68 56 / 0.2) !important;
}

.auth-card .cl-formFieldErrorText {
  font-size: 13.5px !important;
  margin-top: 8px !important;
}

.auth-card .cl-signIn-emailCode .cl-main,
.auth-card .cl-signUp-emailCode .cl-main { gap: 20px !important; }
.auth-card .cl-buttonArrowIcon { display: none !important; }
.auth-retry { text-align: center; }
.auth-retry .auth-sub { margin: 0 0 16px; }

.auth-card h1 + .auth-sub { margin-top: -12px; }
.auth-step-sub { margin-bottom: 20px; }
.setup-form { margin-top: 22px; }
.setup-form .field { margin-bottom: 16px; }
.setup-form input:hover { border-color: #C7CCDE; }
.setup-form input:focus { box-shadow: 0 0 0 1px var(--accent), 0 0 14px rgb(91 91 247 / 0.34); }
.setup-form .btn { margin-top: 8px; }
.auth-card .cl-otpCodeFieldSuccessText { display: none !important; }
.setup-form .field-locked input,
.setup-form .field-locked input:hover,
.setup-form .field-locked input:focus { background: var(--bg); border-color: transparent; box-shadow: none; color: var(--muted); cursor: default; }
.setup-err { color: var(--red); font-size: 13.5px; margin: -2px 0 14px; }
.field-hint { display: block; color: var(--faint); font-size: 12.5px; margin-top: 6px; }

.setup-photo { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }

.setup-disc {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  overflow: hidden;
  background: var(--bg);
  border: 1px dashed #C7CCDE;
  transition: border-color 0.15s, background 0.15s;
}

.setup-disc:hover { border-color: var(--accent); }
.setup-disc.has-initials { border-style: solid; background: hsl(248 85% 94%); }
.setup-disc-txt { font-size: 26px; font-weight: 800; color: hsl(248 45% 45%); letter-spacing: -0.02em; }
.setup-disc-img { width: 100%; height: 100%; object-fit: cover; }
.setup-photo-col { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }

.setup-photo-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
}

.setup-photo-btn:hover { text-decoration: underline; }
.setup-photo-note { color: var(--faint); font-size: 12.5px; }
.setup-names { display: grid; gap: 0 12px; }

@media (min-width: 420px) {
  .setup-names { grid-template-columns: 1fr 1fr; }
}

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 6px; }

.auth-demo-note {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  background: var(--amber-tint);
  color: #93540A;
  border-radius: 12px;
  padding: 11px 13px;
  font-size: 13px;
  font-weight: 600;
  margin: 16px 0;
}

.auth-alt { text-align: center; color: var(--muted); font-size: 14px; margin-top: 22px; }
.auth-alt a { color: var(--accent); font-weight: 700; }

.orline { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 12.5px; font-weight: 700; margin: 18px 0; }
.orline::before, .orline::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.dash-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.dash-head h1 { font-size: clamp(26px, 5vw, 34px); font-weight: 800; letter-spacing: -0.03em; }
.dash-head p { color: var(--muted); margin-top: 3px; }

.dash-section { margin-top: 30px; }
.dash-section h2 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--faint); margin-bottom: 12px; }

.plans-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }

.plan-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 18px;
  transition: transform 0.2s var(--spring), box-shadow 0.2s;
}

.plan-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.plan-card-top { display: flex; align-items: flex-start; gap: 13px; }

.plan-emoji {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex: none;
}

.plan-card-titles { flex: 1; min-width: 0; }
.plan-card-titles h3 { font-size: 16.5px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.25; overflow-wrap: anywhere; }
.plan-card-titles p { color: var(--muted); font-size: 13px; margin-top: 3px; }

.plan-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 16px; }

.plan-money { font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; }
.plan-money span { color: var(--faint); font-weight: 600; font-size: 12.5px; }

.you-badge {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #B25E04;
  background: var(--amber-tint);
  padding: 4px 9px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.empty-state {
  text-align: center;
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 60px 24px;
}

.empty-state .empty-emoji { font-size: 44px; margin-bottom: 14px; }
.empty-state h3 { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.empty-state p { color: var(--muted); margin-bottom: 22px; }

.plan-hero {
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 22px;
}

.plan-hero-top { display: flex; align-items: flex-start; gap: 16px; }

.plan-hero-emoji {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex: none;
}

.plan-hero-titles h1 { font-size: clamp(22px, 5vw, 30px); font-weight: 800; letter-spacing: -0.03em; }
.plan-hero-titles .plan-meta { color: var(--muted); font-size: 14px; margin-top: 5px; }
.plan-hero-titles .plan-org { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 7px; color: var(--muted); font-size: 13.5px; margin-top: 10px; font-weight: 600; }

.settled-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex: none;
  background: var(--green-tint);
  color: var(--green-deep);
  font-weight: 800;
  font-size: 13px;
  border-radius: 999px;
  padding: 6px 13px;
}

.money-block {
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 22px;
  margin-top: 16px;
}

.money-line { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.money-big { font-size: 44px; font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1; }
.money-cap { color: var(--muted); font-weight: 600; font-size: 14.5px; }

.money-sub { color: var(--muted); font-size: 13.5px; font-weight: 600; margin-top: 10px; }

.money-block .prog { margin-top: 16px; }

.panel {
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 20px 22px;
  margin-top: 16px;
}

.panel > h2 { font-size: 15px; font-weight: 800; margin-bottom: 6px; }
.panel-sub { color: var(--muted); font-size: 13.5px; margin-bottom: 8px; }

.action-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

.link-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F5F6F8;
  border-radius: 14px;
  padding: 8px 8px 8px 14px;
  margin-top: 12px;
}

.link-box .btn { flex: none; }

.receipt-share { margin-top: 26px; text-align: left; }
.receipt-share h3 { font-size: 15px; font-weight: 800; letter-spacing: -0.01em; }
.link-note { color: var(--faint); font-size: 12.5px; margin-top: 8px; }
.acct-signout { margin-top: 20px; }

.acct-photo-row { display: flex; align-items: center; gap: 15px; margin: 18px 0 20px; }
.acct-photo-col { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }

.acct-disc {
  background: none;
  border: 0;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  line-height: 0;
}

.acct-disc .avatar { border-radius: 50%; object-fit: cover; }

.acct-readonly {
  background: var(--bg);
  border-radius: var(--ri);
  padding: 12px 14px;
  color: var(--muted);
  font-size: 15px;
}

.acct-card .setup-names { display: grid; gap: 0 12px; }
.acct-card .field { margin-bottom: 14px; }
.acct-card input:focus { box-shadow: 0 0 0 1px var(--accent), 0 0 14px rgb(91 91 247 / 0.34); }
.acct-card .btn-primary { margin-top: 4px; }

@media (min-width: 420px) {
  .acct-card .setup-names { grid-template-columns: 1fr 1fr; }
}

.cl-userProfile-root,
.cl-userProfile-root .cl-cardBox,
.cl-modalContent:has(.cl-userProfile-root) {
  height: auto !important;
  max-height: 86vh !important;
}

.cl-userProfile-root .cl-cardBox {
  border-radius: var(--r) !important;
  box-shadow: var(--shadow) !important;
}

.cl-userProfile-root .cl-scrollBox { height: auto !important; }
.cl-userProfile-root .cl-navbar { border-radius: var(--r) 0 0 var(--r) !important; }

.link-url {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rule-row { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; }
.rule-row + .rule-row { border-top: 1px solid #F4F5F7; }
.rule-ic { font-size: 20px; line-height: 1.2; flex: none; }
.rule-txt { flex: 1; min-width: 0; }
.rule-txt strong { display: block; font-size: 14.5px; font-weight: 700; }
.rule-txt span { display: block; color: var(--muted); font-size: 13px; margin-top: 1px; }

.rule-opts { display: flex; flex-direction: column; gap: 10px; }

.pay-opts { display: grid; grid-template-columns: 1fr; gap: 10px; }

.rule-opt {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 14px 15px;
  border-radius: 16px;
  border: 2px solid var(--line);
  background: var(--surface);
  transition: border-color 0.15s, background 0.15s;
}

.rule-opt:hover { border-color: #D5DAE1; }
.rule-opt.sel { border-color: var(--accent); background: var(--accent-tint); }

.rule-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--surface);
  flex: none;
  margin-top: 2px;
  transition: border-color 0.15s, background 0.15s;
}

.rule-opt.sel .rule-check {
  border-color: var(--accent);
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 10 17.5 19 7'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.join-rules { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 18px; }

.join-rule {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #F5F6F8;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  padding: 6px 13px;
}

.invite-banner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: linear-gradient(135deg, var(--accent-tint), #F5F1FE);
  border-radius: var(--r);
  padding: 20px 22px;
  margin-top: 16px;
}

.invite-banner h2 { font-size: 17px; font-weight: 800; }
.invite-banner p { color: var(--muted); font-size: 14px; }
.invite-banner .btn-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.decline-link { color: var(--muted); font-weight: 700; font-size: 14px; background: none; }
.decline-link:hover { color: var(--red); }

.charge-cta { margin-top: 16px; }

.charge-hint { color: var(--muted); font-size: 13px; font-weight: 600; text-align: center; margin-top: 10px; }

.settle-hero {
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 28px 22px;
  margin-top: 16px;
  text-align: center;
}

.settle-kicker { color: var(--green-deep); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }
.settle-big { font-size: 52px; font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; margin-top: 8px; line-height: 1; }
.settle-vs { color: var(--muted); font-size: 14px; font-weight: 600; margin-top: 10px; }

.settle-saved {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--green-tint);
  color: var(--green-deep);
  font-weight: 800;
  font-size: 14px;
  border-radius: 999px;
  padding: 8px 16px;
  margin-top: 16px;
}

.settle-bars { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; text-align: left; }

.settle-bar-row { display: grid; grid-template-columns: 64px 1fr 76px; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; }
.settle-bar-row .bar { height: 12px; border-radius: 999px; background: #F2F4F7; overflow: hidden; }
.settle-bar-row .bar i { display: block; height: 100%; border-radius: 999px; }
.settle-bar-row .amt { text-align: right; font-variant-numeric: tabular-nums; }
.settle-bar-row.actual .bar i { background: var(--green); }
.settle-bar-row.max .bar i { background: #D6D9FE; }

.ta-wrap { position: relative; }

.ta-drop {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 6px;
  z-index: 30;
  max-height: 280px;
  overflow: auto;
}

.ta-row {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  text-align: left;
  padding: 9px 10px;
  border-radius: 12px;
}

.ta-row:hover { background: #F5F6F8; }

.ta-names { flex: 1; min-width: 0; }
.ta-names strong { display: block; font-size: 14.5px; font-weight: 700; }
.ta-names span { display: block; color: var(--faint); font-size: 12.5px; }

.ta-chip {
  font-size: 11px;
  font-weight: 800;
  border-radius: 6px;
  padding: 3px 8px;
  white-space: nowrap;
}

.ta-chip.member { background: var(--accent-tint); color: var(--accent-deep); }
.ta-chip.email { background: #F2F4F7; color: var(--muted); }

.invite-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.invite-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #F5F6F8;
  border-radius: 999px;
  padding: 5px 6px 5px 6px;
  font-size: 13.5px;
  font-weight: 700;
  animation: pillpop 0.4s var(--spring);
}

.invite-pill .pv-x {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--faint);
  font-size: 15px;
  line-height: 1;
}

.invite-pill .pv-x:hover { background: #E4E7EB; color: var(--ink); }

.form-card {
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 22px;
  margin-top: 16px;
}

.form-card h2 { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.form-card .form-sub { color: var(--muted); font-size: 13.5px; margin-bottom: 16px; }

.cat-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

.cat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 13px 4px 10px;
  border-radius: 14px;
  border: 2px solid transparent;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  transition: transform 0.18s var(--spring), border-color 0.15s, color 0.15s;
}

.cat-tile .ct-emoji { font-size: 24px; }
.cat-tile:hover { transform: translateY(-2px); }
.cat-tile.sel { border-color: var(--accent); color: var(--ink); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.budget-input-wrap { position: relative; }
.budget-input-wrap .cur {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  font-weight: 800;
  color: var(--faint);
}

.budget-input {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  padding: 14px 16px 14px 42px;
  font-variant-numeric: tabular-nums;
}

.budget-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

.budget-chip {
  font-weight: 800;
  font-size: 14px;
  border-radius: 999px;
  padding: 8px 16px;
  background: #F2F4F7;
  color: var(--muted);
  transition: transform 0.15s var(--spring), background 0.15s, color 0.15s;
}

.budget-chip:hover { transform: translateY(-2px); }
.budget-chip.sel { background: var(--accent); color: #fff; }

.budget-note { color: var(--muted); font-size: 13.5px; font-weight: 600; margin-top: 12px; }

.review-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--accent-tint);
  border-radius: 14px;
  padding: 14px 16px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--accent-deep);
}

.sheet-back {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgb(16 24 40 / 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.22s;
}

.sheet-back.open { opacity: 1; }

.sheet {
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow: auto;
  background: var(--surface);
  border-radius: 24px 24px 0 0;
  padding: 10px 20px 30px;
  transform: translateY(100%);
  transition: transform 0.3s var(--spring);
}

.sheet-back.open .sheet { transform: translateY(0); }

.sheet-grab { width: 42px; height: 5px; border-radius: 999px; background: var(--line); margin: 4px auto 10px; }

.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sheet-head h3 { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }

.sheet-x {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F2F4F7;
  color: var(--muted);
  flex: none;
}

.sheet-x:hover { background: #E4E7EB; color: var(--ink); }

.sheet-p { color: var(--muted); margin-bottom: 18px; }

.sheet-warn {
  background: #FFF8EC;
  color: #7A4E00;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
  margin-bottom: 18px;
}

body.sheet-open { overflow: hidden; }

.toast-host {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
  width: max-content;
  max-width: calc(100vw - 32px);
}

.toast {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border-radius: 999px;
  padding: 11px 18px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(-12px) scale(0.96);
  transition: opacity 0.25s, transform 0.3s var(--spring);
  max-width: 100%;
}

.toast.show { opacity: 1; transform: none; }
.toast-emoji { font-size: 16px; }

.confetti-bit {
  position: fixed;
  z-index: 300;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  pointer-events: none;
}

.ccard {
  position: relative;
  aspect-ratio: 1.586;
  max-width: 340px;
  margin: 0 auto 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, #4747E8, #7A5AF8 55%, #9B8AFB);
  color: #fff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 18px 40px rgb(71 71 232 / 0.35);
  overflow: hidden;
}

.ccard::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 80% at 80% 0%, rgb(255 255 255 / 0.16), transparent 60%);
  pointer-events: none;
}

.ccard-top { display: flex; justify-content: space-between; align-items: flex-start; }

.ccard-chipico {
  width: 38px;
  height: 27px;
  border-radius: 6px;
  background: linear-gradient(135deg, #F6D77C, #E3B94E);
}

.ccard-brand { font-weight: 800; font-size: 17px; letter-spacing: 0.04em; font-style: italic; min-height: 22px; }

.ccard-num {
  font-size: clamp(17px, 5.4vw, 21px);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ccard-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.ccard-label { font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.7; }
.ccard-holder, .ccard-exp { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.hold-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-tint);
  color: var(--accent-deep);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 16px;
}

.demo-fill-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--amber-tint);
  color: #93540A;
  font-weight: 800;
  font-size: 12.5px;
  border-radius: 999px;
  padding: 6px 13px;
  margin-bottom: 14px;
}

.demo-fill-chip:hover { filter: brightness(0.97); }

.spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid rgb(255 255 255 / 0.35);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.auth-success { text-align: center; padding: 18px 0 6px; }

.success-ring {
  width: 84px;
  height: 84px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--green-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: ringpop 0.55s var(--spring);
}

.success-ring svg { width: 42px; height: 42px; }

.success-ring path {
  stroke: var(--green);
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: drawcheck 0.5s 0.15s forwards;
}

@keyframes ringpop {
  0% { transform: scale(0.4); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes drawcheck { to { stroke-dashoffset: 0; } }

.auth-success h4 { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.auth-success .as-amt { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--green-deep); margin: 8px 0 4px; }
.auth-success p { color: var(--muted); font-size: 14px; max-width: 300px; margin: 0 auto; }

.charge-preview { margin: 16px 0; }

.charge-preview-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
}

.charge-preview-line strong { color: var(--ink); font-weight: 800; font-variant-numeric: tabular-nums; }
.charge-preview-line + .charge-preview-line { border-top: 1px solid #F4F5F7; }

.over-cap {
  display: flex;
  gap: 9px;
  background: var(--red-tint);
  color: #B42318;
  border-radius: 12px;
  padding: 11px 13px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 10px;
}

.feed-card { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 8px 18px; }

.feed-row { display: flex; align-items: flex-start; gap: 13px; padding: 14px 0; }
.feed-row + .feed-row { border-top: 1px solid #F4F5F7; }

.feed-text { flex: 1; font-size: 14.5px; }
.feed-text strong { font-weight: 800; }
.feed-text .feed-plan { color: var(--accent); font-weight: 700; }
.feed-time { color: var(--faint); font-size: 12.5px; white-space: nowrap; padding-top: 2px; }

.acct-card { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px 22px; margin-top: 16px; }
.acct-card h2 { font-size: 15px; font-weight: 800; margin-bottom: 14px; }

.acct-profile { display: flex; align-items: center; gap: 16px; }
.acct-profile-names strong { display: block; font-size: 18px; font-weight: 800; }
.acct-profile-names span { color: var(--muted); font-size: 14px; }

.pay-row { display: flex; align-items: center; gap: 14px; padding: 6px 0; }

.pay-brand {
  width: 46px;
  height: 32px;
  border-radius: 7px;
  background: linear-gradient(135deg, #4747E8, #7A5AF8);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  font-style: italic;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.04em;
}

.pay-info { flex: 1; }
.pay-info strong { display: block; font-size: 14.5px; font-weight: 800; }
.pay-info span { color: var(--muted); font-size: 13px; }

.set-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; }
.set-row + .set-row { border-top: 1px solid #F4F5F7; }
.set-row .set-label strong { display: block; font-size: 14.5px; font-weight: 700; }
.set-row .set-label span { color: var(--muted); font-size: 13px; }

.switch { position: relative; width: 46px; height: 27px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 2; }
.switch .track { position: absolute; inset: 0; border-radius: 999px; background: #E4E7EB; transition: background 0.2s; }
.switch .knob { position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(16 24 40 / 0.25); transition: transform 0.2s var(--spring); }
.switch input:checked ~ .track { background: var(--green); }
.switch input:checked ~ .knob { transform: translateX(19px); }

.static-page { max-width: 660px; }
.static-page h1 { font-size: clamp(28px, 6vw, 38px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 14px; }
.static-page .lede { font-size: 17px; color: var(--muted); margin-bottom: 26px; }
.static-page p { margin-bottom: 14px; }

.how-step { margin: 26px 0; }
.how-step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.how-step h2 { font-size: 20px; font-weight: 800; }
.how-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent-deep);
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.how-step p { color: var(--muted); }

.how-callout {
  background: linear-gradient(135deg, var(--accent-tint), #F5F1FE);
  border-radius: var(--r);
  padding: 22px;
  margin: 32px 0;
}
.how-callout h3 { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.how-callout p { color: var(--muted); margin: 0; }

.about-vals { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 30px 0; }
.about-val { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 22px; }
.about-val-emoji { font-size: 28px; display: block; margin-bottom: 12px; }
.about-val h3 { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.about-val p { color: var(--muted); font-size: 14px; margin: 0; }

.faq-list { margin-top: 24px; }

.faq-item {
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-weight: 800;
  font-size: 15.5px;
  padding: 17px 20px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  transition: transform 0.25s var(--spring);
  flex: none;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p { color: var(--muted); padding: 0 20px 17px; margin: 0; }

.legal h2 { font-size: 19px; font-weight: 800; margin: 24px 0 8px; }
.static-page a:not(.btn) { color: var(--accent); font-weight: 700; }
.static-page a:not(.btn):hover { text-decoration: underline; }
.legal-updated { color: var(--faint); font-size: 13.5px; font-weight: 600; margin-bottom: 10px; }

.notfound { text-align: center; padding-top: 60px; }
.nf-emoji { font-size: 64px; margin-bottom: 18px; }

.static-cta { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }
.notfound .static-cta { justify-content: center; }

.join-hero-card {
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 24px 22px;
  text-align: center;
}

.join-org-line { display: flex; align-items: center; justify-content: center; gap: 9px; color: var(--muted); font-size: 14px; font-weight: 600; margin-bottom: 18px; }

.join-emoji {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin: 0 auto 14px;
}

.join-hero-card h1 { font-size: clamp(24px, 6vw, 32px); font-weight: 800; letter-spacing: -0.03em; }
.join-meta { color: var(--muted); font-size: 14.5px; margin-top: 6px; }

.join-contract {
  background: var(--accent-tint);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-deep);
  margin: 20px 0;
  text-align: left;
  display: flex;
  gap: 10px;
}

.join-in-row { display: flex; flex-direction: column; gap: 12px; align-items: center; }

body[data-phase="honor"] .if-cards { display: none; }
body[data-phase="cards"] .if-honor { display: none; }

.pill.st-claimed { background: var(--amber-tint); color: #B25E04; }

.rule-opt.locked {
  position: relative;
  opacity: 0.62;
  cursor: default;
  background: #F8F9FB;
}

.rule-opt.locked:hover { border-color: var(--line); }
.rule-opt.locked .rule-check { visibility: hidden; }
.rule-opt.locked .rule-txt { padding-right: 86px; }
.rule-opt.locked .soon-tag { position: absolute; top: 13px; right: 13px; }

.soon-tag {
  align-self: center;
  flex: none;
  background: var(--accent-tint);
  color: var(--accent-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 9px;
  white-space: nowrap;
}

.btn-google {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgb(16 24 40 / 0.06);
  gap: 10px;
}

.btn-google:hover { background: #FBFCFD; border-color: #D5DAE1; }
.g-mark { display: inline-flex; align-items: center; flex: none; }

.auth-peek { text-align: center; margin-top: 20px; color: var(--muted); font-size: 14px; }

.auth-peek-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-peek-btn:hover { color: var(--accent-deep); }
.auth-peek-btn:disabled { color: var(--faint); cursor: default; text-decoration: none; }

.auth-legal { color: var(--faint); font-size: 12.5px; text-align: center; margin-top: 18px; }
.auth-legal a { color: var(--muted); text-decoration: underline; }

.cover-note {
  display: flex;
  gap: 9px;
  background: var(--accent-tint);
  color: var(--accent-deep);
  border-radius: 14px;
  padding: 12px 14px;
  margin-top: 12px;
  font-size: 13.5px;
  font-weight: 600;
}

.share-hero { border: 2px solid var(--accent-tint); }

.sample-flag {
  background: var(--sand);
  color: #8A6D1F;
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}

.you-badge.sample { background: var(--sand); color: #8A6D1F; }

.spots-wrap .cur-after {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 17px;
  font-weight: 700;
  color: var(--faint);
}

.spots-wrap .budget-input { padding-left: 16px; padding-right: 84px; }

.preview-note {
  display: flex;
  gap: 9px;
  background: var(--amber-tint);
  color: #B25E04;
  border-radius: 12px;
  padding: 11px 13px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 12px;
}

.payto-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #F5F6F8;
  border-radius: 14px;
  padding: 12px 14px;
  margin-top: 12px;
  font-weight: 700;
  font-size: 14.5px;
  word-break: break-word;
}

.payto-box .payto-ic { font-size: 17px; flex: none; }

.owe-block {
  background: var(--accent-tint);
  border-radius: 14px;
  padding: 16px;
  margin-top: 4px;
  text-align: center;
}

.owe-amt {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--accent-deep);
  line-height: 1;
}

.owe-sub { color: var(--accent-deep); font-size: 13.5px; font-weight: 600; margin-top: 6px; }

.member-acts { display: flex; gap: 6px; flex: none; margin-left: 8px; }
.member-acts .btn { white-space: nowrap; }

.soon-band {
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 22px;
  margin-top: 26px;
}

.soon-band h3 { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.soon-band > p { color: var(--muted); margin-top: 6px; font-size: 14.5px; }
.soon-list { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }

.soon-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #F8F9FB;
  border-radius: 14px;
  padding: 13px 14px;
}

.soon-item { align-items: center; }
.soon-item .soon-ic { font-size: 19px; flex: none; }
.soon-item > div { flex: 1; min-width: 0; }
.soon-item strong { display: block; font-size: 14.5px; }
.soon-item span { color: var(--muted); font-size: 13.5px; font-weight: 600; }
.soon-item .soon-tag { margin-left: 16px; }

.reduced-note { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

@media (min-width: 720px) {
  body { font-size: 15.5px; }
  .wrap { padding-left: 28px; padding-right: 28px; }
  .page-wrap { padding-top: 34px; }
  .hdr-nav { display: flex; }
  .bnav { display: none; }
  .cat-tiles { grid-template-columns: repeat(6, 1fr); }
  .rule-opts { flex-direction: row; }
  .rule-opts .rule-opt { flex: 1; }
  .pay-opts { grid-template-columns: 1fr 1fr; }
  body:has(.bnav) { padding-bottom: 0; }
  .foot-in { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
  .foot-brand { grid-column: auto; }
  .foot-base { flex-direction: row; justify-content: space-between; align-items: center; text-align: left; gap: 12px; flex-wrap: wrap; }
  .plans-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
  .about-vals { grid-template-columns: repeat(3, 1fr); }
  .hero { padding: 70px 0 80px; }
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; }
  .auth-card { padding: 34px 30px 30px; }
  .sheet-back { align-items: center; padding: 24px; }
  .sheet { border-radius: 24px; max-width: 460px; max-height: 86vh; transform: translateY(24px) scale(0.97); opacity: 0; transition: transform 0.28s var(--spring), opacity 0.2s; padding: 12px 24px 26px; }
  .sheet-back.open .sheet { transform: none; opacity: 1; }
  .sheet-grab { display: none; }
}

@media (min-width: 1080px) {
  .plans-grid { grid-template-columns: repeat(3, 1fr); }
  .page-wrap.narrow { max-width: 780px; }
  .wrap { padding-left: 40px; padding-right: 40px; }
}

@media (min-width: 1440px) {
  .wrap { max-width: 1280px; }
  .page-wrap.narrow { max-width: 840px; }
  .plans-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-inner { gap: 64px; }
}
