/* ============================================================
   QWENDA - /videos page styles
   Mirrors the role of app.css for the homepage. Breakpoints live
   at the end of responsive.css, per project convention.
   ============================================================ */

/* ---------- Compact hero (roughly half height of the homepage's) ---------- */
.vhero{
  min-height:52svh;display:flex;align-items:center;padding:150px 0 56px;
  background:
    radial-gradient(900px 460px at 80% -20%,rgba(188,255,255,.55),transparent 60%),
    radial-gradient(700px 420px at -10% 40%,rgba(139,234,234,.35),transparent 60%),
    var(--grey-25);
  overflow:hidden;
}
.vhero-inner{max-width:820px;margin:0 auto;text-align:center;display:flex;flex-direction:column;align-items:center}
.vhero .eyebrow{margin-bottom:18px}
.vhero .display{font-size:clamp(2.2rem,5vw,3.8rem);margin-bottom:22px}
.vhero .display .accent{color:var(--green-500)}
.vhero .lead{max-width:640px;margin-bottom:32px}
.vhero-meta{font-size:.9rem;color:var(--grey-500);font-weight:600}
.vhero-intro{margin-top:12px;max-width:600px;font-size:.95rem;color:var(--grey-500)}

/* ---------- Step list ---------- */
.vsteps{padding:70px 24px 40px}
.vstep{
  display:grid;grid-template-columns:300px 1fr;gap:60px;align-items:center;
  padding:44px 0;scroll-margin-top:110px;
}
/* Even steps put the video on the right. Grid fills in DOM order, so the
   order swap alone is enough - no duplicated markup. */
.vstep--rev{grid-template-columns:1fr 300px}
.vstep--rev .vstep-media{order:2}
.vstep--rev .vstep-copy{order:1}
.vstep-media{display:flex;justify-content:center}

/* ---------- A step carrying two videos (5a / 5b) ---------- */
/* Both sit under one step number and one #step-N anchor. Slightly smaller
   cards so the pair occupies about the same width as a single 300px card
   plus its breathing room, and the column rhythm survives. */
.vstep--pair{grid-template-columns:474px 1fr}
.vstep--pair.vstep--rev{grid-template-columns:1fr 474px}
.vstep--pair .vstep-media{gap:26px;align-items:flex-start}
.vpair-item{display:flex;flex-direction:column;align-items:center;gap:12px;width:224px}
.vpair-item .vcard{width:100%}
.vpair-cap{
  font-size:.85rem;font-weight:600;line-height:1.35;text-align:center;color:var(--grey-600);
}

/* The rows are already inside the site's 1200px .container, so nothing here
   overflows. But at >=1200px the 1fr copy track is 792px, which puts body text
   at ~103 characters per line - far past a comfortable measure for a page that
   asks patients to read nine blocks of it. Capping the text column (not the
   grid track) holds it near 75 and leaves the alternating layout untouched. */
.vstep-copy{max-width:580px}

.vstep-copy .step-num{
  display:inline-flex;width:42px;height:42px;border-radius:14px;
  align-items:center;justify-content:center;font-weight:700;font-size:.95rem;margin-bottom:20px;
}
.vstep-copy h2{font-size:clamp(1.45rem,2.6vw,2rem);margin-bottom:12px}
.vstep-copy p{color:var(--grey-500)}

/* The campaign's own line for this step. Sits above the title, set apart by
   the rule rather than by a box - a second boxed element per step (next to the
   action) would make every step read as two callouts and no prose. */
.vstep-copy .vstep-quote{
  margin:0 0 14px;padding-left:16px;border-left:3px solid var(--green-500);
  font-style:italic;font-size:1.02rem;line-height:1.5;color:var(--grey-600);
}

/* The action - what this step asks you to actually do. */
.vstep-copy .vstep-action{
  margin-top:20px;display:flex;align-items:flex-start;gap:10px;
  background:rgba(60,191,191,.10);border-radius:var(--radius-sm);padding:13px 16px;
  color:var(--grey-700);font-size:.98rem;font-weight:600;
}
.vstep-action-mark{flex:0 0 auto;line-height:1.45}

/* "Why does this matter?" - three bullets, quiet enough not to compete with
   the body copy above them. */
.vstep-why{margin-top:22px}
.vstep-why-t{
  font-size:.72rem;font-weight:700;letter-spacing:.11em;text-transform:uppercase;
  color:var(--grey-700);margin:0 0 10px;
}
.vstep-why ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.vstep-why li{
  position:relative;padding-left:22px;color:var(--grey-500);font-size:.95rem;line-height:1.5;
}
.vstep-why li::before{
  content:"";position:absolute;left:2px;top:.5em;width:7px;height:7px;border-radius:50%;
  background:var(--green-500);
}

/* Repeated under every step, on purpose - but it must never shout. */
.vstep-copy .vstep-own{
  margin-top:18px;font-size:.82rem;line-height:1.5;color:var(--grey-400);
}

/* ---------- Video card (click-to-play facade) ---------- */
.vcard{
  position:relative;display:block;width:min(300px,78vw);aspect-ratio:9/16;
  border-radius:var(--radius-md);overflow:hidden;padding:0;
  border:1px solid var(--grey-200);background:#fff;
  box-shadow:var(--shadow-soft);
}
/* The posters are 380x720 device mockups on white - taller than the 9:16 card,
   so `cover` would shave the rounded corners off the phone. `contain` keeps the
   whole device visible; the few px of letterboxing land on the white card. */
.vcard img{width:100%;height:100%;object-fit:contain;display:block}

/* Poster wrapper - exists so the scrim below can cover the image only. */
.vcard-poster{position:absolute;inset:0;display:block;border-radius:inherit;overflow:hidden}
/* Poster scrim - gives the control guaranteed contrast over any of the nine
   posters, including the bright ones, and lifts slightly on hover so the image
   comes forward. Deliberately subtle: this is a health app, not a video site. */
.vcard-poster::after{
  content:"";position:absolute;inset:0;border-radius:inherit;
  background:rgba(16,24,40,.18);transition:background .3s var(--ease);
}
.vcard--play:hover .vcard-poster::after,
.vcard--play:focus-visible .vcard-poster::after{background:rgba(16,24,40,.08)}

.vcard--play{cursor:pointer;transition:transform .35s var(--ease),box-shadow .35s var(--ease)}
.vcard--play:hover{transform:translateY(-6px);box-shadow:var(--shadow-lift)}
.vcard--play:focus-visible{outline:2px solid var(--green-500);outline-offset:3px}

/* Frosted white disc, teal triangle. The brand colour moves to the mark, which
   keeps it present without a flat teal puck sitting on top of a photograph. */
.vcard-play{
  position:absolute;inset:0;margin:auto;width:64px;height:64px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  box-shadow:0 8px 24px rgba(16,24,40,.24), 0 0 0 1px rgba(255,255,255,.5) inset;
  transition:transform .25s var(--ease),box-shadow .25s var(--ease);
}
.vcard-play svg{
  width:22px;height:22px;color:var(--green-600);fill:currentColor;
  transform:translateX(1.5px); /* optical centring - a triangle's visual mass sits left */
}
.vcard--play:hover .vcard-play{
  transform:scale(1.06);
  box-shadow:0 12px 32px rgba(16,24,40,.30), 0 0 0 1px rgba(255,255,255,.6) inset;
}
/* A second ring on the disc itself, so keyboard focus is legible over a bright
   poster where the card's own outline competes with the image. */
.vcard--play:focus-visible .vcard-play{
  box-shadow:0 0 0 3px var(--green-500), 0 8px 24px rgba(16,24,40,.28);
}

/* Coming soon - the step still reads as complete, there is just no player. */
.vcard--soon img{filter:grayscale(1);opacity:.5}
.vcard-soon-label{
  position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);white-space:nowrap;
  background:rgba(255,255,255,.96);border:1px solid var(--grey-200);border-radius:999px;
  padding:9px 16px;font-size:.74rem;font-weight:700;letter-spacing:.1em;
  text-transform:uppercase;color:var(--grey-600);
}

/* Duration - the same on every video, so it reads as a promise ("this is one
   minute of your day") rather than as data. Bottom-right, out of the way of
   both the play button and the coming-soon pill. */
.vcard-min{
  position:absolute;right:10px;bottom:10px;
  background:rgba(52,64,84,.78);color:#fff;border-radius:999px;
  padding:4px 10px;font-size:.7rem;font-weight:700;letter-spacing:.04em;
  pointer-events:none;
}
.vcard--soon .vcard-min{background:rgba(52,64,84,.45)}

.vcard--playing{background:#000;border-color:#000}
.vcard--playing iframe{width:100%;height:100%;border:0;display:block}

@media (prefers-reduced-motion:reduce){
  .vcard--play,.vcard-play,.vcard-poster::after{transition:none}
  .vcard--play:hover{transform:none}
  .vcard--play:hover .vcard-play{transform:none}
}

/* ---------- "Your health story keeps growing" ---------- */
/* Closes the nine steps before the CTA does: the journey does not end at 9. */
.vgrow{
  max-width:680px;margin:36px auto 0;text-align:center;
  background:rgba(60,191,191,.09);border-radius:var(--radius-md);padding:38px 32px;
}
.vgrow-t{font-size:clamp(1.3rem,2.2vw,1.7rem);margin:0 0 14px;color:var(--grey-700)}
.vgrow-s{color:var(--grey-500);margin:0}
.vgrow-thanks{margin:16px 0 0;font-weight:600;color:var(--grey-700)}

/* ---------- Help + privacy notice ---------- */
/* Points at Support inside the app, not at the site's contact modal - so it is
   deliberately plain text and not a link. */
.vhelp{
  max-width:640px;margin:30px auto 0;text-align:center;
  font-size:.92rem;color:var(--grey-500);
}
.vprivacy{
  max-width:640px;margin:12px auto 0;text-align:center;
  font-size:.86rem;color:var(--grey-500);
}

/* ---------- The journey CTA (hero + closing, one component) ---------- */
/* The store badges are the primary action, at their full shared-CSS size
   (162x48). Nothing is layered above them any more. */
.jcta{display:flex;flex-direction:column;align-items:center}
.jcta-badges{justify-content:center}

/* Hero variant - no heading or sub above it, so it leaves room for vid.meta
   and vid.intro underneath. */
.vhero .jcta--compact{margin-bottom:30px}

.vcta-back{
  color:var(--grey-700);font-weight:600;
  text-decoration:underline;text-decoration-color:var(--green-500);text-underline-offset:4px;
}
.vcta-back:hover{text-decoration-color:var(--green-700)}
