/* RosterMi landing page. Tokens follow the app's palette (src/client/styles.css). */
:root {
  --primary: #2447b8;
  --primary-hover: #1a3591;
  --primary-soft: #e8edfb;
  --primary-2: #5b7cf0;
  --ink: #151821;
  --ink-2: #3a3f4b;
  --muted: #555b69;
  --faint: #8a909c;
  --line: #e3e5ea;
  --line-strong: #d5d8de;
  --bg: #f7f8fa;
  --bg-alt: #eef1f6;
  --surface: #ffffff;
  --surface-2: #f4f5f7;
  --hero-card: #1d2230;
  --leave: #6b3fa8;
  --leave-soft: #f1ebfa;
  --open: #7a3e06;
  --open-soft: #fdf1e3;
  --req: #b42318;
  --req-soft: #fdecea;
  --ok: #1f7a4d;
  --ok-soft: #e5f4ec;
  --warn: #8a5a00;
  --warn-soft: #fbf1cf;
  --teal: #0e7c7b;
  --teal-soft: #e0f4f3;
  --shadow-sm: 0 1px 2px rgba(21, 24, 33, 0.06), 0 1px 1px rgba(21, 24, 33, 0.04);
  --shadow: 0 12px 32px -12px rgba(21, 24, 33, 0.18), 0 2px 6px rgba(21, 24, 33, 0.05);
  --shadow-lg: 0 40px 80px -24px rgba(36, 71, 184, 0.35), 0 12px 24px -8px rgba(21, 24, 33, 0.12);
  --glass: rgba(255, 255, 255, 0.72);
  --grid-line: rgba(36, 71, 184, 0.07);
  --radius: 20px;
  --radius-sm: 12px;
  color-scheme: light;
}

:root[data-theme='dark'] {
  --primary: #4a7ce0;
  --primary-hover: #5d8bea;
  --primary-soft: #1c2b42;
  --primary-2: #8aa7ff;
  --ink: #e6e7ea;
  --ink-2: #c4c6cb;
  --muted: #a3a6ad;
  --faint: #7f838c;
  --line: #2a2c31;
  --line-strong: #36383e;
  --bg: #111215;
  --bg-alt: #16181c;
  --surface: #1b1d21;
  --surface-2: #23252a;
  --hero-card: #2a2e38;
  --leave: #c3a4f2;
  --leave-soft: #2b2340;
  --open: #f5b46a;
  --open-soft: #3a2a17;
  --req: #f28b82;
  --req-soft: #3b1f1d;
  --ok: #6fd3a0;
  --ok-soft: #173126;
  --warn: #f0c75e;
  --warn-soft: #362d14;
  --teal: #5fd0cb;
  --teal-soft: #14302f;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 40px 80px -24px rgba(0, 0, 0, 0.7), 0 12px 24px -8px rgba(0, 0, 0, 0.4);
  --glass: rgba(17, 18, 21, 0.7);
  --grid-line: rgba(138, 167, 255, 0.06);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --primary: #4a7ce0;
    --primary-hover: #5d8bea;
    --primary-soft: #1c2b42;
    --primary-2: #8aa7ff;
    --ink: #e6e7ea;
    --ink-2: #c4c6cb;
    --muted: #a3a6ad;
    --faint: #7f838c;
    --line: #2a2c31;
    --line-strong: #36383e;
    --bg: #111215;
    --bg-alt: #16181c;
    --surface: #1b1d21;
    --surface-2: #23252a;
    --hero-card: #2a2e38;
    --leave: #c3a4f2;
    --leave-soft: #2b2340;
    --open: #f5b46a;
    --open-soft: #3a2a17;
    --req: #f28b82;
    --req-soft: #3b1f1d;
    --ok: #6fd3a0;
    --ok-soft: #173126;
    --warn: #f0c75e;
    --warn-soft: #362d14;
    --teal: #5fd0cb;
    --teal-soft: #14302f;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 40px 80px -24px rgba(0, 0, 0, 0.7), 0 12px 24px -8px rgba(0, 0, 0, 0.4);
    --glass: rgba(17, 18, 21, 0.7);
    --grid-line: rgba(138, 167, 255, 0.06);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}
img {
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 800;
}
p {
  margin: 0;
}
button {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 8px;
}
.i {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  background: var(--primary);
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
}
.skip:focus {
  left: 16px;
}
.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 640px) {
  .wrap {
    padding: 0 28px;
  }
}
.narrow {
  max-width: 820px;
}
.center {
  text-align: center;
}
.muted {
  color: var(--faint);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--primary) 70%, transparent);
}
.btn-primary:hover {
  background: var(--primary-hover);
}
.btn-primary[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}
.btn-ghost {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--faint);
}
.btn-white {
  background: #fff;
  color: #1a3591;
}
.btn-white:hover {
  background: #eef2ff;
}
.btn-outline-white {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}
.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
}
.btn-lg {
  height: 52px;
  padding: 0 24px;
  font-size: 16px;
  border-radius: 14px;
}
.btn-sm {
  height: 36px;
  padding: 0 12px;
  font-size: 13.5px;
  border-radius: 10px;
}
.btn-block {
  width: 100%;
}
.btn .i {
  transition: transform 0.2s ease;
}
.btn:hover .i {
  transform: translateX(2px);
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
}
.icon-btn .i {
  width: 18px;
  height: 18px;
}
.i-sun {
  display: none;
}
:root[data-theme='dark'] .i-sun {
  display: block;
}
:root[data-theme='dark'] .i-moon {
  display: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .i-sun {
    display: block;
  }
  :root:not([data-theme='light']) .i-moon {
    display: none;
  }
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--glass);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.nav.scrolled {
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.nav-links {
  display: none;
  gap: 4px;
}
.nav-links a {
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--muted);
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav-links a:hover {
  color: var(--ink);
  background: var(--surface-2);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hide-sm {
  display: none;
}
.mobile-menu {
  display: grid;
  gap: 2px;
  padding: 8px 16px 18px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.mobile-menu[hidden] {
  display: none;
}
.mobile-menu > a {
  padding: 12px 8px;
  font-weight: 600;
  border-radius: 10px;
}
.mobile-menu-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}
@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }
  .hide-sm {
    display: inline-flex;
  }
  .show-sm {
    display: none;
  }
  .mobile-menu {
    display: none !important;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 48px 0 0;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}
.blob-a {
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, #5b7cf0, transparent 70%);
  top: -180px;
  right: -120px;
  animation: drift 18s ease-in-out infinite alternate;
}
.blob-b {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #b49cf5, transparent 70%);
  bottom: 40px;
  left: -160px;
  opacity: 0.35;
  animation: drift 22s ease-in-out infinite alternate-reverse;
}
.grid-fade {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
@keyframes drift {
  to {
    transform: translate(-60px, 50px) scale(1.08);
  }
}
.hero-inner {
  position: relative;
  display: grid;
  gap: 56px;
  align-items: center;
}
@media (min-width: 1000px) {
  .hero {
    padding-top: 72px;
  }
  .hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
  }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-2);
}
.hero h1 {
  margin-top: 22px;
  font-size: clamp(42px, 7.2vw, 76px);
  letter-spacing: -0.04em;
  line-height: 1.02;
}
.grad {
  background: linear-gradient(100deg, var(--primary) 10%, var(--primary-2) 55%, #9b7cf0 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  margin-top: 22px;
  max-width: 540px;
  font-size: clamp(17px, 1.6vw, 19.5px);
  color: var(--muted);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.hero-proof li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-proof .i {
  color: var(--primary);
}

/* Phone mockup */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  padding: 10px 0 30px;
}
.phone {
  position: relative;
  width: 318px;
  border-radius: 46px;
  padding: 12px;
  background: linear-gradient(160deg, #2b2f3a, #0e1015);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255, 255, 255, 0.08);
  transform: rotate(-2deg);
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  50% {
    transform: rotate(-2deg) translateY(-12px);
  }
}
.phone-notch {
  position: absolute;
  top: 22px;
  left: 50%;
  translate: -50% 0;
  width: 92px;
  height: 26px;
  border-radius: 20px;
  background: #0b0c10;
  z-index: 2;
}
.screen {
  border-radius: 36px;
  overflow: hidden;
  background: #f4f5f7;
  color: #151821;
  padding: 50px 12px 14px;
  font-size: 12px;
  display: grid;
  gap: 9px;
}
.scr-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
}
.scr-date {
  font-size: 11px;
  color: #555b69;
  font-weight: 600;
}
.scr-hi {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.scr-icons {
  display: flex;
  gap: 8px;
  align-items: center;
}
.scr-bell {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e3e5ea;
}
.scr-bell b {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #b42318;
  color: #fff;
  font-size: 9.5px;
  display: grid;
  place-items: center;
}
.avatar {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  flex: none;
}
.av-peach {
  background: #fbd9b5;
  color: #7a3e06;
}
.av-blue {
  background: #c7d3f6;
  color: #1a3591;
}
.av-green {
  background: #cdeedb;
  color: #1f7a4d;
}
.av-violet {
  background: #e3d8fa;
  color: #5b3fa8;
}
.scr-hero {
  background: linear-gradient(150deg, #2447b8, #1a3591 70%);
  color: #fff;
  border-radius: 20px;
  padding: 16px;
  position: relative;
  overflow: hidden;
}
.scr-hero::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 70%);
}
.scr-tag {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d6dffa;
}
.scr-title {
  margin-top: 8px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.scr-sub {
  margin-top: 4px;
  color: #d6dffa;
  font-size: 11.5px;
}
.scr-next {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 9px 11px;
}
.scr-next small {
  display: block;
  font-size: 10px;
  color: #d6dffa;
}
.scr-next strong {
  font-size: 13px;
}
.scr-next span {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  font-weight: 700;
  font-size: 11.5px;
}
.scr-card {
  background: #fff;
  border: 1px solid #e3e5ea;
  border-radius: 16px;
  padding: 11px;
}
.scr-h {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 12.5px;
  margin-bottom: 8px;
}
.scr-link {
  color: #2447b8;
  font-weight: 700;
  font-size: 11px;
}
.week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.d {
  display: grid;
  justify-items: center;
  gap: 1px;
  padding: 6px 0 5px;
  border-radius: 10px;
  background: #f4f5f7;
  color: #3a3f4b;
}
.d small {
  font-size: 9px;
  font-weight: 600;
  color: #8a909c;
}
.d b {
  font-size: 13px;
}
.d .i {
  width: 11px;
  height: 11px;
}
.d i {
  font-style: normal;
  line-height: 11px;
  color: #b4b8c1;
}
.d-off {
  background: transparent;
  color: #b4b8c1;
}
.d-wfo {
  background: #e8edfb;
  color: #2447b8;
}
.d-wfo small {
  color: #2447b8;
}
.d-today {
  background: #151821;
  color: #fff;
}
.d-today small {
  color: #c4c6cb;
}
.d-leave {
  background: #f1ebfa;
  color: #6b3fa8;
}
.d-leave small {
  color: #6b3fa8;
}
.faces {
  display: flex;
  align-items: center;
}
.faces .avatar {
  width: 28px;
  height: 28px;
  font-size: 10px;
  border: 2px solid #fff;
  margin-left: -6px;
}
.faces .avatar:first-child {
  margin-left: 0;
}
.faces-txt {
  margin-left: 10px;
  color: #555b69;
  font-size: 11.5px;
  font-weight: 600;
}
.scr-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.scr-mini {
  border-radius: 14px;
  padding: 10px 11px;
  background: #fff;
  border: 1px solid #e3e5ea;
  display: grid;
  gap: 2px;
}
.scr-mini b {
  font-size: 18px;
}
.scr-mini span {
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.3;
  color: #3a3f4b;
}
.scr-open {
  background: #fdf1e3;
  border-color: #fbe3c8;
}
.scr-open b,
.scr-open span {
  color: #7a3e06;
}

/* Floating chips */
.chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  border-radius: 16px;
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-size: 13px;
  line-height: 1.3;
  opacity: 0;
  animation: chip-in 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards, bob 6s ease-in-out infinite;
}
.chip strong {
  display: block;
  font-weight: 800;
}
.chip small {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
}
.chip-ic {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
}
.chip-ic .i {
  width: 17px;
  height: 17px;
}
.ic-ok {
  background: var(--ok-soft);
  color: var(--ok);
}
.ic-open {
  background: var(--open-soft);
  color: var(--open);
}
.ic-blue {
  background: var(--primary-soft);
  color: var(--primary);
}
/* Chips sit mostly outside the phone so the screen stays readable */
.chip-a {
  top: 58%;
  left: -10%;
  animation-delay: 0.6s, 0.6s;
}
.chip-b {
  top: 9%;
  right: -10%;
  animation-delay: 1.1s, 1.4s;
}
.chip-c {
  bottom: -1%;
  right: -8%;
  animation-delay: 1.6s, 2.2s;
}
@keyframes chip-in {
  from {
    opacity: 0;
    translate: 0 16px;
    scale: 0.94;
  }
  to {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}
@keyframes bob {
  50% {
    transform: translateY(-6px);
  }
}
@media (max-width: 520px) {
  .phone {
    width: 292px;
  }
  .chip {
    font-size: 12px;
    padding: 8px 12px 8px 8px;
  }
  .chip-a {
    left: 0;
    top: 60%;
  }
  .chip-b {
    right: 0;
    top: 4%;
  }
  .chip-c {
    display: none;
  }
}

/* Ticker */
.ticker {
  position: relative;
  margin-top: 64px;
  border-block: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 50s linear infinite;
}
.ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 18px 0 18px 28px;
  font-weight: 700;
  font-size: 15px;
  color: var(--muted);
  white-space: nowrap;
}
.ticker-track span::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--primary);
  opacity: 0.6;
  rotate: 45deg;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Sections ---------- */
.section {
  padding: 96px 0;
}
@media (min-width: 900px) {
  .section {
    padding: 128px 0;
  }
}
.section-head {
  max-width: 900px;
  margin-bottom: 52px;
}
.section-head.center {
  margin-inline: auto;
}
.kicker {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}
.section h2 {
  font-size: clamp(32px, 4.6vw, 52px);
  letter-spacing: -0.035em;
}
.sub {
  margin-top: 18px;
  font-size: 18px;
  color: var(--muted);
}
.problem {
  padding-bottom: 0;
}
.problem .sub {
  margin-inline: auto;
  max-width: 680px;
}

/* ---------- Bento ---------- */
.bento {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1040px) {
  .bento {
    grid-template-columns: repeat(4, 1fr);
  }
  .b-planner {
    grid-column: span 2;
    grid-row: span 2;
  }
  .b-rules {
    grid-column: span 2;
  }
}
.card {
  position: relative;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    400px circle at var(--mx, 50%) var(--my, 0%),
    color-mix(in srgb, var(--primary) 10%, transparent),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}
.card:hover::before {
  opacity: 1;
}
.card h3 {
  margin-top: 18px;
  font-size: 20px;
}
.card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}
.card-ic {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
}
.card-ic .i {
  width: 22px;
  height: 22px;
}
.card-ic.ic-leave {
  background: var(--leave-soft);
  color: var(--leave);
}
.card-ic.ic-teal {
  background: var(--teal-soft);
  color: var(--teal);
}

/* mini planner */
.b-planner {
  display: flex;
  flex-direction: column;
}
.mini-grid {
  margin-top: 30px;
  display: grid;
  gap: 8px;
  flex: 1;
  align-content: end;
}
.mg-head {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--faint);
}
.mg-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 10px;
  border-radius: 14px;
  background: var(--surface-2);
  font-size: 13px;
  font-weight: 700;
}
.mg-draft {
  padding: 3px 9px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 12px;
}
.mg-msg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--req);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mg-pub {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 9px;
  background: var(--primary);
  color: #fff;
  flex: none;
}
.mg-row,
.mg-foot {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
.mg-row i {
  aspect-ratio: 1.25;
  border-radius: 10px;
  background: var(--surface-2);
  transition: background-color 0.3s ease;
}
.mg-row i.on {
  background: var(--primary);
}
.mg-row i.hol {
  background: var(--teal-soft);
}
.mg-row i.lv {
  background: var(--leave-soft);
  border: 1.5px dashed var(--leave);
}
.mg-foot b {
  display: grid;
  place-items: center;
  height: 28px;
  border-radius: 8px;
  font-size: 13px;
}
.mg-foot .ok {
  background: var(--ok-soft);
  color: var(--ok);
}
.mg-foot .warn {
  background: var(--req-soft);
  color: var(--req);
}
.mg-foot .na {
  color: var(--teal);
}
.b-planner:hover .mg-row i.on {
  animation: blink 1.2s ease;
}
.b-planner .mg-row:nth-child(2) i.on {
  animation-delay: 0.1s;
}
.b-planner .mg-row:nth-child(3) i.on {
  animation-delay: 0.2s;
}
.b-planner .mg-row:nth-child(4) i.on {
  animation-delay: 0.3s;
}
@keyframes blink {
  40% {
    background: var(--primary-2);
  }
}

/* leave flow */
.flow {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 22px;
  flex-wrap: nowrap;
}
.flow .pill {
  flex: none;
  gap: 4px;
  padding: 4px 8px;
  font-size: 12px;
}
.flow .pill .i {
  width: 13px;
  height: 13px;
}
.flow-line {
  flex: 1;
  min-width: 4px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 10px);
  background-size: 20px 2px;
  animation: dash 1s linear infinite;
}
@keyframes dash {
  to {
    background-position: 20px 0;
  }
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
}
.pill .i {
  width: 14px;
  height: 14px;
}
.pill-leave {
  background: var(--leave-soft);
  color: var(--leave);
}
.pill-open {
  background: var(--open-soft);
  color: var(--open);
}
.pill-ok {
  background: var(--ok-soft);
  color: var(--ok);
}

/* swap viz */
.swap-viz {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface-2);
}
.sv-person {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
}
.sv-arrows {
  color: var(--primary);
  animation: spin-swap 3s ease-in-out infinite;
}
.sv-arrows .i {
  width: 22px;
  height: 22px;
}
@keyframes spin-swap {
  0%,
  60% {
    transform: rotate(0);
  }
  80%,
  100% {
    transform: rotate(180deg);
  }
}

/* rules */
.rule-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 8px;
}
.rule-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
}
.r-ok {
  background: var(--ok-soft);
  color: var(--ok);
}
.r-bad {
  background: var(--req-soft);
  color: var(--req);
}

/* notify */
.toasts {
  margin-top: 18px;
  display: grid;
  gap: 8px;
}
.toast-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}
.dot-blue {
  background: var(--primary);
}
.dot-amber {
  background: #e08a1e;
}

/* calendar tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}
.tag {
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
}
.t-teal {
  background: var(--teal-soft);
  color: var(--teal);
}
.t-violet {
  background: var(--leave-soft);
  color: var(--leave);
}
.t-amber {
  background: var(--warn-soft);
  color: var(--warn);
}

/* oversight bars */
.bars {
  margin-top: 18px;
  display: grid;
  gap: 8px;
}
.bars div {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
}
.bars i {
  height: 8px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  width: 0;
  transition: width 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.in .bars i {
  width: var(--w);
}

/* reports */
.spark {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 64px;
  margin-top: 18px;
}
.spark i {
  flex: 1;
  border-radius: 6px 6px 3px 3px;
  background: var(--primary-soft);
  height: 8%;
  transition: height 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.spark i:nth-child(3) {
  background: var(--primary);
}
.in .spark i {
  height: var(--h);
}

/* ---------- Interactive planner ---------- */
.planner-sec {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}
.demo {
  position: relative;
  display: grid;
  gap: 16px;
}
@media (min-width: 1000px) {
  .demo {
    grid-template-columns: 1fr 320px;
  }
}
.demo-main,
.demo-side {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}
.demo-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.demo-bar strong {
  display: block;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.demo-bar small {
  color: var(--muted);
  font-size: 13px;
}
.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pgrid {
  display: grid;
  grid-template-columns: minmax(96px, 1.3fr) repeat(5, minmax(40px, 1fr));
  gap: 8px;
  align-items: center;
}
@media (max-width: 480px) {
  .demo-main,
  .demo-side {
    padding: 14px;
  }
  .pgrid {
    grid-template-columns: minmax(80px, 1.2fr) repeat(5, minmax(34px, 1fr));
    gap: 6px;
  }
  .pg-name {
    font-size: 13px;
  }
}
.pg-h {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--faint);
  line-height: 1.2;
}
.pg-h b {
  display: block;
  font-size: 16px;
  color: var(--ink);
}
.pg-name {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
}
.pg-name small {
  display: block;
  font-weight: 600;
  font-size: 11.5px;
  color: var(--faint);
}
.pg-name small.short {
  color: var(--req);
}
.pg-cell {
  height: 44px;
  border-radius: 12px;
  border: 1.5px solid transparent;
  background: var(--surface-2);
  cursor: pointer;
  display: grid;
  place-items: center;
  color: #fff;
  transition: background-color 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
}
.pg-cell:hover {
  border-color: var(--line-strong);
}
.pg-cell:active {
  transform: scale(0.94);
}
.pg-cell .i {
  width: 18px;
  height: 18px;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.pg-cell[aria-pressed='true'] {
  background: var(--primary);
  box-shadow: 0 6px 14px -6px color-mix(in srgb, var(--primary) 80%, transparent);
}
.pg-cell[aria-pressed='true'] .i {
  opacity: 1;
  transform: scale(1);
}
.pg-foot-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
}
.pg-foot {
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.pg-foot.ok {
  background: var(--ok-soft);
  color: var(--ok);
}
.pg-foot.warn {
  background: var(--warn-soft);
  color: var(--warn);
}
.pg-foot.bad {
  background: var(--req-soft);
  color: var(--req);
  animation: shake 0.35s ease;
}
@keyframes shake {
  25% {
    transform: translateX(-3px);
  }
  75% {
    transform: translateX(3px);
  }
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.lg {
  width: 12px;
  height: 12px;
  border-radius: 4px;
}
.lg-on {
  background: var(--primary);
}
.lg-ok {
  background: var(--ok-soft);
  border: 1.5px solid var(--ok);
}
.lg-warn {
  background: var(--warn-soft);
  border: 1.5px solid var(--warn);
}
.lg-bad {
  background: var(--req-soft);
  border: 1.5px solid var(--req);
}
.vhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.vhead strong {
  font-size: 17px;
}
.vbadge {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  background: var(--req-soft);
  color: var(--req);
}
.vbadge.clean {
  background: var(--ok-soft);
  color: var(--ok);
}
.vlist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.vlist li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 11px 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  animation: pop 0.25s ease;
}
.vlist li .i {
  margin-top: 1px;
}
.vlist .v-bad {
  background: var(--req-soft);
  color: var(--req);
}
.vlist .v-warn {
  background: var(--warn-soft);
  color: var(--warn);
}
.vlist .v-ok {
  background: var(--ok-soft);
  color: var(--ok);
}
@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}
.demo-toast {
  position: absolute;
  left: 50%;
  bottom: -22px;
  translate: -50% 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  animation: pop 0.3s ease;
  white-space: nowrap;
}
.demo-toast[hidden] {
  display: none;
}
.demo-toast .i {
  color: #22c55e;
}

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  counter-reset: step;
}
@media (min-width: 700px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1040px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}
.step {
  position: relative;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.step-n {
  position: absolute;
  top: 20px;
  right: 22px;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--line-strong);
}
.step-ic {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 10px 22px -10px var(--primary);
}
.step-ic .i {
  width: 22px;
  height: 22px;
}
.step h3 {
  margin-top: 20px;
  font-size: 19px;
}
.step p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

/* Swap lifecycle */
.swapflow {
  margin-top: 28px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.sf-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.sf-head strong {
  display: block;
  font-size: 18px;
}
.sf-head small {
  color: var(--muted);
  font-size: 14px;
}
.sf-track {
  position: relative;
  display: grid;
  gap: 18px;
  margin-top: 28px;
}
@media (min-width: 760px) {
  .sf-track {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
}
.sf-step {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  align-items: center;
  opacity: 0.4;
  transition: opacity 0.4s ease;
}
.sf-step b {
  font-size: 15px;
}
.sf-step small {
  grid-column: 2;
  color: var(--muted);
  font-size: 13px;
}
.sf-dot {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--line-strong);
  color: var(--faint);
  transition: all 0.4s ease;
}
.sf-dot .i {
  width: 19px;
  height: 19px;
}
.sf-step.done {
  opacity: 1;
}
.sf-step.done .sf-dot {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 6px var(--primary-soft);
}
.sf-step:last-of-type.done .sf-dot {
  background: var(--ok);
  border-color: var(--ok);
  box-shadow: 0 0 0 6px var(--ok-soft);
}
.sf-progress {
  display: none;
}
@media (min-width: 760px) {
  .sf-step {
    grid-template-columns: 1fr;
    justify-items: start;
    row-gap: 4px;
  }
  .sf-dot {
    grid-row: auto;
    margin-bottom: 10px;
  }
  .sf-step small {
    grid-column: 1;
  }
  .sf-progress {
    display: block;
    position: absolute;
    top: 21px;
    left: 22px;
    right: calc(25% - 31px);
    height: 3px;
    border-radius: 3px;
    background: var(--line);
  }
  .sf-progress i {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-2));
    transition: width 0.9s ease;
  }
}

/* ---------- Roles ---------- */
.roles-sec {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}
.tabs {
  display: inline-flex;
  padding: 5px;
  gap: 4px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  margin-bottom: 28px;
  max-width: 100%;
  overflow-x: auto;
}
.tabs button {
  border: 0;
  background: transparent;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.tabs button[aria-selected='true'] {
  background: var(--primary);
  color: #fff;
}
.panel {
  display: grid;
  gap: 32px;
  align-items: center;
  animation: pop 0.35s ease;
}
.panel[hidden] {
  display: none;
}
@media (min-width: 900px) {
  .panel {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
  }
}
.panel h3 {
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.03em;
}
.checks {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.checks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 16px;
  color: var(--ink-2);
}
.checks .i {
  margin-top: 3px;
  padding: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  stroke-width: 3;
}
.art-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  transform: rotate(1.5deg);
}
.art-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.art-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 14px;
  flex-wrap: wrap;
}
.art-row .muted {
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
}
.art-row .avatar {
  width: 30px;
  height: 30px;
}
.ok-txt {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ok);
}
.art-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}
.art-card code {
  display: block;
  padding: 14px;
  border-radius: 12px;
  background: var(--surface-2);
  font-family: ui-monospace, 'Cascadia Code', Menlo, monospace;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-2);
  overflow-x: auto;
  white-space: nowrap;
}

/* ---------- Trust grid ---------- */
.trust {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 640px) {
  .trust {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1040px) {
  .trust {
    grid-template-columns: repeat(4, 1fr);
  }
}
.t-item {
  padding: 28px 24px;
  background: var(--surface);
  transition: background-color 0.2s ease;
}
.t-item:hover {
  background: var(--surface-2);
}
.t-item > .i {
  width: 26px;
  height: 26px;
  color: var(--primary);
}
.t-item h3 {
  margin-top: 16px;
  font-size: 17px;
  letter-spacing: -0.015em;
}
.t-item p {
  margin-top: 6px;
  font-size: 14.5px;
  color: var(--muted);
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: 10px;
}
.faq details {
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 0.2s ease;
}
.faq details[open] {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  font-weight: 700;
  font-size: 16.5px;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-2);
  font-size: 18px;
  font-weight: 600;
  transition: transform 0.25s ease;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  padding: 0 22px 20px;
  color: var(--muted);
}

/* ---------- CTA ---------- */
.cta-sec {
  padding-top: 0;
}
.cta {
  position: relative;
  overflow: hidden;
  padding: 72px 24px;
  border-radius: 28px;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #1a3591 0%, #2447b8 45%, #5b4fd8 100%);
  box-shadow: var(--shadow-lg);
}
.cta-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at 20% 0%, rgba(255, 255, 255, 0.22), transparent 60%),
    radial-gradient(500px circle at 90% 110%, rgba(155, 124, 240, 0.5), transparent 60%);
  pointer-events: none;
}
.cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
  pointer-events: none;
}
.cta > * {
  position: relative;
  z-index: 1;
}
.cta h2 {
  max-width: 720px;
  margin: 0 auto;
  color: #fff;
}
.cta p {
  margin-top: 16px;
  font-size: 18px;
  color: #d6dffa;
}
.cta .hero-cta {
  justify-content: center;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
}
.footer-inner {
  display: grid;
  gap: 20px;
  justify-items: center;
  text-align: center;
}
@media (min-width: 900px) {
  .footer-inner {
    grid-template-columns: auto 1fr;
    justify-items: start;
    text-align: left;
  }
  .footer nav {
    justify-self: end;
  }
  .fine {
    grid-column: 1 / -1;
  }
}
.footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--muted);
}
.footer nav a:hover {
  color: var(--ink);
}
.fine {
  font-size: 13.5px;
  color: var(--faint);
}

/* ---------- Reveal on scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--d, 0s);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}
.js .card.reveal.in:hover {
  transform: translateY(-3px);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Organizations ---------- */
.org-sec {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}
.planner-sec {
  background: none;
  border: 0;
}
.org {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 1000px) {
  .org {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
  }
}
.org-copy h2 {
  font-size: clamp(32px, 3.6vw, 44px);
}
@media (min-width: 1000px) {
  .org {
    align-items: start;
  }
  .org-copy {
    position: sticky;
    top: 110px;
    padding-top: 24px;
  }
}
.org-demo {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.org-bar {
  display: grid;
  gap: 10px;
}
.org-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.org-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.org-roles button {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.org-roles button:hover {
  color: var(--ink);
}
.org-roles button[aria-checked='true'] {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.org-summary {
  margin: 16px 0 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
}
.tree,
.tree ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tree ul {
  margin-left: 15px;
  padding-left: 20px;
  border-left: 2px solid var(--line);
}
.tree li {
  position: relative;
  padding-top: 6px;
}
.tree ul > li::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 26px;
  width: 16px;
  height: 2px;
  background: var(--line);
}
.node {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 7px 12px 7px 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: opacity 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.node.dim {
  opacity: 0.35;
}
.node.root {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.n-ic {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--primary-soft);
  color: var(--primary);
  flex: none;
}
.n-ic .i {
  width: 16px;
  height: 16px;
}
.n-company .n-ic {
  background: var(--primary);
  color: #fff;
}
.n-txt {
  line-height: 1.25;
  min-width: 0;
}
.n-txt b {
  font-size: 14.5px;
}
.n-txt small {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--faint);
}
.n-dot {
  width: 8px;
  height: 8px;
  margin: 0 3px 0 4px;
  border-radius: 50%;
  background: var(--primary);
  flex: none;
}
.n-stat {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}
.n-stat i {
  width: 48px;
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--ok) var(--p), var(--surface-2) var(--p));
}
@media (max-width: 480px) {
  .org-demo {
    padding: 14px;
  }
  .tree ul {
    margin-left: 10px;
    padding-left: 14px;
  }
  .tree ul > li::before {
    left: -14px;
    width: 10px;
  }
  .n-stat i {
    display: none;
  }
}

/* ---------- Pricing ---------- */
.plans {
  display: grid;
  gap: 16px;
  align-items: stretch;
}
@media (min-width: 900px) {
  .plans {
    grid-template-columns: repeat(3, 1fr);
  }
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.plan-featured {
  border: 1.5px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(140deg, var(--primary), var(--primary-2), #9b7cf0) border-box;
  box-shadow: var(--shadow-lg);
}
@media (min-width: 900px) {
  .plan-featured {
    transform: translateY(-10px);
  }
  .js .plan-featured.reveal.in {
    transform: translateY(-10px);
  }
}
.plan-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}
.plan-ic {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
}
.plan-featured .plan-ic {
  background: linear-gradient(140deg, var(--primary), var(--primary-2));
  color: #fff;
}
.plan-ic .i {
  width: 22px;
  height: 22px;
}
.plan h3 {
  margin-top: 18px;
  font-size: 24px;
}
.plan-blurb {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
}
.price {
  display: grid;
  gap: 2px;
  margin: 22px 0;
  padding: 18px 0;
  border-block: 1px solid var(--line);
}
.price-soon {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--ink) 0%, var(--ink) 40%, var(--primary-2) 50%, var(--ink) 60%, var(--ink) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 3.5s ease-in-out infinite;
}
@keyframes shimmer {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: 0% 0;
  }
}
.price small {
  font-size: 13px;
  font-weight: 600;
  color: var(--faint);
}
.plan-lead {
  margin-top: 22px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-2);
}
.plan-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 11px;
}
.plan > .btn + .plan-list {
  margin-top: 22px;
}
.plan-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--ink-2);
}
.plan-list .i {
  margin-top: 3px;
  padding: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--ok-soft);
  color: var(--ok);
  stroke-width: 3;
}

/* ---------- Contact ---------- */
.faq a,
.fine a,
.plans-note a {
  color: var(--primary);
  font-weight: 700;
}
.faq a:hover,
.fine a:hover,
.plans-note a:hover {
  text-decoration: underline;
}
.cta .cta-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-size: 15px;
  color: #d6dffa;
}
.cta-contact a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.plans-note {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
  text-align: center;
  font-size: 15.5px;
  color: var(--muted);
}
.plans-note > .i {
  color: var(--primary);
}
