:root {
  --ink: #111111;
  --paper: #f4f3ef;
  --paper-2: #ebe9e3;
  --muted: #706f6a;
  --lime: #d9ff3f;
  --coral: #ff5c35;
  --blue: #8ed8ff;
  --sand: #dbc8a7;
  --rail: 84px;
  --gap: 15px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 84% 0, rgba(217, 255, 63, 0.18), transparent 20rem),
    var(--paper);
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

button {
  color: inherit;
}

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

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

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

.site-rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  width: var(--rail);
  flex-direction: column;
  align-items: center;
  color: #fff;
  background: var(--ink);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.rail-logo {
  position: relative;
  display: grid;
  width: 100%;
  height: 86px;
  place-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 23px;
  font-weight: 850;
  letter-spacing: -0.09em;
}

.rail-logo b {
  color: var(--lime);
}

.site-rail nav {
  display: flex;
  width: 100%;
  flex: 1;
  flex-direction: column;
  align-items: center;
  padding-top: 24px;
  gap: 12px;
}

.site-rail nav a,
.site-rail nav button {
  position: relative;
  display: flex;
  width: 58px;
  min-height: 58px;
  padding: 7px 4px;
  border: 0;
  border-radius: 13px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: rgba(255, 255, 255, 0.55);
  background: transparent;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.site-rail nav a:hover,
.site-rail nav button:hover,
.site-rail nav .is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.site-rail nav .is-active::before {
  position: absolute;
  left: -13px;
  width: 5px;
  height: 25px;
  border-radius: 0 4px 4px 0;
  background: var(--lime);
  content: "";
}

.site-rail nav span {
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.site-rail nav small {
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rail-ai {
  display: grid;
  width: 100%;
  height: 84px;
  place-items: center;
  align-content: center;
  gap: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.78);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.rail-ai i,
.ai-status i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(217, 255, 63, 0.12);
}

main {
  width: calc(100% - var(--rail));
  margin-left: var(--rail);
}

.feed-header {
  padding: 28px clamp(22px, 4vw, 64px) 18px;
}

.brand-line {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 35px;
}

.wordmark {
  font-size: 24px;
  font-weight: 880;
  letter-spacing: -0.075em;
}

.beta-label {
  padding: 3px 7px 4px;
  border: 1px solid rgba(17, 17, 17, 0.16);
  border-radius: 999px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  margin-left: auto;
  border-radius: 999px;
  gap: 9px;
  color: #4a4a45;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.08);
  font-size: 11px;
  font-weight: 700;
}

.headline-row {
  display: grid;
  grid-template-columns: minmax(360px, 1.3fr) minmax(240px, 0.7fr);
  align-items: end;
  gap: clamp(24px, 6vw, 94px);
  margin-top: clamp(34px, 5.8vw, 86px);
}

.eyebrow {
  margin: 0 0 13px;
  color: #686761;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(54px, 7.3vw, 118px);
  font-weight: 870;
  letter-spacing: -0.085em;
  line-height: 0.79;
}

.intro {
  max-width: 390px;
  margin: 0 0 6px;
  color: #56554f;
  font-size: clamp(16px, 1.45vw, 22px);
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 106px;
  gap: var(--gap);
  margin-top: clamp(42px, 6vw, 92px);
}

.search-box {
  display: grid;
  min-height: 64px;
  padding: 0 18px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 17px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 14px 42px rgba(32, 31, 26, 0.06);
}

.search-box > span:first-child {
  font-size: 27px;
  font-weight: 500;
  transform: rotate(-20deg);
}

.search-box input {
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 17px;
}

.search-box input::placeholder {
  color: #97958d;
}

.search-box kbd {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 7px;
  color: #7a7871;
  background: #f4f3ef;
  font: 12px/1 ui-monospace, monospace;
}

.result-count {
  display: flex;
  min-height: 64px;
  border-radius: 17px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--ink);
}

.result-count strong {
  font-size: 22px;
  line-height: 1;
}

.result-count span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filter-list {
  display: flex;
  padding: 15px 0 2px;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-list::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  display: inline-flex;
  min-height: 36px;
  padding: 0 11px 0 14px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 999px;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.62);
  cursor: pointer;
  font-size: 12px;
  font-weight: 680;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.filter-chip span {
  display: grid;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  place-items: center;
  border-radius: 999px;
  color: #67665f;
  background: rgba(17, 17, 17, 0.07);
  font-size: 9px;
}

.filter-chip:hover,
.filter-chip.is-active {
  border-color: var(--ink);
  color: #fff;
  background: var(--ink);
}

.filter-chip.is-active span {
  color: var(--ink);
  background: var(--lime);
}

.masonry-feed {
  padding: 0 clamp(22px, 4vw, 64px) 60px;
  column-count: 5;
  column-gap: var(--gap);
}

.deal-card {
  position: relative;
  display: inline-flex;
  width: 100%;
  min-height: 280px;
  margin: 0 0 var(--gap);
  overflow: hidden;
  border-radius: 14px;
  break-inside: avoid;
  flex-direction: column;
  vertical-align: top;
  background: #deddd6;
  box-shadow: 0 13px 26px rgba(24, 23, 20, 0.12);
  transform: translateY(0);
  transition: box-shadow 180ms ease, transform 180ms ease;
  animation: card-in 480ms both;
  animation-delay: calc(var(--sequence) * 35ms);
}

.deal-card:hover {
  z-index: 2;
  box-shadow: 0 22px 45px rgba(24, 23, 20, 0.18);
  transform: translateY(-4px);
}

.deal-card[hidden] {
  display: none;
}

.deal-card.size-short {
  min-height: 250px;
}

.deal-card.size-mid {
  min-height: 310px;
}

.deal-card.size-tall {
  min-height: 380px;
}

.image-card {
  color: #fff;
  background: #171717;
}

.card-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.62), transparent 26%),
    linear-gradient(145deg, var(--sand), var(--blue));
}

.card-media::after {
  position: absolute;
  inset: 24% 0 0;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.12) 22%, rgba(0, 0, 0, 0.9) 100%);
  content: "";
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.image-card:hover .card-media img {
  transform: scale(1.035);
}

.card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
  display: flex;
  max-width: calc(100% - 58px);
  flex-wrap: wrap;
  gap: 5px;
}

.card-badges span {
  display: inline-flex;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 5px;
  align-items: center;
  color: #fff;
  background: rgba(15, 15, 15, 0.9);
  backdrop-filter: blur(8px);
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.025em;
  line-height: 1.05;
}

.card-badges .discount-badge {
  color: var(--ink);
  background: var(--lime);
}

.card-badges .demo-badge {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
}

.save-button {
  position: absolute;
  top: 11px;
  right: 11px;
  z-index: 5;
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  place-items: center;
  color: #fff;
  background: rgba(15, 15, 15, 0.86);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.save-button:hover {
  transform: rotate(8deg) scale(1.05);
}

.save-button.is-saved {
  color: var(--ink);
  background: var(--lime);
}

.save-button.is-saved span {
  transform: rotate(45deg);
}

.card-copy {
  position: relative;
  z-index: 3;
  display: flex;
  height: 100%;
  padding: 18px;
  margin-top: auto;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
}

.image-card .card-copy {
  min-height: inherit;
  padding-top: 132px;
}

.card-merchant {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 9px;
  font-weight: 730;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.deal-card h2 {
  margin: 0;
  font-size: clamp(19px, 1.5vw, 25px);
  font-weight: 790;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.card-description {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.36;
}

.price-row {
  display: flex;
  margin-top: 16px;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.price-row strong {
  font-size: 21px;
  letter-spacing: -0.05em;
}

.price-row del {
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
}

.card-footer {
  display: flex;
  min-height: 28px;
  margin-top: 15px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.card-footer a {
  display: inline-flex;
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 760;
}

.source-pending,
.card-number {
  color: rgba(255, 255, 255, 0.58);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card-number {
  margin-left: auto;
}

.text-card {
  color: var(--ink);
  background: var(--lime);
}

.text-card.accent-coral {
  background: var(--coral);
}

.text-card.accent-blue {
  background: var(--blue);
}

.text-card.accent-sand {
  background: var(--sand);
}

.text-card.accent-ink {
  color: #fff;
  background: var(--ink);
}

.text-card .card-copy {
  padding-top: 75px;
  justify-content: space-between;
}

.text-card .card-merchant {
  color: rgba(17, 17, 17, 0.6);
}

.text-card.accent-ink .card-merchant {
  color: rgba(255, 255, 255, 0.6);
}

.text-card h2 {
  font-size: clamp(24px, 2vw, 34px);
  line-height: 0.95;
}

.text-card .card-description {
  color: rgba(17, 17, 17, 0.68);
  font-size: 13px;
  line-height: 1.45;
}

.text-card.accent-ink .card-description {
  color: rgba(255, 255, 255, 0.7);
}

.text-card .source-pending,
.text-card .card-number {
  color: rgba(17, 17, 17, 0.55);
}

.text-card.accent-ink .source-pending,
.text-card.accent-ink .card-number {
  color: rgba(255, 255, 255, 0.55);
}

.empty-state {
  margin: 0 clamp(22px, 4vw, 64px) 60px;
  padding: 60px 24px;
  border: 1px dashed rgba(17, 17, 17, 0.22);
  border-radius: 16px;
  text-align: center;
}

.empty-state strong {
  font-size: 28px;
  letter-spacing: -0.04em;
}

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

.empty-state button {
  min-height: 40px;
  padding: 0 15px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--ink);
  cursor: pointer;
}

.about-strip {
  display: grid;
  padding: clamp(42px, 6vw, 90px) clamp(22px, 4vw, 64px);
  grid-template-columns: 90px minmax(260px, 1fr) minmax(220px, 0.55fr);
  gap: clamp(22px, 5vw, 78px);
  color: #fff;
  background: var(--ink);
}

.about-index {
  margin: 6px 0 0;
  color: var(--lime);
  font: 11px/1 ui-monospace, monospace;
}

.about-strip h2 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(42px, 5.2vw, 78px);
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.about-strip > div > p {
  max-width: 650px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 15px;
  line-height: 1.55;
}

.about-facts {
  display: grid;
  align-content: end;
  gap: 12px;
}

.about-facts p {
  display: flex;
  padding: 13px 0;
  margin: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.about-facts strong {
  color: var(--lime);
  font-size: 24px;
}

.about-facts span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 10px;
  text-align: right;
  text-transform: uppercase;
}

.site-footer {
  display: grid;
  min-height: 120px;
  padding: 30px clamp(22px, 4vw, 64px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 30px;
  color: #fff;
  background: var(--ink);
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  max-width: min(360px, calc(100vw - 36px));
  padding: 13px 16px;
  border-radius: 12px;
  color: var(--ink);
  background: var(--lime);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
  font-size: 12px;
  font-weight: 720;
}

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

@media (max-width: 1440px) {
  .masonry-feed {
    column-count: 4;
  }
}

@media (max-width: 1120px) {
  .headline-row {
    gap: 36px;
  }

  .masonry-feed {
    column-count: 3;
  }
}

@media (max-width: 800px) {
  :root {
    --rail: 0px;
  }

  body {
    padding-bottom: 67px;
  }

  .site-rail {
    inset: auto 0 0;
    width: 100%;
    height: 67px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-right: 0;
    flex-direction: row;
  }

  .rail-logo,
  .rail-ai {
    width: 68px;
    height: 100%;
    border: 0;
  }

  .site-rail nav {
    padding: 0;
    flex-direction: row;
    justify-content: center;
  }

  .site-rail nav a,
  .site-rail nav button {
    width: 64px;
    min-height: 53px;
  }

  .site-rail nav .is-active::before {
    inset: auto 18px -7px;
    width: auto;
    height: 4px;
    border-radius: 4px 4px 0 0;
  }

  main {
    width: 100%;
    margin-left: 0;
  }

  .feed-header {
    padding-top: 21px;
  }

  .headline-row {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 42px;
  }

  h1 {
    font-size: clamp(58px, 16vw, 92px);
  }

  .intro {
    max-width: 520px;
  }

  .search-row {
    margin-top: 44px;
  }

  .about-strip {
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .about-facts {
    grid-column: 2;
  }
}

@media (max-width: 640px) {
  .ai-status {
    padding: 0 9px;
    font-size: 9px;
  }

  .masonry-feed {
    column-count: 2;
    column-gap: 9px;
  }

  .deal-card {
    min-height: 250px;
    margin-bottom: 9px;
    border-radius: 9px;
  }

  .deal-card.size-short {
    min-height: 220px;
  }

  .deal-card.size-mid {
    min-height: 270px;
  }

  .deal-card.size-tall {
    min-height: 330px;
  }

  .card-copy {
    padding: 12px;
  }

  .image-card .card-copy {
    padding-top: 105px;
  }

  .card-badges {
    top: 8px;
    left: 8px;
    max-width: calc(100% - 44px);
  }

  .card-badges span {
    min-height: 18px;
    padding: 3px 6px;
    font-size: 7px;
  }

  .save-button {
    top: 7px;
    right: 7px;
    width: 28px;
    height: 28px;
  }

  .deal-card h2 {
    font-size: 17px;
  }

  .text-card h2 {
    font-size: 22px;
  }

  .card-description {
    display: none;
  }

  .text-card .card-description {
    display: block;
    font-size: 11px;
  }

  .price-row {
    margin-top: 11px;
  }

  .price-row strong {
    font-size: 17px;
  }

  .search-row {
    grid-template-columns: minmax(0, 1fr) 76px;
    gap: 8px;
  }

  .search-box,
  .result-count {
    min-height: 54px;
    border-radius: 12px;
  }

  .search-box {
    padding: 0 12px;
  }

  .search-box input {
    font-size: 14px;
  }

  .search-box kbd {
    display: none;
  }

  .about-strip {
    grid-template-columns: 1fr;
  }

  .about-index,
  .about-facts {
    grid-column: 1;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
  }

  .site-footer p:nth-of-type(1) {
    display: none;
  }
}

@media (max-width: 420px) {
  .brand-line {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .ai-status {
    width: 100%;
    margin: 7px 0 0;
  }

  h1 {
    font-size: 54px;
  }

  .intro {
    font-size: 15px;
  }

  .masonry-feed {
    column-count: 1;
  }

  .deal-card h2 {
    font-size: 24px;
  }

  .text-card h2 {
    font-size: 30px;
  }

  .card-description {
    display: block;
  }

  .deal-card,
  .deal-card.size-short,
  .deal-card.size-mid,
  .deal-card.size-tall {
    min-height: 330px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

/* Detail and system pages */
.card-media {
  display: block;
}

.card-title-link {
  position: relative;
  z-index: 1;
}

.card-title-link::after {
  position: absolute;
  inset: -5px;
  content: "";
}

.about-more {
  display: inline-flex;
  margin-top: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  font-size: 12px;
  font-weight: 760;
}

.site-footer {
  min-height: 210px;
  grid-template-columns: minmax(190px, 1fr) auto auto auto;
  align-items: start;
  gap: clamp(28px, 4vw, 72px);
}

.footer-brand {
  display: grid;
  gap: 12px;
}

.footer-nav {
  display: grid;
  min-width: 150px;
  align-content: start;
  gap: 9px;
}

.footer-nav strong {
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  transition: color 160ms ease;
}

.footer-nav a:hover {
  color: var(--lime);
}

.footer-copy {
  white-space: nowrap;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #7a7871;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.breadcrumbs a {
  border-bottom: 1px solid rgba(17, 17, 17, 0.25);
}

.system-hero {
  padding: 30px clamp(22px, 6vw, 100px) clamp(58px, 8vw, 126px);
  border-bottom: 1px solid rgba(17, 17, 17, 0.11);
}

.system-hero > .eyebrow {
  margin-top: clamp(64px, 9vw, 150px);
}

.system-hero h1,
.not-found h1 {
  max-width: 1050px;
  font-size: clamp(54px, 8.2vw, 132px);
  line-height: 0.82;
}

.system-lead {
  max-width: 780px;
  margin: clamp(34px, 4vw, 64px) 0 0;
  color: #56554f;
  font-size: clamp(18px, 2vw, 28px);
  letter-spacing: -0.035em;
  line-height: 1.35;
}

.revision-label {
  margin: 28px 0 0;
  color: #8a8880;
  font: 10px/1.4 ui-monospace, monospace;
  text-transform: uppercase;
}

.system-layout {
  display: grid;
  padding: clamp(52px, 7vw, 112px) clamp(22px, 6vw, 100px);
  grid-template-columns: minmax(0, 820px) minmax(210px, 280px);
  justify-content: space-between;
  gap: clamp(50px, 8vw, 140px);
}

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

.prose-section {
  padding: 0 0 clamp(42px, 6vw, 78px);
  margin: 0 0 clamp(42px, 6vw, 78px);
  border-bottom: 1px solid rgba(17, 17, 17, 0.12);
}

.prose-section:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.prose-section h2,
.item-facts h2,
.related-heading h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(34px, 4.1vw, 62px);
  font-weight: 830;
  letter-spacing: -0.065em;
  line-height: 0.96;
}

.prose-body {
  max-width: 720px;
  margin-top: 25px;
  color: #4e4d47;
  font-size: 16px;
  line-height: 1.7;
}

.prose-body p {
  margin: 0 0 18px;
}

.prose-body p:last-child {
  margin-bottom: 0;
}

.prose-body ul {
  padding: 0;
  margin: 0 0 18px;
  list-style: none;
}

.prose-body li {
  position: relative;
  padding: 9px 0 9px 24px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.prose-body li::before {
  position: absolute;
  top: 18px;
  left: 2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
  content: "";
}

.prose-body a {
  border-bottom: 1px solid currentColor;
  color: #1e5790;
  font-weight: 720;
}

.prose-body code {
  padding: 2px 5px;
  border-radius: 5px;
  background: #e7e5dd;
  font: 0.88em/1.4 ui-monospace, monospace;
}

.policy-callout {
  padding: 24px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 15px;
  color: var(--ink);
  background: var(--lime);
}

.policy-callout strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.policy-callout p {
  margin: 0;
}

.system-aside {
  position: sticky;
  top: 28px;
  display: grid;
  align-self: start;
  padding: 20px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 15px;
  gap: 3px;
  background: rgba(255, 255, 255, 0.6);
}

.system-aside p {
  margin: 0 0 10px;
  color: #8a8880;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.system-aside a {
  padding: 10px 11px;
  border-radius: 9px;
  color: #5d5b55;
  font-size: 12px;
  font-weight: 680;
}

.system-aside a:hover,
.system-aside a.is-active {
  color: #fff;
  background: var(--ink);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.status-card {
  display: grid;
  min-height: 128px;
  padding: 18px;
  border-radius: 13px;
  align-content: space-between;
  color: #fff;
  background: var(--ink);
}

.status-card span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-card strong {
  color: var(--lime);
  font-size: clamp(22px, 3vw, 36px);
  letter-spacing: -0.05em;
}

.item-shell {
  padding: 30px clamp(22px, 5vw, 86px) clamp(70px, 9vw, 140px);
}

.item-hero {
  display: grid;
  min-height: min(760px, calc(100vh - 90px));
  margin-top: 28px;
  overflow: hidden;
  border-radius: 22px;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  color: #fff;
  background: var(--ink);
  box-shadow: 0 24px 60px rgba(24, 23, 20, 0.18);
}

.item-hero-text {
  min-height: 620px;
  grid-template-columns: minmax(0, 1fr);
}

.item-media {
  position: relative;
  min-height: 560px;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(145deg, var(--sand), var(--blue));
}

.item-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 65%, rgba(0, 0, 0, 0.25));
  content: "";
}

.item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-primary {
  display: flex;
  min-width: 0;
  padding: clamp(30px, 5vw, 78px);
  flex-direction: column;
  justify-content: center;
}

.item-badges {
  display: flex;
  margin-bottom: 34px;
  flex-wrap: wrap;
  gap: 7px;
}

.item-badges span,
.item-badges strong,
.item-badges em {
  display: inline-flex;
  min-height: 25px;
  padding: 5px 9px;
  border-radius: 999px;
  align-items: center;
  color: var(--ink);
  background: #fff;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.item-badges strong {
  background: var(--coral);
}

.item-badges em {
  background: var(--lime);
}

.item-merchant {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.item-primary h1 {
  max-width: 750px;
  font-size: clamp(48px, 5.5vw, 94px);
  line-height: 0.88;
}

.item-description {
  max-width: 620px;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(16px, 1.4vw, 21px);
  line-height: 1.5;
}

.item-price {
  display: flex;
  margin-top: 38px;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 13px;
}

.item-price strong {
  color: var(--lime);
  font-size: clamp(34px, 4vw, 58px);
  letter-spacing: -0.065em;
}

.item-price del {
  color: rgba(255, 255, 255, 0.4);
  font-size: 15px;
}

.item-notice {
  max-width: 590px;
  padding: 16px 18px;
  margin-top: 34px;
  border: 1px solid rgba(217, 255, 63, 0.28);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(217, 255, 63, 0.08);
  font-size: 12px;
  line-height: 1.5;
}

.item-notice strong {
  color: #fff;
}

.delivery-label {
  display: inline-flex;
  margin: 24px 0 0;
  padding: 9px 12px;
  border-radius: 999px;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  background: var(--lime);
  font-size: 11px;
  font-weight: 780;
}

.delivery-label span {
  font-size: 8px;
}

.item-actions {
  display: flex;
  margin-top: 34px;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-action,
.disabled-action,
.secondary-action {
  display: inline-flex;
  min-height: 49px;
  padding: 0 18px;
  border-radius: 11px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 780;
}

.primary-action {
  color: var(--ink);
  background: var(--lime);
}

.disabled-action {
  color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.09);
}

.secondary-action {
  color: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.auth-note {
  max-width: 610px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.54);
  font-size: 11px;
  line-height: 1.5;
}

.contact-section {
  display: grid;
  padding: clamp(70px, 9vw, 130px) 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.12);
  grid-template-columns: minmax(260px, 0.85fr) minmax(360px, 1.15fr);
  gap: clamp(40px, 8vw, 130px);
}

.contact-section h2 {
  max-width: 560px;
  margin: 10px 0 20px;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: clamp(34px, 4vw, 62px);
  letter-spacing: -0.065em;
  line-height: 0.94;
}

.contact-section > div > p:last-child {
  max-width: 520px;
  color: #73716a;
  font-size: 13px;
  line-height: 1.6;
}

.contact-form {
  display: grid;
  padding: clamp(22px, 4vw, 42px);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(17, 17, 17, 0.08);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form label > span {
  color: #77756e;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 11px;
  color: var(--ink);
  background: #faf9f6;
  font: inherit;
  outline: none;
}

.contact-form input {
  min-height: 48px;
  padding: 0 14px;
}

.contact-form textarea {
  min-height: 118px;
  padding: 13px 14px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(217, 255, 63, 0.6);
}

.contact-message,
.contact-form .primary-action,
.contact-form .form-status,
.contact-form .form-privacy {
  grid-column: 1 / -1;
}

.contact-form .primary-action {
  border: 0;
  cursor: pointer;
}

.contact-honeypot {
  position: absolute;
  left: -10000px;
}

.form-status {
  padding: 13px 15px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 720;
}

.form-status.success {
  background: rgba(91, 170, 61, 0.13);
}

.form-status.error {
  background: rgba(223, 87, 72, 0.13);
}

.form-privacy {
  margin: 0;
  color: #8a8881;
  font-size: 10px;
  line-height: 1.5;
}

.item-facts {
  display: grid;
  padding: clamp(70px, 9vw, 140px) 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.12);
  grid-template-columns: minmax(280px, 0.8fr) minmax(360px, 1.2fr);
  gap: clamp(50px, 9vw, 150px);
}

.item-facts dl {
  margin: 0;
}

.item-facts dl > div {
  display: grid;
  padding: 17px 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.1);
  grid-template-columns: 1fr 1.3fr;
  gap: 20px;
}

.item-facts dt {
  color: #85837b;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.item-facts dd {
  margin: 0;
  font-size: 13px;
  font-weight: 690;
}

.item-disclaimer {
  grid-column: 2;
  max-width: 620px;
  margin: 25px 0 0;
  color: #73716a;
  font-size: 12px;
  line-height: 1.55;
}

.related-section {
  padding-top: clamp(70px, 9vw, 140px);
}

.related-heading {
  margin-bottom: 36px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.related-card {
  position: relative;
  display: flex;
  min-height: 235px;
  padding: 22px;
  border-radius: 15px;
  flex-direction: column;
  background: #fff;
  box-shadow: 0 12px 30px rgba(24, 23, 20, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.related-card:hover {
  box-shadow: 0 20px 38px rgba(24, 23, 20, 0.13);
  transform: translateY(-3px);
}

.related-card span {
  color: #85837b;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.related-card strong {
  max-width: 390px;
  margin-top: 23px;
  font-size: clamp(22px, 2.2vw, 35px);
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.related-card b {
  margin-top: auto;
  color: #4b4a45;
  font-size: 14px;
}

.related-card em {
  position: absolute;
  right: 18px;
  bottom: 18px;
  font-size: 22px;
  font-style: normal;
}

.not-found {
  display: flex;
  min-height: calc(100vh - 210px);
  padding: clamp(40px, 7vw, 110px);
  flex-direction: column;
  justify-content: center;
}

.not-found .error-code {
  margin: 0 0 26px;
  color: var(--coral);
  font: 12px/1 ui-monospace, monospace;
}

.not-found > p:not(.eyebrow, .error-code) {
  max-width: 580px;
  margin: 36px 0 0;
  color: #62605a;
  font-size: 17px;
  line-height: 1.55;
}

.not-found .primary-action {
  color: var(--ink);
}

.not-found .secondary-action {
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.2);
}

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

  .footer-copy {
    grid-column: 1 / -1;
  }

  .system-layout {
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 44px;
  }

  .item-hero {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .item-media {
    min-height: min(72vw, 640px);
  }

  .item-media::after {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.22), transparent 35%);
  }
}

@media (max-width: 800px) {
  .system-hero,
  .item-shell {
    padding-right: clamp(18px, 5vw, 38px);
    padding-left: clamp(18px, 5vw, 38px);
  }

  .system-layout {
    grid-template-columns: 1fr;
  }

  .system-aside {
    position: static;
    grid-row: 1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .system-aside p {
    grid-column: 1 / -1;
  }

  .item-facts {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .item-disclaimer {
    grid-column: 1;
  }

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

  .related-card {
    min-height: 190px;
  }
}

@media (max-width: 640px) {
  .site-footer {
    grid-template-columns: 1fr 1fr;
    gap: 34px 18px;
  }

  .footer-brand,
  .footer-copy {
    grid-column: 1 / -1;
  }

  .site-footer p:nth-of-type(1) {
    display: block;
  }

  .footer-nav {
    min-width: 0;
  }

  .system-hero h1,
  .not-found h1 {
    font-size: clamp(49px, 15vw, 76px);
  }

  .system-lead {
    font-size: 17px;
  }

  .system-aside {
    grid-template-columns: 1fr;
  }

  .system-aside p {
    grid-column: 1;
  }

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

  .item-hero {
    border-radius: 14px;
  }

  .item-media {
    min-height: 86vw;
  }

  .item-primary {
    padding: 30px 21px 34px;
  }

  .item-primary h1 {
    font-size: clamp(44px, 13vw, 68px);
  }

  .item-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-section {
    grid-template-columns: 1fr;
  }

  .primary-action,
  .disabled-action,
  .secondary-action {
    width: 100%;
  }

  .item-facts dl > div {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .contact-form label,
  .contact-form .primary-action,
  .contact-form .form-status,
  .contact-form .form-privacy {
    grid-column: 1;
  }

  .not-found {
    min-height: calc(100vh - 290px);
  }
}

.feed-loader {
  display: grid;
  min-height: 128px;
  padding: 20px clamp(22px, 4vw, 64px) 46px;
  place-items: center;
  align-content: center;
  gap: 11px;
  text-align: center;
}

.feed-loader[hidden] {
  display: none;
}

.feed-loader-mark {
  display: flex;
  min-height: 18px;
  align-items: center;
  gap: 5px;
}

.feed-loader-mark i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #aaa89f;
}

.feed-loader.is-loading .feed-loader-mark i {
  background: var(--ink);
  animation: feed-pulse 800ms ease-in-out infinite alternate;
}

.feed-loader.is-loading .feed-loader-mark i:nth-child(2) {
  animation-delay: 160ms;
}

.feed-loader.is-loading .feed-loader-mark i:nth-child(3) {
  animation-delay: 320ms;
}

.feed-loader.has-error .feed-loader-mark i {
  background: var(--coral);
}

.feed-loader p,
.noscript-feed {
  margin: 0;
  color: #7a7871;
  font-size: 11px;
}

.feed-loader button {
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid rgba(17, 17, 17, 0.15);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
}

.feed-loader button:hover {
  color: #fff;
  background: var(--ink);
}

.feed-loader button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.noscript-feed {
  padding: 0 clamp(22px, 4vw, 64px) 44px;
  text-align: center;
}

.noscript-feed a {
  border-bottom: 1px solid currentColor;
  color: var(--ink);
  font-weight: 740;
}

@keyframes feed-pulse {
  from {
    opacity: 0.28;
    transform: translateY(0);
  }
  to {
    opacity: 1;
    transform: translateY(-4px);
  }
}

/* Special projects */
.special-projects-page,
.price-dashboard-page {
  overflow-x: clip;
}

.projects-hero,
.dashboard-hero,
.projects-list,
.projects-manifesto,
.market-pulse,
.price-explorer,
.dashboard-method {
  padding-right: clamp(22px, 4vw, 64px);
  padding-left: clamp(22px, 4vw, 64px);
}

.projects-hero,
.dashboard-hero {
  padding-top: 30px;
}

.projects-hero-grid,
.dashboard-title-row {
  display: grid;
  grid-template-columns: minmax(440px, 1.2fr) minmax(280px, 0.8fr);
  align-items: end;
  gap: clamp(36px, 8vw, 130px);
  padding: clamp(60px, 9vw, 140px) 0 clamp(56px, 7vw, 110px);
}

.projects-hero h1,
.dashboard-hero h1 {
  max-width: 1050px;
  font-size: clamp(62px, 9vw, 146px);
  line-height: 0.77;
}

.projects-hero-grid > p,
.dashboard-intro > p {
  max-width: 520px;
  margin: 0;
  color: #5f5d57;
  font-size: clamp(18px, 1.6vw, 25px);
  letter-spacing: -0.035em;
  line-height: 1.35;
}

.projects-list {
  padding-bottom: clamp(70px, 9vw, 140px);
}

.project-feature {
  display: grid;
  min-height: min(760px, 72vw);
  overflow: hidden;
  border-radius: 24px;
  grid-template-columns: minmax(380px, 1.02fr) minmax(360px, 0.98fr);
  color: #fff;
  background: var(--ink);
  box-shadow: 0 28px 75px rgba(17, 17, 17, 0.2);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.project-feature:hover {
  box-shadow: 0 38px 90px rgba(17, 17, 17, 0.27);
  transform: translateY(-5px);
}

.project-feature-copy {
  display: flex;
  padding: clamp(30px, 5vw, 78px);
  flex-direction: column;
}

.project-kicker {
  display: flex;
  margin: 0;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-kicker span {
  display: grid;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  place-items: center;
  color: var(--ink);
  background: var(--lime);
  letter-spacing: 0;
}

.project-feature h2 {
  max-width: 760px;
  margin: clamp(58px, 8vw, 125px) 0 30px;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: clamp(44px, 5.5vw, 90px);
  letter-spacing: -0.075em;
  line-height: 0.88;
}

.project-feature-copy > p:not(.project-kicker) {
  max-width: 590px;
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: clamp(15px, 1.3vw, 20px);
  line-height: 1.5;
}

.project-open {
  display: flex;
  margin-top: auto;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-open b {
  display: grid;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  place-items: center;
  color: var(--ink);
  background: var(--lime);
  font-size: 24px;
}

.project-visual {
  position: relative;
  display: flex;
  min-height: 100%;
  padding: clamp(38px, 6vw, 88px);
  overflow: hidden;
  align-items: end;
  gap: clamp(10px, 1.4vw, 23px);
  background:
    linear-gradient(rgba(17, 17, 17, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 17, 0.08) 1px, transparent 1px),
    var(--lime);
  background-size: 48px 48px;
}

.project-ruble {
  position: absolute;
  top: 3%;
  right: -4%;
  color: rgba(17, 17, 17, 0.92);
  font-family: "Arial Black", Arial, sans-serif;
  font-size: clamp(170px, 25vw, 420px);
  font-weight: 900;
  line-height: 1;
}

.project-visual i {
  position: relative;
  z-index: 1;
  width: 25%;
  height: var(--bar);
  border-radius: 12px 12px 0 0;
  background: var(--ink);
  transition: height 300ms ease;
}

.project-feature:hover .project-visual i {
  height: calc(var(--bar) + 3%);
}

.project-visual small {
  position: absolute;
  right: clamp(26px, 4vw, 62px);
  bottom: clamp(24px, 4vw, 58px);
  z-index: 2;
  padding: 9px 12px;
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.projects-manifesto {
  display: grid;
  padding-top: clamp(70px, 9vw, 140px);
  padding-bottom: clamp(70px, 9vw, 140px);
  border-top: 1px solid rgba(17, 17, 17, 0.12);
  grid-template-columns: 120px minmax(300px, 1.1fr) minmax(260px, 0.7fr);
  gap: clamp(28px, 6vw, 90px);
}

.projects-manifesto h2,
.dashboard-section-heading h2,
.dashboard-method h2 {
  margin: 0;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: clamp(38px, 5vw, 76px);
  letter-spacing: -0.065em;
  line-height: 0.92;
}

.projects-manifesto > div > p {
  max-width: 630px;
  color: #66645e;
  font-size: 17px;
  line-height: 1.6;
}

.projects-next {
  margin: 0;
  color: #696761;
  font-size: 13px;
  line-height: 1.6;
}

.projects-next span {
  display: block;
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Price dashboard */
.dashboard-hero {
  background: linear-gradient(145deg, rgba(217, 255, 63, 0.2), transparent 54%);
}

.dashboard-intro > span {
  display: inline-flex;
  padding: 9px 13px;
  margin-top: 24px;
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  font-size: 10px;
  font-weight: 780;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dashboard-kpis {
  display: grid;
  padding-bottom: clamp(45px, 7vw, 88px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
}

.dashboard-kpis > div {
  display: flex;
  min-height: 155px;
  padding: 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  background: var(--ink);
}

.dashboard-kpis > div:first-child {
  border-radius: 16px 0 0 16px;
}

.dashboard-kpis > div:last-child {
  border-radius: 0 16px 16px 0;
}

.dashboard-kpis span {
  max-width: 160px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.07em;
  line-height: 1.4;
  text-transform: uppercase;
}

.dashboard-kpis strong {
  font-size: clamp(27px, 3vw, 48px);
  letter-spacing: -0.06em;
}

.market-pulse,
.price-explorer,
.dashboard-method {
  padding-top: clamp(72px, 10vw, 150px);
  padding-bottom: clamp(72px, 10vw, 150px);
}

.market-pulse,
.price-explorer {
  border-bottom: 1px solid rgba(17, 17, 17, 0.12);
}

.dashboard-section-heading {
  display: grid;
  grid-template-columns: minmax(360px, 1.05fr) minmax(260px, 0.65fr);
  align-items: end;
  gap: clamp(30px, 8vw, 130px);
  margin-bottom: clamp(38px, 5vw, 72px);
}

.dashboard-section-heading > p {
  max-width: 510px;
  margin: 0;
  color: #6b6962;
  font-size: 13px;
  line-height: 1.6;
}

.pulse-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.pulse-card {
  min-width: 0;
  padding: clamp(19px, 2.2vw, 34px);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(24, 23, 20, 0.08);
}

.pulse-card > span,
.pulse-card small {
  color: #77756e;
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pulse-card > strong {
  display: block;
  margin: 30px 0 25px;
  font-size: clamp(26px, 2.7vw, 46px);
  letter-spacing: -0.065em;
  white-space: nowrap;
}

.pulse-track,
.range-track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: #e7e5de;
}

.pulse-track i {
  position: absolute;
  top: 0;
  left: var(--from);
  width: max(2%, calc(var(--to) - var(--from)));
  height: 100%;
  border-radius: inherit;
  background: var(--lime);
}

.pulse-track i::after {
  position: absolute;
  top: -4px;
  left: calc((var(--median) - var(--from)) / (var(--to) - var(--from)) * 100%);
  width: 3px;
  height: 16px;
  border-radius: 2px;
  background: var(--ink);
  content: "";
}

.pulse-card.accent-laptop .pulse-track i {
  background: var(--blue);
}

.pulse-card.accent-server .pulse-track i {
  background: var(--coral);
}

.pulse-card.accent-accelerator .pulse-track i {
  background: var(--sand);
}

.pulse-card p {
  margin: 12px 0 7px;
  font-size: 11px;
  font-weight: 680;
}

.dashboard-controls {
  display: flex;
  margin-bottom: 18px;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.dashboard-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.dashboard-filters::-webkit-scrollbar {
  display: none;
}

.dashboard-filters button {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid rgba(17, 17, 17, 0.13);
  border-radius: 999px;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  font-size: 11px;
  font-weight: 720;
}

.dashboard-filters button:hover,
.dashboard-filters button.is-active {
  border-color: var(--ink);
  color: #fff;
  background: var(--ink);
}

.dashboard-sort {
  display: grid;
  min-width: 210px;
  gap: 7px;
}

.dashboard-sort span {
  color: #79776f;
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-sort select {
  width: 100%;
  min-height: 42px;
  padding: 0 36px 0 13px;
  border: 1px solid rgba(17, 17, 17, 0.13);
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 11px;
  font-weight: 680;
}

.price-table {
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
}

.price-table-head,
.price-table-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.15fr) minmax(280px, 1.5fr) minmax(145px, 0.65fr) minmax(100px, 0.45fr);
  align-items: center;
  gap: 25px;
}

.price-table-head {
  min-height: 48px;
  padding: 0 22px;
  color: #78766f;
  background: rgba(17, 17, 17, 0.045);
  font-size: 9px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price-table-row {
  min-height: 112px;
  padding: 19px 22px;
  border-top: 1px solid rgba(17, 17, 17, 0.09);
  background: rgba(255, 255, 255, 0.76);
  transition: background 150ms ease;
}

.price-table-row:hover {
  background: #fff;
}

.price-table-row[hidden] {
  display: none;
}

.price-segment {
  display: grid;
  gap: 8px;
}

.price-segment span {
  color: #85837b;
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.price-segment strong {
  font-size: clamp(16px, 1.5vw, 22px);
  letter-spacing: -0.035em;
}

.range-cell {
  display: grid;
  gap: 12px;
}

.range-track i,
.range-track b {
  position: absolute;
}

.range-track i {
  top: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--lime);
}

.range-track b {
  top: -5px;
  width: 3px;
  height: 18px;
  border-radius: 3px;
  background: var(--ink);
  transform: translateX(-1px);
}

.range-cell > span,
.sample-cell {
  color: #77756e;
  font-size: 10px;
}

.median-cell {
  font-size: clamp(20px, 2vw, 31px);
  letter-spacing: -0.055em;
  white-space: nowrap;
}

.sample-cell b {
  color: var(--ink);
  font-size: 15px;
}

.scale-note {
  margin: 14px 0 0;
  color: #85837b;
  font-size: 10px;
  line-height: 1.5;
}

.dashboard-method {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(500px, 1.3fr);
  gap: clamp(45px, 9vw, 150px);
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(17, 17, 17, 0.1);
}

.method-grid article {
  min-height: 245px;
  padding: clamp(22px, 3vw, 40px);
  background: var(--paper);
}

.method-grid span {
  color: var(--coral);
  font: 11px/1 ui-monospace, monospace;
}

.method-grid h3 {
  margin: 46px 0 15px;
  font-size: 25px;
  letter-spacing: -0.04em;
}

.method-grid p {
  margin: 0;
  color: #66645e;
  font-size: 12px;
  line-height: 1.65;
}

.method-grid a {
  display: inline-block;
  margin-top: 16px;
  border-bottom: 1px solid currentColor;
  font-size: 11px;
  font-weight: 740;
}

@media (max-width: 1120px) {
  .project-feature {
    min-height: 680px;
  }

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

  .price-table-head,
  .price-table-row {
    grid-template-columns: minmax(190px, 1fr) minmax(220px, 1.2fr) minmax(130px, 0.65fr) 90px;
    gap: 16px;
  }
}

@media (max-width: 800px) {
  .projects-hero,
  .dashboard-hero,
  .projects-list,
  .projects-manifesto,
  .market-pulse,
  .price-explorer,
  .dashboard-method {
    padding-right: clamp(18px, 5vw, 38px);
    padding-left: clamp(18px, 5vw, 38px);
  }

  .projects-hero-grid,
  .dashboard-title-row,
  .dashboard-section-heading,
  .dashboard-method {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .project-feature {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .project-feature-copy {
    min-height: 610px;
  }

  .project-visual {
    min-height: 520px;
  }

  .projects-manifesto {
    grid-template-columns: 1fr;
  }

  .dashboard-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-kpis > div:first-child {
    border-radius: 16px 0 0 0;
  }

  .dashboard-kpis > div:nth-child(2) {
    border-radius: 0 16px 0 0;
  }

  .dashboard-kpis > div:nth-child(3) {
    border-radius: 0 0 0 16px;
  }

  .dashboard-kpis > div:last-child {
    border-radius: 0 0 16px 0;
  }

  .dashboard-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-sort {
    max-width: 280px;
  }

  .price-table-head {
    display: none;
  }

  .price-table-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 23px 18px;
  }

  .range-cell {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .median-cell {
    grid-column: 2;
    grid-row: 1;
  }

  .sample-cell {
    grid-column: 1 / -1;
    grid-row: 3;
  }
}

@media (max-width: 560px) {
  .rail-logo,
  .rail-ai {
    width: 50px;
    flex: 0 0 50px;
  }

  .site-rail nav {
    min-width: 0;
  }

  .site-rail nav a,
  .site-rail nav button {
    width: auto;
    min-width: 0;
    flex: 1 1 0;
  }

  .projects-hero h1,
  .dashboard-hero h1 {
    font-size: clamp(54px, 17vw, 82px);
  }

  .project-feature-copy {
    min-height: 540px;
  }

  .project-feature h2 {
    font-size: clamp(39px, 12vw, 58px);
  }

  .project-visual {
    min-height: 390px;
  }

  .dashboard-kpis,
  .pulse-grid,
  .method-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-kpis > div,
  .dashboard-kpis > div:first-child,
  .dashboard-kpis > div:nth-child(2),
  .dashboard-kpis > div:nth-child(3),
  .dashboard-kpis > div:last-child {
    min-height: 125px;
    border-radius: 0;
  }

  .dashboard-kpis > div:first-child {
    border-radius: 16px 16px 0 0;
  }

  .dashboard-kpis > div:last-child {
    border-radius: 0 0 16px 16px;
  }

  .price-table-row {
    grid-template-columns: 1fr;
  }

  .dashboard-title-row > *,
  .dashboard-controls,
  .dashboard-filters {
    min-width: 0;
  }

  .median-cell,
  .range-cell,
  .sample-cell {
    grid-column: 1;
    grid-row: auto;
  }

  .median-cell {
    order: 2;
  }

  .range-cell {
    order: 3;
  }

  .sample-cell {
    order: 4;
  }
}
