: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;
}

.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);
}

.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;
  }

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

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

  .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);
  }
}
