/* Case Track US Immigration — federal-blue case-status site chrome */

:root {
  --fed: #005ea2;
  --fed-dark: #1a4480;
  --fed-ink: #162e51;
  --fed-light: #e1f3f8;
  --fed-wash: #eef4fb;
  --ink: #1b1b1b;
  --ink-700: #3d4551;
  --ink-500: #565c65;
  --ink-300: #a9aeb1;
  --ink-200: #dfe1e2;
  --ink-100: #f0f0f0;
  --page: #eaeef3;
  --white: #ffffff;
  --ok: #136a3a;
  --ok-tint: #ecf3ec;
  --ok-line: #b7d3b7;
  --info-line: #a7d3e6;
  --focus: #2491ff;
  --shadow: 0 18px 40px rgba(22, 46, 81, 0.22);
  --radius: 14px;
  --wrap: 1120px;
  --header-h: 64px;
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
}

.site-header,
main,
.site-footer {
  flex-shrink: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

main {
  flex: 1 0 auto;
}

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

a {
  color: var(--fed);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--fed-dark);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 100;
  background: var(--white);
  color: var(--fed-ink);
  padding: 8px 12px;
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(var(--wrap), 100%);
  margin-inline: auto;
  padding-inline: 20px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--ink-200);
  backdrop-filter: saturate(1.2) blur(10px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fed-ink);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  display: block;
}

.brand .wordmark {
  font-size: 18px;
}

.brand .app-name {
  display: none;
}

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

.site-nav a {
  color: var(--fed-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 8px 10px;
  border-radius: 8px;
}

.site-nav a:hover {
  background: var(--fed-wash);
  color: var(--fed-dark);
}

.site-nav a[aria-current="page"] {
  color: var(--fed);
  box-shadow: inset 0 -2px 0 var(--fed);
  border-radius: 0;
  padding-bottom: 6px;
}

.header-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.lang-switch {
  display: inline-flex;
  padding: 2px;
  border-radius: 999px;
  background: var(--fed-wash);
  border: 1px solid var(--ink-200);
}

.lang-switch button {
  appearance: none;
  margin: 0;
  border: 0;
  background: transparent;
  min-width: 36px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--fed-dark);
  cursor: pointer;
}

.lang-switch button[aria-pressed="true"] {
  background: var(--fed);
  color: var(--white);
}

.lang-switch button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--fed-ink);
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(225, 243, 248, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(225, 243, 248, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(1200px 480px at 80% 20%, #000 30%, transparent 75%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  padding: 48px 0 56px;
  min-width: 0;
}

.hero-copy,
.hero-visual,
.notice {
  min-width: 0;
  max-width: 100%;
}

.hero-visual {
  position: relative;
  padding-bottom: 36px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fed-light);
}

.kicker::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--fed);
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 8vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 700;
  max-width: 100%;
}

.lede {
  margin: 0 0 20px;
  font-size: 18px;
  line-height: 1.5;
  color: #d9e8f4;
  max-width: min(38rem, 100%);
}

.disclaimer {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 24px;
  padding: 12px 14px;
  border: 1px solid rgba(225, 243, 248, 0.28);
  border-radius: 12px;
  background: rgba(26, 68, 128, 0.45);
  color: var(--fed-light);
  font-size: 15px;
  line-height: 1.45;
  max-width: min(40rem, 100%);
}

.disclaimer .mark {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--fed-light);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  margin-top: 1px;
}

.disclaimer p {
  margin: 0;
  min-width: 0;
  flex: 1 1 auto;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 16px 8px 14px;
  border-radius: 10px;
  background: #0b1220;
  color: var(--white);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.store-btn:hover {
  color: var(--white);
  background: #000;
}

.store-btn svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.store-btn small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.8;
  line-height: 1.2;
}

.store-btn strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.langs {
  margin: 0;
  color: #b8c9d9;
  font-size: 14px;
  font-weight: 600;
}

.langs span {
  color: var(--white);
}

/* Receipt / I-797 plate */

.notice {
  position: relative;
  background: var(--white);
  color: var(--ink);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  isolation: isolate;
}

.notice::before,
.notice::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 12px;
  background:
    radial-gradient(circle at 12px 0, var(--fed-ink) 6px, transparent 6.5px) 0 0 / 24px 12px;
  pointer-events: none;
  z-index: 2;
}

.notice::before {
  top: 0;
  transform: translateY(-6px);
}

.notice::after {
  bottom: 0;
  transform: translateY(6px);
  background:
    radial-gradient(circle at 12px 12px, var(--fed-ink) 6px, transparent 6.5px) 0 0 / 24px 12px;
}

.notice-bar {
  background: var(--fed);
  color: var(--white);
  padding: 10px 20px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.notice-body {
  padding: 20px 22px 22px;
}

.notice-label {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500);
}

.notice-number {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45em;
  margin: 0 0 8px;
  padding: 12px 14px;
  border: 1.5px solid var(--fed-dark);
  border-radius: 10px;
  background: var(--fed-wash);
  font-weight: 800;
  font-size: 26px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  color: var(--fed-ink);
}

.prefix,
.digits {
  font-size: 1em;
  font-weight: inherit;
  letter-spacing: 0.12em;
}

.prefix {
  display: inline-block;
  overflow: hidden;
  height: 1.2em;
  width: 3.15em;
  vertical-align: -0.05em;
  color: var(--fed);
}

.prefix-reel {
  display: flex;
  flex-direction: column;
  animation: prefix-roll 16s infinite;
}

.prefix-reel span {
  display: block;
  height: 1.2em;
  line-height: 1.2;
}

@keyframes prefix-roll {
  0%, 11% { transform: translateY(0); animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
  14.28%, 25.28% { transform: translateY(-1.2em); animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
  28.56%, 39.56% { transform: translateY(-2.4em); animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
  42.84%, 53.84% { transform: translateY(-3.6em); animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
  57.12%, 68.12% { transform: translateY(-4.8em); animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
  71.4%, 82.4% { transform: translateY(-6em); animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
  85.68%, 96.68% { transform: translateY(-7.2em); animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
  100% { transform: translateY(-8.4em); }
}

.notice-hint {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--ink-500);
}

.notice-form {
  margin: 0 0 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--ink-200);
  font-size: 15px;
  color: var(--ink-700);
}

.notice-form strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
  margin-bottom: 2px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid var(--ok-line);
  background: var(--ok-tint);
  color: var(--ok);
}

.pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.notice-source {
  margin: 0;
  font-size: 13px;
  color: var(--ink-500);
}

.hero-visual .notice-body {
  padding-bottom: 56px;
}

.push {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  z-index: 4;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(22, 46, 81, 0.1);
  box-shadow: 0 14px 32px rgba(22, 46, 81, 0.28);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  color: var(--ink);
  animation: push-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
}

.push img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  flex: 0 0 auto;
}

.push-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.push-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500);
}

.push-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--fed-ink);
}

.push-text {
  margin: 2px 0 0;
  font-size: 14px;
  line-height: 1.3;
  color: var(--ink-700);
}

@keyframes push-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Bands & sections ---------- */

.centers {
  background: var(--fed-dark);
  color: var(--fed-light);
  padding: 14px 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

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

.centers span {
  color: var(--white);
}

.section {
  padding: 64px 0;
  min-width: 0;
  max-width: 100%;
}

.section h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--fed-ink);
}

.section .deck {
  margin: 0 0 32px;
  max-width: 40rem;
  color: var(--ink-700);
}

.section-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fed);
}

.wash {
  background: var(--fed-wash);
}

.ink {
  background: var(--page);
}

.features {
  display: grid;
  gap: 14px;
}

.feature {
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
  padding: 20px 20px 18px;
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--fed-ink);
}

.feature p {
  margin: 0;
  color: var(--ink-700);
  font-size: 16px;
}

.feature .code {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--fed-ink);
  letter-spacing: 0.04em;
}

.steps {
  display: grid;
  gap: 28px;
}

.step {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  justify-items: center;
}

.step-copy {
  justify-self: stretch;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 8px;
  align-items: start;
}

.step-copy h3 {
  margin: 0;
  padding-top: 6px;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--fed-ink);
  line-height: 1.25;
}

.step-copy p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--ink-700);
}

.num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--fed-ink);
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.shot {
  width: min(280px, 100%);
  border-radius: 28px;
  border: 1px solid rgba(22, 46, 81, 0.12);
  box-shadow: var(--shadow);
  background: var(--white);
  display: block;
}

.gallery {
  display: flex;
  gap: 18px;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 8px 4px 24px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.gallery figure {
  margin: 0;
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: min(260px, 78vw);
}

.gallery .shot {
  width: 100%;
}

.gallery figcaption {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-700);
  text-align: center;
}

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

.trust-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--info-line);
  border-radius: var(--radius);
}

.trust-item strong {
  display: block;
  color: var(--fed-ink);
  margin-bottom: 2px;
}

.trust-item p {
  margin: 0;
  color: var(--ink-700);
  font-size: 16px;
}

.check {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--fed-light);
  color: var(--fed-dark);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
}

.cta {
  background: var(--fed);
  color: var(--white);
  padding: 48px 0;
}

.cta h2 {
  color: var(--white);
  margin-bottom: 8px;
}

.cta .deck {
  color: #d7ebf6;
}

.cta .stores {
  margin: 0;
}

/* ---------- Inner pages ---------- */

.page {
  background: var(--page);
  padding: 36px 0 72px;
}

.legal,
.prose {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: 16px;
  padding: 36px 32px 48px;
}

.legal h1,
.prose h1 {
  margin: 0 0 6px;
  font-size: clamp(28px, 4vw, 36px);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--fed-ink);
}

.legal .meta,
.prose .meta {
  margin: 0 0 20px;
  color: var(--ink-500);
  font-size: 15px;
}

.legal h2,
.prose h2 {
  font-size: 21px;
  line-height: 1.3;
  margin: 32px 0 8px;
  color: var(--fed-ink);
}

.legal h3,
.prose h3 {
  font-size: 18px;
  margin: 20px 0 6px;
  color: var(--fed-ink);
}

.legal p,
.legal li,
.prose p,
.prose li {
  font-size: 17px;
}

.legal ul,
.prose ul {
  padding-left: 22px;
}

.legal li,
.prose li {
  margin: 6px 0;
}

.note {
  background: var(--fed-wash);
  border: 1px solid var(--ink-200);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 20px 0;
}

.note p {
  margin: 0;
}

.see-also {
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid var(--ink-200);
  color: var(--ink-500);
  font-size: 15px;
}

.entity {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--ink-500);
}

.lost {
  text-align: center;
  padding: 28px 8px 8px;
}

.lost .code {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--fed);
  margin: 0 0 8px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  background: var(--fed);
  color: var(--white);
}

.btn:hover {
  background: var(--fed-dark);
  color: var(--white);
}

.btn-ghost {
  background: var(--white);
  color: var(--fed-ink);
  border: 1px solid var(--ink-200);
}

.btn-ghost:hover {
  background: var(--fed-wash);
  color: var(--fed-ink);
}

.faq {
  display: grid;
  gap: 0;
}

.faq details {
  border-top: 1px solid var(--ink-200);
  padding: 14px 0;
}

.faq details:last-child {
  border-bottom: 1px solid var(--ink-200);
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--fed-ink);
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details p {
  margin: 10px 0 4px;
  color: var(--ink-700);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--fed-ink);
  color: #c5d4e2;
  padding: 36px 0 28px;
  font-size: 15px;
}

.site-footer .wordmark {
  margin: 0 0 10px;
  color: var(--white);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.site-footer p {
  margin: 0 0 10px;
  max-width: 52rem;
}

.site-footer a {
  color: var(--fed-light);
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 18px 0 16px;
}

.foot-nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
}

.foot-nav a:hover {
  text-decoration: underline;
}

.copy {
  margin: 0;
  color: #8ea3b8;
  font-size: 13px;
}

/* ---------- Breakpoints ---------- */

@media (max-width: 639px) {
  .wrap {
    padding-inline: 16px;
  }

  .site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .header-tools {
    width: 100%;
    justify-content: space-between;
  }

  .site-nav {
    margin-inline: -8px;
  }

  .site-nav a {
    padding: 8px;
    font-size: 14px;
  }

  .notice-number {
    font-size: 22px;
  }

  .legal,
  .prose {
    width: min(760px, calc(100% - 24px));
    padding: 28px 20px 40px;
  }
}

@media (min-width: 720px) {
  .features {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .trust {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    padding: 64px 0 72px;
  }

  .brand .app-name {
    display: inline;
    margin-left: 6px;
    color: var(--ink-500);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0;
  }

  .step {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .step-alt {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .step-alt .step-copy {
    order: 2;
  }
}

@media (min-width: 960px) {
  .features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: visible;
    padding-bottom: 0;
  }

  .gallery figure {
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .site-header {
    backdrop-filter: none;
  }

  .prefix-reel,
  .push {
    animation: none;
  }
}
