/* Frosted glass with a thin rainbow edge on every box, site wide (Jem 16 Nov, like the Ops Brief button).
   The edge is a gradient on the border box; the inside is a slightly see-through dark layer, so the
   soft colour behind each page seeps through. Loaded last on every page. */
.hearfirm,.transcript,.tradegrid a,.tier,.laws li,.tablewrap,.vid .yt,.story,.card,.block,.plan,.ok,
.faq:not(.glass) details,.faq.glass,.suggest,#lead-form,.phone,.callcard,.cmp{
  border:1.5px solid transparent!important;
  background:
    linear-gradient(145deg,rgba(22,26,34,.80),rgba(12,14,19,.86)) padding-box,
    linear-gradient(120deg,#f260ed,#f6d13e,#5fe08a,#29d6c2,#7fb2f0,#f260ed) border-box!important;
  backdrop-filter:blur(18px) saturate(125%);-webkit-backdrop-filter:blur(18px) saturate(125%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 0 26px -14px rgba(41,214,194,.45),0 24px 50px -34px rgba(0,0,0,.7)}
.tier.main{background:linear-gradient(145deg,rgba(22,26,34,.70),rgba(12,14,19,.78)) padding-box,linear-gradient(120deg,#f260ed,#f6d13e,#5fe08a,#29d6c2,#7fb2f0,#f260ed) border-box!important}
.tablewrap table,.cmp table{background:transparent!important}
/* Soft colour behind every page that does not already have its own. */
body:not(:has(.glass-zone)){position:relative}
body:not(:has(.glass-zone))::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;
  background:radial-gradient(40vw 40vw at 8% 22%,rgba(41,214,194,.13),transparent 70%),
             radial-gradient(42vw 42vw at 94% 70%,rgba(226,123,220,.12),transparent 70%),
             radial-gradient(30vw 30vw at 60% 110%,rgba(127,178,240,.10),transparent 70%)}
@media (max-width:899px){.hearfirm,.transcript,.tradegrid a,.tier,.laws li,.tablewrap,.vid .yt,.story,.card,.block,.plan,.ok,.faq:not(.glass) details,.faq.glass,.suggest,#lead-form,.phone,.callcard,.cmp{backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}}
/* Headings match the home page (Jem 16 Nov "match"): Cinco teal to pink, still, with a short rainbow line under h2. */
body:not(:has(.glass-zone)) h1,body:not(:has(.glass-zone)) h2{background:linear-gradient(90deg,#29d6c2,#7fb2f0 45%,#e27bdc)!important;background-size:100% 100%!important;-webkit-background-clip:text!important;background-clip:text!important;-webkit-text-fill-color:transparent!important;color:transparent!important;animation:none!important}
body:not(:has(.glass-zone)) h2{position:relative;padding-bottom:14px;margin-bottom:16px}
body:not(:has(.glass-zone)) h2::after{content:"";position:absolute;left:0;bottom:0;width:64px;height:4px;border-radius:4px;background:linear-gradient(90deg,#f260ed,#f6d13e,#5fe08a,#29d6c2,#3577ae)}
body:not(:has(.glass-zone)) h3{color:#eef0f3!important;-webkit-text-fill-color:#eef0f3!important;background:none!important}
body:not(:has(.glass-zone)) .eyebrow{font-family:inherit!important;text-transform:none!important;letter-spacing:0!important;font-size:.95rem!important;font-weight:600;color:#29d6c2!important}
/* Less orange (Jem 16 Nov): softer peach for buttons only, the offer bar becomes dark glass, small orange text goes calm. */
:root{--accent:#EDB89A!important;--accent-glow:rgba(237,184,154,.35)!important}
#rv-offer{background:linear-gradient(90deg,rgba(18,21,28,.96),rgba(14,16,22,.96))!important;color:#e9ecef!important;border-bottom:1.5px solid transparent;border-image:linear-gradient(90deg,#f260ed,#f6d13e,#5fe08a,#29d6c2,#7fb2f0) 1}
#rv-offer strong{color:#29d6c2}
#rv-offer a{color:#EDB89A!important}
.msg small,.msg.agent small,.transcript .who,.transcript b,.lede.accent,.note.accent{color:#9fb3c8!important}
.hero-bg{background:radial-gradient(60% 50% at 80% 40%,rgba(127,178,240,.10),transparent 60%),radial-gradient(40% 40% at 15% 80%,rgba(41,214,194,.07),transparent 60%)!important}
.device::before{background:radial-gradient(50% 50% at 50% 50%,rgba(41,214,194,.12),transparent 70%)!important}
/* Tweak (Jem 16 Nov): the full rainbow edge is kept for the big boxes; repeated small boxes get a quiet glass edge
   that lights up on hover, so the important boxes stand out. The £79 box glows a little more. */
.faq:not(.glass) details,.tradegrid a,.ok,.laws li,.callcard{
  background:linear-gradient(145deg,rgba(255,255,255,.06),rgba(255,255,255,.02))!important;
  border:1px solid rgba(255,255,255,.12)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.08)!important;transition:border-color .3s,box-shadow .3s,transform .3s}
.faq:not(.glass) details:hover,.tradegrid a:hover,.ok:hover,.laws li:hover,.faq:not(.glass) details[open]{border-color:rgba(41,214,194,.45)!important;box-shadow:0 0 22px -12px rgba(41,214,194,.6)!important}
.tier.main{box-shadow:0 0 0 1px rgba(41,214,194,.15),0 0 48px -10px rgba(41,214,194,.45),0 0 70px -20px rgba(226,123,220,.35)!important}
/* The "hear Verity as your own firm" box is folded under one link, so the hero has one main action. */
.hearfirm-fold{margin-top:18px}
.hearfirm-fold>summary{display:inline-flex;align-items:center;gap:8px;cursor:pointer;list-style:none;color:#29d6c2;font-weight:600;font-size:.98rem}
.hearfirm-fold>summary::-webkit-details-marker{display:none}
.hearfirm-fold>summary::after{content:"+";display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;border:1px solid rgba(41,214,194,.5);font-size:.9rem;transition:transform .3s}
.hearfirm-fold[open]>summary::after{transform:rotate(45deg)}
.tier .tablewrap,.tier table{background:rgba(255,255,255,.03)!important;border:1px solid rgba(255,255,255,.10)!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.faq details p,.faq details li{color:var(--muted,#D8CFC7)!important}

/* ---------- Modern browser features (Jem 16 Nov "Add all"). Older browsers ignore every rule below. ---------- */
/* Smooth page-to-page changes: the new page fades in over the old one instead of a white flash. */
@view-transition{navigation:auto}
::view-transition-old(root){animation:rv-vt-out .22s ease both}
::view-transition-new(root){animation:rv-vt-in .32s ease both}
@keyframes rv-vt-out{to{opacity:0}}
@keyframes rv-vt-in{from{opacity:0;transform:translateY(6px)}}
/* Scroll animations run inside the browser itself, tied to scrolling, with no code (smoother on cheaper phones). */
@supports (animation-timeline: view()){
  @media (prefers-reduced-motion: no-preference){
    .reveal{opacity:1!important;transform:none!important;transition:none!important;animation:rv-rise linear both;animation-timeline:view();animation-range:entry 0% cover 22%}
    .stagger.reveal{animation:none}
    .stagger.reveal>*{opacity:1!important;transform:none!important;transition:border-color .3s,box-shadow .3s!important;animation:rv-rise linear both;animation-timeline:view();animation-range:entry 0% cover 28%}
    .stagger.reveal>*:nth-child(3n+2){animation-range:entry 4% cover 32%}
    .stagger.reveal>*:nth-child(3n){animation-range:entry 8% cover 36%}
  }
}
@keyframes rv-rise{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
/* Visitors who ask their device for less see-through effects get solid boxes; more contrast gets brighter text and edges. */
@media (prefers-reduced-transparency: reduce){
  .hearfirm,.transcript,.tradegrid a,.tier,.laws li,.tablewrap,.vid .yt,.story,.card,.block,.plan,.ok,.faq details,.faq.glass,.suggest,#lead-form,.phone,.callcard,.cmp,.glass{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;background:#11141b!important}
  .glass-zone::before,.glass-zone::after,body::before{display:none!important}
}
@media (prefers-contrast: more){
  :root{--muted:#f1f1f1!important}
  .faq details,.tradegrid a,.ok,.laws li{border-color:rgba(255,255,255,.55)!important}
  h1,h2{-webkit-text-fill-color:#ffffff!important;color:#fff!important;background:none!important}
}
/* Calm body text on every page (was peach on the inner pages). */
:root{--muted:#D8CFC7!important}
