/* ── Rugs landing page ─────────────────────────────────── */

/* No global top orange glow on this page (landing.css html/body radial) */
html:has(body.page-rugs),
body.page-rugs {
  --bg: #000;
  background: #000;
}

/* ── Hero ──────────────────────────────────────────────── */
.rugs-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(5.75rem, 14vh, 9rem) 0 clamp(5.25rem, 11.5vh, 8rem);
  background-color: var(--bg);
}

/* Inner container: creates its own stacking context so art can sit
   behind text (z-index: -1) without escaping behind the section bg */
.rugs-hero-inner {
  position: relative;
  z-index: 2;
  width: min(900px, 92vw);
  margin-inline: auto;
  isolation: isolate;
}

/* ── Background artwork ──
   Anchored to the right of the 880px container. Uses `contain` so the
   full chart (including the red bar) is always visible, never cropped. */
.rugs-hero-art {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 90%;
  background: url("/assets/rugs-hero-bg.png") right bottom / contain no-repeat;
  filter: brightness(0.88);
  pointer-events: none;
  z-index: -2;
  /* Fade: left edge + thin right edge + bottom edge */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, black 13%, black 94%, transparent 100%),
    linear-gradient(to bottom, black 78%, transparent 100%);
  -webkit-mask-composite: destination-in;
  mask-image:
    linear-gradient(to right, transparent 0%, black 13%, black 94%, transparent 100%),
    linear-gradient(to bottom, black 78%, transparent 100%);
  mask-composite: intersect;
}

/* Left-zone text protection scrim — extra safety layer behind the text */
.rugs-hero-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    to right,
    var(--bg)         0%,
    var(--bg)         38%,
    rgba(3,4,6,0.62)  52%,
    rgba(3,4,6,0)     54%
  );
}

/* Wide bottom blend so hero transitions smoothly into next section */
.rugs-hero-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
      to bottom,
      rgba(3,4,6,0)     52%,
      rgba(3,4,6,0.34)  74%,
      var(--bg)         100%
    );
}

.rugs-hero-title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.1;
  color: #fff;
  font-family: var(--title-font);
  max-width: 22ch;
}

.rugs-hero-desc {
  margin: 0 0 2rem;
  max-width: 58ch;
  text-align: left;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.rugs-hero-subtitle {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.65;
}

.rugs-hero-desc .rugs-hero-subtitle:last-child {
  margin-bottom: 0;
}

.rugs-hero-actions {
  justify-content: flex-start;
  margin-bottom: 2.8rem;
}

/* ── Mobile ── */
@media (max-width: 640px) {
  .rugs-hero {
    padding-top: 60px; /* clear fixed topbar */
    padding-left: 1.35rem;
    padding-right: 1.35rem;
    overflow: visible;
    box-sizing: border-box;
  }

  .rugs-hero-inner {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
  }

  /* Pull art out of abs flow → becomes a top image block */
  .rugs-hero-art {
    position: relative;
    order: -1;           /* renders above all other children */
    /* Break out of hero horizontal padding so art stays edge-to-edge */
    margin-left: -1.35rem;
    margin-right: -1.35rem;
    width: calc(100% + 2.7rem);
    max-width: none;
    height: 240px;
    right: auto;
    top: auto;
    bottom: auto;
    background-size: cover;
    background-position: center center;
    /* fade: transparent at very top (dark bg shows = looks like top gradient),
       fully visible in middle, fades to transparent at bottom */
    -webkit-mask-image:
      linear-gradient(to bottom, transparent 0%, black 22%, black 55%, transparent 100%),
      linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-composite: destination-in;
    mask-image:
      linear-gradient(to bottom, transparent 0%, black 22%, black 55%, transparent 100%),
      linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-composite: intersect;
    filter: none;
  }

  /* Remove text-protection scrims — art is no longer behind text */
  .rugs-hero-inner::before,
  .rugs-hero-inner::after {
    display: none;
  }

  /* Center and pad text content below the art */
  .rugs-hero-title {
    max-width: 100%;
    font-size: clamp(1.6rem, 6vw, 2.1rem);
    text-align: center;
    padding: 0;
  }

  .rugs-hero-desc {
    max-width: 100%;
    text-align: center;
    padding: 0;
  }

  .rugs-hero-actions {
    justify-content: center;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
  }

  .rugs-stats {
    margin: 0;
    align-self: stretch;
  }
}

/* ── Stats row ─────────────────────────────────────────── */
.rugs-stats {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  background: rgba(255,255,255,.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1.1rem 1.6rem;
  flex-wrap: wrap;
  justify-content: flex-start;
  row-gap: 1rem;
}

.rugs-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  padding: 0 1.6rem;
}

.rugs-stat-num {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -.03em;
  color: #fff;
  line-height: 1;
  font-family: var(--title-font);
}

.rugs-stat-plus,
.rugs-stat-unit {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--accent-2);
  margin-left: .05em;
}

.rugs-stat-label {
  font-size: .76rem;
  color: var(--muted);
  font-weight: 300;
  white-space: nowrap;
}

.rugs-stat-sep {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,.1);
  flex-shrink: 0;
}

/* ── Dashboard showcase ────────────────────────────────── */
.rugs-showcase {
  padding: 7rem 0 6.75rem;
  text-align: center;
}

.rugs-showcase-label {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .8rem;
}

.rugs-showcase-title {
  margin: 0 0 .7rem;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 700;
  letter-spacing: -.02em;
  color: #fff;
  font-family: var(--title-font);
}

/* ── Dashboard carousel ─────────────────────────────────── */
.rugs-carousel {
  margin-top: 2.5rem;
}

.rugs-carousel-view {
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  align-items: center;
  gap: 0 1.1rem;
  max-width: 1020px;
  margin: 0 auto;
}

/* Image track */
.rugs-carousel-track {
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.07),
    0 32px 96px rgba(0,0,0,0.55),
    0 8px 24px rgba(0,0,0,0.3);
}

.rugs-carousel-slide {
  width: 100%;
  transition: opacity 0.42s ease, visibility 0.42s;
}
.rugs-carousel-slide:not(.is-active) {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.rugs-carousel-slide.is-active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.rugs-carousel-img {
  display: block;
  width: 100%;
  height: auto;
}

/* Arrows — outside the image, in their own grid column */
.rugs-carousel-arrow {
  position: static;
  transform: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,0.14);
  border-radius: 50%;
  background: transparent;
  color: rgba(255,255,255,0.45);
  cursor: pointer;
  padding: 0;
  margin: 0 auto;
  transition: border-color 0.22s, color 0.22s, background 0.22s;
}
.rugs-carousel-arrow:hover {
  border-color: rgba(255,255,255,0.55);
  color: #fff;
  background: rgba(255,255,255,0.06);
}
.rugs-carousel-arrow:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Nudge hint — only on the actionable side */
.rugs-carousel:has(.rugs-carousel-slide[data-carousel-slide="0"].is-active) .rugs-carousel-arrow--next {
  animation: rugsArrowRight 2.2s ease-in-out infinite;
}
.rugs-carousel:has(.rugs-carousel-slide[data-carousel-slide="1"].is-active) .rugs-carousel-arrow--prev {
  animation: rugsArrowLeft 2.2s ease-in-out infinite;
}
@keyframes rugsArrowRight {
  0%, 100% { transform: translateX(0); }
  50%       { transform: translateX(4px); }
}
@keyframes rugsArrowLeft {
  0%, 100% { transform: translateX(0); }
  50%       { transform: translateX(-4px); }
}

@media (prefers-reduced-motion: reduce) {
  .rugs-carousel-arrow { animation: none !important; }
}

/* Captions */
.rugs-carousel-captions {
  position: relative;
  margin: 2.25rem auto 0;
  max-width: 60ch;
  min-height: 6.5rem;
}
.rugs-carousel-caption {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.38s ease, visibility 0.38s;
  text-align: center;
}
.rugs-carousel-caption.is-active {
  opacity: 1;
  visibility: visible;
  position: relative;
}
.rugs-carousel-caption-title {
  margin: 0 0 0.6rem;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.025em;
  font-family: var(--title-font);
}
.rugs-carousel-caption-desc {
  margin: 0;
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  color: var(--muted);
  font-weight: 300;
  line-height: 1.72;
}

/* Dots */
.rugs-carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.5rem;
}
.rugs-carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  background: rgba(255,255,255,0.2);
  transition: background 0.25s, transform 0.25s;
}
.rugs-carousel-dot:hover {
  background: rgba(255,255,255,0.48);
}
.rugs-carousel-dot.is-active {
  background: #fff;
  transform: scale(1.45);
}

@media (max-width: 640px) {
  /* Collapse to a single column: arrows move below, side by side */
  .rugs-carousel-view {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 1.25rem 0;
  }
  .rugs-carousel-track {
    grid-row: 1;
    grid-column: 1;
  }
  .rugs-carousel-arrow--prev,
  .rugs-carousel-arrow--next {
    display: none; /* hidden on mobile — dots are enough */
  }
}

/* ── Dashboard image frame ─────────────────────────────── */
.rugs-dashboard-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  /* gradient border via outline + background-clip trick */
  background: linear-gradient(160deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,.06) 100%);
  padding: 1px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.15),
    0 0 46px rgba(255,255,255,.04),
    0 28px 90px rgba(0,0,0,.65),
    0 4px 20px rgba(0,0,0,.35);
}

.rugs-dashboard-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255,255,255,.20) 0%, rgba(255,255,255,.08) 100%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity .4s;
}
.rugs-dashboard-frame:hover::before { opacity: 1; }

/* inner surface */
.rugs-dashboard-frame > .rugs-dashboard-topbar,
.rugs-dashboard-frame > img {
  position: relative;
  z-index: 2;
}

/* ── New topbar ── */
.rugs-dashboard-topbar {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem 1.1rem;
  background: rgba(10,10,18,.92);
  border-bottom: 1px solid rgba(255,255,255,.07);
  backdrop-filter: blur(6px);
  user-select: none;
}

.rugs-dashboard-topbar-brand {
  display: flex;
  align-items: center;
  gap: .38rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: rgba(255,255,255,.9);
}
.rugs-dashboard-topbar-brand svg { opacity: .72; color: rgba(255,255,255,.78); }
.rugs-dashboard-topbar-page {
  font-weight: 400;
  color: rgba(255,255,255,.4);
}

.rugs-dashboard-topbar-url {
  display: flex;
  align-items: center;
  gap: .35rem;
  flex: 1;
  justify-content: center;
  font-size: .68rem;
  color: rgba(255,255,255,.52);
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 6px;
  padding: .25rem .7rem;
  max-width: 200px;
  margin: 0 auto;
  letter-spacing: .02em;
}
.rugs-dashboard-topbar-url svg { opacity: .55; flex-shrink: 0; }

.rugs-dashboard-topbar-live {
  display: flex;
  align-items: center;
  gap: .38rem;
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: #4ade80;
  text-transform: uppercase;
  margin-left: auto;
}

.rugs-dashboard-topbar-pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74,222,128,.5);
  animation: livePulse 2s ease-out infinite;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0   rgba(74,222,128,.55); }
  60%  { box-shadow: 0 0 0 6px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0   rgba(74,222,128,0); }
}

.rugs-dashboard-frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* ── Feature cards section ─────────────────────────────── */
.rugs-features {
  padding: 7rem 0;
}

.rugs-features .rug-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  padding: 1.65rem 1.5rem 1.4rem;
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.035);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
  overflow: hidden;
}

.rugs-features .rug-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity .22s ease;
  background: radial-gradient(ellipse 80% 55% at 50% 0%, rgba(255, 255, 255, .07), transparent 68%);
  pointer-events: none;
}

.rugs-features .rug-panel:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.15);
  box-shadow: 0 20px 48px rgba(0,0,0,.3);
}

.rugs-features .rug-panel:hover::before {
  opacity: 1;
}

.rugs-features .rug-panel-illustration {
  margin: -1.65rem -1.5rem 1.4rem;
  height: 168px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.4rem;
  overflow: hidden;
  position: relative;
}

.rugs-features .rug-panel-illustration::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 80% at 50% -10%, rgba(255, 138, 31, 0.07), transparent 72%);
  pointer-events: none;
}

.rugs-features .rug-panel h3 {
  margin: 0 0 .5rem;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #fff;
  line-height: 1.2;
  font-family: var(--title-font);
}

.rugs-features .rug-panel p {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 300;
  line-height: 1.65;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* ── Comparison section ────────────────────────────────── */
.rugs-compare-section {
  padding: 7rem 0;
}

/* ── Comparison grid ───────────────────────────────────── */
.cmp-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.cmp-table {
  position: relative;
  width: 100%;
  min-width: 560px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.09);
  overflow: hidden;
  background: rgba(255,255,255,0.02);
}

/* Orange border overlay covering the entire block.λ column */
/* crit col = 152px fixed; two data cols each = (100% - 152px) / 2         */
/* us col: left=152px, right = 100% - (152px + (100%-152px)/2) = 50%-76px  */
.cmp-table::before {
  content: '';
  position: absolute;
  left: 152px;
  right: calc(50% - 76px);
  top: 0;
  bottom: 0;
  border: 1.5px solid rgba(255,138,31,0.48);
  border-radius: 12px;
  pointer-events: none;
  z-index: 4;
}

/* header row */
.cmp-head {
  display: grid;
  grid-template-columns: 152px 1fr 1fr;
  border-bottom: 1px solid rgba(255,255,255,0.09);
}

.cmp-head-crit {
  padding: 1rem 1.2rem;
  background: rgba(255,255,255,0.03);
}

.cmp-head-col {
  padding: .9rem 1.2rem;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .45rem;
  flex-wrap: wrap;
  border-left: 1px solid rgba(255,255,255,0.07);
}

.cmp-head-col--us {
  color: #fff;
  background: rgba(255,138,31,0.07);
  border-left: none;
}

.cmp-head-col--them {
  background: rgba(255,255,255,0.025);
}

.cmp-head-rec {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: .18rem .5rem;
  border-radius: 999px;
  background: rgba(255,138,31,0.14);
  border: 1px solid rgba(255,138,31,0.32);
  color: var(--accent-2);
  line-height: 1;
  white-space: nowrap;
}

/* data rows */
.cmp-row {
  display: grid;
  grid-template-columns: 152px 1fr 1fr;
  border-bottom: 1px solid rgba(255,255,255,0.055);
  transition: background .15s;
}

.cmp-row--last {
  border-bottom: none;
}

.cmp-row:hover .cmp-crit,
.cmp-row:hover .cmp-cell--them {
  background: rgba(255,255,255,0.03);
}

.cmp-row:hover .cmp-cell--us {
  background: rgba(255,138,31,0.06);
}

.cmp-crit {
  padding: .9rem 1.1rem;
  display: flex;
  align-items: flex-start;
  gap: .45rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.68);
  line-height: 1.4;
  background: rgba(255,255,255,0.025);
  border-right: 1px solid rgba(255,255,255,0.07);
}

.cmp-crit svg {
  flex-shrink: 0;
  margin-top: .15rem;
  color: var(--accent-2);
}

.cmp-cell {
  padding: .9rem 1.1rem;
  font-size: 0.86rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.6;
  border-left: 1px solid rgba(255,255,255,0.06);
  vertical-align: top;
}

.cmp-cell--us {
  color: rgba(255,255,255,0.82);
  background: rgba(255,138,31,0.04);
  border-left: none;
}

.cmp-cell--us strong {
  color: var(--accent-2);
}

.cmp-accent-orange {
  color: var(--accent-2);
  font-weight: 700;
}

.cmp-accent-red {
  color: #e05050;
  font-weight: 800;
}

.cmp-note {
  display: block;
  margin-top: .3rem;
  font-size: 0.75rem;
  color: var(--muted);
  opacity: 0.65;
}

.check-pill--neutral {
  color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.13);
}

.cmp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.cmp-list-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 0.86rem;
  font-weight: 300;
  line-height: 1.3;
}

.cmp-list-item--yes {
  color: rgba(255,255,255,0.82);
}

.cmp-list-item--yes::before {
  content: '✓';
  flex-shrink: 0;
  font-weight: 700;
  font-size: .9rem;
  color: var(--ok);
}

.cmp-list-item--no {
  color: var(--muted);
}

.cmp-list-item--no::before {
  content: '✗';
  flex-shrink: 0;
  font-weight: 700;
  font-size: .9rem;
  color: var(--danger);
}

.cmp-cell-line {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

.cmp-cell-intro {
  margin: 0 0 0.65rem;
  font-size: 0.86rem;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

.cmp-cell--them .cmp-cell-intro {
  color: var(--muted);
}

.cmp-cell-line--yes::before {
  content: '✓';
  margin-right: 0.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ok);
}

/* ── Fees section ──────────────────────────────────────── */
.rugs-fees-section {
  padding: 7rem 0;
  text-align: center;
}

.rugs-fees-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  max-width: 760px;
  margin: 0 auto 1.5rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.022);
  overflow: hidden;
  text-align: left;
  isolation: isolate;
}
.rugs-fees-hero {
  position: relative;
  padding: clamp(2.6rem, 4.2vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem) clamp(1.4rem, 2.2vw, 2rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
.rugs-fees-compare {
  padding: clamp(1.6rem, 2.5vw, 2.1rem) clamp(1.5rem, 3vw, 2.5rem) clamp(1.7rem, 2.5vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.rugs-fees-compare-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.rugs-fees-left {
  position: relative;
  flex: 0 0 42%;
  padding: 2.5rem 2.2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  border-right: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,138,31,0.04);
}

.rugs-fees-glow { display: none; }

.rugs-fees-per-label {
  position: relative;
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.rugs-fees-num {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: baseline;
  line-height: 1;
  font-family: var(--title-font);
  font-weight: 500;
  letter-spacing: -0.04em;
  color: #fff;
  margin: 0.15rem 0 0.9rem;
}

.rugs-fees-num-int {
  font-size: clamp(4.5rem, 9vw, 7rem);
}

.rugs-fees-num-dec {
  letter-spacing: 0;
  font-size: clamp(4.5rem, 9vw, 7rem);
}

.rugs-fees-num-pct {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 300;
  opacity: 0.4;
  letter-spacing: 0;
  align-self: flex-end;
  margin-bottom: 0.5rem;
}

.rugs-fees-footnote {
  position: relative;
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 300;
  line-height: 1.55;
}

.rugs-fees-right {
  flex: 1;
  padding: 2rem 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.1rem;
}

.rugs-fees-compare-title {
  margin: 0;
  font-size: 0.72rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rugs-fees-compare-title strong {
  color: #fff;
  font-weight: 600;
}

.rugs-fees-compare-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.rugs-fees-compare-row:first-child {
  border-top: none;
}

.rugs-fees-compare-name {
  flex: 0 0 180px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  line-height: 1.3;
}

.rugs-fees-compare-row--us .rugs-fees-compare-name {
  color: #fff;
  font-weight: 500;
}

.rugs-fees-star {
  flex-shrink: 0;
  color: #ff8a1f;
}

.rugs-fees-rate {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 138, 31, 0.1);
  border: 1px solid rgba(255, 138, 31, 0.25);
  color: rgba(255, 210, 122, 0.95);
  font-family: var(--title-font);
  line-height: 1.5;
}

.rugs-fees-rate--them {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.45);
}

.rugs-fees-bar-track {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.rugs-fees-bar-fill {
  height: 100%;
  border-radius: 999px;
  min-width: 4px;
}

.rugs-fees-bar-fill--us {
  background: #ff8a1f;
}

.rugs-fees-bar-fill--them {
  background: rgba(255, 255, 255, 0.18);
}

.rugs-fees-bar-fill--bad {
  background: rgba(248, 113, 113, 0.4);
}

.rugs-fees-compare-val {
  flex: 0 0 56px;
  text-align: right;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--title-font);
  font-variant-numeric: tabular-nums;
}

.rugs-fees-compare-val--us {
  color: #fff;
  font-weight: 600;
}

.rugs-fees-pills {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.3rem;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.rugs-fees-pill {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.022);
}

.rugs-fees-pill--featured {
  border-color: rgba(255, 138, 31, 0.2);
  background: rgba(255, 138, 31, 0.05);
}

.rugs-fees-pill-mult {
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #fff;
  font-family: var(--title-font);
  line-height: 1;
}

.rugs-fees-pill-text {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
  line-height: 1.35;
  text-align: left;
}

/* Rug landing only: “N× cheaper than fproject” pill — orange fill, black bold (wins over base pill). */
.rugs-fees-pill--fproject {
  background: linear-gradient(130deg, var(--accent), var(--accent-2)) !important;
  border-color: rgba(255, 138, 31, 0.55) !important;
  box-shadow: 0 6px 22px rgba(255, 138, 31, 0.22) !important;
}
.rugs-fees-pill--fproject .rugs-fees-pill-mult {
  color: #0b0d12 !important;
  font-weight: 800 !important;
}
.rugs-fees-pill--fproject .rugs-fees-pill-text {
  color: #0b0d12 !important;
  font-weight: 700 !important;
}

@media (max-width: 680px) {
  .rugs-fees-card { flex-direction: column; max-width: 100%; }
  .rugs-fees-hero { padding: 2.2rem 1.4rem 1.6rem; }
  .rugs-fees-compare { padding: 1.4rem 1.25rem 1.6rem; }
  .rugs-fees-left {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    padding: 2rem 1.5rem 1.5rem;
  }
  .rugs-fees-right { padding: 1.5rem; }
  .rugs-fees-compare-name { flex: 0 0 auto; width: 100%; margin-bottom: 0.25rem; }
  .rugs-fees-compare-row { flex-wrap: wrap; }
  .rugs-fees-pills { flex-direction: column; align-items: stretch; }
}

/* ── Section typography spacing ───────────────────────── */
.rugs-showcase .section-subtitle,
.rugs-compare-section .section-subtitle,
.rugs-fees-section .section-subtitle,
#plans .section-subtitle {
  margin-bottom: 2rem;
}

.section-subtitle-note {
  display: inline-block;
  margin-top: .6rem;
  font-size: .82rem;
  color: var(--muted-2);
  font-style: italic;
  font-weight: 300;
}

/* ── Fee savings (Apple-like, flat, classy) ────────────── */
.fee-savings {
  margin: 2.75rem auto 0;
  width: 100%;
  max-width: 62rem;
  text-align: center;
}

/* ── BIG hero headline above the breakdown ──────────────
   Display-grade typography with gradient text on the
   savings amount and on the λ of the brand. */
.fee-headline {
  margin: 0 auto clamp(3rem, 6vw, 4.5rem);
  padding: clamp(2rem, 4vw, 3.25rem) 0 clamp(1.5rem, 3vw, 2.5rem);
  max-width: 64rem;
  position: relative;
}
.fee-headline::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: clamp(80px, 12vw, 140px);
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.18) 50%, transparent 100%);
}
.fee-headline-pre {
  margin: 0 0 clamp(1rem, 2vw, 1.5rem);
  font-size: clamp(0.95rem, 1.35vw, 1.2rem);
  font-weight: 400;
  letter-spacing: -0.005em;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.4;
}
.fee-headline-main {
  margin: 0;
  font-family: var(--title-font);
  font-size: clamp(2rem, 6.2vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: #fff;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.78) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  text-wrap: balance;
}
.fee-headline-amount {
  display: inline-block;
  font-weight: 800;
  letter-spacing: -0.045em;
  background: linear-gradient(135deg, #5eead4 0%, #34d399 45%, #10b981 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: 0 0 60px rgba(52, 211, 153, 0.18);
  padding: 0 0.04em;
}
.fee-headline-brand {
  display: inline-block;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.85) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.fee-headline-brand-l {
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: 0 0 32px rgba(var(--accent-rgb), 0.28);
  padding: 0 0.03em;
}
/* ── "block.λ vs fproject" display title ───────────────── */
.cmp-section-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(0.65rem, 1.4vw, 1.1rem);
  margin: 0 auto 0.6rem;
  font-family: var(--title-font);
  font-size: clamp(1.6rem, 3.6vw, 2.6rem) !important;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.cmp-vs-brand {
  display: inline-block;
  font-weight: 700;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.78) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.cmp-vs-brand-l {
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: 0 0 24px rgba(var(--accent-rgb), 0.28);
  padding: 0 0.02em;
}
.cmp-vs-sep {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.18em 0.72em;
  border-radius: 999px;
  font-family: var(--title-font);
  font-size: 0.5em;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
  position: relative;
  top: -0.08em;
}
.cmp-vs-fp {
  display: inline-block;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.02em;
}

.fee-headline-kicker {
  margin: clamp(0.85rem, 1.8vw, 1.35rem) 0 0;
  font-family: var(--title-font);
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.01em;
  color: #fff;
}

.fsc-title {
  margin: 0 0 0.55rem;
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
  font-family: var(--title-font);
}
.fsc-context {
  margin: 0 0 2rem;
  font-size: 0.92rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
}

/* Three cards side-by-side */
.fsc-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

/* Single card */
.fsc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.012) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 18px 40px rgba(0, 0, 0, 0.32);
  padding: 1.5rem clamp(1.25rem, 1.5vw, 1.6rem) 1.5rem;
  text-align: left;
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.35s ease, background 0.35s ease, transform 0.35s ease;
}
.fsc-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(120% 80% at 50% 0%, rgba(52, 211, 153, 0.05) 0%, rgba(52, 211, 153, 0) 55%);
  opacity: 0.85;
  z-index: -1;
}
.fsc-card:hover {
  border-color: rgba(52, 211, 153, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.018) 100%);
  transform: translateY(-2px);
}

/* "You send N txs per day" label — friendly sentence, small dot indicator */
.fsc-card-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.4rem;
}
.fsc-card-label-strong {
  color: #fff;
  font-weight: 600;
}
.fsc-card-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

/* Two-column comparison inside card */
.fsc-card-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 1.4rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Column (brand + value) */
.fsc-card-col {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

/* Brand labels — block.λ stylized like the logo (lowercase, orange λ);
   fproject uses the SAME typography for a harmonised look — only color differs. */
.fsc-card-brand {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.9);
  font-family: inherit;
}
.fsc-card-brand-l {
  color: var(--accent-2);
  font-weight: 700;
}
.fsc-card-brand--fp {
  color: rgba(255, 255, 255, 0.45);
}

/* Values — same font / weight / size for both, only color differs. */
.fsc-card-val {
  font-size: clamp(1.15rem, 1.5vw, 1.3rem);
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.018em;
  line-height: 1.25;
}
.fsc-card-val--fp {
  color: rgba(255, 255, 255, 0.5);
}
.fsc-card-val--fp.fst-col-fp--warn {
  color: #f87171;
}

/* Save row at bottom */
.fsc-card-save {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.fsc-card-save-label {
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  font-weight: 600;
  letter-spacing: -0.005em;
  text-transform: none;
  color: #fff;
  flex-shrink: 0;
}
.fsc-card-save-period {
  margin-left: 0.15rem;
}
.fsc-card-save-val {
  font-size: clamp(1.2rem, 1.55vw, 1.35rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.22);
  letter-spacing: -0.022em;
}
.fsc-card-save-val.fst-col-save--positive {
  color: #34d399;
}

/* JS-injected suffix spans — guarantee visible spacing regardless of HTML whitespace collapsing. */
.fsc-card-val .fst-col-mo-suffix,
.fsc-card-save-val .fst-col-mo-suffix {
  font-size: 0.7em;
  font-weight: 400 !important;
  opacity: 0.55;
  letter-spacing: 0;
  margin-left: 0.4em;
}

/* Mobile: stack cards */
@media (max-width: 900px) {
  .fsc-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .fsc-card {
    padding: 1.25rem 1.25rem 1.25rem;
    border-radius: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fsc-card { transition: none; }
  .fsc-card:hover { transform: none; }
}

/* ── Plans (rugs-page overrides) ──────────────────────── */
#plans {
  padding: 7rem 0;
}

#plans .plan-card {
  min-height: 0;
}

#plans .plan-card h3 {
  font-size: 1.55rem;
  color: #fff;
}

#plans .plan-price-wrap {
  margin-top: 1.4rem;
  border-top-color: rgba(255,255,255,0.08);
}

#plans .plan-choose-btn {
  background: linear-gradient(135deg, rgba(255,138,31,0.85), rgba(255,179,71,0.9));
  box-shadow: 0 6px 18px rgba(255,138,31,0.22), inset 0 1px 0 rgba(255,255,255,0.2);
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 640px) {
  /* Global horizontal padding for all sections inside <main> */
  main > section,
  main > .rugs-showcase,
  main > .rugs-features,
  main > .rugs-compare-section,
  main > .rugs-fees-section,
  main > .rugs-contact-section {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  /* #plans horizontal padding: plans-app.css (main > #plans beats main > section; loads after this file) */
  #plans {
    padding-top: 4.5rem;
    padding-bottom: 4rem;
  }

  .rugs-stats {
    padding: 0.95rem 1.35rem;
    gap: 0;
    flex-wrap: nowrap;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .rugs-stat {
    flex: 1;
    padding: 0 0.3rem;
    min-width: 0;
  }
  .rugs-stat-num {
    font-size: 1.25rem;
  }
  .rugs-stat-label {
    font-size: .68rem;
    white-space: nowrap;
  }
  .rugs-stat-sep {
    display: none;
  }

  /* Keep dashboard screenshot fully clear on mobile/touch */
  .rugs-dashboard-frame::before {
    display: none;
  }
}

/* ── Contact CTA ───────────────────────────────────────── */
.rugs-contact-section {
  padding: 7rem 0 7rem;
}

.rugs-contact-inner {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 4rem;
  padding: 0 1.5rem;
}

.rugs-contact-text {
  flex: 1;
  min-width: 0;
}

.rugs-contact-eyebrow {
  margin: 0 0 .5rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}

.rugs-contact-title {
  margin: 0 0 .75rem;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -.025em;
  color: #fff;
  line-height: 1.15;
}

.rugs-contact-sub {
  margin: 0;
  font-size: .97rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.65;
  max-width: 38ch;
}

.rugs-contact-channels {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  flex-shrink: 0;
  min-width: 220px;
}

.rugs-contact-channel {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .75rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.03);
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s, background .15s;
}

.rugs-contact-channel:hover {
  border-color: rgba(var(--accent-rgb), .4);
  background: rgba(var(--accent-rgb), .07);
}

.rugs-contact-channel-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.rugs-contact-channel-icon svg {
  width: 16px;
  height: 16px;
}

.rugs-contact-channel-icon--tg { background: rgba(0,136,204,.15); color: #29b6f6; }
.rugs-contact-channel-icon--dc { background: rgba(88,101,242,.15); color: #7289da; }

.rugs-contact-channel-label {
  flex: 1;
  font-size: .9rem;
  font-weight: 500;
}

.rugs-contact-channel-arrow {
  width: 14px;
  height: 14px;
  color: var(--muted-2);
  transition: transform .15s, color .15s;
  flex-shrink: 0;
}

.rugs-contact-channel:hover .rugs-contact-channel-arrow {
  transform: translateX(3px);
  color: var(--accent);
}

@media (max-width: 720px) {
  .rugs-contact-inner {
    flex-direction: column;
    gap: 2.5rem;
    align-items: flex-start;
  }
  .rugs-contact-channels {
    width: 100%;
  }
  .rugs-contact-sub {
    max-width: 100%;
  }
}
