/* C3 Leadership member portal. Light, warm ground (docs/C3 Leadership Design System.md):
   cream #FAF5EC page, white cards, ink #2B2521, body #5E564E, warm accents #8F4A14 (small) and
   #B4601F (large), orange #F7941E for the main buttons only, a slim dark #1C1917 top bar. */

:root {
  --ground: #faf5ec;
  --sand: #ede4d4;
  --card: #ffffff;
  --ink: #2b2521;
  --body: #5e564e;
  --muted: #6f665d;
  --accent: #8f4a14;
  --accent-lg: #b4601f;
  --orange: #f7941e;
  --tint: rgba(247, 148, 30, 0.12);
  --dark: #1c1917;
  --dark-body: #cfc8c0;
  --dark-muted: #a8a097;
  --amber: #ffd79b;
  --line: rgba(43, 37, 33, 0.2);
  --line-2: rgba(43, 37, 33, 0.32);
  --shadow-sm: 0 1px 2px rgba(43, 37, 33, 0.05), 0 2px 8px -2px rgba(43, 37, 33, 0.06);
  --shadow: 0 1px 2px rgba(43, 37, 33, 0.05), 0 14px 34px -14px rgba(43, 37, 33, 0.2);
  --shadow-lg: 0 2px 4px rgba(43, 37, 33, 0.05), 0 28px 60px -24px rgba(43, 37, 33, 0.32);
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 24px;
  --ease: cubic-bezier(0.22, 0.9, 0.3, 1);
  --wrap: 1160px;
  --gutter: 28px;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ground);
  color: var(--ink);
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16.5px;
  font-weight: 500;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ink);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

p {
  margin: 0;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent-lg);
  outline-offset: 3px;
  border-radius: 6px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip:focus {
  transform: none;
  color: #fff;
}

.nowrap {
  white-space: nowrap;
}

.muted {
  color: var(--muted);
}

main[tabindex]:focus {
  outline: none;
}

/* ------------------------------------------------------------ motion */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.rise {
  animation: rise 0.6s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 55ms);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .boot__bar::after {
    animation: none !important;
    width: 100%;
    opacity: 0.5;
  }
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.22s;
}

/* ------------------------------------------------------------ type */

.eyebrow {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow--dark {
  color: var(--orange);
}

.display {
  font-size: clamp(2.1rem, 4.2vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.display--kit {
  font-size: clamp(2rem, 3.8vw, 3rem);
}

.display--sm {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
}

.lede {
  margin-top: 16px;
  color: var(--body);
  font-size: 18px;
  line-height: 1.6;
}

.count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--sand);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
}

.pill {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--ground);
  color: var(--body);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.pill--new {
  border-color: rgba(143, 74, 20, 0.42);
  background: var(--tint);
  color: var(--accent);
}

/* ------------------------------------------------------------ buttons */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: none;
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.25s var(--ease), transform 0.2s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn .i {
  flex: none;
  transition: transform 0.25s var(--ease);
}

.btn:hover .i-arrowRight {
  transform: translateX(3px);
}

.btn--primary {
  background: var(--orange);
  color: var(--dark);
  font-weight: 700;
}

.btn--ghost {
  border-color: var(--line-2);
  background: transparent;
  color: var(--ink);
}

.btn--ink {
  background: var(--ink);
  color: #fff;
}

/* Hover only where there is a pointer: on touch screens a tapped button keeps no hover look. */
@media (hover: hover) {
  .btn--primary:hover {
    background: var(--accent-lg);
    color: var(--ground);
    transform: translateY(-2px);
  }

  .btn--ghost:hover {
    border-color: var(--accent);
    background: rgba(247, 148, 30, 0.1);
    color: var(--ink);
  }

  .btn--ink:hover {
    background: var(--dark);
    color: var(--ground);
  }
}

.btn--lg {
  min-height: 56px;
  padding: 0 28px;
  font-size: 16.5px;
}

.btn--sm {
  min-height: 42px;
  padding: 0 17px;
  font-size: 14.5px;
}

.btn--block {
  width: 100%;
}

.btn--icon {
  width: 44px;
  min-height: 44px;
  padding: 0;
  border-color: var(--line-2);
  background: var(--card);
}

@media (hover: hover) {
  .btn--icon:hover {
    border-color: var(--accent);
  }
}

.btn.is-busy {
  color: transparent !important;
  pointer-events: none;
}

.btn.is-busy::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 18px;
  height: 18px;
  margin: auto;
  border: 2px solid var(--ink);
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn--ink.is-busy::after {
  border-color: #fff;
  border-right-color: transparent;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.linklike {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}

.linklike:disabled,
.linklike[aria-disabled="true"] {
  color: var(--muted);
  text-decoration: none;
  cursor: default;
}

.btn[aria-disabled="true"] {
  pointer-events: none;
}

.email {
  overflow-wrap: anywhere;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-weight: 600;
  text-decoration: none;
}

.link-arrow:hover {
  text-decoration: underline;
}

/* ------------------------------------------------------------ boot and no-JS */

.boot {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 22px;
  min-height: 100vh;
  animation: fade 0.4s ease both;
}

.boot__bar {
  position: relative;
  width: 120px;
  height: 3px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--sand);
}

.boot__bar::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 40%;
  border-radius: 3px;
  background: var(--orange);
  animation: boot 1.1s var(--ease) infinite;
}

@keyframes boot {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(250%);
  }
}

.noscript {
  max-width: 520px;
  margin: 40px auto;
  padding: 0 20px;
  color: var(--body);
  text-align: center;
}

/* ------------------------------------------------------------ sign in, check inbox */

.auth {
  display: grid;
  grid-template-columns: minmax(380px, 0.92fr) 1.08fr;
  min-height: 100vh;
}

.auth__aside {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 40px;
  font-weight: 400;
  padding: 44px clamp(32px, 4.5vw, 64px) 40px;
  overflow: hidden;
  background: var(--dark);
  color: #fff;
}

.auth__aside::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -30%;
  width: 80%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(247, 148, 30, 0.16), rgba(247, 148, 30, 0));
  pointer-events: none;
}

.auth__logo {
  position: relative;
  display: inline-flex;
  align-self: flex-start;
}

.auth__logo:focus-visible {
  outline-color: var(--amber);
}

.auth__intro {
  position: relative;
  max-width: 440px;
  margin: auto 0;
}

.auth__statement {
  color: #fff;
  font-size: clamp(1.55rem, 2.4vw, 2.05rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.auth__portrait {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
}

.auth__portrait img {
  width: 64px;
  height: 64px;
  border: 1px solid rgba(250, 245, 236, 0.13);
  border-radius: 50%;
  object-fit: cover;
}

.auth__portrait figcaption {
  color: #fff;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.35;
}

.auth__portrait figcaption span {
  display: block;
  color: var(--dark-muted);
  font-size: 14px;
  font-weight: 400;
}

.auth__main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 48px clamp(24px, 5vw, 72px);
}

.auth__card {
  width: 100%;
  max-width: 440px;
}

.auth__card h1 {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.auth__card .lede {
  margin-top: 14px;
  font-size: 17px;
}

.auth__card .muted {
  margin-top: 12px;
  font-size: 15px;
}

.auth__form {
  margin-top: 30px;
}

.field__label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
}

.field__input {
  display: block;
  width: 100%;
  height: 56px;
  padding: 0 18px;
  border: 1px solid #8a8178;
  border-radius: 14px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field__input::placeholder {
  color: var(--muted);
}

.field__input:hover {
  border-color: rgba(43, 37, 33, 0.4);
}

.field__input:focus {
  border-color: var(--accent-lg);
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(180, 96, 31, 0.16);
}

.field__input[aria-invalid="true"] {
  border-color: #a8321c;
  box-shadow: 0 0 0 4px rgba(168, 50, 28, 0.12);
}

.field__error {
  min-height: 22px;
  margin: 8px 0 6px;
  color: #a8321c;
  font-size: 14.5px;
  font-weight: 500;
}

.field__error:empty {
  min-height: 12px;
  margin: 0;
}

.field__note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.auth__small {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--body);
  font-size: 15px;
}

.auth__small a {
  font-weight: 600;
}

.dot {
  color: var(--muted);
}

.auth__help,
.solo__help {
  color: var(--muted);
  font-size: 14.5px;
}

.field__note .i {
  flex: none;
  margin-top: 3px;
}

.auth__help {
  width: 100%;
  max-width: 440px;
}

.auth > *,
.account-grid > * {
  min-width: 0;
}

.auth__help a,
.solo__help a {
  font-weight: 600;
}

.auth__badge {
  display: inline-grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 22px;
  border-radius: 18px;
  background: var(--sand);
  color: var(--accent);
}

.auth__mail {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.auth__mail + .btn {
  margin-top: 14px;
}

/* A single card on the cream ground: the sign-in button page, errors. */
.solo {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 32px 20px;
  background: radial-gradient(ellipse at 50% 0%, var(--sand), var(--ground) 62%);
}

.solo__card {
  width: 100%;
  max-width: 460px;
  padding: 40px clamp(24px, 5vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--shadow-lg);
}

.solo__logo {
  display: block;
  width: 194px;
  height: auto;
  margin-bottom: 30px;
}

.solo__logo img {
  width: 194px;
  height: auto;
}

.solo__card h1 {
  font-size: clamp(1.75rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
}

.solo__card .lede {
  margin: 12px 0 26px;
  font-size: 17px;
}

.solo__help {
  margin-top: 22px;
}

/* ------------------------------------------------------------ signed-in shell */

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.wrap--narrow {
  max-width: calc(720px + var(--gutter) * 2);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  font-weight: 400;
  background: var(--dark);
  box-shadow: 0 1px 0 rgba(250, 245, 236, 0.06);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  height: 68px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.topbar__logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--dark-muted);
  text-decoration: none;
}

.topbar__logo img {
  width: 172px;
  height: auto;
}

.topbar__tag {
  padding-left: 14px;
  border-left: 1px solid rgba(250, 245, 236, 0.18);
  color: var(--dark-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.topbar :focus-visible {
  outline-color: var(--amber);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--dark-body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav__link:hover {
  background: rgba(250, 245, 236, 0.07);
  color: #fff;
}

.nav__link[aria-current="page"] {
  background: rgba(247, 148, 30, 0.14);
  color: var(--amber);
}

.nav__link--button.is-busy {
  opacity: 0.5;
  pointer-events: none;
}

#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page {
  flex: 1 0 auto;
  padding-bottom: 72px;
}

.foot {
  border-top: 1px solid var(--line);
}

.foot__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 26px var(--gutter) 34px;
  color: var(--muted);
  font-size: 14px;
}

.foot nav {
  display: flex;
  gap: 20px;
}

.foot a {
  color: var(--body);
  text-decoration: none;
}

.foot a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* ------------------------------------------------------------ home */

.welcome {
  padding: clamp(48px, 7vw, 84px) 0 clamp(40px, 5vw, 60px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 120% at 100% 0%, rgba(247, 148, 30, 0.1), rgba(247, 148, 30, 0) 70%),
    linear-gradient(180deg, var(--sand), var(--ground));
}

.welcome--short {
  padding: clamp(40px, 6vw, 64px) 0 clamp(32px, 4vw, 44px);
}

.welcome__statement {
  overflow-wrap: anywhere;
  max-width: 620px;
  margin-top: 16px;
  color: var(--body);
  font-size: clamp(17px, 1.6vw, 19.5px);
  line-height: 1.55;
}

.block {
  padding-top: clamp(40px, 5vw, 56px);
}

.block__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.block__head h2 {
  font-size: clamp(1.4rem, 2vw, 1.7rem);
  letter-spacing: -0.025em;
}

.kit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.kit-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s ease;
}

.kit-card:hover {
  border-color: var(--line-2);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.kit-card:focus-visible {
  border-radius: var(--r-lg);
}

.kit-card__cover {
  position: relative;
  display: block;
  aspect-ratio: 1500 / 844;
  overflow: hidden;
  background: var(--sand);
}

.kit-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.kit-card:hover .kit-card__cover img {
  transform: scale(1.035);
}

.kit-card__cover .pill {
  position: absolute;
  top: 18px;
  left: 18px;
}

.kit-card__cover .pill--new {
  border-color: rgba(247, 148, 30, 0.5);
  background: var(--dark);
  color: var(--orange);
}

.kit-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px 24px 24px;
}

.kit-card__body .eyebrow {
  margin-bottom: 8px;
}

.kit-card__title {
  color: var(--ink);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.22;
}

.kit-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14.5px;
}

.kit-card__go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
  color: var(--accent);
  font-size: 15.5px;
  font-weight: 700;
}

.kit-card__go .i {
  transition: transform 0.3s var(--ease);
}

.kit-card:hover .kit-card__go .i {
  transform: translateX(4px);
}

.more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 28px;
  color: var(--body);
  font-size: 15.5px;
}

.more a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
}

.help {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px 24px;
  margin-top: clamp(48px, 6vw, 72px);
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.help img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.help h2 {
  font-size: 19px;
  letter-spacing: -0.015em;
}

.help p {
  margin-top: 4px;
  color: var(--body);
  font-size: 15.5px;
}

.empty {
  padding: 34px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-lg);
  background: var(--card);
}

.empty h1,
.empty h3 {
  font-size: 21px;
  line-height: 1.3;
}

.empty--page {
  margin-top: clamp(40px, 7vw, 88px);
  padding: clamp(28px, 5vw, 48px);
  border-style: solid;
  box-shadow: var(--shadow);
}

.empty--page h1 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.empty .eyebrow {
  margin-top: 0;
  color: var(--accent);
}

.empty p {
  margin-top: 10px;
  color: var(--body);
}

.empty__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* ------------------------------------------------------------ kit page */

.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  color: var(--body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.back:hover {
  background: var(--sand);
  color: var(--ink);
}

.back .i {
  transition: transform 0.25s var(--ease);
}

.back:hover .i {
  transform: translateX(-3px);
}

.kit-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  padding: 20px 0 clamp(36px, 5vw, 52px);
}

.kit-hero .lede {
  max-width: 560px;
}

.kit-hero__cover {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--sand);
  box-shadow: var(--shadow-lg);
}

.kit-hero__cover img {
  width: 100%;
  aspect-ratio: 1500 / 844;
  object-fit: cover;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--body);
  font-size: 14.5px;
  font-weight: 500;
}

.facts .i {
  color: var(--accent);
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 28px;
  padding: 16px 20px;
  border: 1px solid rgba(143, 74, 20, 0.42);
  border-radius: var(--r);
  background: var(--tint);
  color: var(--ink);
  font-size: 15.5px;
}

.notice .i {
  flex: none;
  margin-top: 2px;
  color: var(--accent);
}

.start {
  padding: 26px 28px 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.start h2 {
  font-size: 19px;
  letter-spacing: -0.015em;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.step {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding: 16px 16px 16px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--ground);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.25s var(--ease);
}

.step:hover {
  border-color: var(--line-2);
  background: #fff;
  color: var(--ink);
  transform: translateY(-2px);
}

.step > .i {
  color: var(--muted);
  transition: transform 0.25s var(--ease), color 0.2s ease;
}

.step:hover > .i {
  color: var(--accent);
  transform: translateX(3px);
}

.step__n {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.step__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--sand);
  color: var(--accent);
}

.step__text b {
  display: block;
  font-size: 15.5px;
  line-height: 1.3;
}

.step__text span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.kit-body {
  display: grid;
  grid-template-columns: 240px 1fr;
  align-items: start;
  gap: clamp(28px, 4vw, 52px);
  margin-top: clamp(40px, 5vw, 56px);
}

.rail {
  position: sticky;
  top: 96px;
}

.rail__label {
  margin-bottom: 10px;
  padding-left: 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.rail ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rail__item {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  color: var(--body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.rail__item:hover {
  background: var(--sand);
  color: var(--ink);
}

.rail__item.is-active {
  background: var(--card);
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.rail__num {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.rail__count {
  color: var(--muted);
  font-size: 13px;
}

.folders {
  display: grid;
  gap: clamp(40px, 5vw, 56px);
  min-width: 0;
}

.folder__head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.folder__num {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--orange);
  font-size: 16px;
  font-weight: 700;
}

.folder__head h2 {
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  letter-spacing: -0.025em;
}

.folder__head p {
  margin-top: 4px;
  color: var(--body);
}

.group + .group,
.files + .group,
.group + .files {
  margin-top: 26px;
}

.group__intro {
  margin: -6px 0 14px 2px;
  color: var(--body);
  font-size: 15.5px;
}

.group__title {
  margin: 0 0 12px 2px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.files {
  display: grid;
  gap: 12px;
}

.file {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 256px;
  align-items: start;
  gap: 18px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s ease, box-shadow 0.3s var(--ease);
}

.file:hover {
  border-color: var(--line-2);
  box-shadow: var(--shadow);
}

.file.is-flash {
  animation: flash 1.6s var(--ease);
}

@keyframes flash {
  0%,
  35% {
    border-color: var(--accent-lg);
    box-shadow: 0 0 0 4px rgba(180, 96, 31, 0.16), var(--shadow);
  }
}

.file__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--tint);
  color: var(--accent);
}

.file__icon--pptx {
  background: #f3d9bc;
  color: var(--accent);
}

.file__icon--docx {
  background: var(--sand);
  color: var(--ink);
}

.file__main {
  min-width: 0;
}

.file__title {
  font-size: 17.5px;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.file__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.file__tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.file__desc {
  max-width: 640px;
  margin-top: 10px;
  color: var(--body);
  font-size: 15.5px;
  line-height: 1.55;
}

.note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 640px;
  margin-top: 12px;
  padding: 11px 14px;
  border-radius: var(--r-sm);
  background: var(--ground);
  color: var(--body);
  font-size: 14.5px;
  line-height: 1.5;
}

.note .i {
  flex: none;
  margin-top: 2px;
  color: var(--accent);
}

.file__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.file__done {
  display: inline-flex;
  flex-basis: 100%;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  color: var(--body);
  font-size: 13.5px;
  font-weight: 600;
}

.file__done .i {
  color: var(--accent);
}

/* ------------------------------------------------------------ account */

.account-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding-top: clamp(36px, 5vw, 52px);
}

.panel {
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.panel--wide {
  grid-column: 1 / -1;
}

.panel__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.panel__head h2 {
  font-size: 19px;
  letter-spacing: -0.015em;
}

.panel > p {
  color: var(--body);
}

.panel__foot {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--body);
  font-size: 15px;
}

.panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.purchases {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.purchases li + li {
  border-top: 1px solid var(--line);
}

.purchase {
  display: grid;
  grid-template-columns: 112px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 12px 8px;
  margin: 0 -8px;
  border-radius: var(--r-sm);
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.2s ease;
}

@media (hover: hover) {
  .purchase:hover {
    background: var(--ground);
    color: var(--ink);
  }
}

.purchase img {
  width: 112px;
  aspect-ratio: 1500 / 844;
  border-radius: 10px;
  object-fit: cover;
}

.purchase__text b {
  display: block;
  font-size: 16.5px;
  line-height: 1.3;
}

.purchase__text > span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 14.5px;
}

.purchase__go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
}

.panel__note {
  margin-top: 16px;
  color: var(--body);
  font-size: 15px;
}

.panel__note + .link-arrow {
  margin-top: 8px;
}

.ticks {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--body);
  font-size: 15.5px;
}

.ticks .i {
  flex: none;
  margin-top: 4px;
  color: var(--accent);
}

.ticks .is-no .i {
  color: var(--ink);
}

/* ------------------------------------------------------------ toasts */

.toasts {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 60;
  display: grid;
  gap: 8px;
  width: max-content;
  max-width: calc(100vw - 32px);
  transform: translateX(-50%);
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 12px 12px;
  border-radius: 999px;
  background: var(--dark);
  color: #fff;
  font-size: 15px;
  font-weight: 400;
  box-shadow: var(--shadow-lg);
  animation: rise 0.35s var(--ease) both;
  transition: opacity 0.4s ease, transform 0.4s var(--ease);
}

.toast.is-leaving {
  opacity: 0;
  transform: translateY(8px);
}

.toast__icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(247, 148, 30, 0.18);
  color: var(--orange);
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 1080px) {
  .kit-body {
    grid-template-columns: 1fr;
  }

  .rail {
    display: none;
  }

  .steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .auth {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .auth__aside {
    gap: 22px;
    padding: 28px var(--gutter) 30px;
  }

  .auth__intro {
    margin-top: 0;
  }

  .auth__intro .eyebrow {
    margin-bottom: 8px;
  }

  .auth__statement {
    font-size: 1.3rem;
  }

  .auth__portrait {
    display: none;
  }

  .auth__main {
    align-items: flex-start;
    justify-content: flex-start;
    padding: 36px var(--gutter) 48px;
  }

  .kit-hero {
    grid-template-columns: 1fr;
    padding-top: 12px;
  }

  .kit-hero__cover {
    order: -1;
  }

  .account-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }

  body {
    font-size: 16px;
  }

  .topbar__inner {
    height: 60px;
  }

  .topbar__logo img {
    width: 138px;
  }

  .topbar__tag {
    display: none;
  }

  .topbar__inner {
    gap: 8px;
  }

  .nav {
    gap: 0;
  }

  .nav__link {
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    width: 64px;
    height: 52px;
    padding: 0;
    border-radius: 14px;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.1;
  }

  .topbar__logo {
    min-height: 44px;
  }

  .foot a,
  .auth__small a,
  .auth__small .linklike,
  .link-arrow {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .back {
    min-height: 44px;
  }

  .btn--sm {
    min-height: 44px;
  }

  .lede {
    font-size: 17px;
  }

  .kit-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .kit-card__body {
    padding: 18px 20px 20px;
  }

  .help {
    grid-template-columns: auto 1fr;
    padding: 22px;
  }

  .help .btn {
    grid-column: 1 / -1;
  }

  .start {
    padding: 22px 18px;
  }

  .file {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    padding: 18px;
  }

  .file__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .file__actions {
    grid-column: 1 / -1;
    justify-content: stretch;
    max-width: none;
  }

  .file__actions .btn {
    flex: 1;
    min-height: 46px;
  }

  .file__done {
    justify-content: flex-start;
  }

  .folder__num {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 15px;
  }

  .purchase {
    grid-template-columns: 72px minmax(0, 1fr) auto;
    align-items: start;
    gap: 14px;
  }

  .purchase img {
    width: 72px;
    margin-top: 3px;
  }

  .purchase__go {
    min-height: 44px;
    font-size: 0;
  }

  .purchase__go .i {
    width: 20px;
    height: 20px;
  }

  .panel {
    padding: 22px 20px;
  }

}

@media (max-width: 380px) {
  .topbar__logo img {
    width: 112px;
  }

  .nav__link {
    width: 54px;
  }
}

/* Windows High Contrast and other forced-color modes: keep the logos on their dark ground and
   mark the current page without relying on color. */
@media (forced-colors: active) {
  .topbar__logo img,
  .auth__logo img {
    forced-color-adjust: none;
    padding: 4px;
    border-radius: 6px;
    background: #1c1917;
  }

  .nav__link[aria-current="page"] {
    text-decoration: underline;
    text-underline-offset: 6px;
  }
}

/* ============================================================ motion and depth (2026-10-15)
   Soft, continuous movement only: drifting light, a ring of light that travels around a card,
   gentle tilt, fades on scroll. Nothing flashes. Everything stops for reduced motion. */

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes spin-angle {
  to {
    --angle: 360deg;
  }
}

@keyframes drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(6%, 8%) scale(1.12); }
}

@keyframes drift-b {
  0%, 100% { transform: translate(0, 0) scale(1.05); }
  50% { transform: translate(-8%, -4%) scale(0.95); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-0.4deg); }
  50% { transform: translateY(-10px) rotate(0.4deg); }
}

@keyframes sheen {
  0% { transform: translateX(-120%) skewX(-18deg); }
  60%, 100% { transform: translateX(220%) skewX(-18deg); }
}

@keyframes draw {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes pop {
  0% { transform: scale(0.4); opacity: 0; }
  60% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); }
}

.accent {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-lg) 45%, var(--orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ------------------------------------------------------------ reveal on scroll */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------ top bar */

.topbar {
  background: rgba(28, 25, 23, 0.92);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
}

.topbar::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(247, 148, 30, 0.7), transparent);
  background-size: 200% 100%;
  animation: bar-glide 9s linear infinite;
}

@keyframes bar-glide {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

/* ------------------------------------------------------------ home: welcome */

.welcome--home {
  position: relative;
  overflow: hidden;
  padding-bottom: clamp(44px, 6vw, 72px);
}

.aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.aurora span {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
}

.aurora span:nth-child(1) {
  top: -30%;
  right: -8%;
  width: 46vw;
  height: 46vw;
  max-width: 640px;
  max-height: 640px;
  background: radial-gradient(closest-side, rgba(247, 148, 30, 0.45), transparent);
  animation: drift-a 18s ease-in-out infinite;
}

.aurora span:nth-child(2) {
  bottom: -40%;
  left: 20%;
  width: 40vw;
  height: 40vw;
  max-width: 560px;
  max-height: 560px;
  background: radial-gradient(closest-side, rgba(180, 96, 31, 0.28), transparent);
  animation: drift-b 22s ease-in-out infinite;
}

.aurora span:nth-child(3) {
  top: 10%;
  left: -10%;
  width: 30vw;
  height: 30vw;
  max-width: 420px;
  max-height: 420px;
  background: radial-gradient(closest-side, rgba(255, 215, 155, 0.6), transparent);
  animation: drift-a 26s ease-in-out infinite reverse;
}

.welcome--home .wrap {
  position: relative;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.stats li {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 200px;
  padding: 14px 20px 14px 14px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px -18px rgba(43, 37, 33, 0.35);
}

.stats__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--orange), var(--accent-lg));
  color: #fff;
  box-shadow: 0 8px 18px -10px rgba(180, 96, 31, 0.9);
}

.stats b {
  display: block;
  color: var(--ink);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.stats small {
  display: block;
  margin-top: 2px;
  color: var(--body);
  font-size: 13.5px;
  font-weight: 500;
}

/* ------------------------------------------------------------ home: kit cards */

.kit-grid {
  perspective: 1400px;
}

.kit-card {
  position: relative;
  isolation: isolate;
  overflow: visible;
  border-color: transparent;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out, box-shadow 0.4s var(--ease);
}

.kit-card:hover {
  transform: translateY(-6px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}

.kit-card > .kit-card__cover {
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}

/* A thin ring of light that travels around the card on hover. */
.kit-card__ring {
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: calc(var(--r-lg) + 1px);
  padding: 1.5px;
  background: conic-gradient(from var(--angle), rgba(43, 37, 33, 0.14) 0deg, rgba(43, 37, 33, 0.14) 250deg, var(--orange) 300deg, var(--amber) 330deg, rgba(43, 37, 33, 0.14) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: spin-angle 4.5s linear infinite paused;
  transition: opacity 0.4s ease;
}

.kit-card:hover .kit-card__ring,
.kit-card:focus-visible .kit-card__ring {
  animation-play-state: running;
}

/* Light that follows the pointer. */
.kit-card__shine {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: var(--r-lg);
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.28), transparent 45%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.kit-card:hover .kit-card__shine {
  opacity: 1;
}

.kit-card__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: translateX(-120%) skewX(-18deg);
  pointer-events: none;
}

.kit-card:hover .kit-card__cover::after {
  animation: sheen 1.4s var(--ease);
}

.kit-card__go {
  align-self: flex-start;
  padding: 10px 16px 10px 18px;
  margin-top: auto;
  border-radius: 999px;
  background: var(--tint);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.kit-card:hover .kit-card__go {
  background: var(--ink);
  color: #fff;
}

.kit-card__body {
  gap: 0;
}

.kit-card__meta + .kit-card__go {
  margin-top: 20px;
}

/* ------------------------------------------------------------ kit page: hero */

.kit-hero__stage {
  position: relative;
}

.kit-hero__glow {
  position: absolute;
  inset: 8% 6% -6%;
  border-radius: 40px;
  background: radial-gradient(closest-side, rgba(247, 148, 30, 0.45), transparent);
  filter: blur(40px);
  animation: drift-b 14s ease-in-out infinite;
}

.kit-hero__cover {
  position: relative;
}

.kit-hero__shine {
  position: absolute;
  inset: 0;
  width: 35%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  animation: sheen 7s ease-in-out 1.2s infinite;
  pointer-events: none;
}

/* ------------------------------------------------------------ kit page: start here */

.start {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(600px 200px at 0% 0%, rgba(247, 148, 30, 0.08), transparent),
    var(--card);
}

.steps-wrap {
  position: relative;
}

.steps-wrap .steps {
  position: relative;
}

.steps li {
  position: relative;
}

.step {
  position: relative;
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.step__n {
  background: linear-gradient(135deg, var(--ink), #4a3f37);
  box-shadow: 0 0 0 4px var(--card), 0 0 0 5px rgba(247, 148, 30, 0.35);
}

.step:hover .step__icon {
  background: linear-gradient(135deg, var(--orange), var(--accent-lg));
  color: #fff;
}

.step__icon {
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s var(--ease);
}

.step:hover .step__icon {
  transform: rotate(-6deg) scale(1.06);
}

/* ------------------------------------------------------------ kit page: the "In this kit" track */

.rail__card {
  padding: 20px 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(240px 160px at 100% 0%, rgba(247, 148, 30, 0.1), transparent),
    var(--card);
  box-shadow: var(--shadow);
}

.rail__card .rail__label {
  padding-left: 6px;
}

.rail__track {
  position: relative;
}

.rail__track ol {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* The line behind the folder icons, and how far down it is filled. */
.rail__line {
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 25px;
  width: 2px;
  border-radius: 2px;
  background: var(--sand);
}

.rail__fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--amber), var(--orange));
  box-shadow: 0 0 10px rgba(247, 148, 30, 0.6);
  transition: height 0.6s var(--ease);
}

/* The highlight that glides to the current folder. */
.rail__indicator {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(100deg, rgba(247, 148, 30, 0.14), rgba(247, 148, 30, 0.04));
  box-shadow: inset 0 0 0 1px rgba(247, 148, 30, 0.28);
  transition: transform 0.55s var(--ease), height 0.55s var(--ease);
}

.rail__item {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 8px;
  border-radius: 14px;
  background: none !important;
  box-shadow: none !important;
}

.rail__node {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--card);
  color: var(--muted);
  transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s var(--ease);
}

.rail__item.is-past .rail__node {
  border-color: var(--orange);
  color: var(--accent);
}

.rail__item.is-active .rail__node {
  border-color: transparent;
  background: linear-gradient(135deg, var(--orange), var(--accent-lg));
  color: #fff;
  box-shadow: 0 0 0 4px rgba(247, 148, 30, 0.18), 0 8px 18px -8px rgba(180, 96, 31, 0.9);
  transform: scale(1.06);
}

/* A soft pulse around the current folder's icon. */
.rail__item.is-active .rail__node::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid rgba(247, 148, 30, 0.5);
  animation: ring 2.4s ease-out infinite;
}

@keyframes ring {
  from { transform: scale(0.8); opacity: 0.9; }
  to { transform: scale(1.35); opacity: 0; }
}

.rail__text {
  min-width: 0;
}

.rail__title {
  display: block;
  color: var(--body);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.25;
  transition: color 0.3s ease;
}

.rail__meta {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
}

.rail__item.is-active .rail__title,
.rail__item:hover .rail__title {
  color: var(--ink);
}

.rail__item .rail__num {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  opacity: 0.6;
}

.rail__item.is-active .rail__num {
  color: var(--accent);
  opacity: 1;
}

.rail__total {
  margin: 14px 6px 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--body);
  font-size: 13.5px;
  font-weight: 500;
}

.rail__total span {
  color: var(--ink);
  font-weight: 700;
}

/* ------------------------------------------------------------ kit page: folders and files */

.folder__num {
  position: relative;
  overflow: hidden;
  width: auto;
  min-width: 46px;
  padding: 0 12px;
  gap: 8px;
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, var(--ink), #3d342e);
  box-shadow: 0 10px 22px -12px rgba(28, 25, 23, 0.8);
}

.folder__num .i {
  color: var(--amber);
}

.folder__num::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 50%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: translateX(-120%) skewX(-18deg);
}

.folder__head.is-visible .folder__num::after {
  animation: sheen 1.6s var(--ease) 0.3s;
}

.file {
  position: relative;
  overflow: hidden;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), border-color 0.3s ease, box-shadow 0.35s var(--ease);
}

/* An orange edge that grows on hover. */
.file::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--amber), var(--orange));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease);
}

.file:hover::before,
.file:focus-within::before {
  transform: scaleY(1);
}

.file.reveal.is-visible:hover {
  transform: translateY(-2px);
}

.file__icon {
  transition: background 0.35s ease, color 0.35s ease, transform 0.35s var(--ease), box-shadow 0.35s ease;
}

.file:hover .file__icon {
  background: linear-gradient(135deg, var(--orange), var(--accent-lg));
  color: #fff;
  box-shadow: 0 10px 20px -10px rgba(180, 96, 31, 0.9);
  transform: rotate(-5deg) scale(1.05);
}

.file.is-downloaded .file__icon {
  box-shadow: inset 0 0 0 1.5px rgba(247, 148, 30, 0.5);
}

/* Download button: the arrow nudges down on hover; after a download it turns into a check. */
.btn--dl .dl__icon {
  position: relative;
  display: inline-grid;
  width: 17px;
  height: 17px;
}

.btn--dl .dl__icon .i {
  position: absolute;
  inset: 0;
  transition: transform 0.35s var(--ease), opacity 0.25s ease;
}

.btn--dl .dl__icon .i-check {
  opacity: 0;
  transform: scale(0.4);
}

@media (hover: hover) {
  .btn--dl:hover .dl__icon .i-download {
    animation: nudge 0.9s var(--ease) infinite;
  }
}

@keyframes nudge {
  0%, 100% { transform: translateY(-1px); }
  50% { transform: translateY(2px); }
}

.btn--dl.is-done {
  background: linear-gradient(135deg, var(--orange), var(--accent-lg));
  color: #fff;
}

.btn--dl.is-done .dl__icon .i-download {
  opacity: 0;
  transform: translateY(6px);
}

.btn--dl.is-done .dl__icon .i-check {
  animation: pop 0.5s var(--ease) both;
}

/* ------------------------------------------------------------ help card */

.help {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(500px 220px at 100% 50%, rgba(247, 148, 30, 0.09), transparent),
    var(--card);
}

.help img {
  box-shadow: 0 0 0 3px var(--card), 0 0 0 5px rgba(247, 148, 30, 0.45);
}

/* ------------------------------------------------------------ kit page: license strip and start here (v3) */

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  justify-content: start;
  width: fit-content;
  max-width: 100%;
  margin: 28px 0 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.facts > div {
  padding: 12px 22px 12px 18px;
}

.facts > div + div {
  border-left: 1px solid var(--line);
}

.facts dt {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.facts dt .i {
  color: var(--accent);
}

.facts dd {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* Start here: a dark panel with a band of light running around its border. */
.start {
  isolation: isolate;
  padding: 30px 30px 30px;
  border: 0;
  background:
    radial-gradient(520px 220px at 0% 0%, rgba(247, 148, 30, 0.2), transparent 70%),
    radial-gradient(420px 200px at 100% 100%, rgba(180, 96, 31, 0.18), transparent 70%),
    var(--dark);
  box-shadow: var(--shadow-lg);
  color: #fff;
}

.start::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 1.5px;
  border-radius: inherit;
  background:
    conic-gradient(from var(--angle), transparent 0 58%, rgba(247, 148, 30, 0.5) 72%, #f7941e 84%, #ffd79b 90%, transparent 97%),
    linear-gradient(rgba(255, 215, 155, 0.14), rgba(255, 215, 155, 0.14));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: spin-angle 6s linear infinite;
  pointer-events: none;
}

.start__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
}

.start h2 {
  color: #fff;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.start__head p {
  color: var(--dark-muted);
  font-size: 15px;
}

.start .steps {
  gap: 16px;
  margin-top: 22px;
  counter-reset: none;
}

.start .step {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  padding: 18px 18px 18px;
  border: 1px solid rgba(255, 215, 155, 0.12);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
  color: #fff;
  transition: transform 0.3s var(--ease), border-color 0.3s ease, background-color 0.3s ease;
}

.start .step:hover {
  border-color: rgba(247, 148, 30, 0.55);
  background: rgba(247, 148, 30, 0.08);
  color: #fff;
  transform: translateY(-3px);
}

.step__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.start .step__icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: linear-gradient(140deg, var(--amber), var(--orange) 55%, var(--accent-lg));
  color: var(--dark);
  box-shadow: 0 8px 20px -8px rgba(247, 148, 30, 0.7);
}

.start .step:hover .step__icon {
  background: linear-gradient(140deg, var(--amber), var(--orange) 55%, var(--accent-lg));
  color: var(--dark);
}

.start .step__n {
  width: auto;
  height: auto;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 215, 155, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 215, 155, 0.18);
  color: var(--amber);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.start .step__text b {
  color: #fff;
  font-size: 17px;
}

.start .step__text span {
  margin-top: 4px;
  color: var(--dark-muted);
  font-size: 14.5px;
}

.step__go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--amber);
}

.step__go .i {
  transition: transform 0.3s var(--ease);
}

.start .step:hover .step__go .i {
  transform: translateX(4px);
}

.start .step:focus-visible {
  outline-color: var(--amber);
}

@media (max-width: 1080px) {
  .start .step {
    flex-direction: row;
    align-items: center;
  }

  .step__top {
    flex: none;
  }

  .start .step__n {
    display: none;
  }

  .step__text {
    flex: 1;
    min-width: 0;
  }

  .step__go {
    margin-top: 0;
  }
}

@media (max-width: 700px) {
  .facts {
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .facts > div {
    padding: 11px 14px;
  }

  .facts > div:first-child {
    grid-column: 1 / -1;
    border-bottom: 1px solid var(--line);
  }

  .facts > div:nth-child(2) {
    border-left: 0;
  }

  .start {
    padding: 24px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .start::before {
    animation: none !important;
  }
}

/* ------------------------------------------------------------ small screens */

@media (max-width: 900px) {

  @keyframes draw-y {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
  }
}

@media (min-width: 1081px) {
  .kit-body {
    grid-template-columns: 284px 1fr;
  }
}

@media (max-width: 640px) {
  .stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 24px;
  }

  .stats li {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    padding: 12px;
    border-radius: 16px;
  }

  .stats__icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }

  .stats__icon .i {
    width: 17px;
    height: 17px;
  }

  .stats b {
    font-size: 17px;
  }

  .stats small {
    font-size: 11.5px;
    line-height: 1.3;
  }

  .aurora span {
    filter: blur(40px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }

  .aurora span,
  .kit-hero__glow,
  .kit-hero__cover,
  .kit-hero__shine,
  .topbar::after,
  .rail__item.is-active .rail__node::after {
    animation: none !important;
  }

  .kit-card {
    transform: none !important;
  }
}

/* ============================================================ sign-in graphic: the portal
   A ring of light with the kit covers cycling through it, two tilted orbits, and the kinds of
   files a member downloads floating around it. Sized in em so it scales from phone to desktop. */

.auth__aside::after {
  content: "";
  position: absolute;
  bottom: -25%;
  left: -25%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(180, 96, 31, 0.22), rgba(180, 96, 31, 0));
  animation: drift-b 22s ease-in-out infinite;
  pointer-events: none;
}

.auth__aside::before {
  animation: drift-a 18s ease-in-out infinite;
}

.auth__aside > * {
  z-index: 1;
}

.auth__intro {
  margin: 0;
}

.auth__logo { order: 0; }
.pa { order: 1; }
.auth__intro { order: 2; }
.auth__portrait { order: 3; }

.pa {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 400px, 44vh);
  aspect-ratio: 1;
  margin: auto;
  pointer-events: none;
}

.pa > * {
  grid-area: 1 / 1;
}

.pa__halo {
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(247, 148, 30, 0.22), rgba(247, 148, 30, 0.05) 55%, transparent);
  animation: pa-breathe 10s ease-in-out infinite;
}

@keyframes pa-breathe {
  0%, 100% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.04); opacity: 1; }
}

/* A band of light that travels around the vault frame. */
.pa__ring {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
}

.pa__ring::before,
.pa__ring::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from var(--angle), transparent 0 62%, rgba(247, 148, 30, 0.25) 74%, #f7941e 88%, #ffd79b 93%, transparent 96%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  animation: spin-angle 9s linear infinite;
}

.pa__ring::after {
  inset: -4px;
  filter: blur(8px);
  opacity: 0.7;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 12px), #000 calc(100% - 6px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 12px), #000 calc(100% - 6px));
}

.pa {
  perspective: 900px;
}

.pa__frame,
.pa__door {
  width: 92%;
  height: auto;
}

.pa__frame {
  overflow: visible;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.5));
}

.pa__door svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

/* The vault loop, 12 seconds: turn the wheel, slide the bolts back, swing the door open on its
   left hinge, hold, close, lock. */
.pa__door {
  transform-origin: 18.5% 50%;
  animation: pa-door 12s cubic-bezier(0.65, 0, 0.35, 1) infinite;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.45));
}

@keyframes pa-door {
  0%, 26% { transform: rotateY(0deg); }
  40%, 62% { transform: rotateY(-78deg); }
  76%, 100% { transform: rotateY(0deg); }
}

.pa__ticks {
  transform-origin: 200px 200px;
  animation: pa-turn 80s linear infinite;
}

@keyframes pa-turn {
  to { transform: rotate(360deg); }
}

.pa__wheel {
  transform-origin: 200px 200px;
  animation: pa-wheel 12s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes pa-wheel {
  0%, 6% { transform: rotate(0deg); }
  20%, 80% { transform: rotate(180deg); }
  94%, 100% { transform: rotate(0deg); }
}

.pa__bolts {
  transform-origin: 200px 200px;
  animation: pa-bolts 12s ease-in-out infinite;
}

@keyframes pa-bolts {
  0%, 20%, 82%, 100% { transform: scale(1); }
  26%, 76% { transform: scale(0.86); }
}

.pa__hub-glow {
  transform-origin: 200px 200px;
  opacity: 0;
  filter: blur(10px);
  animation: pa-glow 12s ease-in-out infinite;
}

@keyframes pa-glow {
  0%, 16%, 30%, 100% { opacity: 0; transform: scale(0.8); }
  22%, 25% { opacity: 0.8; transform: scale(1.3); }
}

/* The warm light inside, brightest while the door is open. */
.pa__inside {
  transform-origin: 200px 200px;
  opacity: 0.35;
  animation: pa-inside 12s ease-in-out infinite;
}

@keyframes pa-inside {
  0%, 28%, 76%, 100% { opacity: 0.35; transform: scale(0.96); }
  42%, 60% { opacity: 1; transform: scale(1); }
}

.pa__halo {
  animation: pa-halo 12s ease-in-out infinite;
}

@keyframes pa-halo {
  0%, 28%, 76%, 100% { transform: scale(0.95); opacity: 0.6; }
  44%, 60% { transform: scale(1.08); opacity: 1; }
}

/* Inside the vault: a folder rises and its pages lift out while the door is open. */
.pa__folder {
  transform-origin: 200px 230px;
  opacity: 0;
  animation: pa-folder 12s cubic-bezier(0.34, 1.3, 0.64, 1) infinite;
}

@keyframes pa-folder {
  0%, 32% { opacity: 0; transform: translateY(18px) scale(0.72); }
  44%, 62% { opacity: 1; transform: translateY(0) scale(1); }
  72%, 100% { opacity: 0; transform: translateY(14px) scale(0.78); }
}

.pa__sheet {
  transform-origin: 200px 234px;
  animation: pa-sheet 12s cubic-bezier(0.34, 1.4, 0.64, 1) infinite;
}

.pa__sheet--1 { --lift: -12px; --x: -16px; animation-delay: 0s; }
.pa__sheet--2 { --lift: -26px; --x: 0px; animation-delay: 0.12s; }
.pa__sheet--3 { --lift: -16px; --x: 16px; animation-delay: 0.24s; }

@keyframes pa-sheet {
  0%, 40% { transform: translateY(26px) rotate(0deg); }
  50%, 60% { transform: translate(var(--x), var(--lift)) rotate(var(--r)); }
  68%, 100% { transform: translateY(26px) rotate(0deg); }
}

/* "Member portal": a pill with a band of light running around its border. */
.auth__tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-bottom: 18px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  background: rgba(247, 148, 30, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 215, 155, 0.18);
  color: #ffd79b;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.auth__tag::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from var(--angle), transparent 0 60%, #f7941e 80%, #ffd79b 88%, transparent 96%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: spin-angle 4s linear infinite;
}

.auth__tag .i {
  color: #f7941e;
}

@media (max-width: 900px) {
  .auth__aside {
    gap: 0;
    padding-bottom: 32px;
  }

  .auth__intro { order: 1; margin-top: 32px; }
  .pa { order: 2; width: min(60%, 230px); margin: 28px auto 0; }

  .auth__tag {
    margin-bottom: 14px;
    font-size: 11.5px;
  }

  .auth__statement {
    max-width: 32ch;
    font-size: 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth__aside::before,
  .auth__aside::after,
  .pa *,
  .pa *::before,
  .pa *::after {
    animation: none !important;
  }
}

/* Shorter laptop screens: keep the graphic, the statement and Bill on one screen. */
@media (min-width: 901px) and (max-height: 860px) {
  .auth__aside {
    gap: 24px;
    padding-top: 36px;
    padding-bottom: 30px;
  }

  .pa {
    width: min(100%, 380px, 46vh);
  }

  .auth__statement {
    font-size: clamp(1.35rem, 2vw, 1.7rem);
  }
}
