:root {
  --bg: #05070f;
  --bg-2: #080c18;
  --bg-3: #0b1020;
  --surface: rgba(255, 255, 255, 0.042);
  --surface-2: rgba(255, 255, 255, 0.075);
  --surface-3: rgba(255, 255, 255, 0.11);
  --line: rgba(255, 255, 255, 0.085);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #e9edfb;
  --muted: #98a3c4;
  --dim: #6b7599;
  --cy: #22d3ee;
  --vi: #8b5cf6;
  --pi: #f472b6;
  --gr: #34d399;
  --am: #f59e0b;
  --grad: linear-gradient(118deg, #22d3ee 0%, #8b5cf6 48%, #f472b6 100%);
  --grad-soft: linear-gradient(118deg, rgba(34, 211, 238, 0.16), rgba(139, 92, 246, 0.16) 50%, rgba(244, 114, 182, 0.16));
  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 9px;
  --shadow-lg: 0 34px 70px -34px rgba(0, 0, 0, 0.85);
  --shadow-sm: 0 10px 30px -18px rgba(0, 0, 0, 0.8);
  --glow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 22px 60px -30px rgba(34, 211, 238, 0.55);
  --container: 1240px;
  --nav-h: 64px;
  --font-head: "Space Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "SFMono-Regular", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f4f6fc;
  --bg-2: #ffffff;
  --bg-3: #eef1fa;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-2: rgba(255, 255, 255, 0.92);
  --surface-3: rgba(240, 243, 253, 0.95);
  --line: rgba(16, 26, 64, 0.16);
  --line-strong: rgba(16, 26, 64, 0.3);
  --text: #0c1226;
  --muted: #47536f;
  --dim: #5c6886;
  --shadow-lg: 0 30px 60px -34px rgba(20, 30, 70, 0.35);
  --shadow-sm: 0 10px 26px -18px rgba(20, 30, 70, 0.4);
  --glow: 0 0 0 1px rgba(16, 26, 64, 0.08), 0 22px 50px -30px rgba(79, 70, 229, 0.45);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

input,
select,
textarea,
button,
input[type="search"] {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  text-align: left;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

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

::selection {
  background: rgba(139, 92, 246, 0.4);
}

.wrap {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 22px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--bg-2);
  padding: 12px 18px;
  border-radius: 0 0 12px 0;
}

.skip:focus {
  left: 0;
}

.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.aurora__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}

.aurora__blob--1 {
  width: 46vw;
  height: 46vw;
  top: -14vw;
  left: -8vw;
  background: radial-gradient(circle at 30% 30%, #22d3ee, transparent 68%);
  animation: drift1 26s ease-in-out infinite;
}

.aurora__blob--2 {
  width: 40vw;
  height: 40vw;
  top: 4vw;
  right: -10vw;
  background: radial-gradient(circle at 60% 40%, #8b5cf6, transparent 68%);
  animation: drift2 32s ease-in-out infinite;
}

.aurora__blob--3 {
  width: 34vw;
  height: 34vw;
  bottom: -12vw;
  left: 32vw;
  background: radial-gradient(circle at 50% 50%, #f472b6, transparent 70%);
  opacity: 0.32;
  animation: drift3 38s ease-in-out infinite;
}

[data-theme="light"] .aurora__blob {
  opacity: 0.3;
}

.aurora__grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 15%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 15%, transparent 75%);
}

[data-theme="light"] .aurora__grid {
  background-image: linear-gradient(rgba(16, 26, 64, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 26, 64, 0.06) 1px, transparent 1px);
}

@keyframes drift1 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(6vw, 4vw, 0) scale(1.12); }
}

@keyframes drift2 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1.05); }
  50% { transform: translate3d(-5vw, 6vw, 0) scale(0.95); }
}

@keyframes drift3 {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-7vw, -5vw, 0); }
}

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.nav.is-stuck {
  border-bottom-color: var(--line);
}

.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 22px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}

.brand__mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--grad);
  color: #04060e;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.03em;
  box-shadow: 0 10px 26px -12px rgba(139, 92, 246, 0.9);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__text strong {
  font-family: var(--font-head);
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.brand__text small {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  gap: 2px;
  margin-left: auto;
  flex-wrap: nowrap;
}

.nav__links a {
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav__links a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.nav__actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.icon-btn:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.nav__burger {
  display: none;
}

.hero {
  position: relative;
  z-index: 1;
  padding: clamp(52px, 9vw, 108px) 0 clamp(34px, 5vw, 62px);
}

.hero__inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 22px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.hero .eyebrow {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 7px 15px;
  border-radius: 999px;
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gr);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); }
  70% { box-shadow: 0 0 0 11px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero__title {
  margin: 26px 0 0;
  font-size: clamp(2.15rem, 6vw, 4.05rem);
  font-weight: 700;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 100%;
  animation: shift 12s ease infinite;
}

@keyframes shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero__sub {
  margin: 22px auto 0;
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
}

.hero__search {
  position: relative;
  margin: 34px auto 0;
  max-width: 640px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(12px);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.hero__search:focus-within {
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12), 0 20px 45px -28px rgba(34, 211, 238, 0.8);
}

.hero__search-icon {
  color: var(--dim);
  font-size: 1.15rem;
}

.hero__search input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  padding: 13px 0;
  outline: none;
  font-size: 1rem;
}

.hero__search input::placeholder {
  color: var(--dim);
}

.hero__search .btn {
  flex: 0 0 auto;
}

.kbd {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--dim);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 7px;
  padding: 3px 8px;
  margin-right: 12px;
}

.hero__quick {
  margin: 20px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: center;
}

.quick {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick:hover,
.quick.is-active {
  color: var(--text);
  border-color: rgba(139, 92, 246, 0.55);
  background: var(--grad-soft);
  transform: translateY(-1px);
}

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

.stat {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 16px 14px;
  text-align: center;
}

.stat b {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat span {
  color: var(--dim);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section {
  position: relative;
  z-index: 1;
  padding: clamp(48px, 7vw, 86px) 0;
  scroll-margin-top: var(--nav-h);
}

.section__head {
  max-width: 760px;
  margin-bottom: 30px;
}

.section__title {
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  margin-top: 12px;
}

.section__sub {
  color: var(--muted);
  margin-top: 12px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(326px, 1fr));
  grid-auto-rows: 1fr;
  gap: 18px;
}

.grid--picks {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.grid--resources {
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 20px 20px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.28s ease, box-shadow 0.28s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent, var(--cy)), transparent);
  opacity: 0.75;
}

.card::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent, var(--cy)), transparent 68%);
  opacity: 0.1;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: var(--glow);
}

.card:hover::after {
  opacity: 0.2;
}

.card__top {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.card__icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent, var(--cy));
  background: color-mix(in srgb, var(--accent, var(--cy)) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent, var(--cy)) 34%, transparent);
}

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

.card__cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent, var(--cy));
}

.card__name {
  font-size: 1.13rem;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.card__tagline {
  color: var(--muted);
  font-size: 0.92rem;
  flex: 1;
}

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

.tag {
  font-size: 0.73rem;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  white-space: nowrap;
}

.tag--level {
  font-weight: 600;
}

.tag--level i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
  background: currentColor;
}

.tag--open {
  border-color: rgba(52, 211, 153, 0.4);
  color: #7ee2ba;
}

.tag--proprietary {
  border-color: rgba(148, 163, 184, 0.35);
  color: #b6c0d8;
}

.tag--freemium {
  border-color: rgba(245, 158, 11, 0.42);
  color: #fbbf24;
}

.card__foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 13px;
  margin-top: auto;
  border-top: 1px solid var(--line);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease, opacity 0.2s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--grad);
  color: #04060e;
  box-shadow: 0 16px 36px -20px rgba(139, 92, 246, 0.95);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 46px -20px rgba(34, 211, 238, 0.95);
}

.btn--ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.btn--small {
  padding: 8px 14px;
  font-size: 0.84rem;
}

.btn--ghost[aria-pressed="true"] {
  border-color: rgba(34, 211, 238, 0.6);
  background: var(--grad-soft);
}

.card__foot .btn {
  flex: 1;
}

.card__foot .icon-btn {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
}

.icon-btn.is-on {
  border-color: rgba(34, 211, 238, 0.6);
  background: var(--grad-soft);
  color: var(--cy);
}

.card--pick .card__cat::after {
  content: "★ curadoria";
  margin-left: 6px;
  color: var(--am);
  letter-spacing: 0.1em;
}

.grid.is-list {
  grid-template-columns: 1fr;
  grid-auto-rows: auto;
}

.grid.is-list .card {
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
}

.grid.is-list .card__top {
  flex: 1 1 380px;
  align-items: center;
}

.grid.is-list .card__tagline {
  flex: 1 1 100%;
}

.grid.is-list .card__foot {
  flex: 1 1 220px;
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}

.filters {
  position: sticky;
  top: calc(var(--nav-h) + 8px);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  margin-bottom: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-2) 93%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
}

.filters__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.filters__top > .field--search {
  grid-area: 1 / 1;
}

.filters__top > #clearBtn {
  grid-area: 1 / 2;
  align-self: end;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1 1 150px;
  min-width: 0;
}

.field > span {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 700;
}

.field input,
.field select {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--line);
  background: var(--surface-2);
  outline: none;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus {
  border-color: rgba(34, 211, 238, 0.6);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

.field select option {
  background: var(--bg-2);
  color: var(--text);
}

.field--search {
  min-width: 0;
  position: relative;
}

.field--search .field__icon {
  position: absolute;
  left: 12px;
  bottom: 11px;
  color: var(--dim);
}

.field--search input {
  padding-left: 34px;
}

.filters__selects {
  grid-area: 2 / 1 / 3 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.chip i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c, var(--cy));
  box-shadow: 0 0 10px var(--c, var(--cy));
}

.chip b {
  font-weight: 700;
  color: var(--text);
  opacity: 0.75;
}

.chip:hover {
  color: var(--text);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.chip.is-active {
  color: var(--text);
  border-color: color-mix(in srgb, var(--c, var(--cy)) 65%, transparent);
  background: color-mix(in srgb, var(--c, var(--cy)) 16%, transparent);
}

.filters__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.result-count {
  font-size: 0.88rem;
  color: var(--muted);
}

.result-count b {
  color: var(--text);
}

.filters__tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
  background: var(--surface);
}

.toggle button {
  border: 0;
  background: none;
  padding: 9px 13px;
  cursor: pointer;
  color: var(--dim);
  font-size: 0.95rem;
}

.toggle button.is-active {
  background: var(--grad-soft);
  color: var(--text);
}

.empty {
  text-align: center;
  padding: 60px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}

.empty__icon {
  font-size: 2.4rem;
  color: var(--dim);
}

.empty h3 {
  margin: 12px 0 8px;
  font-size: 1.25rem;
}

.empty p {
  color: var(--muted);
  max-width: 460px;
  margin: 0 auto 20px;
}

.more {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.trail__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 22px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step__n {
  font-family: var(--font-head);
  font-size: 2.4rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.4px var(--line-strong);
}

.step__meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.step h3 {
  font-size: 1.1rem;
}

.step p {
  color: var(--muted);
  font-size: 0.93rem;
}

.step__links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  padding-top: 8px;
}

.mini-link {
  font-size: 0.78rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 11px;
  color: var(--muted);
  background: var(--surface);
  cursor: pointer;
  transition: all 0.2s ease;
}

.mini-link:hover {
  color: var(--text);
  border-color: rgba(34, 211, 238, 0.55);
  background: var(--grad-soft);
}

.ressrc {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.ressrc:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--glow);
}

.ressrc__top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ressrc__icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--grad-soft);
  border: 1px solid var(--line);
  font-size: 1rem;
}

.ressrc h3 {
  font-size: 1rem;
}

.ressrc p {
  color: var(--muted);
  font-size: 0.88rem;
  flex: 1;
}

.ressrc__tag {
  align-self: flex-start;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cy);
  font-weight: 700;
}

.accordion {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 12px;
  align-items: start;
}

details.term {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 0;
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}

details.term[open] {
  border-color: rgba(139, 92, 246, 0.45);
  background: var(--surface-2);
}

details.term summary {
  cursor: pointer;
  padding: 15px 18px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

details.term summary::after {
  content: "+";
  color: var(--vi);
  font-size: 1.3rem;
  line-height: 1;
  transition: transform 0.25s ease;
}

details.term[open] summary::after {
  transform: rotate(45deg);
}

details.term .term__body {
  padding: 0 18px 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.compare__picker {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 20px;
}

.compare__picker .field {
  flex: 1 1 320px;
}

.compare__slot {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 18px;
  overflow-x: auto;
}

.compare__presets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.compare__presets-label {
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 700;
  margin-right: 2px;
}

.compare__presets .chip {
  font-size: 0.82rem;
  padding: 6px 13px;
}

.compare__hint {
  color: var(--muted);
  text-align: center;
  padding: 30px 12px;
  font-size: 0.94rem;
}

table.cmp {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

table.cmp th,
table.cmp td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 0.9rem;
}

table.cmp thead th {
  font-family: var(--font-head);
  font-size: 1rem;
  border-bottom: 1px solid var(--line-strong);
  position: relative;
}

table.cmp thead th .cmp__dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 8px;
  background: var(--c, var(--cy));
}

table.cmp tbody th {
  width: 168px;
  color: var(--dim);
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

table.cmp tbody tr:hover {
  background: var(--surface-2);
}

table.cmp ul {
  margin: 0;
  padding-left: 16px;
  color: var(--muted);
}

.cmp__bar {
  display: flex;
  align-items: center;
  gap: 9px;
}

.cmp__bar span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  min-width: 30px;
}

.cmp__bar div {
  flex: 1;
  min-width: 60px;
  height: 7px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
}

.cmp__bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--grad);
}

.cmp__links {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cmp__links a {
  color: var(--cy);
  font-size: 0.86rem;
}

.cmp__links a:hover {
  text-decoration: underline;
}

.tray {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 70;
  width: min(940px, calc(100% - 24px));
  animation: slideUp 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes slideUp {
  from { transform: translate(-50%, 24px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

.tray__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--bg-3) 92%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-lg);
}

.tray__label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 700;
}

.tray__chips {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}

.tray__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 0.84rem;
}

.tray__chip button {
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--dim);
  font-size: 1rem;
  line-height: 1;
  padding: 0;
}

.tray__chip button:hover {
  color: var(--pi);
}

.tray__actions {
  display: flex;
  gap: 8px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 4, 10, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fade 0.25s ease;
}

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

.modal__panel {
  position: relative;
  width: min(1040px, 100%);
  max-height: min(88vh, 940px);
  overflow-y: auto;
  border-radius: 22px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  box-shadow: var(--shadow-lg);
  animation: pop 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes pop {
  from { transform: translateY(18px) scale(0.985); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.modal__head {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px 26px 18px;
  background: linear-gradient(180deg, var(--bg-3) 70%, transparent);
  border-bottom: 1px solid var(--line);
}

.modal__head .card__icon {
  width: 54px;
  height: 54px;
  font-size: 1.35rem;
  border-radius: 15px;
}

.modal__title {
  font-size: clamp(1.3rem, 3vw, 1.85rem);
}

.modal__tagline {
  color: var(--muted);
  margin-top: 6px;
  font-size: 0.96rem;
}

.modal__close {
  margin-left: auto;
  flex: 0 0 auto;
}

.modal__body {
  padding: 22px 26px 30px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 306px;
  gap: 30px;
}

.modal__main {
  display: flex;
  flex-direction: column;
  gap: 26px;
  min-width: 0;
}

.modal h3 {
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cy);
  margin-bottom: 11px;
}

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

.feature-list,
.start-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.feature-list li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
  font-size: 0.93rem;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gr);
  font-weight: 700;
}

.start-list {
  counter-reset: s;
  gap: 12px;
}

.start-list li {
  position: relative;
  counter-increment: s;
  padding-left: 40px;
  color: var(--muted);
  font-size: 0.93rem;
}

.start-list li::before {
  content: counter(s, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: -1px;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--grad-soft);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text);
}

.link-list {
  display: grid;
  gap: 9px;
}

.link-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: all 0.2s ease;
}

.link-row:hover {
  border-color: rgba(34, 211, 238, 0.5);
  background: var(--grad-soft);
  transform: translateX(3px);
}

.link-row span {
  font-size: 0.8rem;
  color: var(--dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-left: auto;
  flex: 0 0 auto;
}

.modal__aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-self: start;
  position: sticky;
  top: 108px;
}

.side-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 16px;
}

.side-card h4 {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 10px;
}

.side-card dl {
  margin: 0;
  display: grid;
  gap: 9px;
}

.side-card dt {
  font-size: 0.72rem
;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}

.side-card dd {
  margin: 3px 0 0;
  font-size: 0.9rem;
}

.rating {
  display: grid;
  gap: 8px;
}

.rating__row {
  display: grid;
  grid-template-columns: 96px 1fr 26px;
  align-items: center;
  gap: 9px;
  font-size: 0.8rem;
  color: var(--muted);
}

.rating__bar {
  height: 6px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
}

.rating__bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--grad);
}

.side-card ul {
  margin: 0;
  padding-left: 17px;
  color: var(--muted);
  font-size: 0.88rem;
  display: grid;
  gap: 6px;
}

.footer {
  position: relative;
  z-index: 1;
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-2) 80%, transparent);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: 30px;
  padding-top: 48px;
  padding-bottom: 40px;
}

.footer__brand p {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 14px;
  max-width: 340px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer__col h4 {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 3px;
}

.footer__col a {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer__col a:hover {
  color: var(--cy);
  padding-left: 4px;
}

.footer__note {
  color: var(--muted);
  font-size: 0.84rem;
  margin-bottom: 10px;
}

.footer__bar {
  border-top: 1px solid var(--line);
  padding: 16px 22px;
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--dim);
  font-size: 0.82rem;
}

.linkish {
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.82rem;
}

.linkish:hover {
  color: var(--cy);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
}

.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 1080px) {
  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
  .modal__body {
    grid-template-columns: 1fr;
  }
  .modal__aside {
    position: static;
  }
}

@media (max-width: 860px) {
  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    gap: 2px;
    padding: 14px 18px 20px;
    background: color-mix(in srgb, var(--bg-2) 97%, transparent);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    display: none;
  }
  .nav__links.is-open {
    display: flex;
  }
  .nav__links a {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 1rem;
  }
  .nav__burger {
    display: grid;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .filters {
    position: static;
  }
  .filters__selects {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 620px) {
  .wrap,
  .nav__inner,
  .hero__inner {
    padding-left: 16px;
    padding-right: 16px;
  }
  .hero .eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    padding: 6px 12px;
    text-align: left;
  }
  .hero__title {
    margin-top: 20px;
    font-size: clamp(1.85rem, 8.6vw, 2.5rem);
    line-height: 1.14;
  }
  .hero__sub {
    margin-top: 16px;
    font-size: 0.97rem;
  }
  .hero__search {
    margin-top: 26px;
    flex-wrap: wrap;
    border-radius: 20px;
    padding: 12px 14px;
  }
  .hero__search input {
    flex: 1 1 60%;
    padding: 6px 0;
  }
  .kbd {
    display: none;
  }
  .hero__search .btn {
    flex: 1 1 100%;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .field input,
  .field select {
    font-size: 0.82rem;
    padding: 10px 8px;
  }
  .filters {
    padding: 14px;
  }
  .filters__selects {
    gap: 8px;
  }
  .field--search input {
    padding-left: 32px;
  }
  .compare__presets .chip {
    font-size: 0.76rem;
    padding: 5px 10px;
  }
  .compare__presets-label {
    flex: 1 1 100%;
    margin-bottom: 2px;
  }
  .trail__list {
    gap: 30px;
  }
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -24px;
    width: 2px;
    height: 16px;
    transform: translateX(-50%);
    border-radius: 2px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--cy) 55%, transparent), transparent);
  }
  .card__foot {
    flex-wrap: wrap;
  }
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .modal {
    padding: 0;
  }
  .modal__panel {
    max-height: 100vh;
    height: 100%;
    border-radius: 0;
    border: 0;
  }
  .modal__head,
  .modal__body {
    padding-left: 18px;
    padding-right: 18px;
  }
  .tray {
    left: 0;
    bottom: 0;
    transform: none;
    width: 100%;
  }
  .tray__inner {
    border-radius: 16px 16px 0 0;
  }
  .filters__top {
    grid-template-columns: minmax(0, 1fr);
  }
  .filters__top > .field--search {
    grid-area: 1 / 1;
  }
  .filters__selects {
    grid-area: 2 / 1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .filters__top > #clearBtn {
    grid-area: 3 / 1;
    justify-self: stretch;
  }
  .filters__bottom {
    flex-direction: column;
    align-items: stretch;
  }
  .filters__tools {
    justify-content: space-between;
  }
}

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

/* ===== Ranking ===== */

.rank__toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  align-items: center;
  gap: 14px;
}

.rank__toolbar .chip {
  font-size: 0.82rem;
  padding: 6px 12px;
}

.rank__toolbar .field--rank-search {
  width: 100%;
  max-width: 300px;
  justify-self: end;
}

.ranking .result-count {
  margin: 16px 0 18px;
}

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

.rank__row {
  position: relative;
  display: grid;
  grid-template-columns: 44px 44px minmax(0, 1.25fr) minmax(0, 1.45fr) auto;
  grid-template-areas: "pos icon main facts actions";
  gap: 14px;
  align-items: center;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  overflow: hidden;
  transition: border-color 0.24s ease, transform 0.24s ease;
}

.rank__row:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.rank__row::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--accent, var(--cy));
  opacity: 0.5;
}

.rank__row--top::before {
  opacity: 1;
  box-shadow: 0 0 18px var(--accent, var(--cy));
}

.rank__pos {
  grid-area: pos;
  justify-self: center;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--muted);
}

.rank__row--top .rank__pos {
  color: #04060e;
  background: var(--grad);
  border-color: transparent;
}

.rank__icon {
  grid-area: icon;
  justify-self: center;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  font-size: 1rem;
  color: var(--accent, var(--cy));
  background: color-mix(in srgb, var(--accent, var(--cy)) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent, var(--cy)) 34%, transparent);
}

.rank__main {
  grid-area: main;
  min-width: 0;
  display: grid;
  gap: 6px;
}

.rank__name {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-head);
  font-size: 1.03rem;
  font-weight: 700;
  color: var(--text);
  overflow-wrap: anywhere;
}

.rank__name:hover {
  color: var(--accent, var(--cy));
}

.rank__cat {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--dim);
}

.rank__facts {
  grid-area: facts;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 18px;
  min-width: 0;
}

.rank__fact h5,
.rank__fact-title {
  margin: 0 0 5px;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.rank__fact-title {
  margin-top: 12px;
}

.rank__facts-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
  font-size: 0.82rem;
  color: var(--muted);
}

.rank__facts-list li {
  position: relative;
  padding-left: 15px;
}

.rank__facts-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--dim);
}

.rank__facts-list--best li::before {
  content: "▲";
  color: var(--gr);
}

.rank__facts-list--weak li::before {
  content: "▼";
  color: var(--am);
}

.rank__none {
  color: var(--dim);
  font-size: 0.82rem;
}

.rank__actions {
  grid-area: actions;
  display: grid;
  gap: 6px;
  justify-items: stretch;
}

.rank__actions .icon-btn {
  justify-self: end;
}

.rank__empty {
  margin-top: 14px;
  padding: 26px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.rank__legend {
  margin-top: 20px;
  font-size: 0.84rem;
  color: var(--dim);
  max-width: 900px;
}

.cmp__bar--score span {
  min-width: 52px;
}

.cmp__bar--score i {
  background: linear-gradient(90deg, #34d399, #22d3ee 55%, #8b5cf6);
}

.cmp__facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
  font-size: 0.84rem;
  color: var(--muted);
}

.cmp__facts li {
  position: relative;
  padding-left: 15px;
}

.cmp__facts li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--dim);
}

.side-card--rank .side-card__rank {
  margin: 0 0 9px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--accent, var(--cy));
}

.rank__score-big {
  margin-bottom: 4px;
}

.side-card .rank__facts-list {
  padding-left: 0;
  font-size: 0.85rem;
}

.card__rank {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-family: var(--font-mono);
}

.card__rank-score {
  font-size: 0.74rem;
  color: var(--muted);
  white-space: nowrap;
}

.card__rank-pos {
  font-family: var(--font-head);
  font-size: 0.82rem;
  color: var(--am);
}

.card--flagged {
  border-color: rgba(245, 158, 11, 0.5);
}

.card__flag {
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 999px;
  padding: 3px 11px;
}

/* ===== Atualizações ===== */

.updates__panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow-sm);
}

.updates__status {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 0.92rem;
  color: var(--muted);
  min-width: 0;
}

.updates__status b {
  color: var(--text);
}

.updates__dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dim);
}

.updates__dot.is-ok {
  background: var(--gr);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.16);
}

.updates__dot.is-err {
  background: var(--pi);
  box-shadow: 0 0 0 4px rgba(244, 114, 182, 0.16);
}

.updates__warn {
  color: var(--am);
}

.updates__progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--muted);
}

.updates__spinner {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  border-top-color: var(--cy);
  animation: nc-spin 0.8s linear infinite;
}

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

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

.updates__empty {
  padding: 24px;
  text-align: center;
  font-size: 0.92rem;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.updates__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.updates__kind {
  flex: 0 0 auto;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}

.updates__kind--in {
  color: #7ee2ba;
  border-color: rgba(52, 211, 153, 0.4);
}

.updates__kind--out {
  color: #f9a8d4;
  border-color: rgba(244, 114, 182, 0.4);
}

.updates__kind--warn {
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.4);
}

.updates__body {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.updates__body b {
  font-size: 0.96rem;
}

.updates__body p {
  font-size: 0.88rem;
  color: var(--muted);
}

.updates__name {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
}

.updates__name:hover {
  color: var(--cy);
}

.updates__when {
  font-size: 0.76rem;
  color: var(--dim);
}

.updates__when a {
  color: var(--cy);
}

.updates__note {
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--dim);
}

.updates__note code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 1px 6px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.nav__bell {
  position: relative;
}

.nav__badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--pi);
  color: #1a0410;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  border: 2px solid var(--bg);
}

/* ===== Responsivo: ranking e atualizações ===== */

@media (max-width: 1080px) {
  .rank__row {
    grid-template-columns: 44px 40px minmax(0, 1fr) auto;
    grid-template-areas:
      "pos icon main actions"
      "pos icon facts facts";
    row-gap: 11px;
  }
  .rank__actions {
    grid-auto-flow: row;
  }
}

@media (max-width: 860px) {
  .rank__toolbar {
    grid-template-columns: minmax(0, 1fr);
  }
  .rank__toolbar .field--rank-search {
    max-width: none;
  }
}

@media (max-width: 1240px) {
  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 2px;
    padding: 14px 18px 20px;
    background: color-mix(in srgb, var(--bg-2) 97%, transparent);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    display: none;
    margin-left: 0;
  }
  .nav__links.is-open {
    display: flex;
  }
  .nav__links a {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 1rem;
  }
  .nav__burger {
    display: grid;
  }
}

@media (max-width: 620px) {
  .rank__row {
    grid-template-columns: 34px 34px minmax(0, 1fr);
    grid-template-areas:
      "pos icon main"
      "facts facts facts"
      "actions actions actions";
    padding: 14px;
    gap: 11px;
  }
  .rank__facts {
    grid-template-columns: 1fr;
  }
  .rank__actions {
    display: flex;
    gap: 8px;
  }
  .rank__actions .btn {
    flex: 1;
  }
  .rank__actions .icon-btn {
    justify-self: auto;
  }
  .rank__pos {
    width: 30px;
    height: 30px;
    font-size: 0.82rem;
  }
  .rank__icon {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
  .updates__item {
    flex-direction: column;
    gap: 8px;
  }
  .updates__panel {
    flex-direction: column;
    align-items: stretch;
  }
  .updates__panel .btn {
    width: 100%;
  }
}

/* ===== Guias: como obter, usar e onde aplicar cada tipo ===== */

.grid--guides {
  grid-template-columns: repeat(auto-fill, minmax(322px, 1fr));
}

.guide {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 22px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.guide::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c, var(--cy)), transparent);
  opacity: 0.8;
}

.guide__head {
  display: flex;
  align-items: center;
  gap: 13px;
}

.guide__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  font-size: 1.35rem;
  color: var(--c, var(--cy));
  background: color-mix(in srgb, var(--c, var(--cy)) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--c, var(--cy)) 34%, transparent);
}

.guide__cat {
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.66rem;
  color: var(--dim);
}

.guide__head h3 {
  margin: 3px 0 0;
  font-family: var(--font-head);
  font-size: 1.1rem;
}

.guide__resumo {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text);
  opacity: 0.88;
  line-height: 1.6;
}

.guide__block h4 {
  margin: 0 0 6px;
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--cy);
}

.guide__block p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.62;
}

.guide__steps {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 5px;
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.5;
}

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

.guide__cost {
  margin: 0;
  font-size: 0.84rem;
  color: #7ee2ba;
}

.guide > .btn {
  align-self: flex-start;
}

/* ===== Licença gratuita + botão "obter" nos cards + seção "onde obter" ===== */

.tag--free {
  border-color: rgba(34, 211, 238, 0.42);
  color: #67e8f9;
}

.card__foot {
  flex-wrap: wrap;
}

.card__get {
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cy);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  white-space: nowrap;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.card__get:hover {
  border-color: rgba(34, 211, 238, 0.55);
  background: var(--grad-soft);
}

.obtain {
  border: 1px solid color-mix(in srgb, var(--cy) 32%, var(--line));
  background: var(--grad-soft);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}

.obtain h3 {
  margin-bottom: 8px;
}

.obtain p {
  margin: 0 0 6px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

.obtain .btn {
  margin-top: 10px;
}



/* ---- Filtros avançados (facets) ---- */
.facets__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.facet-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.facet-toggle:hover {
  border-color: color-mix(in srgb, var(--cy) 55%, transparent);
  transform: translateY(-1px);
}

.facet-toggle.is-open {
  border-color: color-mix(in srgb, var(--cy) 60%, transparent);
  background: color-mix(in srgb, var(--cy) 14%, transparent);
}

.facet-toggle.is-active {
  border-color: color-mix(in srgb, var(--cy) 70%, transparent);
}

.facet-toggle .facet-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--cy);
  color: #04121a;
  font-size: 0.72rem;
  font-weight: 700;
}

.facets__note {
  font-size: 0.78rem;
  color: var(--muted);
}

.facets {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}

.facets__group {
  display: grid;
  gap: 10px;
}

.facets__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.facets__head h3 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.facets__hint {
  font-size: 0.76rem;
  color: var(--muted);
}

.chips--facets .chip {
  padding: 6px 12px;
  font-size: 0.82rem;
}

.chip--facet b {
  font-size: 0.74rem;
  opacity: 0.6;
}

.chip--facet.is-active {
  border-color: color-mix(in srgb, var(--cy) 65%, transparent);
  background: color-mix(in srgb, var(--cy) 16%, transparent);
}

.facets__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.facets__foot p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

@media (max-width: 620px) {
  .facets {
    padding: 14px;
  }
  .facets__note {
    display: none;
  }
}


/* ---- Página individual da ferramenta (#/f/<id>) ---- */
.toolpage {
  padding: 96px 0 80px;
}

.toolpage__inner {
  width: min(1180px, 92vw);
  margin: 0 auto;
  display: grid;
  gap: 22px;
}

.toolpage__barwrap {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.toolpage__bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.toolpage__bar--split {
  justify-content: space-between;
}

.toolpage__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 26px 28px;
  border: 1px solid color-mix(in srgb, var(--accent, var(--cy)) 32%, var(--line));
  border-radius: var(--radius);
  background: var(--grad-soft);
}

.toolpage__icon {
  width: 74px;
  height: 74px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 2.1rem;
  background: color-mix(in srgb, var(--accent, var(--cy)) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent, var(--cy)) 40%, transparent);
}

.toolpage__eyebrow {
  margin: 0 0 4px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent, var(--cy));
  font-weight: 600;
}

.toolpage__title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  line-height: 1.1;
}

.toolpage__tagline {
  margin: 0 0 12px;
  color: var(--muted);
  max-width: 62ch;
}

.toolpage__tags,
.toolpage__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.toolpage__cta {
  display: grid;
  gap: 10px;
  justify-items: stretch;
}

.toolpage__body {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.toolpage__col {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.tsec {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 20px 22px;
}

.tsec h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.08rem;
}

.tsec p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.sheet {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px 20px;
  margin: 0;
}

.sheet > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--bg-2, var(--surface)) 60%, transparent);
  border: 1px solid var(--line);
}

.sheet dt {
  font-size: 0.82rem;
  color: var(--muted);
}

.sheet dd {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: right;
}

.sheet__no {
  opacity: 0.35;
}

@media (max-width: 980px) {
  .toolpage__body {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .toolpage {
    padding: 84px 0 60px;
  }
  .toolpage__head {
    grid-template-columns: minmax(0, 1fr);
    padding: 20px;
    text-align: left;
  }
  .toolpage__icon {
    width: 58px;
    height: 58px;
    font-size: 1.7rem;
  }
}


/* --- Correção de overflow dos link-rows em colunas estreitas (ex.: página da ferramenta) --- */
.link-row {
  min-width: 0;
}

.link-row > span:first-child {
  min-width: 0;
  flex: 1 1 auto;
  overflow-wrap: anywhere;
}


/* ---- Coleções (listas estilo loja de apps) ---- */
.collections__list {
  display: grid;
  gap: 22px;
}

.collections__list > * {
  min-width: 0;
}

.coll {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 18px 18px 16px;
  border-top: 2px solid color-mix(in srgb, var(--c, var(--cy)) 55%, transparent);
}

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

.coll__icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  background: color-mix(in srgb, var(--c, var(--cy)) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--c, var(--cy)) 38%, transparent);
}

.coll__head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.06rem;
}

.coll__head p {
  margin: 2px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.coll__count {
  margin-left: auto;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 10px;
}

.coll__row {
  min-width: 0;
  list-style: none;
  margin: 0;
  padding: 0 0 6px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 200px);
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.coll__row > li {
  scroll-snap-align: start;
}

.coll__item {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  grid-template-areas: "rank emoji meta" "name name name" "cat cat cat";
  align-items: center;
  gap: 4px 8px;
  padding: 12px 13px;
  text-align: left;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-2, var(--surface)) 55%, transparent);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.coll__item:hover {
  border-color: color-mix(in srgb, var(--ic, var(--cy)) 55%, transparent);
  background: color-mix(in srgb, var(--ic, var(--cy)) 10%, transparent);
  transform: translateY(-2px);
}

.coll__rank {
  grid-area: rank;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 1px 6px;
}

.coll__emoji {
  grid-area: emoji;
  font-size: 1.05rem;
}

.coll__meta {
  grid-area: meta;
  justify-self: end;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ic, var(--cy));
  white-space: nowrap;
}

.coll__name {
  grid-area: name;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.coll__cat {
  grid-area: cat;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
}

@media (max-width: 620px) {
  .coll {
    padding: 14px 12px 12px;
  }
  .coll__row {
    grid-auto-columns: minmax(158px, 170px);
  }
}

/* ===================================================== ferramentas de decisão */

.btn--xlarge {
  font-size: 1rem;
  padding: 15px 26px;
  border-radius: 14px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 26px 0 4px;
}

.pagehead {
  display: grid;
  gap: 8px;
}

.pagehead h1 {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  line-height: 1.08;
}

.pagehead__sub {
  margin: 0;
  color: var(--muted);
  max-width: 74ch;
  line-height: 1.65;
}

/* cards da seção "decidir" */
.decide__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}

.decide__card {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.decide__card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.decide__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  border-radius: 13px;
  background: var(--grad-soft);
  border: 1px solid var(--line);
}

.decide__card h3 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.1rem;
}

.decide__card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.decide__cta {
  color: var(--cy);
  font-weight: 600;
  font-size: 0.88rem;
}

.decide__ext {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.85rem;
}

/* chips de filtros extras (mudou esta semana / roda no meu PC) */
.chips--extra {
  margin-top: 12px;
}

.chip--extra.is-active {
  color: #fb923c;
  border-color: color-mix(in srgb, #fb923c 45%, var(--line));
  background: color-mix(in srgb, #fb923c 12%, transparent);
}

/* status nos cards */
.card__status {
  margin-top: 10px;
}

.st-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.st {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-2) 70%, transparent);
  color: var(--muted);
  white-space: nowrap;
}

.st--ok {
  color: var(--gr);
  border-color: color-mix(in srgb, var(--gr) 32%, var(--line));
}

.st--open {
  color: var(--vi);
  border-color: color-mix(in srgb, var(--vi) 32%, var(--line));
}

.st--free {
  color: var(--cy);
  border-color: color-mix(in srgb, var(--cy) 32%, var(--line));
}

.st--api {
  color: var(--am);
  border-color: color-mix(in srgb, var(--am) 32%, var(--line));
}

.st--warn {
  color: #fb7185;
  border-color: color-mix(in srgb, #fb7185 34%, var(--line));
}

.st--muted {
  opacity: 0.72;
}

.tag--recent {
  color: #fb923c;
  border-color: color-mix(in srgb, #fb923c 42%, var(--line));
}

.fav-btn {
  font-size: 1rem;
  line-height: 1;
}

.fav-btn.is-on {
  color: #fbbf24;
}

.fav-btn--big {
  width: 46px;
  height: 46px;
  font-size: 1.3rem;
}

.tsec__note {
  margin: -4px 0 12px;
  color: var(--muted);
  font-size: 0.86rem;
}

/* histórico de mudanças */
.changelog {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.changelog__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: baseline;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-2) 60%, transparent);
}

.changelog__kind {
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}

.changelog__link {
  color: var(--cy);
  text-decoration: none;
  border-bottom: 1px dotted color-mix(in srgb, var(--cy) 55%, transparent);
  white-space: nowrap;
}

.changelog__date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--cy);
  white-space: nowrap;
}

.changelog__text {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.5;
}

.changelog__src {
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
}

.changelog__src.is-live {
  color: var(--gr);
}

/* alternativas */
.alt-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.alt-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent, var(--cy)) 30%, var(--line));
  background: color-mix(in srgb, var(--accent, var(--cy)) 10%, transparent);
  color: var(--text);
  font-size: 0.85rem;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.18s, transform 0.18s;
}

.alt-chip:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent, var(--cy)) 60%, var(--line));
}

.alt__others {
  margin-top: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.alt__others h2 {
  margin: 0 0 12px;
  font-family: var(--font-head);
  font-size: 1.1rem;
}

/* --------------------------------------------------------------- recomendador */
.adv__prog {
  display: flex;
  align-items: center;
  gap: 8px;
}

.adv__dot {
  width: 26px;
  height: 5px;
  border-radius: 999px;
  background: var(--line-strong);
}

.adv__dot.is-on {
  background: var(--grad);
}

.adv__step {
  margin-left: auto;
  font-size: 0.82rem;
  color: var(--muted);
}

.adv__card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 26px;
  display: grid;
  gap: 16px;
}

.adv__q {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
}

.adv__hint {
  margin: -8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.adv__opts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.adv__opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-2) 60%, transparent);
  color: var(--text);
  font-size: 0.94rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s, transform 0.18s, background 0.18s;
}

.adv__opt:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.adv__opt.is-on {
  border-color: color-mix(in srgb, var(--cy) 55%, var(--line));
  background: color-mix(in srgb, var(--cy) 12%, transparent);
}

.adv__opt-icon {
  font-size: 1.2rem;
}

.adv__opt-check {
  margin-left: auto;
  color: var(--cy);
  font-weight: 700;
}

.adv__nav {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.adv__results {
  display: grid;
  gap: 16px;
}

.adv__result {
  padding: 22px;
  border: 1px solid color-mix(in srgb, var(--accent, var(--cy)) 30%, var(--line));
  border-radius: var(--radius);
  background: var(--surface);
  display: grid;
  gap: 12px;
}

.adv__result-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.adv__medal {
  font-size: 2rem;
  line-height: 1;
}

.adv__result-head h3 {
  margin: 2px 0 0;
  font-family: var(--font-head);
  font-size: 1.3rem;
}

.adv__result-cat {
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent, var(--cy));
  font-weight: 600;
}

.adv__score {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.adv__result-tag {
  margin: 0;
  color: var(--muted);
}

.adv__reasons {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.adv__reasons li {
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.55;
}

.adv__result-foot {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.adv__after {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------- calculadora de hardware */
.hw__picker {
  display: grid;
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.hw__presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hw__fields {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hw__summary {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid color-mix(in srgb, var(--cy) 30%, var(--line));
  background: var(--grad-soft);
  font-size: 0.95rem;
}

.hw__buckets {
  display: grid;
  gap: 16px;
}

.hw__bucket {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 18px 20px;
}

.hw__bucket h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-family: var(--font-head);
  font-size: 1.05rem;
}

.hw__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gr);
}

.hw__bucket--great .hw__dot { background: var(--gr); }
.hw__bucket--quant .hw__dot { background: var(--am); }
.hw__bucket--cpu .hw__dot { background: var(--cy); }
.hw__bucket--no .hw__dot { background: #fb7185; }

.hw__count {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--muted);
  font-family: var(--font-mono);
}

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

.hw__bucket li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: baseline;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-2) 60%, transparent);
}

.hw__micon { font-size: 1.05rem; }
.hw__sizes {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  text-align: right;
}

.hw__note {
  color: var(--dim);
  font-size: 0.84rem;
  line-height: 1.6;
  margin: 0;
}

/* ------------------------------------------------------------------ montador de stack */
.stack__modes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.stack__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent, var(--cy));
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.stack__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent, var(--cy)) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent, var(--cy)) 34%, var(--line));
}

.stack__slot {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent, var(--cy));
  font-weight: 600;
}

.stack__info h3 {
  margin: 4px 0 6px;
  font-family: var(--font-head);
  font-size: 1.12rem;
}

.stack__why {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.stack__opts {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  font-size: 0.8rem;
  color: var(--dim);
}

.stack__swap {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent, var(--cy)) 30%, var(--line));
  background: color-mix(in srgb, var(--accent, var(--cy)) 8%, transparent);
  color: var(--text);
  font-size: 0.8rem;
  cursor: pointer;
}

.stack__swap:hover {
  border-color: color-mix(in srgb, var(--accent, var(--cy)) 60%, var(--line));
}

.stack__side {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.stack__totals {
  border: 1px solid color-mix(in srgb, var(--vi) 26%, var(--line));
  border-radius: var(--radius);
  background: var(--surface);
  padding: 22px 24px;
  display: grid;
  gap: 14px;
}

.stack__totals h2 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.15rem;
}

.stack__checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 0.92rem;
}

.stack__totals dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.stack__totals dl > div {
  padding: 10px 13px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-2) 60%, transparent);
}

.stack__totals dt {
  font-size: 0.76rem;
  color: var(--muted);
}

.stack__totals dd {
  margin: 3px 0 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.stack__base {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.stack__warnings {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 7px;
  color: var(--am);
  font-size: 0.86rem;
  line-height: 1.5;
}

.stack__cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------------------- IA local */
.local__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.local__hw {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

.local__count {
  font-size: 0.92rem;
  color: var(--muted);
}

/* ------------------------------------------------------------------------- caixa */
.fav__msg {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.fav__msg.is-ok {
  border: 1px solid color-mix(in srgb, var(--gr) 35%, var(--line));
  background: color-mix(in srgb, var(--gr) 10%, transparent);
  color: var(--text);
}

.fav__msg.is-err {
  border: 1px solid color-mix(in srgb, #fb7185 38%, var(--line));
  background: color-mix(in srgb, #fb7185 10%, transparent);
  color: var(--text);
}

.fav .empty .btn {
  margin-top: 8px;
}

/* títulos de seção dentro do modal (reaproveitam .tsec) */
.modal__main .tsec {
  background: transparent;
  border: 0;
  padding: 0;
}

.modal__main .tsec h2 {
  font-size: 1rem;
}

@media (max-width: 900px) {
  .toolpage__body {
    grid-template-columns: minmax(0, 1fr);
  }
  .adv__result-top {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .adv__score {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .stack__row {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .stack__side {
    grid-column: 1 / -1;
    justify-items: start;
    grid-auto-flow: column;
    justify-content: start;
  }
}

@media (max-width: 620px) {
  .adv__opts,
  .decide__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .adv__card,
  .adv__result,
  .stack__row,
  .hw__bucket {
    padding: 16px;
  }
  .hero__cta .btn {
    width: 100%;
    justify-content: center;
  }
  .changelog__item {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* =========================================================================
   Bloco 2 — status dinâmico, stacks salvas, projetos, SEO e compartilhamento
   ========================================================================= */

/* --- selos de status: novos tons (info / dead) e tom neutro ------------- */
.st--info {
  color: var(--cy);
  border-color: color-mix(in srgb, var(--cy) 30%, var(--line));
}

.st--dead {
  color: #fb7185;
  border-color: color-mix(in srgb, #fb7185 42%, var(--line));
  background: color-mix(in srgb, #fb7185 8%, transparent);
}

/* --- "Status real" em dois blocos: automático × curadoria -------------- */
.statusblock {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: color-mix(in srgb, var(--bg-2) 55%, transparent);
}

.statusblock + .statusblock {
  margin-top: 12px;
}

.statusblock h3 {
  margin: 0 0 4px;
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.statusblock--auto {
  border-left: 3px solid color-mix(in srgb, var(--cy) 60%, var(--line));
}

.statusblock--curated {
  border-left: 3px solid color-mix(in srgb, var(--vi) 60%, var(--line));
}

.statusblock .sheet--status {
  margin-top: 10px;
}

.cmp__note {
  margin-top: 4px;
  font-size: 0.72rem;
  color: var(--dim);
}

/* --- montador: receita de origem + salvar stack ------------------------ */
.stack__source {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px dashed color-mix(in srgb, var(--cy) 45%, var(--line));
  background: color-mix(in srgb, var(--cy) 7%, transparent);
  margin-bottom: 14px;
  font-size: 0.92rem;
}

.stack__source-extra {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--dim);
  font-size: 0.84rem;
}

.stack__saveform {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--cy) 40%, var(--line));
  background: color-mix(in srgb, var(--bg-2) 70%, transparent);
}

.stack__savehint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--dim);
}

.stack__saveactions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* --- caixa: abas, stacks salvas e compartilhamento --------------------- */
.fav__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.favtab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-2) 60%, transparent);
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.favtab:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--cy) 40%, var(--line));
}

.favtab.is-active {
  color: var(--text);
  border-color: color-mix(in srgb, var(--cy) 55%, var(--line));
  background: color-mix(in srgb, var(--cy) 12%, transparent);
}

.favtab__n {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  padding: 1px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-2) 80%, transparent);
  border: 1px solid var(--line);
}

.fav__panel {
  margin-bottom: 18px;
}

.stackcards {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.stackcard {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: color-mix(in srgb, var(--bg-2) 60%, transparent);
  display: grid;
  gap: 12px;
}

.stackcard__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.stackcard__icon {
  font-size: 1.5rem;
}

.stackcard__head h3 {
  margin: 0;
  font-size: 1.02rem;
}

.stackcard__meta {
  margin: 3px 0 0;
  font-size: 0.76rem;
  color: var(--dim);
}

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

.stackcard__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fav__share {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: color-mix(in srgb, var(--bg-2) 50%, transparent);
  display: grid;
  gap: 12px;
}

.fav__share h3 {
  margin: 0;
  font-size: 1.02rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fav__share textarea,
.seo__box textarea {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.5;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-1, var(--bg-2)) 70%, transparent);
  color: var(--text);
  resize: vertical;
}

.fav__share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fav__paste {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.fav__qr {
  display: grid;
  place-items: center;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: #fff;
  max-width: 320px;
}

.fav__qr svg {
  width: 100%;
  height: auto;
}

.fav__qrload {
  margin: 0;
  color: #333;
}

.fav__note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--dim);
}

/* --- mini chips (peças de stack/projeto) ------------------------------- */
.mini-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-2) 55%, transparent);
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease;
}

.mini-chip:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--cy) 45%, var(--line));
}

.mini-chip--extra {
  border-color: color-mix(in srgb, var(--am) 40%, var(--line));
  color: var(--am);
}

/* --- projetos ("O que você quer construir?") --------------------------- */
.projects__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.project {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: color-mix(in srgb, var(--bg-2) 55%, transparent);
  display: grid;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.project::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--accent, var(--cy));
  opacity: 0.8;
}

.project__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.project__icon {
  font-size: 1.7rem;
}

.project__head h3 {
  margin: 0;
  font-size: 1.08rem;
}

.project__mode {
  font-size: 0.74rem;
  color: var(--dim);
}

.project p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}

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

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

.project__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

/* --- painel de SEO ------------------------------------------------------ */
.seo__check {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.seo__check li {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: color-mix(in srgb, var(--bg-2) 55%, transparent);
  display: grid;
  gap: 3px;
}

.seo__check li b {
  font-size: 0.92rem;
}

.seo__check li span {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.5;
}

.seo__note {
  font-size: 0.86rem;
  color: var(--dim);
  line-height: 1.6;
  margin: 0 0 16px;
}

.seo__box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: color-mix(in srgb, var(--bg-2) 50%, transparent);
  margin-bottom: 14px;
  display: grid;
  gap: 10px;
}

.seo__box header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.seo__box h3 {
  margin: 0;
  font-size: 0.9rem;
  font-family: var(--font-mono);
}

/* --- barras de ferramenta do recomendador + campo inline ---------------- */
.adv__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.field--inline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.field--inline > span {
  margin: 0;
}

.field--inline select {
  width: auto;
  min-width: 200px;
}

@media (max-width: 620px) {
  .projects__grid,
  .stackcards {
    grid-template-columns: minmax(0, 1fr);
  }
  .adv__toolbar {
    justify-content: stretch;
  }
  .field--inline {
    width: 100%;
    justify-content: space-between;
  }
  .field--inline select {
    flex: 1;
  }
}
