/* === Tony.Online · Mono (dark + light) ============================
   Pure black / pure white aesthetic. Brand green appears ONLY as an
   accent on buttons, status, traffic lights, and the analysis card.
   No tinted background blobs or green radial. ==================== */
:root,
[data-theme="dark"] {
  --bg: #000000;
  --bg-2: #0a0a0a;
  --bg-3: #141414;
  --fg: #f4f4f6;
  --fg-mut: #a5a5ad;
  --fg-dim: #6b6b75;
  --edge: rgba(255, 255, 255, 0.08);
  --edge-strong: rgba(255, 255, 255, 0.16);
  --panel: #0a0a0a;
  --doc-bg: linear-gradient(180deg, #101010 0%, #080808 100%);
  --doc-row: rgba(255, 255, 255, 0.04);
  --doc-row-hover: rgba(255, 255, 255, 0.06);
  --brand: #03de96;
  --brand-2: #6df0bf;
  --brand-deep: #03de96;
  --tl-green: #03de96;
  --tl-amber: #ffb550;
  --tl-red: #ff6b85;
  --mesh-a: transparent;
  --mesh-b: transparent;
  --mesh-c: transparent;
  --grid: rgba(255, 255, 255, 0.5);
  --grid-op: 0.05;
  --shadow-card:
    0 40px 120px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --btn-primary-shadow:
    0 0 0 1px rgba(3, 222, 150, 0.35), 0 8px 30px rgba(3, 222, 150, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  --btn-primary-shadow-hover:
    0 0 0 1px rgba(3, 222, 150, 0.55), 0 12px 40px rgba(3, 222, 150, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  --btn-primary-fg: #0a0a0a;
  --nav-bg: rgba(0, 0, 0, 0.72);
  --contact-bg: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0)
  );
  --contact-edge: var(--edge-strong);
}
[data-theme="light"] {
  --bg: #ffffff;
  --bg-2: #f6f6f6;
  --bg-3: #ececec;
  --fg: #0a0a0a;
  --fg-mut: #525258;
  --fg-dim: #8a8a90;
  --edge: rgba(0, 0, 0, 0.08);
  --edge-strong: rgba(0, 0, 0, 0.16);
  --panel: #ffffff;
  --doc-bg: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  --doc-row: rgba(0, 0, 0, 0.02);
  --doc-row-hover: rgba(0, 0, 0, 0.04);
  --brand: #03de96;
  --brand-2: #02b87b;
  --brand-deep: #015c40;
  --tl-green: #015c40;
  --tl-amber: #a86200;
  --tl-red: #a61932;
  --mesh-a: transparent;
  --mesh-b: transparent;
  --mesh-c: transparent;
  --grid: rgba(0, 0, 0, 0.4);
  --grid-op: 0.04;
  --shadow-card:
    0 30px 80px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  --btn-primary-shadow:
    0 0 0 1px rgba(3, 222, 150, 0.35), 0 8px 30px rgba(3, 222, 150, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  --btn-primary-shadow-hover:
    0 0 0 1px rgba(3, 222, 150, 0.55), 0 12px 40px rgba(3, 222, 150, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  --btn-primary-fg: #062614;
  --nav-bg: rgba(255, 255, 255, 0.78);
  --contact-bg: linear-gradient(160deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0));
  --contact-edge: var(--edge-strong);
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family:
    "Poppins",
    system-ui,
    -apple-system,
    sans-serif;
  font-weight: 300;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition:
    background 300ms ease,
    color 300ms ease;
}
body {
  background: var(--bg);
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
  cursor: pointer;
}

.mesh {
  display: none;
}
[data-theme="light"] .mesh {
  display: none;
}
.blob {
  display: none;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: var(--grid-op);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(
    ellipse 70% 60% at 50% 30%,
    #000,
    transparent 80%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 70% 60% at 50% 30%,
    #000,
    transparent 80%
  );
}

.particles {
  display: none;
}
.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 8px var(--brand);
  opacity: 0;
  animation: rise 12s linear infinite;
}
@keyframes rise {
  0% {
    transform: translateY(100vh) scale(0.5);
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  90% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(-10vh) scale(1);
    opacity: 0;
  }
}
[data-theme="light"] .particle {
  display: none;
}

.shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 18px 0;
  transition:
    background 300ms ease,
    backdrop-filter 300ms ease,
    border-color 300ms ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom-color: var(--edge);
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  height: 26px;
  display: block;
}
.logo.light-only {
  display: none;
}
[data-theme="light"] .logo.dark-only {
  display: none;
}
[data-theme="light"] .logo.light-only {
  display: block;
}
.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
}
.nav-link {
  font-size: 13.5px;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--fg-mut);
  transition:
    color 180ms ease,
    background 180ms ease;
}
.nav-link:hover {
  color: var(--fg);
  background: var(--doc-row-hover);
}

.theme-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--edge-strong);
  background: transparent;
  color: var(--fg-mut);
  display: grid;
  place-items: center;
  transition:
    color 200ms ease,
    border-color 200ms ease,
    background 200ms ease;
  margin-right: 4px;
}
.theme-btn:hover {
  color: var(--brand-2);
  border-color: var(--brand);
}
.theme-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 400ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.theme-btn:hover svg {
  transform: rotate(20deg);
}
.theme-btn .sun {
  display: none;
}
[data-theme="light"] .theme-btn .moon {
  display: none;
}
[data-theme="light"] .theme-btn .sun {
  display: block;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 11px 18px;
  border-radius: 10px;
  letter-spacing: 0.01em;
  transition:
    transform 200ms cubic-bezier(0.2, 0.7, 0.2, 1),
    background 200ms ease,
    box-shadow 200ms ease,
    color 200ms ease,
    border-color 200ms ease;
  will-change: transform;
}
.btn:active {
  transform: scale(0.97);
}
.btn-primary {
  background: var(--brand);
  color: var(--btn-primary-fg);
  box-shadow: var(--btn-primary-shadow);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--btn-primary-shadow-hover);
}
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--edge-strong);
}
.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand-2);
}
[data-theme="light"] .btn-ghost:hover {
  color: var(--brand-deep);
  background: rgba(3, 222, 150, 0.06);
}
.btn-lg {
  font-size: 15px;
  padding: 14px 24px;
  border-radius: 12px;
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Vertical only — horizontal gutter comes from .shell so it survives on
     viewports narrower than the 1240px max-width. */
  padding-top: 140px;
  padding-bottom: 100px;
  position: relative;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-2);
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(3, 222, 150, 0.08);
  border: 1px solid rgba(3, 222, 150, 0.25);
}
[data-theme="light"] .eyebrow {
  color: var(--brand-deep);
  background: rgba(3, 222, 150, 0.12);
  border-color: rgba(3, 222, 150, 0.35);
}
.eyebrow .pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(3, 222, 150, 0.2);
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(3, 222, 150, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(3, 222, 150, 0);
  }
}

h1.hero-title {
  font-size: clamp(56px, 9vw, 140px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  font-weight: 200;
  margin: 24px 0 28px;
  max-width: 1100px;
  text-wrap: balance;
}
h1.hero-title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
  animation: rise-in 1s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
h1.hero-title .word:nth-child(1) {
  animation-delay: 0.1s;
}
h1.hero-title .word:nth-child(2) {
  animation-delay: 0.22s;
}
h1.hero-title .word:nth-child(3) {
  animation-delay: 0.34s;
}
@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
h1.hero-title em {
  font-style: normal;
  font-weight: 400;
  background: linear-gradient(
    120deg,
    var(--brand) 0%,
    var(--brand-2) 50%,
    var(--fg) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 100%;
  animation: shine 4s ease-in-out infinite alternate;
}
[data-theme="light"] h1.hero-title em {
  background: linear-gradient(
    120deg,
    var(--brand-deep) 0%,
    var(--brand) 60%,
    #015c40 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 100%;
}
@keyframes shine {
  to {
    background-position: 200% 0;
  }
}

.lede {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--fg-mut);
  max-width: 640px;
  line-height: 1.55;
  margin: 0 0 36px;
  font-weight: 300;
  opacity: 0;
  animation: rise-in 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.9s forwards;
}
.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  animation: rise-in 1s cubic-bezier(0.2, 0.7, 0.2, 1) 1.1s forwards;
}

.ticker {
  margin-top: 64px;
  border-top: 1px solid var(--edge);
  border-bottom: 1px solid var(--edge);
  padding: 24px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  opacity: 0;
  animation: rise-in 1s cubic-bezier(0.2, 0.7, 0.2, 1) 1.4s forwards;
}
.ticker-item {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  gap: 0;
}
.ticker-item .num {
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--fg);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: clamp(34px, 4.2vw, 52px);
}
.ticker-item .num.au-icon {
  align-items: center;
  justify-content: center;
  align-self: center;
  width: 100%;
  text-align: center;
}
.ticker-item .num.au-icon img {
  height: clamp(34px, 4.4vw, 54px);
  width: auto;
  display: block;
  margin: 0 auto;
}
[data-theme="dark"] .ticker-item .num.au-icon img {
  filter: invert(1) brightness(1.05);
}
.ticker-item .num.au-icon svg {
  height: clamp(34px, 4.4vw, 54px);
  width: auto;
  color: var(--fg);
  fill: currentColor;
}
.ticker-item .num.list {
  font-size: clamp(14px, 1.6vw, 18px);
  letter-spacing: 0.02em;
  align-items: center;
}
.ticker-item .num.list .sep {
  color: var(--fg-dim);
  margin: 0 3px;
  font-weight: 400;
}
.ticker-item .num.phrase {
  font-size: clamp(18px, 2.2vw, 26px);
  letter-spacing: -0.01em;
  align-items: center;
  line-height: 1.1;
}
.ticker-item.center {
  text-align: center;
  align-items: center;
}
.ticker-item.center .num {
  justify-content: center;
}
.ticker-item .num.sym {
  align-items: center;
  justify-content: flex-start;
  color: var(--brand-deep);
  font-weight: 400;
}
[data-theme="dark"] .ticker-item .num.sym {
  color: var(--brand-2);
}
.ticker-item .num.sym .sym-glyph {
  display: inline-block;
  line-height: 1;
}
.ticker-item .num .pre {
  color: var(--brand-deep);
}
.ticker-item .label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-top: 10px;
  font-weight: 500;
}
@media (max-width: 760px) {
  .ticker {
    grid-template-columns: repeat(2, 1fr);
  }
}

.section {
  /* Vertical only — keep .shell's horizontal gutter (see .hero note). */
  padding-top: 140px;
  padding-bottom: 140px;
  position: relative;
}
.section-head {
  max-width: 780px;
}
.section-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-2);
  margin-bottom: 18px;
}
[data-theme="light"] .section-tag {
  color: var(--brand-deep);
}
.section-title {
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 200;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}
.section-title strong {
  font-weight: 400;
  color: var(--brand-2);
}
[data-theme="light"] .section-title strong {
  color: var(--brand-deep);
}
.section-lede {
  font-size: 17px;
  color: var(--fg-mut);
  max-width: 600px;
  margin-top: 22px;
  line-height: 1.55;
}

/* ===== Analysis card ===== */
.pkg-wrap {
  margin: 80px auto 0;
  position: relative;
  perspective: 2000px;
  max-width: 780px;
}
.pkg {
  position: relative;
  background: var(--doc-bg);
  border: 1px solid var(--edge-strong);
  border-radius: 18px;
  overflow: visible;
  color: var(--fg);
  box-shadow: var(--shadow-card);
  transform-style: preserve-3d;
  transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.pkg-wrap.tilt .pkg {
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.pkg::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(3, 222, 150, 0.5),
    transparent 40%,
    rgba(3, 222, 150, 0.2)
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.55;
}
.pkg-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--edge);
  background: var(--doc-row);
}
.pkg-head-l {
  display: flex;
  align-items: center;
  gap: 14px;
}
.pkg-avatar {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(
    135deg,
    rgba(3, 222, 150, 0.4),
    rgba(3, 222, 150, 0.12)
  );
  border: 1px solid rgba(3, 222, 150, 0.35);
  display: grid;
  place-items: center;
  color: var(--brand-2);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
}
[data-theme="light"] .pkg-avatar {
  color: var(--brand-deep);
}
.pkg-title {
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--fg);
}
.pkg-sub {
  font-size: 12px;
  color: var(--fg-dim);
  margin-top: 2px;
}
.pkg-fy {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--doc-row);
  color: var(--fg-mut);
  border: 1px solid var(--edge-strong);
}
.pkg-files-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px 8px;
  font-size: 12px;
  color: var(--fg-dim);
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pkg-files-head b {
  color: var(--fg-mut);
  font-weight: 500;
}
.pkg-files-head .head-dots {
  display: inline-flex;
  gap: 1px;
  margin-left: 3px;
  color: var(--brand);
  font-weight: 700;
  line-height: 1;
}
[data-theme="light"] .pkg-files-head .head-dots {
  color: var(--brand-deep);
}
.pkg-files-head .head-dots span {
  opacity: 0.15;
  animation: headDot 1.4s ease-in-out infinite;
}
.pkg-files-head .head-dots span:nth-child(2) {
  animation-delay: 0.18s;
}
.pkg-files-head .head-dots span:nth-child(3) {
  animation-delay: 0.36s;
}
.pkg.analysis-complete .pkg-files-head .head-dots span {
  animation: none;
  opacity: 0;
}
@keyframes headDot {
  0%,
  70%,
  100% {
    opacity: 0.15;
  }
  35% {
    opacity: 1;
  }
}
.pkg-files {
  padding: 0 12px;
  max-height: 360px;
  overflow: visible;
}
.file-row {
  display: grid;
  grid-template-columns: 22px 1fr 18px;
  gap: 14px;
  align-items: center;
  padding: 11px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  border-bottom: 1px solid var(--edge);
  transition: background 200ms ease;
  position: relative;
}

/* Side popup for flagged lines */
.row-callout {
  position: absolute;
  right: calc(100% + 28px);
  top: 50%;
  transform: translateY(-50%) translateX(14px);
  opacity: 0;
  pointer-events: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition:
    opacity 360ms ease,
    transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}
.row-callout::before {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
}
.row-callout .ico {
  width: 12px;
  height: 12px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: currentColor;
  color: currentColor;
}
.row-callout .ico::after {
  content: "!";
  color: var(--bg);
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 9px;
  line-height: 1;
}
.row-callout.amber {
  background: rgba(255, 181, 80, 0.1);
  color: var(--tl-amber);
  border: 1px solid rgba(255, 181, 80, 0.45);
}
.row-callout.red {
  background: rgba(255, 107, 133, 0.1);
  color: var(--tl-red);
  border: 1px solid rgba(255, 107, 133, 0.45);
}
[data-theme="light"] .row-callout {
  box-shadow: 0 6px 16px rgba(20, 25, 46, 0.1);
}
[data-theme="light"] .row-callout.amber {
  background: rgba(168, 98, 0, 0.06);
  border-color: rgba(168, 98, 0, 0.35);
}
[data-theme="light"] .row-callout.red {
  background: rgba(166, 25, 50, 0.06);
  border-color: rgba(166, 25, 50, 0.35);
}
.file-row.show-callout .row-callout {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
@media (max-width: 820px) {
  .row-callout {
    display: none;
  }
}
.file-row:last-child {
  border-bottom: none;
}
.file-row:hover {
  background: var(--doc-row);
}
.file-ico {
  width: 22px;
  height: 26px;
  color: var(--fg-mut);
  opacity: 0.7;
  flex: none;
}
.file-name {
  color: var(--fg);
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}
.file-meta {
  font-size: 11px;
  color: var(--fg-dim);
  font-family: "JetBrains Mono", monospace;
  margin-top: 2px;
  letter-spacing: 0.02em;
}

.file-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px dashed var(--edge-strong);
  display: grid;
  place-items: center;
  color: transparent;
  transition: all 400ms cubic-bezier(0.2, 0.7, 0.2, 1);
  font-size: 0;
}
.file-check.scanning {
  border-color: var(--brand);
  border-style: solid;
  animation: cspin 1s linear infinite;
  border-top-color: transparent;
}
@keyframes cspin {
  to {
    transform: rotate(360deg);
  }
}
.file-check.done {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--btn-primary-fg);
  border-style: solid;
  animation: popIn 360ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
[data-theme="light"] .file-check.done {
  color: #fff;
  background: var(--brand-deep);
  border-color: var(--brand-deep);
}
.file-check.flag-amber {
  background: var(--tl-amber);
  border-color: var(--tl-amber);
  color: #2a1700;
  border-style: solid;
  animation: popIn 360ms cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 0 3px rgba(255, 181, 80, 0.18);
}
[data-theme="light"] .file-check.flag-amber {
  color: #fff;
  background: var(--tl-amber);
  border-color: var(--tl-amber);
  box-shadow: 0 0 0 3px rgba(168, 98, 0, 0.15);
}
.file-check.flag-red {
  background: var(--tl-red);
  border-color: var(--tl-red);
  color: #2a0008;
  border-style: solid;
  animation: popIn 360ms cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 0 3px rgba(255, 107, 133, 0.18);
}
[data-theme="light"] .file-check.flag-red {
  color: #fff;
  background: var(--tl-red);
  border-color: var(--tl-red);
  box-shadow: 0 0 0 3px rgba(166, 25, 50, 0.15);
}
@keyframes popIn {
  0% {
    transform: scale(0.4);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
.file-check.done svg.ico-check,
.file-check.flag-amber svg.ico-alert,
.file-check.flag-red svg.ico-alert {
  display: block;
}
.file-check svg {
  display: none;
  width: 12px;
  height: 12px;
}
.file-kebab {
  color: var(--fg-dim);
  opacity: 0.5;
  font-size: 18px;
  letter-spacing: 1px;
  line-height: 1;
  text-align: right;
}

.pkg-analysis {
  padding: 18px 22px 22px;
  border-top: 1px solid var(--edge);
  background: var(--doc-row);
}
.pkg-analysis h4 {
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 14px;
  letter-spacing: -0.005em;
  color: var(--fg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pkg-analysis h4 .right {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--fg-dim);
  font-weight: 400;
  letter-spacing: 0.02em;
}
.prog-track {
  position: relative;
  height: 4px;
  background: var(--edge-strong);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 10px;
}
.prog-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, var(--brand-2), var(--brand));
  border-radius: 2px;
  width: 0%;
  transition: width 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
  box-shadow: 0 0 12px rgba(3, 222, 150, 0.6);
}
.prog-stages {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.04em;
  color: var(--fg-dim);
  margin-bottom: 14px;
}
.prog-stages .stage {
  padding: 2px 6px;
  border-radius: 4px;
  transition:
    color 300ms ease,
    background 300ms ease;
}
.prog-stages .stage.active {
  color: var(--brand-deep);
  background: rgba(3, 222, 150, 0.12);
  font-weight: 500;
}
[data-theme="dark"] .prog-stages .stage.active {
  color: var(--brand-2);
}
.prog-stages .stage.done {
  color: var(--fg-mut);
}

.prog-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--fg);
  background: rgba(3, 222, 150, 0.06);
  border: 1px solid rgba(3, 222, 150, 0.18);
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 400;
}
.prog-status .spin {
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--edge-strong);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: cspin 0.9s linear infinite;
  flex: none;
}
.prog-status.done {
  background: rgba(3, 222, 150, 0.1);
  border-color: rgba(3, 222, 150, 0.3);
  color: var(--brand-deep);
}
[data-theme="dark"] .prog-status.done {
  color: var(--brand-2);
}
.prog-status .text {
  flex: 1;
  transition: opacity 200ms ease;
}
.prog-status .check {
  display: none;
  color: var(--brand-deep);
  width: 16px;
  height: 16px;
  flex: none;
}
[data-theme="dark"] .prog-status .check {
  color: var(--brand-2);
}
.prog-status.done .spin {
  display: none;
}
.prog-status.done .check {
  display: block;
}

.pkg-chip {
  position: absolute;
  background: linear-gradient(160deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--edge-strong);
  border-radius: 12px;
  padding: 11px 15px;
  font-size: 12px;
  color: var(--fg);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 11px;
  animation: floatchip 6s ease-in-out infinite;
  z-index: 2;
}
[data-theme="light"] .pkg-chip {
  background: #fff;
  box-shadow: 0 12px 30px rgba(20, 25, 46, 0.12);
}
.pkg-chip .ci {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(3, 222, 150, 0.16);
  border: 1px solid rgba(3, 222, 150, 0.3);
  color: var(--brand-deep);
  display: grid;
  place-items: center;
}
[data-theme="dark"] .pkg-chip .ci {
  color: var(--brand);
}
.pkg-chip .ct {
  font-weight: 500;
  font-size: 12.5px;
  line-height: 1.1;
}
.pkg-chip .cs {
  font-size: 10.5px;
  color: var(--fg-dim);
  font-family: "JetBrains Mono", monospace;
  margin-top: 3px;
  letter-spacing: 0.02em;
}
.pkg-chip.top {
  top: -22px;
  right: -26px;
  animation-delay: -1s;
}
.pkg-chip.bot {
  bottom: -26px;
  left: -26px;
  animation-delay: -3s;
}
@media (max-width: 820px) {
  .pkg-chip {
    display: none;
  }
}
@keyframes floatchip {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 900ms cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-d="1"] {
  transition-delay: 0.1s;
}
.reveal[data-d="2"] {
  transition-delay: 0.2s;
}
.reveal[data-d="3"] {
  transition-delay: 0.3s;
}
.reveal[data-d="4"] {
  transition-delay: 0.4s;
}

.feat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-top: 120px;
}
.feat-row:nth-child(even) {
  direction: rtl;
}
.feat-row:nth-child(even) > * {
  direction: ltr;
}
.feat-row.no-vis {
  grid-template-columns: 1fr;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  direction: ltr;
}
@media (max-width: 900px) {
  .feat-row,
  .feat-row.no-vis {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  /* Undo the desktop column-swap once rows stack, so order stays natural. */
  .feat-row:nth-child(even) {
    direction: ltr;
  }
}
.feat-copy h3 {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 18px 0 14px;
}
.feat-copy h3 strong {
  font-weight: 500;
  color: var(--brand-2);
}
[data-theme="light"] .feat-copy h3 strong {
  color: var(--brand-deep);
}
.feat-copy p {
  color: var(--fg-mut);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  font-weight: 300;
}
.feat-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-deep);
}
[data-theme="dark"] .feat-tag {
  color: var(--brand);
}
.feat-visual {
  aspect-ratio: 1.15;
  border-radius: 20px;
  background: linear-gradient(160deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--edge-strong);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

/* Visual 2: classify */
.vis-sort {
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.classify-card {
  background: var(--doc-row);
  border: 1px solid var(--edge);
  border-radius: 12px;
  width: 100%;
  max-width: 340px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cc-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--edge);
}
.cc-head svg {
  width: 14px;
  height: 18px;
  color: var(--brand-deep);
  flex: none;
  opacity: 0.85;
}
[data-theme="dark"] .cc-head svg {
  color: var(--brand-2);
}
.cc-fn {
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--fg);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cc-thinking {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
}
.cc-row {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 5px 8px;
  border-radius: 5px;
  color: var(--fg-mut);
  transition:
    color 500ms ease,
    background 500ms ease,
    opacity 500ms ease;
}
.cc-row .ci {
  display: grid;
  place-items: center;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1.4px solid var(--edge-strong);
  position: relative;
  transition: all 400ms ease;
  color: transparent;
  font-size: 0;
}
.cc-row.checking {
  color: var(--fg);
}
.cc-row.checking .ci {
  border-color: var(--brand);
  border-top-color: transparent;
  animation: cspin 0.9s linear infinite;
}
.cc-row.match {
  color: var(--brand-deep);
  background: rgba(3, 222, 150, 0.08);
}
[data-theme="dark"] .cc-row.match {
  color: var(--brand-2);
}
.cc-row.match .ci {
  border-color: var(--brand);
  background: var(--brand);
  animation: none;
}
.cc-row.match .ci::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 5px;
  width: 3px;
  height: 1.5px;
  border-left: 1.5px solid var(--btn-primary-fg);
  border-bottom: 1.5px solid var(--btn-primary-fg);
  transform: rotate(-45deg);
  transform-origin: left center;
}
.cc-row.no-match {
  opacity: 0.35;
}
.cc-row.no-match .ci {
  border-color: var(--edge);
  animation: none;
}
.cc-row .cl {
  font-weight: 500;
  letter-spacing: 0.005em;
}
.cc-row .conf {
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px;
  color: var(--fg-dim);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.cc-row.match .conf {
  color: var(--brand-deep);
  font-weight: 600;
}
[data-theme="dark"] .cc-row.match .conf {
  color: var(--brand-2);
}
.cc-foot {
  padding-top: 10px;
  border-top: 1px solid var(--edge);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
}
.cc-foot-label {
  color: var(--fg-mut);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.cc-foot-result {
  color: var(--brand-deep);
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(3, 222, 150, 0.1);
  border: 1px solid rgba(3, 222, 150, 0.3);
  opacity: 0;
  transition: opacity 500ms ease;
}
[data-theme="dark"] .cc-foot-result {
  color: var(--brand-2);
}
.cc-foot-result.show {
  opacity: 1;
}

/* Visual 3: group tree */
.vis-group {
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  gap: 0;
}
.vis-group .root {
  padding: 10px 16px;
  border-radius: 11px;
  background: linear-gradient(
    135deg,
    rgba(3, 222, 150, 0.18),
    rgba(3, 222, 150, 0.06)
  );
  border: 1px solid rgba(3, 222, 150, 0.4);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--fg);
  font-weight: 500;
  box-shadow: 0 0 24px rgba(3, 222, 150, 0.15);
}
.vis-group .root .ri {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--brand);
  color: var(--btn-primary-fg);
  display: grid;
  place-items: center;
}
.vis-group .root .sub {
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px;
  color: var(--fg-dim);
  letter-spacing: 0.06em;
  font-weight: 400;
  margin-left: 2px;
  text-transform: uppercase;
}
.vis-group .gconn {
  width: 1px;
  height: 22px;
  background: var(--edge-strong);
  position: relative;
  margin: 6px 0 0;
  overflow: hidden;
}
.vis-group .gconn::after {
  content: "";
  position: absolute;
  top: -30%;
  left: 0;
  width: 100%;
  height: 30%;
  background: linear-gradient(180deg, transparent, var(--brand), transparent);
  animation: gconFlow 4s ease-in-out infinite;
}
@keyframes gconFlow {
  0% {
    top: -30%;
  }
  45%,
  100% {
    top: 120%;
  }
}
.vis-group .children {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: 100%;
  max-width: 380px;
  position: relative;
  padding-top: 14px;
}
.vis-group .children::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: var(--edge-strong);
}
.vis-group .echild {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 4px;
  border-radius: 9px;
  background: var(--doc-row);
  border: 1px solid var(--edge);
  position: relative;
}
.vis-group .echild::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  width: 1px;
  height: 14px;
  background: var(--edge-strong);
  transform: translateX(-50%);
}
.vis-group .echild .et {
  font-family: "JetBrains Mono", monospace;
  font-size: 8.5px;
  letter-spacing: 0.1em;
  color: var(--fg-dim);
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--bg);
  border: 1px solid var(--edge);
  text-transform: uppercase;
  line-height: 1.4;
}
.vis-group .echild .en {
  font-size: 10.5px;
  color: var(--fg);
  font-weight: 500;
  text-align: center;
  font-family: "JetBrains Mono", monospace;
  line-height: 1.2;
}
.vis-group .echild .est {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  color: var(--fg-mut);
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
}
.vis-group .echild .est .d {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 2px rgba(3, 222, 150, 0.15);
}
.vis-group .xnote {
  margin-top: 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--brand-deep);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.85;
}
[data-theme="dark"] .vis-group .xnote {
  color: var(--brand-2);
}
.vis-group .xnote .xd {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand);
  animation: hldot2 2s ease-in-out infinite;
}
@keyframes hldot2 {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(3, 222, 150, 0.4);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(3, 222, 150, 0);
  }
}

/* ===== Who Tony helps (new section, v2) ===== */
.who-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 70px;
}
@media (max-width: 860px) {
  .who-grid {
    grid-template-columns: 1fr;
  }
}
.who-card {
  padding: 36px 32px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--edge-strong);
  position: relative;
  overflow: hidden;
  transition:
    border-color 240ms ease,
    transform 240ms ease;
}
.who-card:hover {
  border-color: rgba(3, 222, 150, 0.35);
  transform: translateY(-3px);
}
.who-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 100% 0%,
    rgba(3, 222, 150, 0.08),
    transparent 50%
  );
  pointer-events: none;
}
.who-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(3, 222, 150, 0.08);
  border: 1px solid rgba(3, 222, 150, 0.25);
}
[data-theme="dark"] .who-tag {
  color: var(--brand-2);
}
.who-card h3 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 0 12px;
}
.who-card h3 strong {
  font-weight: 500;
  color: var(--brand-2);
}
[data-theme="light"] .who-card h3 strong {
  color: var(--brand-deep);
}
.who-card p {
  color: var(--fg-mut);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 22px;
  font-weight: 300;
}
.who-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.who-bullets li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 14px;
  color: var(--fg);
  padding-top: 12px;
  border-top: 1px solid var(--edge);
}
.who-bullets li:first-child {
  padding-top: 0;
  border-top: none;
}
.who-bullets li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(3, 222, 150, 0.16);
  border: 1.5px solid var(--brand);
  margin-top: 5px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 70px;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--brand) 50%,
    transparent
  );
  opacity: 0.5;
}
@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .steps::before {
    display: none;
  }
}
.step {
  position: relative;
  text-align: left;
  padding-top: 80px;
}
.step .num {
  position: absolute;
  top: 0;
  left: 0;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: var(--btn-primary-fg);
  display: grid;
  place-items: center;
  font-family: "JetBrains Mono", monospace;
  font-weight: 600;
  font-size: 22px;
  box-shadow: 0 0 40px rgba(3, 222, 150, 0.4);
}
.step h4 {
  font-size: 22px;
  font-weight: 500;
  margin: 8px 0 12px;
  letter-spacing: -0.01em;
}
.step p {
  color: var(--fg-mut);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
  font-weight: 300;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 60px;
}
@media (max-width: 860px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 500px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
}
.trust {
  padding: 24px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--edge);
  transition:
    border-color 240ms ease,
    transform 240ms ease;
}
.trust:hover {
  border-color: rgba(3, 222, 150, 0.35);
  transform: translateY(-4px);
}
.trust .ti {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(3, 222, 150, 0.1);
  border: 1px solid rgba(3, 222, 150, 0.3);
  color: var(--brand-deep);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
[data-theme="dark"] .trust .ti {
  color: var(--brand);
}
.trust h5 {
  font-size: 14px;
  margin: 0 0 6px;
  font-weight: 500;
}
.trust p {
  font-size: 13px;
  color: var(--fg-mut);
  margin: 0;
  line-height: 1.5;
  font-weight: 300;
}

.contact {
  margin: 60px 0 80px;
  padding: 80px 56px;
  border-radius: 24px;
  text-align: center;
  background: var(--contact-bg);
  border: 1px solid var(--contact-edge);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(3, 222, 150, 0.1), transparent 50%),
    radial-gradient(
      circle at 70% 50%,
      rgba(109, 240, 191, 0.1),
      transparent 50%
    );
  animation: pulse-bg 8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes pulse-bg {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}
.contact h2 {
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 200;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 16px;
  position: relative;
  text-wrap: balance;
}
.contact h2 strong {
  font-weight: 400;
  color: var(--brand-2);
}
[data-theme="light"] .contact h2 strong {
  color: var(--brand-deep);
}
.contact p {
  color: var(--fg-mut);
  font-size: 17px;
  margin: 0 0 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
  position: relative;
  font-weight: 300;
}
.contact .actions {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
}
.email-line {
  display: block;
  margin-top: 18px;
  font-size: 13px;
  color: var(--fg-dim);
  position: relative;
}
.email-line strong {
  color: var(--fg);
  font-weight: 500;
}

.foot {
  /* Vertical only — keep .shell's horizontal gutter (see .hero note). */
  padding-top: 40px;
  padding-bottom: 60px;
  border-top: 1px solid var(--edge);
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-size: 13px;
  color: var(--fg-dim);
}
.foot-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.foot-disclaimer {
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--edge);
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--fg-dim);
  max-width: 920px;
  font-weight: 300;
}
.foot-l {
  display: flex;
  align-items: center;
  gap: 14px;
}
.foot-l img {
  height: 20px;
  opacity: 0.7;
}
.foot-l img.light-only {
  display: none;
}
[data-theme="light"] .foot-l img.dark-only {
  display: none;
}
[data-theme="light"] .foot-l img.light-only {
  display: inline;
}
.foot-links {
  display: flex;
  gap: 18px;
}
.foot-links a:hover {
  color: var(--fg-mut);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  h1.hero-title .word,
  .lede,
  .cta-row,
  .ticker {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

.foot-attribution {
  max-width: 760px;
  margin: 8px auto 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}

.foot-attribution a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--muted) 40%, transparent);
  text-underline-offset: 2px;
  transition: color 0.2s;
}

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

/* ===== Responsive refinements =====================================
   The full nav row (logo + 3 anchor links + theme + 2 buttons) can't fit
   below ~650px, where Sign in / Contact us overflow past the right edge and
   get clipped by body{overflow-x:hidden}. Collapse to a simplified bar: the
   anchor links also live in the footer, so on phones we keep just the theme
   toggle + Sign in + Contact us — the actions that matter. ============ */
@media (max-width: 720px) {
  .nav-link {
    display: none;
  }
  .nav-links {
    gap: 8px;
  }
}

/* Phone widths: tighten the page gutter and scale the oversized display
   headings down so the non-breaking hero phrase ("accounted for.") and the
   section titles stop overflowing the right edge. */
@media (max-width: 600px) {
  .shell {
    padding-left: 20px;
    padding-right: 20px;
  }
  h1.hero-title {
    font-size: clamp(32px, 10vw, 50px);
  }
  .section-title {
    font-size: clamp(28px, 7.5vw, 44px);
  }
  .contact {
    padding: 48px 24px;
  }
  .contact h2 {
    font-size: clamp(30px, 8vw, 44px);
  }
  /* Centre the footer row (logo + copyright + links) on phones, so it lines
     up with the centred contact text above and attribution below instead of
     wrapping left-aligned. */
  .foot-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* Small phones: shrink the logo + nav actions so the logo + theme + both
   buttons stay on-screen and clickable down to ~320px. */
@media (max-width: 400px) {
  .logo {
    height: 22px;
  }
  .nav-links {
    gap: 6px;
  }
  .nav-links .btn {
    padding: 8px 12px;
    font-size: 12.5px;
  }
  .theme-btn {
    width: 34px;
    height: 34px;
    margin-right: 2px;
  }
}
