/* ============================================================================
   videos.css — the Videos page only (/videos; added 17 Nov 2026). Loaded after site.css and rf.css.

   Sizes, colours and spacing are copied from design_reference/videos-design-2026-11-16/ Videos.dc.html
   (desktop) and VideosPhone.dc.html (390 px, below 600 px here), where they were inline styles. The top
   bar, Sakhi, the voice rings, the wash and grain and the footer are the site's own (rf.css, site.css).

   Every rule starts with ".vd" (the page's <body> class) so that it beats the rate finder page's general
   rules (".rf2 a" and so on) without "!important".

   The cards: three to a row on computers, two from 600 to 899 px, one on phones. (The design's cards
   stretch to fill a short last row; a grid keeps every card the same size, also when a topic is chosen.)

   Motion: static/site/pricing.js (the Pricing page's own) gives each section (.pr-reveal) "in" or "wait";
   with reduced motion rf.css switches every animation off under .rf, and pricing.js adds nothing.
   ============================================================================ */

.vd-main { width: 100%; display: flex; flex-direction: column; align-items: center; }
.vd .rf-head { flex-wrap: wrap; row-gap: 0; }
.vd p { margin: 0; }
.vd [hidden] { display: none !important; }
.vd .vd-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- 1. the hero (Sakhi: rf.css's .rf-sakhi, the rate finder page's size) ---------- */
.vd .vd-hero { padding-bottom: 24px; }
.vd .vd-h1 {
  margin: 20px 0 0; font-size: 52px; line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; color: #3D2B7A;
}
.vd .vd-lead { margin-top: 14px; max-width: 600px; font-size: 17px; line-height: 1.55; color: #2A2440; }

/* ---------- sections ---------- */
.vd .vd-sec {
  width: 100%; box-sizing: border-box; padding: 8px 32px 24px;
  display: flex; flex-direction: column; align-items: center;
}
.vd .vd-list { padding-bottom: 32px; gap: 18px; }
.vd .vd-last { padding: 0 32px 40px; }

/* ---------- a video's picture, and its play button (before the player replaces it) ---------- */
.vd .vd-pic {
  display: grid; aspect-ratio: 16 / 9; overflow: hidden; text-decoration: none;
  background: linear-gradient(135deg, #5D4AAE, #443683);
}
.vd .vd-pic > * { grid-area: 1 / 1; }
.vd .vd-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vd .vd-btn {
  place-self: center; width: 56px; height: 56px; border-radius: 28px; background: #FFFFFF;
  display: flex; align-items: center; justify-content: center; transition: transform .15s;
}
.vd .vd-btn-big { width: 72px; height: 72px; border-radius: 36px; }
.vd .vd-pic:hover .vd-btn { transform: scale(1.06); }
.vd .vd-pic:focus-visible { outline: 3px solid #6A55E8; outline-offset: -3px; }
.vd .vd-frame { aspect-ratio: 16 / 9; background: #2A2440; }
.vd .vd-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- 2. "Start here" ---------- */
.vd .vd-feature {
  width: 100%; max-width: 1000px; box-sizing: border-box; overflow: hidden;
  background: #FFFFFF; border: 1px solid #E7E4F3; border-radius: 18px;
}
.vd .vd-feature-words { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.vd .vd-start {
  align-self: flex-start; background: #3D2B7A; color: #FFFFFF; font-size: 13px; font-weight: 600;
  padding: 4px 10px; border-radius: 6px;
}
.vd .vd-feature-h { margin: 6px 0 0; font-size: 28px; line-height: 1.25; font-weight: 600; color: #3D2B7A; }

/* ---------- 3. the topic chips ---------- */
.vd .vd-chips { width: 100%; max-width: 1080px; display: flex; gap: 10px; flex-wrap: wrap; }
.vd .vd-chip {
  min-height: 44px; box-sizing: border-box; padding: 0 18px; border-radius: 22px; flex: none;
  display: flex; align-items: center; font: inherit; font-size: 15px; font-weight: 500; cursor: pointer;
  background: #FFFFFF; color: #3D2B7A; border: 1px solid #E7E4F3;
}
.vd .vd-chip:hover { border-color: #C9BFFF; }
.vd .vd-chip[aria-pressed="true"] { background: #3D2B7A; color: #FFFFFF; border-color: #3D2B7A; }
.vd .vd-chip:focus-visible { outline: 3px solid #6A55E8; outline-offset: 2px; }

/* ---------- the cards ---------- */
.vd .vd-cards {
  width: 100%; max-width: 1080px; box-sizing: border-box;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
}
.vd .vd-card {
  position: relative; box-sizing: border-box; overflow: hidden; text-align: left;
  background: #FFFFFF; border: 1px solid #E7E4F3; border-radius: 18px;
  display: flex; flex-direction: column;
}
.vd .vd-card .vd-pic { border-radius: 18px 18px 0 0; }
/* The whole card is the picture's link (as in the design): the link's cover reaches over the words. */
.vd .vd-card a.vd-play::after { content: ""; position: absolute; inset: 0; border-radius: 18px; }
.vd .vd-card:has(a.vd-play:focus-visible) { outline: 3px solid #6A55E8; outline-offset: 2px; }
.vd .vd-card a.vd-play:focus-visible { outline: none; }
.vd .vd-card-words { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.vd .vd-topic { font-size: 13px; line-height: 1.4; font-weight: 500; color: #5D5672; }
.vd .vd-card-h { margin: 0; font-size: 18px; line-height: 1.3; font-weight: 600; color: #3D2B7A; overflow-wrap: anywhere; }

/* ---------- the line under the cards, and "See all on YouTube" ---------- */
.vd .vd-after {
  width: 100%; max-width: 1080px; display: flex; flex-wrap: wrap; gap: 14px;
  align-items: center; justify-content: space-between; text-align: left;
}
.vd .vd-note { font-size: 14px; line-height: 1.5; color: #5D5672; max-width: 560px; }
.vd a.vd-yt {
  background: #FFFFFF; color: #6A55E8; border: 1.5px solid #6A55E8; font-size: 16px; font-weight: 600;
  text-decoration: none; min-height: 48px; box-sizing: border-box; padding: 0 22px; border-radius: 12px;
  display: flex; align-items: center;
}
.vd a.vd-yt:hover { background: #F1EEFD; }

/* ---------- 4. the referral strip ---------- */
.vd .vd-strip {
  width: 100%; max-width: 1080px; box-sizing: border-box; background: #3D2B7A; border-radius: 18px;
  padding: 26px 24px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
  text-align: left;
}
.vd .vd-strip-h { color: #FFFFFF; font-size: 20px; font-weight: 600; max-width: 560px; }
.vd a.vd-strip-btn {
  background: #FFFFFF; color: #3D2B7A; font-size: 16px; font-weight: 600; text-decoration: none;
  min-height: 48px; box-sizing: border-box; padding: 0 22px; border-radius: 12px; display: flex; align-items: center;
}
.vd a.vd-strip-btn:hover { background: #F1EEFD; }

/* ---------- the footer: the site's (rf.css), with the homepage footer's top rule, as on Pricing ---------- */
.vd .rp-foot .rf-foot-row { border-top: 1px solid #E7E4F3; padding-top: 20px; }

/* ---------- tablets and phones ---------- */
@media (max-width: 899px) {
  .vd .vd-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
  .vd .vd-sec, .vd .vd-last { padding-left: 16px; padding-right: 16px; }
  .vd .vd-h1 { font-size: 34px; }
  .vd .vd-feature-h { font-size: 22px; }
  .vd .vd-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .vd .vd-cards { grid-template-columns: minmax(0, 1fr); }
}

/* ============================================================================
   THE MOTION (only with the classes pricing.js adds), as on the Pricing page
   ============================================================================ */
@keyframes vdRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.vd .pr-reveal.in .pr-rise { animation: vdRise .7s cubic-bezier(.2,.7,.2,1) both; }
.vd .pr-reveal.in .vd-d1 { animation-delay: .1s; }
.vd .pr-reveal.in .vd-d2 { animation-delay: .25s; }
.vd .pr-reveal.wait .pr-rise { opacity: 0; }
/* The voice rings ripple ONCE as the hero lands, one ring every 0.14 s from 0.6 s (on Pricing the delays
   are written on each ring; this page's content rules allow no inline styles, so they are here). */
.vd .vd-hero.in .vr-hero .rg { animation: ripple 5s ease-out 1; }
.vd .vd-hero .vr-hero .rg:nth-child(1) { animation-delay: .60s; }
.vd .vd-hero .vr-hero .rg:nth-child(2) { animation-delay: .74s; }
.vd .vd-hero .vr-hero .rg:nth-child(3) { animation-delay: .88s; }
.vd .vd-hero .vr-hero .rg:nth-child(4) { animation-delay: 1.02s; }
.vd .vd-hero .vr-hero .rg:nth-child(5) { animation-delay: 1.16s; }
