
/* RUFUS Home Dual Tools + Video Section
   Separate CSS file for the first-page marketing hero.
   Mobile-first priority.
*/
.rufus-dual-tools {
  --rdt-navy: #201543;
  --rdt-orange: #ff7417;
  --rdt-orange2: #ff4f2e;
  --rdt-pink: #ff3f73;
  --rdt-green: #28b875;
  --rdt-mint: #eafaf4;
  --rdt-cream: #fff8ee;
  --rdt-border: rgba(32,21,67,.10);
  --rdt-shadow: 0 22px 58px rgba(32,21,67,.10);

  width: min(1240px, calc(100vw - 28px));
  margin: 1.05rem auto 1.35rem;
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid rgba(255,116,23,.18);
  background:
    radial-gradient(circle at 88% 11%, rgba(255,63,115,.10), transparent 10rem),
    radial-gradient(circle at 7% 65%, rgba(255,116,23,.10), transparent 12rem),
    linear-gradient(135deg, #fffaf3 0%, #ffffff 54%, #f1fff9 100%);
  box-shadow: var(--rdt-shadow);
}

.rufus-dual-tools::after {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -52px;
  height: 118px;
  background: rgba(116,210,196,.16);
  border-radius: 50% 50% 0 0 / 70% 70% 0 0;
  pointer-events: none;
}

.rdt-inner {
  position: relative;
  z-index: 2;
  padding: clamp(1.2rem, 3vw, 2.1rem);
}

.rdt-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: clamp(1rem, 2.4vw, 1.8rem);
  align-items: start;
}

.rdt-kicker {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  width: fit-content;
  margin-bottom: .75rem;
  padding: .42rem .76rem;
  border-radius: 999px;
  color: #17805d;
  background: rgba(38,184,120,.11);
  border: 1px solid rgba(38,184,120,.18);
  font-size: .76rem;
  font-weight: 1000;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.rdt-title {
  max-width: 920px;
  margin: 0 0 .66rem;
  color: var(--rdt-navy);
  font-size: clamp(1.85rem, 3.5vw, 3.2rem);
  line-height: 1.06;
  letter-spacing: -.035em;
  font-weight: 1000;
  text-wrap: balance;
}

/* Georgian glyphs need more breathing room than Latin type. */
.rdt-lang-ge .rdt-title {
  font-size: clamp(1.72rem, 3.15vw, 3rem);
  line-height: 1.16;
  letter-spacing: -.012em;
  word-spacing: .025em;
}

.rdt-title strong {
  color: var(--rdt-orange);
  font-weight: 1000;
}

.rdt-title .rdt-heart {
  color: var(--rdt-orange2);
  display: inline-block;
  transform: translateY(-.04em);
}

.rdt-text {
  max-width: 900px;
  margin: 0 0 1.05rem;
  color: rgba(32,21,67,.72);
  font-size: clamp(.96rem, 2.1vw, 1.08rem);
  line-height: 1.55;
  font-weight: 760;
}

.rdt-tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
  margin-top: 1rem;
}

.rdt-tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 272px;
  padding: 1rem;
  border-radius: 24px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(32,21,67,.09);
  box-shadow: 0 14px 32px rgba(32,21,67,.065);
}

.rdt-tool-card.feed {
  background:
    radial-gradient(circle at 0% 0%, rgba(255,116,23,.12), transparent 8rem),
    rgba(255,255,255,.90);
}

.rdt-tool-card.adopt {
  background:
    radial-gradient(circle at 100% 0%, rgba(255,63,115,.12), transparent 8rem),
    rgba(255,255,255,.91);
}

.rdt-tool-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: .75rem;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(32,21,67,.08);
  font-size: 1.45rem;
}

.rdt-tool-card h3 {
  margin: 0 0 .42rem;
  color: var(--rdt-navy);
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  line-height: 1.1;
  font-weight: 1000;
  letter-spacing: -.035em;
}

.rdt-tool-card h3 span {
  color: var(--rdt-orange);
}

.rdt-tool-card.adopt h3 span {
  color: var(--rdt-pink);
}

.rdt-tool-card p {
  margin: 0 0 .75rem;
  color: rgba(32,21,67,.70);
  font-size: .92rem;
  line-height: 1.42;
  font-weight: 720;
}

.rdt-checks {
  display: grid;
  gap: .3rem;
  margin: .2rem 0 .85rem;
  color: rgba(32,21,67,.72);
  font-size: .88rem;
  line-height: 1.35;
  font-weight: 800;
}

.rdt-checks span {
  display: flex;
  gap: .4rem;
  align-items: flex-start;
}

.rdt-checks i {
  color: var(--rdt-green);
  font-style: normal;
  font-weight: 1000;
}

.rdt-mini-profile {
  margin-top: auto;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: .72rem;
  align-items: center;
  padding: .62rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(32,21,67,.08);
  box-shadow: 0 9px 18px rgba(32,21,67,.055);
}

.rdt-mini-profile img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  display: block;
}

.rdt-mini-profile b {
  display: block;
  color: var(--rdt-navy);
  font-size: 1rem;
  font-weight: 1000;
  line-height: 1.1;
}

.rdt-mini-profile small {
  display: block;
  color: rgba(32,21,67,.60);
  font-size: .78rem;
  line-height: 1.25;
  font-weight: 760;
  margin-top: .15rem;
}

.rdt-progress {
  margin-top: .45rem;
  height: 8px;
  border-radius: 999px;
  background: rgba(32,21,67,.10);
  overflow: hidden;
}

.rdt-progress span {
  display: block;
  width: 58%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--rdt-orange), var(--rdt-pink));
}

.rdt-share-ready {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  margin-top: .42rem;
  padding: .28rem .55rem;
  border-radius: 999px;
  color: var(--rdt-pink);
  background: rgba(255,63,115,.10);
  font-size: .74rem;
  line-height: 1;
  font-weight: 900;
}

.rdt-cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-top: .9rem;
}

.rdt-btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 0 1rem;
  border-radius: 999px;
  color: #fff !important;
  text-decoration: none;
  text-align: center;
  font-weight: 1000;
  box-shadow: 0 14px 28px rgba(255,63,115,.22);
}

.rdt-btn.feed {
  background: linear-gradient(135deg, var(--rdt-orange), var(--rdt-orange2));
}

.rdt-btn.adopt {
  background: linear-gradient(135deg, var(--rdt-pink), #df2b7d);
}

/* Third block: video */
.rdt-video-card {
  position: sticky;
  top: 1rem;
  align-self: start;
  padding: .72rem;
  border-radius: 26px;
  border: 1px solid rgba(255,116,23,.18);
  background:
    radial-gradient(circle at 50% 0%, rgba(255,212,116,.25), transparent 9rem),
    rgba(255,255,255,.92);
  box-shadow: 0 18px 42px rgba(32,21,67,.09);
}

.rdt-video-frame {
  position: relative;
  overflow: hidden;
  border-radius: 21px;
  background: #201543;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}

.rdt-video-frame video {
  width: 100%;
  aspect-ratio: 9 / 14.3;
  max-height: 520px;
  display: block;
  object-fit: cover;
  background: #201543;
}

.rdt-video-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  padding: .72rem .35rem .12rem;
  color: rgba(32,21,67,.68);
  font-size: .82rem;
  line-height: 1.3;
  font-weight: 850;
}

.rdt-video-caption b {
  color: var(--rdt-navy);
  font-weight: 1000;
}

.rdt-benefits {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0 clamp(1.2rem, 3vw, 2.1rem) clamp(1.15rem, 3vw, 1.5rem);
  border-radius: 22px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(32,21,67,.08);
  box-shadow: 0 10px 25px rgba(32,21,67,.045);
  overflow: hidden;
}

.rdt-benefit {
  min-height: 88px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .65rem;
  align-items: center;
  padding: .85rem .9rem;
  border-right: 1px solid rgba(255,116,23,.13);
}

.rdt-benefit:last-child {
  border-right: 0;
}

.rdt-benefit i {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: var(--rdt-green);
  background: rgba(38,184,120,.10);
  font-style: normal;
  font-size: 1.15rem;
}

.rdt-benefit b {
  display: block;
  color: var(--rdt-navy);
  font-size: .86rem;
  line-height: 1.15;
  font-weight: 1000;
}

.rdt-benefit span {
  display: block;
  margin-top: .12rem;
  color: rgba(32,21,67,.58);
  font-size: .74rem;
  line-height: 1.22;
  font-weight: 760;
}

/* Mobile-first cleanup */
@media (max-width: 980px) {
  .rdt-layout {
    grid-template-columns: 1fr;
  }

  .rdt-title {
    max-width: 100%;
  }

  .rdt-video-card {
    position: relative;
    top: auto;
    width: min(100%, 360px);
    margin: 0 auto;
  }

  .rdt-video-frame video {
    aspect-ratio: 9 / 13.2;
    max-height: 440px;
  }
}

@media (max-width: 720px) {
  .rufus-dual-tools {
    width: min(100% - 20px, 1240px);
    border-radius: 26px;
    margin-top: .85rem;
  }

  .rdt-inner {
    padding: 1rem;
  }

  .rdt-layout {
    gap: 1rem;
  }

  .rdt-kicker {
    font-size: .68rem;
    padding: .36rem .62rem;
  }

  .rdt-title {
    font-size: clamp(2.05rem, 10.2vw, 3rem);
    line-height: .96;
  }

  .rdt-text {
    font-size: .92rem;
    line-height: 1.48;
  }

  .rdt-tool-grid {
    grid-template-columns: 1fr;
  }

  .rdt-tool-card {
    min-height: auto;
  }

  .rdt-cta-row {
    grid-template-columns: 1fr;
  }

  .rdt-video-card {
    order: 3;
    width: min(100%, 330px);
  }

  .rdt-benefits {
    grid-template-columns: 1fr 1fr;
    margin: 0 1rem 1rem;
  }

  .rdt-benefit:nth-child(2) {
    border-right: 0;
  }

  .rdt-benefit:nth-child(1),
  .rdt-benefit:nth-child(2) {
    border-bottom: 1px solid rgba(255,116,23,.13);
  }
}

@media (max-width: 480px) {
  .rdt-title {
    font-size: clamp(1.9rem, 11vw, 2.55rem);
  }

  .rdt-mini-profile {
    grid-template-columns: 62px 1fr;
  }

  .rdt-mini-profile img {
    width: 62px;
    height: 62px;
  }

  .rdt-video-card {
    width: min(100%, 295px);
  }

  .rdt-benefits {
    grid-template-columns: 1fr;
  }

  .rdt-benefit {
    border-right: 0 !important;
    border-bottom: 1px solid rgba(255,116,23,.13);
  }

  .rdt-benefit:last-child {
    border-bottom: 0;
  }
}
/* Width + video alignment fix */
.rufus-dual-tools {
  width: min(1120px, calc(100vw - 72px)) !important;
}

.rdt-layout {
  grid-template-columns: minmax(0, 1fr) 300px !important;
  align-items: start !important;
}

.rdt-video-card {
  margin-top: 7.8rem !important;
}

.rdt-video-frame video {
  max-height: 430px !important;
}

@media (max-width: 980px) {
  .rufus-dual-tools {
    width: min(1120px, calc(100vw - 32px)) !important;
  }

  .rdt-layout {
    grid-template-columns: 1fr !important;
  }

  .rdt-video-card {
    margin-top: 1rem !important;
    width: min(100%, 340px) !important;
  }
}

@media (max-width: 520px) {
  .rufus-dual-tools {
    width: min(100% - 20px, 1120px) !important;
  }

  .rdt-video-card {
    width: min(100%, 300px) !important;
  }
}

/* Mobile title refinement */
@media (max-width: 700px) {
  .rdt-lang-ge .rdt-title {
    font-size: clamp(1.62rem, 8vw, 2.25rem);
    line-height: 1.18;
    letter-spacing: 0;
  }
}
