/* ── 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(5rem, 11vh, 7.5rem);
  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: 5.5rem 0 3.5rem;
  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);
}

.rugs-showcase-sub {
  margin: 0 auto 2rem;
  max-width: 60ch;
  font-size: .96rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.65;
}

.rugs-showcase-img {
  max-width: 880px;
  margin: 0 auto;
}

/* ── 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: 3.75rem 0 4rem;
}

.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: 5rem 0 3.25rem;
}

/* ── 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: rgba(255,255,255,0.3);
}

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

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

.rugs-fees-card {
  display: flex;
  align-items: stretch;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  margin-bottom: 1.1rem;
  text-align: left;
}

.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 {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 0% 50%, rgba(255,138,31,0.11) 0%, transparent 70%);
  pointer-events: none;
}

.rugs-fees-per-label {
  position: relative;
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.rugs-fees-num {
  position: relative;
  display: flex;
  align-items: baseline;
  line-height: 1;
  font-family: var(--title-font);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 1.1rem;
}

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

.rugs-fees-num-dec {
  letter-spacing: 2px;
}

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

.rugs-fees-footnote {
  position: relative;
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.55;
  opacity: 0.7;
}

.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 0 0.5rem;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  font-weight: 400;
}

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

.rugs-fees-compare-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.rugs-fees-compare-name {
  flex: 0 0 152px;
  font-size: 0.84rem;
  color: var(--muted);
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  line-height: 1.3;
}

.rugs-fees-compare-row--us .rugs-fees-compare-name {
  color: rgba(255,255,255,0.88);
  font-weight: 600;
}

.rugs-fees-star {
  flex-shrink: 0;
  color: var(--accent-2);
}

.rugs-fees-rate {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.1rem 0.42rem;
  border-radius: 999px;
  background: rgba(255,138,31,0.15);
  border: 1px solid rgba(255,138,31,0.35);
  color: var(--accent-2);
  font-family: var(--title-font);
  line-height: 1.5;
}

.rugs-fees-rate--them {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
  color: var(--muted);
}

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

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

.rugs-fees-bar-fill--us {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 10px rgba(255,138,31,0.55);
}

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

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

.rugs-fees-compare-val {
  flex: 0 0 40px;
  text-align: right;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
  font-family: var(--title-font);
}

.rugs-fees-compare-val--us {
  color: var(--accent-2);
}

.rugs-fees-pills {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.3rem;
}

.rugs-fees-pill {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1.2rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

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

.rugs-fees-pill-mult {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent-2);
  font-family: var(--title-font);
  line-height: 1;
}

.rugs-fees-pill--featured .rugs-fees-pill-mult {
  color: #ffb347;
}

.rugs-fees-pill-text {
  font-size: 0.80rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.4;
  text-align: left;
}

@media (max-width: 680px) {
  .rugs-fees-card { flex-direction: column; }
  .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;
}

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

#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,
  main > #plans {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  /* Pricing: remove stacked gutters on mobile */
  main > #plans {
    padding-left: .4rem;
    padding-right: .4rem;
  }
  #plans {
    padding-top: 3.2rem;
    padding-bottom: 2.2rem;
  }
  #plans .plans-app-inner {
    padding-left: .4rem;
    padding-right: .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: 5rem 0 6rem;
}

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