.nav-brand,
.nav-links button,
.text-button,
.account-button,
.account-menu button {
  border: 0;
  background: transparent;
  color: var(--ink);
}

.nav-brand {
  justify-self: start;
  gap: 10px;
  padding: 0;
  font-weight: 800;
  text-align: left;
}

/* Horizontal wordmark lockup supplied in the official brand package. */
.brand-mark {
  width: 190px;
  height: auto;
  flex: 0 0 auto;
  border-radius: 0;
  object-fit: contain;
}

.nav-links button {
  min-height: 40px;
  padding: 0 13px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.nav-links button:hover,
.nav-links button:focus-visible {
  color: var(--ink);
  background: var(--neutral-soft);
}

.nav-login {
  min-height: 42px;
  padding: 0 18px;
  border-color: var(--ink);
  color: #fff;
  background: var(--ink);
}

.account-button {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--violet);
  font-weight: 800;
}

.home-evaluation-card::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -150px;
  bottom: -180px;
  border-radius: 50%;
  background: var(--warn-soft);
  opacity: 0.75;
}

.home-evaluation-card h1 {
  max-width: 660px;
  margin-top: 12px;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 0.98;
}

.home-intro {
  max-width: 610px;
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(16px, 1.7vw, 19px);
}

.home-orbit {
  position: relative;
  min-width: 220px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: visible;
}

.orbit-ring {
  position: absolute;
  z-index: 1;
  inset: 8%;
  border: 2px solid rgba(154, 150, 245, 0.85);
  border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%;
  transform: rotate(16deg);
}

.ring-two {
  inset: 18%;
  border-color: rgba(255, 143, 122, 0.8);
  border-radius: 55% 45% 42% 58% / 44% 57% 43% 56%;
  transform: rotate(-20deg);
}

.orbit-mascot {
  position: relative;
  z-index: 3;
  width: 136%;
  max-width: 460px;
  height: auto;
  filter: drop-shadow(0 20px 34px rgba(23, 27, 75, 0.18));
  transform: translate(14%, -2%) rotate(-3deg);
}

.orbit-cloud {
  position: absolute;
  z-index: 2;
  width: 82px;
  height: 25px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  filter: drop-shadow(0 7px 10px rgba(23, 27, 75, 0.1));
}

.orbit-cloud::before,
.orbit-cloud::after {
  content: "";
  position: absolute;
  bottom: 5px;
  border-radius: 50%;
  background: inherit;
}

.orbit-cloud::before {
  left: 13px;
  width: 34px;
  height: 34px;
}

.orbit-cloud::after {
  right: 9px;
  width: 45px;
  height: 45px;
}

.cloud-one {
  top: 13%;
  right: -4%;
  transform: scale(0.82);
}

.cloud-two {
  bottom: 10%;
  left: -2%;
  transform: scale(0.62);
  opacity: 0.88;
}

.home-hero-action {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 18px;
}

.home-hero-action p {
  color: var(--muted);
  font-size: 13px;
}

.home-start {
  min-width: 170px;
}

.home-news-card h2,
.home-tools h2,
.home-pathways h2,
.home-process h2,
.home-trust h2 {
  margin-top: 7px;
  font-size: clamp(28px, 3.4vw, 42px);
}

.news-list {
  display: grid;
  gap: 12px;
}

.news-list a {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.66);
}

.news-list a:hover {
  border-color: var(--good);
  transform: translateY(-1px);
}

.news-list span,
.news-list small {
  color: var(--muted);
  font-size: 11px;
}

.news-list span {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-note,
.section-heading-row > p,
.home-trust > p:last-child {
  color: var(--muted);
  font-size: 14px;
}

.tool-grid article,
.home-path-card {
  min-height: 180px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.55);
}

.tool-grid article {
  display: grid;
  align-content: start;
  gap: 10px;
}

.tool-grid article > span,
.home-process li span {
  color: var(--accent);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 800;
}

.tool-grid h3 {
  font-size: 21px;
}

.tool-grid p {
  color: var(--muted);
  font-size: 13px;
}

.home-path-card {
  position: relative;
  min-height: 300px;
  display: grid;
  align-content: space-between;
  gap: 26px;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.home-path-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.home-path-card .path-code {
  color: var(--line);
  font-family: var(--display);
  font-size: 64px;
  line-height: 1;
}

.home-path-card h3 {
  margin-top: 6px;
  font-size: 26px;
}

.home-path-card p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 13px;
}

.home-path-card .path-arrow {
  justify-self: end;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  font-size: 22px;
}

.home-process ol li {
  display: grid;
  gap: 8px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.home-process ol strong {
  font-size: 14px;
}

.home-trust {
  color: #fff;
  border-color: var(--ink);
  background:
    radial-gradient(circle at 82% 10%, rgba(191, 138, 37, 0.34), transparent 34%),
    var(--ink);
}

.home-trust .eyebrow {
  color: var(--warn-soft);
}

.home-trust h2 {
  max-width: 820px;
  font-size: clamp(34px, 5vw, 58px);
}

.home-trust > p:last-child {
  max-width: 760px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.72);
}

.back-home {
  justify-self: start;
  padding: 0;
  color: var(--good);
  font-weight: 700;
}

.auth-dialog {
  width: min(470px, calc(100% - 28px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  color: var(--ink);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.auth-dialog::backdrop {
  background: rgba(29, 36, 51, 0.48);
  backdrop-filter: blur(4px);
}

.auth-dialog > form:first-child {
  position: absolute;
  top: 16px;
  right: 16px;
}

.dialog-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: var(--neutral-soft);
  font-size: 24px;
}

.auth-content {
  padding: 38px;
}

.auth-content h2 {
  margin-top: 6px;
  font-size: 34px;
}

.auth-content > .help {
  margin: 10px 0 22px;
}

.auth-google {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
  border-color: var(--line);
  color: var(--ink);
  background: #fff;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

#emailLoginForm {
  display: grid;
  gap: 10px;
}

#emailLoginForm label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.auth-status,
.auth-privacy {
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
}

.auth-status.error {
  color: var(--weak);
}

.auth-status.success {
  color: var(--good);
}

.account-menu {
  position: fixed;
  z-index: 30;
  top: 78px;
  right: max(20px, calc((100vw - 1240px) / 2 + 12px));
  width: 180px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.account-menu button {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  text-align: left;
}

.account-menu button:hover {
  background: var(--neutral-soft);
}

@media (max-width: 980px) {
  .global-nav {
    grid-template-columns: minmax(200px, 1fr) auto;
  }

  .nav-links {
    display: none;
  }

  .home-hero,
  .home-process {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-brand > span:last-child {
    max-width: 150px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .home-evaluation-card,
  .home-tools,
  .home-pathways,
  .home-process,
  .home-trust {
    padding: 22px;
  }

  .home-hero-action {
    align-items: stretch;
    flex-direction: column;
  }

  .home-start {
    width: 100%;
  }

  .home-path-card {
    min-height: 220px;
  }

  .auth-content {
    padding: 32px 22px 24px;
  }
}

/* ---- Highlight tones -------------------------------------------------- */
/* Brand tints sit behind navy text only; they never carry white type. */
.tool-card.tone-mint {
  background: linear-gradient(180deg, rgba(191, 236, 221, 0.55), rgba(255, 255, 255, 0.7));
}

.tool-card.tone-sky {
  background: linear-gradient(180deg, rgba(184, 222, 250, 0.55), rgba(255, 255, 255, 0.7));
}

.tool-card.tone-peri {
  background: linear-gradient(180deg, rgba(154, 150, 245, 0.35), rgba(255, 255, 255, 0.7));
}

.tool-card.tone-coral {
  background: linear-gradient(180deg, rgba(255, 143, 122, 0.35), rgba(255, 255, 255, 0.7));
}

.tool-card .tool-index {
  color: var(--peri-deep);
}

/* ---- Not-yet-available placeholders ----------------------------------- */
.chip-upcoming {
  justify-self: start;
  padding: 5px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--panel);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tool-card.is-upcoming .text-button {
  justify-self: start;
  color: var(--peri-deep);
  font-weight: 700;
}

.home-more {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin-top: 18px;
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(184, 222, 250, 0.42), rgba(154, 150, 245, 0.24));
}

.home-more h2 {
  margin-top: 10px;
  font-size: 26px;
}

.home-more p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

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

.more-list li {
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

/* ---- Home lead form --------------------------------------------------- */
.home-lead {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 16px;
  align-items: stretch;
  margin-top: 18px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(232, 251, 246, 0.96), rgba(239, 246, 255, 0.96));
}

.home-lead-intro {
  position: relative;
  min-height: 580px;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 28px 28px 0;
  overflow: hidden;
  border-radius: calc(var(--radius) - 8px);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.9), transparent 32%),
    linear-gradient(155deg, rgba(169, 239, 215, 0.52), rgba(173, 221, 255, 0.35));
}

.home-lead-intro h2 {
  margin-top: 10px;
  max-width: 480px;
  font-size: clamp(30px, 3.5vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.home-lead-intro > p:not(.eyebrow) {
  max-width: 470px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.home-lead-mascot {
  width: min(390px, 88%);
  height: auto;
  align-self: center;
  margin: auto -24px -30px auto;
  filter: drop-shadow(0 18px 28px rgba(23, 27, 75, 0.14));
  transform-origin: 55% 90%;
  animation: support-welcome 4.6s ease-in-out infinite;
}

.home-lead .lead-card {
  height: 100%;
  border-color: rgba(23, 27, 75, 0.12);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 42px rgba(23, 27, 75, 0.08);
}

@keyframes support-welcome {
  0%, 100% { transform: translateY(0) rotate(-0.5deg); }
  50% { transform: translateY(-7px) rotate(0.8deg); }
}

@media (max-width: 980px) {
  .home-more,
  .home-lead {
    grid-template-columns: 1fr;
  }

  .home-lead-intro {
    min-height: 430px;
  }

  .home-lead-mascot {
    width: min(300px, 78%);
  }
}

/* ---- Membership (pricing not set, nothing on sale) --------------------- */
.home-membership,
.home-newsletter,
.home-support {
  margin-top: 18px;
  padding: 30px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.home-membership .chip-upcoming {
  margin-bottom: 10px;
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.tier-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
}

.tier-card.tier-current {
  border-color: var(--mint);
  background: linear-gradient(180deg, rgba(191, 236, 221, 0.5), var(--panel));
}

.tier-card h3 {
  font-size: 21px;
}

/* Deliberately not a price — it states the pricing status instead. */
.tier-meta {
  margin: 6px 0 10px;
  color: var(--peri-deep);
  font-size: 13px;
  font-weight: 700;
}

.tier-card p:last-child {
  color: var(--muted);
  font-size: 13px;
}

.membership-note {
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
}

#membershipWaitlistBtn {
  margin-top: 16px;
}

/* ---- Newsletter -------------------------------------------------------- */
.home-newsletter {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 26px;
  align-items: start;
}

.newsletter-intro h2 {
  margin-top: 10px;
  font-size: 28px;
}

.newsletter-intro p:last-child {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.newsletter-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 700;
}

.newsletter-row {
  display: flex;
  gap: 10px;
}

.newsletter-row .field-input {
  flex: 1 1 auto;
  min-width: 0;
}

.newsletter-status {
  margin-top: 10px;
  font-size: 13px;
}

.newsletter-status.error {
  color: var(--weak);
}

.newsletter-status.success {
  color: var(--good);
}

/* ---- Tip jar ----------------------------------------------------------- */
.home-support {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(120deg, rgba(255, 143, 122, 0.28), rgba(255, 255, 255, 0.85));
}

.home-support h2 {
  margin-top: 8px;
  font-size: 26px;
}

.home-support p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.support-note {
  font-size: 12.5px;
}

.support-cta {
  flex: 0 0 auto;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

@media (max-width: 980px) {
  .tier-grid,
  .home-newsletter {
    grid-template-columns: 1fr;
  }

  .home-support {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .newsletter-row {
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .orbit-mascot {
    width: 118%;
    max-width: 360px;
    transform: translate(7%, -1%) rotate(-3deg);
  }

  .cloud-one {
    right: 0;
  }

  .cloud-two {
    left: 0;
  }
}

/* ---- Chinese typography --------------------------------------------- */
html:lang(zh-CN) .home-evaluation-card h1,
html:lang(zh-TW) .home-evaluation-card h1 {
  max-width: 700px;
  font-size: clamp(48px, 5.45vw, 68px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

html:lang(zh-CN) .home-intro,
html:lang(zh-TW) .home-intro {
  max-width: 650px;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.75;
  letter-spacing: 0.01em;
  overflow-wrap: normal;
  word-break: keep-all;
}

html:lang(zh-CN) :is(.home-tools, .home-pathways, .home-process, .home-trust) h2,
html:lang(zh-TW) :is(.home-tools, .home-pathways, .home-process, .home-trust) h2 {
  line-height: 1.18;
  letter-spacing: -0.02em;
}

html:lang(zh-CN) .home-path-card h3,
html:lang(zh-TW) .home-path-card h3 {
  line-height: 1.25;
  letter-spacing: -0.015em;
}

@media (max-width: 760px) {
  html:lang(zh-CN) .home-evaluation-card h1,
  html:lang(zh-TW) .home-evaluation-card h1 {
    font-size: clamp(42px, 13vw, 54px);
    line-height: 1.1;
  }
}

/* ---- Light liquid-glass surfaces ------------------------------------ */
.global-nav,
.home-news-card,
.home-tools,
.home-pathways,
.home-process,
.home-membership,
.home-newsletter,
.home-support,
.home-lead,
.home-trust {
  border-color: var(--glass-stroke);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.5)),
    var(--glass-fill);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
  backdrop-filter: blur(24px) saturate(145%);
}

.global-nav {
  border-color: rgba(255, 255, 255, 0.9);
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.86), rgba(242, 247, 255, 0.58));
}

.home-evaluation-card {
  border: 1px solid rgba(255, 255, 255, 0.42);
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    inset 0 -1px 0 rgba(23, 27, 75, 0.08);
  -webkit-backdrop-filter: blur(10px) saturate(125%);
  backdrop-filter: blur(10px) saturate(125%);
}

.tool-card,
.home-path-card,
.news-update {
  border-color: rgba(255, 255, 255, 0.76);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 12px 30px rgba(39, 53, 101, 0.08);
}

.lang-btn {
  border-color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.lang-btn.active {
  border-color: rgba(23, 27, 75, 0.5);
  background: rgba(156, 235, 215, 0.76);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.76),
    0 8px 20px rgba(18, 109, 90, 0.12);
}

/* ---- 2026 UI/UX workspace refresh ------------------------------------ */
.nav-brand {
  color: var(--ink);
  letter-spacing: -0.01em;
}

.nav-login {
  border-color: var(--ink);
  background: var(--ink);
}

.lang-btn {
  background: rgba(255, 255, 255, 0.54);
}

.lang-btn.active {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--mint);
}

.home-hero {
  min-height: 620px;
  padding: 14px;
  gap: 14px;
  border: 2px solid var(--ink);
  border-radius: 34px;
  background:
    radial-gradient(circle at 5% 5%, rgba(156, 235, 215, 0.98), transparent 42%),
    radial-gradient(circle at 92% 12%, rgba(164, 157, 255, 0.9), transparent 45%),
    linear-gradient(125deg, #aeeedc 0%, #b9e3ff 48%, #c5c0ff 100%);
  box-shadow: 0 30px 68px rgba(17, 18, 23, 0.16);
}

.home-evaluation-card,
.home-news-card {
  min-height: 590px;
  border: 0;
  box-shadow: none;
}

.home-evaluation-card {
  background: rgba(255, 255, 255, 0.2);
}

.home-news-card {
  border-radius: 24px;
  background: rgba(249, 250, 249, 0.66);
  backdrop-filter: blur(18px);
}

.home-evaluation-card::after {
  width: 430px;
  height: 430px;
  right: -210px;
  bottom: -250px;
  border: 1px solid rgba(17, 18, 23, 0.12);
  background: rgba(255, 128, 111, 0.7);
}

.home-evaluation-card h1 {
  color: var(--ink);
  font-size: clamp(50px, 6.5vw, 82px);
  font-weight: 720;
  letter-spacing: -0.055em;
}

.home-intro {
  color: rgba(17, 18, 23, 0.7);
}

.orbit-ring {
  border-color: rgba(17, 18, 23, 0.28);
}

.ring-two {
  border-color: rgba(80, 71, 183, 0.52);
}

.orbit-mascot {
  filter: drop-shadow(0 18px 32px rgba(17, 18, 23, 0.18));
}

.home-hero-action p {
  color: rgba(17, 18, 23, 0.65);
}

.news-list a {
  border-color: rgba(17, 18, 23, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
}

.news-list a:hover {
  border-color: var(--ink);
}

.news-list span {
  color: var(--mint-deep);
}

.home-tools,
.home-pathways,
.home-process,
.home-membership,
.home-newsletter,
.home-support {
  border-color: var(--line-strong);
  background: rgba(237, 239, 240, 0.88);
  box-shadow: none;
}

.home-tools h2,
.home-pathways h2,
.home-process h2,
.home-trust h2 {
  color: var(--ink);
  letter-spacing: -0.04em;
}

.tool-grid article,
.home-path-card,
.tier-card {
  border-color: rgba(17, 18, 23, 0.12);
  background: rgba(255, 255, 255, 0.72);
}

.tool-card.tone-mint {
  background: linear-gradient(155deg, rgba(156, 235, 215, 0.94), rgba(255, 255, 255, 0.78));
}

.tool-card.tone-sky {
  background: linear-gradient(155deg, rgba(173, 221, 255, 0.94), rgba(255, 255, 255, 0.78));
}

.tool-card.tone-peri {
  background: linear-gradient(155deg, rgba(164, 157, 255, 0.84), rgba(255, 255, 255, 0.8));
}

.tool-card.tone-coral {
  background: linear-gradient(155deg, rgba(255, 128, 111, 0.78), rgba(255, 255, 255, 0.8));
}

.tool-card .tool-index,
.tool-grid article > span,
.home-process li span {
  color: var(--ink);
}

.home-path-card {
  min-height: 270px;
  border-radius: 22px;
}

.home-path-card:hover {
  border-color: var(--ink);
  box-shadow: 0 12px 24px rgba(17, 18, 23, 0.08);
}

.home-path-card .path-code {
  color: #c9ccd1;
}

.home-path-card .path-arrow {
  color: var(--ink);
  background: var(--coral);
}

.home-process {
  min-height: 210px;
  background:
    linear-gradient(110deg, rgba(173, 221, 255, 0.58), transparent 44%),
    rgba(245, 250, 255, 0.94);
}

.home-process ol li {
  padding: 16px;
  border: 1px solid rgba(17, 18, 23, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
}

.home-more {
  border-color: var(--line-strong);
  background: linear-gradient(115deg, rgba(169, 239, 215, 0.62), rgba(201, 200, 247, 0.56));
}

.more-list li {
  border: 1px solid rgba(17, 18, 23, 0.08);
}

.tier-card.tier-current {
  border-color: var(--ink);
  background: linear-gradient(155deg, rgba(169, 239, 215, 0.88), rgba(255, 255, 255, 0.8));
}

.home-newsletter {
  background: linear-gradient(120deg, rgba(169, 239, 215, 0.62), rgba(200, 231, 242, 0.6));
}

.home-support {
  background: linear-gradient(120deg, rgba(255, 128, 111, 0.42), rgba(164, 157, 255, 0.52));
}

.home-lead .lead-card {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 42px rgba(23, 27, 75, 0.08);
}

.home-trust {
  border: 2px solid var(--ink);
  background:
    radial-gradient(circle at 84% 8%, rgba(201, 200, 247, 0.36), transparent 34%),
    radial-gradient(circle at 10% 90%, rgba(169, 239, 215, 0.22), transparent 38%),
    var(--ink);
  box-shadow: 0 20px 44px rgba(17, 18, 23, 0.14);
}

.home-trust .eyebrow {
  color: var(--mint);
}

.home-trust h2 {
  color: #ffffff;
}

@media (max-width: 980px) {
  .home-hero {
    grid-template-columns: 1fr;
  }

  .home-evaluation-card,
  .home-news-card {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .global-nav {
    grid-template-columns: auto minmax(0, 1fr);
    padding-left: 10px;
  }

  .nav-brand > span:last-child {
    display: none;
  }

  .nav-actions {
    min-width: 0;
    gap: 6px;
  }

  .nav-actions .lang-switcher {
    display: flex;
    flex-wrap: nowrap;
    gap: 3px;
  }

  .lang-btn {
    min-height: 34px;
    padding: 3px 7px;
    font-size: 10px;
  }

  .nav-login {
    min-height: 38px;
    padding: 0 12px;
  }

  .home-hero {
    padding: 8px;
    border-radius: 26px;
  }

  .home-evaluation-card h1 {
    font-size: clamp(42px, 14vw, 64px);
  }

  .home-news-card {
    padding: 22px;
  }
}

/* ---- Dobby character system + pathway card refresh ------------------- */
.pathway-heading-title {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 142px;
  align-items: center;
  gap: 16px;
}

.pathway-mascot {
  width: 142px;
  height: auto;
  filter: drop-shadow(0 14px 22px rgba(23, 27, 75, 0.14));
  transform: rotate(3deg);
}

.home-path-card {
  min-height: 286px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(23, 27, 75, 0.1);
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(23, 27, 75, 0.06);
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 240ms ease, border-color 240ms ease;
}

.home-path-card:hover {
  border-color: rgba(23, 27, 75, 0.22);
  box-shadow: 0 18px 42px rgba(23, 27, 75, 0.1);
  transform: translateY(-5px);
}

.home-path-card[data-home-pathway="NIW"] {
  background: #ecfbf6;
}

.home-path-card[data-home-pathway="EB1A"] {
  background: #eef8ff;
}

.home-path-card[data-home-pathway="O1"] {
  background: #f4f1ff;
}

.home-path-card .path-code {
  color: rgba(23, 27, 75, 0.13);
  font-size: 72px;
  font-weight: 800;
  letter-spacing: -0.07em;
}

.home-path-card .tag {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border: 1px solid rgba(23, 27, 75, 0.14);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.82);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-path-card h3 {
  font-size: clamp(25px, 2.4vw, 34px);
  letter-spacing: -0.045em;
}

.home-path-card p {
  color: rgba(23, 27, 75, 0.72);
  font-size: 13px;
  line-height: 1.55;
}

.home-path-card .path-arrow {
  width: 48px;
  height: 48px;
  color: #fff;
  background: var(--ink);
  box-shadow: none;
}

.home-path-card[data-home-pathway="NIW"] .path-arrow {
  background: var(--mint-deep);
}

.home-path-card[data-home-pathway="EB1A"] .path-arrow {
  background: #397da8;
}

.home-path-card[data-home-pathway="O1"] .path-arrow {
  background: var(--peri-deep);
}

.newsletter-intro > p:last-of-type {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.newsletter-mascot {
  width: 148px;
  height: auto;
  margin-top: 18px;
  filter: drop-shadow(0 12px 22px rgba(23, 27, 75, 0.12));
}

.home-newsletter {
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 120%, rgba(164, 157, 255, 0.42), transparent 42%),
    linear-gradient(120deg, rgba(156, 235, 215, 0.82), rgba(173, 221, 255, 0.82));
}

.home-trust {
  grid-template-columns: minmax(0, 1fr) minmax(170px, 0.28fr);
  align-items: center;
  gap: clamp(24px, 5vw, 70px);
}

.trust-copy {
  min-width: 0;
}

.trust-copy > p:last-child {
  max-width: 760px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.72);
}

.trust-mascot {
  width: min(220px, 100%);
  height: auto;
  justify-self: end;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.22));
}

@media (max-width: 760px) {
  .brand-mark {
    width: 104px;
  }

  .pathway-heading-title {
    grid-template-columns: minmax(0, 1fr) 104px;
  }

  .pathway-mascot {
    width: 104px;
  }

  .home-path-card {
    min-height: 250px;
  }

  .home-lead {
    padding: 10px;
  }

  .home-lead-intro {
    min-height: 390px;
    padding: 22px 20px 0;
  }

  .home-lead-mascot {
    width: min(255px, 78%);
    margin-bottom: -22px;
  }

  .home-trust {
    grid-template-columns: 1fr;
  }

  .trust-mascot {
    width: 150px;
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-lead-mascot {
    animation: none;
  }
}

/* ---- Standalone USCIS update stream ---------------------------------- */
#publicView {
  min-width: 0;
}

.home-hero {
  grid-template-columns: 1fr;
}

.home-news-card {
  width: 100%;
  max-width: 100%;
  min-height: 0;
  margin: 22px 0;
  padding: 0;
  overflow: hidden;
  display: block;
  border: 1px solid rgba(23, 27, 75, 0.12);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: none;
}

.news-heading {
  padding: 26px 30px 18px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.news-heading h2 {
  margin-top: 5px;
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -0.04em;
}

.news-heading > a {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.news-heading > a:hover,
.news-heading > a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.news-marquee {
  min-width: 0;
  overflow: hidden;
  padding: 2px 0 20px;
}

.news-track {
  width: max-content;
  display: flex;
  gap: 12px;
  animation: uscis-feed-scroll 60s linear infinite;
  will-change: transform;
}

.news-group {
  display: flex;
  gap: 12px;
}

.news-update {
  width: 280px;
  min-height: 138px;
  padding: 17px 18px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  border: 1px solid rgba(23, 27, 75, 0.12);
  border-radius: 16px;
  color: var(--ink);
  text-decoration: none;
  background: #fff;
  box-shadow: 0 6px 18px rgba(23, 27, 75, 0.05);
  transition: border-color 180ms ease, transform 180ms ease;
}

.news-update:hover,
.news-update:focus-visible {
  border-color: rgba(23, 27, 75, 0.42);
  transform: translateY(-2px);
}

.news-update-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(23, 27, 75, 0.5);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.news-update-meta strong {
  color: var(--mint-deep);
}

.news-update-title {
  font-size: 15px;
  font-weight: 730;
  line-height: 1.34;
}

.news-update-link {
  color: rgba(23, 27, 75, 0.58);
  font-size: 10px;
  font-weight: 750;
}

.news-marquee:hover .news-track,
.news-marquee:focus-within .news-track {
  animation-play-state: paused;
}

.news-footer {
  margin: 0 30px;
  padding: 16px 0 22px;
  display: flex;
  align-items: center;
  gap: 12px 20px;
  border-top: 1px solid rgba(23, 27, 75, 0.1);
}

.news-feed-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(23, 27, 75, 0.68);
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.news-live-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #25c990;
  animation: demo-feed-pulse 2s ease-out infinite;
}

.news-footer .news-note {
  flex: 1 1 auto;
  color: rgba(23, 27, 75, 0.58);
  font-size: 11px;
}

.news-footer > span {
  color: rgba(23, 27, 75, 0.5);
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}

@keyframes uscis-feed-scroll {
  to { transform: translateX(calc(-50% - 6px)); }
}

@keyframes demo-feed-pulse {
  70% { box-shadow: 0 0 0 6px rgba(37, 201, 144, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 201, 144, 0); }
}

@media (max-width: 720px) {
  .news-heading {
    padding: 22px 20px 16px;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .news-marquee {
    padding-left: 12px;
  }

  .news-footer {
    margin: 0 20px;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .news-footer .news-note {
    width: 100%;
    flex-basis: 100%;
    order: 3;
  }

  .news-update {
    width: 260px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-live-dot,
  .news-track {
    animation: none;
  }

  .news-marquee {
    overflow-x: auto;
  }
}

@media (max-width: 620px) {
  .global-nav {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .nav-actions {
    display: contents;
  }

  .nav-actions .lang-switcher {
    width: 100%;
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    padding-top: 5px;
    scrollbar-width: none;
  }

  .nav-actions .lang-switcher::-webkit-scrollbar {
    display: none;
  }

  .nav-login,
  .account-button {
    grid-column: 2;
    grid-row: 1;
  }
}

/* ---- Desktop split hero: evaluation left, USCIS stream right -------- */
@media (min-width: 981px) {
  .home-hero {
    height: 870px;
    min-height: 870px;
    grid-template-columns: minmax(0, 1.82fr) minmax(320px, 0.68fr);
    align-items: stretch;
    gap: 14px;
  }

  .home-evaluation-card {
    height: 100%;
    min-height: 0;
  }

  .home-news-card {
    height: 100%;
    min-height: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    border-radius: 24px;
  }

  .news-heading {
    padding: 28px 24px 16px;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .news-heading h2 {
    font-size: clamp(30px, 2.75vw, 42px);
  }

  .news-marquee {
    min-height: 0;
    flex: 1 1 auto;
    padding: 4px 18px 18px;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 5%, #000 95%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 5%, #000 95%, transparent);
  }

  .news-track,
  .news-group {
    width: 100%;
    flex-direction: column;
  }

  .news-track {
    animation: uscis-feed-scroll-vertical 58s linear infinite;
  }

  .news-update {
    width: 100%;
    min-height: 128px;
  }

  .news-footer {
    margin: 0 24px;
    padding: 15px 0 20px;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .news-footer .news-note {
    flex: 0 0 auto;
  }
}

@media (min-width: 981px) and (max-width: 1120px) {
  .home-hero {
    height: 940px;
    min-height: 940px;
  }
}

@keyframes uscis-feed-scroll-vertical {
  to { transform: translateY(calc(-50% - 6px)); }
}

@media (max-width: 980px) {
  .home-hero {
    grid-template-columns: 1fr;
  }

  .home-news-card {
    height: auto;
    min-height: 0;
    margin: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-track {
    animation: none;
  }

  .news-marquee {
    overflow: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* ---- Reference-inspired hero palette -------------------------------- */
.home-hero {
  border-color: #171923;
  background:
    radial-gradient(circle at 8% 8%, rgba(201, 247, 232, 0.92), transparent 42%),
    linear-gradient(118deg, #d8f3ed 0%, #d9eaf8 52%, #cfd3fb 100%);
  box-shadow: 0 28px 72px rgba(42, 51, 91, 0.14);
}

.home-hero .home-evaluation-card {
  background:
    linear-gradient(120deg, rgba(210, 248, 235, 0.76), rgba(224, 238, 251, 0.82));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -1px 0 rgba(54, 69, 111, 0.06);
}

.home-hero .home-news-card {
  border-color: rgba(255, 255, 255, 0.78);
  background:
    linear-gradient(150deg, rgba(248, 248, 255, 0.94), rgba(233, 234, 251, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 18px 40px rgba(55, 61, 113, 0.08);
}

.home-hero .home-evaluation-card::after {
  border-color: rgba(120, 116, 62, 0.14);
  background: rgba(245, 241, 157, 0.88);
  opacity: 1;
}

.home-hero :is(h1, h2) {
  color: #10121b;
}

.home-hero .home-intro,
.home-hero .home-hero-action p,
.home-hero .news-note {
  color: rgba(16, 18, 27, 0.64);
}

.home-hero .btn.primary {
  border-color: #10121b;
  background: #10121b;
}

.home-hero .orbit-ring {
  border-color: rgba(51, 58, 78, 0.34);
}

.home-hero .ring-two {
  border-color: rgba(105, 96, 202, 0.48);
}

/* ---- Floating hero mascot and persistent human-assistance shortcut --- */
.orbit-mascot {
  animation: orbit-dobby-hover 4.8s cubic-bezier(0.45, 0, 0.2, 1) infinite;
  will-change: translate;
}

.cloud-one {
  z-index: 4;
  top: -7%;
  right: 3%;
  transform: scale(0.9);
}

.cloud-two {
  bottom: 2%;
  left: -9%;
  width: 112px;
  height: 32px;
  transform: scale(1);
  opacity: 0.94;
}

@keyframes orbit-dobby-hover {
  0%, 100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -12px;
  }
}

.human-assistant {
  position: fixed;
  z-index: 35;
  right: max(18px, calc((100vw - 1320px) / 2));
  bottom: 24px;
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  filter: drop-shadow(0 16px 24px rgba(23, 27, 75, 0.18));
}

.human-assistant-label {
  position: relative;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 24px rgba(23, 27, 75, 0.12);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}

.human-assistant-label::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 9px;
  height: 9px;
  border-right: 1px solid rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.78);
  transform: translateX(-50%) rotate(45deg);
}

.human-assistant-avatar {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 22%, rgba(255, 255, 255, 0.95), transparent 30%),
    linear-gradient(145deg, rgba(169, 239, 215, 0.96), rgba(173, 221, 255, 0.95) 58%, rgba(164, 157, 255, 0.78));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 10px 26px rgba(23, 27, 75, 0.16);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.human-assistant-avatar img {
  width: 92px;
  height: auto;
  margin: 15px 0 0 7px;
}

.human-assistant:hover .human-assistant-avatar,
.human-assistant:focus-visible .human-assistant-avatar {
  transform: translateY(-4px) scale(1.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 16px 34px rgba(23, 27, 75, 0.22);
}

.human-assistant:focus-visible {
  outline: 3px solid rgba(105, 96, 202, 0.5);
  outline-offset: 5px;
  border-radius: 24px;
}

@media (max-width: 760px) {
  .cloud-one {
    top: -3%;
    right: 2%;
  }

  .cloud-two {
    bottom: 0;
    left: -3%;
    width: 96px;
  }

  .human-assistant {
    right: 12px;
    bottom: 14px;
    gap: 6px;
  }

  .human-assistant-label {
    padding: 8px 11px;
    font-size: 12px;
  }

  .human-assistant-avatar {
    width: 70px;
    height: 70px;
  }

  .human-assistant-avatar img {
    width: 76px;
    margin-top: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orbit-mascot {
    animation: none;
  }
}
